Built motion from commit 9e1399f3.|2.5.37
[motion2.git] / public / tvox / js / angular-cookies.min.js
1 /*
2  AngularJS v1.8.2
3  (c) 2010-2020 Google LLC. http://angularjs.org
4  License: MIT
5 */
6 (function(n, e) {
7   'use strict';
8
9   function m(d, k, l) {
10     var a = l.baseHref(),
11       h = d[0];
12     return function(f, b, c) {
13       var d, g;
14       c = c || {};
15       g = c.expires;
16       d = e.isDefined(c.path) ? c.path : a;
17       e.isUndefined(b) && (g = "Thu, 01 Jan 1970 00:00:00 GMT", b = "");
18       e.isString(g) && (g = new Date(g));
19       b = encodeURIComponent(f) + "=" + encodeURIComponent(b);
20       b = b + (d ? ";path=" + d : "") + (c.domain ? ";domain=" + c.domain : "");
21       b += g ? ";expires=" + g.toUTCString() : "";
22       b += c.secure ? ";secure" : "";
23       b += c.samesite ? ";samesite=" + c.samesite : "";
24       c = b.length + 1;
25       4096 < c && k.warn("Cookie '" + f + "' possibly not set or overflowed because it was too large (" +
26         c + " > 4096 bytes)!");
27       h.cookie = b
28     }
29   }
30   e.module("ngCookies", ["ng"]).info({
31     angularVersion: "1.8.2"
32   }).provider("$cookies", [function() {
33     var d = this.defaults = {};
34     this.$get = ["$$cookieReader", "$$cookieWriter", function(k, l) {
35       return {
36         get: function(a) {
37           return k()[a]
38         },
39         getObject: function(a) {
40           return (a = this.get(a)) ? e.fromJson(a) : a
41         },
42         getAll: function() {
43           return k()
44         },
45         put: function(a, h, f) {
46           l(a, h, f ? e.extend({}, d, f) : d)
47         },
48         putObject: function(a, d, f) {
49           this.put(a, e.toJson(d), f)
50         },
51         remove: function(a, h) {
52           l(a, void 0, h ? e.extend({}, d, h) : d)
53         }
54       }
55     }]
56   }]);
57   m.$inject = ["$document", "$log", "$browser"];
58   e.module("ngCookies").provider("$$cookieWriter", function() {
59     this.$get = m
60   })
61 })(window, window.angular);
62 //# sourceMappingURL=angular-cookies.min.js.map