PageSourceSearch

https://puretive.co/cdn/shop/t/92/assets/ls.bgset.min.js?v=8548190837305949561788177805

js puretive.co collected 2026-09-26 01:09:18 UTC 4,588 bytes, 131 lines download raw bytes

1/*! lazysizes - v5.3.2 */
2
3!(function (e, t) {
4  var a = function () {
5    t(e.lazySizes), e.removeEventListener("lazyunveilread", a, !0);
6  };
7  (t = t.bind(null, e, e.document)),
8    "object" == typeof module && module.exports
9      ? t(require("lazysizes"))
10      : "function" == typeof define && define.amd
11      ? define(["lazysizes"], t)
12      : e.lazySizes
13      ? a()
14      : e.addEventListener("lazyunveilread", a, !0);
15})(window, function (e, z, c) {
16  "use strict";
17  var g, y, b, f, r, l, s, v, m;
18  e.addEventListener &&
19    ((g = c.cfg),
20    (y = /\s+/g),
21    (b = /\s*\|\s+|\s+\|\s*/g),
22    (f = /^(.+?)(?:\s+\[\s*(.+?)\s*\])(?:\s+\[\s*(.+?)\s*\])?$/),
23    (r = /^\s*\(*\s*type\s*:\s*(.+?)\s*\)*\s*$/),
24    (l = /\(|\)|'/),
25    (s = { contain: 1, cover: 1 }),
26    (v = function (e, t) {
27      var a;
28      t &&
29        ((a = t.match(r)) && a[1]
30          ? e.setAttribute("type", a[1])
31          : e.setAttribute("media", g.customMedia[t] || t));
32    }),
33    (m = function (e) {
34      var t, a, r, i, s;
35      e.target._lazybgset &&
36        ((a = (t = e.target)._lazybgset),
37        (r = t.currentSrc || t.src) &&
38          ((i = l.test(r) ? JSON.stringify(r) : r),
39          (s = c.fire(a, "bgsetproxy", { src: r, useSrc: i, fullSrc: null }))
40            .defaultPrevented ||
41            (a.style.backgroundImage =
42              s.detail.fullSrc || "url(" + s.detail.useSrc + ")")),
43        t._lazybgsetLoading &&
44          (c.fire(a, "_lazyloaded", {}, !1, !0), delete t._lazybgsetLoading));
45    }),
46    addEventListener("lazybeforeunveil", function (e) {
47      var t, a, r, i, s, l, n, d, u, o;
48      !e.defaultPrevented &&
49        (t = e.target.getAttribute("data-bgset")) &&
50        ((u = e.target),
51        ((o = z.createElement("img")).alt = ""),
52        (o._lazybgsetLoading = !0),
53        (e.detail.firesLoad = !0),
54        (a = t),
55        (r = u),
56        (i = o),
57        (s = z.createElement("picture")),
58        (l = r.getAttribute(g.sizesAttr)),
59        (n = r.getAttribute("data-ratio")),
60        (d = r.getAttribute("data-optimumx")),
61        r._lazybgset &&
62          r._lazybgset.parentNode == r &&
63          r.removeChild(r._lazybgset),
64        Object.defineProperty(i, "_lazybgset", { value: r, writable: !0 }),
65        Object.defineProperty(r, "_lazybgset", { value: s, writable: !0 }),
66        (a = a.replace(y, " ").split(b)),
67        (s.style.display = "none"),
68        (i.className = g.lazyClass),
69        1 != a.length || l || (l = "auto"),
70        a.forEach(function (e) {
71          var t,
72            a = z.createElement("source");
73          l && "auto" != l && a.setAttribute("sizes", l),
74            (t = e.match(f))
75              ? (a.setAttribute(g.srcsetAttr, t[1]), v(a, t[2]), v(a, t[3]))
76              : a.setAttribute(g.srcsetAttr, e),
77            s.appendChild(a);
78        }),
79        l &&
80          (i.setAttribute(g.sizesAttr, l),
81          r.removeAttribute(g.sizesAttr),
82          r.removeAttribute("sizes")),
83        d && i.setAttribute("data-optimumx", d),
84        n && i.setAttribute("data-ratio", n),
85        s.appendChild(i),
86        r.appendChild(s),
87        setTimeout(function () {
88          c.loader.unveil(o),
89            c.rAF(function () {
90              c.fire(o, "_lazyloaded", {}, !0, !0),
91                o.complete && m({ target: o });
92            });
93        }));
94    }),
95    z.addEventListener("load", m, !0),
96    e.addEventListener(
97      "lazybeforesizes",
98      function (e) {
99        var t, a, r, i;
100        e.detail.instance == c &&
101          e.target._lazybgset &&
102          e.detail.dataAttr &&
103          ((t = e.target._lazybgset),
104          (r = t),
105          (i = (
106            getComputedStyle(r) || { getPropertyValue: function () {} }
107          ).getPropertyValue("background-size")),
108          !s[i] && s[r.style.backgroundSize] && (i = r.style.backgroundSize),
109          s[(a = i)] &&
110            ((e.target._lazysizesParentFit = a),
111            c.rAF(function () {
112              e.target.setAttribute("data-parent-fit", a),
113                e.target._lazysizesParentFit &&
114                  delete e.target._lazysizesParentFit;
115            })));
116      },
117      !0
118    ),
119    z.documentElement.addEventListener("lazybeforesizes", function (e) {
120      var t, a;
121      !e.defaultPrevented &&
122        e.target._lazybgset &&
123        e.detail.instance == c &&
124        (e.detail.width =
125          ((t = e.target._lazybgset),
126          (a = c.gW(t, t.parentNode)),
127          (!t._lazysizesWidth || a > t._lazysizesWidth) &&
128            (t._lazysizesWidth = a),
129          t._lazysizesWidth));
130    }));
131});

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.