@searchcraft/react-sdk 0.6.0 → 0.7.0

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/index.js CHANGED
@@ -1,22 +1,22 @@
1
- import { jsx as A } from "react/jsx-runtime";
2
- import P from "react";
3
- const Zt = "searchcraft-javascript-sdk", G = (
1
+ import { jsx as _ } from "react/jsx-runtime";
2
+ import z from "react";
3
+ const ar = "searchcraft-javascript-sdk", X = (
4
4
  /* searchcraft-javascript-sdk */
5
- { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !1, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !0, svg: !0, taskQueue: !0, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !1, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
5
+ { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !1, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, modernPropertyDecls: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !0, svg: !0, taskQueue: !0, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !1, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
6
6
  );
7
- var er = Object.defineProperty, tr = (e, t) => {
7
+ var cr = Object.defineProperty, ir = (e, t) => {
8
8
  for (var r in t)
9
- er(e, r, { get: t[r], enumerable: !0 });
10
- }, nt = /* @__PURE__ */ new WeakMap(), Q = (e) => nt.get(e), rr = (e, t) => {
9
+ cr(e, r, { get: t[r], enumerable: !0 });
10
+ }, or = "http://www.w3.org/2000/svg", lr = "http://www.w3.org/1999/xhtml", Fe = /* @__PURE__ */ new WeakMap(), ur = (e) => Fe.delete(e), V = (e) => Fe.get(e), dr = (e, t) => {
11
11
  const r = {
12
12
  $flags$: 0,
13
13
  $hostElement$: e,
14
14
  $cmpMeta$: t,
15
15
  $instanceValues$: /* @__PURE__ */ new Map()
16
16
  };
17
- return r.$onReadyPromise$ = new Promise((s) => r.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], nt.set(e, r);
18
- }, Me = (e, t) => t in e, le = (e, t) => (0, console.error)(e, t), ne = /* @__PURE__ */ new Map(), sr = "slot-fb{display:contents}slot-fb[hidden]{display:none}", ue = typeof window < "u" ? window : {}, U = ue.document || { head: {} }, B = ue.HTMLElement || class {
19
- }, S = {
17
+ return r.$onReadyPromise$ = new Promise((c) => r.$onReadyResolve$ = c), e["s-p"] = [], e["s-rc"] = [], Fe.set(e, r);
18
+ }, Oe = (e, t) => t in e, de = (e, t) => (0, console.error)(e, t), ce = /* @__PURE__ */ new Map(), fr = "sty-id", hr = "slot-fb{display:contents}slot-fb[hidden]{display:none}", fe = typeof window < "u" ? window : {}, H = fe.document || { head: {} }, S = fe.HTMLElement || class {
19
+ }, C = {
20
20
  $flags$: 0,
21
21
  $resourcesUrl$: "",
22
22
  jmp: (e) => e(),
@@ -24,88 +24,108 @@ var er = Object.defineProperty, tr = (e, t) => {
24
24
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
25
25
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
26
26
  ce: (e, t) => new CustomEvent(e, t)
27
- }, nr = G.shadowDom, ar = (e) => Promise.resolve(e), at = /* @__PURE__ */ (() => {
27
+ }, pr = X.shadowDom, gr = (e) => Promise.resolve(e), lt = /* @__PURE__ */ (() => {
28
28
  try {
29
29
  return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
30
30
  } catch {
31
31
  }
32
32
  return !1;
33
- })(), fe = !1, De = [], ct = [], cr = (e, t) => (r) => {
34
- e.push(r), fe || (fe = !0, S.$flags$ & 4 ? be(pe) : S.raf(pe));
35
- }, Ie = (e) => {
33
+ })(), me = !1, je = [], ut = [], mr = (e, t) => (r) => {
34
+ e.push(r), me || (me = !0, C.$flags$ & 4 ? xe(be) : C.raf(be));
35
+ }, Ue = (e) => {
36
36
  for (let t = 0; t < e.length; t++)
37
37
  try {
38
38
  e[t](performance.now());
39
39
  } catch (r) {
40
- le(r);
40
+ de(r);
41
41
  }
42
42
  e.length = 0;
43
- }, pe = () => {
44
- Ie(De), Ie(ct), (fe = De.length > 0) && S.raf(pe);
45
- }, be = (e) => ar().then(e), ir = /* @__PURE__ */ cr(ct), Le = {}, or = "http://www.w3.org/2000/svg", lr = "http://www.w3.org/1999/xhtml", ye = (e) => (e = typeof e, e === "object" || e === "function");
46
- function ur(e) {
43
+ }, be = () => {
44
+ Ue(je), Ue(ut), (me = je.length > 0) && C.raf(be);
45
+ }, xe = (e) => gr().then(e), br = /* @__PURE__ */ mr(ut), Ee = (e) => (e = typeof e, e === "object" || e === "function");
46
+ function yr(e) {
47
47
  var t, r, s;
48
48
  return (s = (r = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : r.getAttribute("content")) != null ? s : void 0;
49
49
  }
50
- var dr = {};
51
- tr(dr, {
52
- err: () => it,
53
- map: () => hr,
54
- ok: () => ge,
55
- unwrap: () => fr,
56
- unwrapErr: () => pr
50
+ var vr = {};
51
+ ir(vr, {
52
+ err: () => dt,
53
+ map: () => Fr,
54
+ ok: () => ye,
55
+ unwrap: () => xr,
56
+ unwrapErr: () => Er
57
57
  });
58
- var ge = (e) => ({
58
+ var ye = (e) => ({
59
59
  isOk: !0,
60
60
  isErr: !1,
61
61
  value: e
62
- }), it = (e) => ({
62
+ }), dt = (e) => ({
63
63
  isOk: !1,
64
64
  isErr: !0,
65
65
  value: e
66
66
  });
67
- function hr(e, t) {
67
+ function Fr(e, t) {
68
68
  if (e.isOk) {
69
69
  const r = t(e.value);
70
- return r instanceof Promise ? r.then((s) => ge(s)) : ge(r);
70
+ return r instanceof Promise ? r.then((s) => ye(s)) : ye(r);
71
71
  }
72
72
  if (e.isErr) {
73
73
  const r = e.value;
74
- return it(r);
74
+ return dt(r);
75
75
  }
76
76
  throw "should never get here";
77
77
  }
78
- var fr = (e) => {
78
+ var xr = (e) => {
79
79
  if (e.isOk)
80
80
  return e.value;
81
81
  throw e.value;
82
- }, pr = (e) => {
82
+ }, Er = (e) => {
83
83
  if (e.isErr)
84
84
  return e.value;
85
85
  throw e.value;
86
- }, V = (e, t = "") => () => {
86
+ }, ft = (e) => {
87
+ const t = e.__childNodes || e.childNodes;
88
+ e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && ht(t, e.tagName).forEach((r) => {
89
+ var s;
90
+ r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = wr(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
91
+ });
92
+ for (const r of t)
93
+ r.nodeType === 1 && (r.__childNodes || r.childNodes).length && ft(r);
94
+ };
95
+ function ht(e, t, r) {
96
+ let s = 0, c = [], a;
97
+ for (; s < e.length; s++)
98
+ a = e[s], a["s-sr"] && a["s-hn"] === t && r === void 0 && c.push(a), c = [...c, ...ht(a.childNodes, t, r)];
99
+ return c;
100
+ }
101
+ var wr = (e, t, r = !0) => {
102
+ const s = [];
103
+ for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
104
+ s.push(e);
105
+ return s;
106
+ }, He = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Y = (e, t = "") => () => {
87
107
  }, d = (e, t, ...r) => {
88
- let s = null, c = null, a = null, n = !1, o = !1;
89
- const u = [], i = (h) => {
90
- for (let f = 0; f < h.length; f++)
91
- s = h[f], Array.isArray(s) ? i(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !ye(s)) && (s = String(s)), n && o ? u[u.length - 1].$text$ += s : u.push(n ? ae(null, s) : s), o = n);
108
+ let s = null, c = null, a = null, n = !1, i = !1;
109
+ const u = [], o = (f) => {
110
+ for (let h = 0; h < f.length; h++)
111
+ s = f[h], Array.isArray(s) ? o(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !Ee(s)) && (s = String(s)), n && i ? u[u.length - 1].$text$ += s : u.push(n ? ie(null, s) : s), i = n);
92
112
  };
93
- if (i(r), t) {
113
+ if (o(r), t) {
94
114
  t.key && (c = t.key), t.name && (a = t.name);
95
115
  {
96
- const h = t.className || t.class;
97
- h && (t.class = typeof h != "object" ? h : Object.keys(h).filter((f) => h[f]).join(" "));
116
+ const f = t.className || t.class;
117
+ f && (t.class = typeof f != "object" ? f : Object.keys(f).filter((h) => f[h]).join(" "));
98
118
  }
99
119
  }
100
120
  if (typeof e == "function")
101
121
  return e(
102
122
  t === null ? {} : t,
103
123
  u,
104
- br
124
+ Sr
105
125
  );
106
- const l = ae(e, null);
126
+ const l = ie(e, null);
107
127
  return l.$attrs$ = t, u.length > 0 && (l.$children$ = u), l.$key$ = c, l.$name$ = a, l;
108
- }, ae = (e, t) => {
128
+ }, ie = (e, t) => {
109
129
  const r = {
110
130
  $flags$: 0,
111
131
  $tag$: e,
@@ -114,115 +134,118 @@ var fr = (e) => {
114
134
  $children$: null
115
135
  };
116
136
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
117
- }, gr = {}, mr = (e) => e && e.$tag$ === gr, br = {
118
- forEach: (e, t) => e.map(Oe).forEach(t),
119
- map: (e, t) => e.map(Oe).map(t).map(yr)
120
- }, Oe = (e) => ({
137
+ }, $r = {}, Cr = (e) => e && e.$tag$ === $r, Sr = {
138
+ forEach: (e, t) => e.map(qe).forEach(t),
139
+ map: (e, t) => e.map(qe).map(t).map(kr)
140
+ }, qe = (e) => ({
121
141
  vattrs: e.$attrs$,
122
142
  vchildren: e.$children$,
123
143
  vkey: e.$key$,
124
144
  vname: e.$name$,
125
145
  vtag: e.$tag$,
126
146
  vtext: e.$text$
127
- }), yr = (e) => {
147
+ }), kr = (e) => {
128
148
  if (typeof e.vtag == "function") {
129
149
  const r = { ...e.vattrs };
130
150
  return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), d(e.vtag, r, ...e.vchildren || []);
131
151
  }
132
- const t = ae(e.vtag, e.vtext);
152
+ const t = ie(e.vtag, e.vtext);
133
153
  return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
134
- }, vr = (e, t) => e != null && !ye(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Fr = (e) => e, T = (e, t, r) => {
135
- const s = Fr(e);
154
+ }, pt = (e, t) => e != null && !Ee(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Rr = (e) => e, M = (e, t, r) => {
155
+ const s = Rr(e);
136
156
  return {
137
- emit: (c) => ot(s, t, {
138
- bubbles: !!(r & 4),
139
- composed: !!(r & 2),
140
- cancelable: !!(r & 1),
157
+ emit: (c) => gt(s, t, {
158
+ bubbles: !0,
159
+ composed: !0,
160
+ cancelable: !0,
141
161
  detail: c
142
162
  })
143
163
  };
144
- }, ot = (e, t, r) => {
145
- const s = S.ce(t, r);
164
+ }, gt = (e, t, r) => {
165
+ const s = C.ce(t, r);
146
166
  return e.dispatchEvent(s), s;
147
- }, je = /* @__PURE__ */ new WeakMap(), xr = (e, t, r) => {
148
- let s = ne.get(e);
149
- at && r ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, ne.set(e, s);
150
- }, Er = (e, t, r) => {
167
+ }, J = /* @__PURE__ */ new WeakMap(), _r = (e, t, r) => {
168
+ let s = ce.get(e);
169
+ lt && r ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, ce.set(e, s);
170
+ }, zr = (e, t, r) => {
151
171
  var s;
152
- const c = lt(t), a = ne.get(c);
153
- if (e = e.nodeType === 11 ? e : U, a)
172
+ const c = mt(t), a = ce.get(c);
173
+ if (e = e.nodeType === 11 ? e : H, a)
154
174
  if (typeof a == "string") {
155
175
  e = e.head || e;
156
- let n = je.get(e), o;
157
- if (n || je.set(e, n = /* @__PURE__ */ new Set()), !n.has(c)) {
176
+ let n = J.get(e), i;
177
+ if (n || J.set(e, n = /* @__PURE__ */ new Set()), !n.has(c)) {
158
178
  {
159
- o = U.createElement("style"), o.innerHTML = a;
160
- const u = (s = S.$nonce$) != null ? s : ur(U);
161
- if (u != null && o.setAttribute("nonce", u), !(t.$flags$ & 1))
179
+ i = document.querySelector(`[${fr}="${c}"]`) || H.createElement("style"), i.innerHTML = a;
180
+ const u = (s = C.$nonce$) != null ? s : yr(H);
181
+ if (u != null && i.setAttribute("nonce", u), !(t.$flags$ & 1))
162
182
  if (e.nodeName === "HEAD") {
163
- const i = e.querySelectorAll("link[rel=preconnect]"), l = i.length > 0 ? i[i.length - 1].nextSibling : e.querySelector("style");
164
- e.insertBefore(o, l);
183
+ const o = e.querySelectorAll("link[rel=preconnect]"), l = o.length > 0 ? o[o.length - 1].nextSibling : e.querySelector("style");
184
+ e.insertBefore(i, l);
165
185
  } else if ("host" in e)
166
- if (at) {
167
- const i = new CSSStyleSheet();
168
- i.replaceSync(a), e.adoptedStyleSheets = [i, ...e.adoptedStyleSheets];
186
+ if (lt) {
187
+ const o = new CSSStyleSheet();
188
+ o.replaceSync(a), e.adoptedStyleSheets = [o, ...e.adoptedStyleSheets];
169
189
  } else {
170
- const i = e.querySelector("style");
171
- i ? i.innerHTML = a + i.innerHTML : e.prepend(o);
190
+ const o = e.querySelector("style");
191
+ o ? o.innerHTML = a + o.innerHTML : e.prepend(i);
172
192
  }
173
193
  else
174
- e.append(o);
175
- t.$flags$ & 1 && e.nodeName !== "HEAD" && e.insertBefore(o, null);
194
+ e.append(i);
195
+ t.$flags$ & 1 && e.nodeName !== "HEAD" && e.insertBefore(i, null);
176
196
  }
177
- t.$flags$ & 4 && (o.innerHTML += sr), n && n.add(c);
197
+ t.$flags$ & 4 && (i.innerHTML += hr), n && n.add(c);
178
198
  }
179
199
  } else e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
180
200
  return c;
181
- }, $r = (e) => {
182
- const t = e.$cmpMeta$, r = e.$hostElement$, s = V("attachStyles", t.$tagName$);
183
- Er(
201
+ }, Tr = (e) => {
202
+ const t = e.$cmpMeta$, r = e.$hostElement$, s = Y("attachStyles", t.$tagName$);
203
+ zr(
184
204
  r.getRootNode(),
185
205
  t
186
206
  ), s();
187
- }, lt = (e, t) => "sc-" + e.$tagName$, Ue = (e, t, r, s, c, a) => {
207
+ }, mt = (e, t) => "sc-" + e.$tagName$, Ne = (e, t, r, s, c, a) => {
188
208
  if (r !== s) {
189
- let n = Me(e, t), o = t.toLowerCase();
209
+ let n = Oe(e, t), i = t.toLowerCase();
190
210
  if (t === "class") {
191
- const u = e.classList, i = qe(r), l = qe(s);
192
- u.remove(...i.filter((h) => h && !l.includes(h))), u.add(...l.filter((h) => h && !i.includes(h)));
211
+ const u = e.classList, o = Ve(r);
212
+ let l = Ve(s);
213
+ e["s-si"] ? (l.push(e["s-si"]), o.forEach((f) => {
214
+ f.startsWith(e["s-si"]) && l.push(f);
215
+ }), l = [...new Set(l)], u.add(...l), delete e["s-si"]) : (u.remove(...o.filter((f) => f && !l.includes(f))), u.add(...l.filter((f) => f && !o.includes(f))));
193
216
  } else if (t === "style") {
194
217
  for (const u in r)
195
218
  (!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
196
219
  for (const u in s)
197
220
  (!r || s[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, s[u]) : e.style[u] = s[u]);
198
221
  } else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
199
- if (t[2] === "-" ? t = t.slice(3) : Me(ue, o) ? t = o.slice(2) : t = o[2] + t.slice(3), r || s) {
200
- const u = t.endsWith(ut);
201
- t = t.replace(wr, ""), r && S.rel(e, t, r, u), s && S.ael(e, t, s, u);
222
+ if (t[2] === "-" ? t = t.slice(3) : Oe(fe, i) ? t = i.slice(2) : t = i[2] + t.slice(3), r || s) {
223
+ const u = t.endsWith(bt);
224
+ t = t.replace(Ar, ""), r && C.rel(e, t, r, u), s && C.ael(e, t, s, u);
202
225
  }
203
226
  } else {
204
- const u = ye(s);
227
+ const u = Ee(s);
205
228
  if ((n || u && s !== null) && !c)
206
229
  try {
207
230
  if (e.tagName.includes("-"))
208
- e[t] = s;
231
+ e[t] !== s && (e[t] = s);
209
232
  else {
210
- const i = s ?? "";
211
- t === "list" ? n = !1 : (r == null || e[t] != i) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = i : e.setAttribute(t, i));
233
+ const o = s ?? "";
234
+ t === "list" ? n = !1 : (r == null || e[t] != o) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = o : e.setAttribute(t, o));
212
235
  }
213
236
  } catch {
214
237
  }
215
238
  s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || a & 4 || c) && !u && (s = s === !0 ? "" : s, e.setAttribute(t, s));
216
239
  }
217
240
  }
218
- }, Sr = /\s/, qe = (e) => e ? e.split(Sr) : [], ut = "Capture", wr = new RegExp(ut + "$"), dt = (e, t, r) => {
219
- const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, c = e && e.$attrs$ || Le, a = t.$attrs$ || Le;
220
- for (const n of Ne(Object.keys(c)))
221
- n in a || Ue(s, n, c[n], void 0, r, t.$flags$);
222
- for (const n of Ne(Object.keys(a)))
223
- Ue(s, n, c[n], a[n], r, t.$flags$);
241
+ }, Pr = /\s/, Ve = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(Pr) : []), bt = "Capture", Ar = new RegExp(bt + "$"), yt = (e, t, r) => {
242
+ const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, c = e && e.$attrs$ || {}, a = t.$attrs$ || {};
243
+ for (const n of We(Object.keys(c)))
244
+ n in a || Ne(s, n, c[n], void 0, r, t.$flags$);
245
+ for (const n of We(Object.keys(a)))
246
+ Ne(s, n, c[n], a[n], r, t.$flags$);
224
247
  };
225
- function Ne(e) {
248
+ function We(e) {
226
249
  return e.includes("ref") ? (
227
250
  // we need to sort these to ensure that `'ref'` is the last attr
228
251
  [...e.filter((t) => t !== "ref"), "ref"]
@@ -231,11 +254,11 @@ function Ne(e) {
231
254
  e
232
255
  );
233
256
  }
234
- var me, ve, ce = !1, ie = !1, Fe = !1, w = !1, oe = (e, t, r, s) => {
235
- var c;
236
- const a = t.$children$[r];
237
- let n = 0, o, u, i;
238
- if (ce || (Fe = !0, a.$tag$ === "slot" && (a.$flags$ |= a.$children$ ? (
257
+ var ve, we, oe = !1, le = !1, $e = !1, R = !1, ue = (e, t, r) => {
258
+ var s;
259
+ const c = t.$children$[r];
260
+ let a = 0, n, i, u;
261
+ if (oe || ($e = !0, c.$tag$ === "slot" && (c.$flags$ |= c.$children$ ? (
239
262
  // slot element has fallback content
240
263
  // still create an element that "mocks" the slot element
241
264
  2
@@ -244,344 +267,342 @@ var me, ve, ce = !1, ie = !1, Fe = !1, w = !1, oe = (e, t, r, s) => {
244
267
  // create an html comment we'll use to always reference
245
268
  // where actual slot content should sit next to
246
269
  1
247
- ))), a.$text$ !== null)
248
- o = a.$elm$ = U.createTextNode(a.$text$);
249
- else if (a.$flags$ & 1)
250
- o = a.$elm$ = U.createTextNode("");
270
+ ))), c.$text$ !== null)
271
+ n = c.$elm$ = H.createTextNode(c.$text$);
272
+ else if (c.$flags$ & 1)
273
+ n = c.$elm$ = H.createTextNode("");
251
274
  else {
252
- if (w || (w = a.$tag$ === "svg"), o = a.$elm$ = U.createElementNS(
253
- w ? or : lr,
254
- !ce && G.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
255
- ), w && a.$tag$ === "foreignObject" && (w = !1), dt(null, a, w), o.getRootNode().querySelector("body"), a.$children$)
256
- for (n = 0; n < a.$children$.length; ++n)
257
- u = oe(e, a, n), u && o.appendChild(u);
258
- a.$tag$ === "svg" ? w = !1 : o.tagName === "foreignObject" && (w = !0);
259
- }
260
- return o["s-hn"] = ve, a.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = me, o["s-sn"] = a.$name$ || "", o["s-rf"] = (c = a.$attrs$) == null ? void 0 : c.ref, i = e && e.$children$ && e.$children$[r], i && i.$tag$ === a.$tag$ && e.$elm$ && K(e.$elm$, !1)), o;
261
- }, K = (e, t) => {
262
- S.$flags$ |= 1;
263
- const r = Array.from(e.childNodes);
264
- e["s-sr"] && G.experimentalSlotFixes;
275
+ if (R || (R = c.$tag$ === "svg"), n = c.$elm$ = H.createElementNS(
276
+ R ? or : lr,
277
+ !oe && X.slotRelocation && c.$flags$ & 2 ? "slot-fb" : c.$tag$
278
+ ), R && c.$tag$ === "foreignObject" && (R = !1), yt(null, c, R), c.$children$)
279
+ for (a = 0; a < c.$children$.length; ++a)
280
+ i = ue(e, c, a), i && n.appendChild(i);
281
+ c.$tag$ === "svg" ? R = !1 : n.tagName === "foreignObject" && (R = !0);
282
+ }
283
+ return n["s-hn"] = we, c.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = ve, n["s-sn"] = c.$name$ || "", n["s-rf"] = (s = c.$attrs$) == null ? void 0 : s.ref, u = e && e.$children$ && e.$children$[r], u && u.$tag$ === c.$tag$ && e.$elm$ && ee(e.$elm$, !1)), n;
284
+ }, ee = (e, t) => {
285
+ C.$flags$ |= 1;
286
+ const r = Array.from(e.__childNodes || e.childNodes);
287
+ e["s-sr"] && X.experimentalSlotFixes;
265
288
  for (let s = r.length - 1; s >= 0; s--) {
266
289
  const c = r[s];
267
- c["s-hn"] !== ve && c["s-ol"] && (q(pt(c), c, xe(c)), c["s-ol"].remove(), c["s-ol"] = void 0, c["s-sh"] = void 0, Fe = !0), t && K(c, t);
290
+ c["s-hn"] !== we && c["s-ol"] && (N(te(c).parentNode, c, te(c)), c["s-ol"].remove(), c["s-ol"] = void 0, c["s-sh"] = void 0, $e = !0), t && ee(c, t);
268
291
  }
269
- S.$flags$ &= -2;
270
- }, ht = (e, t, r, s, c, a) => {
271
- let n = e["s-cr"] && e["s-cr"].parentNode || e, o;
292
+ C.$flags$ &= -2;
293
+ }, vt = (e, t, r, s, c, a) => {
294
+ let n = e["s-cr"] && e["s-cr"].parentNode || e, i;
272
295
  for (; c <= a; ++c)
273
- s[c] && (o = oe(null, r, c), o && (s[c].$elm$ = o, q(n, o, xe(t))));
274
- }, ft = (e, t, r) => {
296
+ s[c] && (i = ue(null, r, c), i && (s[c].$elm$ = i, N(n, i, te(t))));
297
+ }, Ft = (e, t, r) => {
275
298
  for (let s = t; s <= r; ++s) {
276
299
  const c = e[s];
277
300
  if (c) {
278
301
  const a = c.$elm$;
279
- a && (ie = !0, a["s-ol"] ? a["s-ol"].remove() : K(a, !0), a.remove());
302
+ a && (le = !0, a["s-ol"] ? a["s-ol"].remove() : ee(a, !0), a.remove());
280
303
  }
281
304
  }
282
- }, Cr = (e, t, r, s, c = !1) => {
283
- let a = 0, n = 0, o = 0, u = 0, i = t.length - 1, l = t[0], h = t[i], f = s.length - 1, g = s[0], m = s[f], v, y;
284
- for (; a <= i && n <= f; )
305
+ }, Dr = (e, t, r, s, c = !1) => {
306
+ let a = 0, n = 0, i = 0, u = 0, o = t.length - 1, l = t[0], f = t[o], h = s.length - 1, p = s[0], m = s[h], E, W;
307
+ for (; a <= o && n <= h; )
285
308
  if (l == null)
286
309
  l = t[++a];
287
- else if (h == null)
288
- h = t[--i];
289
- else if (g == null)
290
- g = s[++n];
310
+ else if (f == null)
311
+ f = t[--o];
312
+ else if (p == null)
313
+ p = s[++n];
291
314
  else if (m == null)
292
- m = s[--f];
293
- else if (Z(l, g, c))
294
- W(l, g, c), l = t[++a], g = s[++n];
295
- else if (Z(h, m, c))
296
- W(h, m, c), h = t[--i], m = s[--f];
297
- else if (Z(l, m, c))
298
- (l.$tag$ === "slot" || m.$tag$ === "slot") && K(l.$elm$.parentNode, !1), W(l, m, c), q(e, l.$elm$, h.$elm$.nextSibling), l = t[++a], m = s[--f];
299
- else if (Z(h, g, c))
300
- (l.$tag$ === "slot" || m.$tag$ === "slot") && K(h.$elm$.parentNode, !1), W(h, g, c), q(e, h.$elm$, l.$elm$), h = t[--i], g = s[++n];
315
+ m = s[--h];
316
+ else if (se(l, p, c))
317
+ K(l, p, c), l = t[++a], p = s[++n];
318
+ else if (se(f, m, c))
319
+ K(f, m, c), f = t[--o], m = s[--h];
320
+ else if (se(l, m, c))
321
+ (l.$tag$ === "slot" || m.$tag$ === "slot") && ee(l.$elm$.parentNode, !1), K(l, m, c), N(e, l.$elm$, f.$elm$.nextSibling), l = t[++a], m = s[--h];
322
+ else if (se(f, p, c))
323
+ (l.$tag$ === "slot" || m.$tag$ === "slot") && ee(f.$elm$.parentNode, !1), K(f, p, c), N(e, f.$elm$, l.$elm$), f = t[--o], p = s[++n];
301
324
  else {
302
- for (o = -1, u = a; u <= i; ++u)
303
- if (t[u] && t[u].$key$ !== null && t[u].$key$ === g.$key$) {
304
- o = u;
325
+ for (i = -1, u = a; u <= o; ++u)
326
+ if (t[u] && t[u].$key$ !== null && t[u].$key$ === p.$key$) {
327
+ i = u;
305
328
  break;
306
329
  }
307
- o >= 0 ? (y = t[o], y.$tag$ !== g.$tag$ ? v = oe(t && t[n], r, o) : (W(y, g, c), t[o] = void 0, v = y.$elm$), g = s[++n]) : (v = oe(t && t[n], r, n), g = s[++n]), v && q(pt(l.$elm$), v, xe(l.$elm$));
330
+ i >= 0 ? (W = t[i], W.$tag$ !== p.$tag$ ? E = ue(t && t[n], r, i) : (K(W, p, c), t[i] = void 0, E = W.$elm$), p = s[++n]) : (E = ue(t && t[n], r, n), p = s[++n]), E && N(
331
+ te(l.$elm$).parentNode,
332
+ E,
333
+ te(l.$elm$)
334
+ );
308
335
  }
309
- a > i ? ht(
336
+ a > o ? vt(
310
337
  e,
311
- s[f + 1] == null ? null : s[f + 1].$elm$,
338
+ s[h + 1] == null ? null : s[h + 1].$elm$,
312
339
  r,
313
340
  s,
314
341
  n,
315
- f
316
- ) : n > f && ft(t, a, i);
317
- }, Z = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? (
318
- // The component gets hydrated and no VDOM has been initialized.
319
- // Here the comparison can't happen as $name$ property is not set for `leftNode`.
320
- "$nodeId$" in e && r && // `leftNode` is not from type HTMLComment which would cause many
321
- // hydration comments to be removed
322
- e.$elm$.nodeType !== 8 ? !1 : e.$name$ === t.$name$
323
- ) : r ? !0 : e.$key$ === t.$key$ : !1, xe = (e) => e && e["s-ol"] || e, pt = (e) => (e["s-ol"] ? e["s-ol"] : e).parentNode, W = (e, t, r = !1) => {
324
- const s = t.$elm$ = e.$elm$, c = e.$children$, a = t.$children$, n = t.$tag$, o = t.$text$;
342
+ h
343
+ ) : n > h && Ft(t, a, o);
344
+ }, se = (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, te = (e) => e && e["s-ol"] || e, K = (e, t, r = !1) => {
345
+ const s = t.$elm$ = e.$elm$, c = e.$children$, a = t.$children$, n = t.$tag$, i = t.$text$;
325
346
  let u;
326
- o === null ? (w = n === "svg" ? !0 : n === "foreignObject" ? !1 : w, n === "slot" && !ce || dt(e, t, w), c !== null && a !== null ? Cr(s, c, t, a, r) : a !== null ? (e.$text$ !== null && (s.textContent = ""), ht(s, null, t, a, 0, a.length - 1)) : (
347
+ i === null ? (R = n === "svg" ? !0 : n === "foreignObject" ? !1 : R, n === "slot" && !oe || yt(e, t, R), c !== null && a !== null ? Dr(s, c, t, a, r) : a !== null ? (e.$text$ !== null && (s.textContent = ""), vt(s, null, t, a, 0, a.length - 1)) : (
327
348
  // don't do this on initial render as it can cause non-hydrated content to be removed
328
- !r && G.updatable && c !== null && ft(c, 0, c.length - 1)
329
- ), w && n === "svg" && (w = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = o : e.$text$ !== o && (s.data = o);
330
- }, gt = (e) => {
331
- const t = e.childNodes;
332
- for (const r of t)
333
- if (r.nodeType === 1) {
334
- if (r["s-sr"]) {
335
- const s = r["s-sn"];
336
- r.hidden = !1;
337
- for (const c of t)
338
- if (c !== r) {
339
- if (c["s-hn"] !== r["s-hn"] || s !== "") {
340
- if (c.nodeType === 1 && (s === c.getAttribute("slot") || s === c["s-sn"]) || c.nodeType === 3 && s === c["s-sn"]) {
341
- r.hidden = !0;
342
- break;
343
- }
344
- } else if (c.nodeType === 1 || c.nodeType === 3 && c.textContent.trim() !== "") {
345
- r.hidden = !0;
346
- break;
347
- }
348
- }
349
- }
350
- gt(r);
351
- }
352
- }, I = [], mt = (e) => {
349
+ !r && X.updatable && c !== null && Ft(c, 0, c.length - 1)
350
+ ), R && n === "svg" && (R = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = i : e.$text$ !== i && (s.data = i);
351
+ }, L = [], xt = (e) => {
353
352
  let t, r, s;
354
- for (const c of e.childNodes) {
355
- if (c["s-sr"] && (t = c["s-cr"]) && t.parentNode) {
356
- r = t.parentNode.childNodes;
357
- const a = c["s-sn"];
353
+ const c = e.__childNodes || e.childNodes;
354
+ for (const a of c) {
355
+ if (a["s-sr"] && (t = a["s-cr"]) && t.parentNode) {
356
+ r = t.parentNode.__childNodes || t.parentNode.childNodes;
357
+ const n = a["s-sn"];
358
358
  for (s = r.length - 1; s >= 0; s--)
359
- if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== c["s-hn"] && !G.experimentalSlotFixes)
360
- if (He(t, a)) {
361
- let n = I.find((o) => o.$nodeToRelocate$ === t);
362
- ie = !0, t["s-sn"] = t["s-sn"] || a, n ? (n.$nodeToRelocate$["s-sh"] = c["s-hn"], n.$slotRefNode$ = c) : (t["s-sh"] = c["s-hn"], I.push({
363
- $slotRefNode$: c,
359
+ if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== a["s-hn"])
360
+ if (He(t, n)) {
361
+ let i = L.find((u) => u.$nodeToRelocate$ === t);
362
+ le = !0, t["s-sn"] = t["s-sn"] || n, i ? (i.$nodeToRelocate$["s-sh"] = a["s-hn"], i.$slotRefNode$ = a) : (t["s-sh"] = a["s-hn"], L.push({
363
+ $slotRefNode$: a,
364
364
  $nodeToRelocate$: t
365
- })), t["s-sr"] && I.map((o) => {
366
- He(o.$nodeToRelocate$, t["s-sn"]) && (n = I.find((u) => u.$nodeToRelocate$ === t), n && !o.$slotRefNode$ && (o.$slotRefNode$ = n.$slotRefNode$));
365
+ })), t["s-sr"] && L.map((u) => {
366
+ He(u.$nodeToRelocate$, t["s-sn"]) && (i = L.find((o) => o.$nodeToRelocate$ === t), i && !u.$slotRefNode$ && (u.$slotRefNode$ = i.$slotRefNode$));
367
367
  });
368
- } else I.some((n) => n.$nodeToRelocate$ === t) || I.push({
368
+ } else L.some((i) => i.$nodeToRelocate$ === t) || L.push({
369
369
  $nodeToRelocate$: t
370
370
  });
371
371
  }
372
- c.nodeType === 1 && mt(c);
372
+ a.nodeType === 1 && xt(a);
373
373
  }
374
- }, He = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", q = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), kr = (e, t, r = !1) => {
374
+ }, N = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Br = (e, t, r = !1) => {
375
375
  var s, c, a, n;
376
- const o = e.$hostElement$, u = e.$vnode$ || ae(null, null), i = mr(t) ? t : d(null, null, t);
377
- if (ve = o.tagName, r && i.$attrs$)
378
- for (const l of Object.keys(i.$attrs$))
379
- o.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (i.$attrs$[l] = o[l]);
380
- i.$tag$ = null, i.$flags$ |= 4, e.$vnode$ = i, i.$elm$ = u.$elm$ = o, ce = nr, me = o["s-cr"], ie = !1, W(u, i, r);
376
+ const i = e.$hostElement$, u = e.$vnode$ || ie(null, null), o = Cr(t) ? t : d(null, null, t);
377
+ if (we = i.tagName, r && o.$attrs$)
378
+ for (const l of Object.keys(o.$attrs$))
379
+ i.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (o.$attrs$[l] = i[l]);
380
+ o.$tag$ = null, o.$flags$ |= 4, e.$vnode$ = o, o.$elm$ = u.$elm$ = i, oe = pr, ve = i["s-cr"], le = !1, K(u, o, r);
381
381
  {
382
- if (S.$flags$ |= 1, Fe) {
383
- mt(i.$elm$);
384
- for (const l of I) {
385
- const h = l.$nodeToRelocate$;
386
- if (!h["s-ol"]) {
387
- const f = U.createTextNode("");
388
- f["s-nr"] = h, q(h.parentNode, h["s-ol"] = f, h);
382
+ if (C.$flags$ |= 1, $e) {
383
+ xt(o.$elm$);
384
+ for (const l of L) {
385
+ const f = l.$nodeToRelocate$;
386
+ if (!f["s-ol"]) {
387
+ const h = H.createTextNode("");
388
+ h["s-nr"] = f, N(f.parentNode, f["s-ol"] = h, f);
389
389
  }
390
390
  }
391
- for (const l of I) {
392
- const h = l.$nodeToRelocate$, f = l.$slotRefNode$;
393
- if (f) {
394
- const g = f.parentNode;
395
- let m = f.nextSibling;
391
+ for (const l of L) {
392
+ const f = l.$nodeToRelocate$, h = l.$slotRefNode$;
393
+ if (h) {
394
+ const p = h.parentNode;
395
+ let m = h.nextSibling;
396
396
  {
397
- let v = (s = h["s-ol"]) == null ? void 0 : s.previousSibling;
398
- for (; v; ) {
399
- let y = (c = v["s-nr"]) != null ? c : null;
400
- if (y && y["s-sn"] === h["s-sn"] && g === y.parentNode) {
401
- for (y = y.nextSibling; y === h || y != null && y["s-sr"]; )
402
- y = y == null ? void 0 : y.nextSibling;
403
- if (!y || !y["s-nr"]) {
404
- m = y;
397
+ let q = (s = f["s-ol"]) == null ? void 0 : s.previousSibling;
398
+ for (; q; ) {
399
+ let F = (c = q["s-nr"]) != null ? c : null;
400
+ if (F && F["s-sn"] === f["s-sn"] && p === (F.__parentNode || F.parentNode)) {
401
+ for (F = F.nextSibling; F === f || F != null && F["s-sr"]; )
402
+ F = F == null ? void 0 : F.nextSibling;
403
+ if (!F || !F["s-nr"]) {
404
+ m = F;
405
405
  break;
406
406
  }
407
407
  }
408
- v = v.previousSibling;
408
+ q = q.previousSibling;
409
409
  }
410
410
  }
411
- (!m && g !== h.parentNode || h.nextSibling !== m) && h !== m && (!h["s-hn"] && h["s-ol"] && (h["s-hn"] = h["s-ol"].parentNode.nodeName), q(g, h, m), h.nodeType === 1 && (h.hidden = (a = h["s-ih"]) != null ? a : !1)), h && typeof f["s-rf"] == "function" && f["s-rf"](h);
411
+ const E = f.__parentNode || f.parentNode, W = f.__nextSibling || f.nextSibling;
412
+ (!m && p !== E || W !== m) && f !== m && (!f["s-hn"] && f["s-ol"] && (f["s-hn"] = f["s-ol"].parentNode.nodeName), N(p, f, m), f.nodeType === 1 && f.tagName !== "SLOT-FB" && (f.hidden = (a = f["s-ih"]) != null ? a : !1)), f && typeof h["s-rf"] == "function" && h["s-rf"](f);
412
413
  } else
413
- h.nodeType === 1 && (r && (h["s-ih"] = (n = h.hidden) != null ? n : !1), h.hidden = !0);
414
+ f.nodeType === 1 && (r && (f["s-ih"] = (n = f.hidden) != null ? n : !1), f.hidden = !0);
414
415
  }
415
416
  }
416
- ie && gt(i.$elm$), S.$flags$ &= -2, I.length = 0;
417
+ le && ft(o.$elm$), C.$flags$ &= -2, L.length = 0;
418
+ }
419
+ ve = void 0;
420
+ }, Et = (e, t) => {
421
+ if (t && !e.$onRenderResolve$ && t["s-p"]) {
422
+ const r = t["s-p"].push(
423
+ new Promise(
424
+ (s) => e.$onRenderResolve$ = () => {
425
+ t["s-p"].splice(r - 1, 1), s();
426
+ }
427
+ )
428
+ );
417
429
  }
418
- me = void 0;
419
- }, bt = (e, t) => {
420
- t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((r) => e.$onRenderResolve$ = r));
421
- }, Ee = (e, t) => {
430
+ }, Ce = (e, t) => {
422
431
  if (e.$flags$ |= 16, e.$flags$ & 4) {
423
432
  e.$flags$ |= 512;
424
433
  return;
425
434
  }
426
- return bt(e, e.$ancestorComponent$), ir(() => Rr(e, t));
427
- }, Rr = (e, t) => {
428
- const r = e.$hostElement$, s = V("scheduleUpdate", e.$cmpMeta$.$tagName$), c = r;
435
+ return Et(e, e.$ancestorComponent$), br(() => Ir(e, t));
436
+ }, Ir = (e, t) => {
437
+ const r = e.$hostElement$, s = Y("scheduleUpdate", e.$cmpMeta$.$tagName$), c = r;
429
438
  if (!c)
430
439
  throw new Error(
431
440
  `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`
432
441
  );
433
442
  let a;
434
- return s(), zr(a, () => _r(e, c, t));
435
- }, zr = (e, t) => Tr(e) ? e.then(t).catch((r) => {
443
+ return s(), Mr(a, () => Or(e, c, t));
444
+ }, Mr = (e, t) => Lr(e) ? e.then(t).catch((r) => {
436
445
  console.error(r), t();
437
- }) : t(), Tr = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", _r = async (e, t, r) => {
446
+ }) : t(), Lr = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Or = async (e, t, r) => {
438
447
  var s;
439
- const c = e.$hostElement$, a = V("update", e.$cmpMeta$.$tagName$), n = c["s-rc"];
440
- r && $r(e);
441
- const o = V("render", e.$cmpMeta$.$tagName$);
442
- Ar(e, t, c, r), n && (n.map((u) => u()), c["s-rc"] = void 0), o(), a();
448
+ const c = e.$hostElement$, a = Y("update", e.$cmpMeta$.$tagName$), n = c["s-rc"];
449
+ r && Tr(e);
450
+ const i = Y("render", e.$cmpMeta$.$tagName$);
451
+ jr(e, t, c, r), n && (n.map((u) => u()), c["s-rc"] = void 0), i(), a();
443
452
  {
444
- const u = (s = c["s-p"]) != null ? s : [], i = () => Pr(e);
445
- u.length === 0 ? i() : (Promise.all(u).then(i), e.$flags$ |= 4, u.length = 0);
453
+ const u = (s = c["s-p"]) != null ? s : [], o = () => Ur(e);
454
+ u.length === 0 ? o() : (Promise.all(u).then(o), e.$flags$ |= 4, u.length = 0);
446
455
  }
447
- }, Ar = (e, t, r, s) => {
456
+ }, jr = (e, t, r, s) => {
448
457
  try {
449
- t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, kr(e, t, s);
458
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Br(e, t, s);
450
459
  } catch (c) {
451
- le(c, e.$hostElement$);
460
+ de(c, e.$hostElement$);
452
461
  }
453
462
  return null;
454
- }, Pr = (e) => {
455
- const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = V("postUpdate", t), c = r, a = e.$ancestorComponent$;
456
- e.$flags$ & 64 ? s() : (e.$flags$ |= 64, yt(r), Mr(c, "componentDidLoad"), s(), e.$onReadyResolve$(r), a || Br()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && be(() => Ee(e, !1)), e.$flags$ &= -517;
457
- }, Br = (e) => {
458
- yt(U.documentElement), be(() => ot(ue, "appload", { detail: { namespace: Zt } }));
459
- }, Mr = (e, t, r) => {
463
+ }, Ur = (e) => {
464
+ const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Y("postUpdate", t), c = r, a = e.$ancestorComponent$;
465
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, wt(r), qr(c, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), a || Hr()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && xe(() => Ce(e, !1)), e.$flags$ &= -517;
466
+ }, Hr = (e) => {
467
+ wt(H.documentElement), xe(() => gt(fe, "appload", { detail: { namespace: ar } }));
468
+ }, qr = (e, t, r, s) => {
460
469
  if (e && e[t])
461
470
  try {
462
471
  return e[t](r);
463
- } catch (s) {
464
- le(s);
472
+ } catch (c) {
473
+ de(c, s);
465
474
  }
466
- }, yt = (e) => {
475
+ }, wt = (e) => {
467
476
  var t;
468
- return e.classList.add((t = G.hydratedSelectorName) != null ? t : "hydrated");
469
- }, Dr = (e, t) => Q(e).$instanceValues$.get(t), Ir = (e, t, r, s) => {
470
- const c = Q(e), a = e, n = c.$instanceValues$.get(t), o = c.$flags$, u = a;
471
- r = vr(r, s.$members$[t][0]);
472
- const i = Number.isNaN(n) && Number.isNaN(r);
473
- if (r !== n && !i) {
477
+ return e.classList.add((t = X.hydratedSelectorName) != null ? t : "hydrated");
478
+ }, Nr = (e, t) => V(e).$instanceValues$.get(t), Ge = (e, t, r, s) => {
479
+ const c = V(e), a = e, n = c.$instanceValues$.get(t), i = c.$flags$, u = a;
480
+ r = pt(r, s.$members$[t][0]);
481
+ const o = Number.isNaN(n) && Number.isNaN(r);
482
+ if (r !== n && !o) {
474
483
  c.$instanceValues$.set(t, r);
475
484
  {
476
- if (s.$watchers$ && o & 128) {
477
- const h = s.$watchers$[t];
478
- h && h.map((f) => {
485
+ if (s.$watchers$ && i & 128) {
486
+ const f = s.$watchers$[t];
487
+ f && f.map((h) => {
479
488
  try {
480
- u[f](r, n, t);
481
- } catch (g) {
482
- le(g, a);
489
+ u[h](r, n, t);
490
+ } catch (p) {
491
+ de(p, a);
483
492
  }
484
493
  });
485
494
  }
486
- (o & 18) === 2 && Ee(c, !1);
495
+ (i & 18) === 2 && Ce(c, !1);
487
496
  }
488
497
  }
489
- }, Lr = (e, t, r) => {
498
+ }, Vr = (e, t, r) => {
490
499
  var s, c;
491
500
  const a = e.prototype;
492
501
  if (t.$members$ || t.$watchers$ || e.watchers) {
493
502
  e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
494
503
  const n = Object.entries((s = t.$members$) != null ? s : {});
495
- n.map(([o, [u]]) => {
496
- (u & 31 || u & 32) && Object.defineProperty(a, o, {
497
- get() {
498
- return Dr(this, o);
499
- },
500
- set(i) {
501
- Ir(this, o, i, t);
502
- },
503
- configurable: !0,
504
- enumerable: !0
505
- });
504
+ n.map(([i, [u]]) => {
505
+ if (u & 31 || u & 32) {
506
+ const { get: o, set: l } = Object.getOwnPropertyDescriptor(a, i) || {};
507
+ o && (t.$members$[i][0] |= 2048), l && (t.$members$[i][0] |= 4096), Object.defineProperty(a, i, {
508
+ get() {
509
+ return o ? o.apply(this) : Nr(this, i);
510
+ },
511
+ configurable: !0,
512
+ enumerable: !0
513
+ }), Object.defineProperty(a, i, {
514
+ set(f) {
515
+ const h = V(this);
516
+ if (l) {
517
+ const p = u & 32 ? this[i] : h.$hostElement$[i];
518
+ typeof p > "u" && h.$instanceValues$.get(i) ? f = h.$instanceValues$.get(i) : !h.$instanceValues$.get(i) && p && h.$instanceValues$.set(i, p), l.apply(this, [pt(f, u)]), f = u & 32 ? this[i] : h.$hostElement$[i], Ge(this, i, f, t);
519
+ return;
520
+ }
521
+ {
522
+ Ge(this, i, f, t);
523
+ return;
524
+ }
525
+ }
526
+ });
527
+ }
506
528
  });
507
529
  {
508
- const o = /* @__PURE__ */ new Map();
509
- a.attributeChangedCallback = function(u, i, l) {
510
- S.jmp(() => {
511
- var h;
512
- const f = o.get(u);
513
- if (this.hasOwnProperty(f))
514
- l = this[f], delete this[f];
515
- else {
516
- if (a.hasOwnProperty(f) && typeof this[f] == "number" && // cast type to number to avoid TS compiler issues
517
- this[f] == l)
530
+ const i = /* @__PURE__ */ new Map();
531
+ a.attributeChangedCallback = function(u, o, l) {
532
+ C.jmp(() => {
533
+ var f;
534
+ const h = i.get(u);
535
+ if (!(this.hasOwnProperty(h) && X.lazyLoad)) {
536
+ if (a.hasOwnProperty(h) && typeof this[h] == "number" && // cast type to number to avoid TS compiler issues
537
+ this[h] == l)
518
538
  return;
519
- if (f == null) {
520
- const g = Q(this), m = g == null ? void 0 : g.$flags$;
521
- if (m && !(m & 8) && m & 128 && l !== i) {
522
- const y = this, Pe = (h = t.$watchers$) == null ? void 0 : h[u];
523
- Pe == null || Pe.forEach((Be) => {
524
- y[Be] != null && y[Be].call(y, l, i, u);
539
+ if (h == null) {
540
+ const m = V(this), E = m == null ? void 0 : m.$flags$;
541
+ if (E && !(E & 8) && E & 128 && l !== o) {
542
+ const q = this, F = (f = t.$watchers$) == null ? void 0 : f[u];
543
+ F == null || F.forEach((Le) => {
544
+ q[Le] != null && q[Le].call(q, l, o, u);
525
545
  });
526
546
  }
527
547
  return;
528
548
  }
529
549
  }
530
- this[f] = l === null && typeof this[f] == "boolean" ? !1 : l;
550
+ const p = Object.getOwnPropertyDescriptor(a, h);
551
+ l = l === null && typeof this[h] == "boolean" ? !1 : l, l !== this[h] && (!p.get || p.set) && (this[h] = l);
531
552
  });
532
553
  }, e.observedAttributes = Array.from(
533
554
  /* @__PURE__ */ new Set([
534
555
  ...Object.keys((c = t.$watchers$) != null ? c : {}),
535
556
  ...n.filter(
536
- ([u, i]) => i[0] & 15
557
+ ([u, o]) => o[0] & 15
537
558
  /* HasAttribute */
538
- ).map(([u, i]) => {
539
- const l = i[1] || u;
540
- return o.set(l, u), l;
559
+ ).map(([u, o]) => {
560
+ const l = o[1] || u;
561
+ return i.set(l, u), l;
541
562
  })
542
563
  ])
543
564
  );
544
565
  }
545
566
  }
546
567
  return e;
547
- }, Or = async (e, t, r, s) => {
568
+ }, Wr = async (e, t, r, s) => {
548
569
  let c;
549
570
  if (!(t.$flags$ & 32)) {
550
571
  t.$flags$ |= 32;
551
572
  {
552
573
  c = e.constructor;
553
- const o = e.localName;
554
- customElements.whenDefined(o).then(
574
+ const i = e.localName;
575
+ customElements.whenDefined(i).then(
555
576
  () => t.$flags$ |= 128
556
577
  /* isWatchReady */
557
578
  );
558
579
  }
559
580
  if (c && c.style) {
560
- let o;
561
- typeof c.style == "string" && (o = c.style);
562
- const u = lt(r);
563
- if (!ne.has(u)) {
564
- const i = V("registerStyles", r.$tagName$);
565
- xr(u, o, !!(r.$flags$ & 1)), i();
581
+ let i;
582
+ typeof c.style == "string" && (i = c.style);
583
+ const u = mt(r);
584
+ if (!ce.has(u)) {
585
+ const o = Y("registerStyles", r.$tagName$);
586
+ _r(u, i, !!(r.$flags$ & 1)), o();
566
587
  }
567
588
  }
568
589
  }
569
- const a = t.$ancestorComponent$, n = () => Ee(t, !0);
590
+ const a = t.$ancestorComponent$, n = () => Ce(t, !0);
570
591
  a && a["s-rc"] ? a["s-rc"].push(n) : n();
571
- }, jr = (e) => {
572
- }, Ur = (e) => {
573
- if (!(S.$flags$ & 1)) {
574
- const t = Q(e), r = t.$cmpMeta$, s = V("connectedCallback", r.$tagName$);
592
+ }, Gr = (e, t) => {
593
+ }, Yr = (e) => {
594
+ if (!(C.$flags$ & 1)) {
595
+ const t = V(e), r = t.$cmpMeta$, s = Y("connectedCallback", r.$tagName$);
575
596
  if (t.$flags$ & 1)
576
- t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => jr());
597
+ t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Gr());
577
598
  else {
578
599
  t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
579
- r.$flags$ & 12 && qr(e);
600
+ r.$flags$ & 12 && Kr(e);
580
601
  {
581
602
  let c = e;
582
603
  for (; c = c.parentNode || c.host; )
583
604
  if (c["s-p"]) {
584
- bt(t, t.$ancestorComponent$ = c);
605
+ Et(t, t.$ancestorComponent$ = c);
585
606
  break;
586
607
  }
587
608
  }
@@ -590,310 +611,481 @@ var me, ve, ce = !1, ie = !1, Fe = !1, w = !1, oe = (e, t, r, s) => {
590
611
  const n = e[c];
591
612
  delete e[c], e[c] = n;
592
613
  }
593
- }), Or(e, t, r);
614
+ }), Wr(e, t, r);
594
615
  }
595
616
  s();
596
617
  }
597
- }, qr = (e) => {
598
- const t = e["s-cr"] = U.createComment(
618
+ }, Kr = (e) => {
619
+ const t = e["s-cr"] = H.createComment(
599
620
  ""
600
621
  );
601
- t["s-cn"] = !0, q(e, t, e.firstChild);
602
- }, Nr = async (e) => {
603
- S.$flags$ & 1 || Q(e);
604
- }, M = (e, t) => {
622
+ t["s-cn"] = !0, N(e, t, e.firstChild);
623
+ }, Qr = async (e) => {
624
+ C.$flags$ & 1 || V(e), J.has(e) && J.delete(e), e.shadowRoot && J.has(e.shadowRoot) && J.delete(e.shadowRoot);
625
+ }, k = (e, t) => {
605
626
  const r = {
606
627
  $flags$: t[0],
607
628
  $tagName$: t[1]
608
629
  };
609
630
  r.$members$ = t[2], r.$watchers$ = e.$watchers$;
610
631
  const s = e.prototype.connectedCallback, c = e.prototype.disconnectedCallback;
611
- let a = !1;
612
632
  return Object.assign(e.prototype, {
633
+ __hasHostListenerAttached: !1,
613
634
  __registerHost() {
614
- rr(this, r);
635
+ dr(this, r);
615
636
  },
616
637
  connectedCallback() {
617
- a || (Q(this), a = !0), Ur(this), s && s.call(this);
638
+ this.__hasHostListenerAttached || (V(this), this.__hasHostListenerAttached = !0), Yr(this), s && s.call(this);
618
639
  },
619
640
  disconnectedCallback() {
620
- Nr(this), c && c.call(this);
641
+ Qr(this), c && c.call(this), C.raf(() => {
642
+ var a;
643
+ const n = V(this);
644
+ ((a = n == null ? void 0 : n.$vnode$) == null ? void 0 : a.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && ur(this);
645
+ });
621
646
  },
622
647
  __attachShadow() {
623
648
  this.shadowRoot = this;
624
649
  }
625
- }), e.is = r.$tagName$, Lr(e, r);
626
- }, $e = (e, t) => t, Se = {}, we = {};
627
- const Ve = (e) => {
650
+ }), e.is = r.$tagName$, Vr(e, r);
651
+ }, Se = (e, t) => t, ke = {}, Re = {};
652
+ const Ye = (e) => {
628
653
  let t;
629
- const r = /* @__PURE__ */ new Set(), s = (i, l) => {
630
- const h = typeof i == "function" ? i(t) : i;
631
- if (!Object.is(h, t)) {
632
- const f = t;
633
- t = l ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), r.forEach((g) => g(t, f));
654
+ const r = /* @__PURE__ */ new Set(), s = (o, l) => {
655
+ const f = typeof o == "function" ? o(t) : o;
656
+ if (!Object.is(f, t)) {
657
+ const h = t;
658
+ t = l ?? (typeof f != "object" || f === null) ? f : Object.assign({}, t, f), r.forEach((p) => p(t, h));
634
659
  }
635
- }, c = () => t, o = { setState: s, getState: c, getInitialState: () => u, subscribe: (i) => (r.add(i), () => r.delete(i)) }, u = t = e(s, c, o);
636
- return o;
637
- }, Hr = (e) => e ? Ve(e) : Ve;
638
- we.createStore = Hr;
639
- var Ce = {}, vt = { exports: {} }, b = {};
660
+ }, c = () => t, i = { setState: s, getState: c, getInitialState: () => u, subscribe: (o) => (r.add(o), () => r.delete(o)) }, u = t = e(s, c, i);
661
+ return i;
662
+ }, Jr = (e) => e ? Ye(e) : Ye;
663
+ Re.createStore = Jr;
664
+ var _e = {}, $t = { exports: {} }, b = {};
640
665
  /**
641
666
  * @license React
642
- * react.production.min.js
667
+ * react.production.js
643
668
  *
644
- * Copyright (c) Facebook, Inc. and its affiliates.
669
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
645
670
  *
646
671
  * This source code is licensed under the MIT license found in the
647
672
  * LICENSE file in the root directory of this source tree.
648
673
  */
649
- var X = Symbol.for("react.element"), Vr = Symbol.for("react.portal"), Wr = Symbol.for("react.fragment"), Gr = Symbol.for("react.strict_mode"), Qr = Symbol.for("react.profiler"), Jr = Symbol.for("react.provider"), Kr = Symbol.for("react.context"), Yr = Symbol.for("react.forward_ref"), Xr = Symbol.for("react.suspense"), Zr = Symbol.for("react.memo"), es = Symbol.for("react.lazy"), We = Symbol.iterator;
650
- function ts(e) {
651
- return e === null || typeof e != "object" ? null : (e = We && e[We] || e["@@iterator"], typeof e == "function" ? e : null);
674
+ var ze = Symbol.for("react.transitional.element"), Xr = Symbol.for("react.portal"), Zr = Symbol.for("react.fragment"), es = Symbol.for("react.strict_mode"), ts = Symbol.for("react.profiler"), rs = Symbol.for("react.consumer"), ss = Symbol.for("react.context"), ns = Symbol.for("react.forward_ref"), as = Symbol.for("react.suspense"), cs = Symbol.for("react.memo"), Ct = Symbol.for("react.lazy"), Ke = Symbol.iterator;
675
+ function is(e) {
676
+ return e === null || typeof e != "object" ? null : (e = Ke && e[Ke] || e["@@iterator"], typeof e == "function" ? e : null);
652
677
  }
653
- var Ft = { isMounted: function() {
654
- return !1;
655
- }, enqueueForceUpdate: function() {
656
- }, enqueueReplaceState: function() {
657
- }, enqueueSetState: function() {
658
- } }, xt = Object.assign, Et = {};
659
- function J(e, t, r) {
660
- this.props = e, this.context = t, this.refs = Et, this.updater = r || Ft;
661
- }
662
- J.prototype.isReactComponent = {};
663
- J.prototype.setState = function(e, t) {
664
- if (typeof e != "object" && typeof e != "function" && e != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
678
+ var St = {
679
+ isMounted: function() {
680
+ return !1;
681
+ },
682
+ enqueueForceUpdate: function() {
683
+ },
684
+ enqueueReplaceState: function() {
685
+ },
686
+ enqueueSetState: function() {
687
+ }
688
+ }, kt = Object.assign, Rt = {};
689
+ function Z(e, t, r) {
690
+ this.props = e, this.context = t, this.refs = Rt, this.updater = r || St;
691
+ }
692
+ Z.prototype.isReactComponent = {};
693
+ Z.prototype.setState = function(e, t) {
694
+ if (typeof e != "object" && typeof e != "function" && e != null)
695
+ throw Error(
696
+ "takes an object of state variables to update or a function which returns an object of state variables."
697
+ );
665
698
  this.updater.enqueueSetState(this, e, t, "setState");
666
699
  };
667
- J.prototype.forceUpdate = function(e) {
700
+ Z.prototype.forceUpdate = function(e) {
668
701
  this.updater.enqueueForceUpdate(this, e, "forceUpdate");
669
702
  };
670
- function $t() {
671
- }
672
- $t.prototype = J.prototype;
673
- function ke(e, t, r) {
674
- this.props = e, this.context = t, this.refs = Et, this.updater = r || Ft;
675
- }
676
- var Re = ke.prototype = new $t();
677
- Re.constructor = ke;
678
- xt(Re, J.prototype);
679
- Re.isPureReactComponent = !0;
680
- var Ge = Array.isArray, St = Object.prototype.hasOwnProperty, ze = { current: null }, wt = { key: !0, ref: !0, __self: !0, __source: !0 };
681
- function Ct(e, t, r) {
682
- var s, c = {}, a = null, n = null;
683
- if (t != null) for (s in t.ref !== void 0 && (n = t.ref), t.key !== void 0 && (a = "" + t.key), t) St.call(t, s) && !wt.hasOwnProperty(s) && (c[s] = t[s]);
684
- var o = arguments.length - 2;
685
- if (o === 1) c.children = r;
686
- else if (1 < o) {
687
- for (var u = Array(o), i = 0; i < o; i++) u[i] = arguments[i + 2];
688
- c.children = u;
689
- }
690
- if (e && e.defaultProps) for (s in o = e.defaultProps, o) c[s] === void 0 && (c[s] = o[s]);
691
- return { $$typeof: X, type: e, key: a, ref: n, props: c, _owner: ze.current };
692
- }
693
- function rs(e, t) {
694
- return { $$typeof: X, type: e.type, key: t, ref: e.ref, props: e.props, _owner: e._owner };
695
- }
696
- function Te(e) {
697
- return typeof e == "object" && e !== null && e.$$typeof === X;
698
- }
699
- function ss(e) {
703
+ function _t() {
704
+ }
705
+ _t.prototype = Z.prototype;
706
+ function Te(e, t, r) {
707
+ this.props = e, this.context = t, this.refs = Rt, this.updater = r || St;
708
+ }
709
+ var Pe = Te.prototype = new _t();
710
+ Pe.constructor = Te;
711
+ kt(Pe, Z.prototype);
712
+ Pe.isPureReactComponent = !0;
713
+ var Qe = Array.isArray, y = { H: null, A: null, T: null, S: null }, zt = Object.prototype.hasOwnProperty;
714
+ function Ae(e, t, r, s, c, a) {
715
+ return r = a.ref, {
716
+ $$typeof: ze,
717
+ type: e,
718
+ key: t,
719
+ ref: r !== void 0 ? r : null,
720
+ props: a
721
+ };
722
+ }
723
+ function os(e, t) {
724
+ return Ae(
725
+ e.type,
726
+ t,
727
+ void 0,
728
+ void 0,
729
+ void 0,
730
+ e.props
731
+ );
732
+ }
733
+ function De(e) {
734
+ return typeof e == "object" && e !== null && e.$$typeof === ze;
735
+ }
736
+ function ls(e) {
700
737
  var t = { "=": "=0", ":": "=2" };
701
738
  return "$" + e.replace(/[=:]/g, function(r) {
702
739
  return t[r];
703
740
  });
704
741
  }
705
- var Qe = /\/+/g;
706
- function de(e, t) {
707
- return typeof e == "object" && e !== null && e.key != null ? ss("" + e.key) : t.toString(36);
742
+ var Je = /\/+/g;
743
+ function pe(e, t) {
744
+ return typeof e == "object" && e !== null && e.key != null ? ls("" + e.key) : t.toString(36);
745
+ }
746
+ function Xe() {
747
+ }
748
+ function us(e) {
749
+ switch (e.status) {
750
+ case "fulfilled":
751
+ return e.value;
752
+ case "rejected":
753
+ throw e.reason;
754
+ default:
755
+ switch (typeof e.status == "string" ? e.then(Xe, Xe) : (e.status = "pending", e.then(
756
+ function(t) {
757
+ e.status === "pending" && (e.status = "fulfilled", e.value = t);
758
+ },
759
+ function(t) {
760
+ e.status === "pending" && (e.status = "rejected", e.reason = t);
761
+ }
762
+ )), e.status) {
763
+ case "fulfilled":
764
+ return e.value;
765
+ case "rejected":
766
+ throw e.reason;
767
+ }
768
+ }
769
+ throw e;
708
770
  }
709
- function re(e, t, r, s, c) {
771
+ function Q(e, t, r, s, c) {
710
772
  var a = typeof e;
711
773
  (a === "undefined" || a === "boolean") && (e = null);
712
774
  var n = !1;
713
775
  if (e === null) n = !0;
714
- else switch (a) {
715
- case "string":
716
- case "number":
717
- n = !0;
718
- break;
719
- case "object":
720
- switch (e.$$typeof) {
721
- case X:
722
- case Vr:
723
- n = !0;
724
- }
725
- }
726
- if (n) return n = e, c = c(n), e = s === "" ? "." + de(n, 0) : s, Ge(c) ? (r = "", e != null && (r = e.replace(Qe, "$&/") + "/"), re(c, t, r, "", function(i) {
727
- return i;
728
- })) : c != null && (Te(c) && (c = rs(c, r + (!c.key || n && n.key === c.key ? "" : ("" + c.key).replace(Qe, "$&/") + "/") + e)), t.push(c)), 1;
729
- if (n = 0, s = s === "" ? "." : s + ":", Ge(e)) for (var o = 0; o < e.length; o++) {
730
- a = e[o];
731
- var u = s + de(a, o);
732
- n += re(a, t, r, u, c);
776
+ else
777
+ switch (a) {
778
+ case "bigint":
779
+ case "string":
780
+ case "number":
781
+ n = !0;
782
+ break;
783
+ case "object":
784
+ switch (e.$$typeof) {
785
+ case ze:
786
+ case Xr:
787
+ n = !0;
788
+ break;
789
+ case Ct:
790
+ return n = e._init, Q(
791
+ n(e._payload),
792
+ t,
793
+ r,
794
+ s,
795
+ c
796
+ );
797
+ }
798
+ }
799
+ if (n)
800
+ return c = c(e), n = s === "" ? "." + pe(e, 0) : s, Qe(c) ? (r = "", n != null && (r = n.replace(Je, "$&/") + "/"), Q(c, t, r, "", function(o) {
801
+ return o;
802
+ })) : c != null && (De(c) && (c = os(
803
+ c,
804
+ r + (c.key == null || e && e.key === c.key ? "" : ("" + c.key).replace(
805
+ Je,
806
+ "$&/"
807
+ ) + "/") + n
808
+ )), t.push(c)), 1;
809
+ n = 0;
810
+ var i = s === "" ? "." : s + ":";
811
+ if (Qe(e))
812
+ for (var u = 0; u < e.length; u++)
813
+ s = e[u], a = i + pe(s, u), n += Q(
814
+ s,
815
+ t,
816
+ r,
817
+ a,
818
+ c
819
+ );
820
+ else if (u = is(e), typeof u == "function")
821
+ for (e = u.call(e), u = 0; !(s = e.next()).done; )
822
+ s = s.value, a = i + pe(s, u++), n += Q(
823
+ s,
824
+ t,
825
+ r,
826
+ a,
827
+ c
828
+ );
829
+ else if (a === "object") {
830
+ if (typeof e.then == "function")
831
+ return Q(
832
+ us(e),
833
+ t,
834
+ r,
835
+ s,
836
+ c
837
+ );
838
+ throw t = String(e), Error(
839
+ "Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."
840
+ );
733
841
  }
734
- else if (u = ts(e), typeof u == "function") for (e = u.call(e), o = 0; !(a = e.next()).done; ) a = a.value, u = s + de(a, o++), n += re(a, t, r, u, c);
735
- else if (a === "object") throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
736
842
  return n;
737
843
  }
738
- function ee(e, t, r) {
844
+ function ne(e, t, r) {
739
845
  if (e == null) return e;
740
846
  var s = [], c = 0;
741
- return re(e, s, "", "", function(a) {
847
+ return Q(e, s, "", "", function(a) {
742
848
  return t.call(r, a, c++);
743
849
  }), s;
744
850
  }
745
- function ns(e) {
851
+ function ds(e) {
746
852
  if (e._status === -1) {
747
853
  var t = e._result;
748
- t = t(), t.then(function(r) {
749
- (e._status === 0 || e._status === -1) && (e._status = 1, e._result = r);
750
- }, function(r) {
751
- (e._status === 0 || e._status === -1) && (e._status = 2, e._result = r);
752
- }), e._status === -1 && (e._status = 0, e._result = t);
854
+ t = t(), t.then(
855
+ function(r) {
856
+ (e._status === 0 || e._status === -1) && (e._status = 1, e._result = r);
857
+ },
858
+ function(r) {
859
+ (e._status === 0 || e._status === -1) && (e._status = 2, e._result = r);
860
+ }
861
+ ), e._status === -1 && (e._status = 0, e._result = t);
753
862
  }
754
863
  if (e._status === 1) return e._result.default;
755
864
  throw e._result;
756
865
  }
757
- var $ = { current: null }, se = { transition: null }, as = { ReactCurrentDispatcher: $, ReactCurrentBatchConfig: se, ReactCurrentOwner: ze };
758
- function kt() {
759
- throw Error("act(...) is not supported in production builds of React.");
866
+ var Ze = typeof reportError == "function" ? reportError : function(e) {
867
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
868
+ var t = new window.ErrorEvent("error", {
869
+ bubbles: !0,
870
+ cancelable: !0,
871
+ message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
872
+ error: e
873
+ });
874
+ if (!window.dispatchEvent(t)) return;
875
+ } else if (typeof process == "object" && typeof process.emit == "function") {
876
+ process.emit("uncaughtException", e);
877
+ return;
878
+ }
879
+ console.error(e);
880
+ };
881
+ function fs() {
760
882
  }
761
- b.Children = { map: ee, forEach: function(e, t, r) {
762
- ee(e, function() {
763
- t.apply(this, arguments);
764
- }, r);
765
- }, count: function(e) {
766
- var t = 0;
767
- return ee(e, function() {
768
- t++;
769
- }), t;
770
- }, toArray: function(e) {
771
- return ee(e, function(t) {
772
- return t;
773
- }) || [];
774
- }, only: function(e) {
775
- if (!Te(e)) throw Error("React.Children.only expected to receive a single React element child.");
776
- return e;
777
- } };
778
- b.Component = J;
779
- b.Fragment = Wr;
780
- b.Profiler = Qr;
781
- b.PureComponent = ke;
782
- b.StrictMode = Gr;
783
- b.Suspense = Xr;
784
- b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = as;
785
- b.act = kt;
883
+ b.Children = {
884
+ map: ne,
885
+ forEach: function(e, t, r) {
886
+ ne(
887
+ e,
888
+ function() {
889
+ t.apply(this, arguments);
890
+ },
891
+ r
892
+ );
893
+ },
894
+ count: function(e) {
895
+ var t = 0;
896
+ return ne(e, function() {
897
+ t++;
898
+ }), t;
899
+ },
900
+ toArray: function(e) {
901
+ return ne(e, function(t) {
902
+ return t;
903
+ }) || [];
904
+ },
905
+ only: function(e) {
906
+ if (!De(e))
907
+ throw Error(
908
+ "React.Children.only expected to receive a single React element child."
909
+ );
910
+ return e;
911
+ }
912
+ };
913
+ b.Component = Z;
914
+ b.Fragment = Zr;
915
+ b.Profiler = ts;
916
+ b.PureComponent = Te;
917
+ b.StrictMode = es;
918
+ b.Suspense = as;
919
+ b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = y;
920
+ b.act = function() {
921
+ throw Error("act(...) is not supported in production builds of React.");
922
+ };
923
+ b.cache = function(e) {
924
+ return function() {
925
+ return e.apply(null, arguments);
926
+ };
927
+ };
786
928
  b.cloneElement = function(e, t, r) {
787
- if (e == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
788
- var s = xt({}, e.props), c = e.key, a = e.ref, n = e._owner;
789
- if (t != null) {
790
- if (t.ref !== void 0 && (a = t.ref, n = ze.current), t.key !== void 0 && (c = "" + t.key), e.type && e.type.defaultProps) var o = e.type.defaultProps;
791
- for (u in t) St.call(t, u) && !wt.hasOwnProperty(u) && (s[u] = t[u] === void 0 && o !== void 0 ? o[u] : t[u]);
792
- }
793
- var u = arguments.length - 2;
794
- if (u === 1) s.children = r;
795
- else if (1 < u) {
796
- o = Array(u);
797
- for (var i = 0; i < u; i++) o[i] = arguments[i + 2];
798
- s.children = o;
799
- }
800
- return { $$typeof: X, type: e.type, key: c, ref: a, props: s, _owner: n };
929
+ if (e == null)
930
+ throw Error(
931
+ "The argument must be a React element, but you passed " + e + "."
932
+ );
933
+ var s = kt({}, e.props), c = e.key, a = void 0;
934
+ if (t != null)
935
+ for (n in t.ref !== void 0 && (a = void 0), t.key !== void 0 && (c = "" + t.key), t)
936
+ !zt.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
937
+ var n = arguments.length - 2;
938
+ if (n === 1) s.children = r;
939
+ else if (1 < n) {
940
+ for (var i = Array(n), u = 0; u < n; u++)
941
+ i[u] = arguments[u + 2];
942
+ s.children = i;
943
+ }
944
+ return Ae(e.type, c, void 0, void 0, a, s);
801
945
  };
802
946
  b.createContext = function(e) {
803
- return e = { $$typeof: Kr, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, e.Provider = { $$typeof: Jr, _context: e }, e.Consumer = e;
947
+ return e = {
948
+ $$typeof: ss,
949
+ _currentValue: e,
950
+ _currentValue2: e,
951
+ _threadCount: 0,
952
+ Provider: null,
953
+ Consumer: null
954
+ }, e.Provider = e, e.Consumer = {
955
+ $$typeof: rs,
956
+ _context: e
957
+ }, e;
804
958
  };
805
- b.createElement = Ct;
806
- b.createFactory = function(e) {
807
- var t = Ct.bind(null, e);
808
- return t.type = e, t;
959
+ b.createElement = function(e, t, r) {
960
+ var s, c = {}, a = null;
961
+ if (t != null)
962
+ for (s in t.key !== void 0 && (a = "" + t.key), t)
963
+ zt.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (c[s] = t[s]);
964
+ var n = arguments.length - 2;
965
+ if (n === 1) c.children = r;
966
+ else if (1 < n) {
967
+ for (var i = Array(n), u = 0; u < n; u++)
968
+ i[u] = arguments[u + 2];
969
+ c.children = i;
970
+ }
971
+ if (e && e.defaultProps)
972
+ for (s in n = e.defaultProps, n)
973
+ c[s] === void 0 && (c[s] = n[s]);
974
+ return Ae(e, a, void 0, void 0, null, c);
809
975
  };
810
976
  b.createRef = function() {
811
977
  return { current: null };
812
978
  };
813
979
  b.forwardRef = function(e) {
814
- return { $$typeof: Yr, render: e };
980
+ return { $$typeof: ns, render: e };
815
981
  };
816
- b.isValidElement = Te;
982
+ b.isValidElement = De;
817
983
  b.lazy = function(e) {
818
- return { $$typeof: es, _payload: { _status: -1, _result: e }, _init: ns };
984
+ return {
985
+ $$typeof: Ct,
986
+ _payload: { _status: -1, _result: e },
987
+ _init: ds
988
+ };
819
989
  };
820
990
  b.memo = function(e, t) {
821
- return { $$typeof: Zr, type: e, compare: t === void 0 ? null : t };
991
+ return {
992
+ $$typeof: cs,
993
+ type: e,
994
+ compare: t === void 0 ? null : t
995
+ };
822
996
  };
823
997
  b.startTransition = function(e) {
824
- var t = se.transition;
825
- se.transition = {};
998
+ var t = y.T, r = {};
999
+ y.T = r;
826
1000
  try {
827
- e();
1001
+ var s = e(), c = y.S;
1002
+ c !== null && c(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(fs, Ze);
1003
+ } catch (a) {
1004
+ Ze(a);
828
1005
  } finally {
829
- se.transition = t;
1006
+ y.T = t;
830
1007
  }
831
1008
  };
832
- b.unstable_act = kt;
1009
+ b.unstable_useCacheRefresh = function() {
1010
+ return y.H.useCacheRefresh();
1011
+ };
1012
+ b.use = function(e) {
1013
+ return y.H.use(e);
1014
+ };
1015
+ b.useActionState = function(e, t, r) {
1016
+ return y.H.useActionState(e, t, r);
1017
+ };
833
1018
  b.useCallback = function(e, t) {
834
- return $.current.useCallback(e, t);
1019
+ return y.H.useCallback(e, t);
835
1020
  };
836
1021
  b.useContext = function(e) {
837
- return $.current.useContext(e);
1022
+ return y.H.useContext(e);
838
1023
  };
839
1024
  b.useDebugValue = function() {
840
1025
  };
841
- b.useDeferredValue = function(e) {
842
- return $.current.useDeferredValue(e);
1026
+ b.useDeferredValue = function(e, t) {
1027
+ return y.H.useDeferredValue(e, t);
843
1028
  };
844
1029
  b.useEffect = function(e, t) {
845
- return $.current.useEffect(e, t);
1030
+ return y.H.useEffect(e, t);
846
1031
  };
847
1032
  b.useId = function() {
848
- return $.current.useId();
1033
+ return y.H.useId();
849
1034
  };
850
1035
  b.useImperativeHandle = function(e, t, r) {
851
- return $.current.useImperativeHandle(e, t, r);
1036
+ return y.H.useImperativeHandle(e, t, r);
852
1037
  };
853
1038
  b.useInsertionEffect = function(e, t) {
854
- return $.current.useInsertionEffect(e, t);
1039
+ return y.H.useInsertionEffect(e, t);
855
1040
  };
856
1041
  b.useLayoutEffect = function(e, t) {
857
- return $.current.useLayoutEffect(e, t);
1042
+ return y.H.useLayoutEffect(e, t);
858
1043
  };
859
1044
  b.useMemo = function(e, t) {
860
- return $.current.useMemo(e, t);
1045
+ return y.H.useMemo(e, t);
1046
+ };
1047
+ b.useOptimistic = function(e, t) {
1048
+ return y.H.useOptimistic(e, t);
861
1049
  };
862
1050
  b.useReducer = function(e, t, r) {
863
- return $.current.useReducer(e, t, r);
1051
+ return y.H.useReducer(e, t, r);
864
1052
  };
865
1053
  b.useRef = function(e) {
866
- return $.current.useRef(e);
1054
+ return y.H.useRef(e);
867
1055
  };
868
1056
  b.useState = function(e) {
869
- return $.current.useState(e);
1057
+ return y.H.useState(e);
870
1058
  };
871
1059
  b.useSyncExternalStore = function(e, t, r) {
872
- return $.current.useSyncExternalStore(e, t, r);
1060
+ return y.H.useSyncExternalStore(
1061
+ e,
1062
+ t,
1063
+ r
1064
+ );
873
1065
  };
874
1066
  b.useTransition = function() {
875
- return $.current.useTransition();
1067
+ return y.H.useTransition();
876
1068
  };
877
- b.version = "18.3.1";
878
- vt.exports = b;
879
- var Je = vt.exports, cs = we;
880
- const is = (e) => e;
881
- function Rt(e, t = is) {
882
- const r = Je.useSyncExternalStore(
1069
+ b.version = "19.0.0";
1070
+ $t.exports = b;
1071
+ var et = $t.exports, hs = Re;
1072
+ const ps = (e) => e;
1073
+ function Tt(e, t = ps) {
1074
+ const r = et.useSyncExternalStore(
883
1075
  e.subscribe,
884
1076
  () => t(e.getState()),
885
1077
  () => t(e.getInitialState())
886
1078
  );
887
- return Je.useDebugValue(r), r;
1079
+ return et.useDebugValue(r), r;
888
1080
  }
889
- const Ke = (e) => {
890
- const t = cs.createStore(e), r = (s) => Rt(t, s);
1081
+ const tt = (e) => {
1082
+ const t = hs.createStore(e), r = (s) => Tt(t, s);
891
1083
  return Object.assign(r, t), r;
892
- }, os = (e) => e ? Ke(e) : Ke;
893
- Ce.create = os;
894
- Ce.useStore = Rt;
1084
+ }, gs = (e) => e ? tt(e) : tt;
1085
+ _e.create = gs;
1086
+ _e.useStore = Tt;
895
1087
  (function(e) {
896
- var t = we, r = Ce;
1088
+ var t = Re, r = _e;
897
1089
  Object.keys(t).forEach(function(s) {
898
1090
  s !== "default" && !Object.prototype.hasOwnProperty.call(e, s) && Object.defineProperty(e, s, {
899
1091
  enumerable: !0,
@@ -909,50 +1101,50 @@ Ce.useStore = Rt;
909
1101
  }
910
1102
  });
911
1103
  });
912
- })(Se);
913
- var ls = Object.defineProperty, us = (e, t, r) => t in e ? ls(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, R = (e, t, r) => us(e, typeof t != "symbol" ? t + "" : t, r);
914
- const ds = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
915
- let hs = (e = 21) => {
1104
+ })(ke);
1105
+ var ms = Object.defineProperty, bs = (e, t, r) => t in e ? ms(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, B = (e, t, r) => bs(e, typeof t != "symbol" ? t + "" : t, r);
1106
+ const ys = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1107
+ let vs = (e = 21) => {
916
1108
  let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
917
1109
  for (; e--; )
918
- t += ds[r[e] & 63];
1110
+ t += ys[r[e] & 63];
919
1111
  return t;
920
1112
  };
921
- function L(e, t, r, s) {
1113
+ function O(e, t, r, s) {
922
1114
  return new (r || (r = Promise))(function(c, a) {
923
- function n(i) {
1115
+ function n(o) {
924
1116
  try {
925
- u(s.next(i));
1117
+ u(s.next(o));
926
1118
  } catch (l) {
927
1119
  a(l);
928
1120
  }
929
1121
  }
930
- function o(i) {
1122
+ function i(o) {
931
1123
  try {
932
- u(s.throw(i));
1124
+ u(s.throw(o));
933
1125
  } catch (l) {
934
1126
  a(l);
935
1127
  }
936
1128
  }
937
- function u(i) {
1129
+ function u(o) {
938
1130
  var l;
939
- i.done ? c(i.value) : (l = i.value, l instanceof r ? l : new r(function(h) {
940
- h(l);
941
- })).then(n, o);
1131
+ o.done ? c(o.value) : (l = o.value, l instanceof r ? l : new r(function(f) {
1132
+ f(l);
1133
+ })).then(n, i);
942
1134
  }
943
1135
  u((s = s.apply(e, [])).next());
944
1136
  });
945
1137
  }
946
- function O(e, t) {
1138
+ function j(e, t) {
947
1139
  var r, s, c, a, n = { label: 0, sent: function() {
948
1140
  if (1 & c[0]) throw c[1];
949
1141
  return c[1];
950
1142
  }, trys: [], ops: [] };
951
- return a = { next: o(0), throw: o(1), return: o(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
1143
+ return a = { next: i(0), throw: i(1), return: i(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
952
1144
  return this;
953
1145
  }), a;
954
- function o(u) {
955
- return function(i) {
1146
+ function i(u) {
1147
+ return function(o) {
956
1148
  return function(l) {
957
1149
  if (r) throw new TypeError("Generator is already executing.");
958
1150
  for (; a && (a = 0, l[0] && (n = 0)), n; ) try {
@@ -991,110 +1183,110 @@ function O(e, t) {
991
1183
  continue;
992
1184
  }
993
1185
  l = t.call(e, n);
994
- } catch (h) {
995
- l = [6, h], s = 0;
1186
+ } catch (f) {
1187
+ l = [6, f], s = 0;
996
1188
  } finally {
997
1189
  r = c = 0;
998
1190
  }
999
1191
  if (5 & l[0]) throw l[1];
1000
1192
  return { value: l[0] ? l[1] : void 0, done: !0 };
1001
- }([u, i]);
1193
+ }([u, o]);
1002
1194
  };
1003
1195
  }
1004
1196
  }
1005
- var j = { exclude: [] }, zt = {}, fs = { timeout: "true" }, z = function(e, t) {
1006
- typeof window < "u" && (zt[e] = t);
1007
- }, ps = function() {
1008
- return Object.fromEntries(Object.entries(zt).filter(function(e) {
1197
+ var U = { exclude: [] }, Pt = {}, Fs = { timeout: "true" }, I = function(e, t) {
1198
+ typeof window < "u" && (Pt[e] = t);
1199
+ }, xs = function() {
1200
+ return Object.fromEntries(Object.entries(Pt).filter(function(e) {
1009
1201
  var t, r = e[0];
1010
- return !(!((t = j == null ? void 0 : j.exclude) === null || t === void 0) && t.includes(r));
1202
+ return !(!((t = U == null ? void 0 : U.exclude) === null || t === void 0) && t.includes(r));
1011
1203
  }).map(function(e) {
1012
1204
  return [e[0], (0, e[1])()];
1013
1205
  }));
1014
1206
  };
1015
- function te(e) {
1207
+ function ae(e) {
1016
1208
  return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
1017
1209
  }
1018
- var F = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
1019
- function C(e, t) {
1210
+ var w = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
1211
+ function P(e, t) {
1020
1212
  return e << t | e >>> 32 - t;
1021
1213
  }
1022
- function _e(e, t) {
1214
+ function Be(e, t) {
1023
1215
  var r;
1024
1216
  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");
1025
1217
  var s = new Uint32Array([t, t, t, t]);
1026
1218
  (function(a, n) {
1027
- for (var o = a.byteLength / 16 | 0, u = new Uint32Array(a, 0, 4 * o), i = 0; i < o; i++) {
1028
- var l = u.subarray(4 * i, 4 * (i + 1));
1029
- l[0] = Math.imul(l[0], F[0]), l[0] = C(l[0], 15), l[0] = Math.imul(l[0], F[1]), n[0] = n[0] ^ l[0], n[0] = C(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, l[1] = Math.imul(l[1], F[1]), l[1] = C(l[1], 16), l[1] = Math.imul(l[1], F[2]), n[1] = n[1] ^ l[1], n[1] = C(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, l[2] = Math.imul(l[2], F[2]), l[2] = C(l[2], 17), l[2] = Math.imul(l[2], F[3]), n[2] = n[2] ^ l[2], n[2] = C(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, l[3] = Math.imul(l[3], F[3]), l[3] = C(l[3], 18), l[3] = Math.imul(l[3], F[0]), n[3] = n[3] ^ l[3], n[3] = C(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
1219
+ for (var i = a.byteLength / 16 | 0, u = new Uint32Array(a, 0, 4 * i), o = 0; o < i; o++) {
1220
+ var l = u.subarray(4 * o, 4 * (o + 1));
1221
+ l[0] = Math.imul(l[0], w[0]), l[0] = P(l[0], 15), l[0] = Math.imul(l[0], w[1]), n[0] = n[0] ^ l[0], n[0] = P(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, l[1] = Math.imul(l[1], w[1]), l[1] = P(l[1], 16), l[1] = Math.imul(l[1], w[2]), n[1] = n[1] ^ l[1], n[1] = P(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, l[2] = Math.imul(l[2], w[2]), l[2] = P(l[2], 17), l[2] = Math.imul(l[2], w[3]), n[2] = n[2] ^ l[2], n[2] = P(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, l[3] = Math.imul(l[3], w[3]), l[3] = P(l[3], 18), l[3] = Math.imul(l[3], w[0]), n[3] = n[3] ^ l[3], n[3] = P(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
1030
1222
  }
1031
1223
  })(e, s), function(a, n) {
1032
- var o = a.byteLength / 16 | 0, u = a.byteLength % 16, i = new Uint32Array(4), l = new Uint8Array(a, 16 * o, u);
1224
+ var i = a.byteLength / 16 | 0, u = a.byteLength % 16, o = new Uint32Array(4), l = new Uint8Array(a, 16 * i, u);
1033
1225
  switch (u) {
1034
1226
  case 15:
1035
- i[3] = i[3] ^ l[14] << 16;
1227
+ o[3] = o[3] ^ l[14] << 16;
1036
1228
  case 14:
1037
- i[3] = i[3] ^ l[13] << 8;
1229
+ o[3] = o[3] ^ l[13] << 8;
1038
1230
  case 13:
1039
- i[3] = i[3] ^ l[12] << 0, i[3] = Math.imul(i[3], F[3]), i[3] = C(i[3], 18), i[3] = Math.imul(i[3], F[0]), n[3] = n[3] ^ i[3];
1231
+ o[3] = o[3] ^ l[12] << 0, o[3] = Math.imul(o[3], w[3]), o[3] = P(o[3], 18), o[3] = Math.imul(o[3], w[0]), n[3] = n[3] ^ o[3];
1040
1232
  case 12:
1041
- i[2] = i[2] ^ l[11] << 24;
1233
+ o[2] = o[2] ^ l[11] << 24;
1042
1234
  case 11:
1043
- i[2] = i[2] ^ l[10] << 16;
1235
+ o[2] = o[2] ^ l[10] << 16;
1044
1236
  case 10:
1045
- i[2] = i[2] ^ l[9] << 8;
1237
+ o[2] = o[2] ^ l[9] << 8;
1046
1238
  case 9:
1047
- i[2] = i[2] ^ l[8] << 0, i[2] = Math.imul(i[2], F[2]), i[2] = C(i[2], 17), i[2] = Math.imul(i[2], F[3]), n[2] = n[2] ^ i[2];
1239
+ o[2] = o[2] ^ l[8] << 0, o[2] = Math.imul(o[2], w[2]), o[2] = P(o[2], 17), o[2] = Math.imul(o[2], w[3]), n[2] = n[2] ^ o[2];
1048
1240
  case 8:
1049
- i[1] = i[1] ^ l[7] << 24;
1241
+ o[1] = o[1] ^ l[7] << 24;
1050
1242
  case 7:
1051
- i[1] = i[1] ^ l[6] << 16;
1243
+ o[1] = o[1] ^ l[6] << 16;
1052
1244
  case 6:
1053
- i[1] = i[1] ^ l[5] << 8;
1245
+ o[1] = o[1] ^ l[5] << 8;
1054
1246
  case 5:
1055
- i[1] = i[1] ^ l[4] << 0, i[1] = Math.imul(i[1], F[1]), i[1] = C(i[1], 16), i[1] = Math.imul(i[1], F[2]), n[1] = n[1] ^ i[1];
1247
+ o[1] = o[1] ^ l[4] << 0, o[1] = Math.imul(o[1], w[1]), o[1] = P(o[1], 16), o[1] = Math.imul(o[1], w[2]), n[1] = n[1] ^ o[1];
1056
1248
  case 4:
1057
- i[0] = i[0] ^ l[3] << 24;
1249
+ o[0] = o[0] ^ l[3] << 24;
1058
1250
  case 3:
1059
- i[0] = i[0] ^ l[2] << 16;
1251
+ o[0] = o[0] ^ l[2] << 16;
1060
1252
  case 2:
1061
- i[0] = i[0] ^ l[1] << 8;
1253
+ o[0] = o[0] ^ l[1] << 8;
1062
1254
  case 1:
1063
- i[0] = i[0] ^ l[0] << 0, i[0] = Math.imul(i[0], F[0]), i[0] = C(i[0], 15), i[0] = Math.imul(i[0], F[1]), n[0] = n[0] ^ i[0];
1255
+ o[0] = o[0] ^ l[0] << 0, o[0] = Math.imul(o[0], w[0]), o[0] = P(o[0], 15), o[0] = Math.imul(o[0], w[1]), n[0] = n[0] ^ o[0];
1064
1256
  }
1065
1257
  }(e, s), function(a, n) {
1066
- n[0] = n[0] ^ a.byteLength, n[1] = n[1] ^ a.byteLength, n[2] = n[2] ^ a.byteLength, n[3] = n[3] ^ a.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] = te(n[0]), n[1] = te(n[1]), n[2] = te(n[2]), n[3] = te(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;
1258
+ n[0] = n[0] ^ a.byteLength, n[1] = n[1] ^ a.byteLength, n[2] = n[2] ^ a.byteLength, n[3] = n[3] ^ a.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] = ae(n[0]), n[1] = ae(n[1]), n[2] = ae(n[2]), n[3] = ae(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;
1067
1259
  }(e, s);
1068
1260
  var c = new Uint8Array(s.buffer);
1069
1261
  return Array.from(c).map(function(a) {
1070
1262
  return a.toString(16).padStart(2, "0");
1071
1263
  }).join("");
1072
1264
  }
1073
- function gs(e, t) {
1265
+ function Es(e, t) {
1074
1266
  return new Promise(function(r) {
1075
1267
  setTimeout(function() {
1076
1268
  return r(t);
1077
1269
  }, e);
1078
1270
  });
1079
1271
  }
1080
- function ms(e, t, r) {
1272
+ function ws(e, t, r) {
1081
1273
  return Promise.all(e.map(function(s) {
1082
- return Promise.race([s, gs(t, r)]);
1274
+ return Promise.race([s, Es(t, r)]);
1083
1275
  }));
1084
1276
  }
1085
- function bs() {
1086
- return L(this, void 0, void 0, function() {
1277
+ function $s() {
1278
+ return O(this, void 0, void 0, function() {
1087
1279
  var e, t, r, s, c;
1088
- return O(this, function(a) {
1280
+ return j(this, function(a) {
1089
1281
  switch (a.label) {
1090
1282
  case 0:
1091
- return a.trys.push([0, 2, , 3]), e = ps(), t = Object.keys(e), [4, ms(Object.values(e), (j == null ? void 0 : j.timeout) || 1e3, fs)];
1283
+ return a.trys.push([0, 2, , 3]), e = xs(), t = Object.keys(e), [4, ws(Object.values(e), (U == null ? void 0 : U.timeout) || 1e3, Fs)];
1092
1284
  case 1:
1093
1285
  return r = a.sent(), s = r.filter(function(n) {
1094
1286
  return n !== void 0;
1095
- }), c = {}, s.forEach(function(n, o) {
1096
- c[t[o]] = n;
1097
- }), [2, Tt(c, j.exclude || [])];
1287
+ }), c = {}, s.forEach(function(n, i) {
1288
+ c[t[i]] = n;
1289
+ }), [2, At(c, U.exclude || [])];
1098
1290
  case 2:
1099
1291
  throw a.sent();
1100
1292
  case 3:
@@ -1103,31 +1295,31 @@ function bs() {
1103
1295
  });
1104
1296
  });
1105
1297
  }
1106
- function Tt(e, t) {
1298
+ function At(e, t) {
1107
1299
  var r = {}, s = function(a) {
1108
1300
  if (e.hasOwnProperty(a)) {
1109
1301
  var n = e[a];
1110
1302
  if (typeof n != "object" || Array.isArray(n)) t.includes(a) || (r[a] = n);
1111
1303
  else {
1112
- var o = Tt(n, t.map(function(u) {
1304
+ var i = At(n, t.map(function(u) {
1113
1305
  return u.startsWith(a + ".") ? u.slice(a.length + 1) : u;
1114
1306
  }));
1115
- Object.keys(o).length > 0 && (r[a] = o);
1307
+ Object.keys(i).length > 0 && (r[a] = i);
1116
1308
  }
1117
1309
  }
1118
1310
  };
1119
1311
  for (var c in e) s(c);
1120
1312
  return r;
1121
1313
  }
1122
- function ys(e) {
1123
- return L(this, void 0, void 0, function() {
1314
+ function Cs(e) {
1315
+ return O(this, void 0, void 0, function() {
1124
1316
  var t, r;
1125
- return O(this, function(s) {
1317
+ return j(this, function(s) {
1126
1318
  switch (s.label) {
1127
1319
  case 0:
1128
- return s.trys.push([0, 2, , 3]), [4, bs()];
1320
+ return s.trys.push([0, 2, , 3]), [4, $s()];
1129
1321
  case 1:
1130
- return t = s.sent(), r = _e(JSON.stringify(t)), [2, r.toString()];
1322
+ return t = s.sent(), r = Be(JSON.stringify(t)), [2, r.toString()];
1131
1323
  case 2:
1132
1324
  throw s.sent();
1133
1325
  case 3:
@@ -1136,19 +1328,19 @@ function ys(e) {
1136
1328
  });
1137
1329
  });
1138
1330
  }
1139
- function vs(e) {
1331
+ function Ss(e) {
1140
1332
  for (var t = 0, r = 0; r < e.length; ++r) t += Math.abs(e[r]);
1141
1333
  return t;
1142
1334
  }
1143
- function _t(e, t, r) {
1335
+ function Dt(e, t, r) {
1144
1336
  for (var s = [], c = 0; c < e[0].data.length; c++) {
1145
1337
  for (var a = [], n = 0; n < e.length; n++) a.push(e[n].data[c]);
1146
- s.push(Fs(a));
1338
+ s.push(ks(a));
1147
1339
  }
1148
- var o = new Uint8ClampedArray(s);
1149
- return new ImageData(o, t, r);
1340
+ var i = new Uint8ClampedArray(s);
1341
+ return new ImageData(i, t, r);
1150
1342
  }
1151
- function Fs(e) {
1343
+ function ks(e) {
1152
1344
  if (e.length === 0) return 0;
1153
1345
  for (var t = {}, r = 0, s = e; r < s.length; r++)
1154
1346
  t[a = s[r]] = (t[a] || 0) + 1;
@@ -1156,7 +1348,7 @@ function Fs(e) {
1156
1348
  for (var a in t) t[a] > t[c] && (c = parseInt(a, 10));
1157
1349
  return c;
1158
1350
  }
1159
- function Y() {
1351
+ function re() {
1160
1352
  if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
1161
1353
  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++) {
1162
1354
  var c = s[r], a = e.match(c);
@@ -1164,16 +1356,16 @@ function Y() {
1164
1356
  }
1165
1357
  return { name: "unknown", version: "unknown" };
1166
1358
  }
1167
- z("audio", function() {
1168
- return L(this, void 0, void 0, function() {
1169
- return O(this, function(e) {
1359
+ I("audio", function() {
1360
+ return O(this, void 0, void 0, function() {
1361
+ return j(this, function(e) {
1170
1362
  return [2, new Promise(function(t, r) {
1171
1363
  try {
1172
1364
  var s = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), c = s.createBufferSource(), a = s.createOscillator();
1173
1365
  a.frequency.value = 1e3;
1174
- var n, o = s.createDynamicsCompressor();
1175
- o.threshold.value = -50, o.knee.value = 40, o.ratio.value = 12, o.attack.value = 0, o.release.value = 0.2, a.connect(o), o.connect(s.destination), a.start(), s.oncomplete = function(u) {
1176
- n = u.renderedBuffer.getChannelData(0), t({ sampleHash: vs(n), oscillator: a.type, maxChannels: s.destination.maxChannelCount, channelCountMode: c.channelCountMode });
1366
+ var n, i = s.createDynamicsCompressor();
1367
+ i.threshold.value = -50, i.knee.value = 40, i.ratio.value = 12, i.attack.value = 0, i.release.value = 0.2, a.connect(i), i.connect(s.destination), a.start(), s.oncomplete = function(u) {
1368
+ n = u.renderedBuffer.getChannelData(0), t({ sampleHash: Ss(n), oscillator: a.type, maxChannels: s.destination.maxChannelCount, channelCountMode: c.channelCountMode });
1177
1369
  }, s.startRendering();
1178
1370
  } catch (u) {
1179
1371
  console.error("Error creating audio fingerprint:", u), r(u);
@@ -1182,14 +1374,14 @@ z("audio", function() {
1182
1374
  });
1183
1375
  });
1184
1376
  });
1185
- var xs = Y().name !== "SamsungBrowser" ? 1 : 3, Ye = 280, Xe = 20;
1186
- Y().name != "Firefox" && z("canvas", function() {
1377
+ var Rs = re().name !== "SamsungBrowser" ? 1 : 3, rt = 280, st = 20;
1378
+ re().name != "Firefox" && I("canvas", function() {
1187
1379
  return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
1188
- var t = Array.from({ length: xs }, function() {
1380
+ var t = Array.from({ length: Rs }, function() {
1189
1381
  return function() {
1190
1382
  var r = document.createElement("canvas"), s = r.getContext("2d");
1191
1383
  if (!s) return new ImageData(1, 1);
1192
- r.width = Ye, r.height = Xe;
1384
+ r.width = rt, r.height = st;
1193
1385
  var c = s.createLinearGradient(0, 0, r.width, r.height);
1194
1386
  c.addColorStop(0, "red"), c.addColorStop(0.16666666666666666, "orange"), c.addColorStop(0.3333333333333333, "yellow"), c.addColorStop(0.5, "green"), c.addColorStop(0.6666666666666666, "blue"), c.addColorStop(0.8333333333333334, "indigo"), c.addColorStop(1, "violet"), s.fillStyle = c, s.fillRect(0, 0, r.width, r.height);
1195
1387
  var a = "Random Text WMwmil10Oo";
@@ -1198,23 +1390,23 @@ Y().name != "Firefox" && z("canvas", function() {
1198
1390
  return n;
1199
1391
  }();
1200
1392
  });
1201
- e({ commonImageDataHash: _e(_t(t, Ye, Xe).data.toString()).toString() });
1393
+ e({ commonImageDataHash: Be(Dt(t, rt, st).data.toString()).toString() });
1202
1394
  });
1203
1395
  });
1204
- var he, Es = ["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"], $s = ["monospace", "sans-serif", "serif"];
1205
- function Ze(e, t) {
1396
+ var ge, _s = ["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"], zs = ["monospace", "sans-serif", "serif"];
1397
+ function nt(e, t) {
1206
1398
  if (!e) throw new Error("Canvas context not supported");
1207
1399
  return e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
1208
1400
  }
1209
- function Ss() {
1401
+ function Ts() {
1210
1402
  var e, t = document.createElement("canvas"), r = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
1211
1403
  if (r && "getParameter" in r) try {
1212
1404
  var s = (r.getParameter(r.VENDOR) || "").toString(), c = (r.getParameter(r.RENDERER) || "").toString(), a = { vendor: s, renderer: c, version: (r.getParameter(r.VERSION) || "").toString(), shadingLanguageVersion: (r.getParameter(r.SHADING_LANGUAGE_VERSION) || "").toString() };
1213
1405
  if (!c.length || !s.length) {
1214
1406
  var n = r.getExtension("WEBGL_debug_renderer_info");
1215
1407
  if (n) {
1216
- var o = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(), u = (r.getParameter(n.UNMASKED_RENDERER_WEBGL) || "").toString();
1217
- o && (a.vendorUnmasked = o), u && (a.rendererUnmasked = u);
1408
+ var i = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(), u = (r.getParameter(n.UNMASKED_RENDERER_WEBGL) || "").toString();
1409
+ i && (a.vendorUnmasked = i), u && (a.rendererUnmasked = u);
1218
1410
  }
1219
1411
  }
1220
1412
  return a;
@@ -1222,24 +1414,24 @@ function Ss() {
1222
1414
  }
1223
1415
  return "undefined";
1224
1416
  }
1225
- function ws() {
1417
+ function Ps() {
1226
1418
  var e = new Float32Array(1), t = new Uint8Array(e.buffer);
1227
1419
  return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
1228
1420
  }
1229
- function Cs(e, t) {
1421
+ function As(e, t) {
1230
1422
  var r = {};
1231
1423
  return t.forEach(function(s) {
1232
1424
  var c = function(a) {
1233
1425
  if (a.length === 0) return null;
1234
1426
  var n = {};
1235
- a.forEach(function(i) {
1236
- var l = String(i);
1427
+ a.forEach(function(o) {
1428
+ var l = String(o);
1237
1429
  n[l] = (n[l] || 0) + 1;
1238
1430
  });
1239
- var o = a[0], u = 1;
1240
- return Object.keys(n).forEach(function(i) {
1241
- n[i] > u && (o = i, u = n[i]);
1242
- }), o;
1431
+ var i = a[0], u = 1;
1432
+ return Object.keys(n).forEach(function(o) {
1433
+ n[o] > u && (i = o, u = n[o]);
1434
+ }), i;
1243
1435
  }(e.map(function(a) {
1244
1436
  return s in a ? a[s] : void 0;
1245
1437
  }).filter(function(a) {
@@ -1248,7 +1440,7 @@ function Cs(e, t) {
1248
1440
  c && (r[s] = c);
1249
1441
  }), r;
1250
1442
  }
1251
- function ks() {
1443
+ function Ds() {
1252
1444
  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"] };
1253
1445
  return Object.keys(t).forEach(function(r) {
1254
1446
  t[r].forEach(function(s) {
@@ -1256,7 +1448,7 @@ function ks() {
1256
1448
  });
1257
1449
  }), e;
1258
1450
  }
1259
- function Rs() {
1451
+ function Bs() {
1260
1452
  if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
1261
1453
  for (var e = window.ApplePaySession.supportsVersion, t = 15; t > 0; t--) if (e(t)) return t;
1262
1454
  } catch {
@@ -1264,41 +1456,41 @@ function Rs() {
1264
1456
  }
1265
1457
  return 0;
1266
1458
  }
1267
- Y().name != "Firefox" && z("fonts", function() {
1459
+ re().name != "Firefox" && I("fonts", function() {
1268
1460
  var e = this;
1269
1461
  return new Promise(function(t, r) {
1270
1462
  try {
1271
1463
  (function(s) {
1272
1464
  var c;
1273
- L(this, void 0, void 0, function() {
1274
- var a, n, o;
1275
- return O(this, function(u) {
1465
+ O(this, void 0, void 0, function() {
1466
+ var a, n, i;
1467
+ return j(this, function(u) {
1276
1468
  switch (u.label) {
1277
1469
  case 0:
1278
- return document.body ? [3, 2] : [4, (i = 50, new Promise(function(h) {
1279
- return setTimeout(h, i, l);
1470
+ return document.body ? [3, 2] : [4, (o = 50, new Promise(function(f) {
1471
+ return setTimeout(f, o, l);
1280
1472
  }))];
1281
1473
  case 1:
1282
1474
  return u.sent(), [3, 0];
1283
1475
  case 2:
1284
- if ((a = document.createElement("iframe")).setAttribute("frameBorder", "0"), (n = a.style).setProperty("position", "fixed"), n.setProperty("display", "block", "important"), n.setProperty("visibility", "visible"), n.setProperty("border", "0"), n.setProperty("opacity", "0"), a.src = "about:blank", document.body.appendChild(a), !(o = a.contentDocument || ((c = a.contentWindow) === null || c === void 0 ? void 0 : c.document))) throw new Error("Iframe document is not accessible");
1285
- return s({ iframe: o }), setTimeout(function() {
1476
+ if ((a = document.createElement("iframe")).setAttribute("frameBorder", "0"), (n = a.style).setProperty("position", "fixed"), n.setProperty("display", "block", "important"), n.setProperty("visibility", "visible"), n.setProperty("border", "0"), n.setProperty("opacity", "0"), a.src = "about:blank", document.body.appendChild(a), !(i = a.contentDocument || ((c = a.contentWindow) === null || c === void 0 ? void 0 : c.document))) throw new Error("Iframe document is not accessible");
1477
+ return s({ iframe: i }), setTimeout(function() {
1286
1478
  document.body.removeChild(a);
1287
1479
  }, 0), [2];
1288
1480
  }
1289
- var i, l;
1481
+ var o, l;
1290
1482
  });
1291
1483
  });
1292
1484
  })(function(s) {
1293
1485
  var c = s.iframe;
1294
- return L(e, void 0, void 0, function() {
1295
- var a, n, o, u;
1296
- return O(this, function(i) {
1297
- return a = c.createElement("canvas"), n = a.getContext("2d"), o = $s.map(function(l) {
1298
- return Ze(n, l);
1299
- }), u = {}, Es.forEach(function(l) {
1300
- var h = Ze(n, l);
1301
- o.includes(h) || (u[l] = h);
1486
+ return O(e, void 0, void 0, function() {
1487
+ var a, n, i, u;
1488
+ return j(this, function(o) {
1489
+ return a = c.createElement("canvas"), n = a.getContext("2d"), i = zs.map(function(l) {
1490
+ return nt(n, l);
1491
+ }), u = {}, _s.forEach(function(l) {
1492
+ var f = nt(n, l);
1493
+ i.includes(f) || (u[l] = f);
1302
1494
  }), t(u), [2];
1303
1495
  });
1304
1496
  });
@@ -1307,36 +1499,36 @@ Y().name != "Firefox" && z("fonts", function() {
1307
1499
  r({ error: "unsupported" });
1308
1500
  }
1309
1501
  });
1310
- }), z("hardware", function() {
1502
+ }), I("hardware", function() {
1311
1503
  return new Promise(function(e, t) {
1312
1504
  var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
1313
- e({ videocard: Ss(), architecture: ws(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
1505
+ e({ videocard: Ts(), architecture: Ps(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
1314
1506
  });
1315
- }), z("locales", function() {
1507
+ }), I("locales", function() {
1316
1508
  return new Promise(function(e) {
1317
1509
  e({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
1318
1510
  });
1319
- }), z("permissions", function() {
1320
- return L(this, void 0, void 0, function() {
1511
+ }), I("permissions", function() {
1512
+ return O(this, void 0, void 0, function() {
1321
1513
  var e;
1322
- return O(this, function(t) {
1323
- return he = (j == null ? void 0 : j.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (j == null ? void 0 : j.retries) || 3 }, function() {
1514
+ return j(this, function(t) {
1515
+ return ge = (U == null ? void 0 : U.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (U == null ? void 0 : U.retries) || 3 }, function() {
1324
1516
  return function() {
1325
- return L(this, void 0, void 0, function() {
1517
+ return O(this, void 0, void 0, function() {
1326
1518
  var r, s, c, a, n;
1327
- return O(this, function(o) {
1328
- switch (o.label) {
1519
+ return j(this, function(i) {
1520
+ switch (i.label) {
1329
1521
  case 0:
1330
- r = {}, s = 0, c = he, o.label = 1;
1522
+ r = {}, s = 0, c = ge, i.label = 1;
1331
1523
  case 1:
1332
1524
  if (!(s < c.length)) return [3, 6];
1333
- a = c[s], o.label = 2;
1525
+ a = c[s], i.label = 2;
1334
1526
  case 2:
1335
- return o.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name: a })];
1527
+ return i.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name: a })];
1336
1528
  case 3:
1337
- return n = o.sent(), r[a] = n.state.toString(), [3, 5];
1529
+ return n = i.sent(), r[a] = n.state.toString(), [3, 5];
1338
1530
  case 4:
1339
- return o.sent(), [3, 5];
1531
+ return i.sent(), [3, 5];
1340
1532
  case 5:
1341
1533
  return s++, [3, 1];
1342
1534
  case 6:
@@ -1346,11 +1538,11 @@ Y().name != "Firefox" && z("fonts", function() {
1346
1538
  });
1347
1539
  }();
1348
1540
  }), [2, Promise.all(e).then(function(r) {
1349
- return Cs(r, he);
1541
+ return As(r, ge);
1350
1542
  })];
1351
1543
  });
1352
1544
  });
1353
- }), z("plugins", function() {
1545
+ }), I("plugins", function() {
1354
1546
  var e = [];
1355
1547
  if (navigator.plugins) for (var t = 0; t < navigator.plugins.length; t++) {
1356
1548
  var r = navigator.plugins[t];
@@ -1359,28 +1551,28 @@ Y().name != "Firefox" && z("fonts", function() {
1359
1551
  return new Promise(function(s) {
1360
1552
  s({ plugins: e });
1361
1553
  });
1362
- }), z("screen", function() {
1554
+ }), I("screen", function() {
1363
1555
  return new Promise(function(e) {
1364
- e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: ks() });
1556
+ e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: Ds() });
1365
1557
  });
1366
- }), z("system", function() {
1558
+ }), I("system", function() {
1367
1559
  return new Promise(function(e) {
1368
- var t = Y();
1369
- 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: Rs() });
1560
+ var t = re();
1561
+ 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: Bs() });
1370
1562
  });
1371
1563
  });
1372
- var E, zs = Y().name !== "SamsungBrowser" ? 1 : 3, p = null;
1373
- z("webgl", function() {
1374
- return L(this, void 0, void 0, function() {
1564
+ var $, Is = re().name !== "SamsungBrowser" ? 1 : 3, g = null;
1565
+ I("webgl", function() {
1566
+ return O(this, void 0, void 0, function() {
1375
1567
  var e;
1376
- return O(this, function(t) {
1377
- typeof document < "u" && ((E = document.createElement("canvas")).width = 200, E.height = 100, p = E.getContext("webgl"));
1568
+ return j(this, function(t) {
1569
+ typeof document < "u" && (($ = document.createElement("canvas")).width = 200, $.height = 100, g = $.getContext("webgl"));
1378
1570
  try {
1379
- if (!p) throw new Error("WebGL not supported");
1380
- return e = Array.from({ length: zs }, function() {
1571
+ if (!g) throw new Error("WebGL not supported");
1572
+ return e = Array.from({ length: Is }, function() {
1381
1573
  return function() {
1382
1574
  try {
1383
- if (!p) throw new Error("WebGL not supported");
1575
+ if (!g) throw new Error("WebGL not supported");
1384
1576
  var r = `
1385
1577
  attribute vec2 position;
1386
1578
  void main() {
@@ -1391,31 +1583,31 @@ z("webgl", function() {
1391
1583
  void main() {
1392
1584
  gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
1393
1585
  }
1394
- `, c = p.createShader(p.VERTEX_SHADER), a = p.createShader(p.FRAGMENT_SHADER);
1586
+ `, c = g.createShader(g.VERTEX_SHADER), a = g.createShader(g.FRAGMENT_SHADER);
1395
1587
  if (!c || !a) throw new Error("Failed to create shaders");
1396
- if (p.shaderSource(c, r), p.shaderSource(a, s), p.compileShader(c), !p.getShaderParameter(c, p.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + p.getShaderInfoLog(c));
1397
- if (p.compileShader(a), !p.getShaderParameter(a, p.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + p.getShaderInfoLog(a));
1398
- var n = p.createProgram();
1588
+ if (g.shaderSource(c, r), g.shaderSource(a, s), g.compileShader(c), !g.getShaderParameter(c, g.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + g.getShaderInfoLog(c));
1589
+ if (g.compileShader(a), !g.getShaderParameter(a, g.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + g.getShaderInfoLog(a));
1590
+ var n = g.createProgram();
1399
1591
  if (!n) throw new Error("Failed to create shader program");
1400
- if (p.attachShader(n, c), p.attachShader(n, a), p.linkProgram(n), !p.getProgramParameter(n, p.LINK_STATUS)) throw new Error("Shader program linking failed: " + p.getProgramInfoLog(n));
1401
- p.useProgram(n);
1402
- for (var o = 137, u = new Float32Array(4 * o), i = 2 * Math.PI / o, l = 0; l < o; l++) {
1403
- var h = l * i;
1404
- u[4 * l] = 0, u[4 * l + 1] = 0, u[4 * l + 2] = Math.cos(h) * (E.width / 2), u[4 * l + 3] = Math.sin(h) * (E.height / 2);
1592
+ if (g.attachShader(n, c), g.attachShader(n, a), g.linkProgram(n), !g.getProgramParameter(n, g.LINK_STATUS)) throw new Error("Shader program linking failed: " + g.getProgramInfoLog(n));
1593
+ g.useProgram(n);
1594
+ for (var i = 137, u = new Float32Array(4 * i), o = 2 * Math.PI / i, l = 0; l < i; l++) {
1595
+ var f = l * o;
1596
+ u[4 * l] = 0, u[4 * l + 1] = 0, u[4 * l + 2] = Math.cos(f) * ($.width / 2), u[4 * l + 3] = Math.sin(f) * ($.height / 2);
1405
1597
  }
1406
- var f = p.createBuffer();
1407
- p.bindBuffer(p.ARRAY_BUFFER, f), p.bufferData(p.ARRAY_BUFFER, u, p.STATIC_DRAW);
1408
- var g = p.getAttribLocation(n, "position");
1409
- p.enableVertexAttribArray(g), p.vertexAttribPointer(g, 2, p.FLOAT, !1, 0, 0), p.viewport(0, 0, E.width, E.height), p.clearColor(0, 0, 0, 1), p.clear(p.COLOR_BUFFER_BIT), p.drawArrays(p.LINES, 0, 2 * o);
1410
- var m = new Uint8ClampedArray(E.width * E.height * 4);
1411
- return p.readPixels(0, 0, E.width, E.height, p.RGBA, p.UNSIGNED_BYTE, m), new ImageData(m, E.width, E.height);
1598
+ var h = g.createBuffer();
1599
+ g.bindBuffer(g.ARRAY_BUFFER, h), g.bufferData(g.ARRAY_BUFFER, u, g.STATIC_DRAW);
1600
+ var p = g.getAttribLocation(n, "position");
1601
+ g.enableVertexAttribArray(p), g.vertexAttribPointer(p, 2, g.FLOAT, !1, 0, 0), g.viewport(0, 0, $.width, $.height), g.clearColor(0, 0, 0, 1), g.clear(g.COLOR_BUFFER_BIT), g.drawArrays(g.LINES, 0, 2 * i);
1602
+ var m = new Uint8ClampedArray($.width * $.height * 4);
1603
+ return g.readPixels(0, 0, $.width, $.height, g.RGBA, g.UNSIGNED_BYTE, m), new ImageData(m, $.width, $.height);
1412
1604
  } catch {
1413
1605
  return new ImageData(1, 1);
1414
1606
  } finally {
1415
- p && (p.bindBuffer(p.ARRAY_BUFFER, null), p.useProgram(null), p.viewport(0, 0, p.drawingBufferWidth, p.drawingBufferHeight), p.clearColor(0, 0, 0, 0));
1607
+ g && (g.bindBuffer(g.ARRAY_BUFFER, null), g.useProgram(null), g.viewport(0, 0, g.drawingBufferWidth, g.drawingBufferHeight), g.clearColor(0, 0, 0, 0));
1416
1608
  }
1417
1609
  }();
1418
- }), [2, { commonImageHash: _e(_t(e, E.width, E.height).data.toString()).toString() }];
1610
+ }), [2, { commonImageHash: Be(Dt(e, $.width, $.height).data.toString()).toString() }];
1419
1611
  } catch {
1420
1612
  return [2, { webgl: "unsupported" }];
1421
1613
  }
@@ -1423,22 +1615,22 @@ z("webgl", function() {
1423
1615
  });
1424
1616
  });
1425
1617
  });
1426
- var N = function(e, t, r, s) {
1618
+ var G = function(e, t, r, s) {
1427
1619
  for (var c = (r - t) / s, a = 0, n = 0; n < s; n++)
1428
1620
  a += e(t + (n + 0.5) * c);
1429
1621
  return a * c;
1430
1622
  };
1431
- z("math", function() {
1432
- return L(void 0, void 0, void 0, function() {
1433
- return O(this, function(e) {
1434
- return [2, { acos: Math.acos(0.5), asin: N(Math.asin, -1, 1, 97), atan: N(Math.atan, -1, 1, 97), cos: N(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: N(Math.sin, -Math.PI, Math.PI, 97), sinh: N(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: N(Math.tan, 0, 2 * Math.PI, 97), tanh: N(Math.tanh, -9 / 7, 7 / 9, 97) }];
1623
+ I("math", function() {
1624
+ return O(void 0, void 0, void 0, function() {
1625
+ return j(this, function(e) {
1626
+ return [2, { acos: Math.acos(0.5), asin: G(Math.asin, -1, 1, 97), atan: G(Math.atan, -1, 1, 97), cos: G(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: G(Math.sin, -Math.PI, Math.PI, 97), sinh: G(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: G(Math.tan, 0, 2 * Math.PI, 97), tanh: G(Math.tanh, -9 / 7, 7 / 9, 97) }];
1435
1627
  });
1436
1628
  });
1437
1629
  });
1438
- const Ts = 500;
1439
- class _s {
1630
+ const Ms = 500;
1631
+ class Ls {
1440
1632
  constructor(t, r) {
1441
- if (R(this, "config"), R(this, "sdkInfo"), R(this, "userId"), R(this, "sessionId"), R(this, "searchRequestTimeout"), R(this, "measureRequestTimeout"), R(this, "measureRequestsBatched", []), R(this, "search", (s, c) => {
1633
+ if (B(this, "config"), B(this, "sdkInfo"), B(this, "userId"), B(this, "sessionId"), B(this, "searchRequestTimeout"), B(this, "measureRequestTimeout"), B(this, "measureRequestsBatched", []), B(this, "search", (s, c) => {
1442
1634
  const a = async () => {
1443
1635
  if (this.sendMeasureEvent("search_requested", {
1444
1636
  search_term: s.query
@@ -1453,7 +1645,7 @@ class _s {
1453
1645
  // Default to 20 if not provided
1454
1646
  };
1455
1647
  s.offset !== void 0 && (n.offset = s.offset), s.order_by && (n.order_by = s.order_by, n.sort = s.sort === "desc" || s.sort === "asc" ? s.sort : "asc");
1456
- const o = {
1648
+ const i = {
1457
1649
  method: "POST",
1458
1650
  headers: {
1459
1651
  Authorization: this.config.readKey,
@@ -1461,16 +1653,16 @@ class _s {
1461
1653
  "X-Sc-User-Id": this.userId
1462
1654
  },
1463
1655
  body: JSON.stringify(n)
1464
- }, u = await fetch(this.baseSearchUrl, o);
1656
+ }, u = await fetch(this.baseSearchUrl, i);
1465
1657
  if (!u.ok)
1466
1658
  throw new Error(
1467
1659
  `Error: ${u.statusText} (Status: ${u.status})`
1468
1660
  );
1469
- const i = await u.json();
1661
+ const o = await u.json();
1470
1662
  this.sendMeasureEvent("search_response_received", {
1471
1663
  search_term: s.query,
1472
- number_of_documents: i.data.count
1473
- }), c(i);
1664
+ number_of_documents: o.data.count
1665
+ }), c(o);
1474
1666
  } catch (n) {
1475
1667
  throw console.error("Error parsing response:", n), n;
1476
1668
  }
@@ -1479,7 +1671,7 @@ class _s {
1479
1671
  a,
1480
1672
  this.config.searchDebounceDelay
1481
1673
  ) : a();
1482
- }), R(this, "sendMeasureEvent", (s, c = {}, a = {}) => {
1674
+ }), B(this, "sendMeasureEvent", (s, c = {}, a = {}) => {
1483
1675
  const n = {
1484
1676
  event_name: s,
1485
1677
  properties: {
@@ -1492,34 +1684,34 @@ class _s {
1492
1684
  }
1493
1685
  };
1494
1686
  this.measureRequestsBatched.push(n), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
1495
- const o = JSON.stringify({ items: this.measureRequestsBatched }), u = `${this.baseMeasureUrl}/batch`;
1687
+ const i = JSON.stringify({ items: this.measureRequestsBatched }), u = `${this.baseMeasureUrl}/batch`;
1496
1688
  try {
1497
- const i = await fetch(u, {
1689
+ const o = await fetch(u, {
1498
1690
  method: "POST",
1499
1691
  headers: {
1500
1692
  "Content-Type": "application/json",
1501
1693
  Authorization: this.config.readKey,
1502
1694
  "X-Sc-User-Id": this.userId
1503
1695
  },
1504
- body: o,
1696
+ body: i,
1505
1697
  keepalive: !0
1506
1698
  });
1507
- if (!i.ok)
1699
+ if (!o.ok)
1508
1700
  throw new Error(
1509
- `Failed to send request: ${i.status} ${i.statusText}`
1701
+ `Failed to send request: ${o.status} ${o.statusText}`
1510
1702
  );
1511
1703
  this.measureRequestsBatched = [];
1512
1704
  return;
1513
- } catch (i) {
1514
- throw console.error("Error sending MeasureRequest:", i), i;
1705
+ } catch (o) {
1706
+ throw console.error("Error sending MeasureRequest:", o), o;
1515
1707
  }
1516
- }, Ts);
1708
+ }, Ms);
1517
1709
  }), !t.endpointURL || !t.index || !t.readKey)
1518
1710
  throw new Error(
1519
1711
  "Endpoint URL, Index value(s), and Read Key must be provided"
1520
1712
  );
1521
1713
  this.config = t, this.sdkInfo = r, this.userId = t.userId || "", this.sessionId = "", setTimeout(() => {
1522
- this.sessionId = hs(), this.initMeasure();
1714
+ this.sessionId = vs(), this.initMeasure();
1523
1715
  }, 300);
1524
1716
  }
1525
1717
  /**
@@ -1527,7 +1719,7 @@ class _s {
1527
1719
  */
1528
1720
  async initMeasure() {
1529
1721
  if (!this.config.userId) {
1530
- const t = await ys();
1722
+ const t = await Cs();
1531
1723
  this.userId = t;
1532
1724
  }
1533
1725
  this.sendMeasureEvent("sdk_initialized");
@@ -1596,13 +1788,13 @@ class _s {
1596
1788
  }), r;
1597
1789
  }
1598
1790
  }
1599
- var k = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(k || {});
1600
- class As {
1791
+ var A = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(A || {});
1792
+ class Os {
1601
1793
  constructor(t) {
1602
- R(this, "logLevel"), R(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
1794
+ B(this, "logLevel"), B(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
1603
1795
  }
1604
1796
  defaultFormatter(t, r) {
1605
- return `[${k[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
1797
+ return `[${A[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
1606
1798
  }
1607
1799
  debug(t) {
1608
1800
  this.logLevel <= 0 && console.log(this.logFormatter(0, t));
@@ -1617,21 +1809,21 @@ class As {
1617
1809
  this.logLevel <= 3 && console.error(this.logFormatter(3, t));
1618
1810
  }
1619
1811
  }
1620
- const _ = Se.create((e, t) => {
1812
+ const v = ke.create((e, t) => {
1621
1813
  let r = null, s = null;
1622
1814
  const c = (a, n) => {
1623
1815
  if (s)
1624
1816
  switch (a) {
1625
- case k.DEBUG:
1817
+ case A.DEBUG:
1626
1818
  s.debug(n);
1627
1819
  break;
1628
- case k.INFO:
1820
+ case A.INFO:
1629
1821
  s.info(n);
1630
1822
  break;
1631
- case k.WARN:
1823
+ case A.WARN:
1632
1824
  s.warn(n);
1633
1825
  break;
1634
- case k.ERROR:
1826
+ case A.ERROR:
1635
1827
  s.error(n);
1636
1828
  break;
1637
1829
  }
@@ -1652,18 +1844,18 @@ const _ = Se.create((e, t) => {
1652
1844
  facetPathsForIndexFields: Object.assign(Object.assign({}, n.facetPathsForIndexFields), { [a.fieldName]: a })
1653
1845
  })),
1654
1846
  removeFacetPathsForIndexField: (a) => e((n) => {
1655
- const o = n.facetPathsForIndexFields;
1656
- return delete o[a], {
1657
- facetPathsForIndexFields: Object.assign({}, o)
1847
+ const i = n.facetPathsForIndexFields;
1848
+ return delete i[a], {
1849
+ facetPathsForIndexFields: Object.assign({}, i)
1658
1850
  };
1659
1851
  }),
1660
1852
  addRangeValueForIndexField: (a) => e((n) => ({
1661
1853
  rangeValueForIndexFields: Object.assign(Object.assign({}, n.rangeValueForIndexFields), { [a.fieldName]: a })
1662
1854
  })),
1663
1855
  removeRangeValueForIndexField: (a) => e((n) => {
1664
- const o = n.rangeValueForIndexFields;
1665
- return delete o[a], {
1666
- rangeValueForIndexFields: Object.assign({}, o)
1856
+ const i = n.rangeValueForIndexFields;
1857
+ return delete i[a], {
1858
+ rangeValueForIndexFields: Object.assign({}, i)
1667
1859
  };
1668
1860
  }),
1669
1861
  setSearchMode: (a) => e({ searchMode: a }),
@@ -1688,10 +1880,10 @@ const _ = Se.create((e, t) => {
1688
1880
  setIsRequesting: (a) => e({ isRequesting: a }),
1689
1881
  search: async () => {
1690
1882
  const a = t();
1691
- if (c(k.INFO, `Starting search with search term: "${a.query}"`), !r)
1883
+ if (c(A.INFO, `Starting search with search term: "${a.query}"`), !r)
1692
1884
  throw new Error("Searchcraft instance is not initialized.");
1693
1885
  if (!a.query.trim()) {
1694
- c(k.INFO, "No search request was made: search term was empty."), a.setSearchResults(null);
1886
+ c(A.INFO, "No search request was made: search term was empty."), a.setSearchResults(null);
1695
1887
  return;
1696
1888
  }
1697
1889
  a.setIsRequesting(!0), r.search({
@@ -1701,29 +1893,29 @@ const _ = Se.create((e, t) => {
1701
1893
  facetPathsForIndexFields: a.facetPathsForIndexFields,
1702
1894
  rangeValueForIndexFields: a.rangeValueForIndexFields
1703
1895
  }, (n) => {
1704
- const o = n.data.facets || null;
1705
- a.setSearchResults(n), a.setFacets(o), c(k.DEBUG, `Search results: ${JSON.stringify(n)}`), c(k.DEBUG, `Updated facets: ${JSON.stringify(o)}`), a.setIsRequesting(!1);
1896
+ const i = n.data.facets || null;
1897
+ a.setSearchResults(n), a.setFacets(i), c(A.DEBUG, `Search results: ${JSON.stringify(n)}`), c(A.DEBUG, `Updated facets: ${JSON.stringify(i)}`), a.setIsRequesting(!1);
1706
1898
  });
1707
1899
  },
1708
1900
  initialize: (a, n = !1) => {
1709
- r = a, s = n ? new As({ logLevel: k.DEBUG }) : null, c(k.INFO, "Searchcraft store initialized.");
1901
+ r = a, s = n ? new Os({ logLevel: A.DEBUG }) : null, c(A.INFO, "Searchcraft store initialized.");
1710
1902
  }
1711
1903
  };
1712
1904
  });
1713
- Se.create((e) => ({
1905
+ ke.create((e) => ({
1714
1906
  theme: "light",
1715
1907
  toggleTheme: () => e((t) => ({ theme: t.theme === "light" ? "dark" : "light" }))
1716
1908
  }));
1717
- const Ps = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-search-result-container{all:unset;align-items:flex-start;border-radius:16px;display:flex;flex-direction:column;gap:16px;padding:8px;color:inherit;background-color:var(--sc-surface-neutral-primary)}@media (min-width: 768px){.searchcraft-search-result-container{flex-direction:row}}a.searchcraft-search-result-container{cursor:pointer;transition:background-color 100ms}.searchcraft-base-search-result-content-container{flex:1;display:flex;flex-direction:column;gap:8px}.searchcraft-search-result-image{border-radius:var(--sc-image-border-radius);width:100%}@media (min-width: 768px){.searchcraft-search-result-image{width:200px}}.searchcraft-base-search-result-title{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-base-search-result-subtitle{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-disabled)}.searchcraft-base-search-result-body-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-base-search-result-footer-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-disabled)}", Bs = Ps, At = /* @__PURE__ */ M(class extends B {
1909
+ const js = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-search-result-container{all:unset;align-items:flex-start;border-radius:16px;display:flex;flex-direction:column;gap:16px;padding:8px;color:inherit;background-color:var(--sc-surface-neutral-primary)}@media (min-width: 768px){.searchcraft-search-result-container{flex-direction:row}}a.searchcraft-search-result-container{cursor:pointer;transition:background-color 100ms}.searchcraft-base-search-result-content-container{flex:1;display:flex;flex-direction:column;gap:8px}.searchcraft-search-result-image{border-radius:var(--sc-image-border-radius);width:100%}@media (min-width: 768px){.searchcraft-search-result-image{width:200px}}.searchcraft-base-search-result-title{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-base-search-result-subtitle{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-disabled)}.searchcraft-base-search-result-body-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-base-search-result-footer-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-disabled)}", Us = js, Bt = /* @__PURE__ */ k(class extends S {
1718
1910
  constructor() {
1719
- super(), this.__registerHost(), this.searchcraftStore = _.getState(), this.recordMeasureEvent = () => {
1911
+ super(), this.__registerHost(), this.buttonTarget = "_blank", this.containerTarget = "_blank", this.documentPosition = 0, this.searchcraftStore = v.getState(), this.recordMeasureEvent = () => {
1720
1912
  var t, r, s;
1721
1913
  const c = this.searchcraftStore.getSearchcraftInstance();
1722
1914
  if (c) {
1723
- const a = this.documentPosition, n = this.searchcraftStore.query, o = ((s = (r = (t = this.searchcraftStore.searchResults) === null || t === void 0 ? void 0 : t.data) === null || r === void 0 ? void 0 : r.hits) === null || s === void 0 ? void 0 : s.length) || 0;
1915
+ const a = this.documentPosition, n = this.searchcraftStore.query, i = ((s = (r = (t = this.searchcraftStore.searchResults) === null || t === void 0 ? void 0 : t.data) === null || r === void 0 ? void 0 : r.hits) === null || s === void 0 ? void 0 : s.length) || 0;
1724
1916
  c.sendMeasureEvent("document_clicked", {
1725
1917
  document_position: a,
1726
- number_of_documents: o,
1918
+ number_of_documents: i,
1727
1919
  search_term: n
1728
1920
  });
1729
1921
  }
@@ -1735,14 +1927,14 @@ const Ps = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
1735
1927
  return console.error("Error parsing custom styles:", t), {};
1736
1928
  }
1737
1929
  return {};
1738
- }, this.titleContent = void 0, this.subtitleContent = void 0, this.bodyContent = void 0, this.footerContent = void 0, this.buttonLabel = void 0, this.buttonHref = void 0, this.buttonTarget = "_blank", this.buttonRel = void 0, this.containerHref = void 0, this.containerTarget = "_blank", this.containerRel = void 0, this.imageSrc = void 0, this.imageAlt = void 0, this.imagePlacement = void 0, this.customStyles = void 0, this.documentPosition = 0;
1930
+ };
1739
1931
  }
1740
1932
  render() {
1741
- const t = this.parseStyles(), r = this.imageSrc && d("img", { alt: this.imageAlt, class: "searchcraft-search-result-image", src: this.imageSrc, style: t.image || {} }), s = d($e, null, this.imageSrc && this.imagePlacement === "left" && r, d("div", { class: "searchcraft-base-search-result-content-container" }, this.titleContent && d("h2", { class: "searchcraft-base-search-result-title", style: t.title || {} }, this.titleContent), this.subtitleContent && d("h3", { class: "searchcraft-base-search-result-subtitle", style: t.subtitle || {} }, this.subtitleContent), this.bodyContent && d("p", { class: "searchcraft-base-search-result-body-content", style: t.primaryContent || {} }, this.bodyContent), this.footerContent && d("p", { class: "searchcraft-base-search-result-footer-content", style: t.secondaryContent || {} }, this.footerContent), this.buttonHref && !this.containerHref && this.buttonLabel && d("a", { class: "searchcraft-search-result-button", href: this.buttonHref, style: t.button || {}, target: this.buttonTarget, rel: this.buttonRel }, this.buttonLabel)), this.imageSrc && this.imagePlacement === "right" && r);
1933
+ const t = this.parseStyles(), r = this.imageSrc && d("img", { alt: this.imageAlt, class: "searchcraft-search-result-image", src: this.imageSrc, style: t.image || {} }), s = d(Se, null, this.imageSrc && this.imagePlacement === "left" && r, d("div", { class: "searchcraft-base-search-result-content-container" }, this.titleContent && d("h2", { class: "searchcraft-base-search-result-title", style: t.title || {} }, this.titleContent), this.subtitleContent && d("h3", { class: "searchcraft-base-search-result-subtitle", style: t.subtitle || {} }, this.subtitleContent), this.bodyContent && d("p", { class: "searchcraft-base-search-result-body-content", style: t.primaryContent || {} }, this.bodyContent), this.footerContent && d("p", { class: "searchcraft-base-search-result-footer-content", style: t.secondaryContent || {} }, this.footerContent), this.buttonHref && !this.containerHref && this.buttonLabel && d("a", { class: "searchcraft-search-result-button", href: this.buttonHref, style: t.button || {}, target: this.buttonTarget, rel: this.buttonRel }, this.buttonLabel)), this.imageSrc && this.imagePlacement === "right" && r);
1742
1934
  return this.containerHref ? d("a", { class: "searchcraft-search-result-container", onClick: this.recordMeasureEvent, href: this.containerHref, rel: this.containerRel, style: t.container || {}, tabindex: "0", target: this.containerTarget }, s) : d("div", { class: "searchcraft-search-result-container", style: t.container || {} }, s);
1743
1935
  }
1744
1936
  static get style() {
1745
- return Bs;
1937
+ return Us;
1746
1938
  }
1747
1939
  }, [0, "searchcraft-base-search-result", {
1748
1940
  titleContent: [1, "title-content"],
@@ -1762,26 +1954,26 @@ const Ps = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
1762
1954
  customStyles: [1, "custom-styles"],
1763
1955
  documentPosition: [2, "document-position"]
1764
1956
  }]);
1765
- function Pt() {
1957
+ function It() {
1766
1958
  if (typeof customElements > "u")
1767
1959
  return;
1768
1960
  ["searchcraft-base-search-result"].forEach((t) => {
1769
1961
  switch (t) {
1770
1962
  case "searchcraft-base-search-result":
1771
- customElements.get(t) || customElements.define(t, At);
1963
+ customElements.get(t) || customElements.define(t, Bt);
1772
1964
  break;
1773
1965
  }
1774
1966
  });
1775
1967
  }
1776
- const Ms = At, Ds = Pt;
1777
- function H(e, t) {
1968
+ const Hs = Bt, qs = It;
1969
+ function D(e, t) {
1778
1970
  if (e && t)
1779
1971
  return t.fieldNames.map((r) => {
1780
1972
  let s = e[r.fieldName];
1781
1973
  if (s)
1782
1974
  switch (r.dataType) {
1783
1975
  case "date": {
1784
- s = Ls(s);
1976
+ s = Vs(s);
1785
1977
  break;
1786
1978
  }
1787
1979
  case "number": {
@@ -1792,7 +1984,7 @@ function H(e, t) {
1792
1984
  return s;
1793
1985
  }).filter((r) => !!r).join(t.delimiter || " ");
1794
1986
  }
1795
- function Bt(e) {
1987
+ function Mt(e) {
1796
1988
  switch (e) {
1797
1989
  case "hour":
1798
1990
  return 36e5;
@@ -1806,14 +1998,14 @@ function Bt(e) {
1806
1998
  return 36e5;
1807
1999
  }
1808
2000
  }
1809
- function Is(e) {
2001
+ function Ns(e) {
1810
2002
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1811
2003
  }
1812
- function Ls(e) {
1813
- const t = /* @__PURE__ */ new Date(), r = new Date(e), s = Math.floor((t.getTime() - r.getTime()) / 1e3), c = Math.floor(s / 60), a = Math.floor(c / 60), n = Math.floor(a / 24), o = Math.floor(n / 365);
1814
- return c < 60 ? `${c}m ago` : a < 24 ? `${a}h ago` : n < 365 ? `${n}d ago` : `${o}y ago`;
2004
+ function Vs(e) {
2005
+ const t = /* @__PURE__ */ new Date(), r = new Date(e), s = Math.floor((t.getTime() - r.getTime()) / 1e3), c = Math.floor(s / 60), a = Math.floor(c / 60), n = Math.floor(a / 24), i = Math.floor(n / 365);
2006
+ return c < 60 ? `${c}m ago` : a < 24 ? `${a}h ago` : n < 365 ? `${n}d ago` : `${i}y ago`;
1815
2007
  }
1816
- function Os(e) {
2008
+ function Ws(e) {
1817
2009
  if (typeof e == "string")
1818
2010
  try {
1819
2011
  return JSON.parse(e);
@@ -1822,77 +2014,77 @@ function Os(e) {
1822
2014
  }
1823
2015
  return e || {};
1824
2016
  }
1825
- function js(e) {
2017
+ function Gs(e) {
1826
2018
  try {
1827
2019
  return JSON.stringify(e);
1828
2020
  } catch (t) {
1829
2021
  return console.error("Error serializing styles:", t), "{}";
1830
2022
  }
1831
2023
  }
1832
- const Us = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-error-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-danger);margin:0}", qs = Us, Mt = /* @__PURE__ */ M(class extends B {
2024
+ const Ys = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-error-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-danger);margin:0}", Ks = Ys, Lt = /* @__PURE__ */ k(class extends S {
1833
2025
  constructor() {
1834
- super(), this.__registerHost(), this.errorMessage = void 0;
2026
+ super(), this.__registerHost();
1835
2027
  }
1836
2028
  render() {
1837
2029
  return d("p", { key: "5bdc428adf6f239d66a9b0f946ee6e582de41e86", class: "searchcraft-error-message" }, this.errorMessage || "Search term is required.");
1838
2030
  }
1839
2031
  static get style() {
1840
- return qs;
2032
+ return Ks;
1841
2033
  }
1842
2034
  }, [0, "searchcraft-error-message", {
1843
2035
  errorMessage: [1, "error-message"]
1844
2036
  }]);
1845
- function Ae() {
2037
+ function he() {
1846
2038
  if (typeof customElements > "u")
1847
2039
  return;
1848
2040
  ["searchcraft-error-message"].forEach((t) => {
1849
2041
  switch (t) {
1850
2042
  case "searchcraft-error-message":
1851
- customElements.get(t) || customElements.define(t, Mt);
2043
+ customElements.get(t) || customElements.define(t, Lt);
1852
2044
  break;
1853
2045
  }
1854
2046
  });
1855
2047
  }
1856
- const Ns = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-search-results-container{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-ad-section{align-items:center;background-color:#F1F1F1;border-radius:16px;display:flex;flex-direction:column;font-size:16px;justify-content:center;min-height:176px;text-align:center}.searchcraft-ad-section p{margin:0;color:var(--sc-content-disabled)}.searchcraft-search-results-empty-state-container{text-align:center}.searchcraft-search-results-error-message-container{text-align:center}", Hs = Ns, Dt = /* @__PURE__ */ M(class extends B {
2048
+ const Qs = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-search-results-container{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-ad-section{align-items:center;background-color:#F1F1F1;border-radius:16px;display:flex;flex-direction:column;font-size:16px;justify-content:center;min-height:176px;text-align:center}.searchcraft-ad-section p{margin:0;color:var(--sc-content-disabled)}.searchcraft-search-results-empty-state-container{text-align:center}.searchcraft-search-results-error-message-container{text-align:center}", Js = Qs, Ot = /* @__PURE__ */ k(class extends S {
1857
2049
  constructor() {
1858
- super(), this.__registerHost(), this.noResults = T(this, "noResults", 7), this.adInterval = 4, this.customStylesForResults = void 0, this.searchResultMappings = void 0, this.placeAdAtEnd = !1, this.placeAdAtStart = !0, this.resultImagePlacement = "right", this.buttonLabel = void 0, this.buttonTarget = "_blank", this.buttonRel = void 0, this.containerTarget = "_blank", this.containerRel = void 0, this.hasSearched = !1, this.query = "", this.searchResults = null;
2050
+ super(), this.__registerHost(), this.noResults = M(this, "noResults"), this.adInterval = 4, this.placeAdAtEnd = !1, this.placeAdAtStart = !0, this.resultImagePlacement = "right", this.buttonTarget = "_blank", this.containerTarget = "_blank", this.hasSearched = !1, this.query = "", this.searchResults = null;
1859
2051
  }
1860
2052
  componentDidLoad() {
1861
- this.unsubscribe = _.subscribe((s) => {
2053
+ this.unsubscribe = v.subscribe((s) => {
1862
2054
  s.query.length > 0 ? this.hasSearched = !0 : this.hasSearched = !1, this.searchResults = Object.assign({}, s.searchResults), this.query = s.query;
1863
2055
  });
1864
- const { searchResults: t, query: r } = _.getState();
2056
+ const { searchResults: t, query: r } = v.getState();
1865
2057
  this.searchResults = t, this.query = r;
1866
2058
  }
1867
2059
  disconnectedCallback() {
1868
2060
  this.unsubscribe && this.unsubscribe();
1869
2061
  }
1870
2062
  renderDocument(t, r) {
1871
- const s = H(t, this.searchResultMappings.title), c = H(t, this.searchResultMappings.subtitle), a = H(t, this.searchResultMappings.body), n = H(t, this.searchResultMappings.containerHref), o = H(t, this.searchResultMappings.buttonHref), u = H(t, this.searchResultMappings.imageSource), i = H(t, this.searchResultMappings.footer), l = typeof this.customStylesForResults == "string" ? this.customStylesForResults : js(this.customStylesForResults);
1872
- return d("searchcraft-base-search-result", { key: `${t.document_id}-${r}`, "custom-styles": l, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": r, "title-content": s, "subtitle-content": c, "body-content": a, "footer-content": i, "container-href": n, "button-href": o, "image-src": u });
2063
+ const s = D(t, this.searchResultMappings.title), c = D(t, this.searchResultMappings.subtitle), a = D(t, this.searchResultMappings.body), n = D(t, this.searchResultMappings.containerHref), i = D(t, this.searchResultMappings.buttonHref), u = D(t, this.searchResultMappings.imageSource), o = D(t, this.searchResultMappings.footer), l = typeof this.customStylesForResults == "string" ? this.customStylesForResults : Gs(this.customStylesForResults);
2064
+ return d("searchcraft-base-search-result", { key: `${t.document_id}-${r}`, "custom-styles": l, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": r, "title-content": s, "subtitle-content": c, "body-content": a, "footer-content": o, "container-href": n, "button-href": i, "image-src": u });
1873
2065
  }
1874
2066
  render() {
1875
- var t, r, s, c, a, n, o, u, i, l;
2067
+ var t, r, s, c, a, n, i, u, o, l;
1876
2068
  if (this.query.trim() === "")
1877
2069
  return d("div", { class: "searchcraft-search-results-empty-state-container" }, d("slot", { name: "empty-search" }));
1878
2070
  if (!(!((t = this.searchResults) === null || t === void 0) && t.data))
1879
2071
  return;
1880
- const h = (c = (s = (r = this.searchResults) === null || r === void 0 ? void 0 : r.data) === null || s === void 0 ? void 0 : s.hits) === null || c === void 0 ? void 0 : c.map((g, m) => {
1881
- const { doc: v } = g;
1882
- return v;
1883
- }), f = [];
1884
- if (this.placeAdAtStart && f.push(d("div", { key: "ad-section-start", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.adInterval > 0)
1885
- h.forEach((g, m) => {
1886
- f.push(this.renderDocument(g, m)), (m + 1) % this.adInterval === 0 && f.push(d("div", { key: `ad-section-${m + 1}`, class: "searchcraft-ad-section " }, d("p", null, "Ad Section")));
2072
+ const f = (c = (s = (r = this.searchResults) === null || r === void 0 ? void 0 : r.data) === null || s === void 0 ? void 0 : s.hits) === null || c === void 0 ? void 0 : c.map((p, m) => {
2073
+ const { doc: E } = p;
2074
+ return E;
2075
+ }), h = [];
2076
+ if (this.placeAdAtStart && h.push(d("div", { key: "ad-section-start", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.adInterval > 0)
2077
+ f.forEach((p, m) => {
2078
+ h.push(this.renderDocument(p, m)), (m + 1) % this.adInterval === 0 && h.push(d("div", { key: `ad-section-${m + 1}`, class: "searchcraft-ad-section " }, d("p", null, "Ad Section")));
1887
2079
  });
1888
2080
  else {
1889
- const g = h.map((m, v) => this.renderDocument(m, v));
1890
- f.push(...g);
2081
+ const p = f.map((m, E) => this.renderDocument(m, E));
2082
+ h.push(...p);
1891
2083
  }
1892
- return this.placeAdAtEnd && f.push(d("div", { key: "ad-section-end", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.query.length > 0 && ((o = (n = (a = this.searchResults) === null || a === void 0 ? void 0 : a.data) === null || n === void 0 ? void 0 : n.hits) === null || o === void 0 ? void 0 : o.length) === 0 && this.noResults.emit(), d("div", { class: "searchcraft-search-results-container" }, f, this.query.length > 0 && ((l = (i = (u = this.searchResults) === null || u === void 0 ? void 0 : u.data) === null || i === void 0 ? void 0 : i.hits) === null || l === void 0 ? void 0 : l.length) === 0 && d("div", { class: "searchcraft-search-results-error-message-container" }, d("searchcraft-error-message", { "error-message": `No search results found for "${this.query}" query` })));
2084
+ return this.placeAdAtEnd && h.push(d("div", { key: "ad-section-end", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.query.length > 0 && ((i = (n = (a = this.searchResults) === null || a === void 0 ? void 0 : a.data) === null || n === void 0 ? void 0 : n.hits) === null || i === void 0 ? void 0 : i.length) === 0 && this.noResults.emit(), d("div", { class: "searchcraft-search-results-container" }, h, this.query.length > 0 && ((l = (o = (u = this.searchResults) === null || u === void 0 ? void 0 : u.data) === null || o === void 0 ? void 0 : o.hits) === null || l === void 0 ? void 0 : l.length) === 0 && d("div", { class: "searchcraft-search-results-error-message-container" }, d("searchcraft-error-message", { "error-message": `No search results found for "${this.query}" query` })));
1893
2085
  }
1894
2086
  static get style() {
1895
- return Hs;
2087
+ return Js;
1896
2088
  }
1897
2089
  }, [4, "searchcraft-base-search-results", {
1898
2090
  adInterval: [2, "ad-interval"],
@@ -1910,25 +2102,25 @@ const Ns = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
1910
2102
  query: [32],
1911
2103
  searchResults: [32]
1912
2104
  }]);
1913
- function Vs() {
2105
+ function Xs() {
1914
2106
  if (typeof customElements > "u")
1915
2107
  return;
1916
2108
  ["searchcraft-base-search-results", "searchcraft-base-search-result", "searchcraft-error-message"].forEach((t) => {
1917
2109
  switch (t) {
1918
2110
  case "searchcraft-base-search-results":
1919
- customElements.get(t) || customElements.define(t, Dt);
2111
+ customElements.get(t) || customElements.define(t, Ot);
1920
2112
  break;
1921
2113
  case "searchcraft-base-search-result":
1922
- customElements.get(t) || Pt();
2114
+ customElements.get(t) || It();
1923
2115
  break;
1924
2116
  case "searchcraft-error-message":
1925
- customElements.get(t) || Ae();
2117
+ customElements.get(t) || he();
1926
2118
  break;
1927
2119
  }
1928
2120
  });
1929
2121
  }
1930
- const Ws = Dt, Gs = Vs;
1931
- var It = { exports: {} };
2122
+ const Zs = Ot, en = Xs;
2123
+ var jt = { exports: {} };
1932
2124
  /*!
1933
2125
  Copyright (c) 2018 Jed Watson.
1934
2126
  Licensed under the MIT License (MIT), see
@@ -1939,8 +2131,8 @@ var It = { exports: {} };
1939
2131
  var t = {}.hasOwnProperty;
1940
2132
  function r() {
1941
2133
  for (var a = "", n = 0; n < arguments.length; n++) {
1942
- var o = arguments[n];
1943
- o && (a = c(a, s(o)));
2134
+ var i = arguments[n];
2135
+ i && (a = c(a, s(i)));
1944
2136
  }
1945
2137
  return a;
1946
2138
  }
@@ -1954,8 +2146,8 @@ var It = { exports: {} };
1954
2146
  if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
1955
2147
  return a.toString();
1956
2148
  var n = "";
1957
- for (var o in a)
1958
- t.call(a, o) && a[o] && (n = c(n, o));
2149
+ for (var i in a)
2150
+ t.call(a, i) && a[i] && (n = c(n, i));
1959
2151
  return n;
1960
2152
  }
1961
2153
  function c(a, n) {
@@ -1963,18 +2155,18 @@ var It = { exports: {} };
1963
2155
  }
1964
2156
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1965
2157
  })();
1966
- })(It);
1967
- const x = It.exports, Qs = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-button{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);border-radius:8px;display:flex;padding:12px 20px;position:relative;background-color:var(--sc-surface-brand-primary);border:1px solid var(--sc-border-primary);color:var(--sc-content-brand-on-primary)}.searchcraft-button:hover{cursor:pointer;background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button:focus{outline:2px solid var(--sc-surface-brand-primary)}.buttonLabel{position:relative}", Js = Qs, Lt = /* @__PURE__ */ M(class extends B {
2158
+ })(jt);
2159
+ const x = jt.exports, tn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-button{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);border-radius:8px;display:flex;padding:12px 20px;position:relative;background-color:var(--sc-surface-brand-primary);border:1px solid var(--sc-border-primary);color:var(--sc-content-brand-on-primary)}.searchcraft-button:hover{cursor:pointer;background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button:focus{outline:2px solid var(--sc-surface-brand-primary)}.buttonLabel{position:relative}", rn = tn, Ut = /* @__PURE__ */ k(class extends S {
1968
2160
  constructor() {
1969
- super(), this.__registerHost(), this.buttonClick = T(this, "buttonClick", 7), this.handleClick = () => {
2161
+ super(), this.__registerHost(), this.buttonClick = M(this, "buttonClick"), this.iconOnly = !1, this.iconPosition = "left", this.label = "Search", this.isRequesting = !1, this.handleClick = () => {
1970
2162
  this.buttonClick.emit();
1971
- }, this.iconElement = void 0, this.iconOnly = !1, this.iconPosition = "left", this.label = "Search", this.isRequesting = !1;
2163
+ };
1972
2164
  }
1973
2165
  render() {
1974
- return d($e, { key: "52b95f09f5da9f281b250285623e150c5d952dce" }, this.iconOnly ? d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.isRequesting ? d("searchcraft-spinner-dark", null) : this.iconElement) : d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.iconPosition === "left" && this.iconElement, d("span", { class: x("buttonLabel", "searchcraft-button-label") }, this.label)));
2166
+ return d(Se, { key: "52b95f09f5da9f281b250285623e150c5d952dce" }, this.iconOnly ? d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.isRequesting ? d("searchcraft-spinner-dark", null) : this.iconElement) : d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.iconPosition === "left" && this.iconElement, d("span", { class: x("buttonLabel", "searchcraft-button-label") }, this.label)));
1975
2167
  }
1976
2168
  static get style() {
1977
- return Js;
2169
+ return rn;
1978
2170
  }
1979
2171
  }, [0, "searchcraft-button", {
1980
2172
  iconElement: [16],
@@ -1983,28 +2175,28 @@ const x = It.exports, Qs = ":root{--sc-input-border-radius:8px;--sc-input-search
1983
2175
  label: [1],
1984
2176
  isRequesting: [32]
1985
2177
  }]);
1986
- function Ot() {
2178
+ function Ie() {
1987
2179
  if (typeof customElements > "u")
1988
2180
  return;
1989
2181
  ["searchcraft-button"].forEach((t) => {
1990
2182
  switch (t) {
1991
2183
  case "searchcraft-button":
1992
- customElements.get(t) || customElements.define(t, Lt);
2184
+ customElements.get(t) || customElements.define(t, Ut);
1993
2185
  break;
1994
2186
  }
1995
2187
  });
1996
2188
  }
1997
- const Ks = Lt, Ys = Ot, Xs = Mt, Zs = Ae;
1998
- function jt(e, t) {
2189
+ const sn = Ut, nn = Ie, an = Lt, cn = he;
2190
+ function Ht(e, t) {
1999
2191
  const r = Object.assign({}, e);
2000
2192
  for (const s in t)
2001
- t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = jt(e[s], t[s]) : r[s] = t[s]);
2193
+ t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Ht(e[s], t[s]) : r[s] = t[s]);
2002
2194
  return r;
2003
2195
  }
2004
- function en(e) {
2196
+ function on(e) {
2005
2197
  return e.filter((t, r, s) => !s.some((c, a) => a !== r && c.includes(t)));
2006
2198
  }
2007
- function et(e) {
2199
+ function at(e) {
2008
2200
  const t = {}, r = (s) => {
2009
2201
  var c;
2010
2202
  t[s.path] = {
@@ -2016,7 +2208,7 @@ function et(e) {
2016
2208
  };
2017
2209
  return r(e), t;
2018
2210
  }
2019
- function tn(e) {
2211
+ function ln(e) {
2020
2212
  const t = {
2021
2213
  count: 0,
2022
2214
  path: "/",
@@ -2028,29 +2220,29 @@ function tn(e) {
2028
2220
  return;
2029
2221
  const c = s.path.substring(1).split("/");
2030
2222
  let a = t, n = "";
2031
- c.forEach((o, u) => {
2032
- const i = `${n}/${o}`;
2033
- a.children[i] || (a.children[i] = {
2223
+ c.forEach((i, u) => {
2224
+ const o = `${n}/${i}`;
2225
+ a.children[o] || (a.children[o] = {
2034
2226
  count: 0,
2035
- path: i,
2227
+ path: o,
2036
2228
  children: {}
2037
- }), u === c.length - 1 && (a.children[i].count = s.count), n = i, a = a.children[i];
2229
+ }), u === c.length - 1 && (a.children[o].count = s.count), n = o, a = a.children[o];
2038
2230
  });
2039
2231
  }), t;
2040
2232
  }
2041
- function Ut(e) {
2233
+ function qt(e) {
2042
2234
  const t = {
2043
2235
  count: e.count,
2044
2236
  path: e.path,
2045
2237
  children: []
2046
2238
  };
2047
- return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Ut(r))), t;
2239
+ return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => qt(r))), t;
2048
2240
  }
2049
- function rn(e, t) {
2241
+ function un(e, t) {
2050
2242
  const r = Object.keys(e), s = Object.keys(t), c = new Set(s.filter((n) => n.split("/").length > 2).map((n) => n.substring(0, n.lastIndexOf("/"))));
2051
2243
  return Object.fromEntries(r.filter((n) => !c.has(n.substring(0, n.lastIndexOf("/")))).map((n) => [n, e[n]]));
2052
2244
  }
2053
- function sn(e, t, r) {
2245
+ function dn(e, t, r) {
2054
2246
  const s = t[e], c = r[e], a = {
2055
2247
  count: 0,
2056
2248
  path: "/",
@@ -2059,33 +2251,33 @@ function sn(e, t, r) {
2059
2251
  count: 0,
2060
2252
  path: "/",
2061
2253
  children: c
2062
- }, o = et(a), u = et(n), i = rn(o, u), l = jt(i, u), h = tn(l), f = Ut(h);
2254
+ }, i = at(a), u = at(n), o = un(i, u), l = Ht(o, u), f = ln(l), h = qt(f);
2063
2255
  return {
2064
- [e]: f.children
2256
+ [e]: h.children
2065
2257
  };
2066
2258
  }
2067
- const nn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.filtersListContainer{width:100%}.filterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.filterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.filterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.filterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.filterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.filterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.childFilterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:12px;margin-left:24px;position:relative}.childFilterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px;-webkit-font-smoothing:antialiased}.childFilterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.childFilterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.childFilterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.childFilterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.checkContainer{display:none;height:16px;width:16px;position:absolute;top:9px;left:8px}.dashContainer{display:none;height:3px;width:14px;position:absolute;top:3px;left:9px}.searchcraft-facet-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-disabled);text-align:center}", an = nn, qt = /* @__PURE__ */ M(class extends B {
2259
+ const fn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.filtersListContainer{width:100%}.filterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.filterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.filterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.filterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.filterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.filterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.childFilterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:12px;margin-left:24px;position:relative}.childFilterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px;-webkit-font-smoothing:antialiased}.childFilterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.childFilterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.childFilterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.childFilterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.checkContainer{display:none;height:16px;width:16px;position:absolute;top:9px;left:8px}.dashContainer{display:none;height:3px;width:14px;position:absolute;top:3px;left:9px}.searchcraft-facet-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-disabled);text-align:center}", hn = fn, Nt = /* @__PURE__ */ k(class extends S {
2068
2260
  constructor() {
2069
- super(), this.__registerHost(), this.facetSelectionUpdated = T(this, "facetSelectionUpdated", 7), this.searchStore = _.getState(), this.formatLabel = (t) => {
2261
+ super(), this.__registerHost(), this.facetSelectionUpdated = M(this, "facetSelectionUpdated"), this.selectedPaths = {}, this.hasNewSearchTerm = !1, this.searchStore = v.getState(), this.formatLabel = (t) => {
2070
2262
  const r = t.path.replace(/^\//, ""), s = t.count;
2071
2263
  return `${r.replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} (${s})`;
2072
2264
  }, this.formatSubLabel = (t, r) => {
2073
2265
  const c = t.path.substring(r.path.length).replace(/^\//, ""), a = t.count;
2074
2266
  return `${c.replace(/-/g, " ").replace(/\b\w/g, (n) => n.toUpperCase())} (${a})`;
2075
- }, this.fieldName = void 0, this.baseFacetRoot = void 0, this.facetRoot = void 0, this.selectedPaths = {}, this.lastTimeTaken = void 0, this.hasNewSearchTerm = !1, this.lastQuery = void 0, this.lastSearchMode = void 0, this.lastSortType = void 0, this.unsubscribe = void 0;
2267
+ };
2076
2268
  }
2077
2269
  handleStateUpdate(t) {
2078
2270
  var r, s;
2079
2271
  const c = (r = t.searchResults) === null || r === void 0 ? void 0 : r.data.facets, a = (s = t.searchResults) === null || s === void 0 ? void 0 : s.data.time_taken;
2080
2272
  if ((t.query !== this.lastQuery || t.searchMode !== this.lastSearchMode || t.sortType !== this.lastSortType) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && c) {
2081
2273
  this.facetRoot = void 0;
2082
- const n = c.find((o) => this.fieldName === Object.keys(o)[0]);
2083
- this.hasNewSearchTerm ? (this.baseFacetRoot = n, this.facetRoot = n, this.hasNewSearchTerm = !1) : this.baseFacetRoot && (this.facetRoot = sn(this.fieldName, this.baseFacetRoot, n));
2274
+ const n = c.find((i) => this.fieldName === Object.keys(i)[0]);
2275
+ this.hasNewSearchTerm ? (this.baseFacetRoot = n, this.facetRoot = n, this.hasNewSearchTerm = !1) : this.baseFacetRoot && (this.facetRoot = dn(this.fieldName, this.baseFacetRoot, n));
2084
2276
  }
2085
2277
  this.lastQuery = t.query, this.lastSearchMode = t.searchMode, this.lastSortType = t.sortType, this.lastTimeTaken = a;
2086
2278
  }
2087
2279
  connectedCallback() {
2088
- this.handleStateUpdate(this.searchStore), this.unsubscribe = _.subscribe((t) => {
2280
+ this.handleStateUpdate(this.searchStore), this.unsubscribe = v.subscribe((t) => {
2089
2281
  this.handleStateUpdate(t);
2090
2282
  });
2091
2283
  }
@@ -2098,9 +2290,9 @@ const nn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
2098
2290
  this.selectedPaths = Object.assign(Object.assign({}, this.selectedPaths), { [t]: !0 });
2099
2291
  else {
2100
2292
  const a = Object.keys(this.selectedPaths).filter((n) => !n.includes(t));
2101
- this.selectedPaths = a.reduce((n, o) => (n[o] = !0, n), {});
2293
+ this.selectedPaths = a.reduce((n, i) => (n[i] = !0, n), {});
2102
2294
  }
2103
- const s = Object.keys(this.selectedPaths).filter((a) => this.selectedPaths[a]), c = en(s);
2295
+ const s = Object.keys(this.selectedPaths).filter((a) => this.selectedPaths[a]), c = on(s);
2104
2296
  this.facetSelectionUpdated.emit({ paths: c });
2105
2297
  }
2106
2298
  render() {
@@ -2109,15 +2301,15 @@ const nn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
2109
2301
  return d("div", { key: "709834d9f86b75257ae0c67e9340c0fea4131035", class: x("filtersListContainer", "searchcraft-filters-list-container") }, !r && d("p", { key: "a6e2ced40fcc0762ae8ea835c9d6c573aceeb1f1", class: "searchcraft-facet-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((s) => {
2110
2302
  var c;
2111
2303
  const a = s.children ? (c = s.children) === null || c === void 0 ? void 0 : c.some((n) => this.selectedPaths[n.path]) : !1;
2112
- return d("div", { key: s.path, class: x("searchcraft-filters-list-item") }, d("label", { class: x("filterCheckboxLabel", "searchcraft-filters-list-checkbox-label") }, d("input", { checked: this.selectedPaths[s.path], onChange: (n) => this.handleCheckboxChange(s.path), type: "checkbox" }), a ? d("div", { class: x("dashContainer", "searchcraft-filter-list-dash-container") }, d("searchcraft-dash-icon", null)) : d("div", { class: x("checkContainer", "searchcraft-filter-list-check-container") }, d("searchcraft-check-icon", null)), this.formatLabel(s)), s.children && s.children.length > 0 && d($e, null, s.children.map((n) => d("label", { key: n.path, class: x("childFilterCheckboxLabel", "searchcraft-child-filter-checkbox-label"), style: {
2304
+ return d("div", { key: s.path, class: x("searchcraft-filters-list-item") }, d("label", { class: x("filterCheckboxLabel", "searchcraft-filters-list-checkbox-label") }, d("input", { checked: this.selectedPaths[s.path], onChange: (n) => this.handleCheckboxChange(s.path), type: "checkbox" }), a ? d("div", { class: x("dashContainer", "searchcraft-filter-list-dash-container") }, d("searchcraft-dash-icon", null)) : d("div", { class: x("checkContainer", "searchcraft-filter-list-check-container") }, d("searchcraft-check-icon", null)), this.formatLabel(s)), s.children && s.children.length > 0 && d(Se, null, s.children.map((n) => d("label", { key: n.path, class: x("childFilterCheckboxLabel", "searchcraft-child-filter-checkbox-label"), style: {
2113
2305
  display: this.selectedPaths[s.path] ? "flex" : "none"
2114
- } }, d("input", { checked: this.selectedPaths[n.path], onChange: (o) => {
2306
+ } }, d("input", { checked: this.selectedPaths[n.path], onChange: (i) => {
2115
2307
  this.handleCheckboxChange(n.path);
2116
2308
  }, type: "checkbox" }), d("div", { class: x("checkContainer", "searchcraft-filter-list-check-container") }, d("searchcraft-check-icon", null)), this.formatSubLabel(n, s)))));
2117
2309
  }));
2118
2310
  }
2119
2311
  static get style() {
2120
- return an;
2312
+ return hn;
2121
2313
  }
2122
2314
  }, [0, "searchcraft-facet-list", {
2123
2315
  fieldName: [1, "field-name"],
@@ -2131,20 +2323,20 @@ const nn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
2131
2323
  lastSortType: [32],
2132
2324
  unsubscribe: [32]
2133
2325
  }]);
2134
- function Nt() {
2326
+ function Vt() {
2135
2327
  if (typeof customElements > "u")
2136
2328
  return;
2137
2329
  ["searchcraft-facet-list"].forEach((t) => {
2138
2330
  switch (t) {
2139
2331
  case "searchcraft-facet-list":
2140
- customElements.get(t) || customElements.define(t, qt);
2332
+ customElements.get(t) || customElements.define(t, Nt);
2141
2333
  break;
2142
2334
  }
2143
2335
  });
2144
2336
  }
2145
- const cn = qt, on = Nt, ln = ':root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-slider-container{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range-container{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range-container::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .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-container .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-input{appearance:none;background:transparent;border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range-container .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-container .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-container{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-label{min-width:30px;text-align:center}', un = ln, Ht = /* @__PURE__ */ M(class extends B {
2337
+ const pn = Nt, gn = Vt, mn = ':root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-slider-container{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range-container{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range-container::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .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-container .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-input{appearance:none;background:transparent;border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range-container .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-container .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-container{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-label{min-width:30px;text-align:center}', bn = mn, Wt = /* @__PURE__ */ k(class extends S {
2146
2338
  constructor() {
2147
- super(), this.__registerHost(), this.rangeChanged = T(this, "rangeChanged", 7), this.emitUpdate = async () => {
2339
+ super(), this.__registerHost(), this.rangeChanged = M(this, "rangeChanged"), this.max = 100, this.min = 0, this.granularity = Mt("month"), this.dataType = "number", this.endValue = this.max, this.startValue = this.min, this.lastFocusedHandle = "max", this.emitUpdate = async () => {
2148
2340
  this.rangeChanged.emit({
2149
2341
  startValue: this.startValue,
2150
2342
  endValue: this.endValue
@@ -2155,7 +2347,7 @@ const cn = qt, on = Nt, ln = ':root{--sc-input-border-radius:8px;--sc-input-sear
2155
2347
  }, this.handleEndValueChange = (t) => {
2156
2348
  const r = t.target, s = Number.parseInt(r.value, 10);
2157
2349
  this.lastFocusedHandle = "max", s >= this.startValue ? (this.endValue = s, this.emitUpdate()) : (this.endValue = this.startValue, r.value = `${this.startValue}`);
2158
- }, this.max = 100, this.min = 0, this.granularity = Bt("month"), this.dataType = "number", this.endValue = this.max, this.startValue = this.min, this.lastFocusedHandle = "max";
2350
+ };
2159
2351
  }
2160
2352
  componentDidLoad() {
2161
2353
  this.startValue = this.min, this.endValue = this.max;
@@ -2168,7 +2360,7 @@ const cn = qt, on = Nt, ln = ':root{--sc-input-border-radius:8px;--sc-input-sear
2168
2360
  } }), d("input", { key: "8968b1925f83480561a460b5f7da64499ec220c0", class: x("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 }), d("input", { key: "1ec4b397eb5ca6834719b0c09811d2b11e70c6d0", class: x("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 })), d("div", { key: "abc788f7398c68aefcd12468280ef07fcf2ae673", class: "searchcraft-slider-label-container" }, d("span", { key: "f09f772f95c21fc4dfcd58d6eed7ff6901d329b8", class: "searchcraft-slider-label" }, a), d("span", { key: "251cecce58bb785d9478e80edfe429a1e18ef274", class: "searchcraft-slider-label" }, n)));
2169
2361
  }
2170
2362
  static get style() {
2171
- return un;
2363
+ return bn;
2172
2364
  }
2173
2365
  }, [0, "searchcraft-slider", {
2174
2366
  max: [2],
@@ -2179,25 +2371,25 @@ const cn = qt, on = Nt, ln = ':root{--sc-input-border-radius:8px;--sc-input-sear
2179
2371
  startValue: [32],
2180
2372
  lastFocusedHandle: [32]
2181
2373
  }]);
2182
- function Vt() {
2374
+ function Gt() {
2183
2375
  if (typeof customElements > "u")
2184
2376
  return;
2185
2377
  ["searchcraft-slider"].forEach((t) => {
2186
2378
  switch (t) {
2187
2379
  case "searchcraft-slider":
2188
- customElements.get(t) || customElements.define(t, Ht);
2380
+ customElements.get(t) || customElements.define(t, Wt);
2189
2381
  break;
2190
2382
  }
2191
2383
  });
2192
2384
  }
2193
- const dn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-toggle-button-container{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-toggle-button-background{transition:background-color 0.2s;background:var(--sc-surface-disabled);border:none;border-radius:16px;cursor:pointer;height:26px;position:relative;width:44px;flex-shrink:0}.searchcraft-toggle-button-background.active{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0, 0, 0, 0.05)}.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 0.3s ease;width:18px}.searchcraft-toggle-button-handle.active{transform:translateX(16px)}", hn = dn, Wt = /* @__PURE__ */ M(class extends B {
2385
+ const yn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-toggle-button-container{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-toggle-button-background{transition:background-color 0.2s;background:var(--sc-surface-disabled);border:none;border-radius:16px;cursor:pointer;height:26px;position:relative;width:44px;flex-shrink:0}.searchcraft-toggle-button-background.active{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0, 0, 0, 0.05)}.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 0.3s ease;width:18px}.searchcraft-toggle-button-handle.active{transform:translateX(16px)}", vn = yn, Yt = /* @__PURE__ */ k(class extends S {
2194
2386
  constructor() {
2195
- super(), this.__registerHost(), this.toggleUpdated = T(this, "toggleUpdated", 7), this.handleToggle = async () => {
2387
+ super(), this.__registerHost(), this.toggleUpdated = M(this, "toggleUpdated"), this.label = "Toggle", this.isActive = !1, this.handleToggle = async () => {
2196
2388
  this.isActive = !this.isActive, this.toggleUpdated.emit(this.isActive);
2197
- }, this.label = "Toggle", this.subLabel = void 0, this.isActive = !1, this.unsubscribe = void 0, this.lastQuery = void 0;
2389
+ };
2198
2390
  }
2199
2391
  connectedCallback() {
2200
- this.unsubscribe = _.subscribe((t) => {
2392
+ this.unsubscribe = v.subscribe((t) => {
2201
2393
  t.query !== this.lastQuery && t.query.trim().length === 0 && (this.isActive = !1), this.lastQuery = t.query;
2202
2394
  });
2203
2395
  }
@@ -2213,7 +2405,7 @@ const dn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
2213
2405
  }) })));
2214
2406
  }
2215
2407
  static get style() {
2216
- return hn;
2408
+ return vn;
2217
2409
  }
2218
2410
  }, [0, "searchcraft-toggle-button", {
2219
2411
  label: [1],
@@ -2222,23 +2414,23 @@ const dn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
2222
2414
  unsubscribe: [32],
2223
2415
  lastQuery: [32]
2224
2416
  }]);
2225
- function Gt() {
2417
+ function Kt() {
2226
2418
  if (typeof customElements > "u")
2227
2419
  return;
2228
2420
  ["searchcraft-toggle-button"].forEach((t) => {
2229
2421
  switch (t) {
2230
2422
  case "searchcraft-toggle-button":
2231
- customElements.get(t) || customElements.define(t, Wt);
2423
+ customElements.get(t) || customElements.define(t, Yt);
2232
2424
  break;
2233
2425
  }
2234
2426
  });
2235
2427
  }
2236
- const fn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.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);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height)}", pn = fn, Qt = /* @__PURE__ */ M(class extends B {
2428
+ const Fn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.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);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height)}", xn = Fn, Qt = /* @__PURE__ */ k(class extends S {
2237
2429
  constructor() {
2238
- super(), this.__registerHost(), this.searchStore = _.getState(), this.items = [], this.unsubscribe = void 0, this.lastQuery = void 0;
2430
+ super(), this.__registerHost(), this.items = [], this.searchStore = v.getState();
2239
2431
  }
2240
2432
  componentDidLoad() {
2241
- this.unsubscribe = _.subscribe((t) => {
2433
+ this.unsubscribe = v.subscribe((t) => {
2242
2434
  this.lastQuery = t.query || "";
2243
2435
  });
2244
2436
  }
@@ -2278,7 +2470,7 @@ const fn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
2278
2470
  return d("div", { key: "43bb83b1616c00f46727c7baff2cbc013f88e111", class: "searchcraft-filter-panel" }, this.items.map((t) => {
2279
2471
  switch (t.type) {
2280
2472
  case "dateRange": {
2281
- const r = t, s = new Date(r.options.minDate).getTime(), c = new Date(r.options.maxDate).getTime(), a = Bt(r.options.granularity);
2473
+ const r = t, s = new Date(r.options.minDate).getTime(), c = new Date(r.options.maxDate).getTime(), a = Mt(r.options.granularity);
2282
2474
  return d("div", { class: "searchcraft-filter-panel-section" }, d("p", { class: "searchcraft-filter-panel-label" }, t.label), d("searchcraft-slider", { min: s, max: c, granularity: a, dataType: "date", onRangeChanged: (n) => {
2283
2475
  this.handleDateRangeChanged(r.fieldName, n.detail.startValue, n.detail.endValue);
2284
2476
  } }));
@@ -2311,14 +2503,14 @@ const fn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;
2311
2503
  }));
2312
2504
  }
2313
2505
  static get style() {
2314
- return pn;
2506
+ return xn;
2315
2507
  }
2316
2508
  }, [0, "searchcraft-filter-panel", {
2317
2509
  items: [16],
2318
2510
  unsubscribe: [32],
2319
2511
  lastQuery: [32]
2320
2512
  }]);
2321
- function gn() {
2513
+ function En() {
2322
2514
  if (typeof customElements > "u")
2323
2515
  return;
2324
2516
  ["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
@@ -2327,32 +2519,32 @@ function gn() {
2327
2519
  customElements.get(t) || customElements.define(t, Qt);
2328
2520
  break;
2329
2521
  case "searchcraft-facet-list":
2330
- customElements.get(t) || Nt();
2522
+ customElements.get(t) || Vt();
2331
2523
  break;
2332
2524
  case "searchcraft-slider":
2333
- customElements.get(t) || Vt();
2525
+ customElements.get(t) || Gt();
2334
2526
  break;
2335
2527
  case "searchcraft-toggle-button":
2336
- customElements.get(t) || Gt();
2528
+ customElements.get(t) || Kt();
2337
2529
  break;
2338
2530
  }
2339
2531
  });
2340
2532
  }
2341
- const mn = Qt, bn = gn, yn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-input-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height);color:var(--sc-content-neutral-primary);margin-top:4px;margin-bottom:4px}", vn = yn, Jt = /* @__PURE__ */ M(class extends B {
2533
+ const wn = Qt, $n = En, Cn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-input-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height);color:var(--sc-content-neutral-primary);margin-top:4px;margin-bottom:4px}", Sn = Cn, Jt = /* @__PURE__ */ k(class extends S {
2342
2534
  constructor() {
2343
- super(), this.__registerHost(), this.inputLabelClassName = "", this.label = void 0;
2535
+ super(), this.__registerHost(), this.inputLabelClassName = "";
2344
2536
  }
2345
2537
  render() {
2346
2538
  return d("label", { key: "4f913c1d9027ff781725a01e71e241cb5767eadb", class: x("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
2347
2539
  }
2348
2540
  static get style() {
2349
- return vn;
2541
+ return Sn;
2350
2542
  }
2351
2543
  }, [0, "searchcraft-input-label", {
2352
2544
  inputLabelClassName: [1, "input-label-class-name"],
2353
2545
  label: [1]
2354
2546
  }]);
2355
- function Kt() {
2547
+ function Me() {
2356
2548
  if (typeof customElements > "u")
2357
2549
  return;
2358
2550
  ["searchcraft-input-label"].forEach((t) => {
@@ -2363,7 +2555,7 @@ function Kt() {
2363
2555
  }
2364
2556
  });
2365
2557
  }
2366
- const Fn = "@searchcraft/javascript-sdk", xn = "0.6.0", En = "Searchcraft Javascript SDK", $n = "Searchcraft", Sn = "Apache-2.0", wn = "dist/index.cjs.js", Cn = "dist/index.js", kn = "dist/types/index.d.ts", Rn = "dist/collection/collection-manifest.json", zn = "dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js", Tn = {
2558
+ const kn = "@searchcraft/javascript-sdk", Rn = "0.7.0", _n = "Searchcraft Javascript SDK", zn = "Searchcraft", Tn = "Apache-2.0", Pn = "dist/index.cjs.js", An = "dist/index.js", Dn = "dist/types/index.d.ts", Bn = "dist/collection/collection-manifest.json", In = "dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js", Mn = {
2367
2559
  ".": {
2368
2560
  import: "./dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js",
2369
2561
  require: "./dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.cjs.js",
@@ -2382,49 +2574,50 @@ const Fn = "@searchcraft/javascript-sdk", xn = "0.6.0", En = "Searchcraft Javasc
2382
2574
  import: "./dist/components/*",
2383
2575
  types: "./dist/components/*"
2384
2576
  }
2385
- }, _n = {
2577
+ }, Ln = {
2386
2578
  type: "git",
2387
2579
  url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/"
2388
- }, An = [
2580
+ }, On = [
2389
2581
  "dist/"
2390
- ], Pn = {
2582
+ ], jn = {
2391
2583
  build: "stencil build",
2392
2584
  dev: "stencil build --dev --watch",
2393
2585
  test: "stencil test --spec --e2e",
2394
2586
  "test.watch": "stencil test --spec --e2e --watchAll",
2395
2587
  generate: "stencil generate"
2396
- }, Bn = {
2588
+ }, Un = {
2589
+ "@stencil/vue-output-target": "^0.9.2",
2397
2590
  classnames: "^2.3.2"
2398
- }, Mn = {
2399
- "@searchcraft/core": "^0.6.0",
2591
+ }, Hn = {
2592
+ "@searchcraft/core": "^0.7.0",
2400
2593
  "@searchcraft/javascript-sdk": "*",
2401
2594
  "@stencil/core": "^4.7.0",
2402
2595
  "@stencil/react-output-target": "^0.8.2",
2403
2596
  "@stencil/sass": "^3.0.12",
2404
2597
  "@types/node": "^16.18.11",
2405
2598
  zustand: "^5.0.1"
2406
- }, tt = {
2407
- name: Fn,
2599
+ }, ct = {
2600
+ name: kn,
2408
2601
  private: !1,
2409
- version: xn,
2410
- description: En,
2411
- author: $n,
2412
- license: Sn,
2413
- main: wn,
2414
- module: Cn,
2415
- types: kn,
2416
- collection: Rn,
2602
+ version: Rn,
2603
+ description: _n,
2604
+ author: zn,
2605
+ license: Tn,
2606
+ main: Pn,
2607
+ module: An,
2608
+ types: Dn,
2609
+ collection: Bn,
2417
2610
  "collection:main": "dist/collection/index.js",
2418
- unpkg: zn,
2419
- exports: Tn,
2420
- repository: _n,
2421
- files: An,
2422
- scripts: Pn,
2423
- dependencies: Bn,
2424
- devDependencies: Mn
2425
- }, Dn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-input-grid{display:grid;gap:4px 8px}.searchcraft-input-grid-buttonLeft{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-grid-buttonLeft .searchcraft-input-button-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-label-wrapper{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-error-wrapper{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-grid-buttonRight .searchcraft-input-button-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonNone{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-grid-buttonNone .searchcraft-input-button-wrapper{display:none}.searchcraft-input-grid-buttonNone .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-wrapper{position:relative;display:flex}.searchcraft-input{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-border-radius);border:none;color:var(--sc-content-neutral-primary);outline:none;padding-left:var(--sc-input-padding-left);padding-right:var(--sc-input-padding-right);padding-top:12px;padding-bottom:12px;flex:1}.searchcraft-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input:focus{outline:var(--sc-border-brand) solid 2px}.searchcraft-input:focus::placeholder{opacity:0}.searchcraft-input.error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input.error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-search-icon-wrapper{align-items:center;justify-content:center;display:flex;position:absolute;pointer-events:none;bottom:0;left:0;top:0;width:var(--sc-input-padding-left)}.searchcraft-input-search-icon{pointer-events:none;width:var(--sc-input-search-icon-size);height:var(--sc-input-search-icon-size)}.searchcraft-input-clear-button{all:unset;align-items:center;justify-content:center;cursor:pointer;display:flex;position:absolute;border:none;outline:none;bottom:0;right:0;top:0;width:var(--sc-input-padding-right)}.searchcraft-input-clear-icon{width:var(--sc-input-clear-icon-size);height:var(--sc-input-clear-icon-size)}", In = Dn, Yt = /* @__PURE__ */ M(class extends B {
2611
+ unpkg: In,
2612
+ exports: Mn,
2613
+ repository: Ln,
2614
+ files: On,
2615
+ scripts: jn,
2616
+ dependencies: Un,
2617
+ devDependencies: Hn
2618
+ }, qn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-input-grid{display:grid;gap:4px 8px}.searchcraft-input-grid-buttonLeft{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-grid-buttonLeft .searchcraft-input-button-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-label-wrapper{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-error-wrapper{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-grid-buttonRight .searchcraft-input-button-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonNone{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-grid-buttonNone .searchcraft-input-button-wrapper{display:none}.searchcraft-input-grid-buttonNone .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-wrapper{position:relative;display:flex}.searchcraft-input{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-border-radius);border:none;color:var(--sc-content-neutral-primary);outline:none;padding-left:var(--sc-input-padding-left);padding-right:var(--sc-input-padding-right);padding-top:12px;padding-bottom:12px;flex:1}.searchcraft-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input:focus{outline:var(--sc-border-brand) solid 2px}.searchcraft-input:focus::placeholder{opacity:0}.searchcraft-input.error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input.error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-search-icon-wrapper{align-items:center;justify-content:center;display:flex;position:absolute;pointer-events:none;bottom:0;left:0;top:0;width:var(--sc-input-padding-left)}.searchcraft-input-search-icon{pointer-events:none;width:var(--sc-input-search-icon-size);height:var(--sc-input-search-icon-size)}.searchcraft-input-clear-button{all:unset;align-items:center;justify-content:center;cursor:pointer;display:flex;position:absolute;border:none;outline:none;bottom:0;right:0;top:0;width:var(--sc-input-padding-right)}.searchcraft-input-clear-icon{width:var(--sc-input-clear-icon-size);height:var(--sc-input-clear-icon-size)}", Nn = qn, Xt = /* @__PURE__ */ k(class extends S {
2426
2619
  constructor() {
2427
- super(), this.__registerHost(), this.inputCleared = T(this, "inputCleared", 7), this.noResultsReceived = T(this, "noResultsReceived", 7), this.inputFocus = T(this, "inputFocus", 7), this.inputBlur = T(this, "inputBlur", 7), this.inputInit = T(this, "inputInit", 7), this.querySubmit = T(this, "querySubmit", 7), this.searchStore = _.getState(), this.handleOnInput = (t) => {
2620
+ super(), this.__registerHost(), this.inputCleared = M(this, "inputCleared"), this.noResultsReceived = M(this, "noResultsReceived"), this.inputFocus = M(this, "inputFocus"), this.inputBlur = M(this, "inputBlur"), this.inputInit = M(this, "inputInit"), this.querySubmit = M(this, "querySubmit"), this.autoSearch = !0, this.buttonPlacement = "none", this.customStyles = {}, this.placeholderValue = "Enter Search", this.searchTerm = "", this.inputValue = this.searchTerm, this.error = !1, this.isSearchcraftInitialized = !1, this.searchStore = v.getState(), this.handleOnInput = (t) => {
2428
2621
  const r = t.target;
2429
2622
  if (this.inputValue = r.value, r.value.trim() === "") {
2430
2623
  this.inputCleared.emit(), this.searchTerm = "", this.searchStore.setQuery(""), this.searchStore.setSearchResults(null);
@@ -2432,7 +2625,7 @@ const Fn = "@searchcraft/javascript-sdk", xn = "0.6.0", En = "Searchcraft Javasc
2432
2625
  }
2433
2626
  this.autoSearch && this.performSearch(r.value);
2434
2627
  }, this.performSearch = async (t) => {
2435
- if (t !== _.getState().query) {
2628
+ if (t !== v.getState().query) {
2436
2629
  this.searchTerm = t.trim(), this.error = !1, this.searchStore.setQuery(this.searchTerm), this.querySubmit.emit(this.searchTerm);
2437
2630
  try {
2438
2631
  await this.searchStore.search();
@@ -2444,13 +2637,13 @@ const Fn = "@searchcraft/javascript-sdk", xn = "0.6.0", En = "Searchcraft Javasc
2444
2637
  this.inputValue = "", this.searchTerm = "", this.searchStore.setQuery(""), this.searchStore.setSearchResults(null), this.error = !1, this.inputCleared && this.inputCleared.emit();
2445
2638
  }, this.handleFormSubmit = async (t) => {
2446
2639
  t.preventDefault(), await this.performSearch(this.searchTerm);
2447
- }, this.config = void 0, this.autoSearch = !0, this.buttonPlacement = "none", this.buttonLabel = void 0, this.inputLabel = void 0, this.customStyles = {}, this.placeholderValue = "Enter Search", this.searchTerm = "", this.inputValue = this.searchTerm, this.error = !1, this.isSearchcraftInitialized = !1;
2640
+ };
2448
2641
  }
2449
2642
  init() {
2450
2643
  if (this.config && !this.isSearchcraftInitialized) {
2451
- const t = new _s(this.config, {
2452
- sdkName: tt.name,
2453
- sdkVersion: tt.version
2644
+ const t = new Ls(this.config, {
2645
+ sdkName: ct.name,
2646
+ sdkVersion: ct.version
2454
2647
  });
2455
2648
  this.searchStore.initialize(t, !0), this.isSearchcraftInitialized = !0, this.inputInit.emit();
2456
2649
  }
@@ -2462,7 +2655,7 @@ const Fn = "@searchcraft/javascript-sdk", xn = "0.6.0", En = "Searchcraft Javasc
2462
2655
  this.init();
2463
2656
  }
2464
2657
  render() {
2465
- const t = Os(this.customStyles), r = this.inputValue.length > 0, s = x("searchcraft-input-grid", {
2658
+ const t = Ws(this.customStyles), r = this.inputValue.length > 0, s = x("searchcraft-input-grid", {
2466
2659
  "searchcraft-input-grid-buttonLeft": this.buttonPlacement === "left",
2467
2660
  "searchcraft-input-grid-buttonRight": this.buttonPlacement === "right",
2468
2661
  "searchcraft-input-grid-buttonNone": this.buttonPlacement === "none"
@@ -2479,7 +2672,7 @@ const Fn = "@searchcraft/javascript-sdk", xn = "0.6.0", En = "Searchcraft Javasc
2479
2672
  };
2480
2673
  }
2481
2674
  static get style() {
2482
- return In;
2675
+ return Nn;
2483
2676
  }
2484
2677
  }, [0, "searchcraft-input-form", {
2485
2678
  config: [16],
@@ -2496,32 +2689,302 @@ const Fn = "@searchcraft/javascript-sdk", xn = "0.6.0", En = "Searchcraft Javasc
2496
2689
  }, void 0, {
2497
2690
  config: ["onConfigChange"]
2498
2691
  }]);
2499
- function Ln() {
2692
+ function Zt() {
2500
2693
  if (typeof customElements > "u")
2501
2694
  return;
2502
2695
  ["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
2503
2696
  switch (t) {
2504
2697
  case "searchcraft-input-form":
2505
- customElements.get(t) || customElements.define(t, Yt);
2698
+ customElements.get(t) || customElements.define(t, Xt);
2506
2699
  break;
2507
2700
  case "searchcraft-button":
2508
- customElements.get(t) || Ot();
2701
+ customElements.get(t) || Ie();
2509
2702
  break;
2510
2703
  case "searchcraft-error-message":
2511
- customElements.get(t) || Ae();
2704
+ customElements.get(t) || he();
2512
2705
  break;
2513
2706
  case "searchcraft-input-label":
2514
- customElements.get(t) || Kt();
2707
+ customElements.get(t) || Me();
2708
+ break;
2709
+ }
2710
+ });
2711
+ }
2712
+ const Vn = Xt, Wn = Zt, Gn = Jt, Yn = Me, Kn = "", Qn = Kn, er = /* @__PURE__ */ k(class extends S {
2713
+ constructor() {
2714
+ super(), this.__registerHost();
2715
+ }
2716
+ handleOnClick() {
2717
+ v.getState().setPopoverVisibility(!0);
2718
+ }
2719
+ render() {
2720
+ return d("button", { key: "7885ca44b5ce619d572194d60c3b7e9d9f6666be", type: "button", onClick: this.handleOnClick.bind(this) }, d("slot", { key: "0a8dc506eadbc725e3ed4c7c6987e02dfcecc229" }));
2721
+ }
2722
+ static get style() {
2723
+ return Qn;
2724
+ }
2725
+ }, [4, "searchcraft-popover-button"]);
2726
+ function Jn() {
2727
+ if (typeof customElements > "u")
2728
+ return;
2729
+ ["searchcraft-popover-button"].forEach((t) => {
2730
+ switch (t) {
2731
+ case "searchcraft-popover-button":
2732
+ customElements.get(t) || customElements.define(t, er);
2515
2733
  break;
2516
2734
  }
2517
2735
  });
2518
2736
  }
2519
- const On = Yt, jn = Ln, Un = Jt, qn = Kt, Nn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-results-info-container{border-bottom:1px solid var(--sc-surface-disabled);display:flex;justify-content:flex-start}.searchcraft-results-info-content{color:var(--sc-content-primary);font-family:var(--sc-font-family);font-size:18px;font-weight:600;line-height:20px;margin:0px 0 8px}@media (max-width: 768px){.searchcraft-results-info-content{margin:0;margin-bottom:8px}}", Hn = Nn, Xt = /* @__PURE__ */ M(class extends B {
2737
+ const Xn = er, Zn = Jn, ea = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-popover-list-item{all:unset;display:flex;flex-direction:row;cursor:pointer;gap:8px;padding-right:var(--sc-popover-list-item-padding-horizontal);padding-left:var(--sc-popover-list-item-padding-horizontal);padding-top:var(--sc-popover-list-item-padding-vertical);padding-bottom:var(--sc-popover-list-item-padding-vertical)}.searchcraft-popover-list-item:focus{background-color:var(--sc-surface-neutral-secondary-active);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item:hover{background-color:var(--sc-surface-neutral-secondary-hover);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item-title{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:inherit}.searchcraft-popover-list-item-subtitle{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:inherit}.searchcraft-popover-list-item-image-wrapper{width:var(--sc-popover-list-item-image-size);height:var(--sc-popover-list-item-image-size);display:flex;align-items:center;justify-content:center;flex-shrink:0}.searchcraft-popover-list-item-image{max-width:var(--sc-popover-list-item-image-size);max-height:var(--sc-popover-list-item-image-size)}.searchcraft-popover-list-item-info-wrapper{display:flex;flex-direction:column;gap:8px;justify-content:center}", ta = ea, ra = /* @__PURE__ */ k(class extends S {
2738
+ constructor() {
2739
+ super(), this.__registerHost();
2740
+ }
2741
+ componentDidLoad() {
2742
+ }
2743
+ connectedCallback() {
2744
+ }
2745
+ disconnectedCallback() {
2746
+ }
2747
+ handleButtonClick() {
2748
+ }
2749
+ render() {
2750
+ return d("a", { key: "b7a590e92994869477825dd17545e8d4e05d1d07", class: "searchcraft-popover-list-item", href: this.href }, this.imageSrc && d("div", { key: "129525e50ec17dce052f503af318b56e06c900ef", class: "searchcraft-popover-list-item-image-wrapper" }, d("img", { key: "4ba701f35cbf7e167e7edd63ba19e3576e620c26", alt: this.imageAlt, src: this.imageSrc, class: "searchcraft-popover-list-item-image" })), d("div", { key: "6a6ab09451f5d9d4e554dc1f1fcd57ec13adf2f2", class: "searchcraft-popover-list-item-info-wrapper" }, d("p", { key: "476fdefff6cb35167fb00f24cdf03b9f8d826ba5", class: "searchcraft-popover-list-item-title" }, this.titleContent), d("p", { key: "b43fd584bfcc8efc7d50d7220b649fafc8bba244", class: "searchcraft-popover-list-item-subtitle" }, this.subtitleContent)));
2751
+ }
2752
+ static get style() {
2753
+ return ta;
2754
+ }
2755
+ }, [0, "searchcraft-popover-list-item", {
2756
+ titleContent: [1, "title-content"],
2757
+ subtitleContent: [1, "subtitle-content"],
2758
+ imageSrc: [1, "image-src"],
2759
+ imageAlt: [1, "image-alt"],
2760
+ href: [1],
2761
+ documentPosition: [2, "document-position"]
2762
+ }]);
2763
+ function tr() {
2764
+ if (typeof customElements > "u")
2765
+ return;
2766
+ ["searchcraft-popover-list-item"].forEach((t) => {
2767
+ switch (t) {
2768
+ case "searchcraft-popover-list-item":
2769
+ customElements.get(t) || customElements.define(t, ra);
2770
+ break;
2771
+ }
2772
+ });
2773
+ }
2774
+ const sa = "", na = sa, aa = /* @__PURE__ */ k(class extends S {
2775
+ constructor() {
2776
+ super(), this.__registerHost();
2777
+ }
2778
+ renderDocument(t, r) {
2779
+ const s = D(t, this.popoverResultMappings.title), c = D(t, this.popoverResultMappings.subtitle), a = D(t, this.popoverResultMappings.href), n = D(t, this.popoverResultMappings.imageSource), i = D(t, this.popoverResultMappings.imageAlt);
2780
+ return d("searchcraft-popover-list-item", { key: `${t.document_id}-${r}`, "title-content": s, "subtitle-content": c, "image-src": n, "image-alt": i, href: a, "document-position": r });
2781
+ }
2782
+ render() {
2783
+ var t;
2784
+ return d("div", { key: "6e9017370d7079412d6d31fb439be599d689c9c2", class: "searchcraft-popover-list-view" }, (t = this.documents) === null || t === void 0 ? void 0 : t.map((r, s) => this.renderDocument(r, s)));
2785
+ }
2786
+ static get style() {
2787
+ return na;
2788
+ }
2789
+ }, [0, "searchcraft-popover-list-view", {
2790
+ popoverResultMappings: [16],
2791
+ documents: [16]
2792
+ }]);
2793
+ function ca() {
2794
+ if (typeof customElements > "u")
2795
+ return;
2796
+ ["searchcraft-popover-list-view", "searchcraft-popover-list-item"].forEach((t) => {
2797
+ switch (t) {
2798
+ case "searchcraft-popover-list-view":
2799
+ customElements.get(t) || customElements.define(t, aa);
2800
+ break;
2801
+ case "searchcraft-popover-list-item":
2802
+ customElements.get(t) || tr();
2803
+ break;
2804
+ }
2805
+ });
2806
+ }
2807
+ const ia = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-popover-form{display:flex;flex-direction:column;flex:1}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper{padding:12px;background-color:var(--sc-surface-neutral-secondary);display:flex;flex-direction:row;gap:4px}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper>searchcraft-input-form{flex:1}.searchcraft-popover-form .searchcraft-popover-form-cancel-button{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);border:0;outline:0;padding:0;flex-shrink:0;background:none;cursor:pointer;padding-left:12px;padding-right:12px;border-radius:calc(var(--sc-popover-form-border-radius) * 0.8)}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:focus{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-popover-form-inline .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);border:none;outline:none}.searchcraft-popover-form-inline.searchcraft-popover-form-active .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-outer{position:relative}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-inner{position:absolute;height:var(--sc-popover-list-view-height);z-index:1000;width:100%}.searchcraft-popover-form-inline .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);max-height:var(--sc-popover-list-view-height)}.searchcraft-popover-form-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:0;background-color:var(--sc-surface-neutral-secondary)}@media (min-width: 576px){.searchcraft-popover-form-modal{padding:16px;background-color:transparent}}.searchcraft-popover-form-modal .searchcraft-input{border-radius:calc(var(--sc-popover-form-border-radius) * 0.8);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{position:absolute;inset:0;background-color:rgba(0, 0, 0, 0.5);display:none}@media (min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{position:absolute;inset:0;z-index:1002;margin-top:0px;display:flex;border-radius:var(--sc-popover-form-border-radius);overflow:hidden}@media (min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{inset:auto;position:relative;width:100%;margin-top:100px;max-width:var(--sc-popover-modal-max-width)}}.searchcraft-popover-form-modal .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:0;border-bottom-right-radius:0}@media (min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-list-view{max-height:var(--sc-popover-list-view-height)}}.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:scroll}@media (min-width: 576px){.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:auto}}.searchcraft-popover-form-fullscreen{position:fixed;inset:0;z-index:1000;background-color:var(--sc-surface-neutral-secondary)}.searchcraft-popover-form-fullscreen .searchcraft-popover-form{position:absolute;inset:0}.searchcraft-popover-form-fullscreen .searchcraft-input{border-radius:calc(var(--sc-popover-form-border-radius) * 0.8);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-fullscreen searchcraft-popover-list-view{overflow:scroll}", oa = ia, rr = /* @__PURE__ */ k(class extends S {
2808
+ constructor() {
2809
+ super(), this.__registerHost(), this.type = "inline", this.hotkey = "k", this.hotkeyModifier = "meta", this.isPopoverVisibleInState = !1, this.isFocused = !1, this.breakpointSm = 576, this.breakpointMd = 768, this.breakpointLg = 992, this.handleDocumentClick = (t) => {
2810
+ this.hostElement.contains(t.target) || (this.isFocused = !1);
2811
+ }, this.handleDocumentKeyDown = (t) => {
2812
+ if (t.key === this.hotkey && this.handleHotkeyPressed(t), !!this.hostElement.contains(document.activeElement))
2813
+ switch (t.key) {
2814
+ case "ArrowDown":
2815
+ case "ArrowUp":
2816
+ t.preventDefault(), this.focusOnNextListItem(t.key);
2817
+ break;
2818
+ case "Escape":
2819
+ v.getState().setPopoverVisibility(!1);
2820
+ break;
2821
+ default:
2822
+ return;
2823
+ }
2824
+ }, this.handleInputInit = () => {
2825
+ const t = this.hostElement.querySelector(".searchcraft-input");
2826
+ t == null || t.focus();
2827
+ };
2828
+ }
2829
+ componentDidLoad() {
2830
+ const t = getComputedStyle(document.documentElement);
2831
+ this.breakpointSm = Number.parseFloat(t.getPropertyValue("--sc-breakpoint-sm").trim()), this.breakpointMd = Number.parseFloat(t.getPropertyValue("--sc-breakpoint-md").trim()), this.breakpointLg = Number.parseFloat(t.getPropertyValue("--sc-breakpoint-lg").trim()), this.isPopoverVisibleInState = v.getState().isPopoverVisible, document.addEventListener("click", this.handleDocumentClick), document.addEventListener("keydown", this.handleDocumentKeyDown), this.unsubscribe = v.subscribe((r) => {
2832
+ this.isPopoverVisibleInState !== r.isPopoverVisible && this.handlePopoverVisibilityChange(r.isPopoverVisible), this.searchResults = Object.assign({}, r.searchResults), this.searchTerm = r.query;
2833
+ });
2834
+ }
2835
+ disconnectedCallback() {
2836
+ var t;
2837
+ (t = this.unsubscribe) === null || t === void 0 || t.call(this), document.removeEventListener("click", this.handleDocumentClick), document.removeEventListener("keydown", this.handleDocumentKeyDown);
2838
+ }
2839
+ /**
2840
+ * Handles when popover visibility is changed in state
2841
+ */
2842
+ handlePopoverVisibilityChange(t) {
2843
+ this.isPopoverVisibleInState = t, document.body.style.overflow = t ? "hidden" : "auto";
2844
+ }
2845
+ /**
2846
+ * When popover is `inline` and the viewport is at the smallest breakpoint,
2847
+ * focusing on the input will open a modal version of the popover form.
2848
+ */
2849
+ handleInputFocus() {
2850
+ this.isFocused = !0, this.type === "inline" && window.visualViewport.width < this.breakpointSm && (v.getState().setPopoverVisibility(!0), this.modalElement || (this.modalElement = document.createElement("searchcraft-popover-form"), this.modalElement.config = this.config, this.modalElement.popoverResultMappings = this.popoverResultMappings, this.modalElement.setAttribute("type", "fullscreen"), document.body.appendChild(this.modalElement)));
2851
+ }
2852
+ handleModalBackdropClick(t) {
2853
+ v.getState().setPopoverVisibility(!1);
2854
+ }
2855
+ /**
2856
+ * When a hotkey is pressed, tests if the modifiers also match.
2857
+ * If modifiers match, toggles visibility of the popover modal.
2858
+ */
2859
+ handleHotkeyPressed(t) {
2860
+ if (t.ctrlKey && this.hotkeyModifier === "ctrl" || t.altKey && this.hotkeyModifier === "alt" || t.metaKey && this.hotkeyModifier === "meta")
2861
+ if (t.preventDefault(), this.type === "inline" && !this.isPopoverVisibleInState) {
2862
+ const r = this.hostElement.querySelector(".searchcraft-input");
2863
+ r == null || r.focus();
2864
+ } else
2865
+ v.getState().setPopoverVisibility(!this.isPopoverVisibleInState);
2866
+ }
2867
+ handleCancelButtonClick() {
2868
+ v.getState().setPopoverVisibility(!1);
2869
+ }
2870
+ /**
2871
+ * Moves focus to the next/previous list item in the list view. If you are at the top
2872
+ * of the list view, it moves focus back to the input.
2873
+ *
2874
+ * @param direction
2875
+ */
2876
+ focusOnNextListItem(t) {
2877
+ var r, s;
2878
+ const c = Array.from(document.querySelectorAll("a.searchcraft-popover-list-item")).filter((n) => !n.hasAttribute("disabled") && n.offsetParent !== null), a = c.indexOf(document.activeElement);
2879
+ if (t === "ArrowDown")
2880
+ (r = c[(a + 1) % c.length]) === null || r === void 0 || r.focus();
2881
+ else if (t === "ArrowUp")
2882
+ if (a >= 1)
2883
+ (s = c[a - 1]) === null || s === void 0 || s.focus();
2884
+ else {
2885
+ const n = document.querySelector(".searchcraft-input");
2886
+ n && (n.focus(), requestAnimationFrame(() => {
2887
+ n.selectionEnd = n.value.length, n.selectionStart = n.value.length;
2888
+ }));
2889
+ }
2890
+ }
2891
+ get hasResultsToShow() {
2892
+ var t, r, s, c, a;
2893
+ return ((r = (t = this.searchTerm) === null || t === void 0 ? void 0 : t.trim()) === null || r === void 0 ? void 0 : r.length) > 0 && ((a = (c = (s = this.searchResults) === null || s === void 0 ? void 0 : s.data) === null || c === void 0 ? void 0 : c.hits) === null || a === void 0 ? void 0 : a.length) > 0;
2894
+ }
2895
+ renderInlinePopover(t) {
2896
+ const r = this.hasResultsToShow && this.isFocused, s = x("searchcraft-popover-form searchcraft-popover-form-inline", {
2897
+ "searchcraft-popover-form-active": r
2898
+ });
2899
+ return d("div", { class: s }, d("searchcraft-input-form", { config: this.config, onInputFocus: this.handleInputFocus.bind(this) }), r && d("div", { class: "searchcraft-popover-inline-wrapper-outer" }, d("div", { class: "searchcraft-popover-inline-wrapper-inner" }, d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, documents: t }))));
2900
+ }
2901
+ renderModalPopover(t) {
2902
+ if (this.isPopoverVisibleInState) {
2903
+ const r = x("searchcraft-popover-form", {
2904
+ "searchcraft-popover-form-active": this.hasResultsToShow
2905
+ });
2906
+ return d("div", { class: "searchcraft-popover-form-modal" }, d("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), d("div", { class: "searchcraft-popover-form-modal-inner" }, d("div", { class: r }, d("div", { class: "searchcraft-popover-form-input-wrapper" }, d("searchcraft-input-form", { config: this.config, onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), d("button", { type: "button", class: "searchcraft-popover-form-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), this.hasResultsToShow && d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, documents: t }))));
2907
+ }
2908
+ }
2909
+ renderFullscreenPopover(t) {
2910
+ if (this.isPopoverVisibleInState)
2911
+ return d("div", { class: "searchcraft-popover-form-fullscreen" }, d("div", { class: "searchcraft-popover-form" }, d("div", { class: "searchcraft-popover-form-input-wrapper" }, d("searchcraft-input-form", { config: this.config, onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), d("button", { type: "button", class: "searchcraft-popover-form-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), this.hasResultsToShow && d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, documents: t })));
2912
+ }
2913
+ render() {
2914
+ var t, r, s;
2915
+ const c = (s = (r = (t = this.searchResults) === null || t === void 0 ? void 0 : t.data) === null || r === void 0 ? void 0 : r.hits) === null || s === void 0 ? void 0 : s.map((a, n) => {
2916
+ const { doc: i } = a;
2917
+ return i;
2918
+ });
2919
+ switch (this.type) {
2920
+ case "inline":
2921
+ return this.renderInlinePopover(c);
2922
+ case "modal":
2923
+ return this.renderModalPopover(c);
2924
+ case "fullscreen":
2925
+ return this.renderFullscreenPopover(c);
2926
+ }
2927
+ }
2928
+ get hostElement() {
2929
+ return this;
2930
+ }
2931
+ static get style() {
2932
+ return oa;
2933
+ }
2934
+ }, [0, "searchcraft-popover-form", {
2935
+ config: [16],
2936
+ type: [1],
2937
+ popoverResultMappings: [16],
2938
+ hotkey: [1],
2939
+ hotkeyModifier: [1, "hotkey-modifier"],
2940
+ isPopoverVisibleInState: [32],
2941
+ unsubscribe: [32],
2942
+ searchResults: [32],
2943
+ searchTerm: [32],
2944
+ isFocused: [32],
2945
+ breakpointSm: [32],
2946
+ breakpointMd: [32],
2947
+ breakpointLg: [32],
2948
+ modalElement: [32]
2949
+ }]);
2950
+ function sr() {
2951
+ if (typeof customElements > "u")
2952
+ return;
2953
+ ["searchcraft-popover-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-form", "searchcraft-input-label", "searchcraft-popover-form", "searchcraft-popover-list-item", "searchcraft-popover-list-view"].forEach((t) => {
2954
+ switch (t) {
2955
+ case "searchcraft-popover-form":
2956
+ customElements.get(t) || customElements.define(t, rr);
2957
+ break;
2958
+ case "searchcraft-button":
2959
+ customElements.get(t) || Ie();
2960
+ break;
2961
+ case "searchcraft-error-message":
2962
+ customElements.get(t) || he();
2963
+ break;
2964
+ case "searchcraft-input-form":
2965
+ customElements.get(t) || Zt();
2966
+ break;
2967
+ case "searchcraft-input-label":
2968
+ customElements.get(t) || Me();
2969
+ break;
2970
+ case "searchcraft-popover-form":
2971
+ customElements.get(t) || sr();
2972
+ break;
2973
+ case "searchcraft-popover-list-item":
2974
+ customElements.get(t) || tr();
2975
+ break;
2976
+ case "searchcraft-popover-list-view":
2977
+ customElements.get(t) || ca();
2978
+ break;
2979
+ }
2980
+ });
2981
+ }
2982
+ const la = rr, ua = sr, da = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-results-info-container{border-bottom:1px solid var(--sc-surface-disabled);display:flex;justify-content:flex-start}.searchcraft-results-info-content{color:var(--sc-content-primary);font-family:var(--sc-font-family);font-size:18px;font-weight:600;line-height:20px;margin:0px 0 8px}@media (max-width: 768px){.searchcraft-results-info-content{margin:0;margin-bottom:8px}}", fa = da, nr = /* @__PURE__ */ k(class extends S {
2520
2983
  constructor() {
2521
2984
  super(), this.__registerHost(), this.isRequesting = !1, this.resultsCount = 0, this.responseTime = "", this.query = "";
2522
2985
  }
2523
2986
  connectedCallback() {
2524
- this.unsubscribe = _.subscribe((t) => {
2987
+ this.unsubscribe = v.subscribe((t) => {
2525
2988
  var r, s, c, a;
2526
2989
  this.isRequesting = t.isRequesting, this.resultsCount = ((s = (r = t.searchResults) === null || r === void 0 ? void 0 : r.data) === null || s === void 0 ? void 0 : s.count) || 0, this.responseTime = ((((a = (c = t.searchResults) === null || c === void 0 ? void 0 : c.data) === null || a === void 0 ? void 0 : a.time_taken) || 0) * 1e3).toFixed(2), this.query = t.query || "";
2527
2990
  });
@@ -2532,11 +2995,11 @@ const On = Yt, jn = Ln, Un = Jt, qn = Kt, Nn = ":root{--sc-input-border-radius:8
2532
2995
  render() {
2533
2996
  if (!this.query || this.resultsCount === 0)
2534
2997
  return null;
2535
- const t = Is(this.resultsCount);
2998
+ const t = Ns(this.resultsCount);
2536
2999
  return d("div", { class: "searchcraft-results-info-container" }, d("p", { class: "searchcraft-results-info-content" }, t, " results found in ", this.responseTime, "ms"));
2537
3000
  }
2538
3001
  static get style() {
2539
- return Hn;
3002
+ return fa;
2540
3003
  }
2541
3004
  }, [0, "searchcraft-results-info", {
2542
3005
  isRequesting: [32],
@@ -2544,99 +3007,99 @@ const On = Yt, jn = Ln, Un = Jt, qn = Kt, Nn = ":root{--sc-input-border-radius:8
2544
3007
  responseTime: [32],
2545
3008
  query: [32]
2546
3009
  }]);
2547
- function Vn() {
3010
+ function ha() {
2548
3011
  if (typeof customElements > "u")
2549
3012
  return;
2550
3013
  ["searchcraft-results-info"].forEach((t) => {
2551
3014
  switch (t) {
2552
3015
  case "searchcraft-results-info":
2553
- customElements.get(t) || customElements.define(t, Xt);
3016
+ customElements.get(t) || customElements.define(t, nr);
2554
3017
  break;
2555
3018
  }
2556
3019
  });
2557
3020
  }
2558
- const Wn = Xt, Gn = Vn, Qn = Ht, Jn = Vt, Kn = Wt, Yn = Gt;
3021
+ const pa = nr, ga = ha, ma = Wt, ba = Gt, ya = Yt, va = Kt;
2559
3022
  /**
2560
3023
  * @license
2561
3024
  * Copyright 2018 Google LLC
2562
3025
  * SPDX-License-Identifier: BSD-3-Clause
2563
3026
  */
2564
- const Xn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), rt = /* @__PURE__ */ new WeakMap(), st = (e, t, r, s, c) => {
3027
+ const Fa = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), it = /* @__PURE__ */ new WeakMap(), ot = (e, t, r, s, c) => {
2565
3028
  const a = c == null ? void 0 : c[t];
2566
- a === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, o, u) => {
2567
- let i = rt.get(n);
2568
- i === void 0 && rt.set(n, i = /* @__PURE__ */ new Map());
2569
- let l = i.get(o);
2570
- u !== void 0 ? l === void 0 ? (i.set(o, l = { handleEvent: u }), n.addEventListener(o, l)) : l.handleEvent = u : l !== void 0 && (i.delete(o), n.removeEventListener(o, l));
3029
+ a === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, i, u) => {
3030
+ let o = it.get(n);
3031
+ o === void 0 && it.set(n, o = /* @__PURE__ */ new Map());
3032
+ let l = o.get(i);
3033
+ u !== void 0 ? l === void 0 ? (o.set(i, l = { handleEvent: u }), n.addEventListener(i, l)) : l.handleEvent = u : l !== void 0 && (o.delete(i), n.removeEventListener(i, l));
2571
3034
  })(e, a, r);
2572
- }, Zn = ({ react: e, tagName: t, elementClass: r, events: s, displayName: c }) => {
2573
- const a = new Set(Object.keys(s ?? {})), n = e.forwardRef((o, u) => {
2574
- const i = e.useRef(/* @__PURE__ */ new Map()), l = e.useRef(null), h = {}, f = {};
2575
- for (const [g, m] of Object.entries(o)) Xn.has(g) ? h[g === "className" ? "class" : g] = m : a.has(g) || g in r.prototype ? f[g] = m : h[g] = m;
3035
+ }, xa = ({ react: e, tagName: t, elementClass: r, events: s, displayName: c }) => {
3036
+ const a = new Set(Object.keys(s ?? {})), n = e.forwardRef((i, u) => {
3037
+ const o = e.useRef(/* @__PURE__ */ new Map()), l = e.useRef(null), f = {}, h = {};
3038
+ for (const [p, m] of Object.entries(i)) Fa.has(p) ? f[p === "className" ? "class" : p] = m : a.has(p) || p in r.prototype ? h[p] = m : f[p] = m;
2576
3039
  return e.useLayoutEffect(() => {
2577
3040
  if (l.current === null) return;
2578
- const g = /* @__PURE__ */ new Map();
2579
- for (const m in f) st(l.current, m, o[m], i.current.get(m), s), i.current.delete(m), g.set(m, o[m]);
2580
- for (const [m, v] of i.current) st(l.current, m, void 0, v, s);
2581
- i.current = g;
3041
+ const p = /* @__PURE__ */ new Map();
3042
+ for (const m in h) ot(l.current, m, i[m], o.current.get(m), s), o.current.delete(m), p.set(m, i[m]);
3043
+ for (const [m, E] of o.current) ot(l.current, m, void 0, E, s);
3044
+ o.current = p;
2582
3045
  }), e.useLayoutEffect(() => {
2583
- var g;
2584
- (g = l.current) == null || g.removeAttribute("defer-hydration");
2585
- }, []), h.suppressHydrationWarning = !0, e.createElement(t, { ...h, ref: e.useCallback((g) => {
2586
- l.current = g, typeof u == "function" ? u(g) : u !== null && (u.current = g);
3046
+ var p;
3047
+ (p = l.current) == null || p.removeAttribute("defer-hydration");
3048
+ }, []), f.suppressHydrationWarning = !0, e.createElement(t, { ...f, ref: e.useCallback((p) => {
3049
+ l.current = p, typeof u == "function" ? u(p) : u !== null && (u.current = p);
2587
3050
  }, [u]) });
2588
3051
  });
2589
3052
  return n.displayName = c ?? r.name, n;
2590
- }, D = ({
3053
+ }, T = ({
2591
3054
  defineCustomElement: e,
2592
3055
  ...t
2593
- }) => (typeof e < "u" && e(), Zn(t)), ea = /* @__PURE__ */ D({
3056
+ }) => (typeof e < "u" && e(), xa(t)), Ea = /* @__PURE__ */ T({
2594
3057
  tagName: "searchcraft-base-search-result",
2595
- elementClass: Ms,
3058
+ elementClass: Hs,
2596
3059
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2597
- react: P,
3060
+ react: z,
2598
3061
  events: {},
2599
- defineCustomElement: Ds
2600
- }), ta = /* @__PURE__ */ D({
3062
+ defineCustomElement: qs
3063
+ }), wa = /* @__PURE__ */ T({
2601
3064
  tagName: "searchcraft-base-search-results",
2602
- elementClass: Ws,
3065
+ elementClass: Zs,
2603
3066
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2604
- react: P,
3067
+ react: z,
2605
3068
  events: { onNoResults: "noResults" },
2606
- defineCustomElement: Gs
2607
- }), ra = /* @__PURE__ */ D({
3069
+ defineCustomElement: en
3070
+ }), $a = /* @__PURE__ */ T({
2608
3071
  tagName: "searchcraft-button",
2609
- elementClass: Ks,
3072
+ elementClass: sn,
2610
3073
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2611
- react: P,
3074
+ react: z,
2612
3075
  events: { onButtonClick: "buttonClick" },
2613
- defineCustomElement: Ys
2614
- }), sa = /* @__PURE__ */ D({
3076
+ defineCustomElement: nn
3077
+ }), Ca = /* @__PURE__ */ T({
2615
3078
  tagName: "searchcraft-error-message",
2616
- elementClass: Xs,
3079
+ elementClass: an,
2617
3080
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2618
- react: P,
3081
+ react: z,
2619
3082
  events: {},
2620
- defineCustomElement: Zs
2621
- }), na = /* @__PURE__ */ D({
3083
+ defineCustomElement: cn
3084
+ }), Sa = /* @__PURE__ */ T({
2622
3085
  tagName: "searchcraft-facet-list",
2623
- elementClass: cn,
3086
+ elementClass: pn,
2624
3087
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2625
- react: P,
3088
+ react: z,
2626
3089
  events: { onFacetSelectionUpdated: "facetSelectionUpdated" },
2627
- defineCustomElement: on
2628
- }), aa = /* @__PURE__ */ D({
3090
+ defineCustomElement: gn
3091
+ }), ka = /* @__PURE__ */ T({
2629
3092
  tagName: "searchcraft-filter-panel",
2630
- elementClass: mn,
3093
+ elementClass: wn,
2631
3094
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2632
- react: P,
3095
+ react: z,
2633
3096
  events: {},
2634
- defineCustomElement: bn
2635
- }), ca = /* @__PURE__ */ D({
3097
+ defineCustomElement: $n
3098
+ }), Ra = /* @__PURE__ */ T({
2636
3099
  tagName: "searchcraft-input-form",
2637
- elementClass: On,
3100
+ elementClass: Vn,
2638
3101
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2639
- react: P,
3102
+ react: z,
2640
3103
  events: {
2641
3104
  onInputCleared: "inputCleared",
2642
3105
  onNoResultsReceived: "noResultsReceived",
@@ -2645,47 +3108,63 @@ const Xn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
2645
3108
  onInputInit: "inputInit",
2646
3109
  onQuerySubmit: "querySubmit"
2647
3110
  },
2648
- defineCustomElement: jn
2649
- }), ia = /* @__PURE__ */ D({
3111
+ defineCustomElement: Wn
3112
+ }), _a = /* @__PURE__ */ T({
2650
3113
  tagName: "searchcraft-input-label",
2651
- elementClass: Un,
3114
+ elementClass: Gn,
3115
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
3116
+ react: z,
3117
+ events: {},
3118
+ defineCustomElement: Yn
3119
+ }), za = /* @__PURE__ */ T({
3120
+ tagName: "searchcraft-popover-button",
3121
+ elementClass: Xn,
3122
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
3123
+ react: z,
3124
+ events: {},
3125
+ defineCustomElement: Zn
3126
+ }), Ta = /* @__PURE__ */ T({
3127
+ tagName: "searchcraft-popover-form",
3128
+ elementClass: la,
2652
3129
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2653
- react: P,
3130
+ react: z,
2654
3131
  events: {},
2655
- defineCustomElement: qn
2656
- }), oa = /* @__PURE__ */ D({
3132
+ defineCustomElement: ua
3133
+ }), Pa = /* @__PURE__ */ T({
2657
3134
  tagName: "searchcraft-results-info",
2658
- elementClass: Wn,
3135
+ elementClass: pa,
2659
3136
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2660
- react: P,
3137
+ react: z,
2661
3138
  events: {},
2662
- defineCustomElement: Gn
2663
- }), la = /* @__PURE__ */ D({
3139
+ defineCustomElement: ga
3140
+ }), Aa = /* @__PURE__ */ T({
2664
3141
  tagName: "searchcraft-slider",
2665
- elementClass: Qn,
3142
+ elementClass: ma,
2666
3143
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2667
- react: P,
3144
+ react: z,
2668
3145
  events: { onRangeChanged: "rangeChanged" },
2669
- defineCustomElement: Jn
2670
- }), ua = /* @__PURE__ */ D({
3146
+ defineCustomElement: ba
3147
+ }), Da = /* @__PURE__ */ T({
2671
3148
  tagName: "searchcraft-toggle-button",
2672
- elementClass: Kn,
3149
+ elementClass: ya,
2673
3150
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2674
- react: P,
3151
+ react: z,
2675
3152
  events: { onToggleUpdated: "toggleUpdated" },
2676
- defineCustomElement: Yn
2677
- }), Sa = (e) => /* @__PURE__ */ A(ea, { ...e }), wa = (e) => /* @__PURE__ */ A(ta, { ...e }), Ca = (e) => /* @__PURE__ */ A(ra, { ...e }), ka = (e) => /* @__PURE__ */ A(sa, { ...e }), Ra = (e) => /* @__PURE__ */ A(na, { ...e }), za = (e) => /* @__PURE__ */ A(aa, { ...e }), Ta = (e) => /* @__PURE__ */ A(ca, { ...e }), _a = (e) => /* @__PURE__ */ A(ia, { ...e }), Aa = (e) => /* @__PURE__ */ A(oa, { ...e }), Pa = (e) => /* @__PURE__ */ A(la, { ...e }), Ba = (e) => /* @__PURE__ */ A(ua, { ...e });
3153
+ defineCustomElement: va
3154
+ }), Xa = (e) => /* @__PURE__ */ _(Ea, { ...e }), Za = (e) => /* @__PURE__ */ _(wa, { ...e }), ec = (e) => /* @__PURE__ */ _($a, { ...e }), tc = (e) => /* @__PURE__ */ _(Ca, { ...e }), rc = (e) => /* @__PURE__ */ _(Sa, { ...e }), sc = (e) => /* @__PURE__ */ _(ka, { ...e }), nc = (e) => /* @__PURE__ */ _(Ra, { ...e }), ac = (e) => /* @__PURE__ */ _(_a, { ...e }), cc = (e) => /* @__PURE__ */ _(za, { ...e }), ic = (e) => /* @__PURE__ */ _(Ta, { ...e }), oc = (e) => /* @__PURE__ */ _(Pa, { ...e }), lc = (e) => /* @__PURE__ */ _(Aa, { ...e }), uc = (e) => /* @__PURE__ */ _(Da, { ...e });
2678
3155
  export {
2679
- Sa as SearchcraftBaseSearchResult,
2680
- wa as SearchcraftBaseSearchResults,
2681
- Ca as SearchcraftButton,
2682
- ka as SearchcraftErrorMessage,
2683
- Ra as SearchcraftFacetList,
2684
- za as SearchcraftFilterPanel,
2685
- Ta as SearchcraftInputForm,
2686
- _a as SearchcraftInputLabel,
2687
- Aa as SearchcraftResultsInfo,
2688
- Pa as SearchcraftSlider,
2689
- Ba as SearchcraftToggleButton
3156
+ Xa as SearchcraftBaseSearchResult,
3157
+ Za as SearchcraftBaseSearchResults,
3158
+ ec as SearchcraftButton,
3159
+ tc as SearchcraftErrorMessage,
3160
+ rc as SearchcraftFacetList,
3161
+ sc as SearchcraftFilterPanel,
3162
+ nc as SearchcraftInputForm,
3163
+ ac as SearchcraftInputLabel,
3164
+ cc as SearchcraftPopoverButton,
3165
+ ic as SearchcraftPopoverForm,
3166
+ oc as SearchcraftResultsInfo,
3167
+ lc as SearchcraftSlider,
3168
+ uc as SearchcraftToggleButton
2690
3169
  };
2691
3170
  //# sourceMappingURL=index.js.map