@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/server/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var f = (e, t, r) =>
|
|
1
|
+
var Ga = Object.defineProperty;
|
|
2
|
+
var qa = (e, t, r) => t in e ? Ga(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var f = (e, t, r) => qa(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { jsx as ge } from "react/jsx-runtime";
|
|
5
|
-
import { renderToString as
|
|
6
|
-
const
|
|
5
|
+
import { renderToString as Ya } from "@searchcraft/javascript-sdk/hydrate";
|
|
6
|
+
const Za = "searchcraft-javascript-sdk", Oe = (
|
|
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 Qa = Object.defineProperty, Ka = (e, t) => {
|
|
11
11
|
for (var r in t)
|
|
12
|
-
|
|
13
|
-
},
|
|
12
|
+
Qa(e, r, { get: t[r], enumerable: !0 });
|
|
13
|
+
}, Xa = "http://www.w3.org/2000/svg", Ja = "http://www.w3.org/1999/xhtml", en = (e, t) => {
|
|
14
14
|
var r;
|
|
15
15
|
const s = t.$cmpMeta$;
|
|
16
16
|
Object.entries((r = s.$members$) != null ? r : {}).map(([o, [n]]) => {
|
|
@@ -28,7 +28,7 @@ var Za = Object.defineProperty, Qa = (e, t) => {
|
|
|
28
28
|
}), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : c;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
},
|
|
31
|
+
}, Kt = /* @__PURE__ */ new WeakMap(), tn = (e) => Kt.delete(e), Ce = (e) => Kt.get(e), rn = (e, t) => {
|
|
32
32
|
const r = {
|
|
33
33
|
$flags$: 0,
|
|
34
34
|
$hostElement$: e,
|
|
@@ -36,9 +36,9 @@ var Za = Object.defineProperty, Qa = (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 = Kt.set(e, r);
|
|
40
|
+
return en(e, r), s;
|
|
41
|
+
}, Zr = (e, t) => t in e, yt = (e, t) => (0, console.error)(e, t), Ct = typeof window < "u" ? window : {}, Me = Ct.document || { head: {} }, F = Ct.HTMLElement || class {
|
|
42
42
|
}, ee = {
|
|
43
43
|
$flags$: 0,
|
|
44
44
|
$resourcesUrl$: "",
|
|
@@ -47,80 +47,80 @@ var Za = Object.defineProperty, Qa = (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
|
+
}, sn = Oe.shadowDom, an = (e) => Promise.resolve(e), qt = !1, Qr = [], ys = [], nn = (e, t) => (r) => {
|
|
51
|
+
e.push(r), qt || (qt = !0, ee.$flags$ & 4 ? Xt(Yt) : ee.raf(Yt));
|
|
52
|
+
}, Kr = (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
|
+
yt(r);
|
|
58
58
|
}
|
|
59
59
|
e.length = 0;
|
|
60
|
-
},
|
|
61
|
-
Qr
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
err: () =>
|
|
65
|
-
map: () =>
|
|
66
|
-
ok: () =>
|
|
67
|
-
unwrap: () =>
|
|
68
|
-
unwrapErr: () =>
|
|
60
|
+
}, Yt = () => {
|
|
61
|
+
Kr(Qr), Kr(ys), (qt = Qr.length > 0) && ee.raf(Yt);
|
|
62
|
+
}, Xt = (e) => an().then(e), on = /* @__PURE__ */ nn(ys), Jt = (e) => (e = typeof e, e === "object" || e === "function"), cn = {};
|
|
63
|
+
Ka(cn, {
|
|
64
|
+
err: () => Cs,
|
|
65
|
+
map: () => ln,
|
|
66
|
+
ok: () => Zt,
|
|
67
|
+
unwrap: () => un,
|
|
68
|
+
unwrapErr: () => hn
|
|
69
69
|
});
|
|
70
|
-
var
|
|
70
|
+
var Zt = (e) => ({
|
|
71
71
|
isOk: !0,
|
|
72
72
|
isErr: !1,
|
|
73
73
|
value: e
|
|
74
|
-
}),
|
|
74
|
+
}), Cs = (e) => ({
|
|
75
75
|
isOk: !1,
|
|
76
76
|
isErr: !0,
|
|
77
77
|
value: e
|
|
78
78
|
});
|
|
79
|
-
function
|
|
79
|
+
function ln(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) => Zt(s)) : Zt(r);
|
|
83
83
|
}
|
|
84
84
|
if (e.isErr) {
|
|
85
85
|
const r = e.value;
|
|
86
|
-
return
|
|
86
|
+
return Cs(r);
|
|
87
87
|
}
|
|
88
88
|
throw "should never get here";
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var un = (e) => {
|
|
91
91
|
if (e.isOk)
|
|
92
92
|
return e.value;
|
|
93
93
|
throw e.value;
|
|
94
|
-
},
|
|
94
|
+
}, hn = (e) => {
|
|
95
95
|
if (e.isErr)
|
|
96
96
|
return e.value;
|
|
97
97
|
throw e.value;
|
|
98
|
-
},
|
|
98
|
+
}, Ss = (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" && ks(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 = dn(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 && Ss(r);
|
|
106
106
|
};
|
|
107
|
-
function
|
|
107
|
+
function ks(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, ...ks(o.childNodes, t, r)];
|
|
111
111
|
return a;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var dn = (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
|
-
},
|
|
119
|
-
},
|
|
118
|
+
}, Xr = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Qe = (e, t = "") => () => {
|
|
119
|
+
}, l = (e, t, ...r) => {
|
|
120
120
|
let s = null, a = null, o = null, n = !1, c = !1;
|
|
121
121
|
const u = [], h = (p) => {
|
|
122
122
|
for (let g = 0; g < p.length; g++)
|
|
123
|
-
s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !
|
|
123
|
+
s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !Jt(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? mt(null, s) : s), c = n);
|
|
124
124
|
};
|
|
125
125
|
if (h(r), t) {
|
|
126
126
|
t.key && (a = t.key), t.name && (o = t.name);
|
|
@@ -133,11 +133,11 @@ var hn = (e, t, r = !0) => {
|
|
|
133
133
|
return e(
|
|
134
134
|
t === null ? {} : t,
|
|
135
135
|
u,
|
|
136
|
-
|
|
136
|
+
mn
|
|
137
137
|
);
|
|
138
|
-
const
|
|
139
|
-
return
|
|
140
|
-
},
|
|
138
|
+
const i = mt(e, null);
|
|
139
|
+
return i.$attrs$ = t, u.length > 0 && (i.$children$ = u), i.$key$ = a, i.$name$ = o, i;
|
|
140
|
+
}, mt = (e, t) => {
|
|
141
141
|
const r = {
|
|
142
142
|
$flags$: 0,
|
|
143
143
|
$tag$: e,
|
|
@@ -146,57 +146,57 @@ var hn = (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
|
+
}, fn = {}, pn = (e) => e && e.$tag$ === fn, mn = {
|
|
150
|
+
forEach: (e, t) => e.map(Jr).forEach(t),
|
|
151
|
+
map: (e, t) => e.map(Jr).map(t).map(gn)
|
|
152
|
+
}, Jr = (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
|
+
}), gn = (e) => {
|
|
160
160
|
if (typeof e.vtag == "function") {
|
|
161
161
|
const r = { ...e.vattrs };
|
|
162
|
-
return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname),
|
|
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 = mt(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
|
+
}, ws = (e, t) => e != null && !Jt(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, vn = (e) => e, be = (e, t, r) => {
|
|
167
|
+
const s = vn(e);
|
|
168
168
|
return {
|
|
169
|
-
emit: (a) =>
|
|
169
|
+
emit: (a) => xs(s, t, {
|
|
170
170
|
bubbles: !0,
|
|
171
171
|
composed: !0,
|
|
172
172
|
cancelable: !0,
|
|
173
173
|
detail: a
|
|
174
174
|
})
|
|
175
175
|
};
|
|
176
|
-
},
|
|
176
|
+
}, xs = (e, t, r) => {
|
|
177
177
|
const s = ee.ce(t, r);
|
|
178
178
|
return e.dispatchEvent(s), s;
|
|
179
|
-
},
|
|
179
|
+
}, ht = /* @__PURE__ */ new WeakMap(), es = (e, t, r, s, a, o) => {
|
|
180
180
|
if (r !== s) {
|
|
181
|
-
let n =
|
|
181
|
+
let n = Zr(e, t), c = t.toLowerCase();
|
|
182
182
|
if (t === "class") {
|
|
183
|
-
const u = e.classList, h =
|
|
184
|
-
let
|
|
185
|
-
e["s-si"] ? (
|
|
186
|
-
p.startsWith(e["s-si"]) &&
|
|
187
|
-
}),
|
|
183
|
+
const u = e.classList, h = ts(r);
|
|
184
|
+
let i = ts(s);
|
|
185
|
+
e["s-si"] ? (i.push(e["s-si"]), h.forEach((p) => {
|
|
186
|
+
p.startsWith(e["s-si"]) && i.push(p);
|
|
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
189
|
for (const u in r)
|
|
190
190
|
(!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
|
|
191
191
|
for (const u in s)
|
|
192
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 u = t.endsWith(
|
|
196
|
-
t = t.replace(
|
|
194
|
+
if (t[2] === "-" ? t = t.slice(3) : Zr(Ct, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
|
|
195
|
+
const u = t.endsWith(Rs);
|
|
196
|
+
t = t.replace(yn, ""), r && ee.rel(e, t, r, u), s && ee.ael(e, t, s, u);
|
|
197
197
|
}
|
|
198
198
|
} else {
|
|
199
|
-
const u =
|
|
199
|
+
const u = Jt(s);
|
|
200
200
|
if ((n || u && s !== null) && !a)
|
|
201
201
|
try {
|
|
202
202
|
if (e.tagName.includes("-"))
|
|
@@ -210,14 +210,14 @@ var hn = (e, t, r = !0) => {
|
|
|
210
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
|
+
}, bn = /\s/, ts = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(bn) : []), Rs = "Capture", yn = new RegExp(Rs + "$"), Es = (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 rs(Object.keys(a)))
|
|
216
|
+
n in o || es(s, n, a[n], void 0, r, t.$flags$);
|
|
217
|
+
for (const n of rs(Object.keys(o)))
|
|
218
|
+
es(s, n, a[n], o[n], r, t.$flags$);
|
|
219
219
|
};
|
|
220
|
-
function
|
|
220
|
+
function rs(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 ts(e) {
|
|
|
226
226
|
e
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
|
-
var
|
|
229
|
+
var Qt, er, gt = !1, vt = !1, tr = !1, te = !1, bt = (e, t, r) => {
|
|
230
230
|
var s;
|
|
231
231
|
const a = t.$children$[r];
|
|
232
232
|
let o = 0, n, c, u;
|
|
233
|
-
if (
|
|
233
|
+
if (gt || (tr = !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 Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
245
245
|
n = a.$elm$ = Me.createTextNode("");
|
|
246
246
|
else {
|
|
247
247
|
if (te || (te = a.$tag$ === "svg"), n = a.$elm$ = Me.createElementNS(
|
|
248
|
-
te ?
|
|
249
|
-
!
|
|
250
|
-
), te && a.$tag$ === "foreignObject" && (te = !1),
|
|
248
|
+
te ? Xa : Ja,
|
|
249
|
+
!gt && Oe.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
|
|
250
|
+
), te && a.$tag$ === "foreignObject" && (te = !1), Es(null, a, te), a.$children$)
|
|
251
251
|
for (o = 0; o < a.$children$.length; ++o)
|
|
252
|
-
c =
|
|
252
|
+
c = bt(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"] = er, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Qt, 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$ && Ke(e.$elm$, !1)), n;
|
|
256
|
+
}, Ke = (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"] && Oe.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"] !== er && a["s-ol"] && (ye(Xe(a).parentNode, a, Xe(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, tr = !0), t && Ke(a, t);
|
|
263
263
|
}
|
|
264
264
|
ee.$flags$ &= -2;
|
|
265
|
-
},
|
|
265
|
+
}, Ts = (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 = bt(null, r, a), c && (s[a].$elm$ = c, ye(n, c, Xe(t))));
|
|
269
|
+
}, Ps = (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 && (vt = !0, o["s-ol"] ? o["s-ol"].remove() : Ke(o, !0), o.remove());
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
},
|
|
278
|
-
let o = 0, n = 0, c = 0, u = 0, h = t.length - 1,
|
|
277
|
+
}, Cn = (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, k = s[0], b = s[g], P, _;
|
|
279
279
|
for (; o <= h && n <= g; )
|
|
280
|
-
if (
|
|
281
|
-
|
|
280
|
+
if (i == null)
|
|
281
|
+
i = t[++o];
|
|
282
282
|
else if (p == null)
|
|
283
283
|
p = t[--h];
|
|
284
284
|
else if (k == null)
|
|
285
285
|
k = s[++n];
|
|
286
286
|
else if (b == null)
|
|
287
287
|
b = s[--g];
|
|
288
|
-
else if (
|
|
289
|
-
Ie(
|
|
290
|
-
else if (
|
|
288
|
+
else if (dt(i, k, a))
|
|
289
|
+
Ie(i, k, a), i = t[++o], k = s[++n];
|
|
290
|
+
else if (dt(p, b, a))
|
|
291
291
|
Ie(p, b, a), p = t[--h], b = s[--g];
|
|
292
|
-
else if (
|
|
293
|
-
(
|
|
294
|
-
else if (
|
|
295
|
-
(
|
|
292
|
+
else if (dt(i, b, a))
|
|
293
|
+
(i.$tag$ === "slot" || b.$tag$ === "slot") && Ke(i.$elm$.parentNode, !1), Ie(i, b, a), ye(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], b = s[--g];
|
|
294
|
+
else if (dt(p, k, a))
|
|
295
|
+
(i.$tag$ === "slot" || b.$tag$ === "slot") && Ke(p.$elm$.parentNode, !1), Ie(p, k, a), ye(e, p.$elm$, i.$elm$), p = t[--h], k = s[++n];
|
|
296
296
|
else {
|
|
297
297
|
for (c = -1, u = o; u <= h; ++u)
|
|
298
298
|
if (t[u] && t[u].$key$ !== null && t[u].$key$ === k.$key$) {
|
|
299
299
|
c = u;
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
|
-
c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P =
|
|
303
|
-
|
|
302
|
+
c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P = bt(t && t[n], r, c) : (Ie(_, k, a), t[c] = void 0, P = _.$elm$), k = s[++n]) : (P = bt(t && t[n], r, n), k = s[++n]), P && ye(
|
|
303
|
+
Xe(i.$elm$).parentNode,
|
|
304
304
|
P,
|
|
305
|
-
|
|
305
|
+
Xe(i.$elm$)
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
|
-
o > h ?
|
|
308
|
+
o > h ? Ts(
|
|
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 && Ps(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, Xe = (e) => e && e["s-ol"] || e, Ie = (e, t, r = !1) => {
|
|
317
317
|
const s = t.$elm$ = e.$elm$, a = e.$children$, o = t.$children$, n = t.$tag$, c = t.$text$;
|
|
318
318
|
let u;
|
|
319
|
-
c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !
|
|
319
|
+
c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !gt || Es(e, t, te), a !== null && o !== null ? Cn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), Ts(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 &&
|
|
321
|
+
!r && Oe.updatable && a !== null && Ps(a, 0, a.length - 1)
|
|
322
322
|
), te && n === "svg" && (te = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
|
|
323
|
-
}, de = [],
|
|
323
|
+
}, de = [], $s = (e) => {
|
|
324
324
|
let t, r, s;
|
|
325
325
|
const a = e.__childNodes || e.childNodes;
|
|
326
326
|
for (const o of a) {
|
|
@@ -329,39 +329,39 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
329
329
|
const n = o["s-sn"];
|
|
330
330
|
for (s = r.length - 1; s >= 0; s--)
|
|
331
331
|
if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
|
|
332
|
-
if (
|
|
332
|
+
if (Xr(t, n)) {
|
|
333
333
|
let c = de.find((u) => u.$nodeToRelocate$ === t);
|
|
334
|
-
|
|
334
|
+
vt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], de.push({
|
|
335
335
|
$slotRefNode$: o,
|
|
336
336
|
$nodeToRelocate$: t
|
|
337
337
|
})), t["s-sr"] && de.map((u) => {
|
|
338
|
-
|
|
338
|
+
Xr(u.$nodeToRelocate$, t["s-sn"]) && (c = de.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
|
|
339
339
|
});
|
|
340
340
|
} else de.some((c) => c.$nodeToRelocate$ === t) || de.push({
|
|
341
341
|
$nodeToRelocate$: t
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
|
-
o.nodeType === 1 &&
|
|
344
|
+
o.nodeType === 1 && $s(o);
|
|
345
345
|
}
|
|
346
|
-
}, ye = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r),
|
|
346
|
+
}, ye = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Sn = (e, t, r = !1) => {
|
|
347
347
|
var s, a, o, n;
|
|
348
|
-
const c = e.$hostElement$, u = e.$vnode$ ||
|
|
349
|
-
if (
|
|
350
|
-
for (const
|
|
351
|
-
c.hasAttribute(
|
|
352
|
-
h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c,
|
|
348
|
+
const c = e.$hostElement$, u = e.$vnode$ || mt(null, null), h = pn(t) ? t : l(null, null, t);
|
|
349
|
+
if (er = 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, gt = sn, Qt = c["s-cr"], vt = !1, Ie(u, h, r);
|
|
353
353
|
{
|
|
354
|
-
if (ee.$flags$ |= 1,
|
|
355
|
-
|
|
356
|
-
for (const
|
|
357
|
-
const p =
|
|
354
|
+
if (ee.$flags$ |= 1, tr) {
|
|
355
|
+
$s(h.$elm$);
|
|
356
|
+
for (const i of de) {
|
|
357
|
+
const p = i.$nodeToRelocate$;
|
|
358
358
|
if (!p["s-ol"]) {
|
|
359
359
|
const g = Me.createTextNode("");
|
|
360
360
|
g["s-nr"] = p, ye(p.parentNode, p["s-ol"] = g, p);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
for (const
|
|
364
|
-
const p =
|
|
363
|
+
for (const i of de) {
|
|
364
|
+
const p = i.$nodeToRelocate$, g = i.$slotRefNode$;
|
|
365
365
|
if (g) {
|
|
366
366
|
const k = g.parentNode;
|
|
367
367
|
let b = g.nextSibling;
|
|
@@ -386,10 +386,10 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (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
|
+
vt && Ss(h.$elm$), ee.$flags$ &= -2, de.length = 0;
|
|
390
390
|
}
|
|
391
|
-
|
|
392
|
-
},
|
|
391
|
+
Qt = void 0;
|
|
392
|
+
}, _s = (e, t) => {
|
|
393
393
|
if (t && !e.$onRenderResolve$ && t["s-p"]) {
|
|
394
394
|
const r = t["s-p"].push(
|
|
395
395
|
new Promise(
|
|
@@ -399,55 +399,55 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
399
399
|
)
|
|
400
400
|
);
|
|
401
401
|
}
|
|
402
|
-
},
|
|
402
|
+
}, rr = (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 _s(e, e.$ancestorComponent$), on(() => kn(e, t));
|
|
408
|
+
}, kn = (e, t) => {
|
|
409
|
+
const r = e.$hostElement$, s = Qe("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(), wn(o, () => Rn(e, a, t));
|
|
416
|
+
}, wn = (e, t) => xn(e) ? e.then(t).catch((r) => {
|
|
417
417
|
console.error(r), t();
|
|
418
|
-
}) : t(),
|
|
418
|
+
}) : t(), xn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Rn = async (e, t, r) => {
|
|
419
419
|
var s;
|
|
420
|
-
const a = e.$hostElement$, o =
|
|
421
|
-
|
|
420
|
+
const a = e.$hostElement$, o = Qe("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Qe("render", e.$cmpMeta$.$tagName$);
|
|
421
|
+
En(e, t, a, r), n && (n.map((u) => u()), a["s-rc"] = void 0), c(), o();
|
|
422
422
|
{
|
|
423
|
-
const u = (s = a["s-p"]) != null ? s : [], h = () =>
|
|
423
|
+
const u = (s = a["s-p"]) != null ? s : [], h = () => Tn(e);
|
|
424
424
|
u.length === 0 ? h() : (Promise.all(u).then(h), e.$flags$ |= 4, u.length = 0);
|
|
425
425
|
}
|
|
426
|
-
},
|
|
426
|
+
}, En = (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, Sn(e, t, s);
|
|
429
429
|
} catch (a) {
|
|
430
|
-
|
|
430
|
+
yt(a, e.$hostElement$);
|
|
431
431
|
}
|
|
432
432
|
return null;
|
|
433
|
-
}, En = (e) => {
|
|
434
|
-
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ze("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
435
|
-
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, _s(r), Pn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Tn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Kt(() => tr(e, !1)), e.$flags$ &= -517;
|
|
436
433
|
}, Tn = (e) => {
|
|
437
|
-
|
|
438
|
-
|
|
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, Is(r), $n(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Pn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Xt(() => rr(e, !1)), e.$flags$ &= -517;
|
|
436
|
+
}, Pn = (e) => {
|
|
437
|
+
Is(Me.documentElement), Xt(() => xs(Ct, "appload", { detail: { namespace: Za } }));
|
|
438
|
+
}, $n = (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
|
+
yt(a, s);
|
|
444
444
|
}
|
|
445
|
-
},
|
|
445
|
+
}, Is = (e) => {
|
|
446
446
|
var t;
|
|
447
|
-
return e.classList.add((t =
|
|
448
|
-
},
|
|
447
|
+
return e.classList.add((t = Oe.hydratedSelectorName) != null ? t : "hydrated");
|
|
448
|
+
}, _n = (e, t) => Ce(e).$instanceValues$.get(t), ss = (e, t, r, s) => {
|
|
449
449
|
const a = Ce(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, u = o;
|
|
450
|
-
r =
|
|
450
|
+
r = ws(r, s.$members$[t][0]);
|
|
451
451
|
const h = Number.isNaN(n) && Number.isNaN(r);
|
|
452
452
|
if (r !== n && !h) {
|
|
453
453
|
a.$instanceValues$.set(t, r);
|
|
@@ -458,14 +458,14 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
458
458
|
try {
|
|
459
459
|
u[g](r, n, t);
|
|
460
460
|
} catch (k) {
|
|
461
|
-
|
|
461
|
+
yt(k, o);
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
(c & 18) === 2 &&
|
|
465
|
+
(c & 18) === 2 && rr(a, !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
},
|
|
468
|
+
}, In = (e, t, r) => {
|
|
469
469
|
var s, a;
|
|
470
470
|
const o = e.prototype;
|
|
471
471
|
if (t.$members$ || t.$watchers$ || e.watchers) {
|
|
@@ -473,23 +473,23 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
473
473
|
const n = Object.entries((s = t.$members$) != null ? s : {});
|
|
474
474
|
n.map(([c, [u]]) => {
|
|
475
475
|
if (u & 31 || u & 32) {
|
|
476
|
-
const { get: h, set:
|
|
477
|
-
h && (t.$members$[c][0] |= 2048),
|
|
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 h ? h.apply(this) :
|
|
479
|
+
return h ? h.apply(this) : _n(this, c);
|
|
480
480
|
},
|
|
481
481
|
configurable: !0,
|
|
482
482
|
enumerable: !0
|
|
483
483
|
}), Object.defineProperty(o, c, {
|
|
484
484
|
set(p) {
|
|
485
485
|
const g = Ce(this);
|
|
486
|
-
if (
|
|
486
|
+
if (i) {
|
|
487
487
|
const k = u & 32 ? this[c] : g.$hostElement$[c];
|
|
488
|
-
typeof k > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && k && g.$instanceValues$.set(c, k),
|
|
488
|
+
typeof k > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && k && g.$instanceValues$.set(c, k), i.apply(this, [ws(p, u)]), p = u & 32 ? this[c] : g.$hostElement$[c], ss(this, c, p, t);
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
491
|
{
|
|
492
|
-
|
|
492
|
+
ss(this, c, p, t);
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
@@ -498,27 +498,27 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
498
498
|
});
|
|
499
499
|
{
|
|
500
500
|
const c = /* @__PURE__ */ new Map();
|
|
501
|
-
o.attributeChangedCallback = function(u, h,
|
|
501
|
+
o.attributeChangedCallback = function(u, h, i) {
|
|
502
502
|
ee.jmp(() => {
|
|
503
503
|
var p;
|
|
504
504
|
const g = c.get(u);
|
|
505
|
-
if (!(this.hasOwnProperty(g) &&
|
|
505
|
+
if (!(this.hasOwnProperty(g) && Oe.lazyLoad)) {
|
|
506
506
|
if (o.hasOwnProperty(g) && typeof this[g] == "number" && // cast type to number to avoid TS compiler issues
|
|
507
|
-
this[g] ==
|
|
507
|
+
this[g] == i)
|
|
508
508
|
return;
|
|
509
509
|
if (g == null) {
|
|
510
510
|
const b = Ce(this), P = b == null ? void 0 : b.$flags$;
|
|
511
|
-
if (P && !(P & 8) && P & 128 &&
|
|
511
|
+
if (P && !(P & 8) && P & 128 && i !== h) {
|
|
512
512
|
const H = this, I = (p = t.$watchers$) == null ? void 0 : p[u];
|
|
513
|
-
I == null || I.forEach((
|
|
514
|
-
H[
|
|
513
|
+
I == null || I.forEach((De) => {
|
|
514
|
+
H[De] != null && H[De].call(H, i, h, u);
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
return;
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
const k = Object.getOwnPropertyDescriptor(o, g);
|
|
521
|
-
|
|
521
|
+
i = i === null && typeof this[g] == "boolean" ? !1 : i, i !== this[g] && (!k.get || k.set) && (this[g] = i);
|
|
522
522
|
});
|
|
523
523
|
}, e.observedAttributes = Array.from(
|
|
524
524
|
/* @__PURE__ */ new Set([
|
|
@@ -527,15 +527,15 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
527
527
|
([u, h]) => h[0] & 15
|
|
528
528
|
/* HasAttribute */
|
|
529
529
|
).map(([u, h]) => {
|
|
530
|
-
const
|
|
531
|
-
return c.set(
|
|
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
|
+
}, An = async (e, t, r, s) => {
|
|
539
539
|
if (!(t.$flags$ & 32)) {
|
|
540
540
|
t.$flags$ |= 32;
|
|
541
541
|
{
|
|
@@ -546,22 +546,22 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
546
546
|
);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
const a = t.$ancestorComponent$, o = () =>
|
|
549
|
+
const a = t.$ancestorComponent$, o = () => rr(t, !0);
|
|
550
550
|
a && a["s-rc"] ? a["s-rc"].push(o) : o();
|
|
551
|
-
},
|
|
552
|
-
},
|
|
551
|
+
}, Mn = (e, t) => {
|
|
552
|
+
}, Ln = (e) => {
|
|
553
553
|
if (!(ee.$flags$ & 1)) {
|
|
554
|
-
const t = Ce(e), r = t.$cmpMeta$, s =
|
|
554
|
+
const t = Ce(e), r = t.$cmpMeta$, s = Qe("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(() => Mn());
|
|
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 && On(e);
|
|
560
560
|
{
|
|
561
561
|
let a = e;
|
|
562
562
|
for (; a = a.parentNode || a.host; )
|
|
563
563
|
if (a["s-p"]) {
|
|
564
|
-
|
|
564
|
+
_s(t, t.$ancestorComponent$ = a);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -570,17 +570,17 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
570
570
|
const n = e[a];
|
|
571
571
|
delete e[a], e[a] = n;
|
|
572
572
|
}
|
|
573
|
-
}),
|
|
573
|
+
}), An(e, t);
|
|
574
574
|
}
|
|
575
575
|
s();
|
|
576
576
|
}
|
|
577
|
-
},
|
|
577
|
+
}, On = (e) => {
|
|
578
578
|
const t = e["s-cr"] = Me.createComment(
|
|
579
579
|
""
|
|
580
580
|
);
|
|
581
581
|
t["s-cn"] = !0, ye(e, t, e.firstChild);
|
|
582
|
-
},
|
|
583
|
-
ee.$flags$ & 1 || Ce(e),
|
|
582
|
+
}, Fn = async (e) => {
|
|
583
|
+
ee.$flags$ & 1 || Ce(e), ht.has(e) && ht.delete(e), e.shadowRoot && ht.has(e.shadowRoot) && ht.delete(e.shadowRoot);
|
|
584
584
|
}, D = (e, t) => {
|
|
585
585
|
const r = {
|
|
586
586
|
$flags$: t[0],
|
|
@@ -591,24 +591,24 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
591
591
|
return Object.assign(e.prototype, {
|
|
592
592
|
__hasHostListenerAttached: !1,
|
|
593
593
|
__registerHost() {
|
|
594
|
-
|
|
594
|
+
rn(this, r);
|
|
595
595
|
},
|
|
596
596
|
connectedCallback() {
|
|
597
|
-
this.__hasHostListenerAttached || (Ce(this), this.__hasHostListenerAttached = !0),
|
|
597
|
+
this.__hasHostListenerAttached || (Ce(this), this.__hasHostListenerAttached = !0), Ln(this), s && s.call(this);
|
|
598
598
|
},
|
|
599
599
|
disconnectedCallback() {
|
|
600
|
-
|
|
600
|
+
Fn(this), a && a.call(this), ee.raf(() => {
|
|
601
601
|
var o;
|
|
602
602
|
const n = Ce(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 && tn(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$, In(e, r);
|
|
610
|
+
}, Dn = (e, t) => t, Hn = Object.defineProperty, Nn = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => Nn(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 Un {
|
|
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
|
}
|
|
@@ -649,21 +649,21 @@ function fe(e, t, r, s) {
|
|
|
649
649
|
function n(h) {
|
|
650
650
|
try {
|
|
651
651
|
u(s.next(h));
|
|
652
|
-
} catch (
|
|
653
|
-
o(
|
|
652
|
+
} catch (i) {
|
|
653
|
+
o(i);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
function c(h) {
|
|
657
657
|
try {
|
|
658
658
|
u(s.throw(h));
|
|
659
|
-
} catch (
|
|
660
|
-
o(
|
|
659
|
+
} catch (i) {
|
|
660
|
+
o(i);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
function u(h) {
|
|
664
|
-
var
|
|
665
|
-
h.done ? a(h.value) : (
|
|
666
|
-
p(
|
|
664
|
+
var i;
|
|
665
|
+
h.done ? a(h.value) : (i = h.value, i instanceof r ? i : new r(function(p) {
|
|
666
|
+
p(i);
|
|
667
667
|
})).then(n, c);
|
|
668
668
|
}
|
|
669
669
|
u((s = s.apply(e, [])).next());
|
|
@@ -679,148 +679,148 @@ function pe(e, t) {
|
|
|
679
679
|
}), o;
|
|
680
680
|
function c(u) {
|
|
681
681
|
return function(h) {
|
|
682
|
-
return function(
|
|
682
|
+
return function(i) {
|
|
683
683
|
if (r) throw new TypeError("Generator is already executing.");
|
|
684
|
-
for (; o && (o = 0,
|
|
685
|
-
if (r = 1, s && (a = 2 &
|
|
686
|
-
switch (s = 0, a && (
|
|
684
|
+
for (; o && (o = 0, i[0] && (n = 0)), n; ) try {
|
|
685
|
+
if (r = 1, s && (a = 2 & i[0] ? s.return : i[0] ? s.throw || ((a = s.return) && a.call(s), 0) : s.next) && !(a = a.call(s, i[1])).done) return a;
|
|
686
|
+
switch (s = 0, a && (i = [2 & i[0], a.value]), i[0]) {
|
|
687
687
|
case 0:
|
|
688
688
|
case 1:
|
|
689
|
-
a =
|
|
689
|
+
a = i;
|
|
690
690
|
break;
|
|
691
691
|
case 4:
|
|
692
|
-
return n.label++, { value:
|
|
692
|
+
return n.label++, { value: i[1], done: !1 };
|
|
693
693
|
case 5:
|
|
694
|
-
n.label++, s =
|
|
694
|
+
n.label++, s = i[1], i = [0];
|
|
695
695
|
continue;
|
|
696
696
|
case 7:
|
|
697
|
-
|
|
697
|
+
i = n.ops.pop(), n.trys.pop();
|
|
698
698
|
continue;
|
|
699
699
|
default:
|
|
700
|
-
if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) ||
|
|
700
|
+
if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) || i[0] !== 6 && i[0] !== 2)) {
|
|
701
701
|
n = 0;
|
|
702
702
|
continue;
|
|
703
703
|
}
|
|
704
|
-
if (
|
|
705
|
-
n.label =
|
|
704
|
+
if (i[0] === 3 && (!a || i[1] > a[0] && i[1] < a[3])) {
|
|
705
|
+
n.label = i[1];
|
|
706
706
|
break;
|
|
707
707
|
}
|
|
708
|
-
if (
|
|
709
|
-
n.label = a[1], a =
|
|
708
|
+
if (i[0] === 6 && n.label < a[1]) {
|
|
709
|
+
n.label = a[1], a = i;
|
|
710
710
|
break;
|
|
711
711
|
}
|
|
712
712
|
if (a && n.label < a[2]) {
|
|
713
|
-
n.label = a[2], n.ops.push(
|
|
713
|
+
n.label = a[2], n.ops.push(i);
|
|
714
714
|
break;
|
|
715
715
|
}
|
|
716
716
|
a[2] && n.ops.pop(), n.trys.pop();
|
|
717
717
|
continue;
|
|
718
718
|
}
|
|
719
|
-
|
|
719
|
+
i = t.call(e, n);
|
|
720
720
|
} catch (p) {
|
|
721
|
-
|
|
721
|
+
i = [6, p], s = 0;
|
|
722
722
|
} finally {
|
|
723
723
|
r = a = 0;
|
|
724
724
|
}
|
|
725
|
-
if (5 &
|
|
726
|
-
return { value:
|
|
725
|
+
if (5 & i[0]) throw i[1];
|
|
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: [] }, As = {}, zn = { timeout: "true" }, ne = function(e, t) {
|
|
732
|
+
typeof window < "u" && (As[e] = t);
|
|
733
|
+
}, jn = function() {
|
|
734
|
+
return Object.fromEntries(Object.entries(As).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 ft(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 sr(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
753
|
for (var c = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * c), h = 0; h < c; h++) {
|
|
754
|
-
var
|
|
755
|
-
|
|
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, u = o.byteLength % 16, h = new Uint32Array(4),
|
|
758
|
+
var c = o.byteLength / 16 | 0, u = o.byteLength % 16, h = new Uint32Array(4), i = new Uint8Array(o, 16 * c, u);
|
|
759
759
|
switch (u) {
|
|
760
760
|
case 15:
|
|
761
|
-
h[3] = h[3] ^
|
|
761
|
+
h[3] = h[3] ^ i[14] << 16;
|
|
762
762
|
case 14:
|
|
763
|
-
h[3] = h[3] ^
|
|
763
|
+
h[3] = h[3] ^ i[13] << 8;
|
|
764
764
|
case 13:
|
|
765
|
-
h[3] = h[3] ^
|
|
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
|
-
h[2] = h[2] ^
|
|
767
|
+
h[2] = h[2] ^ i[11] << 24;
|
|
768
768
|
case 11:
|
|
769
|
-
h[2] = h[2] ^
|
|
769
|
+
h[2] = h[2] ^ i[10] << 16;
|
|
770
770
|
case 10:
|
|
771
|
-
h[2] = h[2] ^
|
|
771
|
+
h[2] = h[2] ^ i[9] << 8;
|
|
772
772
|
case 9:
|
|
773
|
-
h[2] = h[2] ^
|
|
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
|
-
h[1] = h[1] ^
|
|
775
|
+
h[1] = h[1] ^ i[7] << 24;
|
|
776
776
|
case 7:
|
|
777
|
-
h[1] = h[1] ^
|
|
777
|
+
h[1] = h[1] ^ i[6] << 16;
|
|
778
778
|
case 6:
|
|
779
|
-
h[1] = h[1] ^
|
|
779
|
+
h[1] = h[1] ^ i[5] << 8;
|
|
780
780
|
case 5:
|
|
781
|
-
h[1] = h[1] ^
|
|
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
|
-
h[0] = h[0] ^
|
|
783
|
+
h[0] = h[0] ^ i[3] << 24;
|
|
784
784
|
case 3:
|
|
785
|
-
h[0] = h[0] ^
|
|
785
|
+
h[0] = h[0] ^ i[2] << 16;
|
|
786
786
|
case 2:
|
|
787
|
-
h[0] = h[0] ^
|
|
787
|
+
h[0] = h[0] ^ i[1] << 8;
|
|
788
788
|
case 1:
|
|
789
|
-
h[0] = h[0] ^
|
|
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] = ft(n[0]), n[1] = ft(n[1]), n[2] = ft(n[2]), n[3] = ft(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 Vn(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 Bn(e, t, r) {
|
|
807
807
|
return Promise.all(e.map(function(s) {
|
|
808
|
-
return Promise.race([s,
|
|
808
|
+
return Promise.race([s, Vn(t, r)]);
|
|
809
809
|
}));
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Wn() {
|
|
812
812
|
return fe(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 = jn(), t = Object.keys(e), [4, Bn(Object.values(e), (me == null ? void 0 : me.timeout) || 1e3, zn)];
|
|
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, Ms(a, me.exclude || [])];
|
|
824
824
|
case 2:
|
|
825
825
|
throw o.sent();
|
|
826
826
|
case 3:
|
|
@@ -829,13 +829,13 @@ function Bn() {
|
|
|
829
829
|
});
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Ms(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 =
|
|
838
|
+
var c = Ms(n, t.map(function(u) {
|
|
839
839
|
return u.startsWith(o + ".") ? u.slice(o.length + 1) : u;
|
|
840
840
|
}));
|
|
841
841
|
Object.keys(c).length > 0 && (r[o] = c);
|
|
@@ -845,15 +845,15 @@ function As(e, t) {
|
|
|
845
845
|
for (var a in e) s(a);
|
|
846
846
|
return r;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Gn(e) {
|
|
849
849
|
return fe(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, Wn()];
|
|
855
855
|
case 1:
|
|
856
|
-
return t = s.sent(), r =
|
|
856
|
+
return t = s.sent(), r = sr(JSON.stringify(t)), [2, r.toString()];
|
|
857
857
|
case 2:
|
|
858
858
|
throw s.sent();
|
|
859
859
|
case 3:
|
|
@@ -862,19 +862,19 @@ function Wn(e) {
|
|
|
862
862
|
});
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function qn(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 Ls(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(Yn(o));
|
|
873
873
|
}
|
|
874
874
|
var c = new Uint8ClampedArray(s);
|
|
875
875
|
return new ImageData(c, t, r);
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Yn(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 qn(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 Je() {
|
|
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);
|
|
@@ -899,7 +899,7 @@ ne("audio", function() {
|
|
|
899
899
|
o.frequency.value = 1e3;
|
|
900
900
|
var n, c = s.createDynamicsCompressor();
|
|
901
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:
|
|
902
|
+
n = u.renderedBuffer.getChannelData(0), t({ sampleHash: qn(n), oscillator: o.type, maxChannels: s.destination.maxChannelCount, channelCountMode: a.channelCountMode });
|
|
903
903
|
}, s.startRendering();
|
|
904
904
|
} catch (u) {
|
|
905
905
|
console.error("Error creating audio fingerprint:", u), r(u);
|
|
@@ -908,14 +908,14 @@ ne("audio", function() {
|
|
|
908
908
|
});
|
|
909
909
|
});
|
|
910
910
|
});
|
|
911
|
-
var
|
|
912
|
-
|
|
911
|
+
var Zn = Je().name !== "SamsungBrowser" ? 1 : 3, as = 280, ns = 20;
|
|
912
|
+
Je().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: Zn }, 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 = as, r.height = ns;
|
|
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,15 +924,15 @@ Xe().name != "Firefox" && ne("canvas", function() {
|
|
|
924
924
|
return n;
|
|
925
925
|
}();
|
|
926
926
|
});
|
|
927
|
-
e({ commonImageDataHash:
|
|
927
|
+
e({ commonImageDataHash: sr(Ls(t, as, ns).data.toString()).toString() });
|
|
928
928
|
});
|
|
929
929
|
});
|
|
930
|
-
var Bt,
|
|
931
|
-
function
|
|
930
|
+
var Bt, Qn = ["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"], Kn = ["monospace", "sans-serif", "serif"];
|
|
931
|
+
function os(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 Xn() {
|
|
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() };
|
|
@@ -948,19 +948,19 @@ function Kn() {
|
|
|
948
948
|
}
|
|
949
949
|
return "undefined";
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Jn() {
|
|
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 eo(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
961
|
o.forEach(function(h) {
|
|
962
|
-
var
|
|
963
|
-
n[
|
|
962
|
+
var i = String(h);
|
|
963
|
+
n[i] = (n[i] || 0) + 1;
|
|
964
964
|
});
|
|
965
965
|
var c = o[0], u = 1;
|
|
966
966
|
return Object.keys(n).forEach(function(h) {
|
|
@@ -974,7 +974,7 @@ function Jn(e, t) {
|
|
|
974
974
|
a && (r[s] = a);
|
|
975
975
|
}), r;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function to() {
|
|
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 eo() {
|
|
|
982
982
|
});
|
|
983
983
|
}), e;
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function ro() {
|
|
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 to() {
|
|
|
990
990
|
}
|
|
991
991
|
return 0;
|
|
992
992
|
}
|
|
993
|
-
|
|
993
|
+
Je().name != "Firefox" && ne("fonts", function() {
|
|
994
994
|
var e = this;
|
|
995
995
|
return new Promise(function(t, r) {
|
|
996
996
|
try {
|
|
@@ -1002,7 +1002,7 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1002
1002
|
switch (u.label) {
|
|
1003
1003
|
case 0:
|
|
1004
1004
|
return document.body ? [3, 2] : [4, (h = 50, new Promise(function(p) {
|
|
1005
|
-
return setTimeout(p, h,
|
|
1005
|
+
return setTimeout(p, h, i);
|
|
1006
1006
|
}))];
|
|
1007
1007
|
case 1:
|
|
1008
1008
|
return u.sent(), [3, 0];
|
|
@@ -1012,7 +1012,7 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1012
1012
|
document.body.removeChild(o);
|
|
1013
1013
|
}, 0), [2];
|
|
1014
1014
|
}
|
|
1015
|
-
var h,
|
|
1015
|
+
var h, i;
|
|
1016
1016
|
});
|
|
1017
1017
|
});
|
|
1018
1018
|
})(function(s) {
|
|
@@ -1020,11 +1020,11 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1020
1020
|
return fe(e, void 0, void 0, function() {
|
|
1021
1021
|
var o, n, c, u;
|
|
1022
1022
|
return pe(this, function(h) {
|
|
1023
|
-
return o = a.createElement("canvas"), n = o.getContext("2d"), c =
|
|
1024
|
-
return
|
|
1025
|
-
}), u = {},
|
|
1026
|
-
var p =
|
|
1027
|
-
c.includes(p) || (u[
|
|
1023
|
+
return o = a.createElement("canvas"), n = o.getContext("2d"), c = Kn.map(function(i) {
|
|
1024
|
+
return os(n, i);
|
|
1025
|
+
}), u = {}, Qn.forEach(function(i) {
|
|
1026
|
+
var p = os(n, i);
|
|
1027
|
+
c.includes(p) || (u[i] = p);
|
|
1028
1028
|
}), t(u), [2];
|
|
1029
1029
|
});
|
|
1030
1030
|
});
|
|
@@ -1036,7 +1036,7 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1036
1036
|
}), ne("hardware", function() {
|
|
1037
1037
|
return new Promise(function(e, t) {
|
|
1038
1038
|
var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
1039
|
-
e({ videocard:
|
|
1039
|
+
e({ videocard: Xn(), architecture: Jn(), 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 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1072
1072
|
});
|
|
1073
1073
|
}();
|
|
1074
1074
|
}), [2, Promise.all(e).then(function(r) {
|
|
1075
|
-
return
|
|
1075
|
+
return eo(r, Bt);
|
|
1076
1076
|
})];
|
|
1077
1077
|
});
|
|
1078
1078
|
});
|
|
@@ -1087,15 +1087,15 @@ Xe().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: to() });
|
|
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 = Je();
|
|
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: ro() });
|
|
1096
1096
|
});
|
|
1097
1097
|
});
|
|
1098
|
-
var K,
|
|
1098
|
+
var K, so = Je().name !== "SamsungBrowser" ? 1 : 3, S = null;
|
|
1099
1099
|
ne("webgl", function() {
|
|
1100
1100
|
return fe(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, S = K.getContext("webgl"));
|
|
1104
1104
|
try {
|
|
1105
1105
|
if (!S) throw new Error("WebGL not supported");
|
|
1106
|
-
return e = Array.from({ length:
|
|
1106
|
+
return e = Array.from({ length: so }, function() {
|
|
1107
1107
|
return function() {
|
|
1108
1108
|
try {
|
|
1109
1109
|
if (!S) throw new Error("WebGL not supported");
|
|
@@ -1125,9 +1125,9 @@ ne("webgl", function() {
|
|
|
1125
1125
|
if (!n) throw new Error("Failed to create shader program");
|
|
1126
1126
|
if (S.attachShader(n, a), S.attachShader(n, o), S.linkProgram(n), !S.getProgramParameter(n, S.LINK_STATUS)) throw new Error("Shader program linking failed: " + S.getProgramInfoLog(n));
|
|
1127
1127
|
S.useProgram(n);
|
|
1128
|
-
for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c,
|
|
1129
|
-
var p =
|
|
1130
|
-
u[4 *
|
|
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 = S.createBuffer();
|
|
1133
1133
|
S.bindBuffer(S.ARRAY_BUFFER, g), S.bufferData(S.ARRAY_BUFFER, u, S.STATIC_DRAW);
|
|
@@ -1141,7 +1141,7 @@ ne("webgl", function() {
|
|
|
1141
1141
|
S && (S.bindBuffer(S.ARRAY_BUFFER, null), S.useProgram(null), S.viewport(0, 0, S.drawingBufferWidth, S.drawingBufferHeight), S.clearColor(0, 0, 0, 0));
|
|
1142
1142
|
}
|
|
1143
1143
|
}();
|
|
1144
|
-
}), [2, { commonImageHash:
|
|
1144
|
+
}), [2, { commonImageHash: sr(Ls(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 ao = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1165
|
+
let Le = (e = 21) => {
|
|
1166
1166
|
let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
1167
1167
|
for (; e--; )
|
|
1168
|
-
t +=
|
|
1168
|
+
t += ao[r[e] & 63];
|
|
1169
1169
|
return t;
|
|
1170
1170
|
};
|
|
1171
|
-
class
|
|
1171
|
+
class ar {
|
|
1172
1172
|
constructor(t) {
|
|
1173
1173
|
A(this, "config"), this.config = t;
|
|
1174
1174
|
}
|
|
@@ -1186,7 +1186,7 @@ class sr {
|
|
|
1186
1186
|
async onAdContainerViewed(t) {
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
class
|
|
1189
|
+
class no extends ar {
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Gets ads from the adMarketplace API based on the search term.
|
|
1192
1192
|
*/
|
|
@@ -1203,13 +1203,13 @@ class ao extends sr {
|
|
|
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: Le(),
|
|
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: Le(),
|
|
1213
1213
|
adSource: "adMarketplace",
|
|
1214
1214
|
admAdType: "adm-text-ad",
|
|
1215
1215
|
admAd: n
|
|
@@ -1222,13 +1222,13 @@ class ao extends sr {
|
|
|
1222
1222
|
(r = s.admAd) != null && r.impression_url && fetch(s.admAd.impression_url);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
class
|
|
1225
|
+
class oo extends ar {
|
|
1226
1226
|
async getAds(t) {
|
|
1227
1227
|
return [];
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
const
|
|
1231
|
-
class
|
|
1230
|
+
const co = 1e3;
|
|
1231
|
+
class io extends ar {
|
|
1232
1232
|
constructor(t) {
|
|
1233
1233
|
super(t), A(this, "adCallTimeout"), this.addScriptTagToDocument();
|
|
1234
1234
|
}
|
|
@@ -1241,7 +1241,7 @@ class co extends sr {
|
|
|
1241
1241
|
this.removeScriptTagFromDocument();
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
|
-
this.performAdCall(
|
|
1244
|
+
this.performAdCall(co);
|
|
1245
1245
|
}
|
|
1246
1246
|
async onInputCleared() {
|
|
1247
1247
|
this.removeScriptTagFromDocument();
|
|
@@ -1270,8 +1270,8 @@ class co extends sr {
|
|
|
1270
1270
|
t && document.head.removeChild(t);
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
const
|
|
1274
|
-
class
|
|
1273
|
+
const lo = 600;
|
|
1274
|
+
class uo {
|
|
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 = {
|
|
@@ -1289,47 +1289,49 @@ class lo {
|
|
|
1289
1289
|
if (a === "document_clicked") {
|
|
1290
1290
|
const u = JSON.stringify(c), h = `${this.baseMeasureUrl}/event`;
|
|
1291
1291
|
try {
|
|
1292
|
-
const
|
|
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
1300
|
body: u,
|
|
1300
1301
|
keepalive: !0
|
|
1301
1302
|
});
|
|
1302
|
-
if (!
|
|
1303
|
+
if (!i.ok)
|
|
1303
1304
|
throw new Error(
|
|
1304
|
-
`Failed to send request: ${
|
|
1305
|
+
`Failed to send request: ${i.status} ${i.statusText}`
|
|
1305
1306
|
);
|
|
1306
|
-
} catch (
|
|
1307
|
-
throw console.error("Error sending MeasureRequest:",
|
|
1307
|
+
} catch (i) {
|
|
1308
|
+
throw console.error("Error sending MeasureRequest:", i), i;
|
|
1308
1309
|
}
|
|
1309
1310
|
} else
|
|
1310
1311
|
this.measureRequestsBatched.push(c), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
|
|
1311
1312
|
const u = JSON.stringify({ items: this.measureRequestsBatched }), h = `${this.baseMeasureUrl}/batch`;
|
|
1312
1313
|
try {
|
|
1313
|
-
const
|
|
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
1322
|
body: u,
|
|
1321
1323
|
keepalive: !0
|
|
1322
1324
|
});
|
|
1323
|
-
if (this.measureRequestsBatched = [], !
|
|
1325
|
+
if (this.measureRequestsBatched = [], !i.ok)
|
|
1324
1326
|
throw new Error(
|
|
1325
|
-
`Failed to send request: ${
|
|
1327
|
+
`Failed to send request: ${i.status} ${i.statusText}`
|
|
1326
1328
|
);
|
|
1327
1329
|
return;
|
|
1328
|
-
} catch (
|
|
1329
|
-
throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:",
|
|
1330
|
+
} catch (i) {
|
|
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
|
+
}, lo);
|
|
1334
|
+
}), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = Le(), 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 lo {
|
|
|
1352
1354
|
};
|
|
1353
1355
|
}
|
|
1354
1356
|
}
|
|
1355
|
-
const
|
|
1357
|
+
const ho = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Wt = (e) => {
|
|
1356
1358
|
let t = "";
|
|
1357
1359
|
if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
|
|
1358
1360
|
"‘": "'",
|
|
@@ -1369,7 +1371,7 @@ class po {
|
|
|
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
1373
|
var o, n, c, u, h;
|
|
1372
|
-
let
|
|
1374
|
+
let i;
|
|
1373
1375
|
const p = typeof a == "string" ? a : a.searchTerm;
|
|
1374
1376
|
try {
|
|
1375
1377
|
return (o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
|
|
@@ -1381,81 +1383,85 @@ class po {
|
|
|
1381
1383
|
}
|
|
1382
1384
|
}), (n = this.parent.adClient) == null || n.onQuerySubmitted(
|
|
1383
1385
|
typeof a == "string" ? { searchTerm: p, mode: "exact" } : a
|
|
1384
|
-
), typeof a == "string" ?
|
|
1386
|
+
), typeof a == "string" ? i = await this.handleGetSearchResponseItemsWithString(a) : i = await this.handleGetSearchResponseItemsWithObject(a), (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
|
|
1385
1387
|
search_term: p,
|
|
1386
|
-
number_of_documents:
|
|
1388
|
+
number_of_documents: i.data.count
|
|
1387
1389
|
}), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
|
|
1388
1390
|
var g;
|
|
1389
1391
|
(g = this.parent.measureClient) == null || g.sendMeasureEvent("search_completed", {
|
|
1390
1392
|
search_term: p,
|
|
1391
|
-
number_of_documents:
|
|
1393
|
+
number_of_documents: i.data.count
|
|
1392
1394
|
});
|
|
1393
1395
|
}, fo), this.parent.emitEvent("query_fetched", {
|
|
1394
1396
|
name: "query_fetched",
|
|
1395
1397
|
data: {
|
|
1396
1398
|
searchTerm: p
|
|
1397
1399
|
}
|
|
1398
|
-
}), (((u =
|
|
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
|
-
|
|
1403
|
-
),
|
|
1404
|
+
i
|
|
1405
|
+
), i;
|
|
1404
1406
|
} catch (g) {
|
|
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) || Le()
|
|
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) || Le()
|
|
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 po {
|
|
|
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: Wt(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: Wt(c.value)
|
|
1492
1497
|
}
|
|
1493
|
-
})
|
|
1498
|
+
});
|
|
1494
1499
|
});
|
|
1495
|
-
const a = t.mode === "fuzzy" ? { fuzzy: { ctx:
|
|
1500
|
+
const s = Wt(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 mo {
|
|
|
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
|
|
1509
|
-
const
|
|
1510
|
-
if (!
|
|
1517
|
+
var c;
|
|
1518
|
+
const u = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
|
|
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: Le(),
|
|
1523
|
+
document: i.doc || { id: -1 },
|
|
1524
|
+
source_index: i.source_index,
|
|
1525
|
+
type: "SearchDocument"
|
|
1516
1526
|
}));
|
|
1517
|
-
a(
|
|
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 mo {
|
|
|
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: ho(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 mo {
|
|
|
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 Gn()), this.measureClient = new uo(t, r, s), this.searchClient = new po(this, t, s), t.adSource) {
|
|
1566
1576
|
case "adMarketplace":
|
|
1567
|
-
this.adClient = new
|
|
1577
|
+
this.adClient = new no(t);
|
|
1568
1578
|
break;
|
|
1569
1579
|
case "Nativo":
|
|
1570
|
-
this.adClient = new
|
|
1580
|
+
this.adClient = new io(t);
|
|
1571
1581
|
break;
|
|
1572
1582
|
case "Custom":
|
|
1573
|
-
this.adClient = new
|
|
1583
|
+
this.adClient = new oo(t);
|
|
1574
1584
|
break;
|
|
1575
1585
|
}
|
|
1576
1586
|
this.emitEvent("initialized", {
|
|
@@ -1629,20 +1639,20 @@ class mo {
|
|
|
1629
1639
|
}), (t = this.adClient) == null || t.onInputCleared();
|
|
1630
1640
|
}
|
|
1631
1641
|
}
|
|
1632
|
-
var
|
|
1633
|
-
const
|
|
1642
|
+
var Os = {}, nr = {};
|
|
1643
|
+
const cs = (e) => {
|
|
1634
1644
|
let t;
|
|
1635
|
-
const r = /* @__PURE__ */ new Set(), s = (h,
|
|
1645
|
+
const r = /* @__PURE__ */ new Set(), s = (h, i) => {
|
|
1636
1646
|
const p = typeof h == "function" ? h(t) : h;
|
|
1637
1647
|
if (!Object.is(p, t)) {
|
|
1638
1648
|
const g = t;
|
|
1639
|
-
t =
|
|
1649
|
+
t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((k) => k(t, g));
|
|
1640
1650
|
}
|
|
1641
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
|
-
}, go = (e) => e ?
|
|
1644
|
-
|
|
1645
|
-
var
|
|
1653
|
+
}, go = (e) => e ? cs(e) : cs;
|
|
1654
|
+
nr.createStore = go;
|
|
1655
|
+
var or = {}, Fs = { exports: {} }, w = {};
|
|
1646
1656
|
/**
|
|
1647
1657
|
* @license React
|
|
1648
1658
|
* react.production.js
|
|
@@ -1652,11 +1662,11 @@ var nr = {}, Os = { 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 cr = Symbol.for("react.transitional.element"), vo = Symbol.for("react.portal"), bo = Symbol.for("react.fragment"), yo = Symbol.for("react.strict_mode"), Co = Symbol.for("react.profiler"), So = Symbol.for("react.consumer"), ko = Symbol.for("react.context"), wo = Symbol.for("react.forward_ref"), xo = Symbol.for("react.suspense"), Ro = Symbol.for("react.memo"), Ds = Symbol.for("react.lazy"), is = Symbol.iterator;
|
|
1656
1666
|
function Eo(e) {
|
|
1657
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
1667
|
+
return e === null || typeof e != "object" ? null : (e = is && e[is] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1658
1668
|
}
|
|
1659
|
-
var
|
|
1669
|
+
var Hs = {
|
|
1660
1670
|
isMounted: function() {
|
|
1661
1671
|
return !1;
|
|
1662
1672
|
},
|
|
@@ -1666,35 +1676,35 @@ var Ds = {
|
|
|
1666
1676
|
},
|
|
1667
1677
|
enqueueSetState: function() {
|
|
1668
1678
|
}
|
|
1669
|
-
},
|
|
1670
|
-
function
|
|
1671
|
-
this.props = e, this.context = t, this.refs =
|
|
1679
|
+
}, Ns = Object.assign, Us = {};
|
|
1680
|
+
function Fe(e, t, r) {
|
|
1681
|
+
this.props = e, this.context = t, this.refs = Us, this.updater = r || Hs;
|
|
1672
1682
|
}
|
|
1673
|
-
|
|
1674
|
-
|
|
1683
|
+
Fe.prototype.isReactComponent = {};
|
|
1684
|
+
Fe.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
|
+
Fe.prototype.forceUpdate = function(e) {
|
|
1682
1692
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1683
1693
|
};
|
|
1684
|
-
function
|
|
1694
|
+
function zs() {
|
|
1685
1695
|
}
|
|
1686
|
-
|
|
1687
|
-
function
|
|
1688
|
-
this.props = e, this.context = t, this.refs =
|
|
1696
|
+
zs.prototype = Fe.prototype;
|
|
1697
|
+
function ir(e, t, r) {
|
|
1698
|
+
this.props = e, this.context = t, this.refs = Us, this.updater = r || Hs;
|
|
1689
1699
|
}
|
|
1690
|
-
var
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
var
|
|
1695
|
-
function
|
|
1700
|
+
var lr = ir.prototype = new zs();
|
|
1701
|
+
lr.constructor = ir;
|
|
1702
|
+
Ns(lr, Fe.prototype);
|
|
1703
|
+
lr.isPureReactComponent = !0;
|
|
1704
|
+
var ls = Array.isArray, L = { H: null, A: null, T: null, S: null }, js = Object.prototype.hasOwnProperty;
|
|
1705
|
+
function ur(e, t, r, s, a, o) {
|
|
1696
1706
|
return r = o.ref, {
|
|
1697
|
-
$$typeof:
|
|
1707
|
+
$$typeof: cr,
|
|
1698
1708
|
type: e,
|
|
1699
1709
|
key: t,
|
|
1700
1710
|
ref: r !== void 0 ? r : null,
|
|
@@ -1702,7 +1712,7 @@ function lr(e, t, r, s, a, o) {
|
|
|
1702
1712
|
};
|
|
1703
1713
|
}
|
|
1704
1714
|
function To(e, t) {
|
|
1705
|
-
return
|
|
1715
|
+
return ur(
|
|
1706
1716
|
e.type,
|
|
1707
1717
|
t,
|
|
1708
1718
|
void 0,
|
|
@@ -1711,8 +1721,8 @@ function To(e, t) {
|
|
|
1711
1721
|
e.props
|
|
1712
1722
|
);
|
|
1713
1723
|
}
|
|
1714
|
-
function
|
|
1715
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
1724
|
+
function hr(e) {
|
|
1725
|
+
return typeof e == "object" && e !== null && e.$$typeof === cr;
|
|
1716
1726
|
}
|
|
1717
1727
|
function Po(e) {
|
|
1718
1728
|
var t = { "=": "=0", ":": "=2" };
|
|
@@ -1720,11 +1730,11 @@ function Po(e) {
|
|
|
1720
1730
|
return t[r];
|
|
1721
1731
|
});
|
|
1722
1732
|
}
|
|
1723
|
-
var
|
|
1724
|
-
function
|
|
1733
|
+
var us = /\/+/g;
|
|
1734
|
+
function Gt(e, t) {
|
|
1725
1735
|
return typeof e == "object" && e !== null && e.key != null ? Po("" + e.key) : t.toString(36);
|
|
1726
1736
|
}
|
|
1727
|
-
function
|
|
1737
|
+
function hs() {
|
|
1728
1738
|
}
|
|
1729
1739
|
function $o(e) {
|
|
1730
1740
|
switch (e.status) {
|
|
@@ -1733,7 +1743,7 @@ function $o(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(hs, hs) : (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 Ae(e, t, r, s, a) {
|
|
|
1763
1773
|
break;
|
|
1764
1774
|
case "object":
|
|
1765
1775
|
switch (e.$$typeof) {
|
|
1766
|
-
case
|
|
1776
|
+
case cr:
|
|
1767
1777
|
case vo:
|
|
1768
1778
|
n = !0;
|
|
1769
1779
|
break;
|
|
1770
|
-
case
|
|
1780
|
+
case Ds:
|
|
1771
1781
|
return n = e._init, Ae(
|
|
1772
1782
|
n(e._payload),
|
|
1773
1783
|
t,
|
|
@@ -1778,20 +1788,20 @@ function Ae(e, t, r, s, a) {
|
|
|
1778
1788
|
}
|
|
1779
1789
|
}
|
|
1780
1790
|
if (n)
|
|
1781
|
-
return a = a(e), n = s === "" ? "." +
|
|
1791
|
+
return a = a(e), n = s === "" ? "." + Gt(e, 0) : s, ls(a) ? (r = "", n != null && (r = n.replace(us, "$&/") + "/"), Ae(a, t, r, "", function(h) {
|
|
1782
1792
|
return h;
|
|
1783
|
-
})) : a != null && (
|
|
1793
|
+
})) : a != null && (hr(a) && (a = To(
|
|
1784
1794
|
a,
|
|
1785
1795
|
r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
|
|
1786
|
-
|
|
1796
|
+
us,
|
|
1787
1797
|
"$&/"
|
|
1788
1798
|
) + "/") + n
|
|
1789
1799
|
)), t.push(a)), 1;
|
|
1790
1800
|
n = 0;
|
|
1791
1801
|
var c = s === "" ? "." : s + ":";
|
|
1792
|
-
if (
|
|
1802
|
+
if (ls(e))
|
|
1793
1803
|
for (var u = 0; u < e.length; u++)
|
|
1794
|
-
s = e[u], o = c +
|
|
1804
|
+
s = e[u], o = c + Gt(s, u), n += Ae(
|
|
1795
1805
|
s,
|
|
1796
1806
|
t,
|
|
1797
1807
|
r,
|
|
@@ -1800,7 +1810,7 @@ function Ae(e, t, r, s, a) {
|
|
|
1800
1810
|
);
|
|
1801
1811
|
else if (u = Eo(e), typeof u == "function")
|
|
1802
1812
|
for (e = u.call(e), u = 0; !(s = e.next()).done; )
|
|
1803
|
-
s = s.value, o = c +
|
|
1813
|
+
s = s.value, o = c + Gt(s, u++), n += Ae(
|
|
1804
1814
|
s,
|
|
1805
1815
|
t,
|
|
1806
1816
|
r,
|
|
@@ -1822,7 +1832,7 @@ function Ae(e, t, r, s, a) {
|
|
|
1822
1832
|
}
|
|
1823
1833
|
return n;
|
|
1824
1834
|
}
|
|
1825
|
-
function
|
|
1835
|
+
function pt(e, t, r) {
|
|
1826
1836
|
if (e == null) return e;
|
|
1827
1837
|
var s = [], a = 0;
|
|
1828
1838
|
return Ae(e, s, "", "", function(o) {
|
|
@@ -1844,7 +1854,7 @@ function _o(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 hs = typeof reportError == "function" ? reportError : function(e) {
|
|
|
1862
1872
|
function Io() {
|
|
1863
1873
|
}
|
|
1864
1874
|
w.Children = {
|
|
1865
|
-
map:
|
|
1875
|
+
map: pt,
|
|
1866
1876
|
forEach: function(e, t, r) {
|
|
1867
|
-
|
|
1877
|
+
pt(
|
|
1868
1878
|
e,
|
|
1869
1879
|
function() {
|
|
1870
1880
|
t.apply(this, arguments);
|
|
@@ -1874,27 +1884,27 @@ w.Children = {
|
|
|
1874
1884
|
},
|
|
1875
1885
|
count: function(e) {
|
|
1876
1886
|
var t = 0;
|
|
1877
|
-
return
|
|
1887
|
+
return pt(e, function() {
|
|
1878
1888
|
t++;
|
|
1879
1889
|
}), t;
|
|
1880
1890
|
},
|
|
1881
1891
|
toArray: function(e) {
|
|
1882
|
-
return
|
|
1892
|
+
return pt(e, function(t) {
|
|
1883
1893
|
return t;
|
|
1884
1894
|
}) || [];
|
|
1885
1895
|
},
|
|
1886
1896
|
only: function(e) {
|
|
1887
|
-
if (!
|
|
1897
|
+
if (!hr(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 = Fe;
|
|
1895
1905
|
w.Fragment = bo;
|
|
1896
1906
|
w.Profiler = Co;
|
|
1897
|
-
w.PureComponent =
|
|
1907
|
+
w.PureComponent = ir;
|
|
1898
1908
|
w.StrictMode = yo;
|
|
1899
1909
|
w.Suspense = xo;
|
|
1900
1910
|
w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
|
|
@@ -1911,10 +1921,10 @@ 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 = Ns({}, 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
|
+
!js.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) {
|
|
@@ -1922,7 +1932,7 @@ w.cloneElement = function(e, t, r) {
|
|
|
1922
1932
|
c[u] = arguments[u + 2];
|
|
1923
1933
|
s.children = c;
|
|
1924
1934
|
}
|
|
1925
|
-
return
|
|
1935
|
+
return ur(e.type, a, void 0, void 0, o, s);
|
|
1926
1936
|
};
|
|
1927
1937
|
w.createContext = function(e) {
|
|
1928
1938
|
return e = {
|
|
@@ -1941,7 +1951,7 @@ 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
|
+
js.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) {
|
|
@@ -1952,7 +1962,7 @@ w.createElement = function(e, t, r) {
|
|
|
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 ur(e, o, void 0, void 0, null, a);
|
|
1956
1966
|
};
|
|
1957
1967
|
w.createRef = function() {
|
|
1958
1968
|
return { current: null };
|
|
@@ -1960,10 +1970,10 @@ w.createRef = function() {
|
|
|
1960
1970
|
w.forwardRef = function(e) {
|
|
1961
1971
|
return { $$typeof: wo, render: e };
|
|
1962
1972
|
};
|
|
1963
|
-
w.isValidElement =
|
|
1973
|
+
w.isValidElement = hr;
|
|
1964
1974
|
w.lazy = function(e) {
|
|
1965
1975
|
return {
|
|
1966
|
-
$$typeof:
|
|
1976
|
+
$$typeof: Ds,
|
|
1967
1977
|
_payload: { _status: -1, _result: e },
|
|
1968
1978
|
_init: _o
|
|
1969
1979
|
};
|
|
@@ -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(Io,
|
|
1993
|
+
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Io, 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
|
+
Fs.exports = w;
|
|
2062
|
+
var fs = Fs.exports, Ao = nr;
|
|
2053
2063
|
const Mo = (e) => e;
|
|
2054
|
-
function
|
|
2055
|
-
const r =
|
|
2064
|
+
function Vs(e, t = Mo) {
|
|
2065
|
+
const r = fs.useSyncExternalStore(
|
|
2056
2066
|
e.subscribe,
|
|
2057
2067
|
() => t(e.getState()),
|
|
2058
2068
|
() => t(e.getInitialState())
|
|
2059
2069
|
);
|
|
2060
|
-
return
|
|
2070
|
+
return fs.useDebugValue(r), r;
|
|
2061
2071
|
}
|
|
2062
|
-
const
|
|
2063
|
-
const t = Ao.createStore(e), r = (s) =>
|
|
2072
|
+
const ps = (e) => {
|
|
2073
|
+
const t = Ao.createStore(e), r = (s) => Vs(t, s);
|
|
2064
2074
|
return Object.assign(r, t), r;
|
|
2065
|
-
}, Lo = (e) => e ?
|
|
2066
|
-
|
|
2067
|
-
|
|
2075
|
+
}, Lo = (e) => e ? ps(e) : ps;
|
|
2076
|
+
or.create = Lo;
|
|
2077
|
+
or.useStore = Vs;
|
|
2068
2078
|
(function(e) {
|
|
2069
|
-
var t =
|
|
2079
|
+
var t = nr, r = or;
|
|
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 @@ nr.useStore = js;
|
|
|
2082
2092
|
}
|
|
2083
2093
|
});
|
|
2084
2094
|
});
|
|
2085
|
-
})(
|
|
2086
|
-
const
|
|
2095
|
+
})(Os);
|
|
2096
|
+
const ms = {
|
|
2087
2097
|
adClientResponseItems: [],
|
|
2088
2098
|
core: void 0,
|
|
2089
2099
|
hotkey: "k",
|
|
@@ -2103,11 +2113,12 @@ const ps = {
|
|
|
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
|
+
}, $ = Os.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 ps = {
|
|
|
2127
2138
|
return a;
|
|
2128
2139
|
},
|
|
2129
2140
|
init: (a, o = !1) => {
|
|
2130
|
-
const n = o ? new
|
|
2141
|
+
const n = o ? new Un({ 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 ps = {
|
|
|
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,
|
|
@@ -2183,7 +2195,7 @@ const ps = {
|
|
|
2183
2195
|
},
|
|
2184
2196
|
setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
|
|
2185
2197
|
setSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2186
|
-
var
|
|
2198
|
+
var i, p;
|
|
2187
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,
|
|
@@ -2195,18 +2207,18 @@ const ps = {
|
|
|
2195
2207
|
searchResultsCount: c,
|
|
2196
2208
|
...n && { searchResponseFacetPrime: n }
|
|
2197
2209
|
}));
|
|
2198
|
-
(
|
|
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
2213
|
var h;
|
|
2202
2214
|
const n = t(), { count: c = 0, time_taken: u = 0 } = a.data;
|
|
2203
|
-
r.set((
|
|
2215
|
+
r.set((i) => ({
|
|
2204
2216
|
isSearchInProgress: !1,
|
|
2205
2217
|
initialSearchClientResponseItems: o,
|
|
2206
2218
|
searchResponseTimeTaken: u,
|
|
2207
2219
|
searchResultsPage: (
|
|
2208
2220
|
// Reset to first page when response count changes
|
|
2209
|
-
c ===
|
|
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)}`);
|
|
@@ -2222,7 +2234,7 @@ const ps = {
|
|
|
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 ps = {
|
|
|
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 ps = {
|
|
|
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 } = ms;
|
|
2247
2260
|
r.set({
|
|
2248
2261
|
hotkey: a || n,
|
|
2249
2262
|
hotkeyModifier: o || c
|
|
@@ -2251,11 +2264,48 @@ const ps = {
|
|
|
2251
2264
|
}
|
|
2252
2265
|
};
|
|
2253
2266
|
return {
|
|
2254
|
-
...
|
|
2267
|
+
...ms,
|
|
2255
2268
|
...r
|
|
2256
2269
|
};
|
|
2257
2270
|
});
|
|
2258
|
-
var
|
|
2271
|
+
var Bs = { 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
|
+
})(Bs);
|
|
2307
|
+
const re = Bs.exports;
|
|
2308
|
+
var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ws = { 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) {
|
|
@@ -2273,27 +2323,27 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2273
2323
|
seal: u,
|
|
2274
2324
|
create: h
|
|
2275
2325
|
} = Object, {
|
|
2276
|
-
apply:
|
|
2326
|
+
apply: i,
|
|
2277
2327
|
construct: p
|
|
2278
2328
|
} = typeof Reflect < "u" && Reflect;
|
|
2279
2329
|
c || (c = function(y) {
|
|
2280
2330
|
return y;
|
|
2281
2331
|
}), u || (u = function(y) {
|
|
2282
2332
|
return y;
|
|
2283
|
-
}),
|
|
2333
|
+
}), i || (i = function(y, T, E) {
|
|
2284
2334
|
return y.apply(T, E);
|
|
2285
2335
|
}), p || (p = function(y, T) {
|
|
2286
2336
|
return new y(...T);
|
|
2287
2337
|
});
|
|
2288
|
-
const g = q(Array.prototype.forEach), k = q(Array.prototype.lastIndexOf), b = q(Array.prototype.pop), P = q(Array.prototype.push), _ = q(Array.prototype.splice), H = q(String.prototype.toLowerCase), I = q(String.prototype.toString),
|
|
2338
|
+
const g = q(Array.prototype.forEach), k = q(Array.prototype.lastIndexOf), b = q(Array.prototype.pop), P = q(Array.prototype.push), _ = q(Array.prototype.splice), H = q(String.prototype.toLowerCase), I = q(String.prototype.toString), De = q(String.prototype.match), He = q(String.prototype.replace), oa = q(String.prototype.indexOf), ca = q(String.prototype.trim), ae = q(Object.prototype.hasOwnProperty), G = q(RegExp.prototype.test), Ne = ia(TypeError);
|
|
2289
2339
|
function q(R) {
|
|
2290
2340
|
return function(y) {
|
|
2291
2341
|
for (var T = arguments.length, E = new Array(T > 1 ? T - 1 : 0), V = 1; V < T; V++)
|
|
2292
2342
|
E[V - 1] = arguments[V];
|
|
2293
|
-
return
|
|
2343
|
+
return i(R, y, E);
|
|
2294
2344
|
};
|
|
2295
2345
|
}
|
|
2296
|
-
function
|
|
2346
|
+
function ia(R) {
|
|
2297
2347
|
return function() {
|
|
2298
2348
|
for (var y = arguments.length, T = new Array(y), E = 0; E < y; E++)
|
|
2299
2349
|
T[E] = arguments[E];
|
|
@@ -2314,7 +2364,7 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2314
2364
|
}
|
|
2315
2365
|
return R;
|
|
2316
2366
|
}
|
|
2317
|
-
function
|
|
2367
|
+
function la(R) {
|
|
2318
2368
|
for (let y = 0; y < R.length; y++)
|
|
2319
2369
|
ae(R, y) || (R[y] = null);
|
|
2320
2370
|
return R;
|
|
@@ -2322,10 +2372,10 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2322
2372
|
function Se(R) {
|
|
2323
2373
|
const y = h(null);
|
|
2324
2374
|
for (const [T, E] of r(R))
|
|
2325
|
-
ae(R, T) && (Array.isArray(E) ? y[T] =
|
|
2375
|
+
ae(R, T) && (Array.isArray(E) ? y[T] = la(E) : E && typeof E == "object" && E.constructor === Object ? y[T] = Se(E) : y[T] = E);
|
|
2326
2376
|
return y;
|
|
2327
2377
|
}
|
|
2328
|
-
function
|
|
2378
|
+
function Ue(R, y) {
|
|
2329
2379
|
for (; R !== null; ) {
|
|
2330
2380
|
const E = n(R, y);
|
|
2331
2381
|
if (E) {
|
|
@@ -2341,36 +2391,36 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2341
2391
|
}
|
|
2342
2392
|
return T;
|
|
2343
2393
|
}
|
|
2344
|
-
const
|
|
2394
|
+
const pr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), xt = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Rt = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ua = c(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Et = c(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ha = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mr = c(["#text"]), gr = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Tt = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), vr = 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"]), tt = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), da = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), fa = u(/<%[\w\W]*|[\w\W]*%>/gm), pa = u(/\$\{[\w\W]*/gm), ma = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), ga = u(/^aria-[\-\w]+$/), br = 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
|
+
), va = u(/^(?:\w+script|data):/i), ba = 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
|
+
), yr = u(/^html$/i), ya = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
2401
|
+
var Cr = /* @__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: ga,
|
|
2404
|
+
ATTR_WHITESPACE: ba,
|
|
2405
|
+
CUSTOM_ELEMENT: ya,
|
|
2406
|
+
DATA_ATTR: ma,
|
|
2407
|
+
DOCTYPE_NAME: yr,
|
|
2408
|
+
ERB_EXPR: fa,
|
|
2409
|
+
IS_ALLOWED_URI: br,
|
|
2410
|
+
IS_SCRIPT_OR_DATA: va,
|
|
2411
|
+
MUSTACHE_EXPR: da,
|
|
2412
|
+
TMPLIT_EXPR: pa
|
|
2363
2413
|
});
|
|
2364
|
-
const
|
|
2414
|
+
const ze = {
|
|
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
|
+
}, Ca = function() {
|
|
2372
2422
|
return typeof window > "u" ? null : window;
|
|
2373
|
-
},
|
|
2423
|
+
}, Sa = function(y, T) {
|
|
2374
2424
|
if (typeof y != "object" || typeof y.createPolicy != "function")
|
|
2375
2425
|
return null;
|
|
2376
2426
|
let E = null;
|
|
@@ -2389,7 +2439,7 @@ var Oo = 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
|
+
}, Sr = function() {
|
|
2393
2443
|
return {
|
|
2394
2444
|
afterSanitizeAttributes: [],
|
|
2395
2445
|
afterSanitizeElements: [],
|
|
@@ -2402,10 +2452,10 @@ var Oo = 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 y = (C) =>
|
|
2408
|
-
if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !==
|
|
2455
|
+
function kr() {
|
|
2456
|
+
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ca();
|
|
2457
|
+
const y = (C) => kr(C);
|
|
2458
|
+
if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !== ze.document || !R.Element)
|
|
2409
2459
|
return y.isSupported = !1, y;
|
|
2410
2460
|
let {
|
|
2411
2461
|
document: T
|
|
@@ -2414,44 +2464,44 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2414
2464
|
DocumentFragment: ie,
|
|
2415
2465
|
HTMLTemplateElement: xe,
|
|
2416
2466
|
Node: Pt,
|
|
2417
|
-
Element:
|
|
2418
|
-
NodeFilter:
|
|
2419
|
-
NamedNodeMap:
|
|
2420
|
-
HTMLFormElement:
|
|
2421
|
-
DOMParser:
|
|
2422
|
-
trustedTypes:
|
|
2423
|
-
} = R,
|
|
2467
|
+
Element: wr,
|
|
2468
|
+
NodeFilter: je,
|
|
2469
|
+
NamedNodeMap: wa = R.NamedNodeMap || R.MozNamedAttrMap,
|
|
2470
|
+
HTMLFormElement: xa,
|
|
2471
|
+
DOMParser: Ra,
|
|
2472
|
+
trustedTypes: rt
|
|
2473
|
+
} = R, Ve = wr.prototype, Ea = Ue(Ve, "cloneNode"), Ta = Ue(Ve, "remove"), Pa = Ue(Ve, "nextSibling"), $a = Ue(Ve, "childNodes"), st = Ue(Ve, "parentNode");
|
|
2424
2474
|
if (typeof xe == "function") {
|
|
2425
2475
|
const C = T.createElement("template");
|
|
2426
2476
|
C.content && C.content.ownerDocument && (T = C.content.ownerDocument);
|
|
2427
2477
|
}
|
|
2428
|
-
let Y,
|
|
2478
|
+
let Y, Be = "";
|
|
2429
2479
|
const {
|
|
2430
2480
|
implementation: $t,
|
|
2431
|
-
createNodeIterator:
|
|
2432
|
-
createDocumentFragment:
|
|
2433
|
-
getElementsByTagName:
|
|
2481
|
+
createNodeIterator: _a,
|
|
2482
|
+
createDocumentFragment: Ia,
|
|
2483
|
+
getElementsByTagName: Aa
|
|
2434
2484
|
} = T, {
|
|
2435
|
-
importNode:
|
|
2485
|
+
importNode: Ma
|
|
2436
2486
|
} = E;
|
|
2437
|
-
let Z =
|
|
2438
|
-
y.isSupported = typeof r == "function" && typeof
|
|
2487
|
+
let Z = Sr();
|
|
2488
|
+
y.isSupported = typeof r == "function" && typeof st == "function" && $t && $t.createHTMLDocument !== void 0;
|
|
2439
2489
|
const {
|
|
2440
2490
|
MUSTACHE_EXPR: _t,
|
|
2441
2491
|
ERB_EXPR: It,
|
|
2442
2492
|
TMPLIT_EXPR: At,
|
|
2443
|
-
DATA_ATTR:
|
|
2444
|
-
ARIA_ATTR:
|
|
2445
|
-
IS_SCRIPT_OR_DATA:
|
|
2446
|
-
ATTR_WHITESPACE:
|
|
2447
|
-
CUSTOM_ELEMENT:
|
|
2448
|
-
} =
|
|
2493
|
+
DATA_ATTR: La,
|
|
2494
|
+
ARIA_ATTR: Oa,
|
|
2495
|
+
IS_SCRIPT_OR_DATA: Fa,
|
|
2496
|
+
ATTR_WHITESPACE: xr,
|
|
2497
|
+
CUSTOM_ELEMENT: Da
|
|
2498
|
+
} = Cr;
|
|
2449
2499
|
let {
|
|
2450
|
-
IS_ALLOWED_URI:
|
|
2451
|
-
} =
|
|
2452
|
-
const
|
|
2500
|
+
IS_ALLOWED_URI: Rr
|
|
2501
|
+
} = Cr, N = null;
|
|
2502
|
+
const Er = x({}, [...pr, ...xt, ...Rt, ...Et, ...mr]);
|
|
2453
2503
|
let z = null;
|
|
2454
|
-
const
|
|
2504
|
+
const Tr = x({}, [...gr, ...Tt, ...vr, ...tt]);
|
|
2455
2505
|
let O = Object.seal(h(null, {
|
|
2456
2506
|
tagNameCheck: {
|
|
2457
2507
|
writable: !0,
|
|
@@ -2471,55 +2521,55 @@ var Oo = 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
|
+
})), We = null, Mt = null, Pr = !0, Lt = !0, $r = !1, _r = !0, Re = !1, Ot = !0, ke = !1, Ft = !1, Dt = !1, Ee = !1, at = !1, nt = !1, Ir = !0, Ar = !1;
|
|
2525
|
+
const Ha = "user-content-";
|
|
2526
|
+
let Ht = !0, Ge = !1, Te = {}, Pe = null;
|
|
2527
|
+
const Mr = 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 Lr = null;
|
|
2529
|
+
const Or = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2480
2530
|
let Nt = null;
|
|
2481
|
-
const
|
|
2531
|
+
const Fr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ot = "http://www.w3.org/1998/Math/MathML", ct = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
|
|
2482
2532
|
let $e = le, Ut = !1, zt = null;
|
|
2483
|
-
const
|
|
2484
|
-
let
|
|
2485
|
-
const
|
|
2486
|
-
let
|
|
2487
|
-
const
|
|
2533
|
+
const Na = x({}, [ot, ct, le], I);
|
|
2534
|
+
let it = x({}, ["mi", "mo", "mn", "ms", "mtext"]), lt = x({}, ["annotation-xml"]);
|
|
2535
|
+
const Ua = x({}, ["title", "style", "font", "a", "script"]);
|
|
2536
|
+
let qe = null;
|
|
2537
|
+
const za = ["application/xhtml+xml", "text/html"], ja = "text/html";
|
|
2488
2538
|
let U = null, _e = null;
|
|
2489
|
-
const
|
|
2539
|
+
const Va = T.createElement("form"), Dr = function(d) {
|
|
2490
2540
|
return d instanceof RegExp || d instanceof Function;
|
|
2491
2541
|
}, jt = function() {
|
|
2492
2542
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2493
2543
|
if (!(_e && _e === d)) {
|
|
2494
|
-
if ((!d || typeof d != "object") && (d = {}), d = Se(d),
|
|
2495
|
-
|
|
2544
|
+
if ((!d || typeof d != "object") && (d = {}), d = Se(d), qe = // eslint-disable-next-line unicorn/prefer-includes
|
|
2545
|
+
za.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? ja : d.PARSER_MEDIA_TYPE, U = qe === "application/xhtml+xml" ? I : H, N = ae(d, "ALLOWED_TAGS") ? x({}, d.ALLOWED_TAGS, U) : Er, z = ae(d, "ALLOWED_ATTR") ? x({}, d.ALLOWED_ATTR, U) : Tr, zt = ae(d, "ALLOWED_NAMESPACES") ? x({}, d.ALLOWED_NAMESPACES, I) : Na, Nt = ae(d, "ADD_URI_SAFE_ATTR") ? x(Se(Fr), d.ADD_URI_SAFE_ATTR, U) : Fr, Lr = ae(d, "ADD_DATA_URI_TAGS") ? x(Se(Or), d.ADD_DATA_URI_TAGS, U) : Or, Pe = ae(d, "FORBID_CONTENTS") ? x({}, d.FORBID_CONTENTS, U) : Mr, We = ae(d, "FORBID_TAGS") ? x({}, d.FORBID_TAGS, U) : {}, Mt = ae(d, "FORBID_ATTR") ? x({}, d.FORBID_ATTR, U) : {}, Te = ae(d, "USE_PROFILES") ? d.USE_PROFILES : !1, Pr = d.ALLOW_ARIA_ATTR !== !1, Lt = d.ALLOW_DATA_ATTR !== !1, $r = d.ALLOW_UNKNOWN_PROTOCOLS || !1, _r = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Re = d.SAFE_FOR_TEMPLATES || !1, Ot = d.SAFE_FOR_XML !== !1, ke = d.WHOLE_DOCUMENT || !1, Ee = d.RETURN_DOM || !1, at = d.RETURN_DOM_FRAGMENT || !1, nt = d.RETURN_TRUSTED_TYPE || !1, Dt = d.FORCE_BODY || !1, Ir = d.SANITIZE_DOM !== !1, Ar = d.SANITIZE_NAMED_PROPS || !1, Ht = d.KEEP_CONTENT !== !1, Ge = d.IN_PLACE || !1, Rr = d.ALLOWED_URI_REGEXP || br, $e = d.NAMESPACE || le, it = d.MATHML_TEXT_INTEGRATION_POINTS || it, lt = d.HTML_INTEGRATION_POINTS || lt, O = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Dr(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Dr(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (O.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (O.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Re && (Lt = !1), at && (Ee = !0), Te && (N = x({}, mr), z = [], Te.html === !0 && (x(N, pr), x(z, gr)), Te.svg === !0 && (x(N, xt), x(z, Tt), x(z, tt)), Te.svgFilters === !0 && (x(N, Rt), x(z, Tt), x(z, tt)), Te.mathMl === !0 && (x(N, Et), x(z, vr), x(z, tt))), d.ADD_TAGS && (N === Er && (N = Se(N)), x(N, d.ADD_TAGS, U)), d.ADD_ATTR && (z === Tr && (z = Se(z)), x(z, d.ADD_ATTR, U)), d.ADD_URI_SAFE_ATTR && x(Nt, d.ADD_URI_SAFE_ATTR, U), d.FORBID_CONTENTS && (Pe === Mr && (Pe = Se(Pe)), x(Pe, d.FORBID_CONTENTS, U)), Ht && (N["#text"] = !0), ke && x(N, ["html", "head", "body"]), N.table && (x(N, ["tbody"]), delete We.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
2496
2546
|
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2497
|
-
throw
|
|
2547
|
+
throw Ne('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2498
2548
|
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2499
|
-
throw
|
|
2500
|
-
Y = d.TRUSTED_TYPES_POLICY,
|
|
2549
|
+
throw Ne('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2550
|
+
Y = d.TRUSTED_TYPES_POLICY, Be = Y.createHTML("");
|
|
2501
2551
|
} else
|
|
2502
|
-
Y === void 0 && (Y =
|
|
2552
|
+
Y === void 0 && (Y = Sa(rt, V)), Y !== null && typeof Be == "string" && (Be = Y.createHTML(""));
|
|
2503
2553
|
c && c(d), _e = d;
|
|
2504
2554
|
}
|
|
2505
|
-
},
|
|
2506
|
-
let m =
|
|
2555
|
+
}, Hr = x({}, [...xt, ...Rt, ...ua]), Nr = x({}, [...Et, ...ha]), Ba = function(d) {
|
|
2556
|
+
let m = st(d);
|
|
2507
2557
|
(!m || !m.tagName) && (m = {
|
|
2508
2558
|
namespaceURI: $e,
|
|
2509
2559
|
tagName: "template"
|
|
2510
2560
|
});
|
|
2511
2561
|
const v = H(d.tagName), M = H(m.tagName);
|
|
2512
|
-
return zt[d.namespaceURI] ? d.namespaceURI ===
|
|
2562
|
+
return zt[d.namespaceURI] ? d.namespaceURI === ct ? m.namespaceURI === le ? v === "svg" : m.namespaceURI === ot ? v === "svg" && (M === "annotation-xml" || it[M]) : !!Hr[v] : d.namespaceURI === ot ? m.namespaceURI === le ? v === "math" : m.namespaceURI === ct ? v === "math" && lt[M] : !!Nr[v] : d.namespaceURI === le ? m.namespaceURI === ct && !lt[M] || m.namespaceURI === ot && !it[M] ? !1 : !Nr[v] && (Ua[v] || !Hr[v]) : !!(qe === "application/xhtml+xml" && zt[d.namespaceURI]) : !1;
|
|
2513
2563
|
}, oe = function(d) {
|
|
2514
2564
|
P(y.removed, {
|
|
2515
2565
|
element: d
|
|
2516
2566
|
});
|
|
2517
2567
|
try {
|
|
2518
|
-
|
|
2568
|
+
st(d).removeChild(d);
|
|
2519
2569
|
} catch {
|
|
2520
|
-
|
|
2570
|
+
Ta(d);
|
|
2521
2571
|
}
|
|
2522
|
-
},
|
|
2572
|
+
}, ut = function(d, m) {
|
|
2523
2573
|
try {
|
|
2524
2574
|
P(y.removed, {
|
|
2525
2575
|
attribute: m.getAttributeNode(d),
|
|
@@ -2532,7 +2582,7 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2532
2582
|
});
|
|
2533
2583
|
}
|
|
2534
2584
|
if (m.removeAttribute(d), d === "is")
|
|
2535
|
-
if (Ee ||
|
|
2585
|
+
if (Ee || at)
|
|
2536
2586
|
try {
|
|
2537
2587
|
oe(m);
|
|
2538
2588
|
} catch {
|
|
@@ -2542,41 +2592,41 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2542
2592
|
m.setAttribute(d, "");
|
|
2543
2593
|
} catch {
|
|
2544
2594
|
}
|
|
2545
|
-
},
|
|
2595
|
+
}, Ur = function(d) {
|
|
2546
2596
|
let m = null, v = null;
|
|
2547
2597
|
if (Dt)
|
|
2548
2598
|
d = "<remove></remove>" + d;
|
|
2549
2599
|
else {
|
|
2550
|
-
const j =
|
|
2600
|
+
const j = De(d, /^[\r\n\t ]+/);
|
|
2551
2601
|
v = j && j[0];
|
|
2552
2602
|
}
|
|
2553
|
-
|
|
2603
|
+
qe === "application/xhtml+xml" && $e === le && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
2554
2604
|
const M = Y ? Y.createHTML(d) : d;
|
|
2555
2605
|
if ($e === le)
|
|
2556
2606
|
try {
|
|
2557
|
-
m = new
|
|
2607
|
+
m = new Ra().parseFromString(M, qe);
|
|
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 = Ut ?
|
|
2613
|
+
m.documentElement.innerHTML = Ut ? Be : M;
|
|
2564
2614
|
} catch {
|
|
2565
2615
|
}
|
|
2566
2616
|
}
|
|
2567
2617
|
const B = m.body || m.documentElement;
|
|
2568
|
-
return d && v && B.insertBefore(T.createTextNode(v), B.childNodes[0] || null), $e === le ?
|
|
2569
|
-
},
|
|
2570
|
-
return
|
|
2618
|
+
return d && v && B.insertBefore(T.createTextNode(v), B.childNodes[0] || null), $e === le ? Aa.call(m, ke ? "html" : "body")[0] : ke ? m.documentElement : B;
|
|
2619
|
+
}, zr = function(d) {
|
|
2620
|
+
return _a.call(
|
|
2571
2621
|
d.ownerDocument || d,
|
|
2572
2622
|
d,
|
|
2573
2623
|
// eslint-disable-next-line no-bitwise
|
|
2574
|
-
|
|
2624
|
+
je.SHOW_ELEMENT | je.SHOW_COMMENT | je.SHOW_TEXT | je.SHOW_PROCESSING_INSTRUCTION | je.SHOW_CDATA_SECTION,
|
|
2575
2625
|
null
|
|
2576
2626
|
);
|
|
2577
2627
|
}, Vt = function(d) {
|
|
2578
|
-
return d instanceof
|
|
2579
|
-
},
|
|
2628
|
+
return d instanceof xa && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof wa) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
|
|
2629
|
+
}, jr = function(d) {
|
|
2580
2630
|
return typeof Pt == "function" && d instanceof Pt;
|
|
2581
2631
|
};
|
|
2582
2632
|
function ue(C, d, m) {
|
|
@@ -2584,7 +2634,7 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2584
2634
|
v.call(y, d, m, _e);
|
|
2585
2635
|
});
|
|
2586
2636
|
}
|
|
2587
|
-
const
|
|
2637
|
+
const Vr = function(d) {
|
|
2588
2638
|
let m = null;
|
|
2589
2639
|
if (ue(Z.beforeSanitizeElements, d, null), Vt(d))
|
|
2590
2640
|
return oe(d), !0;
|
|
@@ -2592,46 +2642,46 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2592
2642
|
if (ue(Z.uponSanitizeElement, d, {
|
|
2593
2643
|
tagName: v,
|
|
2594
2644
|
allowedTags: N
|
|
2595
|
-
}), d.hasChildNodes() && !
|
|
2645
|
+
}), d.hasChildNodes() && !jr(d.firstElementChild) && G(/<[/\w]/g, d.innerHTML) && G(/<[/\w]/g, d.textContent) || d.nodeType === ze.progressingInstruction || Ot && d.nodeType === ze.comment && G(/<[/\w]/g, d.data))
|
|
2596
2646
|
return oe(d), !0;
|
|
2597
|
-
if (!N[v] ||
|
|
2598
|
-
if (!
|
|
2647
|
+
if (!N[v] || We[v]) {
|
|
2648
|
+
if (!We[v] && Wr(v) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, v) || O.tagNameCheck instanceof Function && O.tagNameCheck(v)))
|
|
2599
2649
|
return !1;
|
|
2600
2650
|
if (Ht && !Pe[v]) {
|
|
2601
|
-
const M =
|
|
2651
|
+
const M = st(d) || d.parentNode, B = $a(d) || d.childNodes;
|
|
2602
2652
|
if (B && M) {
|
|
2603
2653
|
const j = B.length;
|
|
2604
2654
|
for (let J = j - 1; J >= 0; --J) {
|
|
2605
|
-
const ce =
|
|
2606
|
-
ce.__removalCount = (d.__removalCount || 0) + 1, M.insertBefore(ce,
|
|
2655
|
+
const ce = Ea(B[J], !0);
|
|
2656
|
+
ce.__removalCount = (d.__removalCount || 0) + 1, M.insertBefore(ce, Pa(d));
|
|
2607
2657
|
}
|
|
2608
2658
|
}
|
|
2609
2659
|
}
|
|
2610
2660
|
return oe(d), !0;
|
|
2611
2661
|
}
|
|
2612
|
-
return d instanceof
|
|
2613
|
-
m =
|
|
2662
|
+
return d instanceof wr && !Ba(d) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, d.innerHTML) ? (oe(d), !0) : (Re && d.nodeType === ze.text && (m = d.textContent, g([_t, It, At], (M) => {
|
|
2663
|
+
m = He(m, M, " ");
|
|
2614
2664
|
}), d.textContent !== m && (P(y.removed, {
|
|
2615
2665
|
element: d.cloneNode()
|
|
2616
2666
|
}), d.textContent = m)), ue(Z.afterSanitizeElements, d, null), !1);
|
|
2617
|
-
},
|
|
2618
|
-
if (
|
|
2667
|
+
}, Br = function(d, m, v) {
|
|
2668
|
+
if (Ir && (m === "id" || m === "name") && (v in T || v in Va))
|
|
2619
2669
|
return !1;
|
|
2620
|
-
if (!(Lt && !Mt[m] && G(
|
|
2621
|
-
if (!(
|
|
2670
|
+
if (!(Lt && !Mt[m] && G(La, m))) {
|
|
2671
|
+
if (!(Pr && G(Oa, m))) {
|
|
2622
2672
|
if (!z[m] || Mt[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
|
+
!(Wr(d) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, d) || O.tagNameCheck instanceof Function && O.tagNameCheck(d)) && (O.attributeNameCheck instanceof RegExp && G(O.attributeNameCheck, m) || O.attributeNameCheck instanceof Function && O.attributeNameCheck(m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
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, v) || O.tagNameCheck instanceof Function && O.tagNameCheck(v)))
|
|
2630
2680
|
) return !1;
|
|
2631
2681
|
} else if (!Nt[m]) {
|
|
2632
|
-
if (!G(
|
|
2633
|
-
if (!((m === "src" || m === "xlink:href" || m === "href") && d !== "script" &&
|
|
2634
|
-
if (!(
|
|
2682
|
+
if (!G(Rr, He(v, xr, ""))) {
|
|
2683
|
+
if (!((m === "src" || m === "xlink:href" || m === "href") && d !== "script" && oa(v, "data:") === 0 && Lr[d])) {
|
|
2684
|
+
if (!($r && !G(Fa, He(v, xr, "")))) {
|
|
2635
2685
|
if (v)
|
|
2636
2686
|
return !1;
|
|
2637
2687
|
}
|
|
@@ -2641,9 +2691,9 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2641
2691
|
}
|
|
2642
2692
|
}
|
|
2643
2693
|
return !0;
|
|
2644
|
-
}, Br = function(d) {
|
|
2645
|
-
return d !== "annotation-xml" && Fe(d, Fa);
|
|
2646
2694
|
}, Wr = function(d) {
|
|
2695
|
+
return d !== "annotation-xml" && De(d, Da);
|
|
2696
|
+
}, Gr = function(d) {
|
|
2647
2697
|
ue(Z.beforeSanitizeAttributes, d, null);
|
|
2648
2698
|
const {
|
|
2649
2699
|
attributes: m
|
|
@@ -2663,25 +2713,25 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2663
2713
|
name: j,
|
|
2664
2714
|
namespaceURI: J,
|
|
2665
2715
|
value: ce
|
|
2666
|
-
} = B,
|
|
2667
|
-
let Q = j === "value" ? ce :
|
|
2668
|
-
if (v.attrName =
|
|
2669
|
-
|
|
2716
|
+
} = B, Ye = U(j);
|
|
2717
|
+
let Q = j === "value" ? ce : ca(ce);
|
|
2718
|
+
if (v.attrName = Ye, v.attrValue = Q, v.keepAttr = !0, v.forceKeepAttr = void 0, ue(Z.uponSanitizeAttribute, d, v), Q = v.attrValue, Ar && (Ye === "id" || Ye === "name") && (ut(j, d), Q = Ha + Q), Ot && G(/((--!?|])>)|<\/(style|title)/i, Q)) {
|
|
2719
|
+
ut(j, d);
|
|
2670
2720
|
continue;
|
|
2671
2721
|
}
|
|
2672
|
-
if (v.forceKeepAttr || (
|
|
2722
|
+
if (v.forceKeepAttr || (ut(j, d), !v.keepAttr))
|
|
2673
2723
|
continue;
|
|
2674
|
-
if (
|
|
2675
|
-
|
|
2724
|
+
if (!_r && G(/\/>/i, Q)) {
|
|
2725
|
+
ut(j, d);
|
|
2676
2726
|
continue;
|
|
2677
2727
|
}
|
|
2678
|
-
Re && g([_t, It, At], (
|
|
2679
|
-
Q =
|
|
2728
|
+
Re && g([_t, It, At], (Yr) => {
|
|
2729
|
+
Q = He(Q, Yr, " ");
|
|
2680
2730
|
});
|
|
2681
|
-
const
|
|
2682
|
-
if (
|
|
2683
|
-
if (Y && typeof
|
|
2684
|
-
switch (
|
|
2731
|
+
const qr = U(d.nodeName);
|
|
2732
|
+
if (Br(qr, Ye, Q)) {
|
|
2733
|
+
if (Y && typeof rt == "object" && typeof rt.getAttributeType == "function" && !J)
|
|
2734
|
+
switch (rt.getAttributeType(qr, Ye)) {
|
|
2685
2735
|
case "TrustedHTML": {
|
|
2686
2736
|
Q = Y.createHTML(Q);
|
|
2687
2737
|
break;
|
|
@@ -2698,57 +2748,57 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2698
2748
|
}
|
|
2699
2749
|
}
|
|
2700
2750
|
ue(Z.afterSanitizeAttributes, d, null);
|
|
2701
|
-
},
|
|
2751
|
+
}, Wa = function C(d) {
|
|
2702
2752
|
let m = null;
|
|
2703
|
-
const v =
|
|
2753
|
+
const v = zr(d);
|
|
2704
2754
|
for (ue(Z.beforeSanitizeShadowDOM, d, null); m = v.nextNode(); )
|
|
2705
|
-
ue(Z.uponSanitizeShadowNode, m, null),
|
|
2755
|
+
ue(Z.uponSanitizeShadowNode, m, null), Vr(m), Gr(m), m.content instanceof ie && C(m.content);
|
|
2706
2756
|
ue(Z.afterSanitizeShadowDOM, d, null);
|
|
2707
2757
|
};
|
|
2708
2758
|
return y.sanitize = function(C) {
|
|
2709
2759
|
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, v = null, M = null, B = null;
|
|
2710
|
-
if (Ut = !C, Ut && (C = "<!-->"), typeof C != "string" && !
|
|
2760
|
+
if (Ut = !C, Ut && (C = "<!-->"), typeof C != "string" && !jr(C))
|
|
2711
2761
|
if (typeof C.toString == "function") {
|
|
2712
2762
|
if (C = C.toString(), typeof C != "string")
|
|
2713
|
-
throw
|
|
2763
|
+
throw Ne("dirty is not a string, aborting");
|
|
2714
2764
|
} else
|
|
2715
|
-
throw
|
|
2765
|
+
throw Ne("toString is not a function");
|
|
2716
2766
|
if (!y.isSupported)
|
|
2717
2767
|
return C;
|
|
2718
|
-
if (Ft || jt(d), y.removed = [], typeof C == "string" && (
|
|
2768
|
+
if (Ft || jt(d), y.removed = [], typeof C == "string" && (Ge = !1), Ge) {
|
|
2719
2769
|
if (C.nodeName) {
|
|
2720
2770
|
const ce = U(C.nodeName);
|
|
2721
|
-
if (!N[ce] ||
|
|
2722
|
-
throw
|
|
2771
|
+
if (!N[ce] || We[ce])
|
|
2772
|
+
throw Ne("root node is forbidden and cannot be sanitized in-place");
|
|
2723
2773
|
}
|
|
2724
2774
|
} else if (C instanceof Pt)
|
|
2725
|
-
m =
|
|
2775
|
+
m = Ur("<!---->"), v = m.ownerDocument.importNode(C, !0), v.nodeType === ze.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? m = v : m.appendChild(v);
|
|
2726
2776
|
else {
|
|
2727
2777
|
if (!Ee && !Re && !ke && // eslint-disable-next-line unicorn/prefer-includes
|
|
2728
2778
|
C.indexOf("<") === -1)
|
|
2729
|
-
return Y &&
|
|
2730
|
-
if (m =
|
|
2731
|
-
return Ee ? null :
|
|
2779
|
+
return Y && nt ? Y.createHTML(C) : C;
|
|
2780
|
+
if (m = Ur(C), !m)
|
|
2781
|
+
return Ee ? null : nt ? Be : "";
|
|
2732
2782
|
}
|
|
2733
2783
|
m && Dt && oe(m.firstChild);
|
|
2734
|
-
const j =
|
|
2784
|
+
const j = zr(Ge ? C : m);
|
|
2735
2785
|
for (; M = j.nextNode(); )
|
|
2736
|
-
|
|
2737
|
-
if (
|
|
2786
|
+
Vr(M), Gr(M), M.content instanceof ie && Wa(M.content);
|
|
2787
|
+
if (Ge)
|
|
2738
2788
|
return C;
|
|
2739
2789
|
if (Ee) {
|
|
2740
|
-
if (
|
|
2741
|
-
for (B =
|
|
2790
|
+
if (at)
|
|
2791
|
+
for (B = Ia.call(m.ownerDocument); m.firstChild; )
|
|
2742
2792
|
B.appendChild(m.firstChild);
|
|
2743
2793
|
else
|
|
2744
2794
|
B = m;
|
|
2745
|
-
return (z.shadowroot || z.shadowrootmode) && (B =
|
|
2795
|
+
return (z.shadowroot || z.shadowrootmode) && (B = Ma.call(E, B, !0)), B;
|
|
2746
2796
|
}
|
|
2747
2797
|
let J = ke ? m.outerHTML : m.innerHTML;
|
|
2748
|
-
return ke && N["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(
|
|
2798
|
+
return ke && N["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(yr, m.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
|
|
2749
2799
|
` + J), Re && g([_t, It, At], (ce) => {
|
|
2750
|
-
J =
|
|
2751
|
-
}), Y &&
|
|
2800
|
+
J = He(J, ce, " ");
|
|
2801
|
+
}), Y && nt ? Y.createHTML(J) : J;
|
|
2752
2802
|
}, y.setConfig = function() {
|
|
2753
2803
|
let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2754
2804
|
jt(C), Ft = !0;
|
|
@@ -2757,7 +2807,7 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2757
2807
|
}, y.isValidAttribute = function(C, d, m) {
|
|
2758
2808
|
_e || jt({});
|
|
2759
2809
|
const v = U(C), M = U(d);
|
|
2760
|
-
return
|
|
2810
|
+
return Br(v, M, m);
|
|
2761
2811
|
}, y.addHook = function(C, d) {
|
|
2762
2812
|
typeof d == "function" && P(Z[C], d);
|
|
2763
2813
|
}, y.removeHook = function(C, d) {
|
|
@@ -2769,14 +2819,14 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2769
2819
|
}, y.removeHooks = function(C) {
|
|
2770
2820
|
Z[C] = [];
|
|
2771
2821
|
}, y.removeAllHooks = function() {
|
|
2772
|
-
Z =
|
|
2822
|
+
Z = Sr();
|
|
2773
2823
|
}, y;
|
|
2774
2824
|
}
|
|
2775
|
-
var
|
|
2776
|
-
return
|
|
2825
|
+
var ka = kr();
|
|
2826
|
+
return ka;
|
|
2777
2827
|
});
|
|
2778
|
-
})(
|
|
2779
|
-
const Fo =
|
|
2828
|
+
})(Ws);
|
|
2829
|
+
const Fo = Ws.exports, et = (e, ...t) => {
|
|
2780
2830
|
let r = e[0];
|
|
2781
2831
|
for (let s = 0; s < t.length; s++)
|
|
2782
2832
|
r += Fo.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
|
|
@@ -2828,9 +2878,12 @@ const Ho = /* @__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: et })), 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 Ho = /* @__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: et })), 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
|
|
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 St() {
|
|
|
2886
2939
|
}
|
|
2887
2940
|
});
|
|
2888
2941
|
}
|
|
2889
|
-
const No = St
|
|
2890
|
-
var Bs = { 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
|
-
})(Bs);
|
|
2926
|
-
const se = Bs.exports, Uo = /* @__PURE__ */ D(class extends F {
|
|
2942
|
+
const No = St, Uo = /* @__PURE__ */ D(class extends F {
|
|
2927
2943
|
constructor() {
|
|
2928
2944
|
super();
|
|
2929
2945
|
/**
|
|
@@ -2964,11 +2980,11 @@ const se = Bs.exports, Uo = /* @__PURE__ */ D(class extends F {
|
|
|
2964
2980
|
this.__registerHost(), this.buttonClick = be(this, "buttonClick");
|
|
2965
2981
|
}
|
|
2966
2982
|
render() {
|
|
2967
|
-
return
|
|
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 :
|
|
2987
|
+
}), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : l(Dn, 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],
|
|
@@ -2995,7 +3011,7 @@ const zo = kt, jo = /* @__PURE__ */ D(class extends F {
|
|
|
2995
3011
|
super(), this.__registerHost();
|
|
2996
3012
|
}
|
|
2997
3013
|
render() {
|
|
2998
|
-
return
|
|
3014
|
+
return l("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, l("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
|
|
2999
3015
|
}
|
|
3000
3016
|
}, [4, "searchcraft-error-message"]);
|
|
3001
3017
|
function wt() {
|
|
@@ -3010,16 +3026,16 @@ function wt() {
|
|
|
3010
3026
|
});
|
|
3011
3027
|
}
|
|
3012
3028
|
const Vo = wt;
|
|
3013
|
-
function
|
|
3029
|
+
function Gs(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] = Gs(e[s], t[s]) : r[s] = t[s]);
|
|
3017
3033
|
return r;
|
|
3018
3034
|
}
|
|
3019
3035
|
function Bo(e) {
|
|
3020
3036
|
return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
|
|
3021
3037
|
}
|
|
3022
|
-
function
|
|
3038
|
+
function gs(e) {
|
|
3023
3039
|
const t = {}, r = (s) => {
|
|
3024
3040
|
var a;
|
|
3025
3041
|
t[s.path] = {
|
|
@@ -3053,13 +3069,13 @@ function Wo(e) {
|
|
|
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 Go(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 qo(e, t, r) {
|
|
|
3074
3090
|
count: 0,
|
|
3075
3091
|
path: "/",
|
|
3076
3092
|
children: a
|
|
3077
|
-
}, c =
|
|
3093
|
+
}, c = gs(o), u = gs(n), h = Go(c, u), i = Gs(h, u), p = Wo(i), g = qs(p);
|
|
3078
3094
|
return {
|
|
3079
3095
|
[e]: g.children
|
|
3080
3096
|
};
|
|
@@ -3113,7 +3129,7 @@ const Yo = /* @__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 = qo(this.fieldName, this.baseFacetRoot, o));
|
|
@@ -3149,14 +3165,14 @@ const Yo = /* @__PURE__ */ D(class extends F {
|
|
|
3149
3165
|
if (!this.fieldName)
|
|
3150
3166
|
return;
|
|
3151
3167
|
const r = (s = this.facetRoot) == null ? void 0 : s[this.fieldName];
|
|
3152
|
-
return
|
|
3168
|
+
return l("div", { class: "searchcraft-facet-list" }, !r && l("p", { class: "searchcraft-facet-list-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((a) => {
|
|
3153
3169
|
var n;
|
|
3154
3170
|
const o = a.children ? (n = a.children) == null ? void 0 : n.some((c) => this.selectedPaths[c.path]) : !1;
|
|
3155
|
-
return
|
|
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
|
-
} },
|
|
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
|
-
}, type: "checkbox" }),
|
|
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
|
}));
|
|
3161
3177
|
}
|
|
3162
3178
|
}, [0, "searchcraft-facet-list", {
|
|
@@ -3166,7 +3182,7 @@ const Yo = /* @__PURE__ */ D(class extends F {
|
|
|
3166
3182
|
selectedPaths: [32],
|
|
3167
3183
|
lastTimeTaken: [32]
|
|
3168
3184
|
}]);
|
|
3169
|
-
function
|
|
3185
|
+
function Ys() {
|
|
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 Zo =
|
|
3181
|
-
function
|
|
3196
|
+
const Zo = Ys;
|
|
3197
|
+
function Ze(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 Ye(e, t) {
|
|
|
3196
3212
|
return s;
|
|
3197
3213
|
}).filter((r) => !!r).join(t.delimiter || " ");
|
|
3198
3214
|
}
|
|
3199
|
-
function
|
|
3215
|
+
function Zs(e) {
|
|
3200
3216
|
switch (e) {
|
|
3201
3217
|
case "hour":
|
|
3202
3218
|
return 36e5;
|
|
@@ -3210,7 +3226,7 @@ function Ys(e) {
|
|
|
3210
3226
|
return 36e5;
|
|
3211
3227
|
}
|
|
3212
3228
|
}
|
|
3213
|
-
function
|
|
3229
|
+
function Qs(e) {
|
|
3214
3230
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
3215
3231
|
}
|
|
3216
3232
|
function Qo(e, t = "en-US", r = {
|
|
@@ -3220,8 +3236,8 @@ function Qo(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), u = Math.trunc(c / 60), h = Math.trunc(u / 60),
|
|
3224
|
-
return
|
|
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 Ko = /* @__PURE__ */ D(class extends F {
|
|
|
3239
3255
|
/**
|
|
3240
3256
|
* The granularity that the value must adhere to.
|
|
3241
3257
|
*/
|
|
3242
|
-
f(this, "granularity",
|
|
3258
|
+
f(this, "granularity", Zs("month"));
|
|
3243
3259
|
/** The type of data allowed. */
|
|
3244
3260
|
f(this, "dataType", "number");
|
|
3245
3261
|
f(this, "endValue", this.max);
|
|
@@ -3271,10 +3287,10 @@ const Ko = /* @__PURE__ */ D(class extends F {
|
|
|
3271
3287
|
}
|
|
3272
3288
|
render() {
|
|
3273
3289
|
const r = this.min, s = this.max, a = (this.startValue - r) / (s - r) * 100, o = (this.endValue - r) / (s - r) * 100, n = this.dataType === "number" ? this.startValue : new Date(this.startValue).getFullYear(), c = this.dataType === "number" ? this.endValue : new Date(this.endValue).getFullYear();
|
|
3274
|
-
return
|
|
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
|
-
} }),
|
|
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 Ko = /* @__PURE__ */ D(class extends F {
|
|
|
3285
3301
|
startValue: [32],
|
|
3286
3302
|
lastFocusedHandle: [32]
|
|
3287
3303
|
}]);
|
|
3288
|
-
function
|
|
3304
|
+
function Ks() {
|
|
3289
3305
|
if (typeof customElements > "u")
|
|
3290
3306
|
return;
|
|
3291
3307
|
["searchcraft-slider"].forEach((t) => {
|
|
@@ -3330,9 +3346,9 @@ const Xo = /* @__PURE__ */ D(class extends F {
|
|
|
3330
3346
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3331
3347
|
}
|
|
3332
3348
|
render() {
|
|
3333
|
-
return
|
|
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
|
}
|
|
3337
3353
|
}, [0, "searchcraft-toggle-button", {
|
|
3338
3354
|
label: [1],
|
|
@@ -3341,7 +3357,7 @@ const Xo = /* @__PURE__ */ D(class extends F {
|
|
|
3341
3357
|
unsubscribe: [32],
|
|
3342
3358
|
lastSearchTerm: [32]
|
|
3343
3359
|
}]);
|
|
3344
|
-
function
|
|
3360
|
+
function Xs() {
|
|
3345
3361
|
if (typeof customElements > "u")
|
|
3346
3362
|
return;
|
|
3347
3363
|
["searchcraft-toggle-button"].forEach((t) => {
|
|
@@ -3395,43 +3411,49 @@ const Jo = /* @__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
|
|
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 =
|
|
3409
|
-
return
|
|
3430
|
+
const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n = Zs(s.options.granularity);
|
|
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
|
} }));
|
|
3412
3434
|
}
|
|
3413
3435
|
case "numericRange": {
|
|
3414
3436
|
const s = r;
|
|
3415
|
-
return
|
|
3437
|
+
return l("div", { class: "searchcraft-filter-panel-section" }, l("p", { class: "searchcraft-filter-panel-label" }, r.label), l("searchcraft-slider", { min: s.options.min, max: s.options.max, granularity: s.options.granularity, onRangeChanged: (a) => {
|
|
3416
3438
|
this.handleNumericRangeChanged(s.fieldName, a.detail.startValue, a.detail.endValue);
|
|
3417
3439
|
} }));
|
|
3418
3440
|
}
|
|
3419
3441
|
case "facets": {
|
|
3420
3442
|
const s = r;
|
|
3421
|
-
return
|
|
3443
|
+
return l("div", { class: "searchcraft-filter-panel-section" }, l("p", { class: "searchcraft-filter-panel-label" }, r.label), l("searchcraft-facet-list", { fieldName: s.fieldName, onFacetSelectionUpdated: (a) => {
|
|
3422
3444
|
this.handleFacetSelectionUpdated(s.fieldName, a.detail.paths);
|
|
3423
3445
|
} }));
|
|
3424
3446
|
}
|
|
3425
3447
|
case "exactMatchToggle": {
|
|
3426
3448
|
const s = r;
|
|
3427
|
-
return
|
|
3449
|
+
return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
|
|
3428
3450
|
this.handleExactMatchToggleUpdated(a.detail);
|
|
3429
3451
|
} });
|
|
3430
3452
|
}
|
|
3431
3453
|
case "mostRecentToggle": {
|
|
3432
3454
|
const s = r;
|
|
3433
|
-
return
|
|
3434
|
-
this.handleMostRecentToggleUpdated(a.detail);
|
|
3455
|
+
return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
|
|
3456
|
+
this.handleMostRecentToggleUpdated(s.fieldName, a.detail);
|
|
3435
3457
|
} });
|
|
3436
3458
|
}
|
|
3437
3459
|
}
|
|
@@ -3451,13 +3473,13 @@ function ec() {
|
|
|
3451
3473
|
customElements.get(t) || customElements.define(t, Jo);
|
|
3452
3474
|
break;
|
|
3453
3475
|
case "searchcraft-facet-list":
|
|
3454
|
-
customElements.get(t) ||
|
|
3476
|
+
customElements.get(t) || Ys();
|
|
3455
3477
|
break;
|
|
3456
3478
|
case "searchcraft-slider":
|
|
3457
|
-
customElements.get(t) ||
|
|
3479
|
+
customElements.get(t) || Ks();
|
|
3458
3480
|
break;
|
|
3459
3481
|
case "searchcraft-toggle-button":
|
|
3460
|
-
customElements.get(t) ||
|
|
3482
|
+
customElements.get(t) || Xs();
|
|
3461
3483
|
break;
|
|
3462
3484
|
}
|
|
3463
3485
|
});
|
|
@@ -3473,13 +3495,13 @@ const tc = ec, rc = /* @__PURE__ */ D(class extends F {
|
|
|
3473
3495
|
this.__registerHost();
|
|
3474
3496
|
}
|
|
3475
3497
|
render() {
|
|
3476
|
-
return
|
|
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) => {
|
|
@@ -3577,14 +3599,14 @@ const sc = /* @__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"
|
|
3584
3606
|
}), o = {
|
|
3585
3607
|
gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
|
|
3586
3608
|
};
|
|
3587
|
-
return
|
|
3609
|
+
return l("form", { key: "6af89b2ab634e0f3e0ef575f98f33d091602f95a", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, l("div", { key: "93fea8e2b80468afeb6014122d5b749d74bfaf35", class: s, style: o }, l("div", { key: "1e5a416843b99aec68c4672a9c78f607347dc9d1", class: "searchcraft-input-form-button" }, l("searchcraft-button", { key: "c38c1df0ce20f914ed76fbc0acad5a22b40e6fff", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && l("div", { key: "2169a4466b0fdc8075c0dc74da442aef28a84d65", class: "searchcraft-input-form-label" }, l("searchcraft-input-label", { key: "a263b5aa2a4d50d297f06c1fe9e6afb64763f097", label: this.inputLabel })), this.error && l("div", { key: "49be2ac0f2d01916e5ea533e6406ee9d4d932178", class: "searchcraft-input-form-error-message" }, l("searchcraft-error-message", { key: "310c9aebcf580d4abe92d288c6b70a5adf083f8e" }, "Something went wrong.")), l("div", { key: "f4702e368815e049586e97cf59541b2dc5460fc0", class: "searchcraft-input-form-input-wrapper" }, l("input", { key: "a8cddd5e937eee1d30fb98eaaa3dbffe96c192ce", autoComplete: "off", class: "searchcraft-input-form-input", onFocus: () => {
|
|
3588
3610
|
var n;
|
|
3589
3611
|
return (n = this.inputFocus) == null ? void 0 : n.emit();
|
|
3590
3612
|
}, onBlur: () => {
|
|
@@ -3592,7 +3614,7 @@ const sc = /* @__PURE__ */ D(class extends F {
|
|
|
3592
3614
|
return (n = this.inputBlur) == null ? void 0 : n.emit();
|
|
3593
3615
|
}, onInput: (n) => {
|
|
3594
3616
|
this.handleInput(n);
|
|
3595
|
-
}, placeholder: this.placeholderValue, type: "text", value: this.inputValue }),
|
|
3617
|
+
}, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), l("div", { key: "616b4dde1ba016cf6a2fba8594a99a3a3f584ef5", class: "searchcraft-input-form-input-icon" }, l("svg", { key: "daaef561677a06a76813375e429be7e053b8b122", class: "searchcraft-input-form-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, l("title", { key: "e6d82ca64dd9bfc663813c239d11e5652aa0b9a1" }, "Search icon"), l("path", { key: "1df856c98c2063c1d0c80027255935f73b513939", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && l("button", { key: "8dd6dfefe0ba909657bd436b559ce35b5004f9ae", type: "button", class: "searchcraft-input-form-clear-button", onClick: this.handleClearInput }, l("svg", { key: "bcdba04d5c0949cacc8e1962d2b3cd40ad995de6", class: "searchcraft-input-form-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, l("title", { key: "e01e7fb9b23daf9434520c4c68c0d7539b37d1f8" }, "Clear icon"), l("path", { key: "ce526d332b6e352cd9cf6008ee2f7497c6769782", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
|
|
3596
3618
|
}
|
|
3597
3619
|
static get watchers() {
|
|
3598
3620
|
return {
|
|
@@ -3612,7 +3634,7 @@ const sc = /* @__PURE__ */ D(class extends F {
|
|
|
3612
3634
|
}, void 0, {
|
|
3613
3635
|
core: ["onCoreChange"]
|
|
3614
3636
|
}]);
|
|
3615
|
-
function
|
|
3637
|
+
function Js() {
|
|
3616
3638
|
if (typeof customElements > "u")
|
|
3617
3639
|
return;
|
|
3618
3640
|
["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
|
|
@@ -3627,12 +3649,12 @@ function Xs() {
|
|
|
3627
3649
|
customElements.get(t) || wt();
|
|
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 ac =
|
|
3657
|
+
const ac = Js, nc = dr, oc = /* @__PURE__ */ D(class extends F {
|
|
3636
3658
|
constructor() {
|
|
3637
3659
|
super();
|
|
3638
3660
|
// store vars
|
|
@@ -3664,27 +3686,27 @@ const ac = Xs, nc = hr, oc = /* @__PURE__ */ D(class extends F {
|
|
|
3664
3686
|
this.setSearchResultsPage(r);
|
|
3665
3687
|
}
|
|
3666
3688
|
renderOddPaginationItem(r) {
|
|
3667
|
-
return
|
|
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) ?
|
|
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
|
-
}), onClick: () => this.handleGoToPage(r), type: "button" }, r)) :
|
|
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 ?
|
|
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
|
-
}), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) :
|
|
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
|
}
|
|
3683
3705
|
render() {
|
|
3684
3706
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
3685
|
-
return
|
|
3707
|
+
return l("div", { class: "searchcraft-pagination" }, l("div", { class: "searchcraft-pagination-control" }, l("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "Previous", iconPosition: "left", icon: l("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", null, "Previous page icon"), l("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })), l("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), l("div", { class: "searchcraft-pagination-control" }, l("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
|
|
3686
3708
|
this.handleGoToPage(Math.min(this.searchResultsPagesCount, this.searchResultsPage + 1));
|
|
3687
|
-
}, label: "Next", iconPosition: "right", icon:
|
|
3709
|
+
}, label: "Next", iconPosition: "right", icon: l("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", null, "Next page icon"), l("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })));
|
|
3688
3710
|
}
|
|
3689
3711
|
}, [0, "searchcraft-pagination", {
|
|
3690
3712
|
searchTerm: [32],
|
|
@@ -3728,10 +3750,10 @@ const ic = cc, lc = /* @__PURE__ */ D(class extends F {
|
|
|
3728
3750
|
f(this, "userAgent");
|
|
3729
3751
|
f(this, "unsubscribe", () => {
|
|
3730
3752
|
});
|
|
3731
|
-
f(this, "renderOptionSymbol", () =>
|
|
3732
|
-
f(this, "renderCtrlSymbol", () =>
|
|
3733
|
-
f(this, "renderWindowsMetaSymbol", () =>
|
|
3734
|
-
f(this, "renderMacMetaSymbol", () =>
|
|
3753
|
+
f(this, "renderOptionSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Option key"), l("path", { d: "M283,112c0-11.58,9.42-21,21-21h160c11.58,0,21,9.42,21,21s-9.42,21-21,21h-160c-11.58,0-21-9.42-21-21Z", fill: "currentColor" }), l("path", { d: "M485,400c0,11.58-9.42,21-21,21h-128c-8.29,0-15.82-4.9-19.19-12.47l-122.46-275.53H48c-11.58,0-21-9.42-21-21s9.42-21,21-21h160c8.29,0,15.82,4.9,19.19,12.47l122.46,275.53h114.35c11.58,0,21,9.42,21,21Z", fill: "currentColor" })));
|
|
3754
|
+
f(this, "renderCtrlSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Ctrl key"), l("path", { d: "M388.95,209.4c-.37,5.59-2.9,10.71-7.12,14.4-3.83,3.35-8.74,5.2-13.82,5.2-6.06,0-11.83-2.61-15.81-7.17l-96.2-109.94-96.2,109.94c-3.98,4.56-9.75,7.17-15.81,7.17-5.08,0-9.99-1.84-13.82-5.2-4.22-3.69-6.75-8.81-7.12-14.4-.38-5.6,1.45-11.01,5.15-15.23l112-128c3.98-4.56,9.74-7.17,15.8-7.17s11.82,2.61,15.8,7.17l112,128c3.7,4.22,5.53,9.63,5.15,15.23Z", fill: "currentColor" })));
|
|
3755
|
+
f(this, "renderWindowsMetaSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Windows meta key"), l("path", { d: "M206.115 255.957c-23.854-12.259-47.043-18.479-68.94-18.479-2.978 0-5.976 0.090-8.974 0.354-27.94 2.312-53.461 9.684-69.875 15.414-4.354 1.599-8.817 3.288-13.415 5.153l-44.911 155.697c30.851-11.416 58.146-16.969 83.135-16.969 40.423 0 69.764 15.104 93.996 30.652 11.481-38.959 39.022-133.045 47.241-161.162-5.975-3.642-12.038-7.285-18.257-10.66zM264.174 295.535l-45.223 157.074c13.416 7.686 58.549 32.025 93.106 32.025 27.896 0 59.126-7.148 95.417-21.896l43.178-150.988c-29.316 9.461-57.438 14.26-83.732 14.26-47.975 0-81.557-15.549-102.746-30.475zM146.411 184.395c38.559 0.399 67.076 15.104 90.708 30.251l46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3-12.193-2.842-25.010-4.308-38.602-4.308-25.898 0.488-54.194 6.973-86.444 19.9l-44.22 155.298c32.404-12.218 60.322-18.17 86.043-18.17 0.023 0.001 0.068 0.001 0.068 0.001zM512 99.062c-29.407 11.416-58.104 17.233-85.514 17.233-45.843 0-79.646-15.901-101.547-31.183l-45.975 159.118c30.873 19.854 64.145 29.939 99.061 29.939 28.474 0 57.97-6.84 87.731-20.344l-0.091-1.111 1.867-0.443 44.468-153.209z", fill: "currentColor" })));
|
|
3756
|
+
f(this, "renderMacMetaSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Mac meta key"), l("path", { d: "M368,283h-43v-54h43c46.87,0,85-38.13,85-85s-38.13-85-85-85-85,38.13-85,85v43h-54v-43c0-46.87-38.13-85-85-85s-85,38.13-85,85,38.13,85,85,85h43v54h-43c-46.87,0-85,38.13-85,85s38.13,85,85,85,85-38.13,85-85v-43h54v43c0,46.87,38.13,85,85,85s85-38.13,85-85-38.13-85-85-85ZM325,144c0-23.71,19.29-43,43-43s43,19.29,43,43-19.29,43-43,43h-43v-43ZM144,187c-23.71,0-43-19.29-43-43s19.29-43,43-43,43,19.29,43,43v43h-43ZM187,368c0,23.71-19.29,43-43,43s-43-19.29-43-43,19.29-43,43-43h43v43ZM283,283h-54v-54h54v54ZM368,411c-23.71,0-43-19.29-43-43v-43h43c23.71,0,43,19.29,43,43s-19.29,43-43,43Z", fill: "currentColor" })));
|
|
3735
3757
|
this.__registerHost();
|
|
3736
3758
|
}
|
|
3737
3759
|
handleOnClick() {
|
|
@@ -3770,18 +3792,18 @@ const ic = cc, lc = /* @__PURE__ */ D(class extends F {
|
|
|
3770
3792
|
}
|
|
3771
3793
|
}
|
|
3772
3794
|
renderSkeuomorphicSlot() {
|
|
3773
|
-
return
|
|
3795
|
+
return l("div", { class: "searchcraft-popover-button-wrapper" }, l("div", { class: "searchcraft-popover-button-input" }, l("svg", { class: "searchcraft-popover-button-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", version: "1.1" }, l("title", null, "Search icon"), l("path", { d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), l("span", null, "Search")), l("div", { class: "searchcraft-popover-button-keycaps" }, l("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier" }, l("span", null, this.hotkeyModifierSymbol)), l("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key" }, l("span", null, this.hotkey))));
|
|
3774
3796
|
}
|
|
3775
3797
|
renderSlot() {
|
|
3776
3798
|
switch (this.type) {
|
|
3777
3799
|
case "skeuomorphic":
|
|
3778
3800
|
return this.renderSkeuomorphicSlot();
|
|
3779
3801
|
default:
|
|
3780
|
-
return
|
|
3802
|
+
return l("div", null, l("slot", null));
|
|
3781
3803
|
}
|
|
3782
3804
|
}
|
|
3783
3805
|
render() {
|
|
3784
|
-
return
|
|
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: et }) : 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],
|
|
@@ -3821,12 +3843,12 @@ const hc = uc, dc = /* @__PURE__ */ D(class extends F {
|
|
|
3821
3843
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3822
3844
|
}
|
|
3823
3845
|
render() {
|
|
3824
|
-
return
|
|
3846
|
+
return l("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, l("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${Qs(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 ea() {
|
|
3830
3852
|
if (typeof customElements > "u")
|
|
3831
3853
|
return;
|
|
3832
3854
|
["searchcraft-popover-footer"].forEach((t) => {
|
|
@@ -3837,7 +3859,7 @@ function Js() {
|
|
|
3837
3859
|
}
|
|
3838
3860
|
});
|
|
3839
3861
|
}
|
|
3840
|
-
const fc =
|
|
3862
|
+
const fc = ea, pc = /* @__PURE__ */ D(class extends F {
|
|
3841
3863
|
constructor() {
|
|
3842
3864
|
super();
|
|
3843
3865
|
f(this, "item");
|
|
@@ -3865,7 +3887,7 @@ const fc = Js, pc = /* @__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 = Ze(r, (s = this.popoverResultMappings) == null ? void 0 : s.title), this.subtitle = Ze(r, (a = this.popoverResultMappings) == null ? void 0 : a.subtitle), this.href = Ze(r, (o = this.popoverResultMappings) == null ? void 0 : o.href), this.imageSource = Ze(r, (n = this.popoverResultMappings) == null ? void 0 : n.imageSource), this.imageAlt = Ze(r, (c = this.popoverResultMappings) == null ? void 0 : c.imageAlt);
|
|
3869
3891
|
}
|
|
3870
3892
|
connectedCallback() {
|
|
3871
3893
|
this.item && this.mapValuesFromDocument(this.item.document);
|
|
@@ -3873,7 +3895,7 @@ const fc = Js, pc = /* @__PURE__ */ D(class extends F {
|
|
|
3873
3895
|
disconnectedCallback() {
|
|
3874
3896
|
}
|
|
3875
3897
|
render() {
|
|
3876
|
-
return
|
|
3898
|
+
return l("div", { key: "63a2f070ce71cd1330105c03985e32cd1f228b29", class: "searchcraft-popover-list-item" }, l("a", { key: "d9bb09248be9be235147acdfeed1a9f29cd123a2", class: "searchcraft-popover-list-item-link", href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && l("div", { key: "6af7c3e754885730d8651a593f13b7b5b704a26d", class: "searchcraft-popover-list-item-image-wrapper" }, l("img", { key: "74c7e53467efd83ae95439a7065c1de2748113f5", alt: this.imageAlt, src: this.imageSource, class: "searchcraft-popover-list-item-image" })), l("div", { key: "25a12e5cf582b248773005f5fb58f7a15304d2d1", class: "searchcraft-popover-list-item-content" }, this.title && l("p", { key: "8169f7730feb832178adbc9bdb14a089e955a2ad", class: "searchcraft-popover-list-item-content-title" }, this.title), this.subtitle && l("p", { key: "96812df1bab635e3865bdfdb31f133ca629d800e", class: "searchcraft-popover-list-item-content-subtitle" }, this.subtitle))));
|
|
3877
3899
|
}
|
|
3878
3900
|
}, [0, "searchcraft-popover-list-item", {
|
|
3879
3901
|
item: [16],
|
|
@@ -3885,7 +3907,7 @@ const fc = Js, pc = /* @__PURE__ */ D(class extends F {
|
|
|
3885
3907
|
imageSource: [32],
|
|
3886
3908
|
imageAlt: [32]
|
|
3887
3909
|
}]);
|
|
3888
|
-
function
|
|
3910
|
+
function fr() {
|
|
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 bs;
|
|
3900
3922
|
const mc = /* @__PURE__ */ D(class extends F {
|
|
3901
3923
|
constructor() {
|
|
3902
3924
|
super();
|
|
@@ -3912,46 +3934,46 @@ const mc = /* @__PURE__ */ D(class extends F {
|
|
|
3912
3934
|
f(this, "adClientResponseItems");
|
|
3913
3935
|
f(this, "searchResultsPage");
|
|
3914
3936
|
f(this, "searchResultsPerPage");
|
|
3915
|
-
f(this, "config", (
|
|
3937
|
+
f(this, "config", (bs = $.getState().core) == null ? void 0 : bs.config);
|
|
3916
3938
|
this.__registerHost();
|
|
3917
3939
|
}
|
|
3918
3940
|
renderWithADMAds() {
|
|
3919
3941
|
var r, s;
|
|
3920
|
-
return
|
|
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 u, h,
|
|
3924
|
-
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((
|
|
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
|
-
r.push(
|
|
3948
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
|
|
3927
3949
|
c.forEach((g, k) => {
|
|
3928
3950
|
if (s && k % s === 0 && k + s < c.length && k >= s)
|
|
3929
3951
|
for (let b = 0; b < a; b++)
|
|
3930
|
-
r.push(
|
|
3931
|
-
r.push(
|
|
3952
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g.id}-ad-${b}` }));
|
|
3953
|
+
r.push(l("searchcraft-popover-list-item", { item: g, key: g.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + k }));
|
|
3932
3954
|
});
|
|
3933
3955
|
for (let g = 0; g < n; g++)
|
|
3934
|
-
r.push(
|
|
3935
|
-
return
|
|
3956
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
|
|
3957
|
+
return l("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3936
3958
|
}
|
|
3937
3959
|
renderWithNativoAds() {
|
|
3938
|
-
var h,
|
|
3939
|
-
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((
|
|
3960
|
+
var h, i, p, g, k;
|
|
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 = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
|
|
3940
3962
|
for (let b = 0; b < n; b++)
|
|
3941
|
-
r.push(
|
|
3963
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
|
|
3942
3964
|
u.forEach((b, P) => {
|
|
3943
3965
|
if (a && (P + s) % a === 0 && P + a < u.length && P >= a)
|
|
3944
3966
|
for (let _ = 0; _ < o; _++)
|
|
3945
|
-
r.push(
|
|
3946
|
-
r.push(
|
|
3967
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b.id}-ad-${_}` }));
|
|
3968
|
+
r.push(l("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + P }));
|
|
3947
3969
|
});
|
|
3948
3970
|
for (let b = 0; b < c; b++)
|
|
3949
|
-
r.push(
|
|
3950
|
-
return
|
|
3971
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
|
|
3972
|
+
return l("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3951
3973
|
}
|
|
3952
3974
|
renderWithNoAds() {
|
|
3953
3975
|
var r;
|
|
3954
|
-
return
|
|
3976
|
+
return l("div", { class: "searchcraft-popover-list-view" }, (r = this.searchClientResponseItems) == null ? void 0 : r.map((s, a) => l("searchcraft-popover-list-item", { item: s, key: s.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + a })));
|
|
3955
3977
|
}
|
|
3956
3978
|
render() {
|
|
3957
3979
|
var r;
|
|
@@ -3973,7 +3995,7 @@ const mc = /* @__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 ta() {
|
|
3977
3999
|
if (typeof customElements > "u")
|
|
3978
4000
|
return;
|
|
3979
4001
|
["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -3985,7 +4007,7 @@ function ea() {
|
|
|
3985
4007
|
customElements.get(t) || St();
|
|
3986
4008
|
break;
|
|
3987
4009
|
case "searchcraft-popover-list-item":
|
|
3988
|
-
customElements.get(t) ||
|
|
4010
|
+
customElements.get(t) || fr();
|
|
3989
4011
|
break;
|
|
3990
4012
|
}
|
|
3991
4013
|
});
|
|
@@ -4121,21 +4143,21 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
4121
4143
|
}
|
|
4122
4144
|
renderInlinePopover() {
|
|
4123
4145
|
const r = this.hasResultsToShow && this.isFocused;
|
|
4124
|
-
return
|
|
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
|
|
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
|
|
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
|
}
|
|
4140
4162
|
render() {
|
|
4141
4163
|
switch (this.type) {
|
|
@@ -4165,7 +4187,7 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
4165
4187
|
searchResultsPerPage: [32],
|
|
4166
4188
|
modalElement: [32]
|
|
4167
4189
|
}]);
|
|
4168
|
-
function
|
|
4190
|
+
function ra() {
|
|
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) => {
|
|
@@ -4183,27 +4205,27 @@ function ta() {
|
|
|
4183
4205
|
customElements.get(t) || wt();
|
|
4184
4206
|
break;
|
|
4185
4207
|
case "searchcraft-input-form":
|
|
4186
|
-
customElements.get(t) ||
|
|
4208
|
+
customElements.get(t) || Js();
|
|
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) || ea();
|
|
4193
4215
|
break;
|
|
4194
4216
|
case "searchcraft-popover-form":
|
|
4195
|
-
customElements.get(t) ||
|
|
4217
|
+
customElements.get(t) || ra();
|
|
4196
4218
|
break;
|
|
4197
4219
|
case "searchcraft-popover-list-item":
|
|
4198
|
-
customElements.get(t) ||
|
|
4220
|
+
customElements.get(t) || fr();
|
|
4199
4221
|
break;
|
|
4200
4222
|
case "searchcraft-popover-list-view":
|
|
4201
|
-
customElements.get(t) ||
|
|
4223
|
+
customElements.get(t) || ta();
|
|
4202
4224
|
break;
|
|
4203
4225
|
}
|
|
4204
4226
|
});
|
|
4205
4227
|
}
|
|
4206
|
-
const vc =
|
|
4228
|
+
const vc = ra, bc = fr, yc = ta, Cc = /* @__PURE__ */ D(class extends F {
|
|
4207
4229
|
constructor() {
|
|
4208
4230
|
super();
|
|
4209
4231
|
/**
|
|
@@ -4232,11 +4254,11 @@ const vc = ta, bc = dr, yc = ea, Cc = /* @__PURE__ */ D(class extends F {
|
|
|
4232
4254
|
this.unsubscribe && this.unsubscribe();
|
|
4233
4255
|
}
|
|
4234
4256
|
render() {
|
|
4235
|
-
return !this.searchTerm || this.searchResultsCount === 0 ? null :
|
|
4257
|
+
return !this.searchTerm || this.searchResultsCount === 0 ? null : l("p", { class: "searchcraft-results-info" }, typeof this.template < "u" ? this.template({
|
|
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: et }) : `${Qs(this.count)} results found in ${this.responseTime}ms`);
|
|
4240
4262
|
}
|
|
4241
4263
|
}, [0, "searchcraft-results-info", {
|
|
4242
4264
|
template: [16],
|
|
@@ -4277,12 +4299,12 @@ const kc = Sc, wc = /* @__PURE__ */ D(class extends F {
|
|
|
4277
4299
|
f(this, "template");
|
|
4278
4300
|
f(this, "templateHtml");
|
|
4279
4301
|
f(this, "handleResultContainerClick", (r) => {
|
|
4280
|
-
var
|
|
4302
|
+
var i;
|
|
4281
4303
|
const s = $.getState(), a = s.getSearchcraftCore();
|
|
4282
4304
|
if (!r.target)
|
|
4283
4305
|
return;
|
|
4284
4306
|
const n = r.target.closest("a");
|
|
4285
|
-
if (!n || !((
|
|
4307
|
+
if (!n || !((i = this.hostElement) != null && i.contains(n)) || !a || !a.measureClient)
|
|
4286
4308
|
return;
|
|
4287
4309
|
const c = this.documentPosition, u = s.searchTerm, h = s.searchClientResponseItems.length || 0;
|
|
4288
4310
|
a.measureClient.sendMeasureEvent("document_clicked", {
|
|
@@ -4303,7 +4325,8 @@ const kc = Sc, wc = /* @__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: et,
|
|
4329
|
+
source_index: this.item.source_index
|
|
4307
4330
|
});
|
|
4308
4331
|
} catch (s) {
|
|
4309
4332
|
console.error("Invalid search result template:", s);
|
|
@@ -4311,7 +4334,7 @@ const kc = Sc, wc = /* @__PURE__ */ D(class extends F {
|
|
|
4311
4334
|
}
|
|
4312
4335
|
render() {
|
|
4313
4336
|
if (this.item)
|
|
4314
|
-
return typeof this.template > "u" ?
|
|
4337
|
+
return typeof this.template > "u" ? l("div", { class: "searchcraft-search-result searchcraft-search-result-no-template", onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown }, Object.entries(this.item.document).map(([r, s]) => l("p", { key: r }, l("strong", null, r), ": ", s))) : l("div", { class: "searchcraft-search-result", innerHTML: this.templateHtml, onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown });
|
|
4315
4338
|
}
|
|
4316
4339
|
}, [0, "searchcraft-search-result", {
|
|
4317
4340
|
item: [16],
|
|
@@ -4320,7 +4343,7 @@ const kc = Sc, wc = /* @__PURE__ */ D(class extends F {
|
|
|
4320
4343
|
template: [16],
|
|
4321
4344
|
templateHtml: [32]
|
|
4322
4345
|
}]);
|
|
4323
|
-
function
|
|
4346
|
+
function sa() {
|
|
4324
4347
|
if (typeof customElements > "u")
|
|
4325
4348
|
return;
|
|
4326
4349
|
["searchcraft-search-result"].forEach((t) => {
|
|
@@ -4331,7 +4354,7 @@ function ra() {
|
|
|
4331
4354
|
}
|
|
4332
4355
|
});
|
|
4333
4356
|
}
|
|
4334
|
-
const xc =
|
|
4357
|
+
const xc = sa, Rc = /* @__PURE__ */ D(class extends F {
|
|
4335
4358
|
constructor() {
|
|
4336
4359
|
super();
|
|
4337
4360
|
/**
|
|
@@ -4372,50 +4395,50 @@ const xc = ra, Rc = /* @__PURE__ */ D(class extends F {
|
|
|
4372
4395
|
], this.isSearchInProgress = r.isSearchInProgress, this.searchClientResponseItems = [...r.searchClientResponseItems], this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchTerm = r.searchTerm;
|
|
4373
4396
|
}
|
|
4374
4397
|
renderEmptyState() {
|
|
4375
|
-
return
|
|
4398
|
+
return l("div", { class: "searchcraft-search-results-empty-state" }, l("slot", { name: "empty-search" }));
|
|
4376
4399
|
}
|
|
4377
4400
|
renderNoResultsFoundState() {
|
|
4378
|
-
return
|
|
4401
|
+
return l("div", { class: "searchcraft-search-results" }, l("div", { class: "searchcraft-search-results-error-message" }, l("searchcraft-error-message", null, 'No search results found for "', this.searchTerm, '" query.')));
|
|
4379
4402
|
}
|
|
4380
4403
|
renderWithADMAds() {
|
|
4381
4404
|
var s, a, o;
|
|
4382
4405
|
const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
|
|
4383
|
-
return
|
|
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 u, h,
|
|
4387
|
-
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((
|
|
4409
|
+
var u, h, i, p, g, k;
|
|
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 : (k = this.initialSearchClientResponseItems) != null && k.length ? this.initialSearchClientResponseItems : [];
|
|
4388
4411
|
for (let b = 0; b < o; b++)
|
|
4389
|
-
r.push(
|
|
4412
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
|
|
4390
4413
|
c.forEach((b, P) => {
|
|
4391
4414
|
if (s && P % s === 0 && P + s < c.length && P >= s)
|
|
4392
4415
|
for (let _ = 0; _ < a; _++)
|
|
4393
|
-
r.push(
|
|
4394
|
-
r.push(
|
|
4416
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b.id}-ad-${_}` }));
|
|
4417
|
+
r.push(l("searchcraft-search-result", { key: b.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + P, index: P, item: b, template: this.template }));
|
|
4395
4418
|
});
|
|
4396
4419
|
for (let b = 0; b < n; b++)
|
|
4397
|
-
r.push(
|
|
4398
|
-
return
|
|
4420
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
|
|
4421
|
+
return l("div", { class: "searchcraft-search-results" }, r);
|
|
4399
4422
|
}
|
|
4400
4423
|
renderWithNativoAds() {
|
|
4401
|
-
var h,
|
|
4402
|
-
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((
|
|
4424
|
+
var h, i, p, g, k, b, P;
|
|
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 = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = (b = this.searchClientResponseItems) != null && b.length ? this.searchClientResponseItems : (P = this.initialSearchClientResponseItems) != null && P.length ? this.initialSearchClientResponseItems : [];
|
|
4403
4426
|
for (let _ = 0; _ < n; _++)
|
|
4404
|
-
r.push(
|
|
4427
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
|
|
4405
4428
|
u.forEach((_, H) => {
|
|
4406
4429
|
if (a && (H + s) % a === 0 && H + a < u.length && H >= a)
|
|
4407
4430
|
for (let I = 0; I < o; I++)
|
|
4408
|
-
r.push(
|
|
4409
|
-
r.push(
|
|
4431
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_.id}-ad-${I}` }));
|
|
4432
|
+
r.push(l("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + H, index: H, item: _, template: this.template }));
|
|
4410
4433
|
});
|
|
4411
4434
|
for (let _ = 0; _ < c; _++)
|
|
4412
|
-
r.push(
|
|
4413
|
-
return
|
|
4435
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
|
|
4436
|
+
return l("div", { class: "searchcraft-search-results" }, r);
|
|
4414
4437
|
}
|
|
4415
4438
|
renderWithNoAds() {
|
|
4416
4439
|
var s, a;
|
|
4417
4440
|
const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
|
|
4418
|
-
return
|
|
4441
|
+
return l("div", { class: "searchcraft-search-results" }, r.map((o, n) => l("searchcraft-search-result", { key: o.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + n, index: n, item: o, template: this.template })));
|
|
4419
4442
|
}
|
|
4420
4443
|
render() {
|
|
4421
4444
|
var a;
|
|
@@ -4462,7 +4485,7 @@ function Ec() {
|
|
|
4462
4485
|
customElements.get(t) || wt();
|
|
4463
4486
|
break;
|
|
4464
4487
|
case "searchcraft-search-result":
|
|
4465
|
-
customElements.get(t) ||
|
|
4488
|
+
customElements.get(t) || sa();
|
|
4466
4489
|
break;
|
|
4467
4490
|
}
|
|
4468
4491
|
});
|
|
@@ -4516,7 +4539,7 @@ const Tc = Ec, Pc = /* @__PURE__ */ D(class extends F {
|
|
|
4516
4539
|
this.setSearchResultsPage(r);
|
|
4517
4540
|
}
|
|
4518
4541
|
render() {
|
|
4519
|
-
return
|
|
4542
|
+
return l("div", { key: "15ecbf48c824a161cd83bdab99dace8e44f1ab39", class: "searchcraft-select" }, this.label && l("label", { key: "aba433ae9c27c9405099cffcef923c3ad22d7fda", class: "searchcraft-select-label", id: this.labelId || `${this.inputId}-label`, htmlFor: this.inputId }, this.label), l("div", { key: "8df8a2ff05924c9c55cdd6e3827cd927cddab82a", class: "searchcraft-select-input-wrapper" }, l("select", { key: "1d5f492c2255f8ca1b6ea5e04a2726dda2f2c52f", "aria-labelledby": this.label ? this.labelId || `${this.inputId}-label` : void 0, class: "searchcraft-select-input", disabled: this.disabled, id: this.inputId, name: this.name, onChange: this.handleSelectChange }, (typeof this.options == "string" ? JSON.parse(this.options) : this.options).map(({ label: r, value: s, selected: a }) => l("option", { key: s, value: s, selected: a }, r))), l("svg", { key: "0ec6892b529f2e70027aadea47208582a65a97b7", class: "searchcraft-select-input-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", { key: "bced6b62378491d1d1c629b602d7d033d912c761" }, "Select dropdown icon"), l("path", { key: "659f8ebf9129e2e7941da949d29688c41c1472bb", d: "M5 7.5L10 12.5L15 7.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.caption && l("p", { key: "51217d926f68f79b6c3514f5fd769b56549fdce9", class: "searchcraft-select-caption" }, this.caption));
|
|
4520
4543
|
}
|
|
4521
4544
|
}, [0, "searchcraft-select", {
|
|
4522
4545
|
caption: [1],
|
|
@@ -4530,7 +4553,7 @@ const Tc = Ec, Pc = /* @__PURE__ */ D(class extends F {
|
|
|
4530
4553
|
setSearchResultsPage: [32],
|
|
4531
4554
|
setSearchResultsPerPage: [32]
|
|
4532
4555
|
}]);
|
|
4533
|
-
function
|
|
4556
|
+
function aa() {
|
|
4534
4557
|
if (typeof customElements > "u")
|
|
4535
4558
|
return;
|
|
4536
4559
|
["searchcraft-select"].forEach((t) => {
|
|
@@ -4577,7 +4600,7 @@ const $c = /* @__PURE__ */ D(class extends F {
|
|
|
4577
4600
|
}
|
|
4578
4601
|
render() {
|
|
4579
4602
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
4580
|
-
return
|
|
4603
|
+
return l("div", { class: "searchcraft-search-results-per-page" }, l("div", { class: "searchcraft-search-results-per-page-select" }, l("label", { class: "searchcraft-search-results-per-page-select-label", htmlFor: "searchcraft-search-results-per-page-select-input" }, "Results Per Page"), l("div", { class: "searchcraft-search-results-per-page-select-input" }, l("searchcraft-select", { inputId: "searchcraft-search-results-per-page-select-input", name: "results-per-page", options: [...Array(5)].map((r, s) => {
|
|
4581
4604
|
const a = this.initialSearchResultsPerPage + Number(this.increment) * s;
|
|
4582
4605
|
return {
|
|
4583
4606
|
label: `${a}`,
|
|
@@ -4607,18 +4630,18 @@ function _c() {
|
|
|
4607
4630
|
customElements.get(t) || customElements.define(t, $c);
|
|
4608
4631
|
break;
|
|
4609
4632
|
case "searchcraft-select":
|
|
4610
|
-
customElements.get(t) ||
|
|
4633
|
+
customElements.get(t) || aa();
|
|
4611
4634
|
break;
|
|
4612
4635
|
}
|
|
4613
4636
|
});
|
|
4614
4637
|
}
|
|
4615
|
-
const Ic = _c, Ac = sa, Mc = Qs, Lc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-adm-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-adm-ad-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
4638
|
+
const Ic = _c, Ac = aa, Mc = Ks, Lc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-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 */
|
|
4616
4639
|
`, Oc = /* @__PURE__ */ D(class extends F {
|
|
4617
4640
|
constructor() {
|
|
4618
4641
|
super(), this.__registerHost();
|
|
4619
4642
|
}
|
|
4620
4643
|
render() {
|
|
4621
|
-
return
|
|
4644
|
+
return l("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, Lc);
|
|
4622
4645
|
}
|
|
4623
4646
|
}, [0, "searchcraft-theme"]);
|
|
4624
4647
|
function Fc() {
|
|
@@ -4632,16 +4655,16 @@ function Fc() {
|
|
|
4632
4655
|
}
|
|
4633
4656
|
});
|
|
4634
4657
|
}
|
|
4635
|
-
const Dc = Fc, Hc =
|
|
4658
|
+
const Dc = Fc, Hc = Xs, na = () => {
|
|
4636
4659
|
No(), zo(), Vo(), Zo(), tc(), ac(), nc(), ic(), hc(), fc(), vc(), bc(), yc(), kc(), xc(), Ic(), Tc(), Ac(), Mc(), Dc(), Hc();
|
|
4637
4660
|
};
|
|
4638
|
-
globalThis.__scDefineCustomElements__ =
|
|
4639
|
-
const Nc = "@searchcraft/react-sdk", Uc = "0.10.
|
|
4661
|
+
globalThis.__scDefineCustomElements__ = na;
|
|
4662
|
+
const Nc = "@searchcraft/react-sdk", Uc = "0.10.3", vs = {
|
|
4640
4663
|
name: Nc,
|
|
4641
4664
|
version: Uc
|
|
4642
4665
|
};
|
|
4643
4666
|
async function ve(e, t) {
|
|
4644
|
-
const r = Object.entries(t).map(([o, n]) => typeof n == "boolean" ? n ? o : "" : `${o}="${String(n)}"`).filter(Boolean).join(" "), s = `<${e} ${r}></${e}>`, a = await
|
|
4667
|
+
const r = Object.entries(t).map(([o, n]) => typeof n == "boolean" ? n ? o : "" : `${o}="${String(n)}"`).filter(Boolean).join(" "), s = `<${e} ${r}></${e}>`, a = await Ya(s, {
|
|
4645
4668
|
fullDocument: !1,
|
|
4646
4669
|
clientHydrateAnnotations: !0
|
|
4647
4670
|
});
|
|
@@ -4785,8 +4808,8 @@ async function yi(e) {
|
|
|
4785
4808
|
class Ci extends mo {
|
|
4786
4809
|
constructor(t) {
|
|
4787
4810
|
super(t, {
|
|
4788
|
-
sdkName:
|
|
4789
|
-
sdkVersion:
|
|
4811
|
+
sdkName: vs.name,
|
|
4812
|
+
sdkVersion: vs.version
|
|
4790
4813
|
});
|
|
4791
4814
|
}
|
|
4792
4815
|
}
|
|
@@ -4794,7 +4817,7 @@ const Si = () => {
|
|
|
4794
4817
|
const e = document.querySelectorAll("[data-sc-component]");
|
|
4795
4818
|
for (const t of e)
|
|
4796
4819
|
t.innerHTML = t.getAttribute("data-sc-tag") || "";
|
|
4797
|
-
|
|
4820
|
+
na();
|
|
4798
4821
|
};
|
|
4799
4822
|
export {
|
|
4800
4823
|
Ci as Searchcraft,
|
|
@@ -4807,7 +4830,7 @@ export {
|
|
|
4807
4830
|
hi as SearchcraftSearchResults,
|
|
4808
4831
|
yi as SearchcraftSearchResultsPerPage,
|
|
4809
4832
|
vi as SearchcraftTheme,
|
|
4810
|
-
|
|
4833
|
+
na as defineCustomElements,
|
|
4811
4834
|
Si as hydrateSearchcraftComponents
|
|
4812
4835
|
};
|
|
4813
4836
|
//# sourceMappingURL=index.js.map
|