@searchcraft/react-sdk 0.10.2 → 0.10.3
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 +862 -839
- 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 +31 -9
- package/dist/server/index.js +815 -792
- package/dist/server/index.js.map +1 -1
- package/package.json +3 -3
package/dist/client/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var d = (e, t, r) =>
|
|
1
|
+
var dn = Object.defineProperty;
|
|
2
|
+
var pn = (e, t, r) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var d = (e, t, r) => pn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { jsx as ge } from "react/jsx-runtime";
|
|
5
5
|
import ve from "react";
|
|
6
|
-
const
|
|
6
|
+
const mn = "searchcraft-javascript-sdk", Fe = (
|
|
7
7
|
/* searchcraft-javascript-sdk */
|
|
8
8
|
{ experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
|
|
9
9
|
);
|
|
10
|
-
var
|
|
10
|
+
var gn = Object.defineProperty, vn = (e, t) => {
|
|
11
11
|
for (var r in t)
|
|
12
|
-
|
|
13
|
-
},
|
|
12
|
+
gn(e, r, { get: t[r], enumerable: !0 });
|
|
13
|
+
}, bn = "http://www.w3.org/2000/svg", yn = "http://www.w3.org/1999/xhtml", Cn = (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
|
+
}, Xt = /* @__PURE__ */ new WeakMap(), Sn = (e) => Xt.delete(e), Se = (e) => Xt.get(e), kn = (e, t) => {
|
|
32
32
|
const r = {
|
|
33
33
|
$flags$: 0,
|
|
34
34
|
$hostElement$: e,
|
|
@@ -36,9 +36,9 @@ var mn = Object.defineProperty, gn = (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 =
|
|
40
|
-
return
|
|
41
|
-
},
|
|
39
|
+
const s = Xt.set(e, r);
|
|
40
|
+
return Cn(e, r), s;
|
|
41
|
+
}, Qr = (e, t) => t in e, Ct = (e, t) => (0, console.error)(e, t), St = typeof window < "u" ? window : {}, Le = St.document || { head: {} }, F = St.HTMLElement || class {
|
|
42
42
|
}, ee = {
|
|
43
43
|
$flags$: 0,
|
|
44
44
|
$resourcesUrl$: "",
|
|
@@ -47,82 +47,82 @@ var mn = Object.defineProperty, gn = (e, t) => {
|
|
|
47
47
|
ael: (e, t, r, s) => e.addEventListener(t, r, s),
|
|
48
48
|
rel: (e, t, r, s) => e.removeEventListener(t, r, s),
|
|
49
49
|
ce: (e, t) => new CustomEvent(e, t)
|
|
50
|
-
},
|
|
51
|
-
e.push(r),
|
|
52
|
-
},
|
|
50
|
+
}, wn = Fe.shadowDom, xn = (e) => Promise.resolve(e), Yt = !1, Kr = [], ks = [], Rn = (e, t) => (r) => {
|
|
51
|
+
e.push(r), Yt || (Yt = !0, ee.$flags$ & 4 ? Jt(Zt) : ee.raf(Zt));
|
|
52
|
+
}, Xr = (e) => {
|
|
53
53
|
for (let t = 0; t < e.length; t++)
|
|
54
54
|
try {
|
|
55
55
|
e[t](performance.now());
|
|
56
56
|
} catch (r) {
|
|
57
|
-
|
|
57
|
+
Ct(r);
|
|
58
58
|
}
|
|
59
59
|
e.length = 0;
|
|
60
|
-
},
|
|
61
|
-
Kr
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
err: () =>
|
|
65
|
-
map: () =>
|
|
66
|
-
ok: () =>
|
|
67
|
-
unwrap: () =>
|
|
68
|
-
unwrapErr: () =>
|
|
60
|
+
}, Zt = () => {
|
|
61
|
+
Xr(Kr), Xr(ks), (Yt = Kr.length > 0) && ee.raf(Zt);
|
|
62
|
+
}, Jt = (e) => xn().then(e), En = /* @__PURE__ */ Rn(ks), er = (e) => (e = typeof e, e === "object" || e === "function"), Tn = {};
|
|
63
|
+
vn(Tn, {
|
|
64
|
+
err: () => ws,
|
|
65
|
+
map: () => Pn,
|
|
66
|
+
ok: () => Qt,
|
|
67
|
+
unwrap: () => $n,
|
|
68
|
+
unwrapErr: () => _n
|
|
69
69
|
});
|
|
70
|
-
var
|
|
70
|
+
var Qt = (e) => ({
|
|
71
71
|
isOk: !0,
|
|
72
72
|
isErr: !1,
|
|
73
73
|
value: e
|
|
74
|
-
}),
|
|
74
|
+
}), ws = (e) => ({
|
|
75
75
|
isOk: !1,
|
|
76
76
|
isErr: !0,
|
|
77
77
|
value: e
|
|
78
78
|
});
|
|
79
|
-
function
|
|
79
|
+
function Pn(e, t) {
|
|
80
80
|
if (e.isOk) {
|
|
81
81
|
const r = t(e.value);
|
|
82
|
-
return r instanceof Promise ? r.then((s) =>
|
|
82
|
+
return r instanceof Promise ? r.then((s) => Qt(s)) : Qt(r);
|
|
83
83
|
}
|
|
84
84
|
if (e.isErr) {
|
|
85
85
|
const r = e.value;
|
|
86
|
-
return
|
|
86
|
+
return ws(r);
|
|
87
87
|
}
|
|
88
88
|
throw "should never get here";
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var $n = (e) => {
|
|
91
91
|
if (e.isOk)
|
|
92
92
|
return e.value;
|
|
93
93
|
throw e.value;
|
|
94
|
-
},
|
|
94
|
+
}, _n = (e) => {
|
|
95
95
|
if (e.isErr)
|
|
96
96
|
return e.value;
|
|
97
97
|
throw e.value;
|
|
98
|
-
},
|
|
98
|
+
}, xs = (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" && Rs(t, e.tagName).forEach((r) => {
|
|
101
101
|
var s;
|
|
102
|
-
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s =
|
|
102
|
+
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = In(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 && xs(r);
|
|
106
106
|
};
|
|
107
|
-
function
|
|
107
|
+
function Rs(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, ...Rs(o.childNodes, t, r)];
|
|
111
111
|
return a;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var In = (e, t, r = !0) => {
|
|
114
114
|
const s = [];
|
|
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
|
+
}, Jr = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ke = (e, t = "") => () => {
|
|
119
119
|
}, l = (e, t, ...r) => {
|
|
120
120
|
let s = null, a = null, o = null, n = !1, c = !1;
|
|
121
|
-
const
|
|
121
|
+
const u = [], h = (p) => {
|
|
122
122
|
for (let g = 0; g < p.length; g++)
|
|
123
|
-
s = p[g], Array.isArray(s) ?
|
|
123
|
+
s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !er(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? gt(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;
|
|
@@ -132,12 +132,12 @@ var _n = (e, t, r = !0) => {
|
|
|
132
132
|
if (typeof e == "function")
|
|
133
133
|
return e(
|
|
134
134
|
t === null ? {} : t,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
u,
|
|
136
|
+
Ln
|
|
137
137
|
);
|
|
138
|
-
const i =
|
|
139
|
-
return i.$attrs$ = t,
|
|
140
|
-
},
|
|
138
|
+
const i = gt(e, null);
|
|
139
|
+
return i.$attrs$ = t, u.length > 0 && (i.$children$ = u), i.$key$ = a, i.$name$ = o, i;
|
|
140
|
+
}, gt = (e, t) => {
|
|
141
141
|
const r = {
|
|
142
142
|
$flags$: 0,
|
|
143
143
|
$tag$: e,
|
|
@@ -146,78 +146,78 @@ var _n = (e, t, r = !0) => {
|
|
|
146
146
|
$children$: null
|
|
147
147
|
};
|
|
148
148
|
return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
|
|
149
|
-
},
|
|
150
|
-
forEach: (e, t) => e.map(
|
|
151
|
-
map: (e, t) => e.map(
|
|
152
|
-
},
|
|
149
|
+
}, An = {}, Mn = (e) => e && e.$tag$ === An, Ln = {
|
|
150
|
+
forEach: (e, t) => e.map(es).forEach(t),
|
|
151
|
+
map: (e, t) => e.map(es).map(t).map(On)
|
|
152
|
+
}, es = (e) => ({
|
|
153
153
|
vattrs: e.$attrs$,
|
|
154
154
|
vchildren: e.$children$,
|
|
155
155
|
vkey: e.$key$,
|
|
156
156
|
vname: e.$name$,
|
|
157
157
|
vtag: e.$tag$,
|
|
158
158
|
vtext: e.$text$
|
|
159
|
-
}),
|
|
159
|
+
}), On = (e) => {
|
|
160
160
|
if (typeof e.vtag == "function") {
|
|
161
161
|
const r = { ...e.vattrs };
|
|
162
162
|
return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), l(e.vtag, r, ...e.vchildren || []);
|
|
163
163
|
}
|
|
164
|
-
const t =
|
|
164
|
+
const t = gt(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
|
-
},
|
|
167
|
-
const s =
|
|
166
|
+
}, Es = (e, t) => e != null && !er(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Fn = (e) => e, ye = (e, t, r) => {
|
|
167
|
+
const s = Fn(e);
|
|
168
168
|
return {
|
|
169
|
-
emit: (a) =>
|
|
169
|
+
emit: (a) => Ts(s, t, {
|
|
170
170
|
bubbles: !0,
|
|
171
171
|
composed: !0,
|
|
172
172
|
cancelable: !0,
|
|
173
173
|
detail: a
|
|
174
174
|
})
|
|
175
175
|
};
|
|
176
|
-
},
|
|
176
|
+
}, Ts = (e, t, r) => {
|
|
177
177
|
const s = ee.ce(t, r);
|
|
178
178
|
return e.dispatchEvent(s), s;
|
|
179
|
-
},
|
|
179
|
+
}, ft = /* @__PURE__ */ new WeakMap(), ts = (e, t, r, s, a, o) => {
|
|
180
180
|
if (r !== s) {
|
|
181
|
-
let n =
|
|
181
|
+
let n = Qr(e, t), c = t.toLowerCase();
|
|
182
182
|
if (t === "class") {
|
|
183
|
-
const
|
|
184
|
-
let i =
|
|
185
|
-
e["s-si"] ? (i.push(e["s-si"]),
|
|
183
|
+
const u = e.classList, h = rs(r);
|
|
184
|
+
let i = rs(s);
|
|
185
|
+
e["s-si"] ? (i.push(e["s-si"]), h.forEach((p) => {
|
|
186
186
|
p.startsWith(e["s-si"]) && i.push(p);
|
|
187
|
-
}), i = [...new Set(i)],
|
|
187
|
+
}), i = [...new Set(i)], u.add(...i), delete e["s-si"]) : (u.remove(...h.filter((p) => p && !i.includes(p))), u.add(...i.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
|
-
if (t[2] === "-" ? t = t.slice(3) :
|
|
195
|
-
const
|
|
196
|
-
t = t.replace(
|
|
194
|
+
if (t[2] === "-" ? t = t.slice(3) : Qr(St, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
|
|
195
|
+
const u = t.endsWith(Ps);
|
|
196
|
+
t = t.replace(Nn, ""), 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 = er(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
|
-
},
|
|
213
|
+
}, Dn = /\s/, rs = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(Dn) : []), Ps = "Capture", Nn = new RegExp(Ps + "$"), $s = (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
|
-
for (const n of
|
|
216
|
-
n in o ||
|
|
217
|
-
for (const n of
|
|
218
|
-
|
|
215
|
+
for (const n of ss(Object.keys(a)))
|
|
216
|
+
n in o || ts(s, n, a[n], void 0, r, t.$flags$);
|
|
217
|
+
for (const n of ss(Object.keys(o)))
|
|
218
|
+
ts(s, n, a[n], o[n], r, t.$flags$);
|
|
219
219
|
};
|
|
220
|
-
function
|
|
220
|
+
function ss(e) {
|
|
221
221
|
return e.includes("ref") ? (
|
|
222
222
|
// we need to sort these to ensure that `'ref'` is the last attr
|
|
223
223
|
[...e.filter((t) => t !== "ref"), "ref"]
|
|
@@ -226,11 +226,11 @@ function rs(e) {
|
|
|
226
226
|
e
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
|
-
var
|
|
229
|
+
var Kt, tr, vt = !1, bt = !1, rr = !1, te = !1, yt = (e, t, r) => {
|
|
230
230
|
var s;
|
|
231
231
|
const a = t.$children$[r];
|
|
232
|
-
let o = 0, n, c,
|
|
233
|
-
if (
|
|
232
|
+
let o = 0, n, c, u;
|
|
233
|
+
if (vt || (rr = !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
|
|
236
236
|
2
|
|
@@ -245,82 +245,82 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
245
245
|
n = a.$elm$ = Le.createTextNode("");
|
|
246
246
|
else {
|
|
247
247
|
if (te || (te = a.$tag$ === "svg"), n = a.$elm$ = Le.createElementNS(
|
|
248
|
-
te ?
|
|
249
|
-
!
|
|
250
|
-
), te && a.$tag$ === "foreignObject" && (te = !1),
|
|
248
|
+
te ? bn : yn,
|
|
249
|
+
!vt && Fe.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
|
|
250
|
+
), te && a.$tag$ === "foreignObject" && (te = !1), $s(null, a, te), a.$children$)
|
|
251
251
|
for (o = 0; o < a.$children$.length; ++o)
|
|
252
|
-
c =
|
|
252
|
+
c = yt(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"] =
|
|
256
|
-
},
|
|
255
|
+
return n["s-hn"] = tr, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Kt, 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$ && Xe(e.$elm$, !1)), n;
|
|
256
|
+
}, Xe = (e, t) => {
|
|
257
257
|
ee.$flags$ |= 1;
|
|
258
258
|
const r = Array.from(e.__childNodes || e.childNodes);
|
|
259
|
-
e["s-sr"] &&
|
|
259
|
+
e["s-sr"] && Fe.experimentalSlotFixes;
|
|
260
260
|
for (let s = r.length - 1; s >= 0; s--) {
|
|
261
261
|
const a = r[s];
|
|
262
|
-
a["s-hn"] !==
|
|
262
|
+
a["s-hn"] !== tr && a["s-ol"] && (Ce(Je(a).parentNode, a, Je(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, rr = !0), t && Xe(a, t);
|
|
263
263
|
}
|
|
264
264
|
ee.$flags$ &= -2;
|
|
265
|
-
},
|
|
265
|
+
}, _s = (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 =
|
|
269
|
-
},
|
|
268
|
+
s[a] && (c = yt(null, r, a), c && (s[a].$elm$ = c, Ce(n, c, Je(t))));
|
|
269
|
+
}, Is = (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 && (
|
|
274
|
+
o && (bt = !0, o["s-ol"] ? o["s-ol"].remove() : Xe(o, !0), o.remove());
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
},
|
|
278
|
-
let o = 0, n = 0, c = 0,
|
|
279
|
-
for (; o <=
|
|
277
|
+
}, Hn = (e, t, r, s, a = !1) => {
|
|
278
|
+
let o = 0, n = 0, c = 0, u = 0, h = t.length - 1, i = t[0], p = t[h], g = s.length - 1, b = s[0], v = s[g], T, _;
|
|
279
|
+
for (; o <= h && n <= g; )
|
|
280
280
|
if (i == null)
|
|
281
281
|
i = t[++o];
|
|
282
282
|
else if (p == null)
|
|
283
|
-
p = t[--
|
|
283
|
+
p = t[--h];
|
|
284
284
|
else if (b == null)
|
|
285
285
|
b = s[++n];
|
|
286
286
|
else if (v == null)
|
|
287
287
|
v = s[--g];
|
|
288
|
-
else if (
|
|
288
|
+
else if (dt(i, b, a))
|
|
289
289
|
Ae(i, b, a), i = t[++o], b = s[++n];
|
|
290
|
-
else if (
|
|
291
|
-
Ae(p, v, a), p = t[--
|
|
292
|
-
else if (
|
|
293
|
-
(i.$tag$ === "slot" || v.$tag$ === "slot") &&
|
|
294
|
-
else if (
|
|
295
|
-
(i.$tag$ === "slot" || v.$tag$ === "slot") &&
|
|
290
|
+
else if (dt(p, v, a))
|
|
291
|
+
Ae(p, v, a), p = t[--h], v = s[--g];
|
|
292
|
+
else if (dt(i, v, a))
|
|
293
|
+
(i.$tag$ === "slot" || v.$tag$ === "slot") && Xe(i.$elm$.parentNode, !1), Ae(i, v, a), Ce(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], v = s[--g];
|
|
294
|
+
else if (dt(p, b, a))
|
|
295
|
+
(i.$tag$ === "slot" || v.$tag$ === "slot") && Xe(p.$elm$.parentNode, !1), Ae(p, b, a), Ce(e, p.$elm$, i.$elm$), p = t[--h], b = 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$ === b.$key$) {
|
|
299
|
+
c = u;
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
|
-
c >= 0 ? (_ = t[c], _.$tag$ !== b.$tag$ ? T =
|
|
303
|
-
|
|
302
|
+
c >= 0 ? (_ = t[c], _.$tag$ !== b.$tag$ ? T = yt(t && t[n], r, c) : (Ae(_, b, a), t[c] = void 0, T = _.$elm$), b = s[++n]) : (T = yt(t && t[n], r, n), b = s[++n]), T && Ce(
|
|
303
|
+
Je(i.$elm$).parentNode,
|
|
304
304
|
T,
|
|
305
|
-
|
|
305
|
+
Je(i.$elm$)
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
|
-
o >
|
|
308
|
+
o > h ? _s(
|
|
309
309
|
e,
|
|
310
310
|
s[g + 1] == null ? null : s[g + 1].$elm$,
|
|
311
311
|
r,
|
|
312
312
|
s,
|
|
313
313
|
n,
|
|
314
314
|
g
|
|
315
|
-
) : n > g &&
|
|
316
|
-
},
|
|
315
|
+
) : n > g && Is(t, o, h);
|
|
316
|
+
}, dt = (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, Je = (e) => e && e["s-ol"] || e, Ae = (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" && !
|
|
318
|
+
let u;
|
|
319
|
+
c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !vt || $s(e, t, te), a !== null && o !== null ? Hn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), _s(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
|
-
!r &&
|
|
322
|
-
), te && n === "svg" && (te = !1)) : (
|
|
323
|
-
}, fe = [],
|
|
321
|
+
!r && Fe.updatable && a !== null && Is(a, 0, a.length - 1)
|
|
322
|
+
), te && n === "svg" && (te = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
|
|
323
|
+
}, fe = [], As = (e) => {
|
|
324
324
|
let t, r, s;
|
|
325
325
|
const a = e.__childNodes || e.childNodes;
|
|
326
326
|
for (const o of a) {
|
|
@@ -329,30 +329,30 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (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 = fe.find((
|
|
334
|
-
|
|
332
|
+
if (Jr(t, n)) {
|
|
333
|
+
let c = fe.find((u) => u.$nodeToRelocate$ === t);
|
|
334
|
+
bt = !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"], fe.push({
|
|
335
335
|
$slotRefNode$: o,
|
|
336
336
|
$nodeToRelocate$: t
|
|
337
|
-
})), t["s-sr"] && fe.map((
|
|
338
|
-
|
|
337
|
+
})), t["s-sr"] && fe.map((u) => {
|
|
338
|
+
Jr(u.$nodeToRelocate$, t["s-sn"]) && (c = fe.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
|
|
339
339
|
});
|
|
340
340
|
} else fe.some((c) => c.$nodeToRelocate$ === t) || fe.push({
|
|
341
341
|
$nodeToRelocate$: t
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
|
-
o.nodeType === 1 &&
|
|
344
|
+
o.nodeType === 1 && As(o);
|
|
345
345
|
}
|
|
346
|
-
}, Ce = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r),
|
|
346
|
+
}, Ce = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Un = (e, t, r = !1) => {
|
|
347
347
|
var s, a, o, n;
|
|
348
|
-
const c = e.$hostElement$,
|
|
349
|
-
if (
|
|
350
|
-
for (const i of Object.keys(
|
|
351
|
-
c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (
|
|
352
|
-
|
|
348
|
+
const c = e.$hostElement$, u = e.$vnode$ || gt(null, null), h = Mn(t) ? t : l(null, null, t);
|
|
349
|
+
if (tr = c.tagName, r && h.$attrs$)
|
|
350
|
+
for (const i of Object.keys(h.$attrs$))
|
|
351
|
+
c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (h.$attrs$[i] = c[i]);
|
|
352
|
+
h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c, vt = wn, Kt = c["s-cr"], bt = !1, Ae(u, h, r);
|
|
353
353
|
{
|
|
354
|
-
if (ee.$flags$ |= 1,
|
|
355
|
-
|
|
354
|
+
if (ee.$flags$ |= 1, rr) {
|
|
355
|
+
As(h.$elm$);
|
|
356
356
|
for (const i of fe) {
|
|
357
357
|
const p = i.$nodeToRelocate$;
|
|
358
358
|
if (!p["s-ol"]) {
|
|
@@ -386,10 +386,10 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
386
386
|
p.nodeType === 1 && (r && (p["s-ih"] = (n = p.hidden) != null ? n : !1), p.hidden = !0);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
|
|
389
|
+
bt && xs(h.$elm$), ee.$flags$ &= -2, fe.length = 0;
|
|
390
390
|
}
|
|
391
|
-
|
|
392
|
-
},
|
|
391
|
+
Kt = void 0;
|
|
392
|
+
}, Ms = (e, t) => {
|
|
393
393
|
if (t && !e.$onRenderResolve$ && t["s-p"]) {
|
|
394
394
|
const r = t["s-p"].push(
|
|
395
395
|
new Promise(
|
|
@@ -399,84 +399,84 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
399
399
|
)
|
|
400
400
|
);
|
|
401
401
|
}
|
|
402
|
-
},
|
|
402
|
+
}, sr = (e, t) => {
|
|
403
403
|
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
|
404
404
|
e.$flags$ |= 512;
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
return
|
|
408
|
-
},
|
|
409
|
-
const r = e.$hostElement$, s =
|
|
407
|
+
return Ms(e, e.$ancestorComponent$), En(() => zn(e, t));
|
|
408
|
+
}, zn = (e, t) => {
|
|
409
|
+
const r = e.$hostElement$, s = Ke("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(), jn(o, () => Vn(e, a, t));
|
|
416
|
+
}, jn = (e, t) => Bn(e) ? e.then(t).catch((r) => {
|
|
417
417
|
console.error(r), t();
|
|
418
|
-
}) : t(),
|
|
418
|
+
}) : t(), Bn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Vn = async (e, t, r) => {
|
|
419
419
|
var s;
|
|
420
|
-
const a = e.$hostElement$, o =
|
|
421
|
-
|
|
420
|
+
const a = e.$hostElement$, o = Ke("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Ke("render", e.$cmpMeta$.$tagName$);
|
|
421
|
+
Wn(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 = () => Gn(e);
|
|
424
|
+
u.length === 0 ? h() : (Promise.all(u).then(h), e.$flags$ |= 4, u.length = 0);
|
|
425
425
|
}
|
|
426
|
-
},
|
|
426
|
+
}, Wn = (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, Un(e, t, s);
|
|
429
429
|
} catch (a) {
|
|
430
|
-
|
|
430
|
+
Ct(a, e.$hostElement$);
|
|
431
431
|
}
|
|
432
432
|
return null;
|
|
433
|
-
}, Wn = (e) => {
|
|
434
|
-
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Qe("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
435
|
-
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Ms(r), qn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Gn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Xt(() => rr(e, !1)), e.$flags$ &= -517;
|
|
436
433
|
}, Gn = (e) => {
|
|
437
|
-
|
|
438
|
-
|
|
434
|
+
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ke("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
435
|
+
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Ls(r), Yn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || qn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Jt(() => sr(e, !1)), e.$flags$ &= -517;
|
|
436
|
+
}, qn = (e) => {
|
|
437
|
+
Ls(Le.documentElement), Jt(() => Ts(St, "appload", { detail: { namespace: mn } }));
|
|
438
|
+
}, Yn = (e, t, r, s) => {
|
|
439
439
|
if (e && e[t])
|
|
440
440
|
try {
|
|
441
441
|
return e[t](r);
|
|
442
442
|
} catch (a) {
|
|
443
|
-
|
|
443
|
+
Ct(a, s);
|
|
444
444
|
}
|
|
445
|
-
},
|
|
445
|
+
}, Ls = (e) => {
|
|
446
446
|
var t;
|
|
447
|
-
return e.classList.add((t =
|
|
448
|
-
},
|
|
449
|
-
const a = Se(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$,
|
|
450
|
-
r =
|
|
451
|
-
const
|
|
452
|
-
if (r !== n && !
|
|
447
|
+
return e.classList.add((t = Fe.hydratedSelectorName) != null ? t : "hydrated");
|
|
448
|
+
}, Zn = (e, t) => Se(e).$instanceValues$.get(t), as = (e, t, r, s) => {
|
|
449
|
+
const a = Se(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, u = o;
|
|
450
|
+
r = Es(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
457
|
p && p.map((g) => {
|
|
458
458
|
try {
|
|
459
|
-
|
|
459
|
+
u[g](r, n, t);
|
|
460
460
|
} catch (b) {
|
|
461
|
-
|
|
461
|
+
Ct(b, o);
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
(c & 18) === 2 &&
|
|
465
|
+
(c & 18) === 2 && sr(a, !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
},
|
|
468
|
+
}, Qn = (e, t, r) => {
|
|
469
469
|
var s, a;
|
|
470
470
|
const o = e.prototype;
|
|
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: i } = Object.getOwnPropertyDescriptor(o, c) || {};
|
|
477
|
+
h && (t.$members$[c][0] |= 2048), i && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
|
|
478
478
|
get() {
|
|
479
|
-
return
|
|
479
|
+
return h ? h.apply(this) : Zn(this, c);
|
|
480
480
|
},
|
|
481
481
|
configurable: !0,
|
|
482
482
|
enumerable: !0
|
|
@@ -484,12 +484,12 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
484
484
|
set(p) {
|
|
485
485
|
const g = Se(this);
|
|
486
486
|
if (i) {
|
|
487
|
-
const b =
|
|
488
|
-
typeof b > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && b && g.$instanceValues$.set(c, b), i.apply(this, [
|
|
487
|
+
const b = u & 32 ? this[c] : g.$hostElement$[c];
|
|
488
|
+
typeof b > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && b && g.$instanceValues$.set(c, b), i.apply(this, [Es(p, u)]), p = u & 32 ? this[c] : g.$hostElement$[c], as(this, c, p, t);
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
491
|
{
|
|
492
|
-
|
|
492
|
+
as(this, c, p, t);
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
@@ -498,20 +498,20 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
498
498
|
});
|
|
499
499
|
{
|
|
500
500
|
const c = /* @__PURE__ */ new Map();
|
|
501
|
-
o.attributeChangedCallback = function(
|
|
501
|
+
o.attributeChangedCallback = function(u, h, i) {
|
|
502
502
|
ee.jmp(() => {
|
|
503
503
|
var p;
|
|
504
|
-
const g = c.get(
|
|
505
|
-
if (!(this.hasOwnProperty(g) &&
|
|
504
|
+
const g = c.get(u);
|
|
505
|
+
if (!(this.hasOwnProperty(g) && Fe.lazyLoad)) {
|
|
506
506
|
if (o.hasOwnProperty(g) && typeof this[g] == "number" && // cast type to number to avoid TS compiler issues
|
|
507
507
|
this[g] == i)
|
|
508
508
|
return;
|
|
509
509
|
if (g == null) {
|
|
510
510
|
const v = Se(this), T = v == null ? void 0 : v.$flags$;
|
|
511
|
-
if (T && !(T & 8) && T & 128 && i !==
|
|
512
|
-
const N = this, I = (p = t.$watchers$) == null ? void 0 : p[
|
|
513
|
-
I == null || I.forEach((
|
|
514
|
-
N[
|
|
511
|
+
if (T && !(T & 8) && T & 128 && i !== h) {
|
|
512
|
+
const N = this, I = (p = t.$watchers$) == null ? void 0 : p[u];
|
|
513
|
+
I == null || I.forEach((Ne) => {
|
|
514
|
+
N[Ne] != null && N[Ne].call(N, i, h, u);
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
return;
|
|
@@ -524,18 +524,18 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
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 i =
|
|
531
|
-
return c.set(i,
|
|
529
|
+
).map(([u, h]) => {
|
|
530
|
+
const i = h[1] || u;
|
|
531
|
+
return c.set(i, u), i;
|
|
532
532
|
})
|
|
533
533
|
])
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
return e;
|
|
538
|
-
},
|
|
538
|
+
}, Kn = async (e, t, r, s) => {
|
|
539
539
|
if (!(t.$flags$ & 32)) {
|
|
540
540
|
t.$flags$ |= 32;
|
|
541
541
|
{
|
|
@@ -546,22 +546,22 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
546
546
|
);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
const a = t.$ancestorComponent$, o = () =>
|
|
549
|
+
const a = t.$ancestorComponent$, o = () => sr(t, !0);
|
|
550
550
|
a && a["s-rc"] ? a["s-rc"].push(o) : o();
|
|
551
|
-
},
|
|
552
|
-
},
|
|
551
|
+
}, Xn = (e, t) => {
|
|
552
|
+
}, Jn = (e) => {
|
|
553
553
|
if (!(ee.$flags$ & 1)) {
|
|
554
|
-
const t = Se(e), r = t.$cmpMeta$, s =
|
|
554
|
+
const t = Se(e), r = t.$cmpMeta$, s = Ke("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(() => Xn());
|
|
557
557
|
else {
|
|
558
558
|
t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
559
|
-
r.$flags$ & 12 &&
|
|
559
|
+
r.$flags$ & 12 && eo(e);
|
|
560
560
|
{
|
|
561
561
|
let a = e;
|
|
562
562
|
for (; a = a.parentNode || a.host; )
|
|
563
563
|
if (a["s-p"]) {
|
|
564
|
-
|
|
564
|
+
Ms(t, t.$ancestorComponent$ = a);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -570,17 +570,17 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
570
570
|
const n = e[a];
|
|
571
571
|
delete e[a], e[a] = n;
|
|
572
572
|
}
|
|
573
|
-
}),
|
|
573
|
+
}), Kn(e, t);
|
|
574
574
|
}
|
|
575
575
|
s();
|
|
576
576
|
}
|
|
577
|
-
},
|
|
577
|
+
}, eo = (e) => {
|
|
578
578
|
const t = e["s-cr"] = Le.createComment(
|
|
579
579
|
""
|
|
580
580
|
);
|
|
581
581
|
t["s-cn"] = !0, Ce(e, t, e.firstChild);
|
|
582
|
-
},
|
|
583
|
-
ee.$flags$ & 1 || Se(e),
|
|
582
|
+
}, to = async (e) => {
|
|
583
|
+
ee.$flags$ & 1 || Se(e), ft.has(e) && ft.delete(e), e.shadowRoot && ft.has(e.shadowRoot) && ft.delete(e.shadowRoot);
|
|
584
584
|
}, D = (e, t) => {
|
|
585
585
|
const r = {
|
|
586
586
|
$flags$: t[0],
|
|
@@ -591,24 +591,24 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
591
591
|
return Object.assign(e.prototype, {
|
|
592
592
|
__hasHostListenerAttached: !1,
|
|
593
593
|
__registerHost() {
|
|
594
|
-
|
|
594
|
+
kn(this, r);
|
|
595
595
|
},
|
|
596
596
|
connectedCallback() {
|
|
597
|
-
this.__hasHostListenerAttached || (Se(this), this.__hasHostListenerAttached = !0),
|
|
597
|
+
this.__hasHostListenerAttached || (Se(this), this.__hasHostListenerAttached = !0), Jn(this), s && s.call(this);
|
|
598
598
|
},
|
|
599
599
|
disconnectedCallback() {
|
|
600
|
-
|
|
600
|
+
to(this), a && a.call(this), ee.raf(() => {
|
|
601
601
|
var o;
|
|
602
602
|
const n = Se(this);
|
|
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 &&
|
|
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 && Sn(this);
|
|
604
604
|
});
|
|
605
605
|
},
|
|
606
606
|
__attachShadow() {
|
|
607
607
|
this.shadowRoot = this;
|
|
608
608
|
}
|
|
609
|
-
}), e.is = r.$tagName$,
|
|
610
|
-
},
|
|
611
|
-
class
|
|
609
|
+
}), e.is = r.$tagName$, Qn(e, r);
|
|
610
|
+
}, ro = (e, t) => t, so = Object.defineProperty, ao = (e, t, r) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => ao(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
|
+
class no {
|
|
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
|
}
|
|
@@ -646,27 +646,27 @@ class ao {
|
|
|
646
646
|
}
|
|
647
647
|
function de(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 (i) {
|
|
653
653
|
o(i);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function c(
|
|
656
|
+
function c(h) {
|
|
657
657
|
try {
|
|
658
|
-
|
|
658
|
+
u(s.throw(h));
|
|
659
659
|
} catch (i) {
|
|
660
660
|
o(i);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function h
|
|
663
|
+
function u(h) {
|
|
664
664
|
var i;
|
|
665
|
-
|
|
665
|
+
h.done ? a(h.value) : (i = h.value, i instanceof r ? i : new r(function(p) {
|
|
666
666
|
p(i);
|
|
667
667
|
})).then(n, c);
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
u((s = s.apply(e, [])).next());
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
function pe(e, t) {
|
|
@@ -677,8 +677,8 @@ function pe(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(i) {
|
|
683
683
|
if (r) throw new TypeError("Generator is already executing.");
|
|
684
684
|
for (; o && (o = 0, i[0] && (n = 0)), n; ) try {
|
|
@@ -724,103 +724,103 @@ function pe(e, t) {
|
|
|
724
724
|
}
|
|
725
725
|
if (5 & i[0]) throw i[1];
|
|
726
726
|
return { value: i[0] ? i[1] : void 0, done: !0 };
|
|
727
|
-
}([
|
|
727
|
+
}([u, h]);
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
var me = { exclude: [] },
|
|
732
|
-
typeof window < "u" && (
|
|
733
|
-
},
|
|
734
|
-
return Object.fromEntries(Object.entries(
|
|
731
|
+
var me = { exclude: [] }, Os = {}, oo = { timeout: "true" }, ne = function(e, t) {
|
|
732
|
+
typeof window < "u" && (Os[e] = t);
|
|
733
|
+
}, co = function() {
|
|
734
|
+
return Object.fromEntries(Object.entries(Os).filter(function(e) {
|
|
735
735
|
var t, r = e[0];
|
|
736
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
|
}));
|
|
740
740
|
};
|
|
741
|
-
function
|
|
741
|
+
function pt(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
744
|
var W = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
745
|
-
function
|
|
745
|
+
function se(e, t) {
|
|
746
746
|
return e << t | e >>> 32 - t;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function ar(e, t) {
|
|
749
749
|
var r;
|
|
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 i =
|
|
755
|
-
i[0] = Math.imul(i[0], W[0]), i[0] =
|
|
753
|
+
for (var c = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * c), h = 0; h < c; h++) {
|
|
754
|
+
var i = u.subarray(4 * h, 4 * (h + 1));
|
|
755
|
+
i[0] = Math.imul(i[0], W[0]), i[0] = se(i[0], 15), i[0] = Math.imul(i[0], W[1]), n[0] = n[0] ^ i[0], n[0] = se(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, i[1] = Math.imul(i[1], W[1]), i[1] = se(i[1], 16), i[1] = Math.imul(i[1], W[2]), n[1] = n[1] ^ i[1], n[1] = se(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, i[2] = Math.imul(i[2], W[2]), i[2] = se(i[2], 17), i[2] = Math.imul(i[2], W[3]), n[2] = n[2] ^ i[2], n[2] = se(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, i[3] = Math.imul(i[3], W[3]), i[3] = se(i[3], 18), i[3] = Math.imul(i[3], W[0]), n[3] = n[3] ^ i[3], n[3] = se(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), i = new Uint8Array(o, 16 * c, u);
|
|
759
|
+
switch (u) {
|
|
760
760
|
case 15:
|
|
761
|
-
|
|
761
|
+
h[3] = h[3] ^ i[14] << 16;
|
|
762
762
|
case 14:
|
|
763
|
-
|
|
763
|
+
h[3] = h[3] ^ i[13] << 8;
|
|
764
764
|
case 13:
|
|
765
|
-
|
|
765
|
+
h[3] = h[3] ^ i[12] << 0, h[3] = Math.imul(h[3], W[3]), h[3] = se(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] ^ i[11] << 24;
|
|
768
768
|
case 11:
|
|
769
|
-
|
|
769
|
+
h[2] = h[2] ^ i[10] << 16;
|
|
770
770
|
case 10:
|
|
771
|
-
|
|
771
|
+
h[2] = h[2] ^ i[9] << 8;
|
|
772
772
|
case 9:
|
|
773
|
-
|
|
773
|
+
h[2] = h[2] ^ i[8] << 0, h[2] = Math.imul(h[2], W[2]), h[2] = se(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] ^ i[7] << 24;
|
|
776
776
|
case 7:
|
|
777
|
-
|
|
777
|
+
h[1] = h[1] ^ i[6] << 16;
|
|
778
778
|
case 6:
|
|
779
|
-
|
|
779
|
+
h[1] = h[1] ^ i[5] << 8;
|
|
780
780
|
case 5:
|
|
781
|
-
|
|
781
|
+
h[1] = h[1] ^ i[4] << 0, h[1] = Math.imul(h[1], W[1]), h[1] = se(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] ^ i[3] << 24;
|
|
784
784
|
case 3:
|
|
785
|
-
|
|
785
|
+
h[0] = h[0] ^ i[2] << 16;
|
|
786
786
|
case 2:
|
|
787
|
-
|
|
787
|
+
h[0] = h[0] ^ i[1] << 8;
|
|
788
788
|
case 1:
|
|
789
|
-
|
|
789
|
+
h[0] = h[0] ^ i[0] << 0, h[0] = Math.imul(h[0], W[0]), h[0] = se(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
|
-
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] =
|
|
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] = pt(n[0]), n[1] = pt(n[1]), n[2] = pt(n[2]), n[3] = pt(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;
|
|
793
793
|
}(e, s);
|
|
794
794
|
var a = new Uint8Array(s.buffer);
|
|
795
795
|
return Array.from(a).map(function(o) {
|
|
796
796
|
return o.toString(16).padStart(2, "0");
|
|
797
797
|
}).join("");
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function io(e, t) {
|
|
800
800
|
return new Promise(function(r) {
|
|
801
801
|
setTimeout(function() {
|
|
802
802
|
return r(t);
|
|
803
803
|
}, e);
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function lo(e, t, r) {
|
|
807
807
|
return Promise.all(e.map(function(s) {
|
|
808
|
-
return Promise.race([s,
|
|
808
|
+
return Promise.race([s, io(t, r)]);
|
|
809
809
|
}));
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function uo() {
|
|
812
812
|
return de(this, void 0, void 0, function() {
|
|
813
813
|
var e, t, r, s, a;
|
|
814
814
|
return pe(this, function(o) {
|
|
815
815
|
switch (o.label) {
|
|
816
816
|
case 0:
|
|
817
|
-
return o.trys.push([0, 2, , 3]), e =
|
|
817
|
+
return o.trys.push([0, 2, , 3]), e = co(), t = Object.keys(e), [4, lo(Object.values(e), (me == null ? void 0 : me.timeout) || 1e3, oo)];
|
|
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, Fs(a, me.exclude || [])];
|
|
824
824
|
case 2:
|
|
825
825
|
throw o.sent();
|
|
826
826
|
case 3:
|
|
@@ -829,14 +829,14 @@ function lo() {
|
|
|
829
829
|
});
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Fs(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 = Fs(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
|
}
|
|
@@ -845,15 +845,15 @@ function Os(e, t) {
|
|
|
845
845
|
for (var a in e) s(a);
|
|
846
846
|
return r;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function ho(e) {
|
|
849
849
|
return de(this, void 0, void 0, function() {
|
|
850
850
|
var t, r;
|
|
851
851
|
return pe(this, function(s) {
|
|
852
852
|
switch (s.label) {
|
|
853
853
|
case 0:
|
|
854
|
-
return s.trys.push([0, 2, , 3]), [4,
|
|
854
|
+
return s.trys.push([0, 2, , 3]), [4, uo()];
|
|
855
855
|
case 1:
|
|
856
|
-
return t = s.sent(), r =
|
|
856
|
+
return t = s.sent(), r = ar(JSON.stringify(t)), [2, r.toString()];
|
|
857
857
|
case 2:
|
|
858
858
|
throw s.sent();
|
|
859
859
|
case 3:
|
|
@@ -862,19 +862,19 @@ function uo(e) {
|
|
|
862
862
|
});
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function fo(e) {
|
|
866
866
|
for (var t = 0, r = 0; r < e.length; ++r) t += Math.abs(e[r]);
|
|
867
867
|
return t;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Ds(e, t, r) {
|
|
870
870
|
for (var s = [], a = 0; a < e[0].data.length; a++) {
|
|
871
871
|
for (var o = [], n = 0; n < e.length; n++) o.push(e[n].data[a]);
|
|
872
|
-
s.push(
|
|
872
|
+
s.push(po(o));
|
|
873
873
|
}
|
|
874
874
|
var c = new Uint8ClampedArray(s);
|
|
875
875
|
return new ImageData(c, t, r);
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function po(e) {
|
|
878
878
|
if (e.length === 0) return 0;
|
|
879
879
|
for (var t = {}, r = 0, s = e; r < s.length; r++)
|
|
880
880
|
t[o = s[r]] = (t[o] || 0) + 1;
|
|
@@ -882,7 +882,7 @@ function fo(e) {
|
|
|
882
882
|
for (var o in t) t[o] > t[a] && (a = parseInt(o, 10));
|
|
883
883
|
return a;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function et() {
|
|
886
886
|
if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
|
|
887
887
|
for (var e = navigator.userAgent, t = { Edg: "Edge", OPR: "Opera" }, r = 0, s = [/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/, /(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/]; r < s.length; r++) {
|
|
888
888
|
var a = s[r], o = e.match(a);
|
|
@@ -898,24 +898,24 @@ ne("audio", function() {
|
|
|
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: fo(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
|
});
|
|
909
909
|
});
|
|
910
910
|
});
|
|
911
|
-
var
|
|
912
|
-
|
|
911
|
+
var mo = et().name !== "SamsungBrowser" ? 1 : 3, ns = 280, os = 20;
|
|
912
|
+
et().name != "Firefox" && ne("canvas", function() {
|
|
913
913
|
return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
|
|
914
|
-
var t = Array.from({ length:
|
|
914
|
+
var t = Array.from({ length: mo }, function() {
|
|
915
915
|
return function() {
|
|
916
916
|
var r = document.createElement("canvas"), s = r.getContext("2d");
|
|
917
917
|
if (!s) return new ImageData(1, 1);
|
|
918
|
-
r.width =
|
|
918
|
+
r.width = ns, r.height = os;
|
|
919
919
|
var a = s.createLinearGradient(0, 0, r.width, r.height);
|
|
920
920
|
a.addColorStop(0, "red"), a.addColorStop(0.16666666666666666, "orange"), a.addColorStop(0.3333333333333333, "yellow"), a.addColorStop(0.5, "green"), a.addColorStop(0.6666666666666666, "blue"), a.addColorStop(0.8333333333333334, "indigo"), a.addColorStop(1, "violet"), s.fillStyle = a, s.fillRect(0, 0, r.width, r.height);
|
|
921
921
|
var o = "Random Text WMwmil10Oo";
|
|
@@ -924,23 +924,23 @@ Je().name != "Firefox" && ne("canvas", function() {
|
|
|
924
924
|
return n;
|
|
925
925
|
}();
|
|
926
926
|
});
|
|
927
|
-
e({ commonImageDataHash:
|
|
927
|
+
e({ commonImageDataHash: ar(Ds(t, ns, os).data.toString()).toString() });
|
|
928
928
|
});
|
|
929
929
|
});
|
|
930
|
-
var Wt,
|
|
931
|
-
function
|
|
930
|
+
var Wt, go = ["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"], vo = ["monospace", "sans-serif", "serif"];
|
|
931
|
+
function cs(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 bo() {
|
|
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;
|
|
@@ -948,23 +948,23 @@ function vo() {
|
|
|
948
948
|
}
|
|
949
949
|
return "undefined";
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function yo() {
|
|
952
952
|
var e = new Float32Array(1), t = new Uint8Array(e.buffer);
|
|
953
953
|
return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Co(e, t) {
|
|
956
956
|
var r = {};
|
|
957
957
|
return t.forEach(function(s) {
|
|
958
958
|
var a = function(o) {
|
|
959
959
|
if (o.length === 0) return null;
|
|
960
960
|
var n = {};
|
|
961
|
-
o.forEach(function(
|
|
962
|
-
var i = String(
|
|
961
|
+
o.forEach(function(h) {
|
|
962
|
+
var i = String(h);
|
|
963
963
|
n[i] = (n[i] || 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;
|
|
@@ -974,7 +974,7 @@ function yo(e, t) {
|
|
|
974
974
|
a && (r[s] = a);
|
|
975
975
|
}), r;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function So() {
|
|
978
978
|
var e = [], t = { "prefers-contrast": ["high", "more", "low", "less", "forced", "no-preference"], "any-hover": ["hover", "none"], "any-pointer": ["none", "coarse", "fine"], pointer: ["none", "coarse", "fine"], hover: ["hover", "none"], update: ["fast", "slow"], "inverted-colors": ["inverted", "none"], "prefers-reduced-motion": ["reduce", "no-preference"], "prefers-reduced-transparency": ["reduce", "no-preference"], scripting: ["none", "initial-only", "enabled"], "forced-colors": ["active", "none"] };
|
|
979
979
|
return Object.keys(t).forEach(function(r) {
|
|
980
980
|
t[r].forEach(function(s) {
|
|
@@ -982,7 +982,7 @@ function Co() {
|
|
|
982
982
|
});
|
|
983
983
|
}), e;
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function ko() {
|
|
986
986
|
if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
|
|
987
987
|
for (var e = window.ApplePaySession.supportsVersion, t = 15; t > 0; t--) if (e(t)) return t;
|
|
988
988
|
} catch {
|
|
@@ -990,7 +990,7 @@ function So() {
|
|
|
990
990
|
}
|
|
991
991
|
return 0;
|
|
992
992
|
}
|
|
993
|
-
|
|
993
|
+
et().name != "Firefox" && ne("fonts", function() {
|
|
994
994
|
var e = this;
|
|
995
995
|
return new Promise(function(t, r) {
|
|
996
996
|
try {
|
|
@@ -998,34 +998,34 @@ Je().name != "Firefox" && ne("fonts", function() {
|
|
|
998
998
|
var a;
|
|
999
999
|
de(this, void 0, void 0, function() {
|
|
1000
1000
|
var o, n, c;
|
|
1001
|
-
return pe(this, function(
|
|
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, i);
|
|
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, i;
|
|
1016
1016
|
});
|
|
1017
1017
|
});
|
|
1018
1018
|
})(function(s) {
|
|
1019
1019
|
var a = s.iframe;
|
|
1020
1020
|
return de(e, void 0, void 0, function() {
|
|
1021
|
-
var o, n, c,
|
|
1022
|
-
return pe(this, function(
|
|
1023
|
-
return o = a.createElement("canvas"), n = o.getContext("2d"), c =
|
|
1024
|
-
return
|
|
1025
|
-
}),
|
|
1026
|
-
var p =
|
|
1027
|
-
c.includes(p) || (
|
|
1028
|
-
}), t(
|
|
1021
|
+
var o, n, c, u;
|
|
1022
|
+
return pe(this, function(h) {
|
|
1023
|
+
return o = a.createElement("canvas"), n = o.getContext("2d"), c = vo.map(function(i) {
|
|
1024
|
+
return cs(n, i);
|
|
1025
|
+
}), u = {}, go.forEach(function(i) {
|
|
1026
|
+
var p = cs(n, i);
|
|
1027
|
+
c.includes(p) || (u[i] = p);
|
|
1028
|
+
}), t(u), [2];
|
|
1029
1029
|
});
|
|
1030
1030
|
});
|
|
1031
1031
|
});
|
|
@@ -1036,7 +1036,7 @@ Je().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: bo(), architecture: yo(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
|
|
1040
1040
|
});
|
|
1041
1041
|
}), ne("locales", function() {
|
|
1042
1042
|
return new Promise(function(e) {
|
|
@@ -1072,7 +1072,7 @@ Je().name != "Firefox" && ne("fonts", function() {
|
|
|
1072
1072
|
});
|
|
1073
1073
|
}();
|
|
1074
1074
|
}), [2, Promise.all(e).then(function(r) {
|
|
1075
|
-
return
|
|
1075
|
+
return Co(r, Wt);
|
|
1076
1076
|
})];
|
|
1077
1077
|
});
|
|
1078
1078
|
});
|
|
@@ -1087,15 +1087,15 @@ Je().name != "Firefox" && ne("fonts", function() {
|
|
|
1087
1087
|
});
|
|
1088
1088
|
}), ne("screen", function() {
|
|
1089
1089
|
return new Promise(function(e) {
|
|
1090
|
-
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches:
|
|
1090
|
+
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: So() });
|
|
1091
1091
|
});
|
|
1092
1092
|
}), ne("system", function() {
|
|
1093
1093
|
return new Promise(function(e) {
|
|
1094
|
-
var t =
|
|
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:
|
|
1094
|
+
var t = et();
|
|
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: ko() });
|
|
1096
1096
|
});
|
|
1097
1097
|
});
|
|
1098
|
-
var K,
|
|
1098
|
+
var K, wo = et().name !== "SamsungBrowser" ? 1 : 3, k = null;
|
|
1099
1099
|
ne("webgl", function() {
|
|
1100
1100
|
return de(this, void 0, void 0, function() {
|
|
1101
1101
|
var e;
|
|
@@ -1103,7 +1103,7 @@ ne("webgl", function() {
|
|
|
1103
1103
|
typeof document < "u" && ((K = document.createElement("canvas")).width = 200, K.height = 100, k = K.getContext("webgl"));
|
|
1104
1104
|
try {
|
|
1105
1105
|
if (!k) throw new Error("WebGL not supported");
|
|
1106
|
-
return e = Array.from({ length:
|
|
1106
|
+
return e = Array.from({ length: wo }, function() {
|
|
1107
1107
|
return function() {
|
|
1108
1108
|
try {
|
|
1109
1109
|
if (!k) throw new Error("WebGL not supported");
|
|
@@ -1125,12 +1125,12 @@ ne("webgl", function() {
|
|
|
1125
1125
|
if (!n) throw new Error("Failed to create shader program");
|
|
1126
1126
|
if (k.attachShader(n, a), k.attachShader(n, o), k.linkProgram(n), !k.getProgramParameter(n, k.LINK_STATUS)) throw new Error("Shader program linking failed: " + k.getProgramInfoLog(n));
|
|
1127
1127
|
k.useProgram(n);
|
|
1128
|
-
for (var c = 137,
|
|
1129
|
-
var p = i *
|
|
1130
|
-
|
|
1128
|
+
for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c, i = 0; i < c; i++) {
|
|
1129
|
+
var p = i * h;
|
|
1130
|
+
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (K.width / 2), u[4 * i + 3] = Math.sin(p) * (K.height / 2);
|
|
1131
1131
|
}
|
|
1132
1132
|
var g = k.createBuffer();
|
|
1133
|
-
k.bindBuffer(k.ARRAY_BUFFER, g), k.bufferData(k.ARRAY_BUFFER,
|
|
1133
|
+
k.bindBuffer(k.ARRAY_BUFFER, g), k.bufferData(k.ARRAY_BUFFER, u, k.STATIC_DRAW);
|
|
1134
1134
|
var b = k.getAttribLocation(n, "position");
|
|
1135
1135
|
k.enableVertexAttribArray(b), k.vertexAttribPointer(b, 2, k.FLOAT, !1, 0, 0), k.viewport(0, 0, K.width, K.height), k.clearColor(0, 0, 0, 1), k.clear(k.COLOR_BUFFER_BIT), k.drawArrays(k.LINES, 0, 2 * c);
|
|
1136
1136
|
var v = new Uint8ClampedArray(K.width * K.height * 4);
|
|
@@ -1141,7 +1141,7 @@ ne("webgl", function() {
|
|
|
1141
1141
|
k && (k.bindBuffer(k.ARRAY_BUFFER, null), k.useProgram(null), k.viewport(0, 0, k.drawingBufferWidth, k.drawingBufferHeight), k.clearColor(0, 0, 0, 0));
|
|
1142
1142
|
}
|
|
1143
1143
|
}();
|
|
1144
|
-
}), [2, { commonImageHash:
|
|
1144
|
+
}), [2, { commonImageHash: ar(Ds(e, K.width, K.height).data.toString()).toString() }];
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
return [2, { webgl: "unsupported" }];
|
|
1147
1147
|
}
|
|
@@ -1161,14 +1161,14 @@ ne("math", function() {
|
|
|
1161
1161
|
});
|
|
1162
1162
|
});
|
|
1163
1163
|
});
|
|
1164
|
-
const
|
|
1165
|
-
let
|
|
1164
|
+
const xo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1165
|
+
let Oe = (e = 21) => {
|
|
1166
1166
|
let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
1167
1167
|
for (; e--; )
|
|
1168
|
-
t +=
|
|
1168
|
+
t += xo[r[e] & 63];
|
|
1169
1169
|
return t;
|
|
1170
1170
|
};
|
|
1171
|
-
class
|
|
1171
|
+
class nr {
|
|
1172
1172
|
constructor(t) {
|
|
1173
1173
|
A(this, "config"), this.config = t;
|
|
1174
1174
|
}
|
|
@@ -1186,7 +1186,7 @@ class ar {
|
|
|
1186
1186
|
async onAdContainerViewed(t) {
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
class
|
|
1189
|
+
class Ro extends nr {
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Gets ads from the adMarketplace API based on the search term.
|
|
1192
1192
|
*/
|
|
@@ -1203,13 +1203,13 @@ class xo extends ar {
|
|
|
1203
1203
|
"results-pa": `${this.config.admProductAdQuantity || 0}`
|
|
1204
1204
|
}).toString()}`, s = await (await fetch(r, { method: "GET" })).json(), a = s.product_ads.map(
|
|
1205
1205
|
(n) => ({
|
|
1206
|
-
id:
|
|
1206
|
+
id: Oe(),
|
|
1207
1207
|
adSource: "adMarketplace",
|
|
1208
1208
|
admAdType: "adm-product-ad",
|
|
1209
1209
|
admAd: n
|
|
1210
1210
|
})
|
|
1211
1211
|
), o = s.text_ads.map((n) => ({
|
|
1212
|
-
id:
|
|
1212
|
+
id: Oe(),
|
|
1213
1213
|
adSource: "adMarketplace",
|
|
1214
1214
|
admAdType: "adm-text-ad",
|
|
1215
1215
|
admAd: n
|
|
@@ -1222,13 +1222,13 @@ class xo extends ar {
|
|
|
1222
1222
|
(r = s.admAd) != null && r.impression_url && fetch(s.admAd.impression_url);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
class
|
|
1225
|
+
class Eo extends nr {
|
|
1226
1226
|
async getAds(t) {
|
|
1227
1227
|
return [];
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
const
|
|
1231
|
-
class
|
|
1230
|
+
const To = 1e3;
|
|
1231
|
+
class Po extends nr {
|
|
1232
1232
|
constructor(t) {
|
|
1233
1233
|
super(t), A(this, "adCallTimeout"), this.addScriptTagToDocument();
|
|
1234
1234
|
}
|
|
@@ -1241,7 +1241,7 @@ class To extends ar {
|
|
|
1241
1241
|
this.removeScriptTagFromDocument();
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
|
-
this.performAdCall(
|
|
1244
|
+
this.performAdCall(To);
|
|
1245
1245
|
}
|
|
1246
1246
|
async onInputCleared() {
|
|
1247
1247
|
this.removeScriptTagFromDocument();
|
|
@@ -1270,8 +1270,8 @@ class To extends ar {
|
|
|
1270
1270
|
t && document.head.removeChild(t);
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
const
|
|
1274
|
-
class
|
|
1273
|
+
const $o = 600;
|
|
1274
|
+
class _o {
|
|
1275
1275
|
constructor(t, r, s) {
|
|
1276
1276
|
A(this, "measureRequestTimeout"), A(this, "measureRequestsBatched", []), A(this, "config"), A(this, "sdkInfo"), A(this, "userId"), A(this, "sessionId"), A(this, "sendMeasureEvent", async (a, o = {}, n = {}) => {
|
|
1277
1277
|
const c = {
|
|
@@ -1287,16 +1287,17 @@ class $o {
|
|
|
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 i = await fetch(
|
|
1292
|
+
const i = await fetch(h, {
|
|
1293
1293
|
method: "POST",
|
|
1294
1294
|
headers: {
|
|
1295
1295
|
"Content-Type": "application/json",
|
|
1296
1296
|
Authorization: this.config.readKey,
|
|
1297
|
-
"X-Sc-User-Id": this.userId
|
|
1297
|
+
"X-Sc-User-Id": this.userId,
|
|
1298
|
+
"X-Sc-Session-Id": this.sessionId
|
|
1298
1299
|
},
|
|
1299
|
-
body:
|
|
1300
|
+
body: u,
|
|
1300
1301
|
keepalive: !0
|
|
1301
1302
|
});
|
|
1302
1303
|
if (!i.ok)
|
|
@@ -1308,16 +1309,17 @@ class $o {
|
|
|
1308
1309
|
}
|
|
1309
1310
|
} else
|
|
1310
1311
|
this.measureRequestsBatched.push(c), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
|
|
1311
|
-
const
|
|
1312
|
+
const u = JSON.stringify({ items: this.measureRequestsBatched }), h = `${this.baseMeasureUrl}/batch`;
|
|
1312
1313
|
try {
|
|
1313
|
-
const i = await fetch(
|
|
1314
|
+
const i = await fetch(h, {
|
|
1314
1315
|
method: "POST",
|
|
1315
1316
|
headers: {
|
|
1316
1317
|
"Content-Type": "application/json",
|
|
1317
1318
|
Authorization: this.config.readKey,
|
|
1318
|
-
"X-Sc-User-Id": this.userId
|
|
1319
|
+
"X-Sc-User-Id": this.userId,
|
|
1320
|
+
"X-Sc-Session-Id": this.sessionId
|
|
1319
1321
|
},
|
|
1320
|
-
body:
|
|
1322
|
+
body: u,
|
|
1321
1323
|
keepalive: !0
|
|
1322
1324
|
});
|
|
1323
1325
|
if (this.measureRequestsBatched = [], !i.ok)
|
|
@@ -1328,8 +1330,8 @@ class $o {
|
|
|
1328
1330
|
} catch (i) {
|
|
1329
1331
|
throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", i), i;
|
|
1330
1332
|
}
|
|
1331
|
-
},
|
|
1332
|
-
}), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId =
|
|
1333
|
+
}, $o);
|
|
1334
|
+
}), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = Oe(), this.sendMeasureEvent("sdk_initialized");
|
|
1333
1335
|
}
|
|
1334
1336
|
/**
|
|
1335
1337
|
* Getter for the base url used by the /measure endpoints.
|
|
@@ -1352,7 +1354,7 @@ class $o {
|
|
|
1352
1354
|
};
|
|
1353
1355
|
}
|
|
1354
1356
|
}
|
|
1355
|
-
const
|
|
1357
|
+
const Io = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Gt = (e) => {
|
|
1356
1358
|
let t = "";
|
|
1357
1359
|
if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
|
|
1358
1360
|
"‘": "'",
|
|
@@ -1368,7 +1370,7 @@ const _o = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Io = (e) => {
|
|
|
1368
1370
|
class Mo {
|
|
1369
1371
|
constructor(t, r, s) {
|
|
1370
1372
|
A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponseItems", async (a) => {
|
|
1371
|
-
var o, n, c,
|
|
1373
|
+
var o, n, c, u, h;
|
|
1372
1374
|
let i;
|
|
1373
1375
|
const p = typeof a == "string" ? a : a.searchTerm;
|
|
1374
1376
|
try {
|
|
@@ -1395,9 +1397,9 @@ class Mo {
|
|
|
1395
1397
|
data: {
|
|
1396
1398
|
searchTerm: p
|
|
1397
1399
|
}
|
|
1398
|
-
}), (((
|
|
1400
|
+
}), (((u = i.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
|
|
1399
1401
|
name: "no_results_returned"
|
|
1400
|
-
}), (
|
|
1402
|
+
}), (h = this.parent.adClient) == null || h.onQueryFetched(
|
|
1401
1403
|
typeof a == "string" ? { searchTerm: p, mode: "exact" } : a,
|
|
1402
1404
|
i
|
|
1403
1405
|
), i;
|
|
@@ -1405,57 +1407,61 @@ class Mo {
|
|
|
1405
1407
|
throw console.error("Error parsing response:", g), g;
|
|
1406
1408
|
}
|
|
1407
1409
|
}), A(this, "handleGetSearchResponseItemsWithString", async (a) => {
|
|
1408
|
-
|
|
1410
|
+
var o;
|
|
1411
|
+
let n;
|
|
1409
1412
|
try {
|
|
1410
|
-
|
|
1413
|
+
n = JSON.parse(a), n = {
|
|
1411
1414
|
limit: this.config.searchResultsPerPage,
|
|
1412
|
-
|
|
1413
|
-
...o
|
|
1415
|
+
...n
|
|
1414
1416
|
};
|
|
1415
1417
|
} catch {
|
|
1416
1418
|
throw new Error("Error: Query string is not valid json.");
|
|
1417
1419
|
}
|
|
1418
|
-
const
|
|
1420
|
+
const c = await fetch(this.baseSearchUrl, {
|
|
1419
1421
|
method: "POST",
|
|
1420
1422
|
headers: {
|
|
1421
1423
|
Authorization: this.config.readKey,
|
|
1422
1424
|
"Content-Type": "application/json",
|
|
1423
|
-
"X-Sc-User-Id": this.userId
|
|
1425
|
+
"X-Sc-User-Id": this.userId,
|
|
1426
|
+
"X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Oe()
|
|
1424
1427
|
},
|
|
1425
|
-
body: JSON.stringify(
|
|
1428
|
+
body: JSON.stringify(n)
|
|
1426
1429
|
});
|
|
1427
|
-
if (!
|
|
1430
|
+
if (!c.ok)
|
|
1428
1431
|
throw new Error(
|
|
1429
|
-
`Error: ${
|
|
1432
|
+
`Error: ${c.statusText} (Status: ${c.status})`
|
|
1430
1433
|
);
|
|
1431
|
-
return await
|
|
1434
|
+
return await c.json();
|
|
1432
1435
|
}), A(this, "handleGetSearchResponseItemsWithObject", async (a) => {
|
|
1436
|
+
var o;
|
|
1433
1437
|
try {
|
|
1434
|
-
const o = {
|
|
1435
|
-
query: this.formatParamsForRequest(a),
|
|
1436
|
-
offset: a.offset || 0,
|
|
1437
|
-
// Default to 0 (first page) if not provided
|
|
1438
|
-
limit: a.limit || this.config.searchResultsPerPage || 20,
|
|
1439
|
-
// Default to 20 if not provided
|
|
1440
|
-
order_by: a.order_by || this.config.indexFieldName
|
|
1441
|
-
};
|
|
1442
|
-
o.order_by && (o.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
|
|
1443
1438
|
const n = await fetch(this.baseSearchUrl, {
|
|
1444
1439
|
method: "POST",
|
|
1445
1440
|
headers: {
|
|
1446
1441
|
Authorization: this.config.readKey,
|
|
1447
1442
|
"Content-Type": "application/json",
|
|
1448
|
-
"X-Sc-User-Id": this.userId
|
|
1443
|
+
"X-Sc-User-Id": this.userId,
|
|
1444
|
+
"X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Oe()
|
|
1449
1445
|
},
|
|
1450
|
-
body: JSON.stringify(
|
|
1446
|
+
body: JSON.stringify({
|
|
1447
|
+
query: this.formatParamsForRequest(a),
|
|
1448
|
+
offset: a.offset || 0,
|
|
1449
|
+
limit: a.limit || this.config.searchResultsPerPage || 20,
|
|
1450
|
+
...a.order_by && {
|
|
1451
|
+
order_by: a.order_by
|
|
1452
|
+
},
|
|
1453
|
+
...a.sort && {
|
|
1454
|
+
sort: a.sort
|
|
1455
|
+
}
|
|
1456
|
+
})
|
|
1451
1457
|
});
|
|
1452
1458
|
if (!n.ok)
|
|
1453
1459
|
throw new Error(
|
|
1454
1460
|
`Error: ${n.statusText} (Status: ${n.status})`
|
|
1455
1461
|
);
|
|
1456
1462
|
return await n.json();
|
|
1457
|
-
} catch (
|
|
1458
|
-
throw console.error("Error parsing response:",
|
|
1463
|
+
} catch (n) {
|
|
1464
|
+
throw console.error("Error parsing response:", n), n;
|
|
1459
1465
|
}
|
|
1460
1466
|
}), this.parent = t, this.config = r, this.userId = s;
|
|
1461
1467
|
}
|
|
@@ -1472,29 +1478,32 @@ class Mo {
|
|
|
1472
1478
|
*/
|
|
1473
1479
|
formatParamsForRequest(t) {
|
|
1474
1480
|
const r = [];
|
|
1475
|
-
let s = "should";
|
|
1476
1481
|
t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((o) => {
|
|
1477
1482
|
var n;
|
|
1478
1483
|
const c = (n = t.facetPathsForIndexFields) == null ? void 0 : n[o];
|
|
1479
|
-
c &&
|
|
1480
|
-
occur:
|
|
1484
|
+
c && r.push({
|
|
1485
|
+
occur: "must",
|
|
1481
1486
|
exact: {
|
|
1482
|
-
ctx:
|
|
1487
|
+
ctx: Gt(c.value)
|
|
1483
1488
|
}
|
|
1484
|
-
})
|
|
1489
|
+
});
|
|
1485
1490
|
}), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((o) => {
|
|
1486
1491
|
var n;
|
|
1487
1492
|
const c = (n = t.rangeValueForIndexFields) == null ? void 0 : n[o];
|
|
1488
|
-
c &&
|
|
1489
|
-
occur:
|
|
1493
|
+
c && r.push({
|
|
1494
|
+
occur: "must",
|
|
1490
1495
|
exact: {
|
|
1491
|
-
ctx: c.value
|
|
1496
|
+
ctx: Gt(c.value)
|
|
1492
1497
|
}
|
|
1493
|
-
})
|
|
1498
|
+
});
|
|
1494
1499
|
});
|
|
1495
|
-
const a = t.mode === "fuzzy" ? { fuzzy: { ctx:
|
|
1500
|
+
const s = Gt(t.searchTerm), a = t.mode === "fuzzy" ? { fuzzy: { ctx: s } } : {
|
|
1501
|
+
exact: {
|
|
1502
|
+
ctx: `${s.startsWith('"') ? s : `"${s}"`}`
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1496
1505
|
return r.push({
|
|
1497
|
-
occur:
|
|
1506
|
+
occur: t.mode === "exact" ? "must" : "should",
|
|
1498
1507
|
// Valid, as 'occur' is a required property in SearchClientQuery
|
|
1499
1508
|
...a
|
|
1500
1509
|
}), r;
|
|
@@ -1505,16 +1514,17 @@ class Lo {
|
|
|
1505
1514
|
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) => {
|
|
1506
1515
|
const n = async () => {
|
|
1507
1516
|
(async () => {
|
|
1508
|
-
var c
|
|
1517
|
+
var c;
|
|
1509
1518
|
const u = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
|
|
1510
1519
|
if (!u)
|
|
1511
1520
|
throw new Error("Search client was not initialized.");
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1514
|
-
id:
|
|
1515
|
-
|
|
1521
|
+
const h = (u.data.hits || []).filter((i) => !!i.doc).map((i) => ({
|
|
1522
|
+
id: Oe(),
|
|
1523
|
+
document: i.doc || { id: -1 },
|
|
1524
|
+
source_index: i.source_index,
|
|
1525
|
+
type: "SearchDocument"
|
|
1516
1526
|
}));
|
|
1517
|
-
a(u,
|
|
1527
|
+
a(u, h);
|
|
1518
1528
|
})(), (async () => {
|
|
1519
1529
|
if (this.adClient && typeof s != "string") {
|
|
1520
1530
|
const c = await this.adClient.getAds(s);
|
|
@@ -1533,7 +1543,7 @@ class Lo {
|
|
|
1533
1543
|
this.config = {
|
|
1534
1544
|
...t,
|
|
1535
1545
|
// Strips off the trailing '/' from an endpointURL if one is accidentally added
|
|
1536
|
-
endpointURL:
|
|
1546
|
+
endpointURL: Io(t.endpointURL)
|
|
1537
1547
|
}, 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());
|
|
1538
1548
|
}
|
|
1539
1549
|
initInputForms() {
|
|
@@ -1562,15 +1572,15 @@ class Lo {
|
|
|
1562
1572
|
initClients(t, r) {
|
|
1563
1573
|
setTimeout(async () => {
|
|
1564
1574
|
let s = this.config.userId;
|
|
1565
|
-
switch (s || (s = await
|
|
1575
|
+
switch (s || (s = await ho()), this.measureClient = new _o(t, r, s), this.searchClient = new Mo(this, t, s), t.adSource) {
|
|
1566
1576
|
case "adMarketplace":
|
|
1567
|
-
this.adClient = new
|
|
1577
|
+
this.adClient = new Ro(t);
|
|
1568
1578
|
break;
|
|
1569
1579
|
case "Nativo":
|
|
1570
|
-
this.adClient = new
|
|
1580
|
+
this.adClient = new Po(t);
|
|
1571
1581
|
break;
|
|
1572
1582
|
case "Custom":
|
|
1573
|
-
this.adClient = new
|
|
1583
|
+
this.adClient = new Eo(t);
|
|
1574
1584
|
break;
|
|
1575
1585
|
}
|
|
1576
1586
|
this.emitEvent("initialized", {
|
|
@@ -1629,20 +1639,20 @@ class Lo {
|
|
|
1629
1639
|
}), (t = this.adClient) == null || t.onInputCleared();
|
|
1630
1640
|
}
|
|
1631
1641
|
}
|
|
1632
|
-
var
|
|
1633
|
-
const
|
|
1642
|
+
var Ns = {}, or = {};
|
|
1643
|
+
const is = (e) => {
|
|
1634
1644
|
let t;
|
|
1635
|
-
const r = /* @__PURE__ */ new Set(), s = (
|
|
1636
|
-
const p = typeof
|
|
1645
|
+
const r = /* @__PURE__ */ new Set(), s = (h, i) => {
|
|
1646
|
+
const p = typeof h == "function" ? h(t) : h;
|
|
1637
1647
|
if (!Object.is(p, t)) {
|
|
1638
1648
|
const g = t;
|
|
1639
1649
|
t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((b) => b(t, g));
|
|
1640
1650
|
}
|
|
1641
|
-
}, a = () => t, c = { setState: s, getState: a, getInitialState: () =>
|
|
1651
|
+
}, a = () => t, c = { setState: s, getState: a, getInitialState: () => u, subscribe: (h) => (r.add(h), () => r.delete(h)) }, u = t = e(s, a, c);
|
|
1642
1652
|
return c;
|
|
1643
|
-
}, Oo = (e) => e ?
|
|
1644
|
-
|
|
1645
|
-
var
|
|
1653
|
+
}, Oo = (e) => e ? is(e) : is;
|
|
1654
|
+
or.createStore = Oo;
|
|
1655
|
+
var cr = {}, Hs = { exports: {} }, w = {};
|
|
1646
1656
|
/**
|
|
1647
1657
|
* @license React
|
|
1648
1658
|
* react.production.js
|
|
@@ -1652,11 +1662,11 @@ var or = {}, Ns = { exports: {} }, w = {};
|
|
|
1652
1662
|
* This source code is licensed under the MIT license found in the
|
|
1653
1663
|
* LICENSE file in the root directory of this source tree.
|
|
1654
1664
|
*/
|
|
1655
|
-
var
|
|
1665
|
+
var ir = Symbol.for("react.transitional.element"), Fo = Symbol.for("react.portal"), Do = Symbol.for("react.fragment"), No = Symbol.for("react.strict_mode"), Ho = Symbol.for("react.profiler"), Uo = Symbol.for("react.consumer"), zo = Symbol.for("react.context"), jo = Symbol.for("react.forward_ref"), Bo = Symbol.for("react.suspense"), Vo = Symbol.for("react.memo"), Us = Symbol.for("react.lazy"), ls = Symbol.iterator;
|
|
1656
1666
|
function Wo(e) {
|
|
1657
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
1667
|
+
return e === null || typeof e != "object" ? null : (e = ls && e[ls] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1658
1668
|
}
|
|
1659
|
-
var
|
|
1669
|
+
var zs = {
|
|
1660
1670
|
isMounted: function() {
|
|
1661
1671
|
return !1;
|
|
1662
1672
|
},
|
|
@@ -1666,35 +1676,35 @@ var Us = {
|
|
|
1666
1676
|
},
|
|
1667
1677
|
enqueueSetState: function() {
|
|
1668
1678
|
}
|
|
1669
|
-
},
|
|
1670
|
-
function
|
|
1671
|
-
this.props = e, this.context = t, this.refs =
|
|
1679
|
+
}, js = Object.assign, Bs = {};
|
|
1680
|
+
function De(e, t, r) {
|
|
1681
|
+
this.props = e, this.context = t, this.refs = Bs, this.updater = r || zs;
|
|
1672
1682
|
}
|
|
1673
|
-
|
|
1674
|
-
|
|
1683
|
+
De.prototype.isReactComponent = {};
|
|
1684
|
+
De.prototype.setState = function(e, t) {
|
|
1675
1685
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1676
1686
|
throw Error(
|
|
1677
1687
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1678
1688
|
);
|
|
1679
1689
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
1680
1690
|
};
|
|
1681
|
-
|
|
1691
|
+
De.prototype.forceUpdate = function(e) {
|
|
1682
1692
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1683
1693
|
};
|
|
1684
1694
|
function Vs() {
|
|
1685
1695
|
}
|
|
1686
|
-
Vs.prototype =
|
|
1687
|
-
function
|
|
1688
|
-
this.props = e, this.context = t, this.refs =
|
|
1696
|
+
Vs.prototype = De.prototype;
|
|
1697
|
+
function lr(e, t, r) {
|
|
1698
|
+
this.props = e, this.context = t, this.refs = Bs, this.updater = r || zs;
|
|
1689
1699
|
}
|
|
1690
|
-
var
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
var
|
|
1695
|
-
function
|
|
1700
|
+
var ur = lr.prototype = new Vs();
|
|
1701
|
+
ur.constructor = lr;
|
|
1702
|
+
js(ur, De.prototype);
|
|
1703
|
+
ur.isPureReactComponent = !0;
|
|
1704
|
+
var us = Array.isArray, L = { H: null, A: null, T: null, S: null }, Ws = Object.prototype.hasOwnProperty;
|
|
1705
|
+
function hr(e, t, r, s, a, o) {
|
|
1696
1706
|
return r = o.ref, {
|
|
1697
|
-
$$typeof:
|
|
1707
|
+
$$typeof: ir,
|
|
1698
1708
|
type: e,
|
|
1699
1709
|
key: t,
|
|
1700
1710
|
ref: r !== void 0 ? r : null,
|
|
@@ -1702,7 +1712,7 @@ function ur(e, t, r, s, a, o) {
|
|
|
1702
1712
|
};
|
|
1703
1713
|
}
|
|
1704
1714
|
function Go(e, t) {
|
|
1705
|
-
return
|
|
1715
|
+
return hr(
|
|
1706
1716
|
e.type,
|
|
1707
1717
|
t,
|
|
1708
1718
|
void 0,
|
|
@@ -1711,8 +1721,8 @@ function Go(e, t) {
|
|
|
1711
1721
|
e.props
|
|
1712
1722
|
);
|
|
1713
1723
|
}
|
|
1714
|
-
function
|
|
1715
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
1724
|
+
function fr(e) {
|
|
1725
|
+
return typeof e == "object" && e !== null && e.$$typeof === ir;
|
|
1716
1726
|
}
|
|
1717
1727
|
function qo(e) {
|
|
1718
1728
|
var t = { "=": "=0", ":": "=2" };
|
|
@@ -1720,11 +1730,11 @@ function qo(e) {
|
|
|
1720
1730
|
return t[r];
|
|
1721
1731
|
});
|
|
1722
1732
|
}
|
|
1723
|
-
var
|
|
1724
|
-
function
|
|
1733
|
+
var hs = /\/+/g;
|
|
1734
|
+
function qt(e, t) {
|
|
1725
1735
|
return typeof e == "object" && e !== null && e.key != null ? qo("" + e.key) : t.toString(36);
|
|
1726
1736
|
}
|
|
1727
|
-
function
|
|
1737
|
+
function fs() {
|
|
1728
1738
|
}
|
|
1729
1739
|
function Yo(e) {
|
|
1730
1740
|
switch (e.status) {
|
|
@@ -1733,7 +1743,7 @@ function Yo(e) {
|
|
|
1733
1743
|
case "rejected":
|
|
1734
1744
|
throw e.reason;
|
|
1735
1745
|
default:
|
|
1736
|
-
switch (typeof e.status == "string" ? e.then(
|
|
1746
|
+
switch (typeof e.status == "string" ? e.then(fs, fs) : (e.status = "pending", e.then(
|
|
1737
1747
|
function(t) {
|
|
1738
1748
|
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
1739
1749
|
},
|
|
@@ -1763,11 +1773,11 @@ function Me(e, t, r, s, a) {
|
|
|
1763
1773
|
break;
|
|
1764
1774
|
case "object":
|
|
1765
1775
|
switch (e.$$typeof) {
|
|
1766
|
-
case
|
|
1776
|
+
case ir:
|
|
1767
1777
|
case Fo:
|
|
1768
1778
|
n = !0;
|
|
1769
1779
|
break;
|
|
1770
|
-
case
|
|
1780
|
+
case Us:
|
|
1771
1781
|
return n = e._init, Me(
|
|
1772
1782
|
n(e._payload),
|
|
1773
1783
|
t,
|
|
@@ -1778,29 +1788,29 @@ function Me(e, t, r, s, a) {
|
|
|
1778
1788
|
}
|
|
1779
1789
|
}
|
|
1780
1790
|
if (n)
|
|
1781
|
-
return a = a(e), n = s === "" ? "." +
|
|
1782
|
-
return
|
|
1783
|
-
})) : a != null && (
|
|
1791
|
+
return a = a(e), n = s === "" ? "." + qt(e, 0) : s, us(a) ? (r = "", n != null && (r = n.replace(hs, "$&/") + "/"), Me(a, t, r, "", function(h) {
|
|
1792
|
+
return h;
|
|
1793
|
+
})) : a != null && (fr(a) && (a = Go(
|
|
1784
1794
|
a,
|
|
1785
1795
|
r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
|
|
1786
|
-
|
|
1796
|
+
hs,
|
|
1787
1797
|
"$&/"
|
|
1788
1798
|
) + "/") + n
|
|
1789
1799
|
)), t.push(a)), 1;
|
|
1790
1800
|
n = 0;
|
|
1791
1801
|
var c = s === "" ? "." : s + ":";
|
|
1792
|
-
if (
|
|
1793
|
-
for (var
|
|
1794
|
-
s = e[
|
|
1802
|
+
if (us(e))
|
|
1803
|
+
for (var u = 0; u < e.length; u++)
|
|
1804
|
+
s = e[u], o = c + qt(s, u), n += Me(
|
|
1795
1805
|
s,
|
|
1796
1806
|
t,
|
|
1797
1807
|
r,
|
|
1798
1808
|
o,
|
|
1799
1809
|
a
|
|
1800
1810
|
);
|
|
1801
|
-
else if (
|
|
1802
|
-
for (e =
|
|
1803
|
-
s = s.value, o = c +
|
|
1811
|
+
else if (u = Wo(e), typeof u == "function")
|
|
1812
|
+
for (e = u.call(e), u = 0; !(s = e.next()).done; )
|
|
1813
|
+
s = s.value, o = c + qt(s, u++), n += Me(
|
|
1804
1814
|
s,
|
|
1805
1815
|
t,
|
|
1806
1816
|
r,
|
|
@@ -1822,7 +1832,7 @@ function Me(e, t, r, s, a) {
|
|
|
1822
1832
|
}
|
|
1823
1833
|
return n;
|
|
1824
1834
|
}
|
|
1825
|
-
function
|
|
1835
|
+
function mt(e, t, r) {
|
|
1826
1836
|
if (e == null) return e;
|
|
1827
1837
|
var s = [], a = 0;
|
|
1828
1838
|
return Me(e, s, "", "", function(o) {
|
|
@@ -1844,7 +1854,7 @@ function Zo(e) {
|
|
|
1844
1854
|
if (e._status === 1) return e._result.default;
|
|
1845
1855
|
throw e._result;
|
|
1846
1856
|
}
|
|
1847
|
-
var
|
|
1857
|
+
var ds = typeof reportError == "function" ? reportError : function(e) {
|
|
1848
1858
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1849
1859
|
var t = new window.ErrorEvent("error", {
|
|
1850
1860
|
bubbles: !0,
|
|
@@ -1862,9 +1872,9 @@ var fs = typeof reportError == "function" ? reportError : function(e) {
|
|
|
1862
1872
|
function Qo() {
|
|
1863
1873
|
}
|
|
1864
1874
|
w.Children = {
|
|
1865
|
-
map:
|
|
1875
|
+
map: mt,
|
|
1866
1876
|
forEach: function(e, t, r) {
|
|
1867
|
-
|
|
1877
|
+
mt(
|
|
1868
1878
|
e,
|
|
1869
1879
|
function() {
|
|
1870
1880
|
t.apply(this, arguments);
|
|
@@ -1874,29 +1884,29 @@ w.Children = {
|
|
|
1874
1884
|
},
|
|
1875
1885
|
count: function(e) {
|
|
1876
1886
|
var t = 0;
|
|
1877
|
-
return
|
|
1887
|
+
return mt(e, function() {
|
|
1878
1888
|
t++;
|
|
1879
1889
|
}), t;
|
|
1880
1890
|
},
|
|
1881
1891
|
toArray: function(e) {
|
|
1882
|
-
return
|
|
1892
|
+
return mt(e, function(t) {
|
|
1883
1893
|
return t;
|
|
1884
1894
|
}) || [];
|
|
1885
1895
|
},
|
|
1886
1896
|
only: function(e) {
|
|
1887
|
-
if (!
|
|
1897
|
+
if (!fr(e))
|
|
1888
1898
|
throw Error(
|
|
1889
1899
|
"React.Children.only expected to receive a single React element child."
|
|
1890
1900
|
);
|
|
1891
1901
|
return e;
|
|
1892
1902
|
}
|
|
1893
1903
|
};
|
|
1894
|
-
w.Component =
|
|
1904
|
+
w.Component = De;
|
|
1895
1905
|
w.Fragment = Do;
|
|
1896
1906
|
w.Profiler = Ho;
|
|
1897
|
-
w.PureComponent =
|
|
1907
|
+
w.PureComponent = lr;
|
|
1898
1908
|
w.StrictMode = No;
|
|
1899
|
-
w.Suspense =
|
|
1909
|
+
w.Suspense = Bo;
|
|
1900
1910
|
w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
|
|
1901
1911
|
w.act = function() {
|
|
1902
1912
|
throw Error("act(...) is not supported in production builds of React.");
|
|
@@ -1911,18 +1921,18 @@ w.cloneElement = function(e, t, r) {
|
|
|
1911
1921
|
throw Error(
|
|
1912
1922
|
"The argument must be a React element, but you passed " + e + "."
|
|
1913
1923
|
);
|
|
1914
|
-
var s =
|
|
1924
|
+
var s = js({}, e.props), a = e.key, o = void 0;
|
|
1915
1925
|
if (t != null)
|
|
1916
1926
|
for (n in t.ref !== void 0 && (o = void 0), t.key !== void 0 && (a = "" + t.key), t)
|
|
1917
|
-
!
|
|
1927
|
+
!Ws.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
|
|
1918
1928
|
var n = arguments.length - 2;
|
|
1919
1929
|
if (n === 1) s.children = r;
|
|
1920
1930
|
else if (1 < n) {
|
|
1921
|
-
for (var c = Array(n),
|
|
1922
|
-
c[
|
|
1931
|
+
for (var c = Array(n), u = 0; u < n; u++)
|
|
1932
|
+
c[u] = arguments[u + 2];
|
|
1923
1933
|
s.children = c;
|
|
1924
1934
|
}
|
|
1925
|
-
return
|
|
1935
|
+
return hr(e.type, a, void 0, void 0, o, s);
|
|
1926
1936
|
};
|
|
1927
1937
|
w.createContext = function(e) {
|
|
1928
1938
|
return e = {
|
|
@@ -1941,18 +1951,18 @@ w.createElement = function(e, t, r) {
|
|
|
1941
1951
|
var s, a = {}, o = null;
|
|
1942
1952
|
if (t != null)
|
|
1943
1953
|
for (s in t.key !== void 0 && (o = "" + t.key), t)
|
|
1944
|
-
|
|
1954
|
+
Ws.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (a[s] = t[s]);
|
|
1945
1955
|
var n = arguments.length - 2;
|
|
1946
1956
|
if (n === 1) a.children = r;
|
|
1947
1957
|
else if (1 < n) {
|
|
1948
|
-
for (var c = Array(n),
|
|
1949
|
-
c[
|
|
1958
|
+
for (var c = Array(n), u = 0; u < n; u++)
|
|
1959
|
+
c[u] = arguments[u + 2];
|
|
1950
1960
|
a.children = c;
|
|
1951
1961
|
}
|
|
1952
1962
|
if (e && e.defaultProps)
|
|
1953
1963
|
for (s in n = e.defaultProps, n)
|
|
1954
1964
|
a[s] === void 0 && (a[s] = n[s]);
|
|
1955
|
-
return
|
|
1965
|
+
return hr(e, o, void 0, void 0, null, a);
|
|
1956
1966
|
};
|
|
1957
1967
|
w.createRef = function() {
|
|
1958
1968
|
return { current: null };
|
|
@@ -1960,17 +1970,17 @@ w.createRef = function() {
|
|
|
1960
1970
|
w.forwardRef = function(e) {
|
|
1961
1971
|
return { $$typeof: jo, render: e };
|
|
1962
1972
|
};
|
|
1963
|
-
w.isValidElement =
|
|
1973
|
+
w.isValidElement = fr;
|
|
1964
1974
|
w.lazy = function(e) {
|
|
1965
1975
|
return {
|
|
1966
|
-
$$typeof:
|
|
1976
|
+
$$typeof: Us,
|
|
1967
1977
|
_payload: { _status: -1, _result: e },
|
|
1968
1978
|
_init: Zo
|
|
1969
1979
|
};
|
|
1970
1980
|
};
|
|
1971
1981
|
w.memo = function(e, t) {
|
|
1972
1982
|
return {
|
|
1973
|
-
$$typeof:
|
|
1983
|
+
$$typeof: Vo,
|
|
1974
1984
|
type: e,
|
|
1975
1985
|
compare: t === void 0 ? null : t
|
|
1976
1986
|
};
|
|
@@ -1980,9 +1990,9 @@ w.startTransition = function(e) {
|
|
|
1980
1990
|
L.T = r;
|
|
1981
1991
|
try {
|
|
1982
1992
|
var s = e(), a = L.S;
|
|
1983
|
-
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Qo,
|
|
1993
|
+
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Qo, ds);
|
|
1984
1994
|
} catch (o) {
|
|
1985
|
-
|
|
1995
|
+
ds(o);
|
|
1986
1996
|
} finally {
|
|
1987
1997
|
L.T = t;
|
|
1988
1998
|
}
|
|
@@ -2048,25 +2058,25 @@ w.useTransition = function() {
|
|
|
2048
2058
|
return L.H.useTransition();
|
|
2049
2059
|
};
|
|
2050
2060
|
w.version = "19.0.0";
|
|
2051
|
-
|
|
2052
|
-
var
|
|
2061
|
+
Hs.exports = w;
|
|
2062
|
+
var ps = Hs.exports, Ko = or;
|
|
2053
2063
|
const Xo = (e) => e;
|
|
2054
|
-
function
|
|
2055
|
-
const r =
|
|
2064
|
+
function Gs(e, t = Xo) {
|
|
2065
|
+
const r = ps.useSyncExternalStore(
|
|
2056
2066
|
e.subscribe,
|
|
2057
2067
|
() => t(e.getState()),
|
|
2058
2068
|
() => t(e.getInitialState())
|
|
2059
2069
|
);
|
|
2060
|
-
return
|
|
2070
|
+
return ps.useDebugValue(r), r;
|
|
2061
2071
|
}
|
|
2062
|
-
const
|
|
2063
|
-
const t = Ko.createStore(e), r = (s) =>
|
|
2072
|
+
const ms = (e) => {
|
|
2073
|
+
const t = Ko.createStore(e), r = (s) => Gs(t, s);
|
|
2064
2074
|
return Object.assign(r, t), r;
|
|
2065
|
-
}, Jo = (e) => e ?
|
|
2066
|
-
|
|
2067
|
-
|
|
2075
|
+
}, Jo = (e) => e ? ms(e) : ms;
|
|
2076
|
+
cr.create = Jo;
|
|
2077
|
+
cr.useStore = Gs;
|
|
2068
2078
|
(function(e) {
|
|
2069
|
-
var t =
|
|
2079
|
+
var t = or, r = cr;
|
|
2070
2080
|
Object.keys(t).forEach(function(s) {
|
|
2071
2081
|
s !== "default" && !Object.prototype.hasOwnProperty.call(e, s) && Object.defineProperty(e, s, {
|
|
2072
2082
|
enumerable: !0,
|
|
@@ -2082,8 +2092,8 @@ or.useStore = Ws;
|
|
|
2082
2092
|
}
|
|
2083
2093
|
});
|
|
2084
2094
|
});
|
|
2085
|
-
})(
|
|
2086
|
-
const
|
|
2095
|
+
})(Ns);
|
|
2096
|
+
const gs = {
|
|
2087
2097
|
adClientResponseItems: [],
|
|
2088
2098
|
core: void 0,
|
|
2089
2099
|
hotkey: "k",
|
|
@@ -2103,11 +2113,12 @@ const ms = {
|
|
|
2103
2113
|
searchResultsCount: 0,
|
|
2104
2114
|
searchResultsPerPage: 20,
|
|
2105
2115
|
searchResultsPage: 1,
|
|
2106
|
-
sortType:
|
|
2116
|
+
sortType: void 0,
|
|
2117
|
+
orderByField: void 0,
|
|
2107
2118
|
// Callbacks
|
|
2108
2119
|
afterInit: () => {
|
|
2109
2120
|
}
|
|
2110
|
-
}, $ =
|
|
2121
|
+
}, $ = Ns.createStore((e, t) => {
|
|
2111
2122
|
const r = {
|
|
2112
2123
|
set: (a) => (e(a), t()),
|
|
2113
2124
|
addFacetPathsForIndexField: (a) => r.set((o) => ({
|
|
@@ -2127,7 +2138,7 @@ const ms = {
|
|
|
2127
2138
|
return a;
|
|
2128
2139
|
},
|
|
2129
2140
|
init: (a, o = !1) => {
|
|
2130
|
-
const n = o ? new
|
|
2141
|
+
const n = o ? new no({ logLevel: he.DEBUG }) : void 0, c = r.set({
|
|
2131
2142
|
core: a,
|
|
2132
2143
|
logger: n,
|
|
2133
2144
|
searchResultsPerPage: (a == null ? void 0 : a.config.searchResultsPerPage) || 20
|
|
@@ -2175,6 +2186,7 @@ const ms = {
|
|
|
2175
2186
|
searchTerm: a.searchTerm,
|
|
2176
2187
|
mode: a.searchMode,
|
|
2177
2188
|
sort: a.sortType,
|
|
2189
|
+
order_by: a.orderByField,
|
|
2178
2190
|
facetPathsForIndexFields: a.facetPathsForIndexFields,
|
|
2179
2191
|
rangeValueForIndexFields: a.rangeValueForIndexFields,
|
|
2180
2192
|
offset: a.searchResultsPerPage ? a.searchResultsPerPage * (a.searchResultsPage - 1) : 0,
|
|
@@ -2184,10 +2196,10 @@ const ms = {
|
|
|
2184
2196
|
setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
|
|
2185
2197
|
setSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2186
2198
|
var i, p;
|
|
2187
|
-
const { facets: n, count: c = 0, time_taken:
|
|
2199
|
+
const { facets: n, count: c = 0, time_taken: u = 0 } = a.data, h = r.set((g) => ({
|
|
2188
2200
|
isSearchInProgress: !1,
|
|
2189
2201
|
searchClientResponseItems: o,
|
|
2190
|
-
searchResponseTimeTaken:
|
|
2202
|
+
searchResponseTimeTaken: u,
|
|
2191
2203
|
searchResultsPage: (
|
|
2192
2204
|
// Reset to first page when response count changes
|
|
2193
2205
|
c === g.searchResultsCount ? g.searchResultsPage : 1
|
|
@@ -2195,21 +2207,21 @@ const ms = {
|
|
|
2195
2207
|
searchResultsCount: c,
|
|
2196
2208
|
...n && { searchResponseFacetPrime: n }
|
|
2197
2209
|
}));
|
|
2198
|
-
(i =
|
|
2210
|
+
(i = h.logger) == null || i.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`), (p = h.logger) == null || p.log(he.DEBUG, `Facets from response: ${JSON.stringify(n)}`);
|
|
2199
2211
|
},
|
|
2200
2212
|
setInitialSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2201
|
-
var
|
|
2202
|
-
const n = t(), { count: c = 0, time_taken:
|
|
2213
|
+
var h;
|
|
2214
|
+
const n = t(), { count: c = 0, time_taken: u = 0 } = a.data;
|
|
2203
2215
|
r.set((i) => ({
|
|
2204
2216
|
isSearchInProgress: !1,
|
|
2205
2217
|
initialSearchClientResponseItems: o,
|
|
2206
|
-
searchResponseTimeTaken:
|
|
2218
|
+
searchResponseTimeTaken: u,
|
|
2207
2219
|
searchResultsPage: (
|
|
2208
2220
|
// Reset to first page when response count changes
|
|
2209
2221
|
c === i.searchResultsCount ? i.searchResultsPage : 1
|
|
2210
2222
|
),
|
|
2211
2223
|
searchResultsCount: c
|
|
2212
|
-
})), (
|
|
2224
|
+
})), (h = n.logger) == null || h.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`);
|
|
2213
2225
|
},
|
|
2214
2226
|
setInitialQuery: async (a) => {
|
|
2215
2227
|
var n;
|
|
@@ -2222,7 +2234,7 @@ const ms = {
|
|
|
2222
2234
|
isPopoverVisible: a
|
|
2223
2235
|
}),
|
|
2224
2236
|
setSearchMode: (a) => r.set({ searchMode: a }),
|
|
2225
|
-
|
|
2237
|
+
setSortOrder: ({ orderByField: a, sortType: o }) => r.set({ sortType: o, orderByField: a }),
|
|
2226
2238
|
setSearchTerm: (a) => {
|
|
2227
2239
|
const { core: o } = t();
|
|
2228
2240
|
a.length === 0 && (o == null || o.handleInputCleared()), r.set({
|
|
@@ -2230,7 +2242,8 @@ const ms = {
|
|
|
2230
2242
|
facetPathsForIndexFields: {},
|
|
2231
2243
|
...a.trim().length === 0 && {
|
|
2232
2244
|
searchMode: "fuzzy",
|
|
2233
|
-
sortType:
|
|
2245
|
+
sortType: null,
|
|
2246
|
+
orderByField: null
|
|
2234
2247
|
}
|
|
2235
2248
|
});
|
|
2236
2249
|
},
|
|
@@ -2243,7 +2256,7 @@ const ms = {
|
|
|
2243
2256
|
r.set({ searchResultsPerPage: a }), await r.search();
|
|
2244
2257
|
},
|
|
2245
2258
|
setHotKeyAndHotKeyModifier: (a, o) => {
|
|
2246
|
-
const { hotkey: n, hotkeyModifier: c } =
|
|
2259
|
+
const { hotkey: n, hotkeyModifier: c } = gs;
|
|
2247
2260
|
r.set({
|
|
2248
2261
|
hotkey: a || n,
|
|
2249
2262
|
hotkeyModifier: o || c
|
|
@@ -2251,11 +2264,48 @@ const ms = {
|
|
|
2251
2264
|
}
|
|
2252
2265
|
};
|
|
2253
2266
|
return {
|
|
2254
|
-
...
|
|
2267
|
+
...gs,
|
|
2255
2268
|
...r
|
|
2256
2269
|
};
|
|
2257
2270
|
});
|
|
2258
|
-
var
|
|
2271
|
+
var qs = { exports: {} };
|
|
2272
|
+
/*!
|
|
2273
|
+
Copyright (c) 2018 Jed Watson.
|
|
2274
|
+
Licensed under the MIT License (MIT), see
|
|
2275
|
+
http://jedwatson.github.io/classnames
|
|
2276
|
+
*/
|
|
2277
|
+
(function(e) {
|
|
2278
|
+
(function() {
|
|
2279
|
+
var t = {}.hasOwnProperty;
|
|
2280
|
+
function r() {
|
|
2281
|
+
for (var o = "", n = 0; n < arguments.length; n++) {
|
|
2282
|
+
var c = arguments[n];
|
|
2283
|
+
c && (o = a(o, s(c)));
|
|
2284
|
+
}
|
|
2285
|
+
return o;
|
|
2286
|
+
}
|
|
2287
|
+
function s(o) {
|
|
2288
|
+
if (typeof o == "string" || typeof o == "number")
|
|
2289
|
+
return o;
|
|
2290
|
+
if (typeof o != "object")
|
|
2291
|
+
return "";
|
|
2292
|
+
if (Array.isArray(o))
|
|
2293
|
+
return r.apply(null, o);
|
|
2294
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
2295
|
+
return o.toString();
|
|
2296
|
+
var n = "";
|
|
2297
|
+
for (var c in o)
|
|
2298
|
+
t.call(o, c) && o[c] && (n = a(n, c));
|
|
2299
|
+
return n;
|
|
2300
|
+
}
|
|
2301
|
+
function a(o, n) {
|
|
2302
|
+
return n ? o ? o + " " + n : o + n : o;
|
|
2303
|
+
}
|
|
2304
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2305
|
+
})();
|
|
2306
|
+
})(qs);
|
|
2307
|
+
const re = qs.exports;
|
|
2308
|
+
var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ys = { exports: {} };
|
|
2259
2309
|
/*! @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 */
|
|
2260
2310
|
(function(e, t) {
|
|
2261
2311
|
(function(r, s) {
|
|
@@ -2270,30 +2320,30 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2270
2320
|
} = Object;
|
|
2271
2321
|
let {
|
|
2272
2322
|
freeze: c,
|
|
2273
|
-
seal:
|
|
2274
|
-
create:
|
|
2323
|
+
seal: u,
|
|
2324
|
+
create: h
|
|
2275
2325
|
} = Object, {
|
|
2276
2326
|
apply: i,
|
|
2277
2327
|
construct: p
|
|
2278
2328
|
} = typeof Reflect < "u" && Reflect;
|
|
2279
2329
|
c || (c = function(C) {
|
|
2280
2330
|
return C;
|
|
2281
|
-
}),
|
|
2331
|
+
}), u || (u = function(C) {
|
|
2282
2332
|
return C;
|
|
2283
2333
|
}), i || (i = function(C, P, E) {
|
|
2284
2334
|
return C.apply(P, E);
|
|
2285
2335
|
}), p || (p = function(C, P) {
|
|
2286
2336
|
return new C(...P);
|
|
2287
2337
|
});
|
|
2288
|
-
const g = q(Array.prototype.forEach), b = q(Array.prototype.lastIndexOf), v = q(Array.prototype.pop), T = q(Array.prototype.push), _ = q(Array.prototype.splice), N = q(String.prototype.toLowerCase), I = q(String.prototype.toString),
|
|
2338
|
+
const g = q(Array.prototype.forEach), b = q(Array.prototype.lastIndexOf), v = q(Array.prototype.pop), T = q(Array.prototype.push), _ = q(Array.prototype.splice), N = q(String.prototype.toLowerCase), I = q(String.prototype.toString), Ne = q(String.prototype.match), He = q(String.prototype.replace), Ea = q(String.prototype.indexOf), Ta = q(String.prototype.trim), ae = q(Object.prototype.hasOwnProperty), G = q(RegExp.prototype.test), Ue = Pa(TypeError);
|
|
2289
2339
|
function q(R) {
|
|
2290
2340
|
return function(C) {
|
|
2291
|
-
for (var P = arguments.length, E = new Array(P > 1 ? P - 1 : 0),
|
|
2292
|
-
E[
|
|
2341
|
+
for (var P = arguments.length, E = new Array(P > 1 ? P - 1 : 0), B = 1; B < P; B++)
|
|
2342
|
+
E[B - 1] = arguments[B];
|
|
2293
2343
|
return i(R, C, E);
|
|
2294
2344
|
};
|
|
2295
2345
|
}
|
|
2296
|
-
function
|
|
2346
|
+
function Pa(R) {
|
|
2297
2347
|
return function() {
|
|
2298
2348
|
for (var C = arguments.length, P = new Array(C), E = 0; E < C; E++)
|
|
2299
2349
|
P[E] = arguments[E];
|
|
@@ -2305,27 +2355,27 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2305
2355
|
s && s(R, null);
|
|
2306
2356
|
let E = C.length;
|
|
2307
2357
|
for (; E--; ) {
|
|
2308
|
-
let
|
|
2309
|
-
if (typeof
|
|
2310
|
-
const ie = P(
|
|
2311
|
-
ie !==
|
|
2358
|
+
let B = C[E];
|
|
2359
|
+
if (typeof B == "string") {
|
|
2360
|
+
const ie = P(B);
|
|
2361
|
+
ie !== B && (a(C) || (C[E] = ie), B = ie);
|
|
2312
2362
|
}
|
|
2313
|
-
R[
|
|
2363
|
+
R[B] = !0;
|
|
2314
2364
|
}
|
|
2315
2365
|
return R;
|
|
2316
2366
|
}
|
|
2317
|
-
function
|
|
2367
|
+
function $a(R) {
|
|
2318
2368
|
for (let C = 0; C < R.length; C++)
|
|
2319
2369
|
ae(R, C) || (R[C] = null);
|
|
2320
2370
|
return R;
|
|
2321
2371
|
}
|
|
2322
2372
|
function ke(R) {
|
|
2323
|
-
const C =
|
|
2373
|
+
const C = h(null);
|
|
2324
2374
|
for (const [P, E] of r(R))
|
|
2325
|
-
ae(R, P) && (Array.isArray(E) ? C[P] =
|
|
2375
|
+
ae(R, P) && (Array.isArray(E) ? C[P] = $a(E) : E && typeof E == "object" && E.constructor === Object ? C[P] = ke(E) : C[P] = E);
|
|
2326
2376
|
return C;
|
|
2327
2377
|
}
|
|
2328
|
-
function
|
|
2378
|
+
function ze(R, C) {
|
|
2329
2379
|
for (; R !== null; ) {
|
|
2330
2380
|
const E = n(R, C);
|
|
2331
2381
|
if (E) {
|
|
@@ -2341,41 +2391,41 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2341
2391
|
}
|
|
2342
2392
|
return P;
|
|
2343
2393
|
}
|
|
2344
|
-
const
|
|
2394
|
+
const mr = 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"]), Rt = 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"]), Et = 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"]), _a = 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"]), Tt = 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"]), Ia = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), gr = c(["#text"]), vr = 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"]), Pt = 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"]), br = 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"]), rt = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Aa = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ma = u(/<%[\w\W]*|[\w\W]*%>/gm), La = u(/\$\{[\w\W]*/gm), Oa = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), Fa = u(/^aria-[\-\w]+$/), yr = u(
|
|
2345
2395
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2346
2396
|
// eslint-disable-line no-useless-escape
|
|
2347
|
-
),
|
|
2397
|
+
), Da = u(/^(?:\w+script|data):/i), Na = u(
|
|
2348
2398
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2349
2399
|
// eslint-disable-line no-control-regex
|
|
2350
|
-
),
|
|
2351
|
-
var
|
|
2400
|
+
), Cr = u(/^html$/i), Ha = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
2401
|
+
var Sr = /* @__PURE__ */ Object.freeze({
|
|
2352
2402
|
__proto__: null,
|
|
2353
|
-
ARIA_ATTR:
|
|
2354
|
-
ATTR_WHITESPACE:
|
|
2355
|
-
CUSTOM_ELEMENT:
|
|
2356
|
-
DATA_ATTR:
|
|
2357
|
-
DOCTYPE_NAME:
|
|
2358
|
-
ERB_EXPR:
|
|
2359
|
-
IS_ALLOWED_URI:
|
|
2360
|
-
IS_SCRIPT_OR_DATA:
|
|
2361
|
-
MUSTACHE_EXPR:
|
|
2362
|
-
TMPLIT_EXPR:
|
|
2403
|
+
ARIA_ATTR: Fa,
|
|
2404
|
+
ATTR_WHITESPACE: Na,
|
|
2405
|
+
CUSTOM_ELEMENT: Ha,
|
|
2406
|
+
DATA_ATTR: Oa,
|
|
2407
|
+
DOCTYPE_NAME: Cr,
|
|
2408
|
+
ERB_EXPR: Ma,
|
|
2409
|
+
IS_ALLOWED_URI: yr,
|
|
2410
|
+
IS_SCRIPT_OR_DATA: Da,
|
|
2411
|
+
MUSTACHE_EXPR: Aa,
|
|
2412
|
+
TMPLIT_EXPR: La
|
|
2363
2413
|
});
|
|
2364
|
-
const
|
|
2414
|
+
const je = {
|
|
2365
2415
|
element: 1,
|
|
2366
2416
|
text: 3,
|
|
2367
2417
|
// Deprecated
|
|
2368
2418
|
progressingInstruction: 7,
|
|
2369
2419
|
comment: 8,
|
|
2370
2420
|
document: 9
|
|
2371
|
-
},
|
|
2421
|
+
}, Ua = function() {
|
|
2372
2422
|
return typeof window > "u" ? null : window;
|
|
2373
|
-
},
|
|
2423
|
+
}, za = function(C, P) {
|
|
2374
2424
|
if (typeof C != "object" || typeof C.createPolicy != "function")
|
|
2375
2425
|
return null;
|
|
2376
2426
|
let E = null;
|
|
2377
|
-
const
|
|
2378
|
-
P && P.hasAttribute(
|
|
2427
|
+
const B = "data-tt-policy-suffix";
|
|
2428
|
+
P && P.hasAttribute(B) && (E = P.getAttribute(B));
|
|
2379
2429
|
const ie = "dompurify" + (E ? "#" + E : "");
|
|
2380
2430
|
try {
|
|
2381
2431
|
return C.createPolicy(ie, {
|
|
@@ -2389,7 +2439,7 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2389
2439
|
} catch {
|
|
2390
2440
|
return console.warn("TrustedTypes policy " + ie + " could not be created."), null;
|
|
2391
2441
|
}
|
|
2392
|
-
},
|
|
2442
|
+
}, kr = function() {
|
|
2393
2443
|
return {
|
|
2394
2444
|
afterSanitizeAttributes: [],
|
|
2395
2445
|
afterSanitizeElements: [],
|
|
@@ -2402,57 +2452,57 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2402
2452
|
uponSanitizeShadowNode: []
|
|
2403
2453
|
};
|
|
2404
2454
|
};
|
|
2405
|
-
function
|
|
2406
|
-
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
2407
|
-
const C = (S) =>
|
|
2408
|
-
if (C.version = "3.2.4", C.removed = [], !R || !R.document || R.document.nodeType !==
|
|
2455
|
+
function wr() {
|
|
2456
|
+
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ua();
|
|
2457
|
+
const C = (S) => wr(S);
|
|
2458
|
+
if (C.version = "3.2.4", C.removed = [], !R || !R.document || R.document.nodeType !== je.document || !R.Element)
|
|
2409
2459
|
return C.isSupported = !1, C;
|
|
2410
2460
|
let {
|
|
2411
2461
|
document: P
|
|
2412
2462
|
} = R;
|
|
2413
|
-
const E = P,
|
|
2463
|
+
const E = P, B = E.currentScript, {
|
|
2414
2464
|
DocumentFragment: ie,
|
|
2415
2465
|
HTMLTemplateElement: Re,
|
|
2416
2466
|
Node: $t,
|
|
2417
|
-
Element:
|
|
2418
|
-
NodeFilter:
|
|
2419
|
-
NamedNodeMap:
|
|
2467
|
+
Element: xr,
|
|
2468
|
+
NodeFilter: Be,
|
|
2469
|
+
NamedNodeMap: Ba = R.NamedNodeMap || R.MozNamedAttrMap,
|
|
2420
2470
|
HTMLFormElement: Va,
|
|
2421
|
-
DOMParser:
|
|
2422
|
-
trustedTypes:
|
|
2423
|
-
} = R, Ve =
|
|
2471
|
+
DOMParser: Wa,
|
|
2472
|
+
trustedTypes: st
|
|
2473
|
+
} = R, Ve = xr.prototype, Ga = ze(Ve, "cloneNode"), qa = ze(Ve, "remove"), Ya = ze(Ve, "nextSibling"), Za = ze(Ve, "childNodes"), at = ze(Ve, "parentNode");
|
|
2424
2474
|
if (typeof Re == "function") {
|
|
2425
2475
|
const S = P.createElement("template");
|
|
2426
2476
|
S.content && S.content.ownerDocument && (P = S.content.ownerDocument);
|
|
2427
2477
|
}
|
|
2428
|
-
let Y,
|
|
2478
|
+
let Y, We = "";
|
|
2429
2479
|
const {
|
|
2430
2480
|
implementation: _t,
|
|
2431
|
-
createNodeIterator:
|
|
2432
|
-
createDocumentFragment:
|
|
2433
|
-
getElementsByTagName:
|
|
2481
|
+
createNodeIterator: Qa,
|
|
2482
|
+
createDocumentFragment: Ka,
|
|
2483
|
+
getElementsByTagName: Xa
|
|
2434
2484
|
} = P, {
|
|
2435
|
-
importNode:
|
|
2485
|
+
importNode: Ja
|
|
2436
2486
|
} = E;
|
|
2437
|
-
let Z =
|
|
2438
|
-
C.isSupported = typeof r == "function" && typeof
|
|
2487
|
+
let Z = kr();
|
|
2488
|
+
C.isSupported = typeof r == "function" && typeof at == "function" && _t && _t.createHTMLDocument !== void 0;
|
|
2439
2489
|
const {
|
|
2440
2490
|
MUSTACHE_EXPR: It,
|
|
2441
2491
|
ERB_EXPR: At,
|
|
2442
2492
|
TMPLIT_EXPR: Mt,
|
|
2443
|
-
DATA_ATTR:
|
|
2444
|
-
ARIA_ATTR:
|
|
2445
|
-
IS_SCRIPT_OR_DATA:
|
|
2446
|
-
ATTR_WHITESPACE:
|
|
2447
|
-
CUSTOM_ELEMENT:
|
|
2448
|
-
} =
|
|
2493
|
+
DATA_ATTR: en,
|
|
2494
|
+
ARIA_ATTR: tn,
|
|
2495
|
+
IS_SCRIPT_OR_DATA: rn,
|
|
2496
|
+
ATTR_WHITESPACE: Rr,
|
|
2497
|
+
CUSTOM_ELEMENT: sn
|
|
2498
|
+
} = Sr;
|
|
2449
2499
|
let {
|
|
2450
|
-
IS_ALLOWED_URI:
|
|
2451
|
-
} =
|
|
2452
|
-
const
|
|
2500
|
+
IS_ALLOWED_URI: Er
|
|
2501
|
+
} = Sr, H = null;
|
|
2502
|
+
const Tr = x({}, [...mr, ...Rt, ...Et, ...Tt, ...gr]);
|
|
2453
2503
|
let z = null;
|
|
2454
|
-
const
|
|
2455
|
-
let O = Object.seal(
|
|
2504
|
+
const Pr = x({}, [...vr, ...Pt, ...br, ...rt]);
|
|
2505
|
+
let O = Object.seal(h(null, {
|
|
2456
2506
|
tagNameCheck: {
|
|
2457
2507
|
writable: !0,
|
|
2458
2508
|
configurable: !1,
|
|
@@ -2471,55 +2521,55 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2471
2521
|
enumerable: !0,
|
|
2472
2522
|
value: !1
|
|
2473
2523
|
}
|
|
2474
|
-
})),
|
|
2475
|
-
const
|
|
2476
|
-
let Ht = !0,
|
|
2477
|
-
const
|
|
2478
|
-
let
|
|
2479
|
-
const
|
|
2524
|
+
})), Ge = null, Lt = null, $r = !0, Ot = !0, _r = !1, Ir = !0, Ee = !1, Ft = !0, we = !1, Dt = !1, Nt = !1, Te = !1, nt = !1, ot = !1, Ar = !0, Mr = !1;
|
|
2525
|
+
const an = "user-content-";
|
|
2526
|
+
let Ht = !0, qe = !1, Pe = {}, $e = null;
|
|
2527
|
+
const Lr = 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"]);
|
|
2528
|
+
let Or = null;
|
|
2529
|
+
const Fr = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2480
2530
|
let Ut = null;
|
|
2481
|
-
const
|
|
2531
|
+
const Dr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ct = "http://www.w3.org/1998/Math/MathML", it = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
|
|
2482
2532
|
let _e = le, zt = !1, jt = null;
|
|
2483
|
-
const
|
|
2484
|
-
let
|
|
2485
|
-
const
|
|
2486
|
-
let
|
|
2487
|
-
const
|
|
2533
|
+
const nn = x({}, [ct, it, le], I);
|
|
2534
|
+
let lt = x({}, ["mi", "mo", "mn", "ms", "mtext"]), ut = x({}, ["annotation-xml"]);
|
|
2535
|
+
const on = x({}, ["title", "style", "font", "a", "script"]);
|
|
2536
|
+
let Ye = null;
|
|
2537
|
+
const cn = ["application/xhtml+xml", "text/html"], ln = "text/html";
|
|
2488
2538
|
let U = null, Ie = null;
|
|
2489
|
-
const
|
|
2539
|
+
const un = P.createElement("form"), Nr = function(f) {
|
|
2490
2540
|
return f instanceof RegExp || f instanceof Function;
|
|
2491
|
-
},
|
|
2541
|
+
}, Bt = function() {
|
|
2492
2542
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2493
2543
|
if (!(Ie && Ie === f)) {
|
|
2494
|
-
if ((!f || typeof f != "object") && (f = {}), f = ke(f),
|
|
2495
|
-
|
|
2544
|
+
if ((!f || typeof f != "object") && (f = {}), f = ke(f), Ye = // eslint-disable-next-line unicorn/prefer-includes
|
|
2545
|
+
cn.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? ln : f.PARSER_MEDIA_TYPE, U = Ye === "application/xhtml+xml" ? I : N, H = ae(f, "ALLOWED_TAGS") ? x({}, f.ALLOWED_TAGS, U) : Tr, z = ae(f, "ALLOWED_ATTR") ? x({}, f.ALLOWED_ATTR, U) : Pr, jt = ae(f, "ALLOWED_NAMESPACES") ? x({}, f.ALLOWED_NAMESPACES, I) : nn, Ut = ae(f, "ADD_URI_SAFE_ATTR") ? x(ke(Dr), f.ADD_URI_SAFE_ATTR, U) : Dr, Or = ae(f, "ADD_DATA_URI_TAGS") ? x(ke(Fr), f.ADD_DATA_URI_TAGS, U) : Fr, $e = ae(f, "FORBID_CONTENTS") ? x({}, f.FORBID_CONTENTS, U) : Lr, Ge = ae(f, "FORBID_TAGS") ? x({}, f.FORBID_TAGS, U) : {}, Lt = ae(f, "FORBID_ATTR") ? x({}, f.FORBID_ATTR, U) : {}, Pe = ae(f, "USE_PROFILES") ? f.USE_PROFILES : !1, $r = f.ALLOW_ARIA_ATTR !== !1, Ot = f.ALLOW_DATA_ATTR !== !1, _r = f.ALLOW_UNKNOWN_PROTOCOLS || !1, Ir = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ee = f.SAFE_FOR_TEMPLATES || !1, Ft = f.SAFE_FOR_XML !== !1, we = f.WHOLE_DOCUMENT || !1, Te = f.RETURN_DOM || !1, nt = f.RETURN_DOM_FRAGMENT || !1, ot = f.RETURN_TRUSTED_TYPE || !1, Nt = f.FORCE_BODY || !1, Ar = f.SANITIZE_DOM !== !1, Mr = f.SANITIZE_NAMED_PROPS || !1, Ht = f.KEEP_CONTENT !== !1, qe = f.IN_PLACE || !1, Er = f.ALLOWED_URI_REGEXP || yr, _e = f.NAMESPACE || le, lt = f.MATHML_TEXT_INTEGRATION_POINTS || lt, ut = f.HTML_INTEGRATION_POINTS || ut, O = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && Nr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && Nr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (O.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (O.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ee && (Ot = !1), nt && (Te = !0), Pe && (H = x({}, gr), z = [], Pe.html === !0 && (x(H, mr), x(z, vr)), Pe.svg === !0 && (x(H, Rt), x(z, Pt), x(z, rt)), Pe.svgFilters === !0 && (x(H, Et), x(z, Pt), x(z, rt)), Pe.mathMl === !0 && (x(H, Tt), x(z, br), x(z, rt))), f.ADD_TAGS && (H === Tr && (H = ke(H)), x(H, f.ADD_TAGS, U)), f.ADD_ATTR && (z === Pr && (z = ke(z)), x(z, f.ADD_ATTR, U)), f.ADD_URI_SAFE_ATTR && x(Ut, f.ADD_URI_SAFE_ATTR, U), f.FORBID_CONTENTS && ($e === Lr && ($e = ke($e)), x($e, f.FORBID_CONTENTS, U)), Ht && (H["#text"] = !0), we && x(H, ["html", "head", "body"]), H.table && (x(H, ["tbody"]), delete Ge.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
2496
2546
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2497
|
-
throw
|
|
2547
|
+
throw Ue('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2498
2548
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2499
|
-
throw
|
|
2500
|
-
Y = f.TRUSTED_TYPES_POLICY,
|
|
2549
|
+
throw Ue('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2550
|
+
Y = f.TRUSTED_TYPES_POLICY, We = Y.createHTML("");
|
|
2501
2551
|
} else
|
|
2502
|
-
Y === void 0 && (Y =
|
|
2552
|
+
Y === void 0 && (Y = za(st, B)), Y !== null && typeof We == "string" && (We = Y.createHTML(""));
|
|
2503
2553
|
c && c(f), Ie = f;
|
|
2504
2554
|
}
|
|
2505
|
-
},
|
|
2506
|
-
let m =
|
|
2555
|
+
}, Hr = x({}, [...Rt, ...Et, ..._a]), Ur = x({}, [...Tt, ...Ia]), hn = function(f) {
|
|
2556
|
+
let m = at(f);
|
|
2507
2557
|
(!m || !m.tagName) && (m = {
|
|
2508
2558
|
namespaceURI: _e,
|
|
2509
2559
|
tagName: "template"
|
|
2510
2560
|
});
|
|
2511
2561
|
const y = N(f.tagName), M = N(m.tagName);
|
|
2512
|
-
return jt[f.namespaceURI] ? f.namespaceURI ===
|
|
2562
|
+
return jt[f.namespaceURI] ? f.namespaceURI === it ? m.namespaceURI === le ? y === "svg" : m.namespaceURI === ct ? y === "svg" && (M === "annotation-xml" || lt[M]) : !!Hr[y] : f.namespaceURI === ct ? m.namespaceURI === le ? y === "math" : m.namespaceURI === it ? y === "math" && ut[M] : !!Ur[y] : f.namespaceURI === le ? m.namespaceURI === it && !ut[M] || m.namespaceURI === ct && !lt[M] ? !1 : !Ur[y] && (on[y] || !Hr[y]) : !!(Ye === "application/xhtml+xml" && jt[f.namespaceURI]) : !1;
|
|
2513
2563
|
}, oe = function(f) {
|
|
2514
2564
|
T(C.removed, {
|
|
2515
2565
|
element: f
|
|
2516
2566
|
});
|
|
2517
2567
|
try {
|
|
2518
|
-
|
|
2568
|
+
at(f).removeChild(f);
|
|
2519
2569
|
} catch {
|
|
2520
|
-
|
|
2570
|
+
qa(f);
|
|
2521
2571
|
}
|
|
2522
|
-
},
|
|
2572
|
+
}, ht = function(f, m) {
|
|
2523
2573
|
try {
|
|
2524
2574
|
T(C.removed, {
|
|
2525
2575
|
attribute: m.getAttributeNode(f),
|
|
@@ -2532,7 +2582,7 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2532
2582
|
});
|
|
2533
2583
|
}
|
|
2534
2584
|
if (m.removeAttribute(f), f === "is")
|
|
2535
|
-
if (Te ||
|
|
2585
|
+
if (Te || nt)
|
|
2536
2586
|
try {
|
|
2537
2587
|
oe(m);
|
|
2538
2588
|
} catch {
|
|
@@ -2542,41 +2592,41 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2542
2592
|
m.setAttribute(f, "");
|
|
2543
2593
|
} catch {
|
|
2544
2594
|
}
|
|
2545
|
-
},
|
|
2595
|
+
}, zr = function(f) {
|
|
2546
2596
|
let m = null, y = null;
|
|
2547
2597
|
if (Nt)
|
|
2548
2598
|
f = "<remove></remove>" + f;
|
|
2549
2599
|
else {
|
|
2550
|
-
const j =
|
|
2600
|
+
const j = Ne(f, /^[\r\n\t ]+/);
|
|
2551
2601
|
y = j && j[0];
|
|
2552
2602
|
}
|
|
2553
|
-
|
|
2603
|
+
Ye === "application/xhtml+xml" && _e === le && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
2554
2604
|
const M = Y ? Y.createHTML(f) : f;
|
|
2555
2605
|
if (_e === le)
|
|
2556
2606
|
try {
|
|
2557
|
-
m = new
|
|
2607
|
+
m = new Wa().parseFromString(M, Ye);
|
|
2558
2608
|
} catch {
|
|
2559
2609
|
}
|
|
2560
2610
|
if (!m || !m.documentElement) {
|
|
2561
2611
|
m = _t.createDocument(_e, "template", null);
|
|
2562
2612
|
try {
|
|
2563
|
-
m.documentElement.innerHTML = zt ?
|
|
2613
|
+
m.documentElement.innerHTML = zt ? We : M;
|
|
2564
2614
|
} catch {
|
|
2565
2615
|
}
|
|
2566
2616
|
}
|
|
2567
|
-
const
|
|
2568
|
-
return f && y &&
|
|
2569
|
-
},
|
|
2570
|
-
return
|
|
2617
|
+
const V = m.body || m.documentElement;
|
|
2618
|
+
return f && y && V.insertBefore(P.createTextNode(y), V.childNodes[0] || null), _e === le ? Xa.call(m, we ? "html" : "body")[0] : we ? m.documentElement : V;
|
|
2619
|
+
}, jr = function(f) {
|
|
2620
|
+
return Qa.call(
|
|
2571
2621
|
f.ownerDocument || f,
|
|
2572
2622
|
f,
|
|
2573
2623
|
// eslint-disable-next-line no-bitwise
|
|
2574
|
-
|
|
2624
|
+
Be.SHOW_ELEMENT | Be.SHOW_COMMENT | Be.SHOW_TEXT | Be.SHOW_PROCESSING_INSTRUCTION | Be.SHOW_CDATA_SECTION,
|
|
2575
2625
|
null
|
|
2576
2626
|
);
|
|
2577
|
-
},
|
|
2578
|
-
return f instanceof Va && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof
|
|
2579
|
-
},
|
|
2627
|
+
}, Vt = function(f) {
|
|
2628
|
+
return f instanceof Va && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof Ba) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
|
|
2629
|
+
}, Br = function(f) {
|
|
2580
2630
|
return typeof $t == "function" && f instanceof $t;
|
|
2581
2631
|
};
|
|
2582
2632
|
function ue(S, f, m) {
|
|
@@ -2586,52 +2636,52 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2586
2636
|
}
|
|
2587
2637
|
const Vr = function(f) {
|
|
2588
2638
|
let m = null;
|
|
2589
|
-
if (ue(Z.beforeSanitizeElements, f, null),
|
|
2639
|
+
if (ue(Z.beforeSanitizeElements, f, null), Vt(f))
|
|
2590
2640
|
return oe(f), !0;
|
|
2591
2641
|
const y = U(f.nodeName);
|
|
2592
2642
|
if (ue(Z.uponSanitizeElement, f, {
|
|
2593
2643
|
tagName: y,
|
|
2594
2644
|
allowedTags: H
|
|
2595
|
-
}), f.hasChildNodes() && !
|
|
2645
|
+
}), f.hasChildNodes() && !Br(f.firstElementChild) && G(/<[/\w]/g, f.innerHTML) && G(/<[/\w]/g, f.textContent) || f.nodeType === je.progressingInstruction || Ft && f.nodeType === je.comment && G(/<[/\w]/g, f.data))
|
|
2596
2646
|
return oe(f), !0;
|
|
2597
|
-
if (!H[y] ||
|
|
2598
|
-
if (!
|
|
2647
|
+
if (!H[y] || Ge[y]) {
|
|
2648
|
+
if (!Ge[y] && Gr(y) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
|
|
2599
2649
|
return !1;
|
|
2600
2650
|
if (Ht && !$e[y]) {
|
|
2601
|
-
const M =
|
|
2602
|
-
if (
|
|
2603
|
-
const j =
|
|
2651
|
+
const M = at(f) || f.parentNode, V = Za(f) || f.childNodes;
|
|
2652
|
+
if (V && M) {
|
|
2653
|
+
const j = V.length;
|
|
2604
2654
|
for (let J = j - 1; J >= 0; --J) {
|
|
2605
|
-
const ce =
|
|
2606
|
-
ce.__removalCount = (f.__removalCount || 0) + 1, M.insertBefore(ce,
|
|
2655
|
+
const ce = Ga(V[J], !0);
|
|
2656
|
+
ce.__removalCount = (f.__removalCount || 0) + 1, M.insertBefore(ce, Ya(f));
|
|
2607
2657
|
}
|
|
2608
2658
|
}
|
|
2609
2659
|
}
|
|
2610
2660
|
return oe(f), !0;
|
|
2611
2661
|
}
|
|
2612
|
-
return f instanceof
|
|
2613
|
-
m =
|
|
2662
|
+
return f instanceof xr && !hn(f) || (y === "noscript" || y === "noembed" || y === "noframes") && G(/<\/no(script|embed|frames)/i, f.innerHTML) ? (oe(f), !0) : (Ee && f.nodeType === je.text && (m = f.textContent, g([It, At, Mt], (M) => {
|
|
2663
|
+
m = He(m, M, " ");
|
|
2614
2664
|
}), f.textContent !== m && (T(C.removed, {
|
|
2615
2665
|
element: f.cloneNode()
|
|
2616
2666
|
}), f.textContent = m)), ue(Z.afterSanitizeElements, f, null), !1);
|
|
2617
|
-
},
|
|
2618
|
-
if (
|
|
2667
|
+
}, Wr = function(f, m, y) {
|
|
2668
|
+
if (Ar && (m === "id" || m === "name") && (y in P || y in un))
|
|
2619
2669
|
return !1;
|
|
2620
|
-
if (!(Ot && !Lt[m] && G(
|
|
2621
|
-
if (!(
|
|
2670
|
+
if (!(Ot && !Lt[m] && G(en, m))) {
|
|
2671
|
+
if (!($r && G(tn, m))) {
|
|
2622
2672
|
if (!z[m] || Lt[m]) {
|
|
2623
2673
|
if (
|
|
2624
2674
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2625
2675
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2626
2676
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2627
|
-
!(
|
|
2677
|
+
!(Gr(f) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, f) || O.tagNameCheck instanceof Function && O.tagNameCheck(f)) && (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
|
|
2628
2678
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2629
2679
|
m === "is" && O.allowCustomizedBuiltInElements && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
|
|
2630
2680
|
) return !1;
|
|
2631
2681
|
} else if (!Ut[m]) {
|
|
2632
|
-
if (!G(
|
|
2633
|
-
if (!((m === "src" || m === "xlink:href" || m === "href") && f !== "script" &&
|
|
2634
|
-
if (!(
|
|
2682
|
+
if (!G(Er, He(y, Rr, ""))) {
|
|
2683
|
+
if (!((m === "src" || m === "xlink:href" || m === "href") && f !== "script" && Ea(y, "data:") === 0 && Or[f])) {
|
|
2684
|
+
if (!(_r && !G(rn, He(y, Rr, "")))) {
|
|
2635
2685
|
if (y)
|
|
2636
2686
|
return !1;
|
|
2637
2687
|
}
|
|
@@ -2641,14 +2691,14 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2641
2691
|
}
|
|
2642
2692
|
}
|
|
2643
2693
|
return !0;
|
|
2644
|
-
}, Wr = function(f) {
|
|
2645
|
-
return f !== "annotation-xml" && De(f, rn);
|
|
2646
2694
|
}, Gr = function(f) {
|
|
2695
|
+
return f !== "annotation-xml" && Ne(f, sn);
|
|
2696
|
+
}, qr = function(f) {
|
|
2647
2697
|
ue(Z.beforeSanitizeAttributes, f, null);
|
|
2648
2698
|
const {
|
|
2649
2699
|
attributes: m
|
|
2650
2700
|
} = f;
|
|
2651
|
-
if (!m ||
|
|
2701
|
+
if (!m || Vt(f))
|
|
2652
2702
|
return;
|
|
2653
2703
|
const y = {
|
|
2654
2704
|
attrName: "",
|
|
@@ -2659,29 +2709,29 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2659
2709
|
};
|
|
2660
2710
|
let M = m.length;
|
|
2661
2711
|
for (; M--; ) {
|
|
2662
|
-
const
|
|
2712
|
+
const V = m[M], {
|
|
2663
2713
|
name: j,
|
|
2664
2714
|
namespaceURI: J,
|
|
2665
2715
|
value: ce
|
|
2666
|
-
} =
|
|
2667
|
-
let Q = j === "value" ? ce :
|
|
2668
|
-
if (y.attrName =
|
|
2669
|
-
|
|
2716
|
+
} = V, Ze = U(j);
|
|
2717
|
+
let Q = j === "value" ? ce : Ta(ce);
|
|
2718
|
+
if (y.attrName = Ze, y.attrValue = Q, y.keepAttr = !0, y.forceKeepAttr = void 0, ue(Z.uponSanitizeAttribute, f, y), Q = y.attrValue, Mr && (Ze === "id" || Ze === "name") && (ht(j, f), Q = an + Q), Ft && G(/((--!?|])>)|<\/(style|title)/i, Q)) {
|
|
2719
|
+
ht(j, f);
|
|
2670
2720
|
continue;
|
|
2671
2721
|
}
|
|
2672
|
-
if (y.forceKeepAttr || (
|
|
2722
|
+
if (y.forceKeepAttr || (ht(j, f), !y.keepAttr))
|
|
2673
2723
|
continue;
|
|
2674
|
-
if (!
|
|
2675
|
-
|
|
2724
|
+
if (!Ir && G(/\/>/i, Q)) {
|
|
2725
|
+
ht(j, f);
|
|
2676
2726
|
continue;
|
|
2677
2727
|
}
|
|
2678
|
-
Ee && g([It, At, Mt], (
|
|
2679
|
-
Q =
|
|
2728
|
+
Ee && g([It, At, Mt], (Zr) => {
|
|
2729
|
+
Q = He(Q, Zr, " ");
|
|
2680
2730
|
});
|
|
2681
|
-
const
|
|
2682
|
-
if (
|
|
2683
|
-
if (Y && typeof
|
|
2684
|
-
switch (
|
|
2731
|
+
const Yr = U(f.nodeName);
|
|
2732
|
+
if (Wr(Yr, Ze, Q)) {
|
|
2733
|
+
if (Y && typeof st == "object" && typeof st.getAttributeType == "function" && !J)
|
|
2734
|
+
switch (st.getAttributeType(Yr, Ze)) {
|
|
2685
2735
|
case "TrustedHTML": {
|
|
2686
2736
|
Q = Y.createHTML(Q);
|
|
2687
2737
|
break;
|
|
@@ -2692,72 +2742,72 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2692
2742
|
}
|
|
2693
2743
|
}
|
|
2694
2744
|
try {
|
|
2695
|
-
J ? f.setAttributeNS(J, j, Q) : f.setAttribute(j, Q),
|
|
2745
|
+
J ? f.setAttributeNS(J, j, Q) : f.setAttribute(j, Q), Vt(f) ? oe(f) : v(C.removed);
|
|
2696
2746
|
} catch {
|
|
2697
2747
|
}
|
|
2698
2748
|
}
|
|
2699
2749
|
}
|
|
2700
2750
|
ue(Z.afterSanitizeAttributes, f, null);
|
|
2701
|
-
},
|
|
2751
|
+
}, fn = function S(f) {
|
|
2702
2752
|
let m = null;
|
|
2703
|
-
const y =
|
|
2753
|
+
const y = jr(f);
|
|
2704
2754
|
for (ue(Z.beforeSanitizeShadowDOM, f, null); m = y.nextNode(); )
|
|
2705
|
-
ue(Z.uponSanitizeShadowNode, m, null), Vr(m),
|
|
2755
|
+
ue(Z.uponSanitizeShadowNode, m, null), Vr(m), qr(m), m.content instanceof ie && S(m.content);
|
|
2706
2756
|
ue(Z.afterSanitizeShadowDOM, f, null);
|
|
2707
2757
|
};
|
|
2708
2758
|
return C.sanitize = function(S) {
|
|
2709
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, y = null, M = null,
|
|
2710
|
-
if (zt = !S, zt && (S = "<!-->"), typeof S != "string" && !
|
|
2759
|
+
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, y = null, M = null, V = null;
|
|
2760
|
+
if (zt = !S, zt && (S = "<!-->"), typeof S != "string" && !Br(S))
|
|
2711
2761
|
if (typeof S.toString == "function") {
|
|
2712
2762
|
if (S = S.toString(), typeof S != "string")
|
|
2713
|
-
throw
|
|
2763
|
+
throw Ue("dirty is not a string, aborting");
|
|
2714
2764
|
} else
|
|
2715
|
-
throw
|
|
2765
|
+
throw Ue("toString is not a function");
|
|
2716
2766
|
if (!C.isSupported)
|
|
2717
2767
|
return S;
|
|
2718
|
-
if (Dt ||
|
|
2768
|
+
if (Dt || Bt(f), C.removed = [], typeof S == "string" && (qe = !1), qe) {
|
|
2719
2769
|
if (S.nodeName) {
|
|
2720
2770
|
const ce = U(S.nodeName);
|
|
2721
|
-
if (!H[ce] ||
|
|
2722
|
-
throw
|
|
2771
|
+
if (!H[ce] || Ge[ce])
|
|
2772
|
+
throw Ue("root node is forbidden and cannot be sanitized in-place");
|
|
2723
2773
|
}
|
|
2724
2774
|
} else if (S instanceof $t)
|
|
2725
|
-
m =
|
|
2775
|
+
m = zr("<!---->"), y = m.ownerDocument.importNode(S, !0), y.nodeType === je.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? m = y : m.appendChild(y);
|
|
2726
2776
|
else {
|
|
2727
2777
|
if (!Te && !Ee && !we && // eslint-disable-next-line unicorn/prefer-includes
|
|
2728
2778
|
S.indexOf("<") === -1)
|
|
2729
|
-
return Y &&
|
|
2730
|
-
if (m =
|
|
2731
|
-
return Te ? null :
|
|
2779
|
+
return Y && ot ? Y.createHTML(S) : S;
|
|
2780
|
+
if (m = zr(S), !m)
|
|
2781
|
+
return Te ? null : ot ? We : "";
|
|
2732
2782
|
}
|
|
2733
2783
|
m && Nt && oe(m.firstChild);
|
|
2734
|
-
const j =
|
|
2784
|
+
const j = jr(qe ? S : m);
|
|
2735
2785
|
for (; M = j.nextNode(); )
|
|
2736
|
-
Vr(M),
|
|
2737
|
-
if (
|
|
2786
|
+
Vr(M), qr(M), M.content instanceof ie && fn(M.content);
|
|
2787
|
+
if (qe)
|
|
2738
2788
|
return S;
|
|
2739
2789
|
if (Te) {
|
|
2740
|
-
if (
|
|
2741
|
-
for (
|
|
2742
|
-
|
|
2790
|
+
if (nt)
|
|
2791
|
+
for (V = Ka.call(m.ownerDocument); m.firstChild; )
|
|
2792
|
+
V.appendChild(m.firstChild);
|
|
2743
2793
|
else
|
|
2744
|
-
|
|
2745
|
-
return (z.shadowroot || z.shadowrootmode) && (
|
|
2794
|
+
V = m;
|
|
2795
|
+
return (z.shadowroot || z.shadowrootmode) && (V = Ja.call(E, V, !0)), V;
|
|
2746
2796
|
}
|
|
2747
2797
|
let J = we ? m.outerHTML : m.innerHTML;
|
|
2748
|
-
return we && H["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(
|
|
2798
|
+
return we && H["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(Cr, m.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
|
|
2749
2799
|
` + J), Ee && g([It, At, Mt], (ce) => {
|
|
2750
|
-
J =
|
|
2751
|
-
}), Y &&
|
|
2800
|
+
J = He(J, ce, " ");
|
|
2801
|
+
}), Y && ot ? Y.createHTML(J) : J;
|
|
2752
2802
|
}, C.setConfig = function() {
|
|
2753
2803
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2754
|
-
|
|
2804
|
+
Bt(S), Dt = !0;
|
|
2755
2805
|
}, C.clearConfig = function() {
|
|
2756
2806
|
Ie = null, Dt = !1;
|
|
2757
2807
|
}, C.isValidAttribute = function(S, f, m) {
|
|
2758
|
-
Ie ||
|
|
2808
|
+
Ie || Bt({});
|
|
2759
2809
|
const y = U(S), M = U(f);
|
|
2760
|
-
return
|
|
2810
|
+
return Wr(y, M, m);
|
|
2761
2811
|
}, C.addHook = function(S, f) {
|
|
2762
2812
|
typeof f == "function" && T(Z[S], f);
|
|
2763
2813
|
}, C.removeHook = function(S, f) {
|
|
@@ -2769,14 +2819,14 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2769
2819
|
}, C.removeHooks = function(S) {
|
|
2770
2820
|
Z[S] = [];
|
|
2771
2821
|
}, C.removeAllHooks = function() {
|
|
2772
|
-
Z =
|
|
2822
|
+
Z = kr();
|
|
2773
2823
|
}, C;
|
|
2774
2824
|
}
|
|
2775
|
-
var
|
|
2776
|
-
return
|
|
2825
|
+
var ja = wr();
|
|
2826
|
+
return ja;
|
|
2777
2827
|
});
|
|
2778
|
-
})(
|
|
2779
|
-
const tc =
|
|
2828
|
+
})(Ys);
|
|
2829
|
+
const tc = Ys.exports, tt = (e, ...t) => {
|
|
2780
2830
|
let r = e[0];
|
|
2781
2831
|
for (let s = 0; s < t.length; s++)
|
|
2782
2832
|
r += tc.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
|
|
@@ -2828,9 +2878,12 @@ const sc = /* @__PURE__ */ D(class extends F {
|
|
|
2828
2878
|
(r = this.storeUnsubscribe) == null || r.call(this), (s = this.intersectionObserver) == null || s.disconnect(), this.isComponentConnected = !1, clearTimeout(this.adContainerRenderedTimeout);
|
|
2829
2879
|
}
|
|
2830
2880
|
renderADMAd() {
|
|
2881
|
+
var a, o, n, c;
|
|
2831
2882
|
const r = this.adClientResponseItem;
|
|
2832
|
-
if (r.admAd)
|
|
2833
|
-
return
|
|
2883
|
+
if (!r.admAd)
|
|
2884
|
+
return;
|
|
2885
|
+
let s = "<p>Ad Marketplace Ad Placeholder</p>";
|
|
2886
|
+
return (o = (a = this.core) == null ? void 0 : a.config) != null && o.admAdTemplate && (s = (c = (n = this.core) == null ? void 0 : n.config) == null ? void 0 : c.admAdTemplate(r.admAd, { html: tt })), l("div", { class: "searchcraft-ad searchcraft-adm-ad", "data-searchcraft-ad-container-id": this.adContainerId, id: `searchcraft-adm-ad-${this.adContainerId}`, innerHTML: s });
|
|
2834
2887
|
}
|
|
2835
2888
|
renderCustomAd() {
|
|
2836
2889
|
var o, n;
|
|
@@ -2839,12 +2892,12 @@ const sc = /* @__PURE__ */ D(class extends F {
|
|
|
2839
2892
|
return r && (a = r({
|
|
2840
2893
|
searchTerm: this.searchTerm || "",
|
|
2841
2894
|
adContainerId: this.adContainerId
|
|
2842
|
-
}, { html:
|
|
2895
|
+
}, { html: tt })), l("div", { class: "searchcraft-ad searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
|
|
2843
2896
|
}
|
|
2844
2897
|
renderNativoAd() {
|
|
2845
2898
|
var s;
|
|
2846
2899
|
const r = ((s = this.core) == null ? void 0 : s.config.nativoAdClassName) || "ntv-item";
|
|
2847
|
-
return l("div", { class: r });
|
|
2900
|
+
return l("div", { id: `searchcraft-native-ad-${this.adContainerId}`, class: re("searchcraft-ad", r), "data-searchcraft-ad-container-id": this.adContainerId });
|
|
2848
2901
|
}
|
|
2849
2902
|
render() {
|
|
2850
2903
|
var r, s;
|
|
@@ -2886,44 +2939,7 @@ function kt() {
|
|
|
2886
2939
|
}
|
|
2887
2940
|
});
|
|
2888
2941
|
}
|
|
2889
|
-
const ac = kt
|
|
2890
|
-
var qs = { exports: {} };
|
|
2891
|
-
/*!
|
|
2892
|
-
Copyright (c) 2018 Jed Watson.
|
|
2893
|
-
Licensed under the MIT License (MIT), see
|
|
2894
|
-
http://jedwatson.github.io/classnames
|
|
2895
|
-
*/
|
|
2896
|
-
(function(e) {
|
|
2897
|
-
(function() {
|
|
2898
|
-
var t = {}.hasOwnProperty;
|
|
2899
|
-
function r() {
|
|
2900
|
-
for (var o = "", n = 0; n < arguments.length; n++) {
|
|
2901
|
-
var c = arguments[n];
|
|
2902
|
-
c && (o = a(o, s(c)));
|
|
2903
|
-
}
|
|
2904
|
-
return o;
|
|
2905
|
-
}
|
|
2906
|
-
function s(o) {
|
|
2907
|
-
if (typeof o == "string" || typeof o == "number")
|
|
2908
|
-
return o;
|
|
2909
|
-
if (typeof o != "object")
|
|
2910
|
-
return "";
|
|
2911
|
-
if (Array.isArray(o))
|
|
2912
|
-
return r.apply(null, o);
|
|
2913
|
-
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
2914
|
-
return o.toString();
|
|
2915
|
-
var n = "";
|
|
2916
|
-
for (var c in o)
|
|
2917
|
-
t.call(o, c) && o[c] && (n = a(n, c));
|
|
2918
|
-
return n;
|
|
2919
|
-
}
|
|
2920
|
-
function a(o, n) {
|
|
2921
|
-
return n ? o ? o + " " + n : o + n : o;
|
|
2922
|
-
}
|
|
2923
|
-
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2924
|
-
})();
|
|
2925
|
-
})(qs);
|
|
2926
|
-
const se = qs.exports, nc = /* @__PURE__ */ D(class extends F {
|
|
2942
|
+
const ac = kt, nc = /* @__PURE__ */ D(class extends F {
|
|
2927
2943
|
constructor() {
|
|
2928
2944
|
super();
|
|
2929
2945
|
/**
|
|
@@ -2964,11 +2980,11 @@ const se = qs.exports, nc = /* @__PURE__ */ D(class extends F {
|
|
|
2964
2980
|
this.__registerHost(), this.buttonClick = ye(this, "buttonClick");
|
|
2965
2981
|
}
|
|
2966
2982
|
render() {
|
|
2967
|
-
return l("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class:
|
|
2983
|
+
return l("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: re("searchcraft-button", {
|
|
2968
2984
|
"searchcraft-button-primary": this.hierarchy === "primary",
|
|
2969
2985
|
"searchcraft-button-tertiary": this.hierarchy === "tertiary",
|
|
2970
2986
|
"searchcraft-button-disabled": this.disabled
|
|
2971
|
-
}), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : l(
|
|
2987
|
+
}), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : l(ro, null, this.iconPosition === "left" && this.icon, l("span", null, this.label), this.iconPosition === "right" && this.icon));
|
|
2972
2988
|
}
|
|
2973
2989
|
}, [0, "searchcraft-button", {
|
|
2974
2990
|
hierarchy: [1],
|
|
@@ -3010,16 +3026,16 @@ function xt() {
|
|
|
3010
3026
|
});
|
|
3011
3027
|
}
|
|
3012
3028
|
const ic = xt;
|
|
3013
|
-
function
|
|
3029
|
+
function Zs(e, t) {
|
|
3014
3030
|
const r = { ...e };
|
|
3015
3031
|
for (const s in t)
|
|
3016
|
-
t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] =
|
|
3032
|
+
t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Zs(e[s], t[s]) : r[s] = t[s]);
|
|
3017
3033
|
return r;
|
|
3018
3034
|
}
|
|
3019
3035
|
function lc(e) {
|
|
3020
3036
|
return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
|
|
3021
3037
|
}
|
|
3022
|
-
function
|
|
3038
|
+
function vs(e) {
|
|
3023
3039
|
const t = {}, r = (s) => {
|
|
3024
3040
|
var a;
|
|
3025
3041
|
t[s.path] = {
|
|
@@ -3043,23 +3059,23 @@ function uc(e) {
|
|
|
3043
3059
|
return;
|
|
3044
3060
|
const a = s.path.substring(1).split("/");
|
|
3045
3061
|
let o = t, n = "";
|
|
3046
|
-
a.forEach((c,
|
|
3047
|
-
const
|
|
3048
|
-
o.children[
|
|
3062
|
+
a.forEach((c, u) => {
|
|
3063
|
+
const h = `${n}/${c}`;
|
|
3064
|
+
o.children[h] || (o.children[h] = {
|
|
3049
3065
|
count: 0,
|
|
3050
|
-
path:
|
|
3066
|
+
path: h,
|
|
3051
3067
|
children: {}
|
|
3052
|
-
}),
|
|
3068
|
+
}), u === a.length - 1 && (o.children[h].count = s.count), n = h, o = o.children[h];
|
|
3053
3069
|
});
|
|
3054
3070
|
}), t;
|
|
3055
3071
|
}
|
|
3056
|
-
function
|
|
3072
|
+
function Qs(e) {
|
|
3057
3073
|
const t = {
|
|
3058
3074
|
count: e.count,
|
|
3059
3075
|
path: e.path,
|
|
3060
3076
|
children: []
|
|
3061
3077
|
};
|
|
3062
|
-
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) =>
|
|
3078
|
+
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Qs(r))), t;
|
|
3063
3079
|
}
|
|
3064
3080
|
function hc(e, t) {
|
|
3065
3081
|
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("/"))));
|
|
@@ -3074,7 +3090,7 @@ function fc(e, t, r) {
|
|
|
3074
3090
|
count: 0,
|
|
3075
3091
|
path: "/",
|
|
3076
3092
|
children: a
|
|
3077
|
-
}, c =
|
|
3093
|
+
}, c = vs(o), u = vs(n), h = hc(c, u), i = Zs(h, u), p = uc(i), g = Qs(p);
|
|
3078
3094
|
return {
|
|
3079
3095
|
[e]: g.children
|
|
3080
3096
|
};
|
|
@@ -3113,7 +3129,7 @@ const dc = /* @__PURE__ */ D(class extends F {
|
|
|
3113
3129
|
handleStateUpdate(r) {
|
|
3114
3130
|
const s = r.searchResponseFacetPrime, a = r.searchResponseTimeTaken;
|
|
3115
3131
|
if (this.fieldName) {
|
|
3116
|
-
if ((r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode
|
|
3132
|
+
if ((r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && s) {
|
|
3117
3133
|
this.facetRoot = void 0;
|
|
3118
3134
|
const o = s.find((n) => this.fieldName === Object.keys(n)[0]);
|
|
3119
3135
|
this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = fc(this.fieldName, this.baseFacetRoot, o));
|
|
@@ -3138,8 +3154,8 @@ const dc = /* @__PURE__ */ D(class extends F {
|
|
|
3138
3154
|
[r]: !0
|
|
3139
3155
|
};
|
|
3140
3156
|
else {
|
|
3141
|
-
const c = Object.keys(this.selectedPaths).filter((
|
|
3142
|
-
this.selectedPaths = c.reduce((
|
|
3157
|
+
const c = Object.keys(this.selectedPaths).filter((u) => !u.includes(r));
|
|
3158
|
+
this.selectedPaths = c.reduce((u, h) => (u[h] = !0, u), {});
|
|
3143
3159
|
}
|
|
3144
3160
|
const a = Object.keys(this.selectedPaths).filter((c) => this.selectedPaths[c]), o = lc(a);
|
|
3145
3161
|
(n = this.facetSelectionUpdated) == null || n.emit({ paths: o });
|
|
@@ -3154,7 +3170,7 @@ const dc = /* @__PURE__ */ D(class extends F {
|
|
|
3154
3170
|
const o = a.children ? (n = a.children) == null ? void 0 : n.some((c) => this.selectedPaths[c.path]) : !1;
|
|
3155
3171
|
return l("div", { key: a.path, class: "searchcraft-facet-list-item" }, l("label", { class: "searchcraft-facet-list-checkbox-label" }, l("div", { class: "searchcraft-facet-list-checkbox-input-wrapper" }, l("input", { class: "searchcraft-facet-list-checkbox-input", checked: this.selectedPaths[a.path], onChange: (c) => this.handleCheckboxChange(a.path), type: "checkbox" }), o ? l("div", { class: "searchcraft-facet-list-checkbox-input-dash-icon" }, l("svg", { width: "14", height: "3", viewBox: "0 0 14 3", fill: "none" }, l("title", null, "Checkbox dash"), l("line", { x1: "1.5", y1: "1.5", x2: "12.5", y2: "1.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" }))) : l("div", { class: "searchcraft-facet-list-checkbox-input-check-icon" }, l("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, l("title", null, "Checkbox check"), l("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 && l("div", { class: "searchcraft-facet-child-list" }, a.children.map((c) => l("label", { key: c.path, class: "searchcraft-facet-list-checkbox-label searchcraft-facet-child-list-checkbox-label", style: {
|
|
3156
3172
|
display: this.selectedPaths[a.path] ? "flex" : "none"
|
|
3157
|
-
} }, l("div", { class: "searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper" }, l("input", { class: "searchcraft-facet-list-checkbox-input searchcraft-facet-child-list-checkbox-input", checked: this.selectedPaths[c.path], onChange: (
|
|
3173
|
+
} }, l("div", { class: "searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper" }, l("input", { class: "searchcraft-facet-list-checkbox-input searchcraft-facet-child-list-checkbox-input", checked: this.selectedPaths[c.path], onChange: (u) => {
|
|
3158
3174
|
this.handleCheckboxChange(c.path);
|
|
3159
3175
|
}, type: "checkbox" }), l("div", { class: "searchcraft-facet-list-checkbox-input-check-icon searchcraft-facet-child-list-checkbox-input-check-icon" }, l("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, l("title", null, "Checkbox check"), l("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)))));
|
|
3160
3176
|
}));
|
|
@@ -3166,7 +3182,7 @@ const dc = /* @__PURE__ */ D(class extends F {
|
|
|
3166
3182
|
selectedPaths: [32],
|
|
3167
3183
|
lastTimeTaken: [32]
|
|
3168
3184
|
}]);
|
|
3169
|
-
function
|
|
3185
|
+
function Ks() {
|
|
3170
3186
|
if (typeof customElements > "u")
|
|
3171
3187
|
return;
|
|
3172
3188
|
["searchcraft-facet-list"].forEach((t) => {
|
|
@@ -3177,8 +3193,8 @@ function Qs() {
|
|
|
3177
3193
|
}
|
|
3178
3194
|
});
|
|
3179
3195
|
}
|
|
3180
|
-
const pc =
|
|
3181
|
-
function
|
|
3196
|
+
const pc = Ks;
|
|
3197
|
+
function Qe(e, t) {
|
|
3182
3198
|
if (e && t)
|
|
3183
3199
|
return t.fieldNames.map((r) => {
|
|
3184
3200
|
let s = e[r.fieldName];
|
|
@@ -3196,7 +3212,7 @@ function Ze(e, t) {
|
|
|
3196
3212
|
return s;
|
|
3197
3213
|
}).filter((r) => !!r).join(t.delimiter || " ");
|
|
3198
3214
|
}
|
|
3199
|
-
function
|
|
3215
|
+
function Xs(e) {
|
|
3200
3216
|
switch (e) {
|
|
3201
3217
|
case "hour":
|
|
3202
3218
|
return 36e5;
|
|
@@ -3210,7 +3226,7 @@ function Ks(e) {
|
|
|
3210
3226
|
return 36e5;
|
|
3211
3227
|
}
|
|
3212
3228
|
}
|
|
3213
|
-
function
|
|
3229
|
+
function Js(e) {
|
|
3214
3230
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
3215
3231
|
}
|
|
3216
3232
|
function mc(e, t = "en-US", r = {
|
|
@@ -3220,8 +3236,8 @@ function mc(e, t = "en-US", r = {
|
|
|
3220
3236
|
}) {
|
|
3221
3237
|
const s = new Date(e), o = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), n = 30 * 24 * 60 * 60 * 1e3;
|
|
3222
3238
|
if (o < n) {
|
|
3223
|
-
const c = Math.trunc(o / 1e3),
|
|
3224
|
-
return i >= 1 ? p.format(-i, "day") :
|
|
3239
|
+
const c = Math.trunc(o / 1e3), u = Math.trunc(c / 60), h = Math.trunc(u / 60), i = Math.trunc(h / 24), p = new Intl.RelativeTimeFormat(t, r);
|
|
3240
|
+
return i >= 1 ? p.format(-i, "day") : h >= 1 ? p.format(-h, "hour") : u >= 1 ? p.format(-u, "minute") : p.format(0, "second");
|
|
3225
3241
|
}
|
|
3226
3242
|
return new Intl.DateTimeFormat(t, r).format(s);
|
|
3227
3243
|
}
|
|
@@ -3239,7 +3255,7 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
3239
3255
|
/**
|
|
3240
3256
|
* The granularity that the value must adhere to.
|
|
3241
3257
|
*/
|
|
3242
|
-
d(this, "granularity",
|
|
3258
|
+
d(this, "granularity", Xs("month"));
|
|
3243
3259
|
/** The type of data allowed. */
|
|
3244
3260
|
d(this, "dataType", "number");
|
|
3245
3261
|
d(this, "endValue", this.max);
|
|
@@ -3274,7 +3290,7 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
3274
3290
|
return l("div", { key: "9225b18ce2f40246837d183fcefdd0be7cc22383", class: "searchcraft-slider" }, l("div", { key: "8078c1eda2ceb781282f59216915896fdbe2a8d3", class: "searchcraft-slider-range" }, l("div", { key: "6a6bafa9f7abf41ab24f020cd291a4a08c618afb", class: "searchcraft-slider-active-range", style: {
|
|
3275
3291
|
left: `${a}%`,
|
|
3276
3292
|
width: `${o - a}%`
|
|
3277
|
-
} }), l("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class:
|
|
3293
|
+
} }), l("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class: re("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.max, min: this.min, onInput: this.handleStartValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), l("input", { key: "0637ea5fe123abe1d77c540b347c78fc8ad3d281", class: re("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.max, min: this.min, onInput: this.handleEndValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), l("div", { key: "b62f8d8485915dddefb7ca29f62b4a96d70470c5", class: "searchcraft-slider-label" }, l("span", { key: "fd5d32172ce53d93b858ca54c17b12b80fcdde1d", class: "searchcraft-slider-start-label" }, n), l("span", { key: "8f4d230b78fb8d896a469f17ade3a3fd3162b427", class: "searchcraft-slider-end-label" }, c)));
|
|
3278
3294
|
}
|
|
3279
3295
|
}, [0, "searchcraft-slider", {
|
|
3280
3296
|
max: [2],
|
|
@@ -3285,7 +3301,7 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
3285
3301
|
startValue: [32],
|
|
3286
3302
|
lastFocusedHandle: [32]
|
|
3287
3303
|
}]);
|
|
3288
|
-
function
|
|
3304
|
+
function ea() {
|
|
3289
3305
|
if (typeof customElements > "u")
|
|
3290
3306
|
return;
|
|
3291
3307
|
["searchcraft-slider"].forEach((t) => {
|
|
@@ -3330,7 +3346,7 @@ const vc = /* @__PURE__ */ D(class extends F {
|
|
|
3330
3346
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3331
3347
|
}
|
|
3332
3348
|
render() {
|
|
3333
|
-
return l("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class:
|
|
3349
|
+
return l("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: re("searchcraft-toggle-button", {
|
|
3334
3350
|
"searchcraft-toggle-button-active": this.isActive
|
|
3335
3351
|
}) }, l("div", { key: "aaa92d7c1aebe241a163a1fba7cd1f8d3804286d" }, l("p", { key: "068b82b17a99bf55ad17818d0dd4c7e95858317b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && l("p", { key: "39e43e3fad6a2ab09d20f37c6d6865cede3701d9", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), l("button", { key: "5ae352870d4a01c430389e75b967b2eb9d3fa5f7", class: "searchcraft-toggle-button-background", onClick: this.handleToggle, type: "button" }, l("div", { key: "0574ade4e1681ce8e122039c40e761cb68555621", class: "searchcraft-toggle-button-handle" })));
|
|
3336
3352
|
}
|
|
@@ -3341,7 +3357,7 @@ const vc = /* @__PURE__ */ D(class extends F {
|
|
|
3341
3357
|
unsubscribe: [32],
|
|
3342
3358
|
lastSearchTerm: [32]
|
|
3343
3359
|
}]);
|
|
3344
|
-
function
|
|
3360
|
+
function ta() {
|
|
3345
3361
|
if (typeof customElements > "u")
|
|
3346
3362
|
return;
|
|
3347
3363
|
["searchcraft-toggle-button"].forEach((t) => {
|
|
@@ -3352,7 +3368,7 @@ function ea() {
|
|
|
3352
3368
|
}
|
|
3353
3369
|
});
|
|
3354
3370
|
}
|
|
3355
|
-
const
|
|
3371
|
+
const ra = /* @__PURE__ */ D(class extends F {
|
|
3356
3372
|
constructor() {
|
|
3357
3373
|
super();
|
|
3358
3374
|
/**
|
|
@@ -3395,17 +3411,23 @@ const ta = /* @__PURE__ */ D(class extends F {
|
|
|
3395
3411
|
handleExactMatchToggleUpdated(r) {
|
|
3396
3412
|
this.searchStore.setSearchMode(r ? "exact" : "fuzzy"), this.searchStore.search();
|
|
3397
3413
|
}
|
|
3398
|
-
handleMostRecentToggleUpdated(r) {
|
|
3399
|
-
|
|
3414
|
+
handleMostRecentToggleUpdated(r, s) {
|
|
3415
|
+
s ? this.searchStore.setSortOrder({
|
|
3416
|
+
orderByField: r,
|
|
3417
|
+
sortType: "desc"
|
|
3418
|
+
}) : this.searchStore.setSortOrder({
|
|
3419
|
+
orderByField: null,
|
|
3420
|
+
sortType: null
|
|
3421
|
+
}), this.searchStore.search();
|
|
3400
3422
|
}
|
|
3401
3423
|
/**
|
|
3402
3424
|
* Iterate through `items` and render them based on `type`
|
|
3403
3425
|
*/
|
|
3404
3426
|
render() {
|
|
3405
|
-
return l("div", { key: "
|
|
3427
|
+
return l("div", { key: "7f15e8f1a2e1be763118f9cd4ded34cf7e2902d0", class: "searchcraft-filter-panel" }, this.items.map((r) => {
|
|
3406
3428
|
switch (r.type) {
|
|
3407
3429
|
case "dateRange": {
|
|
3408
|
-
const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n =
|
|
3430
|
+
const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n = Xs(s.options.granularity);
|
|
3409
3431
|
return l("div", { class: "searchcraft-filter-panel-section" }, l("p", { class: "searchcraft-filter-panel-label" }, r.label), l("searchcraft-slider", { min: a, max: o, granularity: n, dataType: "date", onRangeChanged: (c) => {
|
|
3410
3432
|
this.handleDateRangeChanged(s.fieldName, c.detail.startValue, c.detail.endValue);
|
|
3411
3433
|
} }));
|
|
@@ -3431,7 +3453,7 @@ const ta = /* @__PURE__ */ D(class extends F {
|
|
|
3431
3453
|
case "mostRecentToggle": {
|
|
3432
3454
|
const s = r;
|
|
3433
3455
|
return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
|
|
3434
|
-
this.handleMostRecentToggleUpdated(a.detail);
|
|
3456
|
+
this.handleMostRecentToggleUpdated(s.fieldName, a.detail);
|
|
3435
3457
|
} });
|
|
3436
3458
|
}
|
|
3437
3459
|
}
|
|
@@ -3448,21 +3470,21 @@ function bc() {
|
|
|
3448
3470
|
["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
|
|
3449
3471
|
switch (t) {
|
|
3450
3472
|
case "searchcraft-filter-panel":
|
|
3451
|
-
customElements.get(t) || customElements.define(t,
|
|
3473
|
+
customElements.get(t) || customElements.define(t, ra);
|
|
3452
3474
|
break;
|
|
3453
3475
|
case "searchcraft-facet-list":
|
|
3454
|
-
customElements.get(t) ||
|
|
3476
|
+
customElements.get(t) || Ks();
|
|
3455
3477
|
break;
|
|
3456
3478
|
case "searchcraft-slider":
|
|
3457
|
-
customElements.get(t) ||
|
|
3479
|
+
customElements.get(t) || ea();
|
|
3458
3480
|
break;
|
|
3459
3481
|
case "searchcraft-toggle-button":
|
|
3460
|
-
customElements.get(t) ||
|
|
3482
|
+
customElements.get(t) || ta();
|
|
3461
3483
|
break;
|
|
3462
3484
|
}
|
|
3463
3485
|
});
|
|
3464
3486
|
}
|
|
3465
|
-
const yc =
|
|
3487
|
+
const yc = ra, sa = bc, Cc = /* @__PURE__ */ D(class extends F {
|
|
3466
3488
|
constructor() {
|
|
3467
3489
|
super();
|
|
3468
3490
|
/**
|
|
@@ -3473,13 +3495,13 @@ const yc = ta, ra = bc, Cc = /* @__PURE__ */ D(class extends F {
|
|
|
3473
3495
|
this.__registerHost();
|
|
3474
3496
|
}
|
|
3475
3497
|
render() {
|
|
3476
|
-
return l("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class:
|
|
3498
|
+
return l("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: re("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
|
|
3477
3499
|
}
|
|
3478
3500
|
}, [0, "searchcraft-input-label", {
|
|
3479
3501
|
inputLabelClassName: [1, "input-label-class-name"],
|
|
3480
3502
|
label: [1]
|
|
3481
3503
|
}]);
|
|
3482
|
-
function
|
|
3504
|
+
function dr() {
|
|
3483
3505
|
if (typeof customElements > "u")
|
|
3484
3506
|
return;
|
|
3485
3507
|
["searchcraft-input-label"].forEach((t) => {
|
|
@@ -3490,7 +3512,7 @@ function fr() {
|
|
|
3490
3512
|
}
|
|
3491
3513
|
});
|
|
3492
3514
|
}
|
|
3493
|
-
const
|
|
3515
|
+
const aa = /* @__PURE__ */ D(class extends F {
|
|
3494
3516
|
constructor() {
|
|
3495
3517
|
super();
|
|
3496
3518
|
/**
|
|
@@ -3577,7 +3599,7 @@ const sa = /* @__PURE__ */ D(class extends F {
|
|
|
3577
3599
|
this.handleReset(), (r = this.unsubscribe) == null || r.call(this);
|
|
3578
3600
|
}
|
|
3579
3601
|
render() {
|
|
3580
|
-
const r = this.inputValue.length > 0, s =
|
|
3602
|
+
const r = this.inputValue.length > 0, s = re("searchcraft-input-form-grid", {
|
|
3581
3603
|
"searchcraft-input-form-grid-button-left": this.buttonPlacement === "left",
|
|
3582
3604
|
"searchcraft-input-form-grid-button-right": this.buttonPlacement === "right",
|
|
3583
3605
|
"searchcraft-input-form-grid-button-none": this.buttonPlacement === "none"
|
|
@@ -3612,13 +3634,13 @@ const sa = /* @__PURE__ */ D(class extends F {
|
|
|
3612
3634
|
}, void 0, {
|
|
3613
3635
|
core: ["onCoreChange"]
|
|
3614
3636
|
}]);
|
|
3615
|
-
function
|
|
3637
|
+
function na() {
|
|
3616
3638
|
if (typeof customElements > "u")
|
|
3617
3639
|
return;
|
|
3618
3640
|
["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
|
|
3619
3641
|
switch (t) {
|
|
3620
3642
|
case "searchcraft-input-form":
|
|
3621
|
-
customElements.get(t) || customElements.define(t,
|
|
3643
|
+
customElements.get(t) || customElements.define(t, aa);
|
|
3622
3644
|
break;
|
|
3623
3645
|
case "searchcraft-button":
|
|
3624
3646
|
customElements.get(t) || wt();
|
|
@@ -3627,12 +3649,12 @@ function aa() {
|
|
|
3627
3649
|
customElements.get(t) || xt();
|
|
3628
3650
|
break;
|
|
3629
3651
|
case "searchcraft-input-label":
|
|
3630
|
-
customElements.get(t) ||
|
|
3652
|
+
customElements.get(t) || dr();
|
|
3631
3653
|
break;
|
|
3632
3654
|
}
|
|
3633
3655
|
});
|
|
3634
3656
|
}
|
|
3635
|
-
const Sc =
|
|
3657
|
+
const Sc = aa, oa = na, kc = dr, ca = /* @__PURE__ */ D(class extends F {
|
|
3636
3658
|
constructor() {
|
|
3637
3659
|
super();
|
|
3638
3660
|
// store vars
|
|
@@ -3664,19 +3686,19 @@ const Sc = sa, na = aa, kc = fr, oa = /* @__PURE__ */ D(class extends F {
|
|
|
3664
3686
|
this.setSearchResultsPage(r);
|
|
3665
3687
|
}
|
|
3666
3688
|
renderOddPaginationItem(r) {
|
|
3667
|
-
return l("li", null, l("button", { class:
|
|
3689
|
+
return l("li", null, l("button", { class: re("searchcraft-pagination-item", {
|
|
3668
3690
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
3669
3691
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r));
|
|
3670
3692
|
}
|
|
3671
3693
|
renderEvenPaginationItem(r) {
|
|
3672
3694
|
if (!(this.searchResultsPagesCount <= r))
|
|
3673
|
-
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? l("li", null, l("button", { class:
|
|
3695
|
+
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? l("li", null, l("button", { class: re("searchcraft-pagination-item", {
|
|
3674
3696
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
3675
3697
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : l("li", null, l("span", { class: "searchcraft-pagination-item" }, "..."));
|
|
3676
3698
|
}
|
|
3677
3699
|
renderMiddlePaginationItem() {
|
|
3678
3700
|
if (!(this.searchResultsPagesCount <= 3))
|
|
3679
|
-
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? l("li", null, l("button", { class:
|
|
3701
|
+
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? l("li", null, l("button", { class: re("searchcraft-pagination-item", {
|
|
3680
3702
|
"searchcraft-pagination-item-active": this.searchResultsPage === 3 || this.searchResultsPage === this.searchResultsPagesCount - 2
|
|
3681
3703
|
}), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) : l("li", null, l("span", { class: "searchcraft-pagination-item searchcraft-pagination-item-active" }, this.searchResultsPage));
|
|
3682
3704
|
}
|
|
@@ -3702,7 +3724,7 @@ function wc() {
|
|
|
3702
3724
|
["searchcraft-pagination", "searchcraft-button"].forEach((t) => {
|
|
3703
3725
|
switch (t) {
|
|
3704
3726
|
case "searchcraft-pagination":
|
|
3705
|
-
customElements.get(t) || customElements.define(t,
|
|
3727
|
+
customElements.get(t) || customElements.define(t, ca);
|
|
3706
3728
|
break;
|
|
3707
3729
|
case "searchcraft-button":
|
|
3708
3730
|
customElements.get(t) || wt();
|
|
@@ -3710,7 +3732,7 @@ function wc() {
|
|
|
3710
3732
|
}
|
|
3711
3733
|
});
|
|
3712
3734
|
}
|
|
3713
|
-
const xc =
|
|
3735
|
+
const xc = ca, ia = wc, la = /* @__PURE__ */ D(class extends F {
|
|
3714
3736
|
constructor() {
|
|
3715
3737
|
super();
|
|
3716
3738
|
/**
|
|
@@ -3781,7 +3803,7 @@ const xc = oa, ca = wc, ia = /* @__PURE__ */ D(class extends F {
|
|
|
3781
3803
|
}
|
|
3782
3804
|
}
|
|
3783
3805
|
render() {
|
|
3784
|
-
return l("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:
|
|
3806
|
+
return l("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: tt }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
|
|
3785
3807
|
}
|
|
3786
3808
|
}, [4, "searchcraft-popover-button", {
|
|
3787
3809
|
template: [16],
|
|
@@ -3798,12 +3820,12 @@ function Rc() {
|
|
|
3798
3820
|
["searchcraft-popover-button"].forEach((t) => {
|
|
3799
3821
|
switch (t) {
|
|
3800
3822
|
case "searchcraft-popover-button":
|
|
3801
|
-
customElements.get(t) || customElements.define(t,
|
|
3823
|
+
customElements.get(t) || customElements.define(t, la);
|
|
3802
3824
|
break;
|
|
3803
3825
|
}
|
|
3804
3826
|
});
|
|
3805
3827
|
}
|
|
3806
|
-
const Ec =
|
|
3828
|
+
const Ec = la, ua = Rc, Tc = /* @__PURE__ */ D(class extends F {
|
|
3807
3829
|
constructor() {
|
|
3808
3830
|
super();
|
|
3809
3831
|
d(this, "searchResultsCount");
|
|
@@ -3821,12 +3843,12 @@ const Ec = ia, la = Rc, Tc = /* @__PURE__ */ D(class extends F {
|
|
|
3821
3843
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3822
3844
|
}
|
|
3823
3845
|
render() {
|
|
3824
|
-
return l("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, l("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${
|
|
3846
|
+
return l("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, l("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${Js(this.searchResultsCount)} Results Found` : " "), l("a", { key: "5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca", class: "searchcraft-popover-footer-link", href: "https://searchcraft.io/", target: "_blank", rel: "noreferrer" }, l("svg", { key: "0a4edf94e9e40a96a93a4e7ba1ffbd081e51b585", class: "searchcraft-popover-footer-link-image", width: "169", height: "16", viewBox: "0 0 169 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", { key: "67813a626922d709a4409028cb0f3f1ce3e2cfe8" }, "Powered by Searchcraft"), l("path", { key: "bf9e46a5f9783edd7167c1c5c1256d0200053969", d: "M5.07288 0.608C7.60088 0.608 8.84888 2.064 8.84888 4.112C8.84888 6.16 7.60088 7.616 5.07288 7.616H1.68088V12H0.336875V0.608H5.07288ZM5.07288 6.4C6.67288 6.4 7.45688 5.552 7.45688 4.112C7.45688 2.672 6.67288 1.824 5.07288 1.824H1.68088V6.4H5.07288ZM13.31 12.192C10.99 12.192 9.31 10.512 9.31 7.872C9.31 5.232 10.99 3.552 13.31 3.552C15.63 3.552 17.31 5.232 17.31 7.872C17.31 10.512 15.63 12.192 13.31 12.192ZM13.31 11.04C14.91 11.04 15.966 9.872 15.966 7.872C15.966 5.872 14.91 4.704 13.31 4.704C11.71 4.704 10.654 5.872 10.654 7.872C10.654 9.872 11.71 11.04 13.31 11.04ZM28.3826 3.744H29.7586L27.0066 12H25.6626L24.4466 8.176C24.1586 7.264 23.8706 6.304 23.6146 5.376C23.3426 6.304 23.0546 7.264 22.7666 8.176L21.5666 12H20.2226L17.4706 3.744H18.8466L20.0146 7.472C20.3346 8.48 20.6226 9.472 20.9106 10.48C21.1826 9.472 21.4706 8.48 21.7906 7.472L22.9426 3.744H24.2866L25.4386 7.472C25.7426 8.464 26.0466 9.456 26.3346 10.448C26.6066 9.456 26.9106 8.464 27.2146 7.472L28.3826 3.744ZM37.5194 7.872V8.32H31.2474C31.3754 10.176 32.3514 11.024 33.7914 11.024C34.9594 11.024 35.6954 10.416 35.9834 9.488H37.3114C36.9114 11.04 35.7274 12.192 33.7594 12.192C31.5034 12.192 29.9194 10.544 29.9194 7.872C29.9194 5.28 31.4394 3.552 33.7274 3.552C36.1914 3.552 37.5194 5.504 37.5194 7.872ZM33.7274 4.72C32.4314 4.72 31.4874 5.536 31.2794 7.168H36.1434C36.0154 5.808 35.1994 4.72 33.7274 4.72ZM42.9101 3.616C43.0381 3.616 43.1661 3.616 43.3421 3.632V4.864H43.0221C41.3741 4.864 40.3181 5.696 40.3181 7.296V12H39.0381V3.744H40.2541V5.2C40.7181 4.336 41.5661 3.616 42.9101 3.616ZM51.2538 7.872V8.32H44.9818C45.1098 10.176 46.0858 11.024 47.5258 11.024C48.6938 11.024 49.4298 10.416 49.7178 9.488H51.0458C50.6458 11.04 49.4618 12.192 47.4938 12.192C45.2378 12.192 43.6538 10.544 43.6538 7.872C43.6538 5.28 45.1738 3.552 47.4618 3.552C49.9258 3.552 51.2538 5.504 51.2538 7.872ZM47.4618 4.72C46.1658 4.72 45.2218 5.536 45.0138 7.168H49.8778C49.7498 5.808 48.9338 4.72 47.4618 4.72ZM58.9805 0.608H60.2605V12H59.0445V10.72C58.4205 11.664 57.4445 12.192 56.2125 12.192C53.8925 12.192 52.3725 10.512 52.3725 7.872C52.3725 5.232 53.8925 3.552 56.2125 3.552C57.4125 3.552 58.3565 4.048 58.9805 4.928V0.608ZM56.3725 11.04C57.9725 11.04 59.0285 9.872 59.0285 7.872C59.0285 5.872 57.9725 4.704 56.3725 4.704C54.7725 4.704 53.7165 5.936 53.7165 7.936C53.7165 9.936 54.7725 11.04 56.3725 11.04ZM69.2736 3.552C71.5936 3.552 73.1136 5.232 73.1136 7.872C73.1136 10.512 71.5936 12.192 69.2736 12.192C68.0416 12.192 67.0656 11.664 66.4416 10.72V12H65.2256V0.608H66.5056V4.928C67.1296 4.048 68.0736 3.552 69.2736 3.552ZM69.1136 11.04C70.7136 11.04 71.7696 9.808 71.7696 7.808C71.7696 5.808 70.7136 4.704 69.1136 4.704C67.5136 4.704 66.4576 5.872 66.4576 7.872C66.4576 9.872 67.5136 11.04 69.1136 11.04ZM79.3795 3.744H80.7715L77.2835 13.296C76.7555 14.752 75.9075 15.184 74.5955 15.184C74.3395 15.184 74.0995 15.168 73.8275 15.136V14.064H74.5795C75.3955 14.064 75.8275 13.696 76.0835 13.04C76.1795 12.8 76.2755 12.528 76.3715 12.272L73.2675 3.744H74.6755L75.8435 7.184C76.2595 8.384 76.6435 9.568 77.0275 10.752C77.3955 9.568 77.7955 8.368 78.2115 7.168L79.3795 3.744ZM89.1546 12.256C86.1146 12.256 84.2906 10.864 84.2746 8.24H86.4026C86.4346 10.032 87.6346 10.512 89.2186 10.512C90.7066 10.512 91.5226 9.936 91.5226 8.864C91.5226 7.968 90.9306 7.568 89.1866 7.216L88.2266 7.024C86.0186 6.608 84.5626 5.632 84.5626 3.568C84.5626 1.68 86.0506 0.351999 88.7866 0.351999C91.9866 0.351999 93.3466 1.856 93.4266 4H91.3306C91.2506 2.784 90.6266 2.096 88.8186 2.096C87.4426 2.096 86.7706 2.64 86.7706 3.504C86.7706 4.416 87.2986 4.832 88.9946 5.184L89.9866 5.376C92.6746 5.904 93.7626 6.944 93.7626 8.752C93.7626 11.008 92.0026 12.256 89.1546 12.256ZM102.952 8.016V8.496H96.7758C96.9198 9.968 97.7518 10.624 98.9198 10.624C99.8798 10.624 100.504 10.176 100.808 9.44H102.744C102.328 11.12 100.888 12.192 98.9038 12.192C96.4718 12.192 94.7918 10.512 94.7918 7.872C94.7918 5.28 96.4238 3.552 98.8718 3.552C101.4 3.552 102.952 5.392 102.952 8.016ZM98.8558 5.12C97.7838 5.12 96.9838 5.728 96.7918 7.088H100.936C100.776 5.92 100.056 5.12 98.8558 5.12ZM111.599 12H109.583C109.455 11.776 109.391 11.392 109.359 10.992C108.815 11.76 107.919 12.192 106.703 12.192C104.943 12.192 103.727 11.312 103.727 9.712C103.727 8.336 104.559 7.36 106.895 7.136L108.143 7.024C108.911 6.928 109.311 6.688 109.311 6.08C109.311 5.44 108.975 5.056 107.807 5.056C106.655 5.056 106.175 5.36 106.095 6.368H104.111C104.223 4.624 105.247 3.552 107.823 3.552C110.287 3.552 111.263 4.544 111.263 6.032V10.432C111.263 11.024 111.375 11.68 111.599 12ZM107.183 10.752C108.255 10.752 109.311 10.176 109.311 8.736V7.984C109.103 8.176 108.799 8.272 108.367 8.32L107.279 8.448C106.159 8.576 105.791 8.976 105.791 9.632C105.791 10.32 106.255 10.752 107.183 10.752ZM117.216 3.616C117.392 3.616 117.536 3.616 117.712 3.648V5.504H117.2C115.712 5.504 114.816 6.24 114.816 7.808V12H112.8V3.744H114.752V5.216C115.152 4.288 115.936 3.616 117.216 3.616ZM122.137 12.192C119.689 12.192 118.057 10.512 118.057 7.872C118.057 5.232 119.673 3.552 122.137 3.552C124.297 3.552 125.737 4.784 125.977 6.72H123.961C123.769 5.696 123.033 5.232 122.137 5.232C120.937 5.232 120.121 6.064 120.121 7.872C120.121 9.68 120.969 10.512 122.137 10.512C123.049 10.512 123.833 10.016 123.993 8.928H126.009C125.785 10.944 124.249 12.192 122.137 12.192ZM131.641 3.552C133.369 3.552 134.537 4.56 134.537 6.528V12H132.521V6.864C132.521 5.808 131.993 5.296 130.969 5.296C130.089 5.296 129.129 5.904 129.129 7.376V12H127.113V0.608H129.129V4.848C129.673 4.096 130.521 3.552 131.641 3.552ZM139.887 12.192C137.439 12.192 135.807 10.512 135.807 7.872C135.807 5.232 137.423 3.552 139.887 3.552C142.047 3.552 143.487 4.784 143.727 6.72H141.711C141.519 5.696 140.783 5.232 139.887 5.232C138.687 5.232 137.871 6.064 137.871 7.872C137.871 9.68 138.719 10.512 139.887 10.512C140.799 10.512 141.583 10.016 141.743 8.928H143.759C143.535 10.944 141.999 12.192 139.887 12.192ZM149.279 3.616C149.455 3.616 149.599 3.616 149.775 3.648V5.504H149.263C147.775 5.504 146.879 6.24 146.879 7.808V12H144.863V3.744H146.815V5.216C147.215 4.288 147.999 3.616 149.279 3.616ZM157.803 12H155.787C155.659 11.776 155.595 11.392 155.563 10.992C155.019 11.76 154.123 12.192 152.907 12.192C151.147 12.192 149.931 11.312 149.931 9.712C149.931 8.336 150.763 7.36 153.099 7.136L154.347 7.024C155.115 6.928 155.515 6.688 155.515 6.08C155.515 5.44 155.179 5.056 154.011 5.056C152.859 5.056 152.379 5.36 152.299 6.368H150.315C150.427 4.624 151.451 3.552 154.027 3.552C156.491 3.552 157.467 4.544 157.467 6.032V10.432C157.467 11.024 157.579 11.68 157.803 12ZM153.387 10.752C154.459 10.752 155.515 10.176 155.515 8.736V7.984C155.307 8.176 155.003 8.272 154.571 8.32L153.483 8.448C152.363 8.576 151.995 8.976 151.995 9.632C151.995 10.32 152.459 10.752 153.387 10.752ZM162.466 2.16C161.746 2.16 161.426 2.512 161.426 3.152V3.744H163.122V5.28H161.426V12H159.426V5.28H158.146V3.744H159.426V3.12C159.426 1.664 160.146 0.559999 162.13 0.559999C162.45 0.559999 162.882 0.575999 163.17 0.608V2.16H162.466ZM168.636 5.28H167.004V9.744C167.004 10.288 167.276 10.464 167.948 10.464H168.636V12C168.268 12.032 167.9 12.064 167.58 12.064C165.836 12.064 165.004 11.472 165.004 9.952V5.28H163.724V3.744H165.004V1.344H167.004V3.744H168.636V5.28Z", fill: "currentColor" }))));
|
|
3825
3847
|
}
|
|
3826
3848
|
}, [0, "searchcraft-popover-footer", {
|
|
3827
3849
|
searchResultsCount: [32]
|
|
3828
3850
|
}]);
|
|
3829
|
-
function
|
|
3851
|
+
function ha() {
|
|
3830
3852
|
if (typeof customElements > "u")
|
|
3831
3853
|
return;
|
|
3832
3854
|
["searchcraft-popover-footer"].forEach((t) => {
|
|
@@ -3837,7 +3859,7 @@ function ua() {
|
|
|
3837
3859
|
}
|
|
3838
3860
|
});
|
|
3839
3861
|
}
|
|
3840
|
-
const Pc =
|
|
3862
|
+
const Pc = ha, $c = /* @__PURE__ */ D(class extends F {
|
|
3841
3863
|
constructor() {
|
|
3842
3864
|
super();
|
|
3843
3865
|
d(this, "item");
|
|
@@ -3865,7 +3887,7 @@ const Pc = ua, $c = /* @__PURE__ */ D(class extends F {
|
|
|
3865
3887
|
}
|
|
3866
3888
|
mapValuesFromDocument(r) {
|
|
3867
3889
|
var s, a, o, n, c;
|
|
3868
|
-
this.title =
|
|
3890
|
+
this.title = Qe(r, (s = this.popoverResultMappings) == null ? void 0 : s.title), this.subtitle = Qe(r, (a = this.popoverResultMappings) == null ? void 0 : a.subtitle), this.href = Qe(r, (o = this.popoverResultMappings) == null ? void 0 : o.href), this.imageSource = Qe(r, (n = this.popoverResultMappings) == null ? void 0 : n.imageSource), this.imageAlt = Qe(r, (c = this.popoverResultMappings) == null ? void 0 : c.imageAlt);
|
|
3869
3891
|
}
|
|
3870
3892
|
connectedCallback() {
|
|
3871
3893
|
this.item && this.mapValuesFromDocument(this.item.document);
|
|
@@ -3885,7 +3907,7 @@ const Pc = ua, $c = /* @__PURE__ */ D(class extends F {
|
|
|
3885
3907
|
imageSource: [32],
|
|
3886
3908
|
imageAlt: [32]
|
|
3887
3909
|
}]);
|
|
3888
|
-
function
|
|
3910
|
+
function pr() {
|
|
3889
3911
|
if (typeof customElements > "u")
|
|
3890
3912
|
return;
|
|
3891
3913
|
["searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -3896,7 +3918,7 @@ function dr() {
|
|
|
3896
3918
|
}
|
|
3897
3919
|
});
|
|
3898
3920
|
}
|
|
3899
|
-
var
|
|
3921
|
+
var Ss;
|
|
3900
3922
|
const _c = /* @__PURE__ */ D(class extends F {
|
|
3901
3923
|
constructor() {
|
|
3902
3924
|
super();
|
|
@@ -3912,7 +3934,7 @@ const _c = /* @__PURE__ */ D(class extends F {
|
|
|
3912
3934
|
d(this, "adClientResponseItems");
|
|
3913
3935
|
d(this, "searchResultsPage");
|
|
3914
3936
|
d(this, "searchResultsPerPage");
|
|
3915
|
-
d(this, "config", (
|
|
3937
|
+
d(this, "config", (Ss = $.getState().core) == null ? void 0 : Ss.config);
|
|
3916
3938
|
this.__registerHost();
|
|
3917
3939
|
}
|
|
3918
3940
|
renderWithADMAds() {
|
|
@@ -3920,8 +3942,8 @@ const _c = /* @__PURE__ */ D(class extends F {
|
|
|
3920
3942
|
return l("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => l("searchcraft-ad", { adClientResponseItem: a, adContainerId: X(), adSource: "adMarketplace", key: a.id })), (s = this.searchClientResponseItems) == null ? void 0 : s.map((a, o) => l("searchcraft-popover-list-item", { item: a, key: a.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + o })));
|
|
3921
3943
|
}
|
|
3922
3944
|
renderWithCustomAds() {
|
|
3923
|
-
var
|
|
3924
|
-
const r = [], s = ((
|
|
3945
|
+
var u, h, i, p;
|
|
3946
|
+
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
|
|
3925
3947
|
for (let g = 0; g < o; g++)
|
|
3926
3948
|
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
|
|
3927
3949
|
c.forEach((g, b) => {
|
|
@@ -3935,12 +3957,12 @@ const _c = /* @__PURE__ */ D(class extends F {
|
|
|
3935
3957
|
return l("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3936
3958
|
}
|
|
3937
3959
|
renderWithNativoAds() {
|
|
3938
|
-
var
|
|
3939
|
-
const r = [], s = ((
|
|
3960
|
+
var h, i, p, g, b;
|
|
3961
|
+
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
|
|
3940
3962
|
for (let v = 0; v < n; v++)
|
|
3941
3963
|
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${v}-ad` }));
|
|
3942
|
-
|
|
3943
|
-
if (a && (T + s) % a === 0 && T + a <
|
|
3964
|
+
u.forEach((v, T) => {
|
|
3965
|
+
if (a && (T + s) % a === 0 && T + a < u.length && T >= a)
|
|
3944
3966
|
for (let _ = 0; _ < o; _++)
|
|
3945
3967
|
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${v.id}-ad-${_}` }));
|
|
3946
3968
|
r.push(l("searchcraft-popover-list-item", { item: v, key: v.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + T }));
|
|
@@ -3973,7 +3995,7 @@ const _c = /* @__PURE__ */ D(class extends F {
|
|
|
3973
3995
|
searchResultsPage: [2, "search-results-page"],
|
|
3974
3996
|
searchResultsPerPage: [2, "search-results-per-page"]
|
|
3975
3997
|
}]);
|
|
3976
|
-
function
|
|
3998
|
+
function fa() {
|
|
3977
3999
|
if (typeof customElements > "u")
|
|
3978
4000
|
return;
|
|
3979
4001
|
["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -3985,12 +4007,12 @@ function ha() {
|
|
|
3985
4007
|
customElements.get(t) || kt();
|
|
3986
4008
|
break;
|
|
3987
4009
|
case "searchcraft-popover-list-item":
|
|
3988
|
-
customElements.get(t) ||
|
|
4010
|
+
customElements.get(t) || pr();
|
|
3989
4011
|
break;
|
|
3990
4012
|
}
|
|
3991
4013
|
});
|
|
3992
4014
|
}
|
|
3993
|
-
const
|
|
4015
|
+
const da = /* @__PURE__ */ D(class extends F {
|
|
3994
4016
|
constructor() {
|
|
3995
4017
|
super();
|
|
3996
4018
|
/**
|
|
@@ -4121,19 +4143,19 @@ const fa = /* @__PURE__ */ D(class extends F {
|
|
|
4121
4143
|
}
|
|
4122
4144
|
renderInlinePopover() {
|
|
4123
4145
|
const r = this.hasResultsToShow && this.isFocused;
|
|
4124
|
-
return l("div", { class:
|
|
4146
|
+
return l("div", { class: re("searchcraft-popover-form searchcraft-popover-form-inline", {
|
|
4125
4147
|
"searchcraft-popover-form-active": r
|
|
4126
4148
|
}) }, l("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-inline-input" }, l("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this) })), r && l("div", { class: "searchcraft-popover-form-inline-wrapper" }, l("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }), l("searchcraft-popover-footer", null)));
|
|
4127
4149
|
}
|
|
4128
4150
|
renderModalPopover() {
|
|
4129
4151
|
if (this.isPopoverVisibleInState)
|
|
4130
|
-
return l("div", { class:
|
|
4152
|
+
return l("div", { class: re("searchcraft-popover-form searchcraft-popover-form-modal", {
|
|
4131
4153
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4132
4154
|
}) }, l("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), l("div", { class: "searchcraft-popover-form-modal-wrapper" }, l("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, l("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), l("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), l("div", { class: "searchcraft-popover-form-modal-popover-list-view" }, this.hasResultsToShow && l("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), l("searchcraft-popover-footer", null)));
|
|
4133
4155
|
}
|
|
4134
4156
|
renderFullscreenPopover() {
|
|
4135
4157
|
if (this.isPopoverVisibleInState)
|
|
4136
|
-
return l("div", { class:
|
|
4158
|
+
return l("div", { class: re("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
|
|
4137
4159
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4138
4160
|
}) }, l("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, l("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), l("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), l("div", { class: "searchcraft-popover-form-fullscreen-popover-list-view" }, this.hasResultsToShow && l("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), l("searchcraft-popover-footer", null));
|
|
4139
4161
|
}
|
|
@@ -4165,13 +4187,13 @@ const fa = /* @__PURE__ */ D(class extends F {
|
|
|
4165
4187
|
searchResultsPerPage: [32],
|
|
4166
4188
|
modalElement: [32]
|
|
4167
4189
|
}]);
|
|
4168
|
-
function
|
|
4190
|
+
function pa() {
|
|
4169
4191
|
if (typeof customElements > "u")
|
|
4170
4192
|
return;
|
|
4171
4193
|
["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) => {
|
|
4172
4194
|
switch (t) {
|
|
4173
4195
|
case "searchcraft-popover-form":
|
|
4174
|
-
customElements.get(t) || customElements.define(t,
|
|
4196
|
+
customElements.get(t) || customElements.define(t, da);
|
|
4175
4197
|
break;
|
|
4176
4198
|
case "searchcraft-ad":
|
|
4177
4199
|
customElements.get(t) || kt();
|
|
@@ -4183,27 +4205,27 @@ function da() {
|
|
|
4183
4205
|
customElements.get(t) || xt();
|
|
4184
4206
|
break;
|
|
4185
4207
|
case "searchcraft-input-form":
|
|
4186
|
-
customElements.get(t) ||
|
|
4208
|
+
customElements.get(t) || na();
|
|
4187
4209
|
break;
|
|
4188
4210
|
case "searchcraft-input-label":
|
|
4189
|
-
customElements.get(t) ||
|
|
4211
|
+
customElements.get(t) || dr();
|
|
4190
4212
|
break;
|
|
4191
4213
|
case "searchcraft-popover-footer":
|
|
4192
|
-
customElements.get(t) ||
|
|
4214
|
+
customElements.get(t) || ha();
|
|
4193
4215
|
break;
|
|
4194
4216
|
case "searchcraft-popover-form":
|
|
4195
|
-
customElements.get(t) ||
|
|
4217
|
+
customElements.get(t) || pa();
|
|
4196
4218
|
break;
|
|
4197
4219
|
case "searchcraft-popover-list-item":
|
|
4198
|
-
customElements.get(t) ||
|
|
4220
|
+
customElements.get(t) || pr();
|
|
4199
4221
|
break;
|
|
4200
4222
|
case "searchcraft-popover-list-view":
|
|
4201
|
-
customElements.get(t) ||
|
|
4223
|
+
customElements.get(t) || fa();
|
|
4202
4224
|
break;
|
|
4203
4225
|
}
|
|
4204
4226
|
});
|
|
4205
4227
|
}
|
|
4206
|
-
const Ic =
|
|
4228
|
+
const Ic = da, ma = pa, Ac = pr, Mc = fa, ga = /* @__PURE__ */ D(class extends F {
|
|
4207
4229
|
constructor() {
|
|
4208
4230
|
super();
|
|
4209
4231
|
/**
|
|
@@ -4236,7 +4258,7 @@ const Ic = fa, pa = da, Ac = dr, Mc = ha, ma = /* @__PURE__ */ D(class extends F
|
|
|
4236
4258
|
range: [Number(this.range[0]), Number(this.range[1])],
|
|
4237
4259
|
count: this.count,
|
|
4238
4260
|
responseTime: this.responseTime
|
|
4239
|
-
}, { html:
|
|
4261
|
+
}, { html: tt }) : `${Js(this.count)} results found in ${this.responseTime}ms`);
|
|
4240
4262
|
}
|
|
4241
4263
|
}, [0, "searchcraft-results-info", {
|
|
4242
4264
|
template: [16],
|
|
@@ -4254,12 +4276,12 @@ function Lc() {
|
|
|
4254
4276
|
["searchcraft-results-info"].forEach((t) => {
|
|
4255
4277
|
switch (t) {
|
|
4256
4278
|
case "searchcraft-results-info":
|
|
4257
|
-
customElements.get(t) || customElements.define(t,
|
|
4279
|
+
customElements.get(t) || customElements.define(t, ga);
|
|
4258
4280
|
break;
|
|
4259
4281
|
}
|
|
4260
4282
|
});
|
|
4261
4283
|
}
|
|
4262
|
-
const Oc =
|
|
4284
|
+
const Oc = ga, va = Lc, Fc = /* @__PURE__ */ D(class extends F {
|
|
4263
4285
|
constructor() {
|
|
4264
4286
|
super();
|
|
4265
4287
|
d(this, "item");
|
|
@@ -4284,11 +4306,11 @@ const Oc = ma, ga = Lc, Fc = /* @__PURE__ */ D(class extends F {
|
|
|
4284
4306
|
const n = r.target.closest("a");
|
|
4285
4307
|
if (!n || !((i = this.hostElement) != null && i.contains(n)) || !a || !a.measureClient)
|
|
4286
4308
|
return;
|
|
4287
|
-
const c = this.documentPosition,
|
|
4309
|
+
const c = this.documentPosition, u = s.searchTerm, h = s.searchClientResponseItems.length || 0;
|
|
4288
4310
|
a.measureClient.sendMeasureEvent("document_clicked", {
|
|
4289
4311
|
document_position: c,
|
|
4290
|
-
number_of_documents:
|
|
4291
|
-
search_term:
|
|
4312
|
+
number_of_documents: h,
|
|
4313
|
+
search_term: u
|
|
4292
4314
|
});
|
|
4293
4315
|
});
|
|
4294
4316
|
d(this, "handleKeyDown", () => {
|
|
@@ -4303,7 +4325,8 @@ const Oc = ma, ga = Lc, Fc = /* @__PURE__ */ D(class extends F {
|
|
|
4303
4325
|
if (this.item)
|
|
4304
4326
|
try {
|
|
4305
4327
|
this.templateHtml = (r = this.template) == null ? void 0 : r.call(this, this.item.document, this.index, {
|
|
4306
|
-
html:
|
|
4328
|
+
html: tt,
|
|
4329
|
+
source_index: this.item.source_index
|
|
4307
4330
|
});
|
|
4308
4331
|
} catch (s) {
|
|
4309
4332
|
console.error("Invalid search result template:", s);
|
|
@@ -4320,7 +4343,7 @@ const Oc = ma, ga = Lc, Fc = /* @__PURE__ */ D(class extends F {
|
|
|
4320
4343
|
template: [16],
|
|
4321
4344
|
templateHtml: [32]
|
|
4322
4345
|
}]);
|
|
4323
|
-
function
|
|
4346
|
+
function ba() {
|
|
4324
4347
|
if (typeof customElements > "u")
|
|
4325
4348
|
return;
|
|
4326
4349
|
["searchcraft-search-result"].forEach((t) => {
|
|
@@ -4331,7 +4354,7 @@ function va() {
|
|
|
4331
4354
|
}
|
|
4332
4355
|
});
|
|
4333
4356
|
}
|
|
4334
|
-
const Dc =
|
|
4357
|
+
const Dc = ba, ya = /* @__PURE__ */ D(class extends F {
|
|
4335
4358
|
constructor() {
|
|
4336
4359
|
super();
|
|
4337
4360
|
/**
|
|
@@ -4383,8 +4406,8 @@ const Dc = va, ba = /* @__PURE__ */ D(class extends F {
|
|
|
4383
4406
|
return l("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => l("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: X(), key: n.id })), r.map((n, c) => l("searchcraft-search-result", { key: n.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + c, index: c, item: n, template: this.template })));
|
|
4384
4407
|
}
|
|
4385
4408
|
renderWithCustomAds() {
|
|
4386
|
-
var
|
|
4387
|
-
const r = [], s = ((
|
|
4409
|
+
var u, h, i, p, g, b;
|
|
4410
|
+
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = (g = this.searchClientResponseItems) != null && g.length ? this.searchClientResponseItems : (b = this.initialSearchClientResponseItems) != null && b.length ? this.initialSearchClientResponseItems : [];
|
|
4388
4411
|
for (let v = 0; v < o; v++)
|
|
4389
4412
|
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${v}-ad` }));
|
|
4390
4413
|
c.forEach((v, T) => {
|
|
@@ -4398,12 +4421,12 @@ const Dc = va, ba = /* @__PURE__ */ D(class extends F {
|
|
|
4398
4421
|
return l("div", { class: "searchcraft-search-results" }, r);
|
|
4399
4422
|
}
|
|
4400
4423
|
renderWithNativoAds() {
|
|
4401
|
-
var
|
|
4402
|
-
const r = [], s = ((
|
|
4424
|
+
var h, i, p, g, b, v, T;
|
|
4425
|
+
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, u = (v = this.searchClientResponseItems) != null && v.length ? this.searchClientResponseItems : (T = this.initialSearchClientResponseItems) != null && T.length ? this.initialSearchClientResponseItems : [];
|
|
4403
4426
|
for (let _ = 0; _ < n; _++)
|
|
4404
4427
|
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
|
|
4405
|
-
|
|
4406
|
-
if (a && (N + s) % a === 0 && N + a <
|
|
4428
|
+
u.forEach((_, N) => {
|
|
4429
|
+
if (a && (N + s) % a === 0 && N + a < u.length && N >= a)
|
|
4407
4430
|
for (let I = 0; I < o; I++)
|
|
4408
4431
|
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_.id}-ad-${I}` }));
|
|
4409
4432
|
r.push(l("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + N, index: N, item: _, template: this.template }));
|
|
@@ -4453,7 +4476,7 @@ function Nc() {
|
|
|
4453
4476
|
["searchcraft-search-results", "searchcraft-ad", "searchcraft-error-message", "searchcraft-search-result"].forEach((t) => {
|
|
4454
4477
|
switch (t) {
|
|
4455
4478
|
case "searchcraft-search-results":
|
|
4456
|
-
customElements.get(t) || customElements.define(t,
|
|
4479
|
+
customElements.get(t) || customElements.define(t, ya);
|
|
4457
4480
|
break;
|
|
4458
4481
|
case "searchcraft-ad":
|
|
4459
4482
|
customElements.get(t) || kt();
|
|
@@ -4462,12 +4485,12 @@ function Nc() {
|
|
|
4462
4485
|
customElements.get(t) || xt();
|
|
4463
4486
|
break;
|
|
4464
4487
|
case "searchcraft-search-result":
|
|
4465
|
-
customElements.get(t) ||
|
|
4488
|
+
customElements.get(t) || ba();
|
|
4466
4489
|
break;
|
|
4467
4490
|
}
|
|
4468
4491
|
});
|
|
4469
4492
|
}
|
|
4470
|
-
const Hc =
|
|
4493
|
+
const Hc = ya, Ca = Nc, Uc = /* @__PURE__ */ D(class extends F {
|
|
4471
4494
|
constructor() {
|
|
4472
4495
|
super();
|
|
4473
4496
|
/**
|
|
@@ -4530,7 +4553,7 @@ const Hc = ba, ya = Nc, Uc = /* @__PURE__ */ D(class extends F {
|
|
|
4530
4553
|
setSearchResultsPage: [32],
|
|
4531
4554
|
setSearchResultsPerPage: [32]
|
|
4532
4555
|
}]);
|
|
4533
|
-
function
|
|
4556
|
+
function Sa() {
|
|
4534
4557
|
if (typeof customElements > "u")
|
|
4535
4558
|
return;
|
|
4536
4559
|
["searchcraft-select"].forEach((t) => {
|
|
@@ -4541,7 +4564,7 @@ function Ca() {
|
|
|
4541
4564
|
}
|
|
4542
4565
|
});
|
|
4543
4566
|
}
|
|
4544
|
-
const
|
|
4567
|
+
const ka = /* @__PURE__ */ D(class extends F {
|
|
4545
4568
|
constructor() {
|
|
4546
4569
|
super();
|
|
4547
4570
|
/**
|
|
@@ -4604,16 +4627,16 @@ function zc() {
|
|
|
4604
4627
|
["searchcraft-search-results-per-page", "searchcraft-select"].forEach((t) => {
|
|
4605
4628
|
switch (t) {
|
|
4606
4629
|
case "searchcraft-search-results-per-page":
|
|
4607
|
-
customElements.get(t) || customElements.define(t,
|
|
4630
|
+
customElements.get(t) || customElements.define(t, ka);
|
|
4608
4631
|
break;
|
|
4609
4632
|
case "searchcraft-select":
|
|
4610
|
-
customElements.get(t) ||
|
|
4633
|
+
customElements.get(t) || Sa();
|
|
4611
4634
|
break;
|
|
4612
4635
|
}
|
|
4613
4636
|
});
|
|
4614
4637
|
}
|
|
4615
|
-
const jc = Sa, ka = zc, Vc = Ca, Bc = Js, Wc = `[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
|
-
`,
|
|
4638
|
+
const jc = ka, wa = zc, Bc = Sa, Vc = ea, Wc = `[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-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-ad-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-ad-no-template>p{margin:0}.searchcraft-adm-ad{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.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 */
|
|
4639
|
+
`, xa = /* @__PURE__ */ D(class extends F {
|
|
4617
4640
|
constructor() {
|
|
4618
4641
|
super(), this.__registerHost();
|
|
4619
4642
|
}
|
|
@@ -4627,16 +4650,16 @@ function Gc() {
|
|
|
4627
4650
|
["searchcraft-theme"].forEach((t) => {
|
|
4628
4651
|
switch (t) {
|
|
4629
4652
|
case "searchcraft-theme":
|
|
4630
|
-
customElements.get(t) || customElements.define(t,
|
|
4653
|
+
customElements.get(t) || customElements.define(t, xa);
|
|
4631
4654
|
break;
|
|
4632
4655
|
}
|
|
4633
4656
|
});
|
|
4634
4657
|
}
|
|
4635
|
-
const qc =
|
|
4636
|
-
ac(), oc(), ic(), pc(),
|
|
4658
|
+
const qc = xa, Ra = Gc, Yc = ta, Zc = () => {
|
|
4659
|
+
ac(), oc(), ic(), pc(), sa(), oa(), kc(), ia(), ua(), Pc(), ma(), Ac(), Mc(), va(), Dc(), wa(), Ca(), Bc(), Vc(), Ra(), Yc();
|
|
4637
4660
|
};
|
|
4638
4661
|
globalThis.__scDefineCustomElements__ = Zc;
|
|
4639
|
-
const Qc = "@searchcraft/react-sdk", Kc = "0.10.
|
|
4662
|
+
const Qc = "@searchcraft/react-sdk", Kc = "0.10.3", bs = {
|
|
4640
4663
|
name: Qc,
|
|
4641
4664
|
version: Kc
|
|
4642
4665
|
};
|
|
@@ -4645,30 +4668,30 @@ const Qc = "@searchcraft/react-sdk", Kc = "0.10.2", vs = {
|
|
|
4645
4668
|
* Copyright 2018 Google LLC
|
|
4646
4669
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4647
4670
|
*/
|
|
4648
|
-
const Xc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]),
|
|
4671
|
+
const Xc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), ys = /* @__PURE__ */ new WeakMap(), Cs = (e, t, r, s, a) => {
|
|
4649
4672
|
const o = a == null ? void 0 : a[t];
|
|
4650
|
-
o === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, c,
|
|
4651
|
-
let
|
|
4652
|
-
|
|
4653
|
-
let i =
|
|
4654
|
-
|
|
4673
|
+
o === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, c, u) => {
|
|
4674
|
+
let h = ys.get(n);
|
|
4675
|
+
h === void 0 && ys.set(n, h = /* @__PURE__ */ new Map());
|
|
4676
|
+
let i = h.get(c);
|
|
4677
|
+
u !== void 0 ? i === void 0 ? (h.set(c, i = { handleEvent: u }), n.addEventListener(c, i)) : i.handleEvent = u : i !== void 0 && (h.delete(c), n.removeEventListener(c, i));
|
|
4655
4678
|
})(e, o, r);
|
|
4656
4679
|
}, Jc = ({ react: e, tagName: t, elementClass: r, events: s, displayName: a }) => {
|
|
4657
|
-
const o = new Set(Object.keys(s ?? {})), n = e.forwardRef((c,
|
|
4658
|
-
const
|
|
4680
|
+
const o = new Set(Object.keys(s ?? {})), n = e.forwardRef((c, u) => {
|
|
4681
|
+
const h = e.useRef(/* @__PURE__ */ new Map()), i = e.useRef(null), p = {}, g = {};
|
|
4659
4682
|
for (const [b, v] of Object.entries(c)) Xc.has(b) ? p[b === "className" ? "class" : b] = v : o.has(b) || b in r.prototype ? g[b] = v : p[b] = v;
|
|
4660
4683
|
return e.useLayoutEffect(() => {
|
|
4661
4684
|
if (i.current === null) return;
|
|
4662
4685
|
const b = /* @__PURE__ */ new Map();
|
|
4663
|
-
for (const v in g)
|
|
4664
|
-
for (const [v, T] of
|
|
4665
|
-
|
|
4686
|
+
for (const v in g) Cs(i.current, v, c[v], h.current.get(v), s), h.current.delete(v), b.set(v, c[v]);
|
|
4687
|
+
for (const [v, T] of h.current) Cs(i.current, v, void 0, T, s);
|
|
4688
|
+
h.current = b;
|
|
4666
4689
|
}), e.useLayoutEffect(() => {
|
|
4667
4690
|
var b;
|
|
4668
4691
|
(b = i.current) == null || b.removeAttribute("defer-hydration");
|
|
4669
4692
|
}, []), p.suppressHydrationWarning = !0, e.createElement(t, { ...p, ref: e.useCallback((b) => {
|
|
4670
|
-
i.current = b, typeof
|
|
4671
|
-
}, [
|
|
4693
|
+
i.current = b, typeof u == "function" ? u(b) : u !== null && (u.current = b);
|
|
4694
|
+
}, [u]) });
|
|
4672
4695
|
});
|
|
4673
4696
|
return n.displayName = a ?? r.name, n;
|
|
4674
4697
|
}, be = ({
|
|
@@ -4680,7 +4703,7 @@ const Xc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
4680
4703
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4681
4704
|
react: ve,
|
|
4682
4705
|
events: {},
|
|
4683
|
-
defineCustomElement:
|
|
4706
|
+
defineCustomElement: sa
|
|
4684
4707
|
}), ti = /* @__PURE__ */ be({
|
|
4685
4708
|
tagName: "searchcraft-input-form",
|
|
4686
4709
|
elementClass: Sc,
|
|
@@ -4691,62 +4714,62 @@ const Xc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
4691
4714
|
onInputBlur: "inputBlur",
|
|
4692
4715
|
onInputInit: "inputInit"
|
|
4693
4716
|
},
|
|
4694
|
-
defineCustomElement:
|
|
4717
|
+
defineCustomElement: oa
|
|
4695
4718
|
}), ri = /* @__PURE__ */ be({
|
|
4696
4719
|
tagName: "searchcraft-pagination",
|
|
4697
4720
|
elementClass: xc,
|
|
4698
4721
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4699
4722
|
react: ve,
|
|
4700
4723
|
events: {},
|
|
4701
|
-
defineCustomElement:
|
|
4724
|
+
defineCustomElement: ia
|
|
4702
4725
|
}), si = /* @__PURE__ */ be({
|
|
4703
4726
|
tagName: "searchcraft-popover-button",
|
|
4704
4727
|
elementClass: Ec,
|
|
4705
4728
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4706
4729
|
react: ve,
|
|
4707
4730
|
events: {},
|
|
4708
|
-
defineCustomElement:
|
|
4731
|
+
defineCustomElement: ua
|
|
4709
4732
|
}), ai = /* @__PURE__ */ be({
|
|
4710
4733
|
tagName: "searchcraft-popover-form",
|
|
4711
4734
|
elementClass: Ic,
|
|
4712
4735
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4713
4736
|
react: ve,
|
|
4714
4737
|
events: {},
|
|
4715
|
-
defineCustomElement:
|
|
4738
|
+
defineCustomElement: ma
|
|
4716
4739
|
}), ni = /* @__PURE__ */ be({
|
|
4717
4740
|
tagName: "searchcraft-results-info",
|
|
4718
4741
|
elementClass: Oc,
|
|
4719
4742
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4720
4743
|
react: ve,
|
|
4721
4744
|
events: {},
|
|
4722
|
-
defineCustomElement:
|
|
4745
|
+
defineCustomElement: va
|
|
4723
4746
|
}), oi = /* @__PURE__ */ be({
|
|
4724
4747
|
tagName: "searchcraft-search-results",
|
|
4725
4748
|
elementClass: Hc,
|
|
4726
4749
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4727
4750
|
react: ve,
|
|
4728
4751
|
events: {},
|
|
4729
|
-
defineCustomElement:
|
|
4752
|
+
defineCustomElement: Ca
|
|
4730
4753
|
}), ci = /* @__PURE__ */ be({
|
|
4731
4754
|
tagName: "searchcraft-search-results-per-page",
|
|
4732
4755
|
elementClass: jc,
|
|
4733
4756
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4734
4757
|
react: ve,
|
|
4735
4758
|
events: {},
|
|
4736
|
-
defineCustomElement:
|
|
4759
|
+
defineCustomElement: wa
|
|
4737
4760
|
}), ii = /* @__PURE__ */ be({
|
|
4738
4761
|
tagName: "searchcraft-theme",
|
|
4739
4762
|
elementClass: qc,
|
|
4740
4763
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4741
4764
|
react: ve,
|
|
4742
4765
|
events: {},
|
|
4743
|
-
defineCustomElement:
|
|
4766
|
+
defineCustomElement: Ra
|
|
4744
4767
|
}), Mi = (e) => /* @__PURE__ */ ge(ei, { ...e }), Li = (e) => /* @__PURE__ */ ge(ti, { ...e }), Oi = (e) => /* @__PURE__ */ ge(si, { ...e }), Fi = (e) => /* @__PURE__ */ ge(ai, { ...e }), Di = (e) => /* @__PURE__ */ ge(ni, { ...e }), Ni = (e) => /* @__PURE__ */ ge(ii, { ...e }), Hi = (e) => /* @__PURE__ */ ge(ri, { ...e }), Ui = (e) => /* @__PURE__ */ ge(ci, { ...e }), zi = (e) => /* @__PURE__ */ ge(oi, { ...e });
|
|
4745
4768
|
class ji extends Lo {
|
|
4746
4769
|
constructor(t) {
|
|
4747
4770
|
super(t, {
|
|
4748
|
-
sdkName:
|
|
4749
|
-
sdkVersion:
|
|
4771
|
+
sdkName: bs.name,
|
|
4772
|
+
sdkVersion: bs.version
|
|
4750
4773
|
});
|
|
4751
4774
|
}
|
|
4752
4775
|
}
|