@searchcraft/react-sdk 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +989 -887
- package/dist/client/index.js.map +1 -1
- package/dist/client/themes/hologram.css +1 -1
- package/dist/client/themes/hologram.css.map +1 -1
- package/dist/server/index.d.ts +123 -80
- package/dist/server/index.js +1084 -982
- package/dist/server/index.js.map +1 -1
- package/package.json +4 -7
package/dist/server/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
var Wa = Object.defineProperty;
|
|
2
2
|
var Ga = (e, t, r) => t in e ? Wa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var f = (e, t, r) => Ga(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { jsx as
|
|
4
|
+
import { jsx as ge } from "react/jsx-runtime";
|
|
5
5
|
import { renderToString as qa } from "@searchcraft/javascript-sdk/hydrate";
|
|
6
6
|
const Ya = "searchcraft-javascript-sdk", Le = (
|
|
7
7
|
/* searchcraft-javascript-sdk */
|
|
8
8
|
{ experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
|
|
9
9
|
);
|
|
10
|
-
var Za = Object.defineProperty,
|
|
10
|
+
var Za = Object.defineProperty, Qa = (e, t) => {
|
|
11
11
|
for (var r in t)
|
|
12
12
|
Za(e, r, { get: t[r], enumerable: !0 });
|
|
13
|
-
},
|
|
13
|
+
}, Ka = "http://www.w3.org/2000/svg", Xa = "http://www.w3.org/1999/xhtml", Ja = (e, t) => {
|
|
14
14
|
var r;
|
|
15
15
|
const s = t.$cmpMeta$;
|
|
16
16
|
Object.entries((r = s.$members$) != null ? r : {}).map(([o, [n]]) => {
|
|
17
17
|
if (n & 31 || n & 32) {
|
|
18
|
-
const c = e[o],
|
|
18
|
+
const c = e[o], u = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), o);
|
|
19
19
|
Object.defineProperty(e, o, {
|
|
20
20
|
get() {
|
|
21
|
-
return
|
|
21
|
+
return u.get.call(this);
|
|
22
22
|
},
|
|
23
|
-
set(
|
|
24
|
-
|
|
23
|
+
set(h) {
|
|
24
|
+
u.set.call(this, h);
|
|
25
25
|
},
|
|
26
26
|
configurable: !0,
|
|
27
27
|
enumerable: !0
|
|
28
28
|
}), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : c;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
},
|
|
31
|
+
}, Qt = /* @__PURE__ */ new WeakMap(), en = (e) => Qt.delete(e), Ce = (e) => Qt.get(e), tn = (e, t) => {
|
|
32
32
|
const r = {
|
|
33
33
|
$flags$: 0,
|
|
34
34
|
$hostElement$: e,
|
|
@@ -36,10 +36,10 @@ var Za = Object.defineProperty, Ka = (e, t) => {
|
|
|
36
36
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
37
37
|
};
|
|
38
38
|
r.$onReadyPromise$ = new Promise((a) => r.$onReadyResolve$ = a), e["s-p"] = [], e["s-rc"] = [];
|
|
39
|
-
const s =
|
|
39
|
+
const s = Qt.set(e, r);
|
|
40
40
|
return Ja(e, r), s;
|
|
41
|
-
}, Yr = (e, t) => t in e, bt = (e, t) => (0, console.error)(e, t), yt = typeof window < "u" ? window : {}, Me = yt.document || { head: {} },
|
|
42
|
-
},
|
|
41
|
+
}, Yr = (e, t) => t in e, bt = (e, t) => (0, console.error)(e, t), yt = typeof window < "u" ? window : {}, Me = yt.document || { head: {} }, F = yt.HTMLElement || class {
|
|
42
|
+
}, ee = {
|
|
43
43
|
$flags$: 0,
|
|
44
44
|
$resourcesUrl$: "",
|
|
45
45
|
jmp: (e) => e(),
|
|
@@ -48,8 +48,8 @@ var Za = Object.defineProperty, Ka = (e, t) => {
|
|
|
48
48
|
rel: (e, t, r, s) => e.removeEventListener(t, r, s),
|
|
49
49
|
ce: (e, t) => new CustomEvent(e, t)
|
|
50
50
|
}, rn = Le.shadowDom, sn = (e) => Promise.resolve(e), Gt = !1, Zr = [], bs = [], an = (e, t) => (r) => {
|
|
51
|
-
e.push(r), Gt || (Gt = !0,
|
|
52
|
-
},
|
|
51
|
+
e.push(r), Gt || (Gt = !0, ee.$flags$ & 4 ? Kt(qt) : ee.raf(qt));
|
|
52
|
+
}, Qr = (e) => {
|
|
53
53
|
for (let t = 0; t < e.length; t++)
|
|
54
54
|
try {
|
|
55
55
|
e[t](performance.now());
|
|
@@ -58,9 +58,9 @@ var Za = Object.defineProperty, Ka = (e, t) => {
|
|
|
58
58
|
}
|
|
59
59
|
e.length = 0;
|
|
60
60
|
}, qt = () => {
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
61
|
+
Qr(Zr), Qr(bs), (Gt = Zr.length > 0) && ee.raf(qt);
|
|
62
|
+
}, Kt = (e) => sn().then(e), nn = /* @__PURE__ */ an(bs), Xt = (e) => (e = typeof e, e === "object" || e === "function"), on = {};
|
|
63
|
+
Qa(on, {
|
|
64
64
|
err: () => ys,
|
|
65
65
|
map: () => cn,
|
|
66
66
|
ok: () => Yt,
|
|
@@ -95,19 +95,19 @@ var ln = (e) => {
|
|
|
95
95
|
if (e.isErr)
|
|
96
96
|
return e.value;
|
|
97
97
|
throw e.value;
|
|
98
|
-
},
|
|
98
|
+
}, Cs = (e) => {
|
|
99
99
|
const t = e.__childNodes || e.childNodes;
|
|
100
|
-
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" &&
|
|
100
|
+
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ss(t, e.tagName).forEach((r) => {
|
|
101
101
|
var s;
|
|
102
102
|
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = hn(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
|
|
103
103
|
});
|
|
104
104
|
for (const r of t)
|
|
105
|
-
r.nodeType === 1 && (r.__childNodes || r.childNodes).length &&
|
|
105
|
+
r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Cs(r);
|
|
106
106
|
};
|
|
107
|
-
function
|
|
107
|
+
function Ss(e, t, r) {
|
|
108
108
|
let s = 0, a = [], o;
|
|
109
109
|
for (; s < e.length; s++)
|
|
110
|
-
o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...
|
|
110
|
+
o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...Ss(o.childNodes, t, r)];
|
|
111
111
|
return a;
|
|
112
112
|
}
|
|
113
113
|
var hn = (e, t, r = !0) => {
|
|
@@ -115,28 +115,28 @@ var hn = (e, t, r = !0) => {
|
|
|
115
115
|
for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
|
|
116
116
|
s.push(e);
|
|
117
117
|
return s;
|
|
118
|
-
},
|
|
118
|
+
}, Kr = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ze = (e, t = "") => () => {
|
|
119
119
|
}, i = (e, t, ...r) => {
|
|
120
120
|
let s = null, a = null, o = null, n = !1, c = !1;
|
|
121
|
-
const
|
|
122
|
-
for (let
|
|
123
|
-
s = p[
|
|
121
|
+
const u = [], h = (p) => {
|
|
122
|
+
for (let g = 0; g < p.length; g++)
|
|
123
|
+
s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !Xt(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? ft(null, s) : s), c = n);
|
|
124
124
|
};
|
|
125
|
-
if (
|
|
125
|
+
if (h(r), t) {
|
|
126
126
|
t.key && (a = t.key), t.name && (o = t.name);
|
|
127
127
|
{
|
|
128
128
|
const p = t.className || t.class;
|
|
129
|
-
p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((
|
|
129
|
+
p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((g) => p[g]).join(" "));
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
if (typeof e == "function")
|
|
133
133
|
return e(
|
|
134
134
|
t === null ? {} : t,
|
|
135
|
-
|
|
135
|
+
u,
|
|
136
136
|
pn
|
|
137
137
|
);
|
|
138
138
|
const l = ft(e, null);
|
|
139
|
-
return l.$attrs$ = t,
|
|
139
|
+
return l.$attrs$ = t, u.length > 0 && (l.$children$ = u), l.$key$ = a, l.$name$ = o, l;
|
|
140
140
|
}, ft = (e, t) => {
|
|
141
141
|
const r = {
|
|
142
142
|
$flags$: 0,
|
|
@@ -163,7 +163,7 @@ var hn = (e, t, r = !0) => {
|
|
|
163
163
|
}
|
|
164
164
|
const t = ft(e.vtag, e.vtext);
|
|
165
165
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
|
166
|
-
},
|
|
166
|
+
}, ks = (e, t) => e != null && !Xt(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, gn = (e) => e, be = (e, t, r) => {
|
|
167
167
|
const s = gn(e);
|
|
168
168
|
return {
|
|
169
169
|
emit: (a) => ws(s, t, {
|
|
@@ -174,43 +174,43 @@ var hn = (e, t, r = !0) => {
|
|
|
174
174
|
})
|
|
175
175
|
};
|
|
176
176
|
}, ws = (e, t, r) => {
|
|
177
|
-
const s =
|
|
177
|
+
const s = ee.ce(t, r);
|
|
178
178
|
return e.dispatchEvent(s), s;
|
|
179
179
|
}, lt = /* @__PURE__ */ new WeakMap(), Jr = (e, t, r, s, a, o) => {
|
|
180
180
|
if (r !== s) {
|
|
181
181
|
let n = Yr(e, t), c = t.toLowerCase();
|
|
182
182
|
if (t === "class") {
|
|
183
|
-
const
|
|
183
|
+
const u = e.classList, h = es(r);
|
|
184
184
|
let l = es(s);
|
|
185
|
-
e["s-si"] ? (l.push(e["s-si"]),
|
|
185
|
+
e["s-si"] ? (l.push(e["s-si"]), h.forEach((p) => {
|
|
186
186
|
p.startsWith(e["s-si"]) && l.push(p);
|
|
187
|
-
}), l = [...new Set(l)],
|
|
187
|
+
}), l = [...new Set(l)], u.add(...l), delete e["s-si"]) : (u.remove(...h.filter((p) => p && !l.includes(p))), u.add(...l.filter((p) => p && !h.includes(p))));
|
|
188
188
|
} else if (t === "style") {
|
|
189
|
-
for (const
|
|
190
|
-
(!s || s[
|
|
191
|
-
for (const
|
|
192
|
-
(!r || s[
|
|
189
|
+
for (const u in r)
|
|
190
|
+
(!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
|
|
191
|
+
for (const u in s)
|
|
192
|
+
(!r || s[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, s[u]) : e.style[u] = s[u]);
|
|
193
193
|
} else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
|
|
194
194
|
if (t[2] === "-" ? t = t.slice(3) : Yr(yt, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
|
|
195
|
-
const
|
|
196
|
-
t = t.replace(bn, ""), r &&
|
|
195
|
+
const u = t.endsWith(xs);
|
|
196
|
+
t = t.replace(bn, ""), r && ee.rel(e, t, r, u), s && ee.ael(e, t, s, u);
|
|
197
197
|
}
|
|
198
198
|
} else {
|
|
199
|
-
const
|
|
200
|
-
if ((n ||
|
|
199
|
+
const u = Xt(s);
|
|
200
|
+
if ((n || u && s !== null) && !a)
|
|
201
201
|
try {
|
|
202
202
|
if (e.tagName.includes("-"))
|
|
203
203
|
e[t] !== s && (e[t] = s);
|
|
204
204
|
else {
|
|
205
|
-
const
|
|
206
|
-
t === "list" ? n = !1 : (r == null || e[t] !=
|
|
205
|
+
const h = s ?? "";
|
|
206
|
+
t === "list" ? n = !1 : (r == null || e[t] != h) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = h : e.setAttribute(t, h));
|
|
207
207
|
}
|
|
208
208
|
} catch {
|
|
209
209
|
}
|
|
210
|
-
s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || o & 4 || a) && !
|
|
210
|
+
s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || o & 4 || a) && !u && (s = s === !0 ? "" : s, e.setAttribute(t, s));
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
}, vn = /\s/, es = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(vn) : []), xs = "Capture", bn = new RegExp(xs + "$"),
|
|
213
|
+
}, vn = /\s/, es = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(vn) : []), xs = "Capture", bn = new RegExp(xs + "$"), Rs = (e, t, r) => {
|
|
214
214
|
const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, a = e && e.$attrs$ || {}, o = t.$attrs$ || {};
|
|
215
215
|
for (const n of ts(Object.keys(a)))
|
|
216
216
|
n in o || Jr(s, n, a[n], void 0, r, t.$flags$);
|
|
@@ -229,7 +229,7 @@ function ts(e) {
|
|
|
229
229
|
var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
230
230
|
var s;
|
|
231
231
|
const a = t.$children$[r];
|
|
232
|
-
let o = 0, n, c,
|
|
232
|
+
let o = 0, n, c, u;
|
|
233
233
|
if (pt || (er = !0, a.$tag$ === "slot" && (a.$flags$ |= a.$children$ ? (
|
|
234
234
|
// slot element has fallback content
|
|
235
235
|
// still create an element that "mocks" the slot element
|
|
@@ -245,82 +245,82 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
245
245
|
n = a.$elm$ = Me.createTextNode("");
|
|
246
246
|
else {
|
|
247
247
|
if (te || (te = a.$tag$ === "svg"), n = a.$elm$ = Me.createElementNS(
|
|
248
|
-
te ?
|
|
248
|
+
te ? Ka : Xa,
|
|
249
249
|
!pt && Le.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
|
|
250
|
-
), te && a.$tag$ === "foreignObject" && (te = !1),
|
|
250
|
+
), te && a.$tag$ === "foreignObject" && (te = !1), Rs(null, a, te), a.$children$)
|
|
251
251
|
for (o = 0; o < a.$children$.length; ++o)
|
|
252
252
|
c = gt(e, a, o), c && n.appendChild(c);
|
|
253
253
|
a.$tag$ === "svg" ? te = !1 : n.tagName === "foreignObject" && (te = !0);
|
|
254
254
|
}
|
|
255
|
-
return n["s-hn"] = Jt, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Zt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref,
|
|
256
|
-
},
|
|
257
|
-
|
|
255
|
+
return n["s-hn"] = Jt, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Zt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref, u = e && e.$children$ && e.$children$[r], u && u.$tag$ === a.$tag$ && e.$elm$ && Qe(e.$elm$, !1)), n;
|
|
256
|
+
}, Qe = (e, t) => {
|
|
257
|
+
ee.$flags$ |= 1;
|
|
258
258
|
const r = Array.from(e.__childNodes || e.childNodes);
|
|
259
259
|
e["s-sr"] && Le.experimentalSlotFixes;
|
|
260
260
|
for (let s = r.length - 1; s >= 0; s--) {
|
|
261
261
|
const a = r[s];
|
|
262
|
-
a["s-hn"] !== Jt && a["s-ol"] && (
|
|
262
|
+
a["s-hn"] !== Jt && a["s-ol"] && (ye(Ke(a).parentNode, a, Ke(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, er = !0), t && Qe(a, t);
|
|
263
263
|
}
|
|
264
|
-
|
|
265
|
-
},
|
|
264
|
+
ee.$flags$ &= -2;
|
|
265
|
+
}, Es = (e, t, r, s, a, o) => {
|
|
266
266
|
let n = e["s-cr"] && e["s-cr"].parentNode || e, c;
|
|
267
267
|
for (; a <= o; ++a)
|
|
268
|
-
s[a] && (c = gt(null, r, a), c && (s[a].$elm$ = c,
|
|
268
|
+
s[a] && (c = gt(null, r, a), c && (s[a].$elm$ = c, ye(n, c, Ke(t))));
|
|
269
269
|
}, Ts = (e, t, r) => {
|
|
270
270
|
for (let s = t; s <= r; ++s) {
|
|
271
271
|
const a = e[s];
|
|
272
272
|
if (a) {
|
|
273
273
|
const o = a.$elm$;
|
|
274
|
-
o && (mt = !0, o["s-ol"] ? o["s-ol"].remove() :
|
|
274
|
+
o && (mt = !0, o["s-ol"] ? o["s-ol"].remove() : Qe(o, !0), o.remove());
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
}, yn = (e, t, r, s, a = !1) => {
|
|
278
|
-
let o = 0, n = 0, c = 0,
|
|
279
|
-
for (; o <=
|
|
278
|
+
let o = 0, n = 0, c = 0, u = 0, h = t.length - 1, l = t[0], p = t[h], g = s.length - 1, k = s[0], b = s[g], P, _;
|
|
279
|
+
for (; o <= h && n <= g; )
|
|
280
280
|
if (l == null)
|
|
281
281
|
l = t[++o];
|
|
282
282
|
else if (p == null)
|
|
283
|
-
p = t[--
|
|
284
|
-
else if (
|
|
285
|
-
|
|
286
|
-
else if (
|
|
287
|
-
|
|
288
|
-
else if (ut(l,
|
|
289
|
-
|
|
290
|
-
else if (ut(p,
|
|
291
|
-
|
|
292
|
-
else if (ut(l,
|
|
293
|
-
(l.$tag$ === "slot" ||
|
|
294
|
-
else if (ut(p,
|
|
295
|
-
(l.$tag$ === "slot" ||
|
|
283
|
+
p = t[--h];
|
|
284
|
+
else if (k == null)
|
|
285
|
+
k = s[++n];
|
|
286
|
+
else if (b == null)
|
|
287
|
+
b = s[--g];
|
|
288
|
+
else if (ut(l, k, a))
|
|
289
|
+
Ie(l, k, a), l = t[++o], k = s[++n];
|
|
290
|
+
else if (ut(p, b, a))
|
|
291
|
+
Ie(p, b, a), p = t[--h], b = s[--g];
|
|
292
|
+
else if (ut(l, b, a))
|
|
293
|
+
(l.$tag$ === "slot" || b.$tag$ === "slot") && Qe(l.$elm$.parentNode, !1), Ie(l, b, a), ye(e, l.$elm$, p.$elm$.nextSibling), l = t[++o], b = s[--g];
|
|
294
|
+
else if (ut(p, k, a))
|
|
295
|
+
(l.$tag$ === "slot" || b.$tag$ === "slot") && Qe(p.$elm$.parentNode, !1), Ie(p, k, a), ye(e, p.$elm$, l.$elm$), p = t[--h], k = s[++n];
|
|
296
296
|
else {
|
|
297
|
-
for (c = -1,
|
|
298
|
-
if (t[
|
|
299
|
-
c =
|
|
297
|
+
for (c = -1, u = o; u <= h; ++u)
|
|
298
|
+
if (t[u] && t[u].$key$ !== null && t[u].$key$ === k.$key$) {
|
|
299
|
+
c = u;
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
|
-
c >= 0 ? (
|
|
303
|
-
|
|
302
|
+
c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P = gt(t && t[n], r, c) : (Ie(_, k, a), t[c] = void 0, P = _.$elm$), k = s[++n]) : (P = gt(t && t[n], r, n), k = s[++n]), P && ye(
|
|
303
|
+
Ke(l.$elm$).parentNode,
|
|
304
304
|
P,
|
|
305
|
-
|
|
305
|
+
Ke(l.$elm$)
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
|
-
o >
|
|
308
|
+
o > h ? Es(
|
|
309
309
|
e,
|
|
310
|
-
s[
|
|
310
|
+
s[g + 1] == null ? null : s[g + 1].$elm$,
|
|
311
311
|
r,
|
|
312
312
|
s,
|
|
313
313
|
n,
|
|
314
|
-
|
|
315
|
-
) : n >
|
|
316
|
-
}, ut = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1,
|
|
314
|
+
g
|
|
315
|
+
) : n > g && Ts(t, o, h);
|
|
316
|
+
}, ut = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, Ke = (e) => e && e["s-ol"] || e, Ie = (e, t, r = !1) => {
|
|
317
317
|
const s = t.$elm$ = e.$elm$, a = e.$children$, o = t.$children$, n = t.$tag$, c = t.$text$;
|
|
318
|
-
let
|
|
319
|
-
c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !pt ||
|
|
318
|
+
let u;
|
|
319
|
+
c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !pt || Rs(e, t, te), a !== null && o !== null ? yn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), Es(s, null, t, o, 0, o.length - 1)) : (
|
|
320
320
|
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
321
321
|
!r && Le.updatable && a !== null && Ts(a, 0, a.length - 1)
|
|
322
|
-
), te && n === "svg" && (te = !1)) : (
|
|
323
|
-
},
|
|
322
|
+
), te && n === "svg" && (te = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
|
|
323
|
+
}, de = [], Ps = (e) => {
|
|
324
324
|
let t, r, s;
|
|
325
325
|
const a = e.__childNodes || e.childNodes;
|
|
326
326
|
for (const o of a) {
|
|
@@ -329,64 +329,64 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
329
329
|
const n = o["s-sn"];
|
|
330
330
|
for (s = r.length - 1; s >= 0; s--)
|
|
331
331
|
if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
|
|
332
|
-
if (
|
|
333
|
-
let c =
|
|
334
|
-
mt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"],
|
|
332
|
+
if (Kr(t, n)) {
|
|
333
|
+
let c = de.find((u) => u.$nodeToRelocate$ === t);
|
|
334
|
+
mt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], de.push({
|
|
335
335
|
$slotRefNode$: o,
|
|
336
336
|
$nodeToRelocate$: t
|
|
337
|
-
})), t["s-sr"] &&
|
|
338
|
-
|
|
337
|
+
})), t["s-sr"] && de.map((u) => {
|
|
338
|
+
Kr(u.$nodeToRelocate$, t["s-sn"]) && (c = de.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
|
|
339
339
|
});
|
|
340
|
-
} else
|
|
340
|
+
} else de.some((c) => c.$nodeToRelocate$ === t) || de.push({
|
|
341
341
|
$nodeToRelocate$: t
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
o.nodeType === 1 && Ps(o);
|
|
345
345
|
}
|
|
346
|
-
},
|
|
346
|
+
}, ye = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Cn = (e, t, r = !1) => {
|
|
347
347
|
var s, a, o, n;
|
|
348
|
-
const c = e.$hostElement$,
|
|
349
|
-
if (Jt = c.tagName, r &&
|
|
350
|
-
for (const l of Object.keys(
|
|
351
|
-
c.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (
|
|
352
|
-
|
|
348
|
+
const c = e.$hostElement$, u = e.$vnode$ || ft(null, null), h = fn(t) ? t : i(null, null, t);
|
|
349
|
+
if (Jt = c.tagName, r && h.$attrs$)
|
|
350
|
+
for (const l of Object.keys(h.$attrs$))
|
|
351
|
+
c.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (h.$attrs$[l] = c[l]);
|
|
352
|
+
h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c, pt = rn, Zt = c["s-cr"], mt = !1, Ie(u, h, r);
|
|
353
353
|
{
|
|
354
|
-
if (
|
|
355
|
-
Ps(
|
|
356
|
-
for (const l of
|
|
354
|
+
if (ee.$flags$ |= 1, er) {
|
|
355
|
+
Ps(h.$elm$);
|
|
356
|
+
for (const l of de) {
|
|
357
357
|
const p = l.$nodeToRelocate$;
|
|
358
358
|
if (!p["s-ol"]) {
|
|
359
|
-
const
|
|
360
|
-
|
|
359
|
+
const g = Me.createTextNode("");
|
|
360
|
+
g["s-nr"] = p, ye(p.parentNode, p["s-ol"] = g, p);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
for (const l of
|
|
364
|
-
const p = l.$nodeToRelocate$,
|
|
365
|
-
if (
|
|
366
|
-
const
|
|
367
|
-
let
|
|
363
|
+
for (const l of de) {
|
|
364
|
+
const p = l.$nodeToRelocate$, g = l.$slotRefNode$;
|
|
365
|
+
if (g) {
|
|
366
|
+
const k = g.parentNode;
|
|
367
|
+
let b = g.nextSibling;
|
|
368
368
|
{
|
|
369
|
-
let
|
|
370
|
-
for (;
|
|
371
|
-
let
|
|
372
|
-
if (
|
|
373
|
-
for (
|
|
374
|
-
|
|
375
|
-
if (!
|
|
376
|
-
|
|
369
|
+
let H = (s = p["s-ol"]) == null ? void 0 : s.previousSibling;
|
|
370
|
+
for (; H; ) {
|
|
371
|
+
let I = (a = H["s-nr"]) != null ? a : null;
|
|
372
|
+
if (I && I["s-sn"] === p["s-sn"] && k === (I.__parentNode || I.parentNode)) {
|
|
373
|
+
for (I = I.nextSibling; I === p || I != null && I["s-sr"]; )
|
|
374
|
+
I = I == null ? void 0 : I.nextSibling;
|
|
375
|
+
if (!I || !I["s-nr"]) {
|
|
376
|
+
b = I;
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
|
|
380
|
+
H = H.previousSibling;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
const P = p.__parentNode || p.parentNode,
|
|
384
|
-
(!
|
|
383
|
+
const P = p.__parentNode || p.parentNode, _ = p.__nextSibling || p.nextSibling;
|
|
384
|
+
(!b && k !== P || _ !== b) && p !== b && (!p["s-hn"] && p["s-ol"] && (p["s-hn"] = p["s-ol"].parentNode.nodeName), ye(k, p, b), p.nodeType === 1 && p.tagName !== "SLOT-FB" && (p.hidden = (o = p["s-ih"]) != null ? o : !1)), p && typeof g["s-rf"] == "function" && g["s-rf"](p);
|
|
385
385
|
} else
|
|
386
386
|
p.nodeType === 1 && (r && (p["s-ih"] = (n = p.hidden) != null ? n : !1), p.hidden = !0);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
mt &&
|
|
389
|
+
mt && Cs(h.$elm$), ee.$flags$ &= -2, de.length = 0;
|
|
390
390
|
}
|
|
391
391
|
Zt = void 0;
|
|
392
392
|
}, $s = (e, t) => {
|
|
@@ -404,37 +404,37 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
404
404
|
e.$flags$ |= 512;
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
return $s(e, e.$ancestorComponent$), nn(() =>
|
|
408
|
-
},
|
|
407
|
+
return $s(e, e.$ancestorComponent$), nn(() => Sn(e, t));
|
|
408
|
+
}, Sn = (e, t) => {
|
|
409
409
|
const r = e.$hostElement$, s = Ze("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
|
|
410
410
|
if (!a)
|
|
411
411
|
throw new Error(
|
|
412
412
|
`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
413
413
|
);
|
|
414
414
|
let o;
|
|
415
|
-
return s(),
|
|
416
|
-
},
|
|
415
|
+
return s(), kn(o, () => xn(e, a, t));
|
|
416
|
+
}, kn = (e, t) => wn(e) ? e.then(t).catch((r) => {
|
|
417
417
|
console.error(r), t();
|
|
418
418
|
}) : t(), wn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", xn = async (e, t, r) => {
|
|
419
419
|
var s;
|
|
420
420
|
const a = e.$hostElement$, o = Ze("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Ze("render", e.$cmpMeta$.$tagName$);
|
|
421
|
-
|
|
421
|
+
Rn(e, t, a, r), n && (n.map((u) => u()), a["s-rc"] = void 0), c(), o();
|
|
422
422
|
{
|
|
423
|
-
const
|
|
424
|
-
|
|
423
|
+
const u = (s = a["s-p"]) != null ? s : [], h = () => En(e);
|
|
424
|
+
u.length === 0 ? h() : (Promise.all(u).then(h), e.$flags$ |= 4, u.length = 0);
|
|
425
425
|
}
|
|
426
|
-
},
|
|
426
|
+
}, Rn = (e, t, r, s) => {
|
|
427
427
|
try {
|
|
428
|
-
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2,
|
|
428
|
+
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Cn(e, t, s);
|
|
429
429
|
} catch (a) {
|
|
430
430
|
bt(a, e.$hostElement$);
|
|
431
431
|
}
|
|
432
432
|
return null;
|
|
433
|
-
},
|
|
433
|
+
}, En = (e) => {
|
|
434
434
|
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ze("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
435
|
-
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, _s(r), Pn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Tn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 &&
|
|
435
|
+
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, _s(r), Pn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Tn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Kt(() => tr(e, !1)), e.$flags$ &= -517;
|
|
436
436
|
}, Tn = (e) => {
|
|
437
|
-
_s(Me.documentElement),
|
|
437
|
+
_s(Me.documentElement), Kt(() => ws(yt, "appload", { detail: { namespace: Ya } }));
|
|
438
438
|
}, Pn = (e, t, r, s) => {
|
|
439
439
|
if (e && e[t])
|
|
440
440
|
try {
|
|
@@ -445,20 +445,20 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
445
445
|
}, _s = (e) => {
|
|
446
446
|
var t;
|
|
447
447
|
return e.classList.add((t = Le.hydratedSelectorName) != null ? t : "hydrated");
|
|
448
|
-
}, $n = (e, t) =>
|
|
449
|
-
const a =
|
|
450
|
-
r =
|
|
451
|
-
const
|
|
452
|
-
if (r !== n && !
|
|
448
|
+
}, $n = (e, t) => Ce(e).$instanceValues$.get(t), rs = (e, t, r, s) => {
|
|
449
|
+
const a = Ce(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, u = o;
|
|
450
|
+
r = ks(r, s.$members$[t][0]);
|
|
451
|
+
const h = Number.isNaN(n) && Number.isNaN(r);
|
|
452
|
+
if (r !== n && !h) {
|
|
453
453
|
a.$instanceValues$.set(t, r);
|
|
454
454
|
{
|
|
455
455
|
if (s.$watchers$ && c & 128) {
|
|
456
456
|
const p = s.$watchers$[t];
|
|
457
|
-
p && p.map((
|
|
457
|
+
p && p.map((g) => {
|
|
458
458
|
try {
|
|
459
|
-
|
|
460
|
-
} catch (
|
|
461
|
-
bt(
|
|
459
|
+
u[g](r, n, t);
|
|
460
|
+
} catch (k) {
|
|
461
|
+
bt(k, o);
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
464
|
}
|
|
@@ -471,21 +471,21 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
471
471
|
if (t.$members$ || t.$watchers$ || e.watchers) {
|
|
472
472
|
e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
|
|
473
473
|
const n = Object.entries((s = t.$members$) != null ? s : {});
|
|
474
|
-
n.map(([c, [
|
|
475
|
-
if (
|
|
476
|
-
const { get:
|
|
477
|
-
|
|
474
|
+
n.map(([c, [u]]) => {
|
|
475
|
+
if (u & 31 || u & 32) {
|
|
476
|
+
const { get: h, set: l } = Object.getOwnPropertyDescriptor(o, c) || {};
|
|
477
|
+
h && (t.$members$[c][0] |= 2048), l && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
|
|
478
478
|
get() {
|
|
479
|
-
return
|
|
479
|
+
return h ? h.apply(this) : $n(this, c);
|
|
480
480
|
},
|
|
481
481
|
configurable: !0,
|
|
482
482
|
enumerable: !0
|
|
483
483
|
}), Object.defineProperty(o, c, {
|
|
484
484
|
set(p) {
|
|
485
|
-
const
|
|
485
|
+
const g = Ce(this);
|
|
486
486
|
if (l) {
|
|
487
|
-
const
|
|
488
|
-
typeof
|
|
487
|
+
const k = u & 32 ? this[c] : g.$hostElement$[c];
|
|
488
|
+
typeof k > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && k && g.$instanceValues$.set(c, k), l.apply(this, [ks(p, u)]), p = u & 32 ? this[c] : g.$hostElement$[c], rs(this, c, p, t);
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
491
|
{
|
|
@@ -498,44 +498,44 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
498
498
|
});
|
|
499
499
|
{
|
|
500
500
|
const c = /* @__PURE__ */ new Map();
|
|
501
|
-
o.attributeChangedCallback = function(
|
|
502
|
-
|
|
501
|
+
o.attributeChangedCallback = function(u, h, l) {
|
|
502
|
+
ee.jmp(() => {
|
|
503
503
|
var p;
|
|
504
|
-
const
|
|
505
|
-
if (!(this.hasOwnProperty(
|
|
506
|
-
if (o.hasOwnProperty(
|
|
507
|
-
this[
|
|
504
|
+
const g = c.get(u);
|
|
505
|
+
if (!(this.hasOwnProperty(g) && Le.lazyLoad)) {
|
|
506
|
+
if (o.hasOwnProperty(g) && typeof this[g] == "number" && // cast type to number to avoid TS compiler issues
|
|
507
|
+
this[g] == l)
|
|
508
508
|
return;
|
|
509
|
-
if (
|
|
510
|
-
const
|
|
511
|
-
if (P && !(P & 8) && P & 128 && l !==
|
|
512
|
-
const
|
|
513
|
-
|
|
514
|
-
|
|
509
|
+
if (g == null) {
|
|
510
|
+
const b = Ce(this), P = b == null ? void 0 : b.$flags$;
|
|
511
|
+
if (P && !(P & 8) && P & 128 && l !== h) {
|
|
512
|
+
const H = this, I = (p = t.$watchers$) == null ? void 0 : p[u];
|
|
513
|
+
I == null || I.forEach((Fe) => {
|
|
514
|
+
H[Fe] != null && H[Fe].call(H, l, h, u);
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
return;
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
const
|
|
521
|
-
l = l === null && typeof this[
|
|
520
|
+
const k = Object.getOwnPropertyDescriptor(o, g);
|
|
521
|
+
l = l === null && typeof this[g] == "boolean" ? !1 : l, l !== this[g] && (!k.get || k.set) && (this[g] = l);
|
|
522
522
|
});
|
|
523
523
|
}, e.observedAttributes = Array.from(
|
|
524
524
|
/* @__PURE__ */ new Set([
|
|
525
525
|
...Object.keys((a = t.$watchers$) != null ? a : {}),
|
|
526
526
|
...n.filter(
|
|
527
|
-
([
|
|
527
|
+
([u, h]) => h[0] & 15
|
|
528
528
|
/* HasAttribute */
|
|
529
|
-
).map(([
|
|
530
|
-
const l =
|
|
531
|
-
return c.set(l,
|
|
529
|
+
).map(([u, h]) => {
|
|
530
|
+
const l = h[1] || u;
|
|
531
|
+
return c.set(l, u), l;
|
|
532
532
|
})
|
|
533
533
|
])
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
return e;
|
|
538
|
-
},
|
|
538
|
+
}, In = async (e, t, r, s) => {
|
|
539
539
|
if (!(t.$flags$ & 32)) {
|
|
540
540
|
t.$flags$ |= 32;
|
|
541
541
|
{
|
|
@@ -548,12 +548,12 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
548
548
|
}
|
|
549
549
|
const a = t.$ancestorComponent$, o = () => tr(t, !0);
|
|
550
550
|
a && a["s-rc"] ? a["s-rc"].push(o) : o();
|
|
551
|
-
},
|
|
551
|
+
}, An = (e, t) => {
|
|
552
552
|
}, Mn = (e) => {
|
|
553
|
-
if (!(
|
|
554
|
-
const t =
|
|
553
|
+
if (!(ee.$flags$ & 1)) {
|
|
554
|
+
const t = Ce(e), r = t.$cmpMeta$, s = Ze("connectedCallback", r.$tagName$);
|
|
555
555
|
if (t.$flags$ & 1)
|
|
556
|
-
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() =>
|
|
556
|
+
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => An());
|
|
557
557
|
else {
|
|
558
558
|
t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
559
559
|
r.$flags$ & 12 && Ln(e);
|
|
@@ -570,7 +570,7 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
570
570
|
const n = e[a];
|
|
571
571
|
delete e[a], e[a] = n;
|
|
572
572
|
}
|
|
573
|
-
}),
|
|
573
|
+
}), In(e, t);
|
|
574
574
|
}
|
|
575
575
|
s();
|
|
576
576
|
}
|
|
@@ -578,10 +578,10 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
578
578
|
const t = e["s-cr"] = Me.createComment(
|
|
579
579
|
""
|
|
580
580
|
);
|
|
581
|
-
t["s-cn"] = !0,
|
|
581
|
+
t["s-cn"] = !0, ye(e, t, e.firstChild);
|
|
582
582
|
}, On = async (e) => {
|
|
583
|
-
|
|
584
|
-
},
|
|
583
|
+
ee.$flags$ & 1 || Ce(e), lt.has(e) && lt.delete(e), e.shadowRoot && lt.has(e.shadowRoot) && lt.delete(e.shadowRoot);
|
|
584
|
+
}, D = (e, t) => {
|
|
585
585
|
const r = {
|
|
586
586
|
$flags$: t[0],
|
|
587
587
|
$tagName$: t[1]
|
|
@@ -594,12 +594,12 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
594
594
|
tn(this, r);
|
|
595
595
|
},
|
|
596
596
|
connectedCallback() {
|
|
597
|
-
this.__hasHostListenerAttached || (
|
|
597
|
+
this.__hasHostListenerAttached || (Ce(this), this.__hasHostListenerAttached = !0), Mn(this), s && s.call(this);
|
|
598
598
|
},
|
|
599
599
|
disconnectedCallback() {
|
|
600
|
-
On(this), a && a.call(this),
|
|
600
|
+
On(this), a && a.call(this), ee.raf(() => {
|
|
601
601
|
var o;
|
|
602
|
-
const n =
|
|
602
|
+
const n = Ce(this);
|
|
603
603
|
((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && en(this);
|
|
604
604
|
});
|
|
605
605
|
},
|
|
@@ -607,13 +607,13 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
607
607
|
this.shadowRoot = this;
|
|
608
608
|
}
|
|
609
609
|
}), e.is = r.$tagName$, _n(e, r);
|
|
610
|
-
}, Fn = (e, t) => t, Dn = Object.defineProperty, Hn = (e, t, r) => t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => Hn(e, typeof t != "symbol" ? t + "" : t, r),
|
|
610
|
+
}, Fn = (e, t) => t, Dn = Object.defineProperty, Hn = (e, t, r) => t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => Hn(e, typeof t != "symbol" ? t + "" : t, r), he = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(he || {});
|
|
611
611
|
class Nn {
|
|
612
612
|
constructor(t) {
|
|
613
613
|
A(this, "logLevel"), A(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
|
|
614
614
|
}
|
|
615
615
|
defaultFormatter(t, r) {
|
|
616
|
-
return `[${
|
|
616
|
+
return `[${he[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
|
|
617
617
|
}
|
|
618
618
|
debug(t) {
|
|
619
619
|
this.logLevel <= 0 && console.log(this.logFormatter(0, t));
|
|
@@ -644,32 +644,32 @@ class Nn {
|
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function fe(e, t, r, s) {
|
|
648
648
|
return new (r || (r = Promise))(function(a, o) {
|
|
649
|
-
function n(
|
|
649
|
+
function n(h) {
|
|
650
650
|
try {
|
|
651
|
-
|
|
651
|
+
u(s.next(h));
|
|
652
652
|
} catch (l) {
|
|
653
653
|
o(l);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function c(
|
|
656
|
+
function c(h) {
|
|
657
657
|
try {
|
|
658
|
-
|
|
658
|
+
u(s.throw(h));
|
|
659
659
|
} catch (l) {
|
|
660
660
|
o(l);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function h
|
|
663
|
+
function u(h) {
|
|
664
664
|
var l;
|
|
665
|
-
|
|
665
|
+
h.done ? a(h.value) : (l = h.value, l instanceof r ? l : new r(function(p) {
|
|
666
666
|
p(l);
|
|
667
667
|
})).then(n, c);
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
u((s = s.apply(e, [])).next());
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function pe(e, t) {
|
|
673
673
|
var r, s, a, o, n = { label: 0, sent: function() {
|
|
674
674
|
if (1 & a[0]) throw a[1];
|
|
675
675
|
return a[1];
|
|
@@ -677,8 +677,8 @@ function fe(e, t) {
|
|
|
677
677
|
return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
678
678
|
return this;
|
|
679
679
|
}), o;
|
|
680
|
-
function c(
|
|
681
|
-
return function(
|
|
680
|
+
function c(u) {
|
|
681
|
+
return function(h) {
|
|
682
682
|
return function(l) {
|
|
683
683
|
if (r) throw new TypeError("Generator is already executing.");
|
|
684
684
|
for (; o && (o = 0, l[0] && (n = 0)), n; ) try {
|
|
@@ -724,16 +724,16 @@ function fe(e, t) {
|
|
|
724
724
|
}
|
|
725
725
|
if (5 & l[0]) throw l[1];
|
|
726
726
|
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
727
|
-
}([
|
|
727
|
+
}([u, h]);
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
var
|
|
732
|
-
typeof window < "u" && (
|
|
731
|
+
var me = { exclude: [] }, Is = {}, Un = { timeout: "true" }, ne = function(e, t) {
|
|
732
|
+
typeof window < "u" && (Is[e] = t);
|
|
733
733
|
}, zn = function() {
|
|
734
|
-
return Object.fromEntries(Object.entries(
|
|
734
|
+
return Object.fromEntries(Object.entries(Is).filter(function(e) {
|
|
735
735
|
var t, r = e[0];
|
|
736
|
-
return !(!((t =
|
|
736
|
+
return !(!((t = me == null ? void 0 : me.exclude) === null || t === void 0) && t.includes(r));
|
|
737
737
|
}).map(function(e) {
|
|
738
738
|
return [e[0], (0, e[1])()];
|
|
739
739
|
}));
|
|
@@ -741,7 +741,7 @@ var pe = { exclude: [] }, As = {}, Un = { timeout: "true" }, ne = function(e, t)
|
|
|
741
741
|
function ht(e) {
|
|
742
742
|
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
743
743
|
}
|
|
744
|
-
var
|
|
744
|
+
var W = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
745
745
|
function re(e, t) {
|
|
746
746
|
return e << t | e >>> 32 - t;
|
|
747
747
|
}
|
|
@@ -750,43 +750,43 @@ function rr(e, t) {
|
|
|
750
750
|
if (t === void 0 && (t = 0), t = t ? 0 | t : 0, typeof e == "string" && (r = e, e = new TextEncoder().encode(r).buffer), !(e instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
|
|
751
751
|
var s = new Uint32Array([t, t, t, t]);
|
|
752
752
|
(function(o, n) {
|
|
753
|
-
for (var c = o.byteLength / 16 | 0,
|
|
754
|
-
var l =
|
|
755
|
-
l[0] = Math.imul(l[0],
|
|
753
|
+
for (var c = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * c), h = 0; h < c; h++) {
|
|
754
|
+
var l = u.subarray(4 * h, 4 * (h + 1));
|
|
755
|
+
l[0] = Math.imul(l[0], W[0]), l[0] = re(l[0], 15), l[0] = Math.imul(l[0], W[1]), n[0] = n[0] ^ l[0], n[0] = re(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, l[1] = Math.imul(l[1], W[1]), l[1] = re(l[1], 16), l[1] = Math.imul(l[1], W[2]), n[1] = n[1] ^ l[1], n[1] = re(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, l[2] = Math.imul(l[2], W[2]), l[2] = re(l[2], 17), l[2] = Math.imul(l[2], W[3]), n[2] = n[2] ^ l[2], n[2] = re(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, l[3] = Math.imul(l[3], W[3]), l[3] = re(l[3], 18), l[3] = Math.imul(l[3], W[0]), n[3] = n[3] ^ l[3], n[3] = re(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
|
|
756
756
|
}
|
|
757
757
|
})(e, s), function(o, n) {
|
|
758
|
-
var c = o.byteLength / 16 | 0,
|
|
759
|
-
switch (
|
|
758
|
+
var c = o.byteLength / 16 | 0, u = o.byteLength % 16, h = new Uint32Array(4), l = new Uint8Array(o, 16 * c, u);
|
|
759
|
+
switch (u) {
|
|
760
760
|
case 15:
|
|
761
|
-
|
|
761
|
+
h[3] = h[3] ^ l[14] << 16;
|
|
762
762
|
case 14:
|
|
763
|
-
|
|
763
|
+
h[3] = h[3] ^ l[13] << 8;
|
|
764
764
|
case 13:
|
|
765
|
-
|
|
765
|
+
h[3] = h[3] ^ l[12] << 0, h[3] = Math.imul(h[3], W[3]), h[3] = re(h[3], 18), h[3] = Math.imul(h[3], W[0]), n[3] = n[3] ^ h[3];
|
|
766
766
|
case 12:
|
|
767
|
-
|
|
767
|
+
h[2] = h[2] ^ l[11] << 24;
|
|
768
768
|
case 11:
|
|
769
|
-
|
|
769
|
+
h[2] = h[2] ^ l[10] << 16;
|
|
770
770
|
case 10:
|
|
771
|
-
|
|
771
|
+
h[2] = h[2] ^ l[9] << 8;
|
|
772
772
|
case 9:
|
|
773
|
-
|
|
773
|
+
h[2] = h[2] ^ l[8] << 0, h[2] = Math.imul(h[2], W[2]), h[2] = re(h[2], 17), h[2] = Math.imul(h[2], W[3]), n[2] = n[2] ^ h[2];
|
|
774
774
|
case 8:
|
|
775
|
-
|
|
775
|
+
h[1] = h[1] ^ l[7] << 24;
|
|
776
776
|
case 7:
|
|
777
|
-
|
|
777
|
+
h[1] = h[1] ^ l[6] << 16;
|
|
778
778
|
case 6:
|
|
779
|
-
|
|
779
|
+
h[1] = h[1] ^ l[5] << 8;
|
|
780
780
|
case 5:
|
|
781
|
-
|
|
781
|
+
h[1] = h[1] ^ l[4] << 0, h[1] = Math.imul(h[1], W[1]), h[1] = re(h[1], 16), h[1] = Math.imul(h[1], W[2]), n[1] = n[1] ^ h[1];
|
|
782
782
|
case 4:
|
|
783
|
-
|
|
783
|
+
h[0] = h[0] ^ l[3] << 24;
|
|
784
784
|
case 3:
|
|
785
|
-
|
|
785
|
+
h[0] = h[0] ^ l[2] << 16;
|
|
786
786
|
case 2:
|
|
787
|
-
|
|
787
|
+
h[0] = h[0] ^ l[1] << 8;
|
|
788
788
|
case 1:
|
|
789
|
-
|
|
789
|
+
h[0] = h[0] ^ l[0] << 0, h[0] = Math.imul(h[0], W[0]), h[0] = re(h[0], 15), h[0] = Math.imul(h[0], W[1]), n[0] = n[0] ^ h[0];
|
|
790
790
|
}
|
|
791
791
|
}(e, s), function(o, n) {
|
|
792
792
|
n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.byteLength, n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0, n[0] = ht(n[0]), n[1] = ht(n[1]), n[2] = ht(n[2]), n[3] = ht(n[3]), n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0;
|
|
@@ -809,18 +809,18 @@ function Vn(e, t, r) {
|
|
|
809
809
|
}));
|
|
810
810
|
}
|
|
811
811
|
function Bn() {
|
|
812
|
-
return
|
|
812
|
+
return fe(this, void 0, void 0, function() {
|
|
813
813
|
var e, t, r, s, a;
|
|
814
|
-
return
|
|
814
|
+
return pe(this, function(o) {
|
|
815
815
|
switch (o.label) {
|
|
816
816
|
case 0:
|
|
817
|
-
return o.trys.push([0, 2, , 3]), e = zn(), t = Object.keys(e), [4, Vn(Object.values(e), (
|
|
817
|
+
return o.trys.push([0, 2, , 3]), e = zn(), t = Object.keys(e), [4, Vn(Object.values(e), (me == null ? void 0 : me.timeout) || 1e3, Un)];
|
|
818
818
|
case 1:
|
|
819
819
|
return r = o.sent(), s = r.filter(function(n) {
|
|
820
820
|
return n !== void 0;
|
|
821
821
|
}), a = {}, s.forEach(function(n, c) {
|
|
822
822
|
a[t[c]] = n;
|
|
823
|
-
}), [2,
|
|
823
|
+
}), [2, As(a, me.exclude || [])];
|
|
824
824
|
case 2:
|
|
825
825
|
throw o.sent();
|
|
826
826
|
case 3:
|
|
@@ -829,14 +829,14 @@ function Bn() {
|
|
|
829
829
|
});
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function As(e, t) {
|
|
833
833
|
var r = {}, s = function(o) {
|
|
834
834
|
if (e.hasOwnProperty(o)) {
|
|
835
835
|
var n = e[o];
|
|
836
836
|
if (typeof n != "object" || Array.isArray(n)) t.includes(o) || (r[o] = n);
|
|
837
837
|
else {
|
|
838
|
-
var c =
|
|
839
|
-
return
|
|
838
|
+
var c = As(n, t.map(function(u) {
|
|
839
|
+
return u.startsWith(o + ".") ? u.slice(o.length + 1) : u;
|
|
840
840
|
}));
|
|
841
841
|
Object.keys(c).length > 0 && (r[o] = c);
|
|
842
842
|
}
|
|
@@ -846,9 +846,9 @@ function Is(e, t) {
|
|
|
846
846
|
return r;
|
|
847
847
|
}
|
|
848
848
|
function Wn(e) {
|
|
849
|
-
return
|
|
849
|
+
return fe(this, void 0, void 0, function() {
|
|
850
850
|
var t, r;
|
|
851
|
-
return
|
|
851
|
+
return pe(this, function(s) {
|
|
852
852
|
switch (s.label) {
|
|
853
853
|
case 0:
|
|
854
854
|
return s.trys.push([0, 2, , 3]), [4, Bn()];
|
|
@@ -891,18 +891,18 @@ function Xe() {
|
|
|
891
891
|
return { name: "unknown", version: "unknown" };
|
|
892
892
|
}
|
|
893
893
|
ne("audio", function() {
|
|
894
|
-
return
|
|
895
|
-
return
|
|
894
|
+
return fe(this, void 0, void 0, function() {
|
|
895
|
+
return pe(this, function(e) {
|
|
896
896
|
return [2, new Promise(function(t, r) {
|
|
897
897
|
try {
|
|
898
898
|
var s = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), a = s.createBufferSource(), o = s.createOscillator();
|
|
899
899
|
o.frequency.value = 1e3;
|
|
900
900
|
var n, c = s.createDynamicsCompressor();
|
|
901
|
-
c.threshold.value = -50, c.knee.value = 40, c.ratio.value = 12, c.attack.value = 0, c.release.value = 0.2, o.connect(c), c.connect(s.destination), o.start(), s.oncomplete = function(
|
|
902
|
-
n =
|
|
901
|
+
c.threshold.value = -50, c.knee.value = 40, c.ratio.value = 12, c.attack.value = 0, c.release.value = 0.2, o.connect(c), c.connect(s.destination), o.start(), s.oncomplete = function(u) {
|
|
902
|
+
n = u.renderedBuffer.getChannelData(0), t({ sampleHash: Gn(n), oscillator: o.type, maxChannels: s.destination.maxChannelCount, channelCountMode: a.channelCountMode });
|
|
903
903
|
}, s.startRendering();
|
|
904
|
-
} catch (
|
|
905
|
-
console.error("Error creating audio fingerprint:",
|
|
904
|
+
} catch (u) {
|
|
905
|
+
console.error("Error creating audio fingerprint:", u), r(u);
|
|
906
906
|
}
|
|
907
907
|
})];
|
|
908
908
|
});
|
|
@@ -927,20 +927,20 @@ Xe().name != "Firefox" && ne("canvas", function() {
|
|
|
927
927
|
e({ commonImageDataHash: rr(Ms(t, ss, as).data.toString()).toString() });
|
|
928
928
|
});
|
|
929
929
|
});
|
|
930
|
-
var Bt, Zn = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"],
|
|
930
|
+
var Bt, Zn = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"], Qn = ["monospace", "sans-serif", "serif"];
|
|
931
931
|
function ns(e, t) {
|
|
932
932
|
if (!e) throw new Error("Canvas context not supported");
|
|
933
933
|
return e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Kn() {
|
|
936
936
|
var e, t = document.createElement("canvas"), r = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
|
|
937
937
|
if (r && "getParameter" in r) try {
|
|
938
938
|
var s = (r.getParameter(r.VENDOR) || "").toString(), a = (r.getParameter(r.RENDERER) || "").toString(), o = { vendor: s, renderer: a, version: (r.getParameter(r.VERSION) || "").toString(), shadingLanguageVersion: (r.getParameter(r.SHADING_LANGUAGE_VERSION) || "").toString() };
|
|
939
939
|
if (!a.length || !s.length) {
|
|
940
940
|
var n = r.getExtension("WEBGL_debug_renderer_info");
|
|
941
941
|
if (n) {
|
|
942
|
-
var c = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(),
|
|
943
|
-
c && (o.vendorUnmasked = c),
|
|
942
|
+
var c = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(), u = (r.getParameter(n.UNMASKED_RENDERER_WEBGL) || "").toString();
|
|
943
|
+
c && (o.vendorUnmasked = c), u && (o.rendererUnmasked = u);
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
return o;
|
|
@@ -958,13 +958,13 @@ function Jn(e, t) {
|
|
|
958
958
|
var a = function(o) {
|
|
959
959
|
if (o.length === 0) return null;
|
|
960
960
|
var n = {};
|
|
961
|
-
o.forEach(function(
|
|
962
|
-
var l = String(
|
|
961
|
+
o.forEach(function(h) {
|
|
962
|
+
var l = String(h);
|
|
963
963
|
n[l] = (n[l] || 0) + 1;
|
|
964
964
|
});
|
|
965
|
-
var c = o[0],
|
|
966
|
-
return Object.keys(n).forEach(function(
|
|
967
|
-
n[
|
|
965
|
+
var c = o[0], u = 1;
|
|
966
|
+
return Object.keys(n).forEach(function(h) {
|
|
967
|
+
n[h] > u && (c = h, u = n[h]);
|
|
968
968
|
}), c;
|
|
969
969
|
}(e.map(function(o) {
|
|
970
970
|
return s in o ? o[s] : void 0;
|
|
@@ -996,36 +996,36 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
996
996
|
try {
|
|
997
997
|
(function(s) {
|
|
998
998
|
var a;
|
|
999
|
-
|
|
999
|
+
fe(this, void 0, void 0, function() {
|
|
1000
1000
|
var o, n, c;
|
|
1001
|
-
return
|
|
1002
|
-
switch (
|
|
1001
|
+
return pe(this, function(u) {
|
|
1002
|
+
switch (u.label) {
|
|
1003
1003
|
case 0:
|
|
1004
|
-
return document.body ? [3, 2] : [4, (
|
|
1005
|
-
return setTimeout(p,
|
|
1004
|
+
return document.body ? [3, 2] : [4, (h = 50, new Promise(function(p) {
|
|
1005
|
+
return setTimeout(p, h, l);
|
|
1006
1006
|
}))];
|
|
1007
1007
|
case 1:
|
|
1008
|
-
return
|
|
1008
|
+
return u.sent(), [3, 0];
|
|
1009
1009
|
case 2:
|
|
1010
1010
|
if ((o = document.createElement("iframe")).setAttribute("frameBorder", "0"), (n = o.style).setProperty("position", "fixed"), n.setProperty("display", "block", "important"), n.setProperty("visibility", "visible"), n.setProperty("border", "0"), n.setProperty("opacity", "0"), o.src = "about:blank", document.body.appendChild(o), !(c = o.contentDocument || ((a = o.contentWindow) === null || a === void 0 ? void 0 : a.document))) throw new Error("Iframe document is not accessible");
|
|
1011
1011
|
return s({ iframe: c }), setTimeout(function() {
|
|
1012
1012
|
document.body.removeChild(o);
|
|
1013
1013
|
}, 0), [2];
|
|
1014
1014
|
}
|
|
1015
|
-
var
|
|
1015
|
+
var h, l;
|
|
1016
1016
|
});
|
|
1017
1017
|
});
|
|
1018
1018
|
})(function(s) {
|
|
1019
1019
|
var a = s.iframe;
|
|
1020
|
-
return
|
|
1021
|
-
var o, n, c,
|
|
1022
|
-
return
|
|
1023
|
-
return o = a.createElement("canvas"), n = o.getContext("2d"), c =
|
|
1020
|
+
return fe(e, void 0, void 0, function() {
|
|
1021
|
+
var o, n, c, u;
|
|
1022
|
+
return pe(this, function(h) {
|
|
1023
|
+
return o = a.createElement("canvas"), n = o.getContext("2d"), c = Qn.map(function(l) {
|
|
1024
1024
|
return ns(n, l);
|
|
1025
|
-
}),
|
|
1025
|
+
}), u = {}, Zn.forEach(function(l) {
|
|
1026
1026
|
var p = ns(n, l);
|
|
1027
|
-
c.includes(p) || (
|
|
1028
|
-
}), t(
|
|
1027
|
+
c.includes(p) || (u[l] = p);
|
|
1028
|
+
}), t(u), [2];
|
|
1029
1029
|
});
|
|
1030
1030
|
});
|
|
1031
1031
|
});
|
|
@@ -1036,21 +1036,21 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1036
1036
|
}), ne("hardware", function() {
|
|
1037
1037
|
return new Promise(function(e, t) {
|
|
1038
1038
|
var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
1039
|
-
e({ videocard:
|
|
1039
|
+
e({ videocard: Kn(), architecture: Xn(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
|
|
1040
1040
|
});
|
|
1041
1041
|
}), ne("locales", function() {
|
|
1042
1042
|
return new Promise(function(e) {
|
|
1043
1043
|
e({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
|
|
1044
1044
|
});
|
|
1045
1045
|
}), ne("permissions", function() {
|
|
1046
|
-
return
|
|
1046
|
+
return fe(this, void 0, void 0, function() {
|
|
1047
1047
|
var e;
|
|
1048
|
-
return
|
|
1049
|
-
return Bt = (
|
|
1048
|
+
return pe(this, function(t) {
|
|
1049
|
+
return Bt = (me == null ? void 0 : me.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (me == null ? void 0 : me.retries) || 3 }, function() {
|
|
1050
1050
|
return function() {
|
|
1051
|
-
return
|
|
1051
|
+
return fe(this, void 0, void 0, function() {
|
|
1052
1052
|
var r, s, a, o, n;
|
|
1053
|
-
return
|
|
1053
|
+
return pe(this, function(c) {
|
|
1054
1054
|
switch (c.label) {
|
|
1055
1055
|
case 0:
|
|
1056
1056
|
r = {}, s = 0, a = Bt, c.label = 1;
|
|
@@ -1095,18 +1095,18 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1095
1095
|
e({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: t.name, version: t.version }, applePayVersion: to() });
|
|
1096
1096
|
});
|
|
1097
1097
|
});
|
|
1098
|
-
var K, ro = Xe().name !== "SamsungBrowser" ? 1 : 3,
|
|
1098
|
+
var K, ro = Xe().name !== "SamsungBrowser" ? 1 : 3, S = null;
|
|
1099
1099
|
ne("webgl", function() {
|
|
1100
|
-
return
|
|
1100
|
+
return fe(this, void 0, void 0, function() {
|
|
1101
1101
|
var e;
|
|
1102
|
-
return
|
|
1103
|
-
typeof document < "u" && ((K = document.createElement("canvas")).width = 200, K.height = 100,
|
|
1102
|
+
return pe(this, function(t) {
|
|
1103
|
+
typeof document < "u" && ((K = document.createElement("canvas")).width = 200, K.height = 100, S = K.getContext("webgl"));
|
|
1104
1104
|
try {
|
|
1105
|
-
if (!
|
|
1105
|
+
if (!S) throw new Error("WebGL not supported");
|
|
1106
1106
|
return e = Array.from({ length: ro }, function() {
|
|
1107
1107
|
return function() {
|
|
1108
1108
|
try {
|
|
1109
|
-
if (!
|
|
1109
|
+
if (!S) throw new Error("WebGL not supported");
|
|
1110
1110
|
var r = `
|
|
1111
1111
|
attribute vec2 position;
|
|
1112
1112
|
void main() {
|
|
@@ -1117,28 +1117,28 @@ ne("webgl", function() {
|
|
|
1117
1117
|
void main() {
|
|
1118
1118
|
gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
|
|
1119
1119
|
}
|
|
1120
|
-
`, a =
|
|
1120
|
+
`, a = S.createShader(S.VERTEX_SHADER), o = S.createShader(S.FRAGMENT_SHADER);
|
|
1121
1121
|
if (!a || !o) throw new Error("Failed to create shaders");
|
|
1122
|
-
if (
|
|
1123
|
-
if (
|
|
1124
|
-
var n =
|
|
1122
|
+
if (S.shaderSource(a, r), S.shaderSource(o, s), S.compileShader(a), !S.getShaderParameter(a, S.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + S.getShaderInfoLog(a));
|
|
1123
|
+
if (S.compileShader(o), !S.getShaderParameter(o, S.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + S.getShaderInfoLog(o));
|
|
1124
|
+
var n = S.createProgram();
|
|
1125
1125
|
if (!n) throw new Error("Failed to create shader program");
|
|
1126
|
-
if (
|
|
1127
|
-
|
|
1128
|
-
for (var c = 137,
|
|
1129
|
-
var p = l *
|
|
1130
|
-
|
|
1126
|
+
if (S.attachShader(n, a), S.attachShader(n, o), S.linkProgram(n), !S.getProgramParameter(n, S.LINK_STATUS)) throw new Error("Shader program linking failed: " + S.getProgramInfoLog(n));
|
|
1127
|
+
S.useProgram(n);
|
|
1128
|
+
for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c, l = 0; l < c; l++) {
|
|
1129
|
+
var p = l * h;
|
|
1130
|
+
u[4 * l] = 0, u[4 * l + 1] = 0, u[4 * l + 2] = Math.cos(p) * (K.width / 2), u[4 * l + 3] = Math.sin(p) * (K.height / 2);
|
|
1131
1131
|
}
|
|
1132
|
-
var
|
|
1133
|
-
|
|
1134
|
-
var
|
|
1135
|
-
|
|
1136
|
-
var
|
|
1137
|
-
return
|
|
1132
|
+
var g = S.createBuffer();
|
|
1133
|
+
S.bindBuffer(S.ARRAY_BUFFER, g), S.bufferData(S.ARRAY_BUFFER, u, S.STATIC_DRAW);
|
|
1134
|
+
var k = S.getAttribLocation(n, "position");
|
|
1135
|
+
S.enableVertexAttribArray(k), S.vertexAttribPointer(k, 2, S.FLOAT, !1, 0, 0), S.viewport(0, 0, K.width, K.height), S.clearColor(0, 0, 0, 1), S.clear(S.COLOR_BUFFER_BIT), S.drawArrays(S.LINES, 0, 2 * c);
|
|
1136
|
+
var b = new Uint8ClampedArray(K.width * K.height * 4);
|
|
1137
|
+
return S.readPixels(0, 0, K.width, K.height, S.RGBA, S.UNSIGNED_BYTE, b), new ImageData(b, K.width, K.height);
|
|
1138
1138
|
} catch {
|
|
1139
1139
|
return new ImageData(1, 1);
|
|
1140
1140
|
} finally {
|
|
1141
|
-
|
|
1141
|
+
S && (S.bindBuffer(S.ARRAY_BUFFER, null), S.useProgram(null), S.viewport(0, 0, S.drawingBufferWidth, S.drawingBufferHeight), S.clearColor(0, 0, 0, 0));
|
|
1142
1142
|
}
|
|
1143
1143
|
}();
|
|
1144
1144
|
}), [2, { commonImageHash: rr(Ms(e, K.width, K.height).data.toString()).toString() }];
|
|
@@ -1149,15 +1149,15 @@ ne("webgl", function() {
|
|
|
1149
1149
|
});
|
|
1150
1150
|
});
|
|
1151
1151
|
});
|
|
1152
|
-
var
|
|
1152
|
+
var we = function(e, t, r, s) {
|
|
1153
1153
|
for (var a = (r - t) / s, o = 0, n = 0; n < s; n++)
|
|
1154
1154
|
o += e(t + (n + 0.5) * a);
|
|
1155
1155
|
return o * a;
|
|
1156
1156
|
};
|
|
1157
1157
|
ne("math", function() {
|
|
1158
|
-
return
|
|
1159
|
-
return
|
|
1160
|
-
return [2, { acos: Math.acos(0.5), asin:
|
|
1158
|
+
return fe(void 0, void 0, void 0, function() {
|
|
1159
|
+
return pe(this, function(e) {
|
|
1160
|
+
return [2, { acos: Math.acos(0.5), asin: we(Math.asin, -1, 1, 97), atan: we(Math.atan, -1, 1, 97), cos: we(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: we(Math.sin, -Math.PI, Math.PI, 97), sinh: we(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: we(Math.tan, 0, 2 * Math.PI, 97), tanh: we(Math.tanh, -9 / 7, 7 / 9, 97) }];
|
|
1161
1161
|
});
|
|
1162
1162
|
});
|
|
1163
1163
|
});
|
|
@@ -1172,7 +1172,7 @@ class sr {
|
|
|
1172
1172
|
constructor(t) {
|
|
1173
1173
|
A(this, "config"), this.config = t;
|
|
1174
1174
|
}
|
|
1175
|
-
async
|
|
1175
|
+
async getAds(t) {
|
|
1176
1176
|
return [];
|
|
1177
1177
|
}
|
|
1178
1178
|
async onQuerySubmitted(t) {
|
|
@@ -1190,7 +1190,7 @@ class ao extends sr {
|
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Gets ads from the adMarketplace API based on the search term.
|
|
1192
1192
|
*/
|
|
1193
|
-
async
|
|
1193
|
+
async getAds(t) {
|
|
1194
1194
|
if (!this.config.admSub)
|
|
1195
1195
|
return console.error("No admSub specified in config."), [];
|
|
1196
1196
|
const r = `https://demofeed.is.ampfeed.com/is?${new URLSearchParams({
|
|
@@ -1223,7 +1223,7 @@ class ao extends sr {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
class no extends sr {
|
|
1226
|
-
async
|
|
1226
|
+
async getAds(t) {
|
|
1227
1227
|
return [];
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
@@ -1256,7 +1256,7 @@ class co extends sr {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
}, t);
|
|
1258
1258
|
}
|
|
1259
|
-
async
|
|
1259
|
+
async getAds(t) {
|
|
1260
1260
|
return [];
|
|
1261
1261
|
}
|
|
1262
1262
|
addScriptTagToDocument() {
|
|
@@ -1287,16 +1287,16 @@ class lo {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
1289
|
if (a === "document_clicked") {
|
|
1290
|
-
const
|
|
1290
|
+
const u = JSON.stringify(c), h = `${this.baseMeasureUrl}/event`;
|
|
1291
1291
|
try {
|
|
1292
|
-
const l = await fetch(
|
|
1292
|
+
const l = await fetch(h, {
|
|
1293
1293
|
method: "POST",
|
|
1294
1294
|
headers: {
|
|
1295
1295
|
"Content-Type": "application/json",
|
|
1296
1296
|
Authorization: this.config.readKey,
|
|
1297
1297
|
"X-Sc-User-Id": this.userId
|
|
1298
1298
|
},
|
|
1299
|
-
body:
|
|
1299
|
+
body: u,
|
|
1300
1300
|
keepalive: !0
|
|
1301
1301
|
});
|
|
1302
1302
|
if (!l.ok)
|
|
@@ -1308,16 +1308,16 @@ class lo {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
} else
|
|
1310
1310
|
this.measureRequestsBatched.push(c), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
|
|
1311
|
-
const
|
|
1311
|
+
const u = JSON.stringify({ items: this.measureRequestsBatched }), h = `${this.baseMeasureUrl}/batch`;
|
|
1312
1312
|
try {
|
|
1313
|
-
const l = await fetch(
|
|
1313
|
+
const l = await fetch(h, {
|
|
1314
1314
|
method: "POST",
|
|
1315
1315
|
headers: {
|
|
1316
1316
|
"Content-Type": "application/json",
|
|
1317
1317
|
Authorization: this.config.readKey,
|
|
1318
1318
|
"X-Sc-User-Id": this.userId
|
|
1319
1319
|
},
|
|
1320
|
-
body:
|
|
1320
|
+
body: u,
|
|
1321
1321
|
keepalive: !0
|
|
1322
1322
|
});
|
|
1323
1323
|
if (this.measureRequestsBatched = [], !l.ok)
|
|
@@ -1352,35 +1352,7 @@ class lo {
|
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
|
|
1356
|
-
const t = [];
|
|
1357
|
-
let r = "should";
|
|
1358
|
-
return e.facetPathsForIndexFields && Object.keys(e.facetPathsForIndexFields).forEach((s) => {
|
|
1359
|
-
var a;
|
|
1360
|
-
const o = (a = e.facetPathsForIndexFields) == null ? void 0 : a[s];
|
|
1361
|
-
o && (r = "must", t.push({
|
|
1362
|
-
occur: r,
|
|
1363
|
-
exact: {
|
|
1364
|
-
ctx: o.value
|
|
1365
|
-
}
|
|
1366
|
-
}));
|
|
1367
|
-
}), e.rangeValueForIndexFields && Object.keys(e.rangeValueForIndexFields).forEach((s) => {
|
|
1368
|
-
var a;
|
|
1369
|
-
const o = (a = e.rangeValueForIndexFields) == null ? void 0 : a[s];
|
|
1370
|
-
o && (r = "must", t.push({
|
|
1371
|
-
occur: r,
|
|
1372
|
-
exact: {
|
|
1373
|
-
ctx: o.value
|
|
1374
|
-
}
|
|
1375
|
-
}));
|
|
1376
|
-
}), e.sort === "desc" ? e.order_by = "date_published" : e.order_by = "", t.push({
|
|
1377
|
-
occur: r,
|
|
1378
|
-
// Valid, as 'occur' is a required property in QueryItem
|
|
1379
|
-
[e.mode]: { ctx: e.searchTerm }
|
|
1380
|
-
// Ensure dynamic mode is inside queryType
|
|
1381
|
-
}), t;
|
|
1382
|
-
}
|
|
1383
|
-
const ho = (e) => e.endsWith("/") ? e.slice(0, -1) : e, fo = (e) => {
|
|
1355
|
+
const uo = (e) => e.endsWith("/") ? e.slice(0, -1) : e, ho = (e) => {
|
|
1384
1356
|
let t = "";
|
|
1385
1357
|
if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
|
|
1386
1358
|
"‘": "'",
|
|
@@ -1392,62 +1364,98 @@ const ho = (e) => e.endsWith("/") ? e.slice(0, -1) : e, fo = (e) => {
|
|
|
1392
1364
|
"The search term contains an uneven number of quote characters."
|
|
1393
1365
|
);
|
|
1394
1366
|
return t;
|
|
1395
|
-
},
|
|
1396
|
-
class
|
|
1367
|
+
}, fo = 500;
|
|
1368
|
+
class po {
|
|
1397
1369
|
constructor(t, r, s) {
|
|
1398
|
-
A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "
|
|
1399
|
-
var o, n, c,
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1370
|
+
A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponseItems", async (a) => {
|
|
1371
|
+
var o, n, c, u, h;
|
|
1372
|
+
let l;
|
|
1373
|
+
const p = typeof a == "string" ? a : a.searchTerm;
|
|
1374
|
+
try {
|
|
1375
|
+
return (o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
|
|
1376
|
+
search_term: p
|
|
1377
|
+
}), this.parent.emitEvent("query_submitted", {
|
|
1378
|
+
name: "query_submitted",
|
|
1379
|
+
data: {
|
|
1380
|
+
searchTerm: p
|
|
1381
|
+
}
|
|
1382
|
+
}), (n = this.parent.adClient) == null || n.onQuerySubmitted(
|
|
1383
|
+
typeof a == "string" ? { searchTerm: p, mode: "exact" } : a
|
|
1384
|
+
), typeof a == "string" ? l = await this.handleGetSearchResponseItemsWithString(a) : l = await this.handleGetSearchResponseItemsWithObject(a), (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
|
|
1385
|
+
search_term: p,
|
|
1386
|
+
number_of_documents: l.data.count
|
|
1387
|
+
}), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
|
|
1388
|
+
var g;
|
|
1389
|
+
(g = this.parent.measureClient) == null || g.sendMeasureEvent("search_completed", {
|
|
1390
|
+
search_term: p,
|
|
1391
|
+
number_of_documents: l.data.count
|
|
1392
|
+
});
|
|
1393
|
+
}, fo), this.parent.emitEvent("query_fetched", {
|
|
1394
|
+
name: "query_fetched",
|
|
1395
|
+
data: {
|
|
1396
|
+
searchTerm: p
|
|
1397
|
+
}
|
|
1398
|
+
}), (((u = l.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
|
|
1399
|
+
name: "no_results_returned"
|
|
1400
|
+
}), (h = this.parent.adClient) == null || h.onQueryFetched(
|
|
1401
|
+
typeof a == "string" ? { searchTerm: p, mode: "exact" } : a,
|
|
1402
|
+
l
|
|
1403
|
+
), l;
|
|
1404
|
+
} catch (g) {
|
|
1405
|
+
throw console.error("Error parsing response:", g), g;
|
|
1406
|
+
}
|
|
1407
|
+
}), A(this, "handleGetSearchResponseItemsWithString", async (a) => {
|
|
1408
|
+
let o;
|
|
1409
|
+
try {
|
|
1410
|
+
o = JSON.parse(a), o = {
|
|
1411
|
+
limit: this.config.searchResultsPerPage,
|
|
1412
|
+
order_by: this.config.indexFieldName,
|
|
1413
|
+
...o
|
|
1414
|
+
};
|
|
1415
|
+
} catch {
|
|
1416
|
+
throw new Error("Error: Query string is not valid json.");
|
|
1417
|
+
}
|
|
1418
|
+
const n = await fetch(this.baseSearchUrl, {
|
|
1419
|
+
method: "POST",
|
|
1420
|
+
headers: {
|
|
1421
|
+
Authorization: this.config.readKey,
|
|
1422
|
+
"Content-Type": "application/json",
|
|
1423
|
+
"X-Sc-User-Id": this.userId
|
|
1424
|
+
},
|
|
1425
|
+
body: JSON.stringify(o)
|
|
1426
|
+
});
|
|
1427
|
+
if (!n.ok)
|
|
1428
|
+
throw new Error(
|
|
1429
|
+
`Error: ${n.statusText} (Status: ${n.status})`
|
|
1430
|
+
);
|
|
1431
|
+
return await n.json();
|
|
1432
|
+
}), A(this, "handleGetSearchResponseItemsWithObject", async (a) => {
|
|
1409
1433
|
try {
|
|
1410
|
-
const
|
|
1411
|
-
query:
|
|
1434
|
+
const o = {
|
|
1435
|
+
query: this.formatParamsForRequest(a),
|
|
1412
1436
|
offset: a.offset || 0,
|
|
1413
1437
|
// Default to 0 (first page) if not provided
|
|
1414
|
-
limit: a.limit || this.config.searchResultsPerPage || 20
|
|
1438
|
+
limit: a.limit || this.config.searchResultsPerPage || 20,
|
|
1415
1439
|
// Default to 20 if not provided
|
|
1440
|
+
order_by: a.order_by || this.config.indexFieldName
|
|
1416
1441
|
};
|
|
1417
|
-
|
|
1418
|
-
const
|
|
1442
|
+
o.order_by && (o.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
|
|
1443
|
+
const n = await fetch(this.baseSearchUrl, {
|
|
1419
1444
|
method: "POST",
|
|
1420
1445
|
headers: {
|
|
1421
1446
|
Authorization: this.config.readKey,
|
|
1422
1447
|
"Content-Type": "application/json",
|
|
1423
1448
|
"X-Sc-User-Id": this.userId
|
|
1424
1449
|
},
|
|
1425
|
-
body: JSON.stringify(
|
|
1426
|
-
}
|
|
1427
|
-
if (!
|
|
1450
|
+
body: JSON.stringify(o)
|
|
1451
|
+
});
|
|
1452
|
+
if (!n.ok)
|
|
1428
1453
|
throw new Error(
|
|
1429
|
-
`Error: ${
|
|
1454
|
+
`Error: ${n.statusText} (Status: ${n.status})`
|
|
1430
1455
|
);
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
number_of_documents: v.data.count
|
|
1435
|
-
}), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
|
|
1436
|
-
var P;
|
|
1437
|
-
(P = this.parent.measureClient) == null || P.sendMeasureEvent("search_completed", {
|
|
1438
|
-
search_term: l,
|
|
1439
|
-
number_of_documents: v.data.count
|
|
1440
|
-
});
|
|
1441
|
-
}, po), this.parent.emitEvent("query_fetched", {
|
|
1442
|
-
name: "query_fetched",
|
|
1443
|
-
data: {
|
|
1444
|
-
searchTerm: l
|
|
1445
|
-
}
|
|
1446
|
-
}), (((h = v.data.hits) == null ? void 0 : h.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
|
|
1447
|
-
name: "no_results_returned"
|
|
1448
|
-
}), (u = this.parent.adClient) == null || u.onQueryFetched(a, v), v;
|
|
1449
|
-
} catch (p) {
|
|
1450
|
-
throw console.error("Error parsing response:", p), p;
|
|
1456
|
+
return await n.json();
|
|
1457
|
+
} catch (o) {
|
|
1458
|
+
throw console.error("Error parsing response:", o), o;
|
|
1451
1459
|
}
|
|
1452
1460
|
}), this.parent = t, this.config = r, this.userId = s;
|
|
1453
1461
|
}
|
|
@@ -1457,25 +1465,59 @@ class mo {
|
|
|
1457
1465
|
get baseSearchUrl() {
|
|
1458
1466
|
return `${this.config.endpointURL}/index/${this.config.index.join(",")}/search`;
|
|
1459
1467
|
}
|
|
1468
|
+
/**
|
|
1469
|
+
* Builds a query object for the SearchClient request.
|
|
1470
|
+
* @param {properties} properties - The properties for the search.
|
|
1471
|
+
* @returns {SearchClientQuery} - A properly formatted SearchClient query object.
|
|
1472
|
+
*/
|
|
1473
|
+
formatParamsForRequest(t) {
|
|
1474
|
+
const r = [];
|
|
1475
|
+
let s = "should";
|
|
1476
|
+
t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((o) => {
|
|
1477
|
+
var n;
|
|
1478
|
+
const c = (n = t.facetPathsForIndexFields) == null ? void 0 : n[o];
|
|
1479
|
+
c && (s = "must", r.push({
|
|
1480
|
+
occur: s,
|
|
1481
|
+
exact: {
|
|
1482
|
+
ctx: ho(c.value)
|
|
1483
|
+
}
|
|
1484
|
+
}));
|
|
1485
|
+
}), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((o) => {
|
|
1486
|
+
var n;
|
|
1487
|
+
const c = (n = t.rangeValueForIndexFields) == null ? void 0 : n[o];
|
|
1488
|
+
c && (s = "must", r.push({
|
|
1489
|
+
occur: s,
|
|
1490
|
+
exact: {
|
|
1491
|
+
ctx: c.value
|
|
1492
|
+
}
|
|
1493
|
+
}));
|
|
1494
|
+
});
|
|
1495
|
+
const a = t.mode === "fuzzy" ? { fuzzy: { ctx: t.searchTerm } } : { exact: { ctx: t.searchTerm } };
|
|
1496
|
+
return r.push({
|
|
1497
|
+
occur: s,
|
|
1498
|
+
// Valid, as 'occur' is a required property in SearchClientQuery
|
|
1499
|
+
...a
|
|
1500
|
+
}), r;
|
|
1501
|
+
}
|
|
1460
1502
|
}
|
|
1461
|
-
class
|
|
1503
|
+
class mo {
|
|
1462
1504
|
constructor(t, r) {
|
|
1463
|
-
if (A(this, "config"), A(this, "measureClient"), A(this, "searchClient"), A(this, "adClient"), A(this, "userId"), A(this, "requestTimeout"), A(this, "subscriptionEvents", {}), A(this, "
|
|
1505
|
+
if (A(this, "config"), A(this, "measureClient"), A(this, "searchClient"), A(this, "adClient"), A(this, "userId"), A(this, "requestTimeout"), A(this, "subscriptionEvents", {}), A(this, "getResponseItems", (s, a, o) => {
|
|
1464
1506
|
const n = async () => {
|
|
1465
1507
|
(async () => {
|
|
1466
|
-
var c,
|
|
1467
|
-
const
|
|
1468
|
-
if (!
|
|
1508
|
+
var c, u;
|
|
1509
|
+
const h = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
|
|
1510
|
+
if (!h)
|
|
1469
1511
|
throw new Error("Search client was not initialized.");
|
|
1470
|
-
const l = (
|
|
1512
|
+
const l = (u = h.data.hits || []) == null ? void 0 : u.map((p) => p.doc).filter((p) => !!p).map((p) => ({
|
|
1471
1513
|
type: "SearchDocument",
|
|
1472
1514
|
id: vt(),
|
|
1473
1515
|
document: p
|
|
1474
1516
|
}));
|
|
1475
|
-
a(
|
|
1517
|
+
a(h, l);
|
|
1476
1518
|
})(), (async () => {
|
|
1477
|
-
if (this.adClient) {
|
|
1478
|
-
const c = await this.adClient.
|
|
1519
|
+
if (this.adClient && typeof s != "string") {
|
|
1520
|
+
const c = await this.adClient.getAds(s);
|
|
1479
1521
|
o(c);
|
|
1480
1522
|
}
|
|
1481
1523
|
})();
|
|
@@ -1491,7 +1533,7 @@ class go {
|
|
|
1491
1533
|
this.config = {
|
|
1492
1534
|
...t,
|
|
1493
1535
|
// Strips off the trailing '/' from an endpointURL if one is accidentally added
|
|
1494
|
-
endpointURL:
|
|
1536
|
+
endpointURL: uo(t.endpointURL)
|
|
1495
1537
|
}, this.userId = "", typeof window < "u" && typeof customElements < "u" && r.sdkName === "@searchcraft/javascript-sdk" && globalThis.__scDefineCustomElements__ && globalThis.__scDefineCustomElements__(), typeof window < "u" && (this.initClients(this.config, r), this.initInputForms(), this.startObservingMutations());
|
|
1496
1538
|
}
|
|
1497
1539
|
initInputForms() {
|
|
@@ -1520,7 +1562,7 @@ class go {
|
|
|
1520
1562
|
initClients(t, r) {
|
|
1521
1563
|
setTimeout(async () => {
|
|
1522
1564
|
let s = this.config.userId;
|
|
1523
|
-
switch (s || (s = await Wn()), this.measureClient = new lo(t, r, s), this.searchClient = new
|
|
1565
|
+
switch (s || (s = await Wn()), this.measureClient = new lo(t, r, s), this.searchClient = new po(this, t, s), t.adSource) {
|
|
1524
1566
|
case "adMarketplace":
|
|
1525
1567
|
this.adClient = new ao(t);
|
|
1526
1568
|
break;
|
|
@@ -1531,6 +1573,9 @@ class go {
|
|
|
1531
1573
|
this.adClient = new no(t);
|
|
1532
1574
|
break;
|
|
1533
1575
|
}
|
|
1576
|
+
this.emitEvent("initialized", {
|
|
1577
|
+
name: "initialized"
|
|
1578
|
+
});
|
|
1534
1579
|
}, 300);
|
|
1535
1580
|
}
|
|
1536
1581
|
emitEvent(t, r) {
|
|
@@ -1587,16 +1632,16 @@ class go {
|
|
|
1587
1632
|
var Ls = {}, ar = {};
|
|
1588
1633
|
const os = (e) => {
|
|
1589
1634
|
let t;
|
|
1590
|
-
const r = /* @__PURE__ */ new Set(), s = (
|
|
1591
|
-
const p = typeof
|
|
1635
|
+
const r = /* @__PURE__ */ new Set(), s = (h, l) => {
|
|
1636
|
+
const p = typeof h == "function" ? h(t) : h;
|
|
1592
1637
|
if (!Object.is(p, t)) {
|
|
1593
|
-
const
|
|
1594
|
-
t = l ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((
|
|
1638
|
+
const g = t;
|
|
1639
|
+
t = l ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((k) => k(t, g));
|
|
1595
1640
|
}
|
|
1596
|
-
}, a = () => t, c = { setState: s, getState: a, getInitialState: () =>
|
|
1641
|
+
}, a = () => t, c = { setState: s, getState: a, getInitialState: () => u, subscribe: (h) => (r.add(h), () => r.delete(h)) }, u = t = e(s, a, c);
|
|
1597
1642
|
return c;
|
|
1598
|
-
},
|
|
1599
|
-
ar.createStore =
|
|
1643
|
+
}, go = (e) => e ? os(e) : os;
|
|
1644
|
+
ar.createStore = go;
|
|
1600
1645
|
var nr = {}, Os = { exports: {} }, w = {};
|
|
1601
1646
|
/**
|
|
1602
1647
|
* @license React
|
|
@@ -1607,8 +1652,8 @@ var nr = {}, Os = { exports: {} }, w = {};
|
|
|
1607
1652
|
* This source code is licensed under the MIT license found in the
|
|
1608
1653
|
* LICENSE file in the root directory of this source tree.
|
|
1609
1654
|
*/
|
|
1610
|
-
var or = Symbol.for("react.transitional.element"),
|
|
1611
|
-
function
|
|
1655
|
+
var or = Symbol.for("react.transitional.element"), vo = Symbol.for("react.portal"), bo = Symbol.for("react.fragment"), yo = Symbol.for("react.strict_mode"), Co = Symbol.for("react.profiler"), So = Symbol.for("react.consumer"), ko = Symbol.for("react.context"), wo = Symbol.for("react.forward_ref"), xo = Symbol.for("react.suspense"), Ro = Symbol.for("react.memo"), Fs = Symbol.for("react.lazy"), cs = Symbol.iterator;
|
|
1656
|
+
function Eo(e) {
|
|
1612
1657
|
return e === null || typeof e != "object" ? null : (e = cs && e[cs] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1613
1658
|
}
|
|
1614
1659
|
var Ds = {
|
|
@@ -1646,7 +1691,7 @@ var ir = cr.prototype = new Us();
|
|
|
1646
1691
|
ir.constructor = cr;
|
|
1647
1692
|
Hs(ir, Oe.prototype);
|
|
1648
1693
|
ir.isPureReactComponent = !0;
|
|
1649
|
-
var is = Array.isArray,
|
|
1694
|
+
var is = Array.isArray, L = { H: null, A: null, T: null, S: null }, zs = Object.prototype.hasOwnProperty;
|
|
1650
1695
|
function lr(e, t, r, s, a, o) {
|
|
1651
1696
|
return r = o.ref, {
|
|
1652
1697
|
$$typeof: or,
|
|
@@ -1656,7 +1701,7 @@ function lr(e, t, r, s, a, o) {
|
|
|
1656
1701
|
props: o
|
|
1657
1702
|
};
|
|
1658
1703
|
}
|
|
1659
|
-
function
|
|
1704
|
+
function To(e, t) {
|
|
1660
1705
|
return lr(
|
|
1661
1706
|
e.type,
|
|
1662
1707
|
t,
|
|
@@ -1669,7 +1714,7 @@ function Po(e, t) {
|
|
|
1669
1714
|
function ur(e) {
|
|
1670
1715
|
return typeof e == "object" && e !== null && e.$$typeof === or;
|
|
1671
1716
|
}
|
|
1672
|
-
function
|
|
1717
|
+
function Po(e) {
|
|
1673
1718
|
var t = { "=": "=0", ":": "=2" };
|
|
1674
1719
|
return "$" + e.replace(/[=:]/g, function(r) {
|
|
1675
1720
|
return t[r];
|
|
@@ -1677,11 +1722,11 @@ function $o(e) {
|
|
|
1677
1722
|
}
|
|
1678
1723
|
var ls = /\/+/g;
|
|
1679
1724
|
function Wt(e, t) {
|
|
1680
|
-
return typeof e == "object" && e !== null && e.key != null ?
|
|
1725
|
+
return typeof e == "object" && e !== null && e.key != null ? Po("" + e.key) : t.toString(36);
|
|
1681
1726
|
}
|
|
1682
1727
|
function us() {
|
|
1683
1728
|
}
|
|
1684
|
-
function
|
|
1729
|
+
function $o(e) {
|
|
1685
1730
|
switch (e.status) {
|
|
1686
1731
|
case "fulfilled":
|
|
1687
1732
|
return e.value;
|
|
@@ -1704,7 +1749,7 @@ function _o(e) {
|
|
|
1704
1749
|
}
|
|
1705
1750
|
throw e;
|
|
1706
1751
|
}
|
|
1707
|
-
function
|
|
1752
|
+
function Ae(e, t, r, s, a) {
|
|
1708
1753
|
var o = typeof e;
|
|
1709
1754
|
(o === "undefined" || o === "boolean") && (e = null);
|
|
1710
1755
|
var n = !1;
|
|
@@ -1719,11 +1764,11 @@ function Ie(e, t, r, s, a) {
|
|
|
1719
1764
|
case "object":
|
|
1720
1765
|
switch (e.$$typeof) {
|
|
1721
1766
|
case or:
|
|
1722
|
-
case
|
|
1767
|
+
case vo:
|
|
1723
1768
|
n = !0;
|
|
1724
1769
|
break;
|
|
1725
1770
|
case Fs:
|
|
1726
|
-
return n = e._init,
|
|
1771
|
+
return n = e._init, Ae(
|
|
1727
1772
|
n(e._payload),
|
|
1728
1773
|
t,
|
|
1729
1774
|
r,
|
|
@@ -1733,9 +1778,9 @@ function Ie(e, t, r, s, a) {
|
|
|
1733
1778
|
}
|
|
1734
1779
|
}
|
|
1735
1780
|
if (n)
|
|
1736
|
-
return a = a(e), n = s === "" ? "." + Wt(e, 0) : s, is(a) ? (r = "", n != null && (r = n.replace(ls, "$&/") + "/"),
|
|
1737
|
-
return
|
|
1738
|
-
})) : a != null && (ur(a) && (a =
|
|
1781
|
+
return a = a(e), n = s === "" ? "." + Wt(e, 0) : s, is(a) ? (r = "", n != null && (r = n.replace(ls, "$&/") + "/"), Ae(a, t, r, "", function(h) {
|
|
1782
|
+
return h;
|
|
1783
|
+
})) : a != null && (ur(a) && (a = To(
|
|
1739
1784
|
a,
|
|
1740
1785
|
r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
|
|
1741
1786
|
ls,
|
|
@@ -1745,17 +1790,17 @@ function Ie(e, t, r, s, a) {
|
|
|
1745
1790
|
n = 0;
|
|
1746
1791
|
var c = s === "" ? "." : s + ":";
|
|
1747
1792
|
if (is(e))
|
|
1748
|
-
for (var
|
|
1749
|
-
s = e[
|
|
1793
|
+
for (var u = 0; u < e.length; u++)
|
|
1794
|
+
s = e[u], o = c + Wt(s, u), n += Ae(
|
|
1750
1795
|
s,
|
|
1751
1796
|
t,
|
|
1752
1797
|
r,
|
|
1753
1798
|
o,
|
|
1754
1799
|
a
|
|
1755
1800
|
);
|
|
1756
|
-
else if (
|
|
1757
|
-
for (e =
|
|
1758
|
-
s = s.value, o = c + Wt(s,
|
|
1801
|
+
else if (u = Eo(e), typeof u == "function")
|
|
1802
|
+
for (e = u.call(e), u = 0; !(s = e.next()).done; )
|
|
1803
|
+
s = s.value, o = c + Wt(s, u++), n += Ae(
|
|
1759
1804
|
s,
|
|
1760
1805
|
t,
|
|
1761
1806
|
r,
|
|
@@ -1764,8 +1809,8 @@ function Ie(e, t, r, s, a) {
|
|
|
1764
1809
|
);
|
|
1765
1810
|
else if (o === "object") {
|
|
1766
1811
|
if (typeof e.then == "function")
|
|
1767
|
-
return
|
|
1768
|
-
|
|
1812
|
+
return Ae(
|
|
1813
|
+
$o(e),
|
|
1769
1814
|
t,
|
|
1770
1815
|
r,
|
|
1771
1816
|
s,
|
|
@@ -1780,11 +1825,11 @@ function Ie(e, t, r, s, a) {
|
|
|
1780
1825
|
function dt(e, t, r) {
|
|
1781
1826
|
if (e == null) return e;
|
|
1782
1827
|
var s = [], a = 0;
|
|
1783
|
-
return
|
|
1828
|
+
return Ae(e, s, "", "", function(o) {
|
|
1784
1829
|
return t.call(r, o, a++);
|
|
1785
1830
|
}), s;
|
|
1786
1831
|
}
|
|
1787
|
-
function
|
|
1832
|
+
function _o(e) {
|
|
1788
1833
|
if (e._status === -1) {
|
|
1789
1834
|
var t = e._result;
|
|
1790
1835
|
t = t(), t.then(
|
|
@@ -1847,12 +1892,12 @@ w.Children = {
|
|
|
1847
1892
|
}
|
|
1848
1893
|
};
|
|
1849
1894
|
w.Component = Oe;
|
|
1850
|
-
w.Fragment =
|
|
1851
|
-
w.Profiler =
|
|
1895
|
+
w.Fragment = bo;
|
|
1896
|
+
w.Profiler = Co;
|
|
1852
1897
|
w.PureComponent = cr;
|
|
1853
|
-
w.StrictMode =
|
|
1854
|
-
w.Suspense =
|
|
1855
|
-
w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
1898
|
+
w.StrictMode = yo;
|
|
1899
|
+
w.Suspense = xo;
|
|
1900
|
+
w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
|
|
1856
1901
|
w.act = function() {
|
|
1857
1902
|
throw Error("act(...) is not supported in production builds of React.");
|
|
1858
1903
|
};
|
|
@@ -1873,22 +1918,22 @@ w.cloneElement = function(e, t, r) {
|
|
|
1873
1918
|
var n = arguments.length - 2;
|
|
1874
1919
|
if (n === 1) s.children = r;
|
|
1875
1920
|
else if (1 < n) {
|
|
1876
|
-
for (var c = Array(n),
|
|
1877
|
-
c[
|
|
1921
|
+
for (var c = Array(n), u = 0; u < n; u++)
|
|
1922
|
+
c[u] = arguments[u + 2];
|
|
1878
1923
|
s.children = c;
|
|
1879
1924
|
}
|
|
1880
1925
|
return lr(e.type, a, void 0, void 0, o, s);
|
|
1881
1926
|
};
|
|
1882
1927
|
w.createContext = function(e) {
|
|
1883
1928
|
return e = {
|
|
1884
|
-
$$typeof:
|
|
1929
|
+
$$typeof: ko,
|
|
1885
1930
|
_currentValue: e,
|
|
1886
1931
|
_currentValue2: e,
|
|
1887
1932
|
_threadCount: 0,
|
|
1888
1933
|
Provider: null,
|
|
1889
1934
|
Consumer: null
|
|
1890
1935
|
}, e.Provider = e, e.Consumer = {
|
|
1891
|
-
$$typeof:
|
|
1936
|
+
$$typeof: So,
|
|
1892
1937
|
_context: e
|
|
1893
1938
|
}, e;
|
|
1894
1939
|
};
|
|
@@ -1900,8 +1945,8 @@ w.createElement = function(e, t, r) {
|
|
|
1900
1945
|
var n = arguments.length - 2;
|
|
1901
1946
|
if (n === 1) a.children = r;
|
|
1902
1947
|
else if (1 < n) {
|
|
1903
|
-
for (var c = Array(n),
|
|
1904
|
-
c[
|
|
1948
|
+
for (var c = Array(n), u = 0; u < n; u++)
|
|
1949
|
+
c[u] = arguments[u + 2];
|
|
1905
1950
|
a.children = c;
|
|
1906
1951
|
}
|
|
1907
1952
|
if (e && e.defaultProps)
|
|
@@ -1913,14 +1958,14 @@ w.createRef = function() {
|
|
|
1913
1958
|
return { current: null };
|
|
1914
1959
|
};
|
|
1915
1960
|
w.forwardRef = function(e) {
|
|
1916
|
-
return { $$typeof:
|
|
1961
|
+
return { $$typeof: wo, render: e };
|
|
1917
1962
|
};
|
|
1918
1963
|
w.isValidElement = ur;
|
|
1919
1964
|
w.lazy = function(e) {
|
|
1920
1965
|
return {
|
|
1921
1966
|
$$typeof: Fs,
|
|
1922
1967
|
_payload: { _status: -1, _result: e },
|
|
1923
|
-
_init:
|
|
1968
|
+
_init: _o
|
|
1924
1969
|
};
|
|
1925
1970
|
};
|
|
1926
1971
|
w.memo = function(e, t) {
|
|
@@ -1931,82 +1976,82 @@ w.memo = function(e, t) {
|
|
|
1931
1976
|
};
|
|
1932
1977
|
};
|
|
1933
1978
|
w.startTransition = function(e) {
|
|
1934
|
-
var t =
|
|
1935
|
-
|
|
1979
|
+
var t = L.T, r = {};
|
|
1980
|
+
L.T = r;
|
|
1936
1981
|
try {
|
|
1937
|
-
var s = e(), a =
|
|
1982
|
+
var s = e(), a = L.S;
|
|
1938
1983
|
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Io, hs);
|
|
1939
1984
|
} catch (o) {
|
|
1940
1985
|
hs(o);
|
|
1941
1986
|
} finally {
|
|
1942
|
-
|
|
1987
|
+
L.T = t;
|
|
1943
1988
|
}
|
|
1944
1989
|
};
|
|
1945
1990
|
w.unstable_useCacheRefresh = function() {
|
|
1946
|
-
return
|
|
1991
|
+
return L.H.useCacheRefresh();
|
|
1947
1992
|
};
|
|
1948
1993
|
w.use = function(e) {
|
|
1949
|
-
return
|
|
1994
|
+
return L.H.use(e);
|
|
1950
1995
|
};
|
|
1951
1996
|
w.useActionState = function(e, t, r) {
|
|
1952
|
-
return
|
|
1997
|
+
return L.H.useActionState(e, t, r);
|
|
1953
1998
|
};
|
|
1954
1999
|
w.useCallback = function(e, t) {
|
|
1955
|
-
return
|
|
2000
|
+
return L.H.useCallback(e, t);
|
|
1956
2001
|
};
|
|
1957
2002
|
w.useContext = function(e) {
|
|
1958
|
-
return
|
|
2003
|
+
return L.H.useContext(e);
|
|
1959
2004
|
};
|
|
1960
2005
|
w.useDebugValue = function() {
|
|
1961
2006
|
};
|
|
1962
2007
|
w.useDeferredValue = function(e, t) {
|
|
1963
|
-
return
|
|
2008
|
+
return L.H.useDeferredValue(e, t);
|
|
1964
2009
|
};
|
|
1965
2010
|
w.useEffect = function(e, t) {
|
|
1966
|
-
return
|
|
2011
|
+
return L.H.useEffect(e, t);
|
|
1967
2012
|
};
|
|
1968
2013
|
w.useId = function() {
|
|
1969
|
-
return
|
|
2014
|
+
return L.H.useId();
|
|
1970
2015
|
};
|
|
1971
2016
|
w.useImperativeHandle = function(e, t, r) {
|
|
1972
|
-
return
|
|
2017
|
+
return L.H.useImperativeHandle(e, t, r);
|
|
1973
2018
|
};
|
|
1974
2019
|
w.useInsertionEffect = function(e, t) {
|
|
1975
|
-
return
|
|
2020
|
+
return L.H.useInsertionEffect(e, t);
|
|
1976
2021
|
};
|
|
1977
2022
|
w.useLayoutEffect = function(e, t) {
|
|
1978
|
-
return
|
|
2023
|
+
return L.H.useLayoutEffect(e, t);
|
|
1979
2024
|
};
|
|
1980
2025
|
w.useMemo = function(e, t) {
|
|
1981
|
-
return
|
|
2026
|
+
return L.H.useMemo(e, t);
|
|
1982
2027
|
};
|
|
1983
2028
|
w.useOptimistic = function(e, t) {
|
|
1984
|
-
return
|
|
2029
|
+
return L.H.useOptimistic(e, t);
|
|
1985
2030
|
};
|
|
1986
2031
|
w.useReducer = function(e, t, r) {
|
|
1987
|
-
return
|
|
2032
|
+
return L.H.useReducer(e, t, r);
|
|
1988
2033
|
};
|
|
1989
2034
|
w.useRef = function(e) {
|
|
1990
|
-
return
|
|
2035
|
+
return L.H.useRef(e);
|
|
1991
2036
|
};
|
|
1992
2037
|
w.useState = function(e) {
|
|
1993
|
-
return
|
|
2038
|
+
return L.H.useState(e);
|
|
1994
2039
|
};
|
|
1995
2040
|
w.useSyncExternalStore = function(e, t, r) {
|
|
1996
|
-
return
|
|
2041
|
+
return L.H.useSyncExternalStore(
|
|
1997
2042
|
e,
|
|
1998
2043
|
t,
|
|
1999
2044
|
r
|
|
2000
2045
|
);
|
|
2001
2046
|
};
|
|
2002
2047
|
w.useTransition = function() {
|
|
2003
|
-
return
|
|
2048
|
+
return L.H.useTransition();
|
|
2004
2049
|
};
|
|
2005
2050
|
w.version = "19.0.0";
|
|
2006
2051
|
Os.exports = w;
|
|
2007
|
-
var ds = Os.exports,
|
|
2008
|
-
const
|
|
2009
|
-
function js(e, t =
|
|
2052
|
+
var ds = Os.exports, Ao = ar;
|
|
2053
|
+
const Mo = (e) => e;
|
|
2054
|
+
function js(e, t = Mo) {
|
|
2010
2055
|
const r = ds.useSyncExternalStore(
|
|
2011
2056
|
e.subscribe,
|
|
2012
2057
|
() => t(e.getState()),
|
|
@@ -2015,10 +2060,10 @@ function js(e, t = Lo) {
|
|
|
2015
2060
|
return ds.useDebugValue(r), r;
|
|
2016
2061
|
}
|
|
2017
2062
|
const fs = (e) => {
|
|
2018
|
-
const t =
|
|
2063
|
+
const t = Ao.createStore(e), r = (s) => js(t, s);
|
|
2019
2064
|
return Object.assign(r, t), r;
|
|
2020
|
-
},
|
|
2021
|
-
nr.create =
|
|
2065
|
+
}, Lo = (e) => e ? fs(e) : fs;
|
|
2066
|
+
nr.create = Lo;
|
|
2022
2067
|
nr.useStore = js;
|
|
2023
2068
|
(function(e) {
|
|
2024
2069
|
var t = ar, r = nr;
|
|
@@ -2045,10 +2090,12 @@ const ps = {
|
|
|
2045
2090
|
hotkeyModifier: "meta",
|
|
2046
2091
|
logger: void 0,
|
|
2047
2092
|
facetPathsForIndexFields: {},
|
|
2093
|
+
initialQuery: "",
|
|
2094
|
+
initialSearchClientResponseItems: [],
|
|
2048
2095
|
isPopoverVisible: !1,
|
|
2049
2096
|
isSearchInProgress: !1,
|
|
2050
|
-
searchTerm: "",
|
|
2051
2097
|
rangeValueForIndexFields: {},
|
|
2098
|
+
searchTerm: "",
|
|
2052
2099
|
searchMode: "fuzzy",
|
|
2053
2100
|
searchClientResponseItems: [],
|
|
2054
2101
|
searchResponseTimeTaken: void 0,
|
|
@@ -2056,34 +2103,40 @@ const ps = {
|
|
|
2056
2103
|
searchResultsCount: 0,
|
|
2057
2104
|
searchResultsPerPage: 20,
|
|
2058
2105
|
searchResultsPage: 1,
|
|
2059
|
-
sortType: "asc"
|
|
2106
|
+
sortType: "asc",
|
|
2107
|
+
// Callbacks
|
|
2108
|
+
afterInit: () => {
|
|
2109
|
+
}
|
|
2060
2110
|
}, $ = Ls.createStore((e, t) => {
|
|
2061
2111
|
const r = {
|
|
2062
|
-
|
|
2112
|
+
set: (a) => (e(a), t()),
|
|
2113
|
+
addFacetPathsForIndexField: (a) => r.set((o) => ({
|
|
2063
2114
|
facetPathsForIndexFields: {
|
|
2064
2115
|
...o.facetPathsForIndexFields,
|
|
2065
2116
|
[a.fieldName]: a
|
|
2066
2117
|
}
|
|
2067
2118
|
})),
|
|
2068
|
-
addRangeValueForIndexField: (a) =>
|
|
2119
|
+
addRangeValueForIndexField: (a) => r.set((o) => ({
|
|
2069
2120
|
rangeValueForIndexFields: {
|
|
2070
2121
|
...o.rangeValueForIndexFields,
|
|
2071
2122
|
[a.fieldName]: a
|
|
2072
2123
|
}
|
|
2073
2124
|
})),
|
|
2074
|
-
|
|
2125
|
+
getSearchcraftCore: () => {
|
|
2075
2126
|
const { core: a } = t();
|
|
2076
2127
|
return a;
|
|
2077
2128
|
},
|
|
2078
|
-
|
|
2079
|
-
const n =
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2129
|
+
init: (a, o = !1) => {
|
|
2130
|
+
const n = o ? new Nn({ logLevel: he.DEBUG }) : void 0, c = r.set({
|
|
2131
|
+
core: a,
|
|
2132
|
+
logger: n,
|
|
2133
|
+
searchResultsPerPage: (a == null ? void 0 : a.config.searchResultsPerPage) || 20
|
|
2134
|
+
});
|
|
2135
|
+
a == null || a.subscribe("initialized", () => {
|
|
2136
|
+
c.afterInit && c.afterInit(c);
|
|
2084
2137
|
});
|
|
2085
2138
|
},
|
|
2086
|
-
removeFacetPathsForIndexField: (a) =>
|
|
2139
|
+
removeFacetPathsForIndexField: (a) => r.set((o) => {
|
|
2087
2140
|
const n = o.facetPathsForIndexFields;
|
|
2088
2141
|
return delete n[a], {
|
|
2089
2142
|
facetPathsForIndexFields: {
|
|
@@ -2091,7 +2144,7 @@ const ps = {
|
|
|
2091
2144
|
}
|
|
2092
2145
|
};
|
|
2093
2146
|
}),
|
|
2094
|
-
removeRangeValueForIndexField: (a) =>
|
|
2147
|
+
removeRangeValueForIndexField: (a) => r.set((o) => {
|
|
2095
2148
|
const n = o.rangeValueForIndexFields;
|
|
2096
2149
|
return delete n[a], {
|
|
2097
2150
|
rangeValueForIndexFields: {
|
|
@@ -2100,17 +2153,17 @@ const ps = {
|
|
|
2100
2153
|
};
|
|
2101
2154
|
}),
|
|
2102
2155
|
resetFacetPaths: () => {
|
|
2103
|
-
|
|
2156
|
+
r.set({
|
|
2104
2157
|
facetPathsForIndexFields: {}
|
|
2105
2158
|
});
|
|
2106
2159
|
},
|
|
2107
2160
|
search: async () => {
|
|
2108
|
-
var
|
|
2161
|
+
var o, n;
|
|
2109
2162
|
const a = t();
|
|
2110
|
-
if ((
|
|
2163
|
+
if ((o = a.logger) == null || o.log(he.INFO, `Starting search with search term: "${a.searchTerm}"`), !a.core)
|
|
2111
2164
|
throw new Error("Searchcraft instance is not initialized.");
|
|
2112
2165
|
if (!a.searchTerm.trim()) {
|
|
2113
|
-
(
|
|
2166
|
+
(n = a.logger) == null || n.log(he.INFO, "No search request was made: search term was empty."), r.set({
|
|
2114
2167
|
searchClientResponseItems: [],
|
|
2115
2168
|
searchResultsCount: 0,
|
|
2116
2169
|
searchResultsPage: 1,
|
|
@@ -2118,24 +2171,7 @@ const ps = {
|
|
|
2118
2171
|
});
|
|
2119
2172
|
return;
|
|
2120
2173
|
}
|
|
2121
|
-
|
|
2122
|
-
const o = (u, l) => {
|
|
2123
|
-
var m, y;
|
|
2124
|
-
const p = u.data.facets;
|
|
2125
|
-
e((v) => ({
|
|
2126
|
-
isSearchInProgress: !1,
|
|
2127
|
-
searchClientResponseItems: l,
|
|
2128
|
-
searchResponseTimeTaken: u.data.time_taken || 0,
|
|
2129
|
-
searchResultsPage: (
|
|
2130
|
-
// reset to first page when response count changes
|
|
2131
|
-
u.data.count === v.searchResultsCount ? v.searchResultsPage : 1
|
|
2132
|
-
),
|
|
2133
|
-
searchResultsCount: u.data.count || 0
|
|
2134
|
-
})), p && e({ searchResponseFacetPrime: p }), (m = a.logger) == null || m.log(we.DEBUG, `Search results: ${JSON.stringify(l)}`), (y = a.logger) == null || y.log(we.DEBUG, `Facets from response: ${JSON.stringify(p)}`);
|
|
2135
|
-
}, n = (u) => {
|
|
2136
|
-
e({ adClientResponseItems: u });
|
|
2137
|
-
};
|
|
2138
|
-
a.core.getItems({
|
|
2174
|
+
r.set({ isSearchInProgress: !0 }), a.core.getResponseItems({
|
|
2139
2175
|
searchTerm: a.searchTerm,
|
|
2140
2176
|
mode: a.searchMode,
|
|
2141
2177
|
sort: a.sortType,
|
|
@@ -2143,18 +2179,53 @@ const ps = {
|
|
|
2143
2179
|
rangeValueForIndexFields: a.rangeValueForIndexFields,
|
|
2144
2180
|
offset: a.searchResultsPerPage ? a.searchResultsPerPage * (a.searchResultsPage - 1) : 0,
|
|
2145
2181
|
limit: a.searchResultsPerPage
|
|
2146
|
-
},
|
|
2182
|
+
}, r.setSearchClientResponseItemsFromResponse, r.setAdClientResponseItems);
|
|
2147
2183
|
},
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
})
|
|
2184
|
+
setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
|
|
2185
|
+
setSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2186
|
+
var l, p;
|
|
2187
|
+
const { facets: n, count: c = 0, time_taken: u = 0 } = a.data, h = r.set((g) => ({
|
|
2188
|
+
isSearchInProgress: !1,
|
|
2189
|
+
searchClientResponseItems: o,
|
|
2190
|
+
searchResponseTimeTaken: u,
|
|
2191
|
+
searchResultsPage: (
|
|
2192
|
+
// Reset to first page when response count changes
|
|
2193
|
+
c === g.searchResultsCount ? g.searchResultsPage : 1
|
|
2194
|
+
),
|
|
2195
|
+
searchResultsCount: c,
|
|
2196
|
+
...n && { searchResponseFacetPrime: n }
|
|
2197
|
+
}));
|
|
2198
|
+
(l = h.logger) == null || l.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`), (p = h.logger) == null || p.log(he.DEBUG, `Facets from response: ${JSON.stringify(n)}`);
|
|
2199
|
+
},
|
|
2200
|
+
setInitialSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2201
|
+
var h;
|
|
2202
|
+
const n = t(), { count: c = 0, time_taken: u = 0 } = a.data;
|
|
2203
|
+
r.set((l) => ({
|
|
2204
|
+
isSearchInProgress: !1,
|
|
2205
|
+
initialSearchClientResponseItems: o,
|
|
2206
|
+
searchResponseTimeTaken: u,
|
|
2207
|
+
searchResultsPage: (
|
|
2208
|
+
// Reset to first page when response count changes
|
|
2209
|
+
c === l.searchResultsCount ? l.searchResultsPage : 1
|
|
2210
|
+
),
|
|
2211
|
+
searchResultsCount: c
|
|
2212
|
+
})), (h = n.logger) == null || h.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`);
|
|
2213
|
+
},
|
|
2214
|
+
setInitialQuery: async (a) => {
|
|
2215
|
+
var n;
|
|
2216
|
+
const o = r.set({ initialQuery: a });
|
|
2217
|
+
if ((n = o.logger) == null || n.log(he.INFO, `Starting search with query: "${o.initialQuery}"`), !o.core)
|
|
2218
|
+
throw new Error("Searchcraft instance is not initialized.");
|
|
2219
|
+
await o.core.getResponseItems(a, r.setInitialSearchClientResponseItemsFromResponse, r.setAdClientResponseItems);
|
|
2152
2220
|
},
|
|
2153
|
-
|
|
2154
|
-
|
|
2221
|
+
setPopoverVisibility: (a) => r.set({
|
|
2222
|
+
isPopoverVisible: a
|
|
2223
|
+
}),
|
|
2224
|
+
setSearchMode: (a) => r.set({ searchMode: a }),
|
|
2225
|
+
setSortType: (a) => r.set({ sortType: a }),
|
|
2155
2226
|
setSearchTerm: (a) => {
|
|
2156
2227
|
const { core: o } = t();
|
|
2157
|
-
a.length === 0 && (o == null || o.handleInputCleared()),
|
|
2228
|
+
a.length === 0 && (o == null || o.handleInputCleared()), r.set({
|
|
2158
2229
|
searchTerm: a,
|
|
2159
2230
|
facetPathsForIndexFields: {},
|
|
2160
2231
|
...a.trim().length === 0 && {
|
|
@@ -2163,16 +2234,17 @@ const ps = {
|
|
|
2163
2234
|
}
|
|
2164
2235
|
});
|
|
2165
2236
|
},
|
|
2166
|
-
setSearchClientResponseItems: (a) =>
|
|
2237
|
+
setSearchClientResponseItems: (a) => r.set({ searchClientResponseItems: a }),
|
|
2238
|
+
setSearchResultsCount: (a) => r.set({ searchResultsCount: a }),
|
|
2167
2239
|
setSearchResultsPage: async (a) => {
|
|
2168
|
-
|
|
2240
|
+
r.set({ searchResultsPage: a }), await r.search();
|
|
2169
2241
|
},
|
|
2170
2242
|
setSearchResultsPerPage: async (a) => {
|
|
2171
|
-
|
|
2243
|
+
r.set({ searchResultsPerPage: a }), await r.search();
|
|
2172
2244
|
},
|
|
2173
2245
|
setHotKeyAndHotKeyModifier: (a, o) => {
|
|
2174
2246
|
const { hotkey: n, hotkeyModifier: c } = ps;
|
|
2175
|
-
|
|
2247
|
+
r.set({
|
|
2176
2248
|
hotkey: a || n,
|
|
2177
2249
|
hotkeyModifier: o || c
|
|
2178
2250
|
});
|
|
@@ -2183,12 +2255,12 @@ const ps = {
|
|
|
2183
2255
|
...r
|
|
2184
2256
|
};
|
|
2185
2257
|
});
|
|
2186
|
-
var
|
|
2258
|
+
var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Vs = { exports: {} };
|
|
2187
2259
|
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
|
2188
2260
|
(function(e, t) {
|
|
2189
2261
|
(function(r, s) {
|
|
2190
2262
|
e.exports = s();
|
|
2191
|
-
})(
|
|
2263
|
+
})(Oo, function() {
|
|
2192
2264
|
const {
|
|
2193
2265
|
entries: r,
|
|
2194
2266
|
setPrototypeOf: s,
|
|
@@ -2198,84 +2270,84 @@ var Fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2198
2270
|
} = Object;
|
|
2199
2271
|
let {
|
|
2200
2272
|
freeze: c,
|
|
2201
|
-
seal:
|
|
2202
|
-
create:
|
|
2273
|
+
seal: u,
|
|
2274
|
+
create: h
|
|
2203
2275
|
} = Object, {
|
|
2204
2276
|
apply: l,
|
|
2205
2277
|
construct: p
|
|
2206
2278
|
} = typeof Reflect < "u" && Reflect;
|
|
2207
|
-
c || (c = function(
|
|
2208
|
-
return
|
|
2209
|
-
}),
|
|
2210
|
-
return
|
|
2211
|
-
}), l || (l = function(
|
|
2212
|
-
return
|
|
2213
|
-
}), p || (p = function(
|
|
2214
|
-
return new
|
|
2279
|
+
c || (c = function(y) {
|
|
2280
|
+
return y;
|
|
2281
|
+
}), u || (u = function(y) {
|
|
2282
|
+
return y;
|
|
2283
|
+
}), l || (l = function(y, T, E) {
|
|
2284
|
+
return y.apply(T, E);
|
|
2285
|
+
}), p || (p = function(y, T) {
|
|
2286
|
+
return new y(...T);
|
|
2215
2287
|
});
|
|
2216
|
-
const
|
|
2217
|
-
function
|
|
2218
|
-
return function(
|
|
2219
|
-
for (var T = arguments.length,
|
|
2220
|
-
|
|
2221
|
-
return l(
|
|
2288
|
+
const g = q(Array.prototype.forEach), k = q(Array.prototype.lastIndexOf), b = q(Array.prototype.pop), P = q(Array.prototype.push), _ = q(Array.prototype.splice), H = q(String.prototype.toLowerCase), I = q(String.prototype.toString), Fe = q(String.prototype.match), De = q(String.prototype.replace), na = q(String.prototype.indexOf), oa = q(String.prototype.trim), ae = q(Object.prototype.hasOwnProperty), G = q(RegExp.prototype.test), He = ca(TypeError);
|
|
2289
|
+
function q(R) {
|
|
2290
|
+
return function(y) {
|
|
2291
|
+
for (var T = arguments.length, E = new Array(T > 1 ? T - 1 : 0), V = 1; V < T; V++)
|
|
2292
|
+
E[V - 1] = arguments[V];
|
|
2293
|
+
return l(R, y, E);
|
|
2222
2294
|
};
|
|
2223
2295
|
}
|
|
2224
|
-
function ca(
|
|
2296
|
+
function ca(R) {
|
|
2225
2297
|
return function() {
|
|
2226
|
-
for (var
|
|
2227
|
-
T[
|
|
2228
|
-
return p(
|
|
2298
|
+
for (var y = arguments.length, T = new Array(y), E = 0; E < y; E++)
|
|
2299
|
+
T[E] = arguments[E];
|
|
2300
|
+
return p(R, T);
|
|
2229
2301
|
};
|
|
2230
2302
|
}
|
|
2231
|
-
function x(
|
|
2232
|
-
let T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
2233
|
-
s && s(
|
|
2234
|
-
let
|
|
2235
|
-
for (;
|
|
2236
|
-
let
|
|
2237
|
-
if (typeof
|
|
2238
|
-
const ie = T(
|
|
2239
|
-
ie !==
|
|
2303
|
+
function x(R, y) {
|
|
2304
|
+
let T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : H;
|
|
2305
|
+
s && s(R, null);
|
|
2306
|
+
let E = y.length;
|
|
2307
|
+
for (; E--; ) {
|
|
2308
|
+
let V = y[E];
|
|
2309
|
+
if (typeof V == "string") {
|
|
2310
|
+
const ie = T(V);
|
|
2311
|
+
ie !== V && (a(y) || (y[E] = ie), V = ie);
|
|
2240
2312
|
}
|
|
2241
|
-
|
|
2313
|
+
R[V] = !0;
|
|
2242
2314
|
}
|
|
2243
|
-
return
|
|
2315
|
+
return R;
|
|
2244
2316
|
}
|
|
2245
|
-
function ia(
|
|
2246
|
-
for (let
|
|
2247
|
-
ae(
|
|
2248
|
-
return
|
|
2317
|
+
function ia(R) {
|
|
2318
|
+
for (let y = 0; y < R.length; y++)
|
|
2319
|
+
ae(R, y) || (R[y] = null);
|
|
2320
|
+
return R;
|
|
2249
2321
|
}
|
|
2250
|
-
function Se(
|
|
2251
|
-
const
|
|
2252
|
-
for (const [T,
|
|
2253
|
-
ae(
|
|
2254
|
-
return
|
|
2322
|
+
function Se(R) {
|
|
2323
|
+
const y = h(null);
|
|
2324
|
+
for (const [T, E] of r(R))
|
|
2325
|
+
ae(R, T) && (Array.isArray(E) ? y[T] = ia(E) : E && typeof E == "object" && E.constructor === Object ? y[T] = Se(E) : y[T] = E);
|
|
2326
|
+
return y;
|
|
2255
2327
|
}
|
|
2256
|
-
function Ne(
|
|
2257
|
-
for (;
|
|
2258
|
-
const
|
|
2259
|
-
if (
|
|
2260
|
-
if (
|
|
2261
|
-
return
|
|
2262
|
-
if (typeof
|
|
2263
|
-
return
|
|
2328
|
+
function Ne(R, y) {
|
|
2329
|
+
for (; R !== null; ) {
|
|
2330
|
+
const E = n(R, y);
|
|
2331
|
+
if (E) {
|
|
2332
|
+
if (E.get)
|
|
2333
|
+
return q(E.get);
|
|
2334
|
+
if (typeof E.value == "function")
|
|
2335
|
+
return q(E.value);
|
|
2264
2336
|
}
|
|
2265
|
-
|
|
2337
|
+
R = o(R);
|
|
2266
2338
|
}
|
|
2267
2339
|
function T() {
|
|
2268
2340
|
return null;
|
|
2269
2341
|
}
|
|
2270
2342
|
return T;
|
|
2271
2343
|
}
|
|
2272
|
-
const fr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), xt = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]),
|
|
2344
|
+
const fr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), xt = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Rt = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), la = c(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Et = c(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ua = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), pr = c(["#text"]), mr = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Tt = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), gr = c(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Je = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ha = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), da = u(/<%[\w\W]*|[\w\W]*%>/gm), fa = u(/\$\{[\w\W]*/gm), pa = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), ma = u(/^aria-[\-\w]+$/), vr = u(
|
|
2273
2345
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2274
2346
|
// eslint-disable-line no-useless-escape
|
|
2275
|
-
), ga =
|
|
2347
|
+
), ga = u(/^(?:\w+script|data):/i), va = u(
|
|
2276
2348
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2277
2349
|
// eslint-disable-line no-control-regex
|
|
2278
|
-
), br =
|
|
2350
|
+
), br = u(/^html$/i), ba = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
2279
2351
|
var yr = /* @__PURE__ */ Object.freeze({
|
|
2280
2352
|
__proto__: null,
|
|
2281
2353
|
ARIA_ATTR: ma,
|
|
@@ -2298,15 +2370,15 @@ var Fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2298
2370
|
document: 9
|
|
2299
2371
|
}, ya = function() {
|
|
2300
2372
|
return typeof window > "u" ? null : window;
|
|
2301
|
-
},
|
|
2302
|
-
if (typeof
|
|
2373
|
+
}, Ca = function(y, T) {
|
|
2374
|
+
if (typeof y != "object" || typeof y.createPolicy != "function")
|
|
2303
2375
|
return null;
|
|
2304
|
-
let
|
|
2305
|
-
const
|
|
2306
|
-
T && T.hasAttribute(
|
|
2307
|
-
const ie = "dompurify" + (
|
|
2376
|
+
let E = null;
|
|
2377
|
+
const V = "data-tt-policy-suffix";
|
|
2378
|
+
T && T.hasAttribute(V) && (E = T.getAttribute(V));
|
|
2379
|
+
const ie = "dompurify" + (E ? "#" + E : "");
|
|
2308
2380
|
try {
|
|
2309
|
-
return
|
|
2381
|
+
return y.createPolicy(ie, {
|
|
2310
2382
|
createHTML(xe) {
|
|
2311
2383
|
return xe;
|
|
2312
2384
|
},
|
|
@@ -2317,7 +2389,7 @@ var Fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2317
2389
|
} catch {
|
|
2318
2390
|
return console.warn("TrustedTypes policy " + ie + " could not be created."), null;
|
|
2319
2391
|
}
|
|
2320
|
-
},
|
|
2392
|
+
}, Cr = function() {
|
|
2321
2393
|
return {
|
|
2322
2394
|
afterSanitizeAttributes: [],
|
|
2323
2395
|
afterSanitizeElements: [],
|
|
@@ -2330,44 +2402,44 @@ var Fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2330
2402
|
uponSanitizeShadowNode: []
|
|
2331
2403
|
};
|
|
2332
2404
|
};
|
|
2333
|
-
function
|
|
2334
|
-
let
|
|
2335
|
-
const
|
|
2336
|
-
if (
|
|
2337
|
-
return
|
|
2405
|
+
function Sr() {
|
|
2406
|
+
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ya();
|
|
2407
|
+
const y = (C) => Sr(C);
|
|
2408
|
+
if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !== Ue.document || !R.Element)
|
|
2409
|
+
return y.isSupported = !1, y;
|
|
2338
2410
|
let {
|
|
2339
2411
|
document: T
|
|
2340
|
-
} =
|
|
2341
|
-
const
|
|
2412
|
+
} = R;
|
|
2413
|
+
const E = T, V = E.currentScript, {
|
|
2342
2414
|
DocumentFragment: ie,
|
|
2343
2415
|
HTMLTemplateElement: xe,
|
|
2344
2416
|
Node: Pt,
|
|
2345
|
-
Element:
|
|
2417
|
+
Element: kr,
|
|
2346
2418
|
NodeFilter: ze,
|
|
2347
|
-
NamedNodeMap:
|
|
2419
|
+
NamedNodeMap: ka = R.NamedNodeMap || R.MozNamedAttrMap,
|
|
2348
2420
|
HTMLFormElement: wa,
|
|
2349
2421
|
DOMParser: xa,
|
|
2350
2422
|
trustedTypes: et
|
|
2351
|
-
} =
|
|
2423
|
+
} = R, je = kr.prototype, Ra = Ne(je, "cloneNode"), Ea = Ne(je, "remove"), Ta = Ne(je, "nextSibling"), Pa = Ne(je, "childNodes"), tt = Ne(je, "parentNode");
|
|
2352
2424
|
if (typeof xe == "function") {
|
|
2353
|
-
const
|
|
2354
|
-
|
|
2425
|
+
const C = T.createElement("template");
|
|
2426
|
+
C.content && C.content.ownerDocument && (T = C.content.ownerDocument);
|
|
2355
2427
|
}
|
|
2356
|
-
let
|
|
2428
|
+
let Y, Ve = "";
|
|
2357
2429
|
const {
|
|
2358
2430
|
implementation: $t,
|
|
2359
2431
|
createNodeIterator: $a,
|
|
2360
2432
|
createDocumentFragment: _a,
|
|
2361
|
-
getElementsByTagName:
|
|
2433
|
+
getElementsByTagName: Ia
|
|
2362
2434
|
} = T, {
|
|
2363
|
-
importNode:
|
|
2364
|
-
} =
|
|
2365
|
-
let
|
|
2366
|
-
|
|
2435
|
+
importNode: Aa
|
|
2436
|
+
} = E;
|
|
2437
|
+
let Z = Cr();
|
|
2438
|
+
y.isSupported = typeof r == "function" && typeof tt == "function" && $t && $t.createHTMLDocument !== void 0;
|
|
2367
2439
|
const {
|
|
2368
2440
|
MUSTACHE_EXPR: _t,
|
|
2369
|
-
ERB_EXPR:
|
|
2370
|
-
TMPLIT_EXPR:
|
|
2441
|
+
ERB_EXPR: It,
|
|
2442
|
+
TMPLIT_EXPR: At,
|
|
2371
2443
|
DATA_ATTR: Ma,
|
|
2372
2444
|
ARIA_ATTR: La,
|
|
2373
2445
|
IS_SCRIPT_OR_DATA: Oa,
|
|
@@ -2376,11 +2448,11 @@ var Fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2376
2448
|
} = yr;
|
|
2377
2449
|
let {
|
|
2378
2450
|
IS_ALLOWED_URI: xr
|
|
2379
|
-
} = yr,
|
|
2380
|
-
const
|
|
2381
|
-
let
|
|
2382
|
-
const
|
|
2383
|
-
let
|
|
2451
|
+
} = yr, N = null;
|
|
2452
|
+
const Rr = x({}, [...fr, ...xt, ...Rt, ...Et, ...pr]);
|
|
2453
|
+
let z = null;
|
|
2454
|
+
const Er = x({}, [...mr, ...Tt, ...gr, ...Je]);
|
|
2455
|
+
let O = Object.seal(h(null, {
|
|
2384
2456
|
tagNameCheck: {
|
|
2385
2457
|
writable: !0,
|
|
2386
2458
|
configurable: !1,
|
|
@@ -2399,101 +2471,101 @@ var Fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2399
2471
|
enumerable: !0,
|
|
2400
2472
|
value: !1
|
|
2401
2473
|
}
|
|
2402
|
-
})), Be = null, Mt = null, Tr = !0, Lt = !0, Pr = !1, $r = !0,
|
|
2474
|
+
})), Be = null, Mt = null, Tr = !0, Lt = !0, Pr = !1, $r = !0, Re = !1, Ot = !0, ke = !1, Ft = !1, Dt = !1, Ee = !1, rt = !1, st = !1, _r = !0, Ir = !1;
|
|
2403
2475
|
const Da = "user-content-";
|
|
2404
2476
|
let Ht = !0, We = !1, Te = {}, Pe = null;
|
|
2405
|
-
const
|
|
2477
|
+
const Ar = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
2406
2478
|
let Mr = null;
|
|
2407
2479
|
const Lr = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2408
2480
|
let Nt = null;
|
|
2409
2481
|
const Or = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), at = "http://www.w3.org/1998/Math/MathML", nt = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
|
|
2410
2482
|
let $e = le, Ut = !1, zt = null;
|
|
2411
|
-
const Ha = x({}, [at, nt, le],
|
|
2483
|
+
const Ha = x({}, [at, nt, le], I);
|
|
2412
2484
|
let ot = x({}, ["mi", "mo", "mn", "ms", "mtext"]), ct = x({}, ["annotation-xml"]);
|
|
2413
2485
|
const Na = x({}, ["title", "style", "font", "a", "script"]);
|
|
2414
2486
|
let Ge = null;
|
|
2415
2487
|
const Ua = ["application/xhtml+xml", "text/html"], za = "text/html";
|
|
2416
|
-
let
|
|
2488
|
+
let U = null, _e = null;
|
|
2417
2489
|
const ja = T.createElement("form"), Fr = function(d) {
|
|
2418
2490
|
return d instanceof RegExp || d instanceof Function;
|
|
2419
2491
|
}, jt = function() {
|
|
2420
2492
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2421
2493
|
if (!(_e && _e === d)) {
|
|
2422
2494
|
if ((!d || typeof d != "object") && (d = {}), d = Se(d), Ge = // eslint-disable-next-line unicorn/prefer-includes
|
|
2423
|
-
Ua.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? za : d.PARSER_MEDIA_TYPE,
|
|
2495
|
+
Ua.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? za : d.PARSER_MEDIA_TYPE, U = Ge === "application/xhtml+xml" ? I : H, N = ae(d, "ALLOWED_TAGS") ? x({}, d.ALLOWED_TAGS, U) : Rr, z = ae(d, "ALLOWED_ATTR") ? x({}, d.ALLOWED_ATTR, U) : Er, zt = ae(d, "ALLOWED_NAMESPACES") ? x({}, d.ALLOWED_NAMESPACES, I) : Ha, Nt = ae(d, "ADD_URI_SAFE_ATTR") ? x(Se(Or), d.ADD_URI_SAFE_ATTR, U) : Or, Mr = ae(d, "ADD_DATA_URI_TAGS") ? x(Se(Lr), d.ADD_DATA_URI_TAGS, U) : Lr, Pe = ae(d, "FORBID_CONTENTS") ? x({}, d.FORBID_CONTENTS, U) : Ar, Be = ae(d, "FORBID_TAGS") ? x({}, d.FORBID_TAGS, U) : {}, Mt = ae(d, "FORBID_ATTR") ? x({}, d.FORBID_ATTR, U) : {}, Te = ae(d, "USE_PROFILES") ? d.USE_PROFILES : !1, Tr = d.ALLOW_ARIA_ATTR !== !1, Lt = d.ALLOW_DATA_ATTR !== !1, Pr = d.ALLOW_UNKNOWN_PROTOCOLS || !1, $r = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Re = d.SAFE_FOR_TEMPLATES || !1, Ot = d.SAFE_FOR_XML !== !1, ke = d.WHOLE_DOCUMENT || !1, Ee = d.RETURN_DOM || !1, rt = d.RETURN_DOM_FRAGMENT || !1, st = d.RETURN_TRUSTED_TYPE || !1, Dt = d.FORCE_BODY || !1, _r = d.SANITIZE_DOM !== !1, Ir = d.SANITIZE_NAMED_PROPS || !1, Ht = d.KEEP_CONTENT !== !1, We = d.IN_PLACE || !1, xr = d.ALLOWED_URI_REGEXP || vr, $e = d.NAMESPACE || le, ot = d.MATHML_TEXT_INTEGRATION_POINTS || ot, ct = d.HTML_INTEGRATION_POINTS || ct, O = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Fr(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Fr(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (O.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (O.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Re && (Lt = !1), rt && (Ee = !0), Te && (N = x({}, pr), z = [], Te.html === !0 && (x(N, fr), x(z, mr)), Te.svg === !0 && (x(N, xt), x(z, Tt), x(z, Je)), Te.svgFilters === !0 && (x(N, Rt), x(z, Tt), x(z, Je)), Te.mathMl === !0 && (x(N, Et), x(z, gr), x(z, Je))), d.ADD_TAGS && (N === Rr && (N = Se(N)), x(N, d.ADD_TAGS, U)), d.ADD_ATTR && (z === Er && (z = Se(z)), x(z, d.ADD_ATTR, U)), d.ADD_URI_SAFE_ATTR && x(Nt, d.ADD_URI_SAFE_ATTR, U), d.FORBID_CONTENTS && (Pe === Ar && (Pe = Se(Pe)), x(Pe, d.FORBID_CONTENTS, U)), Ht && (N["#text"] = !0), ke && x(N, ["html", "head", "body"]), N.table && (x(N, ["tbody"]), delete Be.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
2424
2496
|
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2425
2497
|
throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2426
2498
|
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2427
2499
|
throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2428
|
-
|
|
2500
|
+
Y = d.TRUSTED_TYPES_POLICY, Ve = Y.createHTML("");
|
|
2429
2501
|
} else
|
|
2430
|
-
|
|
2502
|
+
Y === void 0 && (Y = Ca(et, V)), Y !== null && typeof Ve == "string" && (Ve = Y.createHTML(""));
|
|
2431
2503
|
c && c(d), _e = d;
|
|
2432
2504
|
}
|
|
2433
|
-
}, Dr = x({}, [...xt, ...
|
|
2434
|
-
let
|
|
2435
|
-
(!
|
|
2505
|
+
}, Dr = x({}, [...xt, ...Rt, ...la]), Hr = x({}, [...Et, ...ua]), Va = function(d) {
|
|
2506
|
+
let m = tt(d);
|
|
2507
|
+
(!m || !m.tagName) && (m = {
|
|
2436
2508
|
namespaceURI: $e,
|
|
2437
2509
|
tagName: "template"
|
|
2438
2510
|
});
|
|
2439
|
-
const
|
|
2440
|
-
return zt[d.namespaceURI] ? d.namespaceURI === nt ?
|
|
2511
|
+
const v = H(d.tagName), M = H(m.tagName);
|
|
2512
|
+
return zt[d.namespaceURI] ? d.namespaceURI === nt ? m.namespaceURI === le ? v === "svg" : m.namespaceURI === at ? v === "svg" && (M === "annotation-xml" || ot[M]) : !!Dr[v] : d.namespaceURI === at ? m.namespaceURI === le ? v === "math" : m.namespaceURI === nt ? v === "math" && ct[M] : !!Hr[v] : d.namespaceURI === le ? m.namespaceURI === nt && !ct[M] || m.namespaceURI === at && !ot[M] ? !1 : !Hr[v] && (Na[v] || !Dr[v]) : !!(Ge === "application/xhtml+xml" && zt[d.namespaceURI]) : !1;
|
|
2441
2513
|
}, oe = function(d) {
|
|
2442
|
-
P(
|
|
2514
|
+
P(y.removed, {
|
|
2443
2515
|
element: d
|
|
2444
2516
|
});
|
|
2445
2517
|
try {
|
|
2446
2518
|
tt(d).removeChild(d);
|
|
2447
2519
|
} catch {
|
|
2448
|
-
|
|
2520
|
+
Ea(d);
|
|
2449
2521
|
}
|
|
2450
|
-
}, it = function(d,
|
|
2522
|
+
}, it = function(d, m) {
|
|
2451
2523
|
try {
|
|
2452
|
-
P(
|
|
2453
|
-
attribute:
|
|
2454
|
-
from:
|
|
2524
|
+
P(y.removed, {
|
|
2525
|
+
attribute: m.getAttributeNode(d),
|
|
2526
|
+
from: m
|
|
2455
2527
|
});
|
|
2456
2528
|
} catch {
|
|
2457
|
-
P(
|
|
2529
|
+
P(y.removed, {
|
|
2458
2530
|
attribute: null,
|
|
2459
|
-
from:
|
|
2531
|
+
from: m
|
|
2460
2532
|
});
|
|
2461
2533
|
}
|
|
2462
|
-
if (
|
|
2463
|
-
if (
|
|
2534
|
+
if (m.removeAttribute(d), d === "is")
|
|
2535
|
+
if (Ee || rt)
|
|
2464
2536
|
try {
|
|
2465
|
-
oe(
|
|
2537
|
+
oe(m);
|
|
2466
2538
|
} catch {
|
|
2467
2539
|
}
|
|
2468
2540
|
else
|
|
2469
2541
|
try {
|
|
2470
|
-
|
|
2542
|
+
m.setAttribute(d, "");
|
|
2471
2543
|
} catch {
|
|
2472
2544
|
}
|
|
2473
2545
|
}, Nr = function(d) {
|
|
2474
|
-
let
|
|
2546
|
+
let m = null, v = null;
|
|
2475
2547
|
if (Dt)
|
|
2476
2548
|
d = "<remove></remove>" + d;
|
|
2477
2549
|
else {
|
|
2478
|
-
const
|
|
2479
|
-
|
|
2550
|
+
const j = Fe(d, /^[\r\n\t ]+/);
|
|
2551
|
+
v = j && j[0];
|
|
2480
2552
|
}
|
|
2481
2553
|
Ge === "application/xhtml+xml" && $e === le && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
2482
|
-
const
|
|
2554
|
+
const M = Y ? Y.createHTML(d) : d;
|
|
2483
2555
|
if ($e === le)
|
|
2484
2556
|
try {
|
|
2485
|
-
|
|
2557
|
+
m = new xa().parseFromString(M, Ge);
|
|
2486
2558
|
} catch {
|
|
2487
2559
|
}
|
|
2488
|
-
if (!
|
|
2489
|
-
|
|
2560
|
+
if (!m || !m.documentElement) {
|
|
2561
|
+
m = $t.createDocument($e, "template", null);
|
|
2490
2562
|
try {
|
|
2491
|
-
|
|
2563
|
+
m.documentElement.innerHTML = Ut ? Ve : M;
|
|
2492
2564
|
} catch {
|
|
2493
2565
|
}
|
|
2494
2566
|
}
|
|
2495
|
-
const
|
|
2496
|
-
return d &&
|
|
2567
|
+
const B = m.body || m.documentElement;
|
|
2568
|
+
return d && v && B.insertBefore(T.createTextNode(v), B.childNodes[0] || null), $e === le ? Ia.call(m, ke ? "html" : "body")[0] : ke ? m.documentElement : B;
|
|
2497
2569
|
}, Ur = function(d) {
|
|
2498
2570
|
return $a.call(
|
|
2499
2571
|
d.ownerDocument || d,
|
|
@@ -2503,64 +2575,64 @@ var Fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2503
2575
|
null
|
|
2504
2576
|
);
|
|
2505
2577
|
}, Vt = function(d) {
|
|
2506
|
-
return d instanceof wa && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof
|
|
2578
|
+
return d instanceof wa && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof ka) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
|
|
2507
2579
|
}, zr = function(d) {
|
|
2508
2580
|
return typeof Pt == "function" && d instanceof Pt;
|
|
2509
2581
|
};
|
|
2510
|
-
function ue(
|
|
2511
|
-
|
|
2512
|
-
|
|
2582
|
+
function ue(C, d, m) {
|
|
2583
|
+
g(C, (v) => {
|
|
2584
|
+
v.call(y, d, m, _e);
|
|
2513
2585
|
});
|
|
2514
2586
|
}
|
|
2515
2587
|
const jr = function(d) {
|
|
2516
|
-
let
|
|
2517
|
-
if (ue(
|
|
2588
|
+
let m = null;
|
|
2589
|
+
if (ue(Z.beforeSanitizeElements, d, null), Vt(d))
|
|
2518
2590
|
return oe(d), !0;
|
|
2519
|
-
const
|
|
2520
|
-
if (ue(
|
|
2521
|
-
tagName:
|
|
2522
|
-
allowedTags:
|
|
2523
|
-
}), d.hasChildNodes() && !zr(d.firstElementChild) &&
|
|
2591
|
+
const v = U(d.nodeName);
|
|
2592
|
+
if (ue(Z.uponSanitizeElement, d, {
|
|
2593
|
+
tagName: v,
|
|
2594
|
+
allowedTags: N
|
|
2595
|
+
}), d.hasChildNodes() && !zr(d.firstElementChild) && G(/<[/\w]/g, d.innerHTML) && G(/<[/\w]/g, d.textContent) || d.nodeType === Ue.progressingInstruction || Ot && d.nodeType === Ue.comment && G(/<[/\w]/g, d.data))
|
|
2524
2596
|
return oe(d), !0;
|
|
2525
|
-
if (!
|
|
2526
|
-
if (!Be[
|
|
2597
|
+
if (!N[v] || Be[v]) {
|
|
2598
|
+
if (!Be[v] && Br(v) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, v) || O.tagNameCheck instanceof Function && O.tagNameCheck(v)))
|
|
2527
2599
|
return !1;
|
|
2528
|
-
if (Ht && !Pe[
|
|
2529
|
-
const
|
|
2530
|
-
if (
|
|
2531
|
-
const
|
|
2532
|
-
for (let
|
|
2533
|
-
const ce =
|
|
2534
|
-
ce.__removalCount = (d.__removalCount || 0) + 1,
|
|
2600
|
+
if (Ht && !Pe[v]) {
|
|
2601
|
+
const M = tt(d) || d.parentNode, B = Pa(d) || d.childNodes;
|
|
2602
|
+
if (B && M) {
|
|
2603
|
+
const j = B.length;
|
|
2604
|
+
for (let J = j - 1; J >= 0; --J) {
|
|
2605
|
+
const ce = Ra(B[J], !0);
|
|
2606
|
+
ce.__removalCount = (d.__removalCount || 0) + 1, M.insertBefore(ce, Ta(d));
|
|
2535
2607
|
}
|
|
2536
2608
|
}
|
|
2537
2609
|
}
|
|
2538
2610
|
return oe(d), !0;
|
|
2539
2611
|
}
|
|
2540
|
-
return d instanceof
|
|
2541
|
-
|
|
2542
|
-
}), d.textContent !==
|
|
2612
|
+
return d instanceof kr && !Va(d) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, d.innerHTML) ? (oe(d), !0) : (Re && d.nodeType === Ue.text && (m = d.textContent, g([_t, It, At], (M) => {
|
|
2613
|
+
m = De(m, M, " ");
|
|
2614
|
+
}), d.textContent !== m && (P(y.removed, {
|
|
2543
2615
|
element: d.cloneNode()
|
|
2544
|
-
}), d.textContent =
|
|
2545
|
-
}, Vr = function(d,
|
|
2546
|
-
if (_r && (
|
|
2616
|
+
}), d.textContent = m)), ue(Z.afterSanitizeElements, d, null), !1);
|
|
2617
|
+
}, Vr = function(d, m, v) {
|
|
2618
|
+
if (_r && (m === "id" || m === "name") && (v in T || v in ja))
|
|
2547
2619
|
return !1;
|
|
2548
|
-
if (!(Lt && !Mt[
|
|
2549
|
-
if (!(Tr &&
|
|
2550
|
-
if (!
|
|
2620
|
+
if (!(Lt && !Mt[m] && G(Ma, m))) {
|
|
2621
|
+
if (!(Tr && G(La, m))) {
|
|
2622
|
+
if (!z[m] || Mt[m]) {
|
|
2551
2623
|
if (
|
|
2552
2624
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2553
2625
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2554
2626
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2555
|
-
!(Br(d) && (
|
|
2627
|
+
!(Br(d) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, d) || O.tagNameCheck instanceof Function && O.tagNameCheck(d)) && (O.attributeNameCheck instanceof RegExp && G(O.attributeNameCheck, m) || O.attributeNameCheck instanceof Function && O.attributeNameCheck(m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2556
2628
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2557
|
-
|
|
2629
|
+
m === "is" && O.allowCustomizedBuiltInElements && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, v) || O.tagNameCheck instanceof Function && O.tagNameCheck(v)))
|
|
2558
2630
|
) return !1;
|
|
2559
|
-
} else if (!Nt[
|
|
2560
|
-
if (!
|
|
2561
|
-
if (!((
|
|
2562
|
-
if (!(Pr && !
|
|
2563
|
-
if (
|
|
2631
|
+
} else if (!Nt[m]) {
|
|
2632
|
+
if (!G(xr, De(v, wr, ""))) {
|
|
2633
|
+
if (!((m === "src" || m === "xlink:href" || m === "href") && d !== "script" && na(v, "data:") === 0 && Mr[d])) {
|
|
2634
|
+
if (!(Pr && !G(Oa, De(v, wr, "")))) {
|
|
2635
|
+
if (v)
|
|
2564
2636
|
return !1;
|
|
2565
2637
|
}
|
|
2566
2638
|
}
|
|
@@ -2572,156 +2644,156 @@ var Fo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2572
2644
|
}, Br = function(d) {
|
|
2573
2645
|
return d !== "annotation-xml" && Fe(d, Fa);
|
|
2574
2646
|
}, Wr = function(d) {
|
|
2575
|
-
ue(
|
|
2647
|
+
ue(Z.beforeSanitizeAttributes, d, null);
|
|
2576
2648
|
const {
|
|
2577
|
-
attributes:
|
|
2649
|
+
attributes: m
|
|
2578
2650
|
} = d;
|
|
2579
|
-
if (!
|
|
2651
|
+
if (!m || Vt(d))
|
|
2580
2652
|
return;
|
|
2581
|
-
const
|
|
2653
|
+
const v = {
|
|
2582
2654
|
attrName: "",
|
|
2583
2655
|
attrValue: "",
|
|
2584
2656
|
keepAttr: !0,
|
|
2585
|
-
allowedAttributes:
|
|
2657
|
+
allowedAttributes: z,
|
|
2586
2658
|
forceKeepAttr: void 0
|
|
2587
2659
|
};
|
|
2588
|
-
let
|
|
2589
|
-
for (;
|
|
2590
|
-
const
|
|
2591
|
-
name:
|
|
2592
|
-
namespaceURI:
|
|
2660
|
+
let M = m.length;
|
|
2661
|
+
for (; M--; ) {
|
|
2662
|
+
const B = m[M], {
|
|
2663
|
+
name: j,
|
|
2664
|
+
namespaceURI: J,
|
|
2593
2665
|
value: ce
|
|
2594
|
-
} =
|
|
2595
|
-
let
|
|
2596
|
-
if (
|
|
2597
|
-
it(
|
|
2666
|
+
} = B, qe = U(j);
|
|
2667
|
+
let Q = j === "value" ? ce : oa(ce);
|
|
2668
|
+
if (v.attrName = qe, v.attrValue = Q, v.keepAttr = !0, v.forceKeepAttr = void 0, ue(Z.uponSanitizeAttribute, d, v), Q = v.attrValue, Ir && (qe === "id" || qe === "name") && (it(j, d), Q = Da + Q), Ot && G(/((--!?|])>)|<\/(style|title)/i, Q)) {
|
|
2669
|
+
it(j, d);
|
|
2598
2670
|
continue;
|
|
2599
2671
|
}
|
|
2600
|
-
if (
|
|
2672
|
+
if (v.forceKeepAttr || (it(j, d), !v.keepAttr))
|
|
2601
2673
|
continue;
|
|
2602
|
-
if (!$r &&
|
|
2603
|
-
it(
|
|
2674
|
+
if (!$r && G(/\/>/i, Q)) {
|
|
2675
|
+
it(j, d);
|
|
2604
2676
|
continue;
|
|
2605
2677
|
}
|
|
2606
|
-
|
|
2607
|
-
|
|
2678
|
+
Re && g([_t, It, At], (qr) => {
|
|
2679
|
+
Q = De(Q, qr, " ");
|
|
2608
2680
|
});
|
|
2609
|
-
const Gr =
|
|
2610
|
-
if (Vr(Gr, qe,
|
|
2611
|
-
if (
|
|
2681
|
+
const Gr = U(d.nodeName);
|
|
2682
|
+
if (Vr(Gr, qe, Q)) {
|
|
2683
|
+
if (Y && typeof et == "object" && typeof et.getAttributeType == "function" && !J)
|
|
2612
2684
|
switch (et.getAttributeType(Gr, qe)) {
|
|
2613
2685
|
case "TrustedHTML": {
|
|
2614
|
-
|
|
2686
|
+
Q = Y.createHTML(Q);
|
|
2615
2687
|
break;
|
|
2616
2688
|
}
|
|
2617
2689
|
case "TrustedScriptURL": {
|
|
2618
|
-
|
|
2690
|
+
Q = Y.createScriptURL(Q);
|
|
2619
2691
|
break;
|
|
2620
2692
|
}
|
|
2621
2693
|
}
|
|
2622
2694
|
try {
|
|
2623
|
-
|
|
2695
|
+
J ? d.setAttributeNS(J, j, Q) : d.setAttribute(j, Q), Vt(d) ? oe(d) : b(y.removed);
|
|
2624
2696
|
} catch {
|
|
2625
2697
|
}
|
|
2626
2698
|
}
|
|
2627
2699
|
}
|
|
2628
|
-
ue(
|
|
2629
|
-
}, Ba = function
|
|
2630
|
-
let
|
|
2631
|
-
const
|
|
2632
|
-
for (ue(
|
|
2633
|
-
ue(
|
|
2634
|
-
ue(
|
|
2700
|
+
ue(Z.afterSanitizeAttributes, d, null);
|
|
2701
|
+
}, Ba = function C(d) {
|
|
2702
|
+
let m = null;
|
|
2703
|
+
const v = Ur(d);
|
|
2704
|
+
for (ue(Z.beforeSanitizeShadowDOM, d, null); m = v.nextNode(); )
|
|
2705
|
+
ue(Z.uponSanitizeShadowNode, m, null), jr(m), Wr(m), m.content instanceof ie && C(m.content);
|
|
2706
|
+
ue(Z.afterSanitizeShadowDOM, d, null);
|
|
2635
2707
|
};
|
|
2636
|
-
return
|
|
2637
|
-
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
2638
|
-
if (Ut = !
|
|
2639
|
-
if (typeof
|
|
2640
|
-
if (
|
|
2708
|
+
return y.sanitize = function(C) {
|
|
2709
|
+
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, v = null, M = null, B = null;
|
|
2710
|
+
if (Ut = !C, Ut && (C = "<!-->"), typeof C != "string" && !zr(C))
|
|
2711
|
+
if (typeof C.toString == "function") {
|
|
2712
|
+
if (C = C.toString(), typeof C != "string")
|
|
2641
2713
|
throw He("dirty is not a string, aborting");
|
|
2642
2714
|
} else
|
|
2643
2715
|
throw He("toString is not a function");
|
|
2644
|
-
if (!
|
|
2645
|
-
return
|
|
2646
|
-
if (Ft || jt(d),
|
|
2647
|
-
if (
|
|
2648
|
-
const ce =
|
|
2649
|
-
if (!
|
|
2716
|
+
if (!y.isSupported)
|
|
2717
|
+
return C;
|
|
2718
|
+
if (Ft || jt(d), y.removed = [], typeof C == "string" && (We = !1), We) {
|
|
2719
|
+
if (C.nodeName) {
|
|
2720
|
+
const ce = U(C.nodeName);
|
|
2721
|
+
if (!N[ce] || Be[ce])
|
|
2650
2722
|
throw He("root node is forbidden and cannot be sanitized in-place");
|
|
2651
2723
|
}
|
|
2652
|
-
} else if (
|
|
2653
|
-
|
|
2724
|
+
} else if (C instanceof Pt)
|
|
2725
|
+
m = Nr("<!---->"), v = m.ownerDocument.importNode(C, !0), v.nodeType === Ue.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? m = v : m.appendChild(v);
|
|
2654
2726
|
else {
|
|
2655
|
-
if (!
|
|
2656
|
-
|
|
2657
|
-
return
|
|
2658
|
-
if (
|
|
2659
|
-
return
|
|
2727
|
+
if (!Ee && !Re && !ke && // eslint-disable-next-line unicorn/prefer-includes
|
|
2728
|
+
C.indexOf("<") === -1)
|
|
2729
|
+
return Y && st ? Y.createHTML(C) : C;
|
|
2730
|
+
if (m = Nr(C), !m)
|
|
2731
|
+
return Ee ? null : st ? Ve : "";
|
|
2660
2732
|
}
|
|
2661
|
-
|
|
2662
|
-
const
|
|
2663
|
-
for (;
|
|
2664
|
-
jr(
|
|
2733
|
+
m && Dt && oe(m.firstChild);
|
|
2734
|
+
const j = Ur(We ? C : m);
|
|
2735
|
+
for (; M = j.nextNode(); )
|
|
2736
|
+
jr(M), Wr(M), M.content instanceof ie && Ba(M.content);
|
|
2665
2737
|
if (We)
|
|
2666
|
-
return
|
|
2667
|
-
if (
|
|
2738
|
+
return C;
|
|
2739
|
+
if (Ee) {
|
|
2668
2740
|
if (rt)
|
|
2669
|
-
for (
|
|
2670
|
-
|
|
2741
|
+
for (B = _a.call(m.ownerDocument); m.firstChild; )
|
|
2742
|
+
B.appendChild(m.firstChild);
|
|
2671
2743
|
else
|
|
2672
|
-
|
|
2673
|
-
return (
|
|
2744
|
+
B = m;
|
|
2745
|
+
return (z.shadowroot || z.shadowrootmode) && (B = Aa.call(E, B, !0)), B;
|
|
2674
2746
|
}
|
|
2675
|
-
let
|
|
2676
|
-
return ke &&
|
|
2677
|
-
` +
|
|
2678
|
-
|
|
2679
|
-
}),
|
|
2680
|
-
},
|
|
2681
|
-
let
|
|
2682
|
-
jt(
|
|
2683
|
-
},
|
|
2747
|
+
let J = ke ? m.outerHTML : m.innerHTML;
|
|
2748
|
+
return ke && N["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(br, m.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
|
|
2749
|
+
` + J), Re && g([_t, It, At], (ce) => {
|
|
2750
|
+
J = De(J, ce, " ");
|
|
2751
|
+
}), Y && st ? Y.createHTML(J) : J;
|
|
2752
|
+
}, y.setConfig = function() {
|
|
2753
|
+
let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2754
|
+
jt(C), Ft = !0;
|
|
2755
|
+
}, y.clearConfig = function() {
|
|
2684
2756
|
_e = null, Ft = !1;
|
|
2685
|
-
},
|
|
2757
|
+
}, y.isValidAttribute = function(C, d, m) {
|
|
2686
2758
|
_e || jt({});
|
|
2687
|
-
const
|
|
2688
|
-
return Vr(
|
|
2689
|
-
},
|
|
2690
|
-
typeof d == "function" && P(
|
|
2691
|
-
},
|
|
2759
|
+
const v = U(C), M = U(d);
|
|
2760
|
+
return Vr(v, M, m);
|
|
2761
|
+
}, y.addHook = function(C, d) {
|
|
2762
|
+
typeof d == "function" && P(Z[C], d);
|
|
2763
|
+
}, y.removeHook = function(C, d) {
|
|
2692
2764
|
if (d !== void 0) {
|
|
2693
|
-
const
|
|
2694
|
-
return
|
|
2765
|
+
const m = k(Z[C], d);
|
|
2766
|
+
return m === -1 ? void 0 : _(Z[C], m, 1)[0];
|
|
2695
2767
|
}
|
|
2696
|
-
return
|
|
2697
|
-
},
|
|
2698
|
-
|
|
2699
|
-
},
|
|
2700
|
-
|
|
2701
|
-
},
|
|
2768
|
+
return b(Z[C]);
|
|
2769
|
+
}, y.removeHooks = function(C) {
|
|
2770
|
+
Z[C] = [];
|
|
2771
|
+
}, y.removeAllHooks = function() {
|
|
2772
|
+
Z = Cr();
|
|
2773
|
+
}, y;
|
|
2702
2774
|
}
|
|
2703
|
-
var
|
|
2704
|
-
return
|
|
2775
|
+
var Sa = Sr();
|
|
2776
|
+
return Sa;
|
|
2705
2777
|
});
|
|
2706
2778
|
})(Vs);
|
|
2707
|
-
const
|
|
2779
|
+
const Fo = Vs.exports, Ct = (e, ...t) => {
|
|
2708
2780
|
let r = e[0];
|
|
2709
2781
|
for (let s = 0; s < t.length; s++)
|
|
2710
|
-
r +=
|
|
2782
|
+
r += Fo.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
|
|
2711
2783
|
return r || "";
|
|
2712
|
-
},
|
|
2713
|
-
let
|
|
2784
|
+
}, Do = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
2785
|
+
let X = (e = 21) => {
|
|
2714
2786
|
let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
2715
2787
|
for (; e--; )
|
|
2716
|
-
t +=
|
|
2788
|
+
t += Do[r[e] & 63];
|
|
2717
2789
|
return t;
|
|
2718
2790
|
};
|
|
2719
|
-
const
|
|
2791
|
+
const Ho = /* @__PURE__ */ D(class extends F {
|
|
2720
2792
|
constructor() {
|
|
2721
2793
|
super();
|
|
2722
2794
|
f(this, "adSource", "Custom");
|
|
2723
2795
|
f(this, "adClientResponseItem");
|
|
2724
|
-
f(this, "adContainerId",
|
|
2796
|
+
f(this, "adContainerId", X());
|
|
2725
2797
|
f(this, "searchTerm");
|
|
2726
2798
|
f(this, "isSearchInProgress", !1);
|
|
2727
2799
|
f(this, "core");
|
|
@@ -2767,7 +2839,7 @@ const No = /* @__PURE__ */ F(class extends O {
|
|
|
2767
2839
|
return r && (a = r({
|
|
2768
2840
|
searchTerm: this.searchTerm || "",
|
|
2769
2841
|
adContainerId: this.adContainerId
|
|
2770
|
-
}, { html:
|
|
2842
|
+
}, { html: Ct })), i("div", { class: "searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
|
|
2771
2843
|
}
|
|
2772
2844
|
renderNativoAd() {
|
|
2773
2845
|
var s;
|
|
@@ -2803,18 +2875,18 @@ const No = /* @__PURE__ */ F(class extends O {
|
|
|
2803
2875
|
searchTerm: [32],
|
|
2804
2876
|
isSearchInProgress: [32]
|
|
2805
2877
|
}]);
|
|
2806
|
-
function
|
|
2878
|
+
function St() {
|
|
2807
2879
|
if (typeof customElements > "u")
|
|
2808
2880
|
return;
|
|
2809
2881
|
["searchcraft-ad"].forEach((t) => {
|
|
2810
2882
|
switch (t) {
|
|
2811
2883
|
case "searchcraft-ad":
|
|
2812
|
-
customElements.get(t) || customElements.define(t,
|
|
2884
|
+
customElements.get(t) || customElements.define(t, Ho);
|
|
2813
2885
|
break;
|
|
2814
2886
|
}
|
|
2815
2887
|
});
|
|
2816
2888
|
}
|
|
2817
|
-
const
|
|
2889
|
+
const No = St;
|
|
2818
2890
|
var Bs = { exports: {} };
|
|
2819
2891
|
/*!
|
|
2820
2892
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -2851,7 +2923,7 @@ var Bs = { exports: {} };
|
|
|
2851
2923
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2852
2924
|
})();
|
|
2853
2925
|
})(Bs);
|
|
2854
|
-
const se = Bs.exports,
|
|
2926
|
+
const se = Bs.exports, Uo = /* @__PURE__ */ D(class extends F {
|
|
2855
2927
|
constructor() {
|
|
2856
2928
|
super();
|
|
2857
2929
|
/**
|
|
@@ -2889,7 +2961,7 @@ const se = Bs.exports, zo = /* @__PURE__ */ F(class extends O {
|
|
|
2889
2961
|
f(this, "handleButtonClick", () => {
|
|
2890
2962
|
this.buttonClick.emit();
|
|
2891
2963
|
});
|
|
2892
|
-
this.__registerHost(), this.buttonClick =
|
|
2964
|
+
this.__registerHost(), this.buttonClick = be(this, "buttonClick");
|
|
2893
2965
|
}
|
|
2894
2966
|
render() {
|
|
2895
2967
|
return i("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: se("searchcraft-button", {
|
|
@@ -2907,18 +2979,18 @@ const se = Bs.exports, zo = /* @__PURE__ */ F(class extends O {
|
|
|
2907
2979
|
label: [1],
|
|
2908
2980
|
type: [1]
|
|
2909
2981
|
}]);
|
|
2910
|
-
function
|
|
2982
|
+
function kt() {
|
|
2911
2983
|
if (typeof customElements > "u")
|
|
2912
2984
|
return;
|
|
2913
2985
|
["searchcraft-button"].forEach((t) => {
|
|
2914
2986
|
switch (t) {
|
|
2915
2987
|
case "searchcraft-button":
|
|
2916
|
-
customElements.get(t) || customElements.define(t,
|
|
2988
|
+
customElements.get(t) || customElements.define(t, Uo);
|
|
2917
2989
|
break;
|
|
2918
2990
|
}
|
|
2919
2991
|
});
|
|
2920
2992
|
}
|
|
2921
|
-
const
|
|
2993
|
+
const zo = kt, jo = /* @__PURE__ */ D(class extends F {
|
|
2922
2994
|
constructor() {
|
|
2923
2995
|
super(), this.__registerHost();
|
|
2924
2996
|
}
|
|
@@ -2932,19 +3004,19 @@ function wt() {
|
|
|
2932
3004
|
["searchcraft-error-message"].forEach((t) => {
|
|
2933
3005
|
switch (t) {
|
|
2934
3006
|
case "searchcraft-error-message":
|
|
2935
|
-
customElements.get(t) || customElements.define(t,
|
|
3007
|
+
customElements.get(t) || customElements.define(t, jo);
|
|
2936
3008
|
break;
|
|
2937
3009
|
}
|
|
2938
3010
|
});
|
|
2939
3011
|
}
|
|
2940
|
-
const
|
|
3012
|
+
const Vo = wt;
|
|
2941
3013
|
function Ws(e, t) {
|
|
2942
3014
|
const r = { ...e };
|
|
2943
3015
|
for (const s in t)
|
|
2944
3016
|
t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Ws(e[s], t[s]) : r[s] = t[s]);
|
|
2945
3017
|
return r;
|
|
2946
3018
|
}
|
|
2947
|
-
function
|
|
3019
|
+
function Bo(e) {
|
|
2948
3020
|
return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
|
|
2949
3021
|
}
|
|
2950
3022
|
function ms(e) {
|
|
@@ -2959,7 +3031,7 @@ function ms(e) {
|
|
|
2959
3031
|
};
|
|
2960
3032
|
return r(e), t;
|
|
2961
3033
|
}
|
|
2962
|
-
function
|
|
3034
|
+
function Wo(e) {
|
|
2963
3035
|
const t = {
|
|
2964
3036
|
count: 0,
|
|
2965
3037
|
path: "/",
|
|
@@ -2971,13 +3043,13 @@ function Go(e) {
|
|
|
2971
3043
|
return;
|
|
2972
3044
|
const a = s.path.substring(1).split("/");
|
|
2973
3045
|
let o = t, n = "";
|
|
2974
|
-
a.forEach((c,
|
|
2975
|
-
const
|
|
2976
|
-
o.children[
|
|
3046
|
+
a.forEach((c, u) => {
|
|
3047
|
+
const h = `${n}/${c}`;
|
|
3048
|
+
o.children[h] || (o.children[h] = {
|
|
2977
3049
|
count: 0,
|
|
2978
|
-
path:
|
|
3050
|
+
path: h,
|
|
2979
3051
|
children: {}
|
|
2980
|
-
}),
|
|
3052
|
+
}), u === a.length - 1 && (o.children[h].count = s.count), n = h, o = o.children[h];
|
|
2981
3053
|
});
|
|
2982
3054
|
}), t;
|
|
2983
3055
|
}
|
|
@@ -2989,11 +3061,11 @@ function Gs(e) {
|
|
|
2989
3061
|
};
|
|
2990
3062
|
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Gs(r))), t;
|
|
2991
3063
|
}
|
|
2992
|
-
function
|
|
3064
|
+
function Go(e, t) {
|
|
2993
3065
|
const r = Object.keys(e), s = Object.keys(t), a = new Set(s.filter((n) => n.split("/").length > 2).map((n) => n.substring(0, n.lastIndexOf("/"))));
|
|
2994
3066
|
return Object.fromEntries(r.filter((n) => !a.has(n.substring(0, n.lastIndexOf("/")))).map((n) => [n, e[n]]));
|
|
2995
3067
|
}
|
|
2996
|
-
function
|
|
3068
|
+
function qo(e, t, r) {
|
|
2997
3069
|
const s = t[e], a = r[e], o = {
|
|
2998
3070
|
count: 0,
|
|
2999
3071
|
path: "/",
|
|
@@ -3002,12 +3074,12 @@ function Yo(e, t, r) {
|
|
|
3002
3074
|
count: 0,
|
|
3003
3075
|
path: "/",
|
|
3004
3076
|
children: a
|
|
3005
|
-
}, c = ms(o),
|
|
3077
|
+
}, c = ms(o), u = ms(n), h = Go(c, u), l = Ws(h, u), p = Wo(l), g = Gs(p);
|
|
3006
3078
|
return {
|
|
3007
|
-
[e]:
|
|
3079
|
+
[e]: g.children
|
|
3008
3080
|
};
|
|
3009
3081
|
}
|
|
3010
|
-
const
|
|
3082
|
+
const Yo = /* @__PURE__ */ D(class extends F {
|
|
3011
3083
|
constructor() {
|
|
3012
3084
|
super();
|
|
3013
3085
|
/**
|
|
@@ -3036,7 +3108,7 @@ const Zo = /* @__PURE__ */ F(class extends O {
|
|
|
3036
3108
|
const o = r.path.substring(s.path.length).replace(/^\//, ""), n = r.count;
|
|
3037
3109
|
return `${o.replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} (${n})`;
|
|
3038
3110
|
});
|
|
3039
|
-
this.__registerHost(), this.facetSelectionUpdated =
|
|
3111
|
+
this.__registerHost(), this.facetSelectionUpdated = be(this, "facetSelectionUpdated");
|
|
3040
3112
|
}
|
|
3041
3113
|
handleStateUpdate(r) {
|
|
3042
3114
|
const s = r.searchResponseFacetPrime, a = r.searchResponseTimeTaken;
|
|
@@ -3044,7 +3116,7 @@ const Zo = /* @__PURE__ */ F(class extends O {
|
|
|
3044
3116
|
if ((r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode || r.sortType !== this.lastSortType) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && s) {
|
|
3045
3117
|
this.facetRoot = void 0;
|
|
3046
3118
|
const o = s.find((n) => this.fieldName === Object.keys(n)[0]);
|
|
3047
|
-
this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot =
|
|
3119
|
+
this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = qo(this.fieldName, this.baseFacetRoot, o));
|
|
3048
3120
|
}
|
|
3049
3121
|
this.lastSearchTerm = r.searchTerm, this.lastSearchMode = r.searchMode, this.lastSortType = r.sortType, this.lastTimeTaken = a;
|
|
3050
3122
|
}
|
|
@@ -3066,10 +3138,10 @@ const Zo = /* @__PURE__ */ F(class extends O {
|
|
|
3066
3138
|
[r]: !0
|
|
3067
3139
|
};
|
|
3068
3140
|
else {
|
|
3069
|
-
const c = Object.keys(this.selectedPaths).filter((
|
|
3070
|
-
this.selectedPaths = c.reduce((
|
|
3141
|
+
const c = Object.keys(this.selectedPaths).filter((u) => !u.includes(r));
|
|
3142
|
+
this.selectedPaths = c.reduce((u, h) => (u[h] = !0, u), {});
|
|
3071
3143
|
}
|
|
3072
|
-
const a = Object.keys(this.selectedPaths).filter((c) => this.selectedPaths[c]), o =
|
|
3144
|
+
const a = Object.keys(this.selectedPaths).filter((c) => this.selectedPaths[c]), o = Bo(a);
|
|
3073
3145
|
(n = this.facetSelectionUpdated) == null || n.emit({ paths: o });
|
|
3074
3146
|
}
|
|
3075
3147
|
render() {
|
|
@@ -3082,7 +3154,7 @@ const Zo = /* @__PURE__ */ F(class extends O {
|
|
|
3082
3154
|
const o = a.children ? (n = a.children) == null ? void 0 : n.some((c) => this.selectedPaths[c.path]) : !1;
|
|
3083
3155
|
return i("div", { key: a.path, class: "searchcraft-facet-list-item" }, i("label", { class: "searchcraft-facet-list-checkbox-label" }, i("div", { class: "searchcraft-facet-list-checkbox-input-wrapper" }, i("input", { class: "searchcraft-facet-list-checkbox-input", checked: this.selectedPaths[a.path], onChange: (c) => this.handleCheckboxChange(a.path), type: "checkbox" }), o ? i("div", { class: "searchcraft-facet-list-checkbox-input-dash-icon" }, i("svg", { width: "14", height: "3", viewBox: "0 0 14 3", fill: "none" }, i("title", null, "Checkbox dash"), i("line", { x1: "1.5", y1: "1.5", x2: "12.5", y2: "1.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" }))) : i("div", { class: "searchcraft-facet-list-checkbox-input-check-icon" }, i("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, i("title", null, "Checkbox check"), i("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.formatLabel(a)), a.children && a.children.length > 0 && i("div", { class: "searchcraft-facet-child-list" }, a.children.map((c) => i("label", { key: c.path, class: "searchcraft-facet-list-checkbox-label searchcraft-facet-child-list-checkbox-label", style: {
|
|
3084
3156
|
display: this.selectedPaths[a.path] ? "flex" : "none"
|
|
3085
|
-
} }, i("div", { class: "searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper" }, i("input", { class: "searchcraft-facet-list-checkbox-input searchcraft-facet-child-list-checkbox-input", checked: this.selectedPaths[c.path], onChange: (
|
|
3157
|
+
} }, i("div", { class: "searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper" }, i("input", { class: "searchcraft-facet-list-checkbox-input searchcraft-facet-child-list-checkbox-input", checked: this.selectedPaths[c.path], onChange: (u) => {
|
|
3086
3158
|
this.handleCheckboxChange(c.path);
|
|
3087
3159
|
}, type: "checkbox" }), i("div", { class: "searchcraft-facet-list-checkbox-input-check-icon searchcraft-facet-child-list-checkbox-input-check-icon" }, i("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, i("title", null, "Checkbox check"), i("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.formatSubLabel(c, a)))));
|
|
3088
3160
|
}));
|
|
@@ -3092,12 +3164,7 @@ const Zo = /* @__PURE__ */ F(class extends O {
|
|
|
3092
3164
|
baseFacetRoot: [32],
|
|
3093
3165
|
facetRoot: [32],
|
|
3094
3166
|
selectedPaths: [32],
|
|
3095
|
-
lastTimeTaken: [32]
|
|
3096
|
-
hasNewSearchTerm: [32],
|
|
3097
|
-
lastSearchTerm: [32],
|
|
3098
|
-
lastSearchMode: [32],
|
|
3099
|
-
lastSortType: [32],
|
|
3100
|
-
unsubscribe: [32]
|
|
3167
|
+
lastTimeTaken: [32]
|
|
3101
3168
|
}]);
|
|
3102
3169
|
function qs() {
|
|
3103
3170
|
if (typeof customElements > "u")
|
|
@@ -3105,12 +3172,12 @@ function qs() {
|
|
|
3105
3172
|
["searchcraft-facet-list"].forEach((t) => {
|
|
3106
3173
|
switch (t) {
|
|
3107
3174
|
case "searchcraft-facet-list":
|
|
3108
|
-
customElements.get(t) || customElements.define(t,
|
|
3175
|
+
customElements.get(t) || customElements.define(t, Yo);
|
|
3109
3176
|
break;
|
|
3110
3177
|
}
|
|
3111
3178
|
});
|
|
3112
3179
|
}
|
|
3113
|
-
const
|
|
3180
|
+
const Zo = qs;
|
|
3114
3181
|
function Ye(e, t) {
|
|
3115
3182
|
if (e && t)
|
|
3116
3183
|
return t.fieldNames.map((r) => {
|
|
@@ -3118,7 +3185,7 @@ function Ye(e, t) {
|
|
|
3118
3185
|
if (s)
|
|
3119
3186
|
switch (r.dataType) {
|
|
3120
3187
|
case "date": {
|
|
3121
|
-
s = Qo(s);
|
|
3188
|
+
s = Qo(s, r.dateFormatLocale, r.dateFormatOptions);
|
|
3122
3189
|
break;
|
|
3123
3190
|
}
|
|
3124
3191
|
case "number": {
|
|
@@ -3146,11 +3213,19 @@ function Ys(e) {
|
|
|
3146
3213
|
function Zs(e) {
|
|
3147
3214
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
3148
3215
|
}
|
|
3149
|
-
function Qo(e
|
|
3150
|
-
|
|
3151
|
-
|
|
3216
|
+
function Qo(e, t = "en-US", r = {
|
|
3217
|
+
day: "numeric",
|
|
3218
|
+
month: "long",
|
|
3219
|
+
year: "numeric"
|
|
3220
|
+
}) {
|
|
3221
|
+
const s = new Date(e), o = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), n = 30 * 24 * 60 * 60 * 1e3;
|
|
3222
|
+
if (o < n) {
|
|
3223
|
+
const c = Math.trunc(o / 1e3), u = Math.trunc(c / 60), h = Math.trunc(u / 60), l = Math.trunc(h / 24), p = new Intl.RelativeTimeFormat(t, r);
|
|
3224
|
+
return l >= 1 ? p.format(-l, "day") : h >= 1 ? p.format(-h, "hour") : u >= 1 ? p.format(-u, "minute") : p.format(0, "second");
|
|
3225
|
+
}
|
|
3226
|
+
return new Intl.DateTimeFormat(t, r).format(s);
|
|
3152
3227
|
}
|
|
3153
|
-
const
|
|
3228
|
+
const Ko = /* @__PURE__ */ D(class extends F {
|
|
3154
3229
|
constructor() {
|
|
3155
3230
|
super();
|
|
3156
3231
|
/**
|
|
@@ -3189,7 +3264,7 @@ const Xo = /* @__PURE__ */ F(class extends O {
|
|
|
3189
3264
|
const s = r.target, a = Number.parseInt(s.value, 10);
|
|
3190
3265
|
this.lastFocusedHandle = "max", a >= this.startValue ? (this.endValue = a, this.emitUpdate()) : (this.endValue = this.startValue, s.value = `${this.startValue}`);
|
|
3191
3266
|
});
|
|
3192
|
-
this.__registerHost(), this.rangeChanged =
|
|
3267
|
+
this.__registerHost(), this.rangeChanged = be(this, "rangeChanged");
|
|
3193
3268
|
}
|
|
3194
3269
|
componentDidLoad() {
|
|
3195
3270
|
this.startValue = this.min, this.endValue = this.max;
|
|
@@ -3210,18 +3285,18 @@ const Xo = /* @__PURE__ */ F(class extends O {
|
|
|
3210
3285
|
startValue: [32],
|
|
3211
3286
|
lastFocusedHandle: [32]
|
|
3212
3287
|
}]);
|
|
3213
|
-
function
|
|
3288
|
+
function Qs() {
|
|
3214
3289
|
if (typeof customElements > "u")
|
|
3215
3290
|
return;
|
|
3216
3291
|
["searchcraft-slider"].forEach((t) => {
|
|
3217
3292
|
switch (t) {
|
|
3218
3293
|
case "searchcraft-slider":
|
|
3219
|
-
customElements.get(t) || customElements.define(t,
|
|
3294
|
+
customElements.get(t) || customElements.define(t, Ko);
|
|
3220
3295
|
break;
|
|
3221
3296
|
}
|
|
3222
3297
|
});
|
|
3223
3298
|
}
|
|
3224
|
-
const
|
|
3299
|
+
const Xo = /* @__PURE__ */ D(class extends F {
|
|
3225
3300
|
constructor() {
|
|
3226
3301
|
super();
|
|
3227
3302
|
/**
|
|
@@ -3243,7 +3318,7 @@ const Jo = /* @__PURE__ */ F(class extends O {
|
|
|
3243
3318
|
var r;
|
|
3244
3319
|
this.isActive = !this.isActive, (r = this.toggleUpdated) == null || r.emit(this.isActive);
|
|
3245
3320
|
});
|
|
3246
|
-
this.__registerHost(), this.toggleUpdated =
|
|
3321
|
+
this.__registerHost(), this.toggleUpdated = be(this, "toggleUpdated");
|
|
3247
3322
|
}
|
|
3248
3323
|
connectedCallback() {
|
|
3249
3324
|
this.unsubscribe = $.subscribe((r) => {
|
|
@@ -3266,18 +3341,18 @@ const Jo = /* @__PURE__ */ F(class extends O {
|
|
|
3266
3341
|
unsubscribe: [32],
|
|
3267
3342
|
lastSearchTerm: [32]
|
|
3268
3343
|
}]);
|
|
3269
|
-
function
|
|
3344
|
+
function Ks() {
|
|
3270
3345
|
if (typeof customElements > "u")
|
|
3271
3346
|
return;
|
|
3272
3347
|
["searchcraft-toggle-button"].forEach((t) => {
|
|
3273
3348
|
switch (t) {
|
|
3274
3349
|
case "searchcraft-toggle-button":
|
|
3275
|
-
customElements.get(t) || customElements.define(t,
|
|
3350
|
+
customElements.get(t) || customElements.define(t, Xo);
|
|
3276
3351
|
break;
|
|
3277
3352
|
}
|
|
3278
3353
|
});
|
|
3279
3354
|
}
|
|
3280
|
-
const
|
|
3355
|
+
const Jo = /* @__PURE__ */ D(class extends F {
|
|
3281
3356
|
constructor() {
|
|
3282
3357
|
super();
|
|
3283
3358
|
/**
|
|
@@ -3367,27 +3442,27 @@ const ec = /* @__PURE__ */ F(class extends O {
|
|
|
3367
3442
|
unsubscribe: [32],
|
|
3368
3443
|
lastSearchTerm: [32]
|
|
3369
3444
|
}]);
|
|
3370
|
-
function
|
|
3445
|
+
function ec() {
|
|
3371
3446
|
if (typeof customElements > "u")
|
|
3372
3447
|
return;
|
|
3373
3448
|
["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
|
|
3374
3449
|
switch (t) {
|
|
3375
3450
|
case "searchcraft-filter-panel":
|
|
3376
|
-
customElements.get(t) || customElements.define(t,
|
|
3451
|
+
customElements.get(t) || customElements.define(t, Jo);
|
|
3377
3452
|
break;
|
|
3378
3453
|
case "searchcraft-facet-list":
|
|
3379
3454
|
customElements.get(t) || qs();
|
|
3380
3455
|
break;
|
|
3381
3456
|
case "searchcraft-slider":
|
|
3382
|
-
customElements.get(t) ||
|
|
3457
|
+
customElements.get(t) || Qs();
|
|
3383
3458
|
break;
|
|
3384
3459
|
case "searchcraft-toggle-button":
|
|
3385
|
-
customElements.get(t) ||
|
|
3460
|
+
customElements.get(t) || Ks();
|
|
3386
3461
|
break;
|
|
3387
3462
|
}
|
|
3388
3463
|
});
|
|
3389
3464
|
}
|
|
3390
|
-
const
|
|
3465
|
+
const tc = ec, rc = /* @__PURE__ */ D(class extends F {
|
|
3391
3466
|
constructor() {
|
|
3392
3467
|
super();
|
|
3393
3468
|
/**
|
|
@@ -3410,12 +3485,12 @@ function hr() {
|
|
|
3410
3485
|
["searchcraft-input-label"].forEach((t) => {
|
|
3411
3486
|
switch (t) {
|
|
3412
3487
|
case "searchcraft-input-label":
|
|
3413
|
-
customElements.get(t) || customElements.define(t,
|
|
3488
|
+
customElements.get(t) || customElements.define(t, rc);
|
|
3414
3489
|
break;
|
|
3415
3490
|
}
|
|
3416
3491
|
});
|
|
3417
3492
|
}
|
|
3418
|
-
const
|
|
3493
|
+
const sc = /* @__PURE__ */ D(class extends F {
|
|
3419
3494
|
constructor() {
|
|
3420
3495
|
super();
|
|
3421
3496
|
/**
|
|
@@ -3454,39 +3529,53 @@ const ac = /* @__PURE__ */ F(class extends O {
|
|
|
3454
3529
|
f(this, "searchTerm", "");
|
|
3455
3530
|
f(this, "error", !1);
|
|
3456
3531
|
f(this, "core");
|
|
3457
|
-
f(this, "
|
|
3458
|
-
f(this, "
|
|
3532
|
+
f(this, "searchcraftStore", $.getState());
|
|
3533
|
+
f(this, "unsubscribe", () => {
|
|
3534
|
+
});
|
|
3535
|
+
f(this, "handleInput", (r) => {
|
|
3459
3536
|
const s = r.target;
|
|
3460
3537
|
this.inputValue = s.value, this.autoSearch && this.performSearch(s.value);
|
|
3461
3538
|
});
|
|
3462
3539
|
f(this, "performSearch", async (r) => {
|
|
3463
|
-
if (r !==
|
|
3464
|
-
this.
|
|
3540
|
+
if (r !== this.searchTerm) {
|
|
3541
|
+
this.searchcraftStore.setSearchTerm(r.trim()), this.error = !1;
|
|
3465
3542
|
try {
|
|
3466
|
-
await this.
|
|
3543
|
+
await this.searchcraftStore.search();
|
|
3467
3544
|
} catch (s) {
|
|
3468
|
-
console.
|
|
3545
|
+
console.error(`Search for ${r} failed:`, s), this.error = !0;
|
|
3469
3546
|
}
|
|
3470
3547
|
}
|
|
3471
3548
|
});
|
|
3549
|
+
f(this, "handleReset", () => {
|
|
3550
|
+
this.searchcraftStore.setSearchResultsCount(0), this.searchcraftStore.setSearchTerm(""), this.searchcraftStore.setSearchClientResponseItems([]), this.error = !1;
|
|
3551
|
+
});
|
|
3472
3552
|
f(this, "handleClearInput", () => {
|
|
3473
|
-
this.
|
|
3553
|
+
this.handleReset();
|
|
3474
3554
|
});
|
|
3475
3555
|
f(this, "handleFormSubmit", async (r) => {
|
|
3476
|
-
r.preventDefault(), await this.performSearch(this.
|
|
3556
|
+
r.preventDefault(), await this.performSearch(this.inputValue);
|
|
3477
3557
|
});
|
|
3478
|
-
this.__registerHost(), this.inputFocus =
|
|
3558
|
+
this.__registerHost(), this.inputFocus = be(this, "inputFocus"), this.inputBlur = be(this, "inputBlur"), this.inputInit = be(this, "inputInit");
|
|
3479
3559
|
}
|
|
3480
3560
|
init() {
|
|
3481
3561
|
var r;
|
|
3482
|
-
this.core && (this.
|
|
3562
|
+
this.core && (this.searchcraftStore.init(this.core), (r = this.inputInit) == null || r.emit());
|
|
3483
3563
|
}
|
|
3484
|
-
|
|
3564
|
+
onCoreChange() {
|
|
3485
3565
|
this.init();
|
|
3486
3566
|
}
|
|
3487
|
-
|
|
3567
|
+
connectedCallback() {
|
|
3488
3568
|
this.init();
|
|
3489
3569
|
}
|
|
3570
|
+
componentDidLoad() {
|
|
3571
|
+
this.unsubscribe = $.subscribe((r) => {
|
|
3572
|
+
this.searchTerm = r.searchTerm, this.inputValue = r.searchTerm;
|
|
3573
|
+
});
|
|
3574
|
+
}
|
|
3575
|
+
disconnectedCallback() {
|
|
3576
|
+
var r;
|
|
3577
|
+
this.handleReset(), (r = this.unsubscribe) == null || r.call(this);
|
|
3578
|
+
}
|
|
3490
3579
|
render() {
|
|
3491
3580
|
const r = this.inputValue.length > 0, s = se("searchcraft-input-form-grid", {
|
|
3492
3581
|
"searchcraft-input-form-grid-button-left": this.buttonPlacement === "left",
|
|
@@ -3495,15 +3584,15 @@ const ac = /* @__PURE__ */ F(class extends O {
|
|
|
3495
3584
|
}), o = {
|
|
3496
3585
|
gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
|
|
3497
3586
|
};
|
|
3498
|
-
return i("form", { key: "
|
|
3587
|
+
return i("form", { key: "6af89b2ab634e0f3e0ef575f98f33d091602f95a", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, i("div", { key: "93fea8e2b80468afeb6014122d5b749d74bfaf35", class: s, style: o }, i("div", { key: "1e5a416843b99aec68c4672a9c78f607347dc9d1", class: "searchcraft-input-form-button" }, i("searchcraft-button", { key: "c38c1df0ce20f914ed76fbc0acad5a22b40e6fff", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && i("div", { key: "2169a4466b0fdc8075c0dc74da442aef28a84d65", class: "searchcraft-input-form-label" }, i("searchcraft-input-label", { key: "a263b5aa2a4d50d297f06c1fe9e6afb64763f097", label: this.inputLabel })), this.error && i("div", { key: "49be2ac0f2d01916e5ea533e6406ee9d4d932178", class: "searchcraft-input-form-error-message" }, i("searchcraft-error-message", { key: "310c9aebcf580d4abe92d288c6b70a5adf083f8e" }, "Something went wrong.")), i("div", { key: "f4702e368815e049586e97cf59541b2dc5460fc0", class: "searchcraft-input-form-input-wrapper" }, i("input", { key: "a8cddd5e937eee1d30fb98eaaa3dbffe96c192ce", autoComplete: "off", class: "searchcraft-input-form-input", onFocus: () => {
|
|
3499
3588
|
var n;
|
|
3500
3589
|
return (n = this.inputFocus) == null ? void 0 : n.emit();
|
|
3501
3590
|
}, onBlur: () => {
|
|
3502
3591
|
var n;
|
|
3503
3592
|
return (n = this.inputBlur) == null ? void 0 : n.emit();
|
|
3504
3593
|
}, onInput: (n) => {
|
|
3505
|
-
this.
|
|
3506
|
-
}, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), i("div", { key: "
|
|
3594
|
+
this.handleInput(n);
|
|
3595
|
+
}, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), i("div", { key: "616b4dde1ba016cf6a2fba8594a99a3a3f584ef5", class: "searchcraft-input-form-input-icon" }, i("svg", { key: "daaef561677a06a76813375e429be7e053b8b122", class: "searchcraft-input-form-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, i("title", { key: "e6d82ca64dd9bfc663813c239d11e5652aa0b9a1" }, "Search icon"), i("path", { key: "1df856c98c2063c1d0c80027255935f73b513939", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && i("button", { key: "8dd6dfefe0ba909657bd436b559ce35b5004f9ae", type: "button", class: "searchcraft-input-form-clear-button", onClick: this.handleClearInput }, i("svg", { key: "bcdba04d5c0949cacc8e1962d2b3cd40ad995de6", class: "searchcraft-input-form-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, i("title", { key: "e01e7fb9b23daf9434520c4c68c0d7539b37d1f8" }, "Clear icon"), i("path", { key: "ce526d332b6e352cd9cf6008ee2f7497c6769782", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
|
|
3507
3596
|
}
|
|
3508
3597
|
static get watchers() {
|
|
3509
3598
|
return {
|
|
@@ -3529,10 +3618,10 @@ function Xs() {
|
|
|
3529
3618
|
["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
|
|
3530
3619
|
switch (t) {
|
|
3531
3620
|
case "searchcraft-input-form":
|
|
3532
|
-
customElements.get(t) || customElements.define(t,
|
|
3621
|
+
customElements.get(t) || customElements.define(t, sc);
|
|
3533
3622
|
break;
|
|
3534
3623
|
case "searchcraft-button":
|
|
3535
|
-
customElements.get(t) ||
|
|
3624
|
+
customElements.get(t) || kt();
|
|
3536
3625
|
break;
|
|
3537
3626
|
case "searchcraft-error-message":
|
|
3538
3627
|
customElements.get(t) || wt();
|
|
@@ -3543,7 +3632,7 @@ function Xs() {
|
|
|
3543
3632
|
}
|
|
3544
3633
|
});
|
|
3545
3634
|
}
|
|
3546
|
-
const
|
|
3635
|
+
const ac = Xs, nc = hr, oc = /* @__PURE__ */ D(class extends F {
|
|
3547
3636
|
constructor() {
|
|
3548
3637
|
super();
|
|
3549
3638
|
// store vars
|
|
@@ -3607,21 +3696,21 @@ const nc = Xs, oc = hr, cc = /* @__PURE__ */ F(class extends O {
|
|
|
3607
3696
|
searchResultsRangeMax: [32],
|
|
3608
3697
|
setSearchResultsPage: [32]
|
|
3609
3698
|
}]);
|
|
3610
|
-
function
|
|
3699
|
+
function cc() {
|
|
3611
3700
|
if (typeof customElements > "u")
|
|
3612
3701
|
return;
|
|
3613
3702
|
["searchcraft-pagination", "searchcraft-button"].forEach((t) => {
|
|
3614
3703
|
switch (t) {
|
|
3615
3704
|
case "searchcraft-pagination":
|
|
3616
|
-
customElements.get(t) || customElements.define(t,
|
|
3705
|
+
customElements.get(t) || customElements.define(t, oc);
|
|
3617
3706
|
break;
|
|
3618
3707
|
case "searchcraft-button":
|
|
3619
|
-
customElements.get(t) ||
|
|
3708
|
+
customElements.get(t) || kt();
|
|
3620
3709
|
break;
|
|
3621
3710
|
}
|
|
3622
3711
|
});
|
|
3623
3712
|
}
|
|
3624
|
-
const
|
|
3713
|
+
const ic = cc, lc = /* @__PURE__ */ D(class extends F {
|
|
3625
3714
|
constructor() {
|
|
3626
3715
|
super();
|
|
3627
3716
|
/**
|
|
@@ -3692,7 +3781,7 @@ const lc = ic, uc = /* @__PURE__ */ F(class extends O {
|
|
|
3692
3781
|
}
|
|
3693
3782
|
}
|
|
3694
3783
|
render() {
|
|
3695
|
-
return i("button", { key: "
|
|
3784
|
+
return i("button", { key: "74e36b0593ba2cbb03f5ecff1434bc7056bf0db0", class: `searchcraft-popover-button ${this.type ? ` searchcraft-popover-button-${this.type}` : ""}`, innerHTML: typeof this.template < "u" ? this.template({ isPopoverVisible: this.isPopoverVisible }, { html: Ct }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
|
|
3696
3785
|
}
|
|
3697
3786
|
}, [4, "searchcraft-popover-button", {
|
|
3698
3787
|
template: [16],
|
|
@@ -3703,18 +3792,18 @@ const lc = ic, uc = /* @__PURE__ */ F(class extends O {
|
|
|
3703
3792
|
isPopoverVisible: [32],
|
|
3704
3793
|
userAgent: [32]
|
|
3705
3794
|
}]);
|
|
3706
|
-
function
|
|
3795
|
+
function uc() {
|
|
3707
3796
|
if (typeof customElements > "u")
|
|
3708
3797
|
return;
|
|
3709
3798
|
["searchcraft-popover-button"].forEach((t) => {
|
|
3710
3799
|
switch (t) {
|
|
3711
3800
|
case "searchcraft-popover-button":
|
|
3712
|
-
customElements.get(t) || customElements.define(t,
|
|
3801
|
+
customElements.get(t) || customElements.define(t, lc);
|
|
3713
3802
|
break;
|
|
3714
3803
|
}
|
|
3715
3804
|
});
|
|
3716
3805
|
}
|
|
3717
|
-
const
|
|
3806
|
+
const hc = uc, dc = /* @__PURE__ */ D(class extends F {
|
|
3718
3807
|
constructor() {
|
|
3719
3808
|
super();
|
|
3720
3809
|
f(this, "searchResultsCount");
|
|
@@ -3743,12 +3832,12 @@ function Js() {
|
|
|
3743
3832
|
["searchcraft-popover-footer"].forEach((t) => {
|
|
3744
3833
|
switch (t) {
|
|
3745
3834
|
case "searchcraft-popover-footer":
|
|
3746
|
-
customElements.get(t) || customElements.define(t,
|
|
3835
|
+
customElements.get(t) || customElements.define(t, dc);
|
|
3747
3836
|
break;
|
|
3748
3837
|
}
|
|
3749
3838
|
});
|
|
3750
3839
|
}
|
|
3751
|
-
const
|
|
3840
|
+
const fc = Js, pc = /* @__PURE__ */ D(class extends F {
|
|
3752
3841
|
constructor() {
|
|
3753
3842
|
super();
|
|
3754
3843
|
f(this, "item");
|
|
@@ -3762,7 +3851,7 @@ const pc = Js, mc = /* @__PURE__ */ F(class extends O {
|
|
|
3762
3851
|
f(this, "imageAlt");
|
|
3763
3852
|
f(this, "handleLinkClick", () => {
|
|
3764
3853
|
var a;
|
|
3765
|
-
const r = $.getState(), s = r.
|
|
3854
|
+
const r = $.getState(), s = r.getSearchcraftCore();
|
|
3766
3855
|
if (s) {
|
|
3767
3856
|
const o = this.documentPosition, n = r.searchTerm, c = r.searchClientResponseItems.length || 0;
|
|
3768
3857
|
(a = s.measureClient) == null || a.sendMeasureEvent("document_clicked", {
|
|
@@ -3784,7 +3873,7 @@ const pc = Js, mc = /* @__PURE__ */ F(class extends O {
|
|
|
3784
3873
|
disconnectedCallback() {
|
|
3785
3874
|
}
|
|
3786
3875
|
render() {
|
|
3787
|
-
return i("div", { key: "
|
|
3876
|
+
return i("div", { key: "63a2f070ce71cd1330105c03985e32cd1f228b29", class: "searchcraft-popover-list-item" }, i("a", { key: "d9bb09248be9be235147acdfeed1a9f29cd123a2", class: "searchcraft-popover-list-item-link", href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && i("div", { key: "6af7c3e754885730d8651a593f13b7b5b704a26d", class: "searchcraft-popover-list-item-image-wrapper" }, i("img", { key: "74c7e53467efd83ae95439a7065c1de2748113f5", alt: this.imageAlt, src: this.imageSource, class: "searchcraft-popover-list-item-image" })), i("div", { key: "25a12e5cf582b248773005f5fb58f7a15304d2d1", class: "searchcraft-popover-list-item-content" }, this.title && i("p", { key: "8169f7730feb832178adbc9bdb14a089e955a2ad", class: "searchcraft-popover-list-item-content-title" }, this.title), this.subtitle && i("p", { key: "96812df1bab635e3865bdfdb31f133ca629d800e", class: "searchcraft-popover-list-item-content-subtitle" }, this.subtitle))));
|
|
3788
3877
|
}
|
|
3789
3878
|
}, [0, "searchcraft-popover-list-item", {
|
|
3790
3879
|
item: [16],
|
|
@@ -3802,13 +3891,13 @@ function dr() {
|
|
|
3802
3891
|
["searchcraft-popover-list-item"].forEach((t) => {
|
|
3803
3892
|
switch (t) {
|
|
3804
3893
|
case "searchcraft-popover-list-item":
|
|
3805
|
-
customElements.get(t) || customElements.define(t,
|
|
3894
|
+
customElements.get(t) || customElements.define(t, pc);
|
|
3806
3895
|
break;
|
|
3807
3896
|
}
|
|
3808
3897
|
});
|
|
3809
3898
|
}
|
|
3810
3899
|
var vs;
|
|
3811
|
-
const
|
|
3900
|
+
const mc = /* @__PURE__ */ D(class extends F {
|
|
3812
3901
|
constructor() {
|
|
3813
3902
|
super();
|
|
3814
3903
|
/**
|
|
@@ -3828,36 +3917,36 @@ const gc = /* @__PURE__ */ F(class extends O {
|
|
|
3828
3917
|
}
|
|
3829
3918
|
renderWithADMAds() {
|
|
3830
3919
|
var r, s;
|
|
3831
|
-
return i("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => i("searchcraft-ad", { adClientResponseItem: a, adContainerId:
|
|
3920
|
+
return i("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => i("searchcraft-ad", { adClientResponseItem: a, adContainerId: X(), adSource: "adMarketplace", key: a.id })), (s = this.searchClientResponseItems) == null ? void 0 : s.map((a, o) => i("searchcraft-popover-list-item", { item: a, key: a.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + o })));
|
|
3832
3921
|
}
|
|
3833
3922
|
renderWithCustomAds() {
|
|
3834
|
-
var
|
|
3835
|
-
const r = [], s = ((
|
|
3836
|
-
for (let
|
|
3837
|
-
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId:
|
|
3838
|
-
c.forEach((
|
|
3839
|
-
if (s &&
|
|
3840
|
-
for (let
|
|
3841
|
-
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId:
|
|
3842
|
-
r.push(i("searchcraft-popover-list-item", { item:
|
|
3923
|
+
var u, h, l, p;
|
|
3924
|
+
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((l = this.config) == null ? void 0 : l.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
|
|
3925
|
+
for (let g = 0; g < o; g++)
|
|
3926
|
+
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
|
|
3927
|
+
c.forEach((g, k) => {
|
|
3928
|
+
if (s && k % s === 0 && k + s < c.length && k >= s)
|
|
3929
|
+
for (let b = 0; b < a; b++)
|
|
3930
|
+
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g.id}-ad-${b}` }));
|
|
3931
|
+
r.push(i("searchcraft-popover-list-item", { item: g, key: g.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + k }));
|
|
3843
3932
|
});
|
|
3844
|
-
for (let
|
|
3845
|
-
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId:
|
|
3933
|
+
for (let g = 0; g < n; g++)
|
|
3934
|
+
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
|
|
3846
3935
|
return i("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3847
3936
|
}
|
|
3848
3937
|
renderWithNativoAds() {
|
|
3849
|
-
var
|
|
3850
|
-
const r = [], s = ((
|
|
3851
|
-
for (let
|
|
3852
|
-
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId:
|
|
3853
|
-
|
|
3854
|
-
if (a && (P + s) % a === 0 && P + a <
|
|
3855
|
-
for (let
|
|
3856
|
-
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId:
|
|
3857
|
-
r.push(i("searchcraft-popover-list-item", { item:
|
|
3938
|
+
var h, l, p, g, k;
|
|
3939
|
+
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
|
|
3940
|
+
for (let b = 0; b < n; b++)
|
|
3941
|
+
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
|
|
3942
|
+
u.forEach((b, P) => {
|
|
3943
|
+
if (a && (P + s) % a === 0 && P + a < u.length && P >= a)
|
|
3944
|
+
for (let _ = 0; _ < o; _++)
|
|
3945
|
+
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b.id}-ad-${_}` }));
|
|
3946
|
+
r.push(i("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + P }));
|
|
3858
3947
|
});
|
|
3859
|
-
for (let
|
|
3860
|
-
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId:
|
|
3948
|
+
for (let b = 0; b < c; b++)
|
|
3949
|
+
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
|
|
3861
3950
|
return i("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3862
3951
|
}
|
|
3863
3952
|
renderWithNoAds() {
|
|
@@ -3890,10 +3979,10 @@ function ea() {
|
|
|
3890
3979
|
["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
|
|
3891
3980
|
switch (t) {
|
|
3892
3981
|
case "searchcraft-popover-list-view":
|
|
3893
|
-
customElements.get(t) || customElements.define(t,
|
|
3982
|
+
customElements.get(t) || customElements.define(t, mc);
|
|
3894
3983
|
break;
|
|
3895
3984
|
case "searchcraft-ad":
|
|
3896
|
-
customElements.get(t) ||
|
|
3985
|
+
customElements.get(t) || St();
|
|
3897
3986
|
break;
|
|
3898
3987
|
case "searchcraft-popover-list-item":
|
|
3899
3988
|
customElements.get(t) || dr();
|
|
@@ -3901,7 +3990,7 @@ function ea() {
|
|
|
3901
3990
|
}
|
|
3902
3991
|
});
|
|
3903
3992
|
}
|
|
3904
|
-
const
|
|
3993
|
+
const gc = /* @__PURE__ */ D(class extends F {
|
|
3905
3994
|
constructor() {
|
|
3906
3995
|
super();
|
|
3907
3996
|
/**
|
|
@@ -4040,13 +4129,13 @@ const vc = /* @__PURE__ */ F(class extends O {
|
|
|
4040
4129
|
if (this.isPopoverVisibleInState)
|
|
4041
4130
|
return i("div", { class: se("searchcraft-popover-form searchcraft-popover-form-modal", {
|
|
4042
4131
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4043
|
-
}) }, i("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), i("div", { class: "searchcraft-popover-form-modal-wrapper" }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-
|
|
4132
|
+
}) }, i("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), i("div", { class: "searchcraft-popover-form-modal-wrapper" }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), i("div", { class: "searchcraft-popover-form-modal-popover-list-view" }, this.hasResultsToShow && i("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), i("searchcraft-popover-footer", null)));
|
|
4044
4133
|
}
|
|
4045
4134
|
renderFullscreenPopover() {
|
|
4046
4135
|
if (this.isPopoverVisibleInState)
|
|
4047
4136
|
return i("div", { class: se("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
|
|
4048
4137
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4049
|
-
}) }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-
|
|
4138
|
+
}) }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), i("div", { class: "searchcraft-popover-form-fullscreen-popover-list-view" }, this.hasResultsToShow && i("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), i("searchcraft-popover-footer", null));
|
|
4050
4139
|
}
|
|
4051
4140
|
render() {
|
|
4052
4141
|
switch (this.type) {
|
|
@@ -4082,13 +4171,13 @@ function ta() {
|
|
|
4082
4171
|
["searchcraft-popover-form", "searchcraft-ad", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-form", "searchcraft-input-label", "searchcraft-popover-footer", "searchcraft-popover-form", "searchcraft-popover-list-item", "searchcraft-popover-list-view"].forEach((t) => {
|
|
4083
4172
|
switch (t) {
|
|
4084
4173
|
case "searchcraft-popover-form":
|
|
4085
|
-
customElements.get(t) || customElements.define(t,
|
|
4174
|
+
customElements.get(t) || customElements.define(t, gc);
|
|
4086
4175
|
break;
|
|
4087
4176
|
case "searchcraft-ad":
|
|
4088
|
-
customElements.get(t) ||
|
|
4177
|
+
customElements.get(t) || St();
|
|
4089
4178
|
break;
|
|
4090
4179
|
case "searchcraft-button":
|
|
4091
|
-
customElements.get(t) ||
|
|
4180
|
+
customElements.get(t) || kt();
|
|
4092
4181
|
break;
|
|
4093
4182
|
case "searchcraft-error-message":
|
|
4094
4183
|
customElements.get(t) || wt();
|
|
@@ -4114,7 +4203,7 @@ function ta() {
|
|
|
4114
4203
|
}
|
|
4115
4204
|
});
|
|
4116
4205
|
}
|
|
4117
|
-
const
|
|
4206
|
+
const vc = ta, bc = dr, yc = ea, Cc = /* @__PURE__ */ D(class extends F {
|
|
4118
4207
|
constructor() {
|
|
4119
4208
|
super();
|
|
4120
4209
|
/**
|
|
@@ -4147,7 +4236,7 @@ const bc = ta, yc = dr, Sc = ea, kc = /* @__PURE__ */ F(class extends O {
|
|
|
4147
4236
|
range: [Number(this.range[0]), Number(this.range[1])],
|
|
4148
4237
|
count: this.count,
|
|
4149
4238
|
responseTime: this.responseTime
|
|
4150
|
-
}, { html:
|
|
4239
|
+
}, { html: Ct }) : `${Zs(this.count)} results found in ${this.responseTime}ms`);
|
|
4151
4240
|
}
|
|
4152
4241
|
}, [0, "searchcraft-results-info", {
|
|
4153
4242
|
template: [16],
|
|
@@ -4159,18 +4248,18 @@ const bc = ta, yc = dr, Sc = ea, kc = /* @__PURE__ */ F(class extends O {
|
|
|
4159
4248
|
range: [32],
|
|
4160
4249
|
responseTime: [32]
|
|
4161
4250
|
}]);
|
|
4162
|
-
function
|
|
4251
|
+
function Sc() {
|
|
4163
4252
|
if (typeof customElements > "u")
|
|
4164
4253
|
return;
|
|
4165
4254
|
["searchcraft-results-info"].forEach((t) => {
|
|
4166
4255
|
switch (t) {
|
|
4167
4256
|
case "searchcraft-results-info":
|
|
4168
|
-
customElements.get(t) || customElements.define(t,
|
|
4257
|
+
customElements.get(t) || customElements.define(t, Cc);
|
|
4169
4258
|
break;
|
|
4170
4259
|
}
|
|
4171
4260
|
});
|
|
4172
4261
|
}
|
|
4173
|
-
const
|
|
4262
|
+
const kc = Sc, wc = /* @__PURE__ */ D(class extends F {
|
|
4174
4263
|
constructor() {
|
|
4175
4264
|
super();
|
|
4176
4265
|
f(this, "item");
|
|
@@ -4189,17 +4278,17 @@ const wc = Cc, xc = /* @__PURE__ */ F(class extends O {
|
|
|
4189
4278
|
f(this, "templateHtml");
|
|
4190
4279
|
f(this, "handleResultContainerClick", (r) => {
|
|
4191
4280
|
var l;
|
|
4192
|
-
const s = $.getState(), a = s.
|
|
4281
|
+
const s = $.getState(), a = s.getSearchcraftCore();
|
|
4193
4282
|
if (!r.target)
|
|
4194
4283
|
return;
|
|
4195
4284
|
const n = r.target.closest("a");
|
|
4196
4285
|
if (!n || !((l = this.hostElement) != null && l.contains(n)) || !a || !a.measureClient)
|
|
4197
4286
|
return;
|
|
4198
|
-
const c = this.documentPosition,
|
|
4287
|
+
const c = this.documentPosition, u = s.searchTerm, h = s.searchClientResponseItems.length || 0;
|
|
4199
4288
|
a.measureClient.sendMeasureEvent("document_clicked", {
|
|
4200
4289
|
document_position: c,
|
|
4201
|
-
number_of_documents:
|
|
4202
|
-
search_term:
|
|
4290
|
+
number_of_documents: h,
|
|
4291
|
+
search_term: u
|
|
4203
4292
|
});
|
|
4204
4293
|
});
|
|
4205
4294
|
f(this, "handleKeyDown", () => {
|
|
@@ -4214,10 +4303,10 @@ const wc = Cc, xc = /* @__PURE__ */ F(class extends O {
|
|
|
4214
4303
|
if (this.item)
|
|
4215
4304
|
try {
|
|
4216
4305
|
this.templateHtml = (r = this.template) == null ? void 0 : r.call(this, this.item.document, this.index, {
|
|
4217
|
-
html:
|
|
4306
|
+
html: Ct
|
|
4218
4307
|
});
|
|
4219
4308
|
} catch (s) {
|
|
4220
|
-
console.error(
|
|
4309
|
+
console.error("Invalid search result template:", s);
|
|
4221
4310
|
}
|
|
4222
4311
|
}
|
|
4223
4312
|
render() {
|
|
@@ -4237,34 +4326,40 @@ function ra() {
|
|
|
4237
4326
|
["searchcraft-search-result"].forEach((t) => {
|
|
4238
4327
|
switch (t) {
|
|
4239
4328
|
case "searchcraft-search-result":
|
|
4240
|
-
customElements.get(t) || customElements.define(t,
|
|
4329
|
+
customElements.get(t) || customElements.define(t, wc);
|
|
4241
4330
|
break;
|
|
4242
4331
|
}
|
|
4243
4332
|
});
|
|
4244
4333
|
}
|
|
4245
|
-
const
|
|
4334
|
+
const xc = ra, Rc = /* @__PURE__ */ D(class extends F {
|
|
4246
4335
|
constructor() {
|
|
4247
4336
|
super();
|
|
4337
|
+
/**
|
|
4338
|
+
* A query that will appears when the component initializes or the search term is ''..
|
|
4339
|
+
*/
|
|
4340
|
+
f(this, "initialQuery");
|
|
4248
4341
|
/**
|
|
4249
4342
|
* A callback function responsible for rendering a result. Passed to `searchcraft-search-result`.
|
|
4250
4343
|
*/
|
|
4251
4344
|
f(this, "template");
|
|
4252
|
-
f(this, "searchTerm", "");
|
|
4253
|
-
f(this, "searchClientResponseItems");
|
|
4254
4345
|
f(this, "adClientResponseItems", []);
|
|
4255
|
-
f(this, "searchResultsPerPage");
|
|
4256
|
-
f(this, "searchResultsPage");
|
|
4257
|
-
f(this, "isSearchInProgress", !0);
|
|
4258
4346
|
f(this, "config");
|
|
4347
|
+
f(this, "initialSearchClientResponseItems");
|
|
4348
|
+
f(this, "isSearchInProgress", !0);
|
|
4349
|
+
f(this, "searchClientResponseItems");
|
|
4350
|
+
f(this, "searchResultsPage");
|
|
4351
|
+
f(this, "searchResultsPerPage");
|
|
4352
|
+
f(this, "searchTerm", "");
|
|
4259
4353
|
f(this, "unsubscribe", () => {
|
|
4260
4354
|
});
|
|
4261
4355
|
this.__registerHost();
|
|
4262
4356
|
}
|
|
4263
4357
|
componentDidLoad() {
|
|
4264
4358
|
var s;
|
|
4265
|
-
this.unsubscribe = $.subscribe((a) => this.handleStateChange(a));
|
|
4266
4359
|
const r = $.getState();
|
|
4267
|
-
this.handleStateChange(r), this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (s = r.core) == null ? void 0 : s.config
|
|
4360
|
+
this.handleStateChange(r), this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (s = r.core) == null ? void 0 : s.config, r.afterInit = (a) => {
|
|
4361
|
+
this.initialQuery && a.setInitialQuery(this.initialQuery);
|
|
4362
|
+
}, this.unsubscribe = $.subscribe((a) => this.handleStateChange(a));
|
|
4268
4363
|
}
|
|
4269
4364
|
disconnectedCallback() {
|
|
4270
4365
|
var r;
|
|
@@ -4272,7 +4367,9 @@ const Ec = ra, Rc = /* @__PURE__ */ F(class extends O {
|
|
|
4272
4367
|
}
|
|
4273
4368
|
handleStateChange(r) {
|
|
4274
4369
|
var s;
|
|
4275
|
-
this.
|
|
4370
|
+
this.adClientResponseItems = [...r.adClientResponseItems], this.config = (s = r.core) == null ? void 0 : s.config, this.initialSearchClientResponseItems = [
|
|
4371
|
+
...r.initialSearchClientResponseItems
|
|
4372
|
+
], this.isSearchInProgress = r.isSearchInProgress, this.searchClientResponseItems = [...r.searchClientResponseItems], this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchTerm = r.searchTerm;
|
|
4276
4373
|
}
|
|
4277
4374
|
renderEmptyState() {
|
|
4278
4375
|
return i("div", { class: "searchcraft-search-results-empty-state" }, i("slot", { name: "empty-search" }));
|
|
@@ -4281,50 +4378,53 @@ const Ec = ra, Rc = /* @__PURE__ */ F(class extends O {
|
|
|
4281
4378
|
return i("div", { class: "searchcraft-search-results" }, i("div", { class: "searchcraft-search-results-error-message" }, i("searchcraft-error-message", null, 'No search results found for "', this.searchTerm, '" query.')));
|
|
4282
4379
|
}
|
|
4283
4380
|
renderWithADMAds() {
|
|
4284
|
-
var
|
|
4285
|
-
|
|
4381
|
+
var s, a, o;
|
|
4382
|
+
const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
|
|
4383
|
+
return i("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => i("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: X(), key: n.id })), r.map((n, c) => i("searchcraft-search-result", { key: n.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + c, index: c, item: n, template: this.template })));
|
|
4286
4384
|
}
|
|
4287
4385
|
renderWithCustomAds() {
|
|
4288
|
-
var
|
|
4289
|
-
const r = [], s = ((
|
|
4290
|
-
for (let
|
|
4291
|
-
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId:
|
|
4292
|
-
c.forEach((
|
|
4293
|
-
if (s &&
|
|
4294
|
-
for (let
|
|
4295
|
-
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId:
|
|
4296
|
-
r.push(i("searchcraft-search-result", { key:
|
|
4386
|
+
var u, h, l, p, g, k;
|
|
4387
|
+
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((l = this.config) == null ? void 0 : l.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = (g = this.searchClientResponseItems) != null && g.length ? this.searchClientResponseItems : (k = this.initialSearchClientResponseItems) != null && k.length ? this.initialSearchClientResponseItems : [];
|
|
4388
|
+
for (let b = 0; b < o; b++)
|
|
4389
|
+
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
|
|
4390
|
+
c.forEach((b, P) => {
|
|
4391
|
+
if (s && P % s === 0 && P + s < c.length && P >= s)
|
|
4392
|
+
for (let _ = 0; _ < a; _++)
|
|
4393
|
+
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b.id}-ad-${_}` }));
|
|
4394
|
+
r.push(i("searchcraft-search-result", { key: b.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + P, index: P, item: b, template: this.template }));
|
|
4297
4395
|
});
|
|
4298
|
-
for (let
|
|
4299
|
-
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId:
|
|
4396
|
+
for (let b = 0; b < n; b++)
|
|
4397
|
+
r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
|
|
4300
4398
|
return i("div", { class: "searchcraft-search-results" }, r);
|
|
4301
4399
|
}
|
|
4302
4400
|
renderWithNativoAds() {
|
|
4303
|
-
var
|
|
4304
|
-
const r = [], s = ((
|
|
4305
|
-
for (let
|
|
4306
|
-
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId:
|
|
4307
|
-
|
|
4308
|
-
if (a && (
|
|
4309
|
-
for (let
|
|
4310
|
-
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId:
|
|
4311
|
-
r.push(i("searchcraft-search-result", { key:
|
|
4401
|
+
var h, l, p, g, k, b, P;
|
|
4402
|
+
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = (b = this.searchClientResponseItems) != null && b.length ? this.searchClientResponseItems : (P = this.initialSearchClientResponseItems) != null && P.length ? this.initialSearchClientResponseItems : [];
|
|
4403
|
+
for (let _ = 0; _ < n; _++)
|
|
4404
|
+
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
|
|
4405
|
+
u.forEach((_, H) => {
|
|
4406
|
+
if (a && (H + s) % a === 0 && H + a < u.length && H >= a)
|
|
4407
|
+
for (let I = 0; I < o; I++)
|
|
4408
|
+
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_.id}-ad-${I}` }));
|
|
4409
|
+
r.push(i("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + H, index: H, item: _, template: this.template }));
|
|
4312
4410
|
});
|
|
4313
|
-
for (let
|
|
4314
|
-
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId:
|
|
4411
|
+
for (let _ = 0; _ < c; _++)
|
|
4412
|
+
r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
|
|
4315
4413
|
return i("div", { class: "searchcraft-search-results" }, r);
|
|
4316
4414
|
}
|
|
4317
4415
|
renderWithNoAds() {
|
|
4318
|
-
var
|
|
4319
|
-
|
|
4416
|
+
var s, a;
|
|
4417
|
+
const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
|
|
4418
|
+
return i("div", { class: "searchcraft-search-results" }, r.map((o, n) => i("searchcraft-search-result", { key: o.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + n, index: n, item: o, template: this.template })));
|
|
4320
4419
|
}
|
|
4321
4420
|
render() {
|
|
4322
|
-
var
|
|
4323
|
-
|
|
4421
|
+
var a;
|
|
4422
|
+
const r = this.searchClientResponseItems || [], s = this.initialSearchClientResponseItems || [];
|
|
4423
|
+
if (this.searchTerm === "" && s.length === 0 && !this.isSearchInProgress)
|
|
4324
4424
|
return this.renderEmptyState();
|
|
4325
|
-
if (this.searchTerm.length > 0 &&
|
|
4425
|
+
if (this.searchTerm.length > 0 && r.length === 0 && !this.isSearchInProgress)
|
|
4326
4426
|
return this.renderNoResultsFoundState();
|
|
4327
|
-
switch (((
|
|
4427
|
+
switch (((a = this.config) == null ? void 0 : a.adSource) || "None") {
|
|
4328
4428
|
case "adMarketplace":
|
|
4329
4429
|
return this.renderWithADMAds();
|
|
4330
4430
|
case "Custom":
|
|
@@ -4336,16 +4436,18 @@ const Ec = ra, Rc = /* @__PURE__ */ F(class extends O {
|
|
|
4336
4436
|
}
|
|
4337
4437
|
}
|
|
4338
4438
|
}, [4, "searchcraft-search-results", {
|
|
4439
|
+
initialQuery: [1, "initial-query"],
|
|
4339
4440
|
template: [16],
|
|
4340
|
-
searchTerm: [32],
|
|
4341
|
-
searchClientResponseItems: [32],
|
|
4342
4441
|
adClientResponseItems: [32],
|
|
4343
|
-
|
|
4344
|
-
|
|
4442
|
+
config: [32],
|
|
4443
|
+
initialSearchClientResponseItems: [32],
|
|
4345
4444
|
isSearchInProgress: [32],
|
|
4346
|
-
|
|
4445
|
+
searchClientResponseItems: [32],
|
|
4446
|
+
searchResultsPage: [32],
|
|
4447
|
+
searchResultsPerPage: [32],
|
|
4448
|
+
searchTerm: [32]
|
|
4347
4449
|
}]);
|
|
4348
|
-
function
|
|
4450
|
+
function Ec() {
|
|
4349
4451
|
if (typeof customElements > "u")
|
|
4350
4452
|
return;
|
|
4351
4453
|
["searchcraft-search-results", "searchcraft-ad", "searchcraft-error-message", "searchcraft-search-result"].forEach((t) => {
|
|
@@ -4354,7 +4456,7 @@ function Tc() {
|
|
|
4354
4456
|
customElements.get(t) || customElements.define(t, Rc);
|
|
4355
4457
|
break;
|
|
4356
4458
|
case "searchcraft-ad":
|
|
4357
|
-
customElements.get(t) ||
|
|
4459
|
+
customElements.get(t) || St();
|
|
4358
4460
|
break;
|
|
4359
4461
|
case "searchcraft-error-message":
|
|
4360
4462
|
customElements.get(t) || wt();
|
|
@@ -4365,7 +4467,7 @@ function Tc() {
|
|
|
4365
4467
|
}
|
|
4366
4468
|
});
|
|
4367
4469
|
}
|
|
4368
|
-
const
|
|
4470
|
+
const Tc = Ec, Pc = /* @__PURE__ */ D(class extends F {
|
|
4369
4471
|
constructor() {
|
|
4370
4472
|
super();
|
|
4371
4473
|
/**
|
|
@@ -4408,7 +4510,7 @@ const Pc = Tc, $c = /* @__PURE__ */ F(class extends O {
|
|
|
4408
4510
|
f(this, "handleSelectChange", (r) => {
|
|
4409
4511
|
this.selectChange.emit(r.target.value);
|
|
4410
4512
|
});
|
|
4411
|
-
this.__registerHost(), this.selectChange =
|
|
4513
|
+
this.__registerHost(), this.selectChange = be(this, "selectChange");
|
|
4412
4514
|
}
|
|
4413
4515
|
handleGoToPage(r) {
|
|
4414
4516
|
this.setSearchResultsPage(r);
|
|
@@ -4434,12 +4536,12 @@ function sa() {
|
|
|
4434
4536
|
["searchcraft-select"].forEach((t) => {
|
|
4435
4537
|
switch (t) {
|
|
4436
4538
|
case "searchcraft-select":
|
|
4437
|
-
customElements.get(t) || customElements.define(t,
|
|
4539
|
+
customElements.get(t) || customElements.define(t, Pc);
|
|
4438
4540
|
break;
|
|
4439
4541
|
}
|
|
4440
4542
|
});
|
|
4441
4543
|
}
|
|
4442
|
-
const
|
|
4544
|
+
const $c = /* @__PURE__ */ D(class extends F {
|
|
4443
4545
|
constructor() {
|
|
4444
4546
|
super();
|
|
4445
4547
|
/**
|
|
@@ -4496,13 +4598,13 @@ const _c = /* @__PURE__ */ F(class extends O {
|
|
|
4496
4598
|
setSearchResultsPerPage: [32],
|
|
4497
4599
|
setSearchResultsPage: [32]
|
|
4498
4600
|
}]);
|
|
4499
|
-
function
|
|
4601
|
+
function _c() {
|
|
4500
4602
|
if (typeof customElements > "u")
|
|
4501
4603
|
return;
|
|
4502
4604
|
["searchcraft-search-results-per-page", "searchcraft-select"].forEach((t) => {
|
|
4503
4605
|
switch (t) {
|
|
4504
4606
|
case "searchcraft-search-results-per-page":
|
|
4505
|
-
customElements.get(t) || customElements.define(t,
|
|
4607
|
+
customElements.get(t) || customElements.define(t, $c);
|
|
4506
4608
|
break;
|
|
4507
4609
|
case "searchcraft-select":
|
|
4508
4610
|
customElements.get(t) || sa();
|
|
@@ -4510,35 +4612,35 @@ function Ac() {
|
|
|
4510
4612
|
}
|
|
4511
4613
|
});
|
|
4512
4614
|
}
|
|
4513
|
-
const Ic = Ac, Mc = sa, Lc = Ks, Oc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-adm-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-adm-ad-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-brand);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset}.searchcraft-popover-form-input-cancel-button{background:none;border:none;cursor:pointer}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal searchcraft-popover-list-view{flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);border-radius:var(--sc-border-radius-2xl);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-input-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px 12px}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-input-cancel-button{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 32px;box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
4514
|
-
`,
|
|
4615
|
+
const Ic = _c, Ac = sa, Mc = Qs, Lc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-adm-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-adm-ad-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
4616
|
+
`, Oc = /* @__PURE__ */ D(class extends F {
|
|
4515
4617
|
constructor() {
|
|
4516
4618
|
super(), this.__registerHost();
|
|
4517
4619
|
}
|
|
4518
4620
|
render() {
|
|
4519
|
-
return i("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" },
|
|
4621
|
+
return i("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, Lc);
|
|
4520
4622
|
}
|
|
4521
4623
|
}, [0, "searchcraft-theme"]);
|
|
4522
|
-
function
|
|
4624
|
+
function Fc() {
|
|
4523
4625
|
if (typeof customElements > "u")
|
|
4524
4626
|
return;
|
|
4525
4627
|
["searchcraft-theme"].forEach((t) => {
|
|
4526
4628
|
switch (t) {
|
|
4527
4629
|
case "searchcraft-theme":
|
|
4528
|
-
customElements.get(t) || customElements.define(t,
|
|
4630
|
+
customElements.get(t) || customElements.define(t, Oc);
|
|
4529
4631
|
break;
|
|
4530
4632
|
}
|
|
4531
4633
|
});
|
|
4532
4634
|
}
|
|
4533
|
-
const
|
|
4534
|
-
|
|
4635
|
+
const Dc = Fc, Hc = Ks, aa = () => {
|
|
4636
|
+
No(), zo(), Vo(), Zo(), tc(), ac(), nc(), ic(), hc(), fc(), vc(), bc(), yc(), kc(), xc(), Ic(), Tc(), Ac(), Mc(), Dc(), Hc();
|
|
4535
4637
|
};
|
|
4536
4638
|
globalThis.__scDefineCustomElements__ = aa;
|
|
4537
|
-
const
|
|
4538
|
-
name:
|
|
4539
|
-
version:
|
|
4639
|
+
const Nc = "@searchcraft/react-sdk", Uc = "0.10.2", gs = {
|
|
4640
|
+
name: Nc,
|
|
4641
|
+
version: Uc
|
|
4540
4642
|
};
|
|
4541
|
-
async function
|
|
4643
|
+
async function ve(e, t) {
|
|
4542
4644
|
const r = Object.entries(t).map(([o, n]) => typeof n == "boolean" ? n ? o : "" : `${o}="${String(n)}"`).filter(Boolean).join(" "), s = `<${e} ${r}></${e}>`, a = await qa(s, {
|
|
4543
4645
|
fullDocument: !1,
|
|
4544
4646
|
clientHydrateAnnotations: !0
|
|
@@ -4548,12 +4650,12 @@ async function ge(e, t) {
|
|
|
4548
4650
|
html: a.html
|
|
4549
4651
|
};
|
|
4550
4652
|
}
|
|
4551
|
-
async function
|
|
4552
|
-
const { tag: t, html: r } = await
|
|
4653
|
+
async function hi(e) {
|
|
4654
|
+
const { tag: t, html: r } = await ve(
|
|
4553
4655
|
"searchcraft-search-results",
|
|
4554
4656
|
e
|
|
4555
4657
|
);
|
|
4556
|
-
return /* @__PURE__ */
|
|
4658
|
+
return /* @__PURE__ */ ge(
|
|
4557
4659
|
"div",
|
|
4558
4660
|
{
|
|
4559
4661
|
"data-sc-component": !0,
|
|
@@ -4563,12 +4665,12 @@ async function di(e) {
|
|
|
4563
4665
|
}
|
|
4564
4666
|
);
|
|
4565
4667
|
}
|
|
4566
|
-
async function
|
|
4567
|
-
const { tag: t, html: r } = await
|
|
4668
|
+
async function di(e) {
|
|
4669
|
+
const { tag: t, html: r } = await ve(
|
|
4568
4670
|
"searchcraft-filter-panel",
|
|
4569
4671
|
e
|
|
4570
4672
|
);
|
|
4571
|
-
return /* @__PURE__ */
|
|
4673
|
+
return /* @__PURE__ */ ge(
|
|
4572
4674
|
"div",
|
|
4573
4675
|
{
|
|
4574
4676
|
"data-sc-component": !0,
|
|
@@ -4578,12 +4680,12 @@ async function fi(e) {
|
|
|
4578
4680
|
}
|
|
4579
4681
|
);
|
|
4580
4682
|
}
|
|
4581
|
-
async function
|
|
4582
|
-
const { tag: t, html: r } = await
|
|
4683
|
+
async function fi(e) {
|
|
4684
|
+
const { tag: t, html: r } = await ve(
|
|
4583
4685
|
"searchcraft-input-form",
|
|
4584
4686
|
e
|
|
4585
4687
|
);
|
|
4586
|
-
return /* @__PURE__ */
|
|
4688
|
+
return /* @__PURE__ */ ge(
|
|
4587
4689
|
"div",
|
|
4588
4690
|
{
|
|
4589
4691
|
"data-sc-component": !0,
|
|
@@ -4593,12 +4695,12 @@ async function pi(e) {
|
|
|
4593
4695
|
}
|
|
4594
4696
|
);
|
|
4595
4697
|
}
|
|
4596
|
-
async function
|
|
4597
|
-
const { tag: t, html: r } = await
|
|
4698
|
+
async function pi(e) {
|
|
4699
|
+
const { tag: t, html: r } = await ve(
|
|
4598
4700
|
"searchcraft-popover-button",
|
|
4599
4701
|
e
|
|
4600
4702
|
);
|
|
4601
|
-
return /* @__PURE__ */
|
|
4703
|
+
return /* @__PURE__ */ ge(
|
|
4602
4704
|
"div",
|
|
4603
4705
|
{
|
|
4604
4706
|
"data-sc-component": !0,
|
|
@@ -4608,12 +4710,12 @@ async function mi(e) {
|
|
|
4608
4710
|
}
|
|
4609
4711
|
);
|
|
4610
4712
|
}
|
|
4611
|
-
async function
|
|
4612
|
-
const { tag: t, html: r } = await
|
|
4713
|
+
async function mi(e) {
|
|
4714
|
+
const { tag: t, html: r } = await ve(
|
|
4613
4715
|
"searchcraft-popover-form",
|
|
4614
4716
|
e
|
|
4615
4717
|
);
|
|
4616
|
-
return /* @__PURE__ */
|
|
4718
|
+
return /* @__PURE__ */ ge(
|
|
4617
4719
|
"div",
|
|
4618
4720
|
{
|
|
4619
4721
|
"data-sc-component": !0,
|
|
@@ -4623,12 +4725,12 @@ async function gi(e) {
|
|
|
4623
4725
|
}
|
|
4624
4726
|
);
|
|
4625
4727
|
}
|
|
4626
|
-
async function
|
|
4627
|
-
const { tag: t, html: r } = await
|
|
4728
|
+
async function gi(e) {
|
|
4729
|
+
const { tag: t, html: r } = await ve(
|
|
4628
4730
|
"searchcraft-results-info",
|
|
4629
4731
|
e
|
|
4630
4732
|
);
|
|
4631
|
-
return /* @__PURE__ */
|
|
4733
|
+
return /* @__PURE__ */ ge(
|
|
4632
4734
|
"div",
|
|
4633
4735
|
{
|
|
4634
4736
|
"data-sc-component": !0,
|
|
@@ -4638,9 +4740,9 @@ async function vi(e) {
|
|
|
4638
4740
|
}
|
|
4639
4741
|
);
|
|
4640
4742
|
}
|
|
4641
|
-
async function
|
|
4642
|
-
const { tag: t, html: r } = await
|
|
4643
|
-
return /* @__PURE__ */
|
|
4743
|
+
async function vi(e) {
|
|
4744
|
+
const { tag: t, html: r } = await ve("searchcraft-theme", e);
|
|
4745
|
+
return /* @__PURE__ */ ge(
|
|
4644
4746
|
"div",
|
|
4645
4747
|
{
|
|
4646
4748
|
"data-sc-component": !0,
|
|
@@ -4650,12 +4752,12 @@ async function bi(e) {
|
|
|
4650
4752
|
}
|
|
4651
4753
|
);
|
|
4652
4754
|
}
|
|
4653
|
-
async function
|
|
4654
|
-
const { tag: t, html: r } = await
|
|
4755
|
+
async function bi(e) {
|
|
4756
|
+
const { tag: t, html: r } = await ve(
|
|
4655
4757
|
"searchcraft-pagination",
|
|
4656
4758
|
e
|
|
4657
4759
|
);
|
|
4658
|
-
return /* @__PURE__ */
|
|
4760
|
+
return /* @__PURE__ */ ge(
|
|
4659
4761
|
"div",
|
|
4660
4762
|
{
|
|
4661
4763
|
"data-sc-component": !0,
|
|
@@ -4665,12 +4767,12 @@ async function yi(e) {
|
|
|
4665
4767
|
}
|
|
4666
4768
|
);
|
|
4667
4769
|
}
|
|
4668
|
-
async function
|
|
4669
|
-
const { tag: t, html: r } = await
|
|
4770
|
+
async function yi(e) {
|
|
4771
|
+
const { tag: t, html: r } = await ve(
|
|
4670
4772
|
"searchcraft-search-results-per-page",
|
|
4671
4773
|
e
|
|
4672
4774
|
);
|
|
4673
|
-
return /* @__PURE__ */
|
|
4775
|
+
return /* @__PURE__ */ ge(
|
|
4674
4776
|
"div",
|
|
4675
4777
|
{
|
|
4676
4778
|
"data-sc-component": !0,
|
|
@@ -4680,7 +4782,7 @@ async function Si(e) {
|
|
|
4680
4782
|
}
|
|
4681
4783
|
);
|
|
4682
4784
|
}
|
|
4683
|
-
class
|
|
4785
|
+
class Ci extends mo {
|
|
4684
4786
|
constructor(t) {
|
|
4685
4787
|
super(t, {
|
|
4686
4788
|
sdkName: gs.name,
|
|
@@ -4688,24 +4790,24 @@ class ki extends go {
|
|
|
4688
4790
|
});
|
|
4689
4791
|
}
|
|
4690
4792
|
}
|
|
4691
|
-
const
|
|
4793
|
+
const Si = () => {
|
|
4692
4794
|
const e = document.querySelectorAll("[data-sc-component]");
|
|
4693
4795
|
for (const t of e)
|
|
4694
4796
|
t.innerHTML = t.getAttribute("data-sc-tag") || "";
|
|
4695
4797
|
aa();
|
|
4696
4798
|
};
|
|
4697
4799
|
export {
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4800
|
+
Ci as Searchcraft,
|
|
4801
|
+
di as SearchcraftFilterPanel,
|
|
4802
|
+
fi as SearchcraftInputForm,
|
|
4803
|
+
bi as SearchcraftPagination,
|
|
4804
|
+
pi as SearchcraftPopoverButton,
|
|
4805
|
+
mi as SearchcraftPopoverForm,
|
|
4806
|
+
gi as SearchcraftResultsInfo,
|
|
4807
|
+
hi as SearchcraftSearchResults,
|
|
4808
|
+
yi as SearchcraftSearchResultsPerPage,
|
|
4809
|
+
vi as SearchcraftTheme,
|
|
4708
4810
|
aa as defineCustomElements,
|
|
4709
|
-
|
|
4811
|
+
Si as hydrateSearchcraftComponents
|
|
4710
4812
|
};
|
|
4711
4813
|
//# sourceMappingURL=index.js.map
|