PageSourceSearch

https://www.peoplenews.tw/wp-content/themes/soledad/js/js-cookies.js?ver=8.6.9

js peoplenews.tw collected 2026-10-01 11:35:01 UTC 3,126 bytes, 75 lines download raw bytes

vendor: 3,126 bytes, lines 1-75
1/*!
2 * JavaScript Cookie v2.1.4
3 * https://github.com/js-cookie/js-cookie
4 *
5 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
6 * Released under the MIT license
7 */
8!function (e) {
9    var n = !1;
10    if ("function" == typeof define && define.amd && (define(e), n = !0), "object" == typeof exports && (module.exports = e(), n = !0), !n) {
11        var o = window.Cookies, t = window.Cookies = e();
12        t.noConflict = function () {
13            return window.Cookies = o, t
14        }
15    }
16}(function () {
17    function e() {
18        for (var e = 0, n = {}; e < arguments.length; e++) {
19            var o = arguments[e];
20            for (var t in o) n[t] = o[t]
21        }
22        return n
23    }
24
25    return function n(o) {
26        function t(n, r, i) {
27            var c;
28            if ("undefined" != typeof document) {
29                if (arguments.length > 1) {
30                    if ("number" == typeof (i = e({path: "/"}, t.defaults, i)).expires) {
31                        var a = new Date;
32                        a.setMilliseconds(a.getMilliseconds() + 864e5 * i.expires), i.expires = a
33                    }
34                    i.expires = i.expires ? i.expires.toUTCString() : "";
35                    try {
36                        c = JSON.stringify(r), /^[\{\[]/.test(c) && (r = c)
37                    } catch (e) {
38                    }
39                    r = o.write ? o.write(r, n) : encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), n = (n = (n = encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)).replace(/[\(\)]/g, escape);
40                    var f = "";
41                    for (var s in i) i[s] && (f += "; " + s, !0 !== i[s] && (f += "=" + i[s]));
42                    return document.cookie = n + "=" + r + f
43                }
44                n || (c = {});
45                for (var p = document.cookie ? document.cookie.split("; ") : [], d = /(%[0-9A-Z]{2})+/g, u = 0; u < p.length; u++) {
46                    var l = p[u].split("="), C = l.slice(1).join("=");
47                    '"' === C.charAt(0) && (C = C.slice(1, -1));
48                    try {
49                        var g = l[0].replace(d, decodeURIComponent);
50                        if (C = o.read ? o.read(C, g) : o(C, g) || C.replace(d, decodeURIComponent), this.json) try {
51                            C = JSON.parse(C)
52                        } catch (e) {
53                        }
54                        if (n === g) {
55                            c = C;
56                            break
57                        }
58                        n || (c[g] = C)
59                    } catch (e) {
60                    }
61                }
62                return c
63            }
64        }
65
66        return t.set = t, t.get = function (e) {
67            return t.call(t, e)
68        }, t.getJSON = function () {
69            return t.apply({json: !0}, [].slice.call(arguments))
70        }, t.defaults = {}, t.remove = function (n, o) {
71            t(n, "", e(o, {expires: -1}))
72        }, t.withConverter = n, t
73    }(function () {
74    })
75});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.