@cartbot/plate-search 2.0.14 → 3.0.4

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.
@@ -0,0 +1,2432 @@
1
+ var Xe, k, ho, _e, Mr, fo, mo, _o, Yt, Zt, Ft, go, Ye = {}, vo = [], kn = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ke = Array.isArray;
2
+ function ae(e, t) {
3
+ for (var r in t) e[r] = t[r];
4
+ return e;
5
+ }
6
+ function qt(e) {
7
+ e && e.parentNode && e.parentNode.removeChild(e);
8
+ }
9
+ function p(e, t, r) {
10
+ var o, n, i, l = {};
11
+ for (i in t) i == "key" ? o = t[i] : i == "ref" ? n = t[i] : l[i] = t[i];
12
+ if (arguments.length > 2 && (l.children = arguments.length > 3 ? Xe.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) l[i] === void 0 && (l[i] = e.defaultProps[i]);
13
+ return Be(e, l, o, n, null);
14
+ }
15
+ function Be(e, t, r, o, n) {
16
+ var i = { type: e, props: t, key: r, ref: o, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: n ?? ++ho, __i: -1, __u: 0 };
17
+ return n == null && k.vnode != null && k.vnode(i), i;
18
+ }
19
+ function wo() {
20
+ return { current: null };
21
+ }
22
+ function y(e) {
23
+ return e.children;
24
+ }
25
+ function re(e, t) {
26
+ this.props = e, this.context = t;
27
+ }
28
+ function Le(e, t) {
29
+ if (t == null) return e.__ ? Le(e.__, e.__i + 1) : null;
30
+ for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
31
+ return typeof e.type == "function" ? Le(e) : null;
32
+ }
33
+ function bo(e) {
34
+ var t, r;
35
+ if ((e = e.__) != null && e.__c != null) {
36
+ for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) {
37
+ e.__e = e.__c.base = r.__e;
38
+ break;
39
+ }
40
+ return bo(e);
41
+ }
42
+ }
43
+ function Vt(e) {
44
+ (!e.__d && (e.__d = !0) && _e.push(e) && !ft.__r++ || Mr != k.debounceRendering) && ((Mr = k.debounceRendering) || fo)(ft);
45
+ }
46
+ function ft() {
47
+ for (var e, t, r, o, n, i, l, d = 1; _e.length; ) _e.length > d && _e.sort(mo), e = _e.shift(), d = _e.length, e.__d && (r = void 0, n = (o = (t = e).__v).__e, i = [], l = [], t.__P && ((r = ae({}, o)).__v = o.__v + 1, k.vnode && k.vnode(r), Xt(t.__P, r, o, t.__n, t.__P.namespaceURI, 32 & o.__u ? [n] : null, i, n ?? Le(o), !!(32 & o.__u), l), r.__v = o.__v, r.__.__k[r.__i] = r, ko(i, r, l), r.__e != n && bo(r)));
48
+ ft.__r = 0;
49
+ }
50
+ function yo(e, t, r, o, n, i, l, d, h, s, m) {
51
+ var c, b, _, A, R, S, E = o && o.__k || vo, C = t.length;
52
+ for (h = An(r, t, E, h, C), c = 0; c < C; c++) (_ = r.__k[c]) != null && (b = _.__i == -1 ? Ye : E[_.__i] || Ye, _.__i = c, S = Xt(e, _, b, n, i, l, d, h, s, m), A = _.__e, _.ref && b.ref != _.ref && (b.ref && Kt(b.ref, null, _), m.push(_.ref, _.__c || A, _)), R == null && A != null && (R = A), 4 & _.__u || b.__k === _.__k ? h = xo(_, h, e) : typeof _.type == "function" && S !== void 0 ? h = S : A && (h = A.nextSibling), _.__u &= -7);
53
+ return r.__e = R, h;
54
+ }
55
+ function An(e, t, r, o, n) {
56
+ var i, l, d, h, s, m = r.length, c = m, b = 0;
57
+ for (e.__k = new Array(n), i = 0; i < n; i++) (l = t[i]) != null && typeof l != "boolean" && typeof l != "function" ? (h = i + b, (l = e.__k[i] = typeof l == "string" || typeof l == "number" || typeof l == "bigint" || l.constructor == String ? Be(null, l, null, null, null) : Ke(l) ? Be(y, { children: l }, null, null, null) : l.constructor == null && l.__b > 0 ? Be(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) : l).__ = e, l.__b = e.__b + 1, d = null, (s = l.__i = Tn(l, r, h, c)) != -1 && (c--, (d = r[s]) && (d.__u |= 2)), d == null || d.__v == null ? (s == -1 && (n > m ? b-- : n < m && b++), typeof l.type != "function" && (l.__u |= 4)) : s != h && (s == h - 1 ? b-- : s == h + 1 ? b++ : (s > h ? b-- : b++, l.__u |= 4))) : e.__k[i] = null;
58
+ if (c) for (i = 0; i < m; i++) (d = r[i]) != null && !(2 & d.__u) && (d.__e == o && (o = Le(d)), To(d, d));
59
+ return o;
60
+ }
61
+ function xo(e, t, r) {
62
+ var o, n;
63
+ if (typeof e.type == "function") {
64
+ for (o = e.__k, n = 0; o && n < o.length; n++) o[n] && (o[n].__ = e, t = xo(o[n], t, r));
65
+ return t;
66
+ }
67
+ e.__e != t && (t && e.type && !r.contains(t) && (t = Le(e)), r.insertBefore(e.__e, t || null), t = e.__e);
68
+ do
69
+ t = t && t.nextSibling;
70
+ while (t != null && t.nodeType == 8);
71
+ return t;
72
+ }
73
+ function ue(e, t) {
74
+ return t = t || [], e == null || typeof e == "boolean" || (Ke(e) ? e.some(function(r) {
75
+ ue(r, t);
76
+ }) : t.push(e)), t;
77
+ }
78
+ function Tn(e, t, r, o) {
79
+ var n, i, l = e.key, d = e.type, h = t[r];
80
+ if (h === null && e.key == null || h && l == h.key && d == h.type && !(2 & h.__u)) return r;
81
+ if (o > (h != null && !(2 & h.__u) ? 1 : 0)) for (n = r - 1, i = r + 1; n >= 0 || i < t.length; ) {
82
+ if (n >= 0) {
83
+ if ((h = t[n]) && !(2 & h.__u) && l == h.key && d == h.type) return n;
84
+ n--;
85
+ }
86
+ if (i < t.length) {
87
+ if ((h = t[i]) && !(2 & h.__u) && l == h.key && d == h.type) return i;
88
+ i++;
89
+ }
90
+ }
91
+ return -1;
92
+ }
93
+ function Rr(e, t, r) {
94
+ t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || kn.test(t) ? r : r + "px";
95
+ }
96
+ function ct(e, t, r, o, n) {
97
+ var i, l;
98
+ e: if (t == "style") if (typeof r == "string") e.style.cssText = r;
99
+ else {
100
+ if (typeof o == "string" && (e.style.cssText = o = ""), o) for (t in o) r && t in r || Rr(e.style, t, "");
101
+ if (r) for (t in r) o && r[t] == o[t] || Rr(e.style, t, r[t]);
102
+ }
103
+ else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(_o, "$1")), l = t.toLowerCase(), t = l in e || t == "onFocusOut" || t == "onFocusIn" ? l.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = r, r ? o ? r.u = o.u : (r.u = Yt, e.addEventListener(t, i ? Ft : Zt, i)) : e.removeEventListener(t, i ? Ft : Zt, i);
104
+ else {
105
+ if (n == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
106
+ else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
107
+ e[t] = r ?? "";
108
+ break e;
109
+ } catch {
110
+ }
111
+ typeof r == "function" || (r == null || r === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
112
+ }
113
+ }
114
+ function Hr(e) {
115
+ return function(t) {
116
+ if (this.l) {
117
+ var r = this.l[t.type + e];
118
+ if (t.t == null) t.t = Yt++;
119
+ else if (t.t < r.u) return;
120
+ return r(k.event ? k.event(t) : t);
121
+ }
122
+ };
123
+ }
124
+ function Xt(e, t, r, o, n, i, l, d, h, s) {
125
+ var m, c, b, _, A, R, S, E, C, B, N, Y, X, we, oe, ie, fe, L = t.type;
126
+ if (t.constructor != null) return null;
127
+ 128 & r.__u && (h = !!(32 & r.__u), i = [d = t.__e = r.__e]), (m = k.__b) && m(t);
128
+ e: if (typeof L == "function") try {
129
+ if (E = t.props, C = "prototype" in L && L.prototype.render, B = (m = L.contextType) && o[m.__c], N = m ? B ? B.props.value : m.__ : o, r.__c ? S = (c = t.__c = r.__c).__ = c.__E : (C ? t.__c = c = new L(E, N) : (t.__c = c = new re(E, N), c.constructor = L, c.render = Sn), B && B.sub(c), c.props = E, c.state || (c.state = {}), c.context = N, c.__n = o, b = c.__d = !0, c.__h = [], c._sb = []), C && c.__s == null && (c.__s = c.state), C && L.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = ae({}, c.__s)), ae(c.__s, L.getDerivedStateFromProps(E, c.__s))), _ = c.props, A = c.state, c.__v = t, b) C && L.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), C && c.componentDidMount != null && c.__h.push(c.componentDidMount);
130
+ else {
131
+ if (C && L.getDerivedStateFromProps == null && E !== _ && c.componentWillReceiveProps != null && c.componentWillReceiveProps(E, N), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(E, c.__s, N) === !1 || t.__v == r.__v) {
132
+ for (t.__v != r.__v && (c.props = E, c.state = c.__s, c.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.some(function(K) {
133
+ K && (K.__ = t);
134
+ }), Y = 0; Y < c._sb.length; Y++) c.__h.push(c._sb[Y]);
135
+ c._sb = [], c.__h.length && l.push(c);
136
+ break e;
137
+ }
138
+ c.componentWillUpdate != null && c.componentWillUpdate(E, c.__s, N), C && c.componentDidUpdate != null && c.__h.push(function() {
139
+ c.componentDidUpdate(_, A, R);
140
+ });
141
+ }
142
+ if (c.context = N, c.props = E, c.__P = e, c.__e = !1, X = k.__r, we = 0, C) {
143
+ for (c.state = c.__s, c.__d = !1, X && X(t), m = c.render(c.props, c.state, c.context), oe = 0; oe < c._sb.length; oe++) c.__h.push(c._sb[oe]);
144
+ c._sb = [];
145
+ } else do
146
+ c.__d = !1, X && X(t), m = c.render(c.props, c.state, c.context), c.state = c.__s;
147
+ while (c.__d && ++we < 25);
148
+ c.state = c.__s, c.getChildContext != null && (o = ae(ae({}, o), c.getChildContext())), C && !b && c.getSnapshotBeforeUpdate != null && (R = c.getSnapshotBeforeUpdate(_, A)), ie = m, m != null && m.type === y && m.key == null && (ie = Ao(m.props.children)), d = yo(e, Ke(ie) ? ie : [ie], t, r, o, n, i, l, d, h, s), c.base = t.__e, t.__u &= -161, c.__h.length && l.push(c), S && (c.__E = c.__ = null);
149
+ } catch (K) {
150
+ if (t.__v = null, h || i != null) if (K.then) {
151
+ for (t.__u |= h ? 160 : 128; d && d.nodeType == 8 && d.nextSibling; ) d = d.nextSibling;
152
+ i[i.indexOf(d)] = null, t.__e = d;
153
+ } else for (fe = i.length; fe--; ) qt(i[fe]);
154
+ else t.__e = r.__e, t.__k = r.__k;
155
+ k.__e(K, t, r);
156
+ }
157
+ else i == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : d = t.__e = En(r.__e, t, r, o, n, i, l, h, s);
158
+ return (m = k.diffed) && m(t), 128 & t.__u ? void 0 : d;
159
+ }
160
+ function ko(e, t, r) {
161
+ for (var o = 0; o < r.length; o++) Kt(r[o], r[++o], r[++o]);
162
+ k.__c && k.__c(t, e), e.some(function(n) {
163
+ try {
164
+ e = n.__h, n.__h = [], e.some(function(i) {
165
+ i.call(n);
166
+ });
167
+ } catch (i) {
168
+ k.__e(i, n.__v);
169
+ }
170
+ });
171
+ }
172
+ function Ao(e) {
173
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ke(e) ? e.map(Ao) : ae({}, e);
174
+ }
175
+ function En(e, t, r, o, n, i, l, d, h) {
176
+ var s, m, c, b, _, A, R, S = r.props, E = t.props, C = t.type;
177
+ if (C == "svg" ? n = "http://www.w3.org/2000/svg" : C == "math" ? n = "http://www.w3.org/1998/Math/MathML" : n || (n = "http://www.w3.org/1999/xhtml"), i != null) {
178
+ for (s = 0; s < i.length; s++) if ((_ = i[s]) && "setAttribute" in _ == !!C && (C ? _.localName == C : _.nodeType == 3)) {
179
+ e = _, i[s] = null;
180
+ break;
181
+ }
182
+ }
183
+ if (e == null) {
184
+ if (C == null) return document.createTextNode(E);
185
+ e = document.createElementNS(n, C, E.is && E), d && (k.__m && k.__m(t, i), d = !1), i = null;
186
+ }
187
+ if (C == null) S === E || d && e.data == E || (e.data = E);
188
+ else {
189
+ if (i = i && Xe.call(e.childNodes), S = r.props || Ye, !d && i != null) for (S = {}, s = 0; s < e.attributes.length; s++) S[(_ = e.attributes[s]).name] = _.value;
190
+ for (s in S) if (_ = S[s], s != "children") {
191
+ if (s == "dangerouslySetInnerHTML") c = _;
192
+ else if (!(s in E)) {
193
+ if (s == "value" && "defaultValue" in E || s == "checked" && "defaultChecked" in E) continue;
194
+ ct(e, s, null, _, n);
195
+ }
196
+ }
197
+ for (s in E) _ = E[s], s == "children" ? b = _ : s == "dangerouslySetInnerHTML" ? m = _ : s == "value" ? A = _ : s == "checked" ? R = _ : d && typeof _ != "function" || S[s] === _ || ct(e, s, _, S[s], n);
198
+ if (m) d || c && (m.__html == c.__html || m.__html == e.innerHTML) || (e.innerHTML = m.__html), t.__k = [];
199
+ else if (c && (e.innerHTML = ""), yo(t.type == "template" ? e.content : e, Ke(b) ? b : [b], t, r, o, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, i, l, i ? i[0] : r.__k && Le(r, 0), d, h), i != null) for (s = i.length; s--; ) qt(i[s]);
200
+ d || (s = "value", C == "progress" && A == null ? e.removeAttribute("value") : A != null && (A !== e[s] || C == "progress" && !A || C == "option" && A != S[s]) && ct(e, s, A, S[s], n), s = "checked", R != null && R != e[s] && ct(e, s, R, S[s], n));
201
+ }
202
+ return e;
203
+ }
204
+ function Kt(e, t, r) {
205
+ try {
206
+ if (typeof e == "function") {
207
+ var o = typeof e.__u == "function";
208
+ o && e.__u(), o && t == null || (e.__u = e(t));
209
+ } else e.current = t;
210
+ } catch (n) {
211
+ k.__e(n, r);
212
+ }
213
+ }
214
+ function To(e, t, r) {
215
+ var o, n;
216
+ if (k.unmount && k.unmount(e), (o = e.ref) && (o.current && o.current != e.__e || Kt(o, null, t)), (o = e.__c) != null) {
217
+ if (o.componentWillUnmount) try {
218
+ o.componentWillUnmount();
219
+ } catch (i) {
220
+ k.__e(i, t);
221
+ }
222
+ o.base = o.__P = null;
223
+ }
224
+ if (o = e.__k) for (n = 0; n < o.length; n++) o[n] && To(o[n], t, r || typeof e.type != "function");
225
+ r || qt(e.__e), e.__c = e.__ = e.__e = void 0;
226
+ }
227
+ function Sn(e, t, r) {
228
+ return this.constructor(e, r);
229
+ }
230
+ function qe(e, t, r) {
231
+ var o, n, i, l;
232
+ t == document && (t = document.documentElement), k.__ && k.__(e, t), n = (o = typeof r == "function") ? null : r && r.__k || t.__k, i = [], l = [], Xt(t, e = (!o && r || t).__k = p(y, null, [e]), n || Ye, Ye, t.namespaceURI, !o && r ? [r] : n ? null : t.firstChild ? Xe.call(t.childNodes) : null, i, !o && r ? r : n ? n.__e : t.firstChild, o, l), ko(i, e, l);
233
+ }
234
+ function Eo(e, t) {
235
+ qe(e, t, Eo);
236
+ }
237
+ function Cn(e, t, r) {
238
+ var o, n, i, l, d = ae({}, e.props);
239
+ for (i in e.type && e.type.defaultProps && (l = e.type.defaultProps), t) i == "key" ? o = t[i] : i == "ref" ? n = t[i] : d[i] = t[i] === void 0 && l != null ? l[i] : t[i];
240
+ return arguments.length > 2 && (d.children = arguments.length > 3 ? Xe.call(arguments, 2) : r), Be(e.type, d, o || e.key, n || e.ref, null);
241
+ }
242
+ function Jt(e) {
243
+ function t(r) {
244
+ var o, n;
245
+ return this.getChildContext || (o = /* @__PURE__ */ new Set(), (n = {})[t.__c] = this, this.getChildContext = function() {
246
+ return n;
247
+ }, this.componentWillUnmount = function() {
248
+ o = null;
249
+ }, this.shouldComponentUpdate = function(i) {
250
+ this.props.value != i.value && o.forEach(function(l) {
251
+ l.__e = !0, Vt(l);
252
+ });
253
+ }, this.sub = function(i) {
254
+ o.add(i);
255
+ var l = i.componentWillUnmount;
256
+ i.componentWillUnmount = function() {
257
+ o && o.delete(i), l && l.call(i);
258
+ };
259
+ }), r.children;
260
+ }
261
+ return t.__c = "__cC" + go++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(r, o) {
262
+ return r.children(o);
263
+ }).contextType = t, t;
264
+ }
265
+ Xe = vo.slice, k = { __e: function(e, t, r, o) {
266
+ for (var n, i, l; t = t.__; ) if ((n = t.__c) && !n.__) try {
267
+ if ((i = n.constructor) && i.getDerivedStateFromError != null && (n.setState(i.getDerivedStateFromError(e)), l = n.__d), n.componentDidCatch != null && (n.componentDidCatch(e, o || {}), l = n.__d), l) return n.__E = n;
268
+ } catch (d) {
269
+ e = d;
270
+ }
271
+ throw e;
272
+ } }, ho = 0, re.prototype.setState = function(e, t) {
273
+ var r;
274
+ r = this.__s != null && this.__s != this.state ? this.__s : this.__s = ae({}, this.state), typeof e == "function" && (e = e(ae({}, r), this.props)), e && ae(r, e), e != null && this.__v && (t && this._sb.push(t), Vt(this));
275
+ }, re.prototype.forceUpdate = function(e) {
276
+ this.__v && (this.__e = !0, e && this.__h.push(e), Vt(this));
277
+ }, re.prototype.render = y, _e = [], fo = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mo = function(e, t) {
278
+ return e.__v.__b - t.__v.__b;
279
+ }, ft.__r = 0, _o = /(PointerCapture)$|Capture$/i, Yt = 0, Zt = Hr(!1), Ft = Hr(!0), go = 0;
280
+ var pe, H, Ht, Ir, Me = 0, So = [], D = k, Or = D.__b, Pr = D.__r, Dr = D.diffed, Ur = D.__c, zr = D.unmount, $r = D.__;
281
+ function ge(e, t) {
282
+ D.__h && D.__h(H, e, Me || t), Me = 0;
283
+ var r = H.__H || (H.__H = { __: [], __h: [] });
284
+ return e >= r.__.length && r.__.push({}), r.__[e];
285
+ }
286
+ function q(e) {
287
+ return Me = 1, vt(Co, e);
288
+ }
289
+ function vt(e, t, r) {
290
+ var o = ge(pe++, 2);
291
+ if (o.t = e, !o.__c && (o.__ = [r ? r(t) : Co(void 0, t), function(d) {
292
+ var h = o.__N ? o.__N[0] : o.__[0], s = o.t(h, d);
293
+ h !== s && (o.__N = [s, o.__[1]], o.__c.setState({}));
294
+ }], o.__c = H, !H.__f)) {
295
+ var n = function(d, h, s) {
296
+ if (!o.__c.__H) return !0;
297
+ var m = o.__c.__H.__.filter(function(b) {
298
+ return !!b.__c;
299
+ });
300
+ if (m.every(function(b) {
301
+ return !b.__N;
302
+ })) return !i || i.call(this, d, h, s);
303
+ var c = o.__c.props !== d;
304
+ return m.forEach(function(b) {
305
+ if (b.__N) {
306
+ var _ = b.__[0];
307
+ b.__ = b.__N, b.__N = void 0, _ !== b.__[0] && (c = !0);
308
+ }
309
+ }), i && i.call(this, d, h, s) || c;
310
+ };
311
+ H.__f = !0;
312
+ var i = H.shouldComponentUpdate, l = H.componentWillUpdate;
313
+ H.componentWillUpdate = function(d, h, s) {
314
+ if (this.__e) {
315
+ var m = i;
316
+ i = void 0, n(d, h, s), i = m;
317
+ }
318
+ l && l.call(this, d, h, s);
319
+ }, H.shouldComponentUpdate = n;
320
+ }
321
+ return o.__N || o.__;
322
+ }
323
+ function te(e, t) {
324
+ var r = ge(pe++, 3);
325
+ !D.__s && or(r.__H, t) && (r.__ = e, r.u = t, H.__H.__h.push(r));
326
+ }
327
+ function Re(e, t) {
328
+ var r = ge(pe++, 4);
329
+ !D.__s && or(r.__H, t) && (r.__ = e, r.u = t, H.__h.push(r));
330
+ }
331
+ function wt(e) {
332
+ return Me = 5, Je(function() {
333
+ return { current: e };
334
+ }, []);
335
+ }
336
+ function Qt(e, t, r) {
337
+ Me = 6, Re(function() {
338
+ if (typeof e == "function") {
339
+ var o = e(t());
340
+ return function() {
341
+ e(null), o && typeof o == "function" && o();
342
+ };
343
+ }
344
+ if (e) return e.current = t(), function() {
345
+ return e.current = null;
346
+ };
347
+ }, r == null ? r : r.concat(e));
348
+ }
349
+ function Je(e, t) {
350
+ var r = ge(pe++, 7);
351
+ return or(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
352
+ }
353
+ function er(e, t) {
354
+ return Me = 8, Je(function() {
355
+ return e;
356
+ }, t);
357
+ }
358
+ function bt(e) {
359
+ var t = H.context[e.__c], r = ge(pe++, 9);
360
+ return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(H)), t.props.value) : e.__;
361
+ }
362
+ function tr(e, t) {
363
+ D.useDebugValue && D.useDebugValue(t ? t(e) : e);
364
+ }
365
+ function Nn(e) {
366
+ var t = ge(pe++, 10), r = q();
367
+ return t.__ = e, H.componentDidCatch || (H.componentDidCatch = function(o, n) {
368
+ t.__ && t.__(o, n), r[1](o);
369
+ }), [r[0], function() {
370
+ r[1](void 0);
371
+ }];
372
+ }
373
+ function rr() {
374
+ var e = ge(pe++, 11);
375
+ if (!e.__) {
376
+ for (var t = H.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
377
+ var r = t.__m || (t.__m = [0, 0]);
378
+ e.__ = "P" + r[0] + "-" + r[1]++;
379
+ }
380
+ return e.__;
381
+ }
382
+ function Ln() {
383
+ for (var e; e = So.shift(); ) if (e.__P && e.__H) try {
384
+ e.__H.__h.forEach(pt), e.__H.__h.forEach(jt), e.__H.__h = [];
385
+ } catch (t) {
386
+ e.__H.__h = [], D.__e(t, e.__v);
387
+ }
388
+ }
389
+ D.__b = function(e) {
390
+ H = null, Or && Or(e);
391
+ }, D.__ = function(e, t) {
392
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), $r && $r(e, t);
393
+ }, D.__r = function(e) {
394
+ Pr && Pr(e), pe = 0;
395
+ var t = (H = e.__c).__H;
396
+ t && (Ht === H ? (t.__h = [], H.__h = [], t.__.forEach(function(r) {
397
+ r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
398
+ })) : (t.__h.forEach(pt), t.__h.forEach(jt), t.__h = [], pe = 0)), Ht = H;
399
+ }, D.diffed = function(e) {
400
+ Dr && Dr(e);
401
+ var t = e.__c;
402
+ t && t.__H && (t.__H.__h.length && (So.push(t) !== 1 && Ir === D.requestAnimationFrame || ((Ir = D.requestAnimationFrame) || Mn)(Ln)), t.__H.__.forEach(function(r) {
403
+ r.u && (r.__H = r.u), r.u = void 0;
404
+ })), Ht = H = null;
405
+ }, D.__c = function(e, t) {
406
+ t.some(function(r) {
407
+ try {
408
+ r.__h.forEach(pt), r.__h = r.__h.filter(function(o) {
409
+ return !o.__ || jt(o);
410
+ });
411
+ } catch (o) {
412
+ t.some(function(n) {
413
+ n.__h && (n.__h = []);
414
+ }), t = [], D.__e(o, r.__v);
415
+ }
416
+ }), Ur && Ur(e, t);
417
+ }, D.unmount = function(e) {
418
+ zr && zr(e);
419
+ var t, r = e.__c;
420
+ r && r.__H && (r.__H.__.forEach(function(o) {
421
+ try {
422
+ pt(o);
423
+ } catch (n) {
424
+ t = n;
425
+ }
426
+ }), r.__H = void 0, t && D.__e(t, r.__v));
427
+ };
428
+ var Zr = typeof requestAnimationFrame == "function";
429
+ function Mn(e) {
430
+ var t, r = function() {
431
+ clearTimeout(o), Zr && cancelAnimationFrame(t), setTimeout(e);
432
+ }, o = setTimeout(r, 35);
433
+ Zr && (t = requestAnimationFrame(r));
434
+ }
435
+ function pt(e) {
436
+ var t = H, r = e.__c;
437
+ typeof r == "function" && (e.__c = void 0, r()), H = t;
438
+ }
439
+ function jt(e) {
440
+ var t = H;
441
+ e.__c = e.__(), H = t;
442
+ }
443
+ function or(e, t) {
444
+ return !e || e.length !== t.length || t.some(function(r, o) {
445
+ return r !== e[o];
446
+ });
447
+ }
448
+ function Co(e, t) {
449
+ return typeof t == "function" ? t(e) : t;
450
+ }
451
+ function No(e, t) {
452
+ for (var r in t) e[r] = t[r];
453
+ return e;
454
+ }
455
+ function Wt(e, t) {
456
+ for (var r in e) if (r !== "__source" && !(r in t)) return !0;
457
+ for (var o in t) if (o !== "__source" && e[o] !== t[o]) return !0;
458
+ return !1;
459
+ }
460
+ function nr(e, t) {
461
+ var r = t(), o = q({ t: { __: r, u: t } }), n = o[0].t, i = o[1];
462
+ return Re(function() {
463
+ n.__ = r, n.u = t, It(n) && i({ t: n });
464
+ }, [e, r, t]), te(function() {
465
+ return It(n) && i({ t: n }), e(function() {
466
+ It(n) && i({ t: n });
467
+ });
468
+ }, [e]), r;
469
+ }
470
+ function It(e) {
471
+ var t, r, o = e.u, n = e.__;
472
+ try {
473
+ var i = o();
474
+ return !((t = n) === (r = i) && (t !== 0 || 1 / t == 1 / r) || t != t && r != r);
475
+ } catch {
476
+ return !0;
477
+ }
478
+ }
479
+ function ar(e) {
480
+ e();
481
+ }
482
+ function ir(e) {
483
+ return e;
484
+ }
485
+ function lr() {
486
+ return [!1, ar];
487
+ }
488
+ var sr = Re;
489
+ function mt(e, t) {
490
+ this.props = e, this.context = t;
491
+ }
492
+ function Lo(e, t) {
493
+ function r(n) {
494
+ var i = this.props.ref, l = i == n.ref;
495
+ return !l && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, n) || !l : Wt(this.props, n);
496
+ }
497
+ function o(n) {
498
+ return this.shouldComponentUpdate = r, p(e, n);
499
+ }
500
+ return o.displayName = "Memo(" + (e.displayName || e.name) + ")", o.prototype.isReactComponent = !0, o.__f = !0, o;
501
+ }
502
+ (mt.prototype = new re()).isPureReactComponent = !0, mt.prototype.shouldComponentUpdate = function(e, t) {
503
+ return Wt(this.props, e) || Wt(this.state, t);
504
+ };
505
+ var Fr = k.__b;
506
+ k.__b = function(e) {
507
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Fr && Fr(e);
508
+ };
509
+ var Rn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
510
+ function he(e) {
511
+ function t(r) {
512
+ var o = No({}, r);
513
+ return delete o.ref, e(o, r.ref || null);
514
+ }
515
+ return t.$$typeof = Rn, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
516
+ }
517
+ var Vr = function(e, t) {
518
+ return e == null ? null : ue(ue(e).map(t));
519
+ }, Mo = { map: Vr, forEach: Vr, count: function(e) {
520
+ return e ? ue(e).length : 0;
521
+ }, only: function(e) {
522
+ var t = ue(e);
523
+ if (t.length !== 1) throw "Children.only";
524
+ return t[0];
525
+ }, toArray: ue }, Hn = k.__e;
526
+ k.__e = function(e, t, r, o) {
527
+ if (e.then) {
528
+ for (var n, i = t; i = i.__; ) if ((n = i.__c) && n.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), n.__c(e, t);
529
+ }
530
+ Hn(e, t, r, o);
531
+ };
532
+ var jr = k.unmount;
533
+ function Ro(e, t, r) {
534
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(o) {
535
+ typeof o.__c == "function" && o.__c();
536
+ }), e.__c.__H = null), (e = No({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(o) {
537
+ return Ro(o, t, r);
538
+ })), e;
539
+ }
540
+ function Ho(e, t, r) {
541
+ return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(o) {
542
+ return Ho(o, t, r);
543
+ }), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
544
+ }
545
+ function Ge() {
546
+ this.__u = 0, this.o = null, this.__b = null;
547
+ }
548
+ function Io(e) {
549
+ var t = e.__.__c;
550
+ return t && t.__a && t.__a(e);
551
+ }
552
+ function Oo(e) {
553
+ var t, r, o;
554
+ function n(i) {
555
+ if (t || (t = e()).then(function(l) {
556
+ r = l.default || l;
557
+ }, function(l) {
558
+ o = l;
559
+ }), o) throw o;
560
+ if (!r) throw t;
561
+ return p(r, i);
562
+ }
563
+ return n.displayName = "Lazy", n.__f = !0, n;
564
+ }
565
+ function Ce() {
566
+ this.i = null, this.l = null;
567
+ }
568
+ k.unmount = function(e) {
569
+ var t = e.__c;
570
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), jr && jr(e);
571
+ }, (Ge.prototype = new re()).__c = function(e, t) {
572
+ var r = t.__c, o = this;
573
+ o.o == null && (o.o = []), o.o.push(r);
574
+ var n = Io(o.__v), i = !1, l = function() {
575
+ i || (i = !0, r.__R = null, n ? n(d) : d());
576
+ };
577
+ r.__R = l;
578
+ var d = function() {
579
+ if (!--o.__u) {
580
+ if (o.state.__a) {
581
+ var h = o.state.__a;
582
+ o.__v.__k[0] = Ho(h, h.__c.__P, h.__c.__O);
583
+ }
584
+ var s;
585
+ for (o.setState({ __a: o.__b = null }); s = o.o.pop(); ) s.forceUpdate();
586
+ }
587
+ };
588
+ o.__u++ || 32 & t.__u || o.setState({ __a: o.__b = o.__v.__k[0] }), e.then(l, l);
589
+ }, Ge.prototype.componentWillUnmount = function() {
590
+ this.o = [];
591
+ }, Ge.prototype.render = function(e, t) {
592
+ if (this.__b) {
593
+ if (this.__v.__k) {
594
+ var r = document.createElement("div"), o = this.__v.__k[0].__c;
595
+ this.__v.__k[0] = Ro(this.__b, r, o.__O = o.__P);
596
+ }
597
+ this.__b = null;
598
+ }
599
+ var n = t.__a && p(y, null, e.fallback);
600
+ return n && (n.__u &= -33), [p(y, null, t.__a ? null : e.children), n];
601
+ };
602
+ var Wr = function(e, t, r) {
603
+ if (++r[1] === r[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (r = e.i; r; ) {
604
+ for (; r.length > 3; ) r.pop()();
605
+ if (r[1] < r[0]) break;
606
+ e.i = r = r[2];
607
+ }
608
+ };
609
+ function In(e) {
610
+ return this.getChildContext = function() {
611
+ return e.context;
612
+ }, e.children;
613
+ }
614
+ function On(e) {
615
+ var t = this, r = e.h;
616
+ if (t.componentWillUnmount = function() {
617
+ qe(null, t.v), t.v = null, t.h = null;
618
+ }, t.h && t.h !== r && t.componentWillUnmount(), !t.v) {
619
+ for (var o = t.__v; o !== null && !o.__m && o.__ !== null; ) o = o.__;
620
+ t.h = r, t.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: o.__m }, contains: function() {
621
+ return !0;
622
+ }, insertBefore: function(n, i) {
623
+ this.childNodes.push(n), t.h.insertBefore(n, i);
624
+ }, removeChild: function(n) {
625
+ this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), t.h.removeChild(n);
626
+ } };
627
+ }
628
+ qe(p(In, { context: t.context }, e.__v), t.v);
629
+ }
630
+ function Po(e, t) {
631
+ var r = p(On, { __v: e, h: t });
632
+ return r.containerInfo = t, r;
633
+ }
634
+ (Ce.prototype = new re()).__a = function(e) {
635
+ var t = this, r = Io(t.__v), o = t.l.get(e);
636
+ return o[0]++, function(n) {
637
+ var i = function() {
638
+ t.props.revealOrder ? (o.push(n), Wr(t, e, o)) : n();
639
+ };
640
+ r ? r(i) : i();
641
+ };
642
+ }, Ce.prototype.render = function(e) {
643
+ this.i = null, this.l = /* @__PURE__ */ new Map();
644
+ var t = ue(e.children);
645
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
646
+ for (var r = t.length; r--; ) this.l.set(t[r], this.i = [1, 0, this.i]);
647
+ return e.children;
648
+ }, Ce.prototype.componentDidUpdate = Ce.prototype.componentDidMount = function() {
649
+ var e = this;
650
+ this.l.forEach(function(t, r) {
651
+ Wr(e, r, t);
652
+ });
653
+ };
654
+ var Do = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Pn = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Dn = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Un = /[A-Z0-9]/g, zn = typeof document < "u", $n = function(e) {
655
+ return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
656
+ };
657
+ function _t(e, t, r) {
658
+ return t.__k == null && (t.textContent = ""), qe(e, t), typeof r == "function" && r(), e ? e.__c : null;
659
+ }
660
+ function Uo(e, t, r) {
661
+ return Eo(e, t), typeof r == "function" && r(), e ? e.__c : null;
662
+ }
663
+ re.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
664
+ Object.defineProperty(re.prototype, e, { configurable: !0, get: function() {
665
+ return this["UNSAFE_" + e];
666
+ }, set: function(t) {
667
+ Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
668
+ } });
669
+ });
670
+ var Br = k.event;
671
+ function Zn() {
672
+ }
673
+ function Fn() {
674
+ return this.cancelBubble;
675
+ }
676
+ function Vn() {
677
+ return this.defaultPrevented;
678
+ }
679
+ k.event = function(e) {
680
+ return Br && (e = Br(e)), e.persist = Zn, e.isPropagationStopped = Fn, e.isDefaultPrevented = Vn, e.nativeEvent = e;
681
+ };
682
+ var cr, jn = { enumerable: !1, configurable: !0, get: function() {
683
+ return this.class;
684
+ } }, Gr = k.vnode;
685
+ k.vnode = function(e) {
686
+ typeof e.type == "string" && function(t) {
687
+ var r = t.props, o = t.type, n = {}, i = o.indexOf("-") === -1;
688
+ for (var l in r) {
689
+ var d = r[l];
690
+ if (!(l === "value" && "defaultValue" in r && d == null || zn && l === "children" && o === "noscript" || l === "class" || l === "className")) {
691
+ var h = l.toLowerCase();
692
+ l === "defaultValue" && "value" in r && r.value == null ? l = "value" : l === "download" && d === !0 ? d = "" : h === "translate" && d === "no" ? d = !1 : h[0] === "o" && h[1] === "n" ? h === "ondoubleclick" ? l = "ondblclick" : h !== "onchange" || o !== "input" && o !== "textarea" || $n(r.type) ? h === "onfocus" ? l = "onfocusin" : h === "onblur" ? l = "onfocusout" : Dn.test(l) && (l = h) : h = l = "oninput" : i && Pn.test(l) ? l = l.replace(Un, "-$&").toLowerCase() : d === null && (d = void 0), h === "oninput" && n[l = h] && (l = "oninputCapture"), n[l] = d;
693
+ }
694
+ }
695
+ o == "select" && n.multiple && Array.isArray(n.value) && (n.value = ue(r.children).forEach(function(s) {
696
+ s.props.selected = n.value.indexOf(s.props.value) != -1;
697
+ })), o == "select" && n.defaultValue != null && (n.value = ue(r.children).forEach(function(s) {
698
+ s.props.selected = n.multiple ? n.defaultValue.indexOf(s.props.value) != -1 : n.defaultValue == s.props.value;
699
+ })), r.class && !r.className ? (n.class = r.class, Object.defineProperty(n, "className", jn)) : (r.className && !r.class || r.class && r.className) && (n.class = n.className = r.className), t.props = n;
700
+ }(e), e.$$typeof = Do, Gr && Gr(e);
701
+ };
702
+ var Yr = k.__r;
703
+ k.__r = function(e) {
704
+ Yr && Yr(e), cr = e.__c;
705
+ };
706
+ var qr = k.diffed;
707
+ k.diffed = function(e) {
708
+ qr && qr(e);
709
+ var t = e.props, r = e.__e;
710
+ r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), cr = null;
711
+ };
712
+ var zo = { ReactCurrentDispatcher: { current: { readContext: function(e) {
713
+ return cr.__n[e.__c].props.value;
714
+ }, useCallback: er, useContext: bt, useDebugValue: tr, useDeferredValue: ir, useEffect: te, useId: rr, useImperativeHandle: Qt, useInsertionEffect: sr, useLayoutEffect: Re, useMemo: Je, useReducer: vt, useRef: wt, useState: q, useSyncExternalStore: nr, useTransition: lr } } }, Wn = "18.3.1";
715
+ function $o(e) {
716
+ return p.bind(null, e);
717
+ }
718
+ function Qe(e) {
719
+ return !!e && e.$$typeof === Do;
720
+ }
721
+ function Zo(e) {
722
+ return Qe(e) && e.type === y;
723
+ }
724
+ function Fo(e) {
725
+ return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
726
+ }
727
+ function Vo(e) {
728
+ return Qe(e) ? Cn.apply(null, arguments) : e;
729
+ }
730
+ function jo(e) {
731
+ return !!e.__k && (qe(null, e), !0);
732
+ }
733
+ function Wo(e) {
734
+ return e && (e.base || e.nodeType === 1 && e) || null;
735
+ }
736
+ var Bo = function(e, t) {
737
+ return e(t);
738
+ }, Go = function(e, t) {
739
+ return e(t);
740
+ }, Yo = y, qo = Qe, gt = { useState: q, useId: rr, useReducer: vt, useEffect: te, useLayoutEffect: Re, useInsertionEffect: sr, useTransition: lr, useDeferredValue: ir, useSyncExternalStore: nr, startTransition: ar, useRef: wt, useImperativeHandle: Qt, useMemo: Je, useCallback: er, useContext: bt, useDebugValue: tr, version: "18.3.1", Children: Mo, render: _t, hydrate: Uo, unmountComponentAtNode: jo, createPortal: Po, createElement: p, createContext: Jt, createFactory: $o, cloneElement: Vo, createRef: wo, Fragment: y, isValidElement: Qe, isElement: qo, isFragment: Zo, isMemo: Fo, findDOMNode: Wo, Component: re, PureComponent: mt, memo: Lo, forwardRef: he, flushSync: Go, unstable_batchedUpdates: Bo, StrictMode: Yo, Suspense: Ge, SuspenseList: Ce, lazy: Oo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: zo };
741
+ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
742
+ __proto__: null,
743
+ Children: Mo,
744
+ Component: re,
745
+ Fragment: y,
746
+ PureComponent: mt,
747
+ StrictMode: Yo,
748
+ Suspense: Ge,
749
+ SuspenseList: Ce,
750
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: zo,
751
+ cloneElement: Vo,
752
+ createContext: Jt,
753
+ createElement: p,
754
+ createFactory: $o,
755
+ createPortal: Po,
756
+ createRef: wo,
757
+ default: gt,
758
+ findDOMNode: Wo,
759
+ flushSync: Go,
760
+ forwardRef: he,
761
+ hydrate: Uo,
762
+ isElement: qo,
763
+ isFragment: Zo,
764
+ isMemo: Fo,
765
+ isValidElement: Qe,
766
+ lazy: Oo,
767
+ memo: Lo,
768
+ render: _t,
769
+ startTransition: ar,
770
+ unmountComponentAtNode: jo,
771
+ unstable_batchedUpdates: Bo,
772
+ useCallback: er,
773
+ useContext: bt,
774
+ useDebugValue: tr,
775
+ useDeferredValue: ir,
776
+ useEffect: te,
777
+ useErrorBoundary: Nn,
778
+ useId: rr,
779
+ useImperativeHandle: Qt,
780
+ useInsertionEffect: sr,
781
+ useLayoutEffect: Re,
782
+ useMemo: Je,
783
+ useReducer: vt,
784
+ useRef: wt,
785
+ useState: q,
786
+ useSyncExternalStore: nr,
787
+ useTransition: lr,
788
+ version: Wn
789
+ }, Symbol.toStringTag, { value: "Module" }));
790
+ var Gn = 0;
791
+ function u(e, t, r, o, n, i) {
792
+ t || (t = {});
793
+ var l, d, h = t;
794
+ if ("ref" in h) for (d in h = {}, t) d == "ref" ? l = t[d] : h[d] = t[d];
795
+ var s = { type: e, props: h, key: r, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Gn, __i: -1, __u: 0, __source: n, __self: i };
796
+ if (typeof e == "function" && (l = e.defaultProps)) for (d in l) h[d] === void 0 && (h[d] = l[d]);
797
+ return k.vnode && k.vnode(s), s;
798
+ }
799
+ /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
800
+ const {
801
+ entries: Xo,
802
+ setPrototypeOf: Xr,
803
+ isFrozen: Yn,
804
+ getPrototypeOf: qn,
805
+ getOwnPropertyDescriptor: Xn
806
+ } = Object;
807
+ let {
808
+ freeze: j,
809
+ seal: J,
810
+ create: Ko
811
+ } = Object, {
812
+ apply: Bt,
813
+ construct: Gt
814
+ } = typeof Reflect < "u" && Reflect;
815
+ j || (j = function(t) {
816
+ return t;
817
+ });
818
+ J || (J = function(t) {
819
+ return t;
820
+ });
821
+ Bt || (Bt = function(t, r, o) {
822
+ return t.apply(r, o);
823
+ });
824
+ Gt || (Gt = function(t, r) {
825
+ return new t(...r);
826
+ });
827
+ const dt = W(Array.prototype.forEach), Kn = W(Array.prototype.lastIndexOf), Kr = W(Array.prototype.pop), Ze = W(Array.prototype.push), Jn = W(Array.prototype.splice), ht = W(String.prototype.toLowerCase), Ot = W(String.prototype.toString), Jr = W(String.prototype.match), Fe = W(String.prototype.replace), Qn = W(String.prototype.indexOf), ea = W(String.prototype.trim), ee = W(Object.prototype.hasOwnProperty), V = W(RegExp.prototype.test), Ve = ta(TypeError);
828
+ function W(e) {
829
+ return function(t) {
830
+ t instanceof RegExp && (t.lastIndex = 0);
831
+ for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
832
+ o[n - 1] = arguments[n];
833
+ return Bt(e, t, o);
834
+ };
835
+ }
836
+ function ta(e) {
837
+ return function() {
838
+ for (var t = arguments.length, r = new Array(t), o = 0; o < t; o++)
839
+ r[o] = arguments[o];
840
+ return Gt(e, r);
841
+ };
842
+ }
843
+ function T(e, t) {
844
+ let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ht;
845
+ Xr && Xr(e, null);
846
+ let o = t.length;
847
+ for (; o--; ) {
848
+ let n = t[o];
849
+ if (typeof n == "string") {
850
+ const i = r(n);
851
+ i !== n && (Yn(t) || (t[o] = i), n = i);
852
+ }
853
+ e[n] = !0;
854
+ }
855
+ return e;
856
+ }
857
+ function ra(e) {
858
+ for (let t = 0; t < e.length; t++)
859
+ ee(e, t) || (e[t] = null);
860
+ return e;
861
+ }
862
+ function de(e) {
863
+ const t = Ko(null);
864
+ for (const [r, o] of Xo(e))
865
+ ee(e, r) && (Array.isArray(o) ? t[r] = ra(o) : o && typeof o == "object" && o.constructor === Object ? t[r] = de(o) : t[r] = o);
866
+ return t;
867
+ }
868
+ function je(e, t) {
869
+ for (; e !== null; ) {
870
+ const o = Xn(e, t);
871
+ if (o) {
872
+ if (o.get)
873
+ return W(o.get);
874
+ if (typeof o.value == "function")
875
+ return W(o.value);
876
+ }
877
+ e = qn(e);
878
+ }
879
+ function r() {
880
+ return null;
881
+ }
882
+ return r;
883
+ }
884
+ const Qr = j(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Pt = j(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Dt = j(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), oa = j(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ut = j(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), na = j(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), eo = j(["#text"]), to = j(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), zt = j(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ro = j(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ut = j(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), aa = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ia = J(/<%[\w\W]*|[\w\W]*%>/gm), la = J(/\$\{[\w\W]*/gm), sa = J(/^data-[\-\w.\u00B7-\uFFFF]+$/), ca = J(/^aria-[\-\w]+$/), Jo = J(
885
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
886
+ // eslint-disable-line no-useless-escape
887
+ ), da = J(/^(?:\w+script|data):/i), ua = J(
888
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
889
+ // eslint-disable-line no-control-regex
890
+ ), Qo = J(/^html$/i), pa = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
891
+ var oo = /* @__PURE__ */ Object.freeze({
892
+ __proto__: null,
893
+ ARIA_ATTR: ca,
894
+ ATTR_WHITESPACE: ua,
895
+ CUSTOM_ELEMENT: pa,
896
+ DATA_ATTR: sa,
897
+ DOCTYPE_NAME: Qo,
898
+ ERB_EXPR: ia,
899
+ IS_ALLOWED_URI: Jo,
900
+ IS_SCRIPT_OR_DATA: da,
901
+ MUSTACHE_EXPR: aa,
902
+ TMPLIT_EXPR: la
903
+ });
904
+ const We = {
905
+ element: 1,
906
+ text: 3,
907
+ // Deprecated
908
+ progressingInstruction: 7,
909
+ comment: 8,
910
+ document: 9
911
+ }, ha = function() {
912
+ return typeof window > "u" ? null : window;
913
+ }, fa = function(t, r) {
914
+ if (typeof t != "object" || typeof t.createPolicy != "function")
915
+ return null;
916
+ let o = null;
917
+ const n = "data-tt-policy-suffix";
918
+ r && r.hasAttribute(n) && (o = r.getAttribute(n));
919
+ const i = "dompurify" + (o ? "#" + o : "");
920
+ try {
921
+ return t.createPolicy(i, {
922
+ createHTML(l) {
923
+ return l;
924
+ },
925
+ createScriptURL(l) {
926
+ return l;
927
+ }
928
+ });
929
+ } catch {
930
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
931
+ }
932
+ }, no = function() {
933
+ return {
934
+ afterSanitizeAttributes: [],
935
+ afterSanitizeElements: [],
936
+ afterSanitizeShadowDOM: [],
937
+ beforeSanitizeAttributes: [],
938
+ beforeSanitizeElements: [],
939
+ beforeSanitizeShadowDOM: [],
940
+ uponSanitizeAttribute: [],
941
+ uponSanitizeElement: [],
942
+ uponSanitizeShadowNode: []
943
+ };
944
+ };
945
+ function en() {
946
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ha();
947
+ const t = (v) => en(v);
948
+ if (t.version = "3.2.6", t.removed = [], !e || !e.document || e.document.nodeType !== We.document || !e.Element)
949
+ return t.isSupported = !1, t;
950
+ let {
951
+ document: r
952
+ } = e;
953
+ const o = r, n = o.currentScript, {
954
+ DocumentFragment: i,
955
+ HTMLTemplateElement: l,
956
+ Node: d,
957
+ Element: h,
958
+ NodeFilter: s,
959
+ NamedNodeMap: m = e.NamedNodeMap || e.MozNamedAttrMap,
960
+ HTMLFormElement: c,
961
+ DOMParser: b,
962
+ trustedTypes: _
963
+ } = e, A = h.prototype, R = je(A, "cloneNode"), S = je(A, "remove"), E = je(A, "nextSibling"), C = je(A, "childNodes"), B = je(A, "parentNode");
964
+ if (typeof l == "function") {
965
+ const v = r.createElement("template");
966
+ v.content && v.content.ownerDocument && (r = v.content.ownerDocument);
967
+ }
968
+ let N, Y = "";
969
+ const {
970
+ implementation: X,
971
+ createNodeIterator: we,
972
+ createDocumentFragment: oe,
973
+ getElementsByTagName: ie
974
+ } = r, {
975
+ importNode: fe
976
+ } = o;
977
+ let L = no();
978
+ t.isSupported = typeof Xo == "function" && typeof B == "function" && X && X.createHTMLDocument !== void 0;
979
+ const {
980
+ MUSTACHE_EXPR: K,
981
+ ERB_EXPR: He,
982
+ TMPLIT_EXPR: Ie,
983
+ DATA_ATTR: et,
984
+ ARIA_ATTR: tt,
985
+ IS_SCRIPT_OR_DATA: yt,
986
+ ATTR_WHITESPACE: Oe,
987
+ CUSTOM_ELEMENT: w
988
+ } = oo;
989
+ let {
990
+ IS_ALLOWED_URI: M
991
+ } = oo, x = null;
992
+ const P = T({}, [...Qr, ...Pt, ...Dt, ...Ut, ...eo]);
993
+ let U = null;
994
+ const Pe = T({}, [...to, ...zt, ...ro, ...ut]);
995
+ let I = Object.seal(Ko(null, {
996
+ tagNameCheck: {
997
+ writable: !0,
998
+ configurable: !1,
999
+ enumerable: !0,
1000
+ value: null
1001
+ },
1002
+ attributeNameCheck: {
1003
+ writable: !0,
1004
+ configurable: !1,
1005
+ enumerable: !0,
1006
+ value: null
1007
+ },
1008
+ allowCustomizedBuiltInElements: {
1009
+ writable: !0,
1010
+ configurable: !1,
1011
+ enumerable: !0,
1012
+ value: !1
1013
+ }
1014
+ })), De = null, xt = null, dr = !0, kt = !0, ur = !1, pr = !0, be = !1, rt = !0, me = !1, At = !1, Tt = !1, ye = !1, ot = !1, nt = !1, hr = !0, fr = !1;
1015
+ const mn = "user-content-";
1016
+ let Et = !0, Ue = !1, xe = {}, ke = null;
1017
+ const mr = T({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
1018
+ let _r = null;
1019
+ const gr = T({}, ["audio", "video", "img", "source", "image", "track"]);
1020
+ let St = null;
1021
+ const vr = T({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), at = "http://www.w3.org/1998/Math/MathML", it = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
1022
+ let Ae = le, Ct = !1, Nt = null;
1023
+ const _n = T({}, [at, it, le], Ot);
1024
+ let lt = T({}, ["mi", "mo", "mn", "ms", "mtext"]), st = T({}, ["annotation-xml"]);
1025
+ const gn = T({}, ["title", "style", "font", "a", "script"]);
1026
+ let ze = null;
1027
+ const vn = ["application/xhtml+xml", "text/html"], wn = "text/html";
1028
+ let $ = null, Te = null;
1029
+ const bn = r.createElement("form"), wr = function(a) {
1030
+ return a instanceof RegExp || a instanceof Function;
1031
+ }, Lt = function() {
1032
+ let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1033
+ if (!(Te && Te === a)) {
1034
+ if ((!a || typeof a != "object") && (a = {}), a = de(a), ze = // eslint-disable-next-line unicorn/prefer-includes
1035
+ vn.indexOf(a.PARSER_MEDIA_TYPE) === -1 ? wn : a.PARSER_MEDIA_TYPE, $ = ze === "application/xhtml+xml" ? Ot : ht, x = ee(a, "ALLOWED_TAGS") ? T({}, a.ALLOWED_TAGS, $) : P, U = ee(a, "ALLOWED_ATTR") ? T({}, a.ALLOWED_ATTR, $) : Pe, Nt = ee(a, "ALLOWED_NAMESPACES") ? T({}, a.ALLOWED_NAMESPACES, Ot) : _n, St = ee(a, "ADD_URI_SAFE_ATTR") ? T(de(vr), a.ADD_URI_SAFE_ATTR, $) : vr, _r = ee(a, "ADD_DATA_URI_TAGS") ? T(de(gr), a.ADD_DATA_URI_TAGS, $) : gr, ke = ee(a, "FORBID_CONTENTS") ? T({}, a.FORBID_CONTENTS, $) : mr, De = ee(a, "FORBID_TAGS") ? T({}, a.FORBID_TAGS, $) : de({}), xt = ee(a, "FORBID_ATTR") ? T({}, a.FORBID_ATTR, $) : de({}), xe = ee(a, "USE_PROFILES") ? a.USE_PROFILES : !1, dr = a.ALLOW_ARIA_ATTR !== !1, kt = a.ALLOW_DATA_ATTR !== !1, ur = a.ALLOW_UNKNOWN_PROTOCOLS || !1, pr = a.ALLOW_SELF_CLOSE_IN_ATTR !== !1, be = a.SAFE_FOR_TEMPLATES || !1, rt = a.SAFE_FOR_XML !== !1, me = a.WHOLE_DOCUMENT || !1, ye = a.RETURN_DOM || !1, ot = a.RETURN_DOM_FRAGMENT || !1, nt = a.RETURN_TRUSTED_TYPE || !1, Tt = a.FORCE_BODY || !1, hr = a.SANITIZE_DOM !== !1, fr = a.SANITIZE_NAMED_PROPS || !1, Et = a.KEEP_CONTENT !== !1, Ue = a.IN_PLACE || !1, M = a.ALLOWED_URI_REGEXP || Jo, Ae = a.NAMESPACE || le, lt = a.MATHML_TEXT_INTEGRATION_POINTS || lt, st = a.HTML_INTEGRATION_POINTS || st, I = a.CUSTOM_ELEMENT_HANDLING || {}, a.CUSTOM_ELEMENT_HANDLING && wr(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = a.CUSTOM_ELEMENT_HANDLING.tagNameCheck), a.CUSTOM_ELEMENT_HANDLING && wr(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), a.CUSTOM_ELEMENT_HANDLING && typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), be && (kt = !1), ot && (ye = !0), xe && (x = T({}, eo), U = [], xe.html === !0 && (T(x, Qr), T(U, to)), xe.svg === !0 && (T(x, Pt), T(U, zt), T(U, ut)), xe.svgFilters === !0 && (T(x, Dt), T(U, zt), T(U, ut)), xe.mathMl === !0 && (T(x, Ut), T(U, ro), T(U, ut))), a.ADD_TAGS && (x === P && (x = de(x)), T(x, a.ADD_TAGS, $)), a.ADD_ATTR && (U === Pe && (U = de(U)), T(U, a.ADD_ATTR, $)), a.ADD_URI_SAFE_ATTR && T(St, a.ADD_URI_SAFE_ATTR, $), a.FORBID_CONTENTS && (ke === mr && (ke = de(ke)), T(ke, a.FORBID_CONTENTS, $)), Et && (x["#text"] = !0), me && T(x, ["html", "head", "body"]), x.table && (T(x, ["tbody"]), delete De.tbody), a.TRUSTED_TYPES_POLICY) {
1036
+ if (typeof a.TRUSTED_TYPES_POLICY.createHTML != "function")
1037
+ throw Ve('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1038
+ if (typeof a.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1039
+ throw Ve('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1040
+ N = a.TRUSTED_TYPES_POLICY, Y = N.createHTML("");
1041
+ } else
1042
+ N === void 0 && (N = fa(_, n)), N !== null && typeof Y == "string" && (Y = N.createHTML(""));
1043
+ j && j(a), Te = a;
1044
+ }
1045
+ }, br = T({}, [...Pt, ...Dt, ...oa]), yr = T({}, [...Ut, ...na]), yn = function(a) {
1046
+ let f = B(a);
1047
+ (!f || !f.tagName) && (f = {
1048
+ namespaceURI: Ae,
1049
+ tagName: "template"
1050
+ });
1051
+ const g = ht(a.tagName), O = ht(f.tagName);
1052
+ return Nt[a.namespaceURI] ? a.namespaceURI === it ? f.namespaceURI === le ? g === "svg" : f.namespaceURI === at ? g === "svg" && (O === "annotation-xml" || lt[O]) : !!br[g] : a.namespaceURI === at ? f.namespaceURI === le ? g === "math" : f.namespaceURI === it ? g === "math" && st[O] : !!yr[g] : a.namespaceURI === le ? f.namespaceURI === it && !st[O] || f.namespaceURI === at && !lt[O] ? !1 : !yr[g] && (gn[g] || !br[g]) : !!(ze === "application/xhtml+xml" && Nt[a.namespaceURI]) : !1;
1053
+ }, ne = function(a) {
1054
+ Ze(t.removed, {
1055
+ element: a
1056
+ });
1057
+ try {
1058
+ B(a).removeChild(a);
1059
+ } catch {
1060
+ S(a);
1061
+ }
1062
+ }, Ee = function(a, f) {
1063
+ try {
1064
+ Ze(t.removed, {
1065
+ attribute: f.getAttributeNode(a),
1066
+ from: f
1067
+ });
1068
+ } catch {
1069
+ Ze(t.removed, {
1070
+ attribute: null,
1071
+ from: f
1072
+ });
1073
+ }
1074
+ if (f.removeAttribute(a), a === "is")
1075
+ if (ye || ot)
1076
+ try {
1077
+ ne(f);
1078
+ } catch {
1079
+ }
1080
+ else
1081
+ try {
1082
+ f.setAttribute(a, "");
1083
+ } catch {
1084
+ }
1085
+ }, xr = function(a) {
1086
+ let f = null, g = null;
1087
+ if (Tt)
1088
+ a = "<remove></remove>" + a;
1089
+ else {
1090
+ const z = Jr(a, /^[\r\n\t ]+/);
1091
+ g = z && z[0];
1092
+ }
1093
+ ze === "application/xhtml+xml" && Ae === le && (a = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + a + "</body></html>");
1094
+ const O = N ? N.createHTML(a) : a;
1095
+ if (Ae === le)
1096
+ try {
1097
+ f = new b().parseFromString(O, ze);
1098
+ } catch {
1099
+ }
1100
+ if (!f || !f.documentElement) {
1101
+ f = X.createDocument(Ae, "template", null);
1102
+ try {
1103
+ f.documentElement.innerHTML = Ct ? Y : O;
1104
+ } catch {
1105
+ }
1106
+ }
1107
+ const Z = f.body || f.documentElement;
1108
+ return a && g && Z.insertBefore(r.createTextNode(g), Z.childNodes[0] || null), Ae === le ? ie.call(f, me ? "html" : "body")[0] : me ? f.documentElement : Z;
1109
+ }, kr = function(a) {
1110
+ return we.call(
1111
+ a.ownerDocument || a,
1112
+ a,
1113
+ // eslint-disable-next-line no-bitwise
1114
+ s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION,
1115
+ null
1116
+ );
1117
+ }, Mt = function(a) {
1118
+ return a instanceof c && (typeof a.nodeName != "string" || typeof a.textContent != "string" || typeof a.removeChild != "function" || !(a.attributes instanceof m) || typeof a.removeAttribute != "function" || typeof a.setAttribute != "function" || typeof a.namespaceURI != "string" || typeof a.insertBefore != "function" || typeof a.hasChildNodes != "function");
1119
+ }, Ar = function(a) {
1120
+ return typeof d == "function" && a instanceof d;
1121
+ };
1122
+ function se(v, a, f) {
1123
+ dt(v, (g) => {
1124
+ g.call(t, a, f, Te);
1125
+ });
1126
+ }
1127
+ const Tr = function(a) {
1128
+ let f = null;
1129
+ if (se(L.beforeSanitizeElements, a, null), Mt(a))
1130
+ return ne(a), !0;
1131
+ const g = $(a.nodeName);
1132
+ if (se(L.uponSanitizeElement, a, {
1133
+ tagName: g,
1134
+ allowedTags: x
1135
+ }), rt && a.hasChildNodes() && !Ar(a.firstElementChild) && V(/<[/\w!]/g, a.innerHTML) && V(/<[/\w!]/g, a.textContent) || a.nodeType === We.progressingInstruction || rt && a.nodeType === We.comment && V(/<[/\w]/g, a.data))
1136
+ return ne(a), !0;
1137
+ if (!x[g] || De[g]) {
1138
+ if (!De[g] && Sr(g) && (I.tagNameCheck instanceof RegExp && V(I.tagNameCheck, g) || I.tagNameCheck instanceof Function && I.tagNameCheck(g)))
1139
+ return !1;
1140
+ if (Et && !ke[g]) {
1141
+ const O = B(a) || a.parentNode, Z = C(a) || a.childNodes;
1142
+ if (Z && O) {
1143
+ const z = Z.length;
1144
+ for (let G = z - 1; G >= 0; --G) {
1145
+ const ce = R(Z[G], !0);
1146
+ ce.__removalCount = (a.__removalCount || 0) + 1, O.insertBefore(ce, E(a));
1147
+ }
1148
+ }
1149
+ }
1150
+ return ne(a), !0;
1151
+ }
1152
+ return a instanceof h && !yn(a) || (g === "noscript" || g === "noembed" || g === "noframes") && V(/<\/no(script|embed|frames)/i, a.innerHTML) ? (ne(a), !0) : (be && a.nodeType === We.text && (f = a.textContent, dt([K, He, Ie], (O) => {
1153
+ f = Fe(f, O, " ");
1154
+ }), a.textContent !== f && (Ze(t.removed, {
1155
+ element: a.cloneNode()
1156
+ }), a.textContent = f)), se(L.afterSanitizeElements, a, null), !1);
1157
+ }, Er = function(a, f, g) {
1158
+ if (hr && (f === "id" || f === "name") && (g in r || g in bn))
1159
+ return !1;
1160
+ if (!(kt && !xt[f] && V(et, f))) {
1161
+ if (!(dr && V(tt, f))) {
1162
+ if (!U[f] || xt[f]) {
1163
+ if (
1164
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1165
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1166
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1167
+ !(Sr(a) && (I.tagNameCheck instanceof RegExp && V(I.tagNameCheck, a) || I.tagNameCheck instanceof Function && I.tagNameCheck(a)) && (I.attributeNameCheck instanceof RegExp && V(I.attributeNameCheck, f) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1168
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1169
+ f === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && V(I.tagNameCheck, g) || I.tagNameCheck instanceof Function && I.tagNameCheck(g)))
1170
+ ) return !1;
1171
+ } else if (!St[f]) {
1172
+ if (!V(M, Fe(g, Oe, ""))) {
1173
+ if (!((f === "src" || f === "xlink:href" || f === "href") && a !== "script" && Qn(g, "data:") === 0 && _r[a])) {
1174
+ if (!(ur && !V(yt, Fe(g, Oe, "")))) {
1175
+ if (g)
1176
+ return !1;
1177
+ }
1178
+ }
1179
+ }
1180
+ }
1181
+ }
1182
+ }
1183
+ return !0;
1184
+ }, Sr = function(a) {
1185
+ return a !== "annotation-xml" && Jr(a, w);
1186
+ }, Cr = function(a) {
1187
+ se(L.beforeSanitizeAttributes, a, null);
1188
+ const {
1189
+ attributes: f
1190
+ } = a;
1191
+ if (!f || Mt(a))
1192
+ return;
1193
+ const g = {
1194
+ attrName: "",
1195
+ attrValue: "",
1196
+ keepAttr: !0,
1197
+ allowedAttributes: U,
1198
+ forceKeepAttr: void 0
1199
+ };
1200
+ let O = f.length;
1201
+ for (; O--; ) {
1202
+ const Z = f[O], {
1203
+ name: z,
1204
+ namespaceURI: G,
1205
+ value: ce
1206
+ } = Z, $e = $(z), Rt = ce;
1207
+ let F = z === "value" ? Rt : ea(Rt);
1208
+ if (g.attrName = $e, g.attrValue = F, g.keepAttr = !0, g.forceKeepAttr = void 0, se(L.uponSanitizeAttribute, a, g), F = g.attrValue, fr && ($e === "id" || $e === "name") && (Ee(z, a), F = mn + F), rt && V(/((--!?|])>)|<\/(style|title)/i, F)) {
1209
+ Ee(z, a);
1210
+ continue;
1211
+ }
1212
+ if (g.forceKeepAttr)
1213
+ continue;
1214
+ if (!g.keepAttr) {
1215
+ Ee(z, a);
1216
+ continue;
1217
+ }
1218
+ if (!pr && V(/\/>/i, F)) {
1219
+ Ee(z, a);
1220
+ continue;
1221
+ }
1222
+ be && dt([K, He, Ie], (Lr) => {
1223
+ F = Fe(F, Lr, " ");
1224
+ });
1225
+ const Nr = $(a.nodeName);
1226
+ if (!Er(Nr, $e, F)) {
1227
+ Ee(z, a);
1228
+ continue;
1229
+ }
1230
+ if (N && typeof _ == "object" && typeof _.getAttributeType == "function" && !G)
1231
+ switch (_.getAttributeType(Nr, $e)) {
1232
+ case "TrustedHTML": {
1233
+ F = N.createHTML(F);
1234
+ break;
1235
+ }
1236
+ case "TrustedScriptURL": {
1237
+ F = N.createScriptURL(F);
1238
+ break;
1239
+ }
1240
+ }
1241
+ if (F !== Rt)
1242
+ try {
1243
+ G ? a.setAttributeNS(G, z, F) : a.setAttribute(z, F), Mt(a) ? ne(a) : Kr(t.removed);
1244
+ } catch {
1245
+ Ee(z, a);
1246
+ }
1247
+ }
1248
+ se(L.afterSanitizeAttributes, a, null);
1249
+ }, xn = function v(a) {
1250
+ let f = null;
1251
+ const g = kr(a);
1252
+ for (se(L.beforeSanitizeShadowDOM, a, null); f = g.nextNode(); )
1253
+ se(L.uponSanitizeShadowNode, f, null), Tr(f), Cr(f), f.content instanceof i && v(f.content);
1254
+ se(L.afterSanitizeShadowDOM, a, null);
1255
+ };
1256
+ return t.sanitize = function(v) {
1257
+ let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, g = null, O = null, Z = null;
1258
+ if (Ct = !v, Ct && (v = "<!-->"), typeof v != "string" && !Ar(v))
1259
+ if (typeof v.toString == "function") {
1260
+ if (v = v.toString(), typeof v != "string")
1261
+ throw Ve("dirty is not a string, aborting");
1262
+ } else
1263
+ throw Ve("toString is not a function");
1264
+ if (!t.isSupported)
1265
+ return v;
1266
+ if (At || Lt(a), t.removed = [], typeof v == "string" && (Ue = !1), Ue) {
1267
+ if (v.nodeName) {
1268
+ const ce = $(v.nodeName);
1269
+ if (!x[ce] || De[ce])
1270
+ throw Ve("root node is forbidden and cannot be sanitized in-place");
1271
+ }
1272
+ } else if (v instanceof d)
1273
+ f = xr("<!---->"), g = f.ownerDocument.importNode(v, !0), g.nodeType === We.element && g.nodeName === "BODY" || g.nodeName === "HTML" ? f = g : f.appendChild(g);
1274
+ else {
1275
+ if (!ye && !be && !me && // eslint-disable-next-line unicorn/prefer-includes
1276
+ v.indexOf("<") === -1)
1277
+ return N && nt ? N.createHTML(v) : v;
1278
+ if (f = xr(v), !f)
1279
+ return ye ? null : nt ? Y : "";
1280
+ }
1281
+ f && Tt && ne(f.firstChild);
1282
+ const z = kr(Ue ? v : f);
1283
+ for (; O = z.nextNode(); )
1284
+ Tr(O), Cr(O), O.content instanceof i && xn(O.content);
1285
+ if (Ue)
1286
+ return v;
1287
+ if (ye) {
1288
+ if (ot)
1289
+ for (Z = oe.call(f.ownerDocument); f.firstChild; )
1290
+ Z.appendChild(f.firstChild);
1291
+ else
1292
+ Z = f;
1293
+ return (U.shadowroot || U.shadowrootmode) && (Z = fe.call(o, Z, !0)), Z;
1294
+ }
1295
+ let G = me ? f.outerHTML : f.innerHTML;
1296
+ return me && x["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && V(Qo, f.ownerDocument.doctype.name) && (G = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
1297
+ ` + G), be && dt([K, He, Ie], (ce) => {
1298
+ G = Fe(G, ce, " ");
1299
+ }), N && nt ? N.createHTML(G) : G;
1300
+ }, t.setConfig = function() {
1301
+ let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1302
+ Lt(v), At = !0;
1303
+ }, t.clearConfig = function() {
1304
+ Te = null, At = !1;
1305
+ }, t.isValidAttribute = function(v, a, f) {
1306
+ Te || Lt({});
1307
+ const g = $(v), O = $(a);
1308
+ return Er(g, O, f);
1309
+ }, t.addHook = function(v, a) {
1310
+ typeof a == "function" && Ze(L[v], a);
1311
+ }, t.removeHook = function(v, a) {
1312
+ if (a !== void 0) {
1313
+ const f = Kn(L[v], a);
1314
+ return f === -1 ? void 0 : Jn(L[v], f, 1)[0];
1315
+ }
1316
+ return Kr(L[v]);
1317
+ }, t.removeHooks = function(v) {
1318
+ L[v] = [];
1319
+ }, t.removeAllHooks = function() {
1320
+ L = no();
1321
+ }, t;
1322
+ }
1323
+ var ao = en();
1324
+ const ma = /* @__PURE__ */ new Map([
1325
+ [
1326
+ "bold",
1327
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z" }))
1328
+ ],
1329
+ [
1330
+ "duotone",
1331
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M112,56V200L40,128Z", opacity: "0.2" }), /* @__PURE__ */ p("path", { d: "M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z" }))
1332
+ ],
1333
+ [
1334
+ "fill",
1335
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z" }))
1336
+ ],
1337
+ [
1338
+ "light",
1339
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z" }))
1340
+ ],
1341
+ [
1342
+ "regular",
1343
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z" }))
1344
+ ],
1345
+ [
1346
+ "thin",
1347
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z" }))
1348
+ ]
1349
+ ]), _a = /* @__PURE__ */ new Map([
1350
+ [
1351
+ "bold",
1352
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z" }))
1353
+ ],
1354
+ [
1355
+ "duotone",
1356
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z", opacity: "0.2" }), /* @__PURE__ */ p("path", { d: "M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z" }))
1357
+ ],
1358
+ [
1359
+ "fill",
1360
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z" }))
1361
+ ],
1362
+ [
1363
+ "light",
1364
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z" }))
1365
+ ],
1366
+ [
1367
+ "regular",
1368
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z" }))
1369
+ ],
1370
+ [
1371
+ "thin",
1372
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z" }))
1373
+ ]
1374
+ ]), ga = /* @__PURE__ */ new Map([
1375
+ [
1376
+ "bold",
1377
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M240,100h-8.2L205.08,39.88A20,20,0,0,0,186.8,28H69.2A20,20,0,0,0,50.92,39.88L24.2,100H16a12,12,0,0,0,0,24h4v76a20,20,0,0,0,20,20H68a20,20,0,0,0,20-20V180h80v20a20,20,0,0,0,20,20h28a20,20,0,0,0,20-20V124h4a12,12,0,0,0,0-24ZM71.8,52H184.2l21.33,48H50.47ZM64,196H44V180H64Zm128,0V180h20v16Zm20-40H44V124H212Z" }))
1378
+ ],
1379
+ [
1380
+ "duotone",
1381
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p(
1382
+ "path",
1383
+ {
1384
+ d: "M184,176h40v24a8,8,0,0,1-8,8H192a8,8,0,0,1-8-8ZM32,200a8,8,0,0,0,8,8H64a8,8,0,0,0,8-8V176H32ZM194.11,44.75A8,8,0,0,0,186.8,40H69.2a8,8,0,0,0-7.31,4.75L32,112H224Z",
1385
+ opacity: "0.2"
1386
+ }
1387
+ ), /* @__PURE__ */ p("path", { d: "M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16V184h96v16a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM69.2,48H186.8l24.89,56H44.31ZM64,200H40V184H64Zm128,0V184h24v16Zm24-32H40V120H216ZM56,144a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16H64A8,8,0,0,1,56,144Zm112,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,144Z" }))
1388
+ ],
1389
+ [
1390
+ "fill",
1391
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16v-8h96v8a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM80,152H56a8,8,0,0,1,0-16H80a8,8,0,0,1,0,16Zm120,0H176a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16ZM44.31,104,69.2,48H186.8l24.89,56Z" }))
1392
+ ],
1393
+ [
1394
+ "light",
1395
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M240,106H227.9L199.59,42.31A14,14,0,0,0,186.8,34H69.2a14,14,0,0,0-12.79,8.31L28.1,106H16a6,6,0,0,0,0,12H26v82a14,14,0,0,0,14,14H64a14,14,0,0,0,14-14V182H178v18a14,14,0,0,0,14,14h24a14,14,0,0,0,14-14V118h10a6,6,0,0,0,0-12ZM67.37,47.19A2,2,0,0,1,69.2,46H186.8a2,2,0,0,1,1.83,1.19L214.77,106H41.23ZM66,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V182H66Zm150,2H192a2,2,0,0,1-2-2V182h28v18A2,2,0,0,1,216,202Zm2-32H38V118H218ZM58,144a6,6,0,0,1,6-6H80a6,6,0,0,1,0,12H64A6,6,0,0,1,58,144Zm112,0a6,6,0,0,1,6-6h16a6,6,0,0,1,0,12H176A6,6,0,0,1,170,144Z" }))
1396
+ ],
1397
+ [
1398
+ "regular",
1399
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16V184h96v16a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM69.2,48H186.8l24.89,56H44.31ZM64,200H40V184H64Zm128,0V184h24v16Zm24-32H40V120H216ZM56,144a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16H64A8,8,0,0,1,56,144Zm112,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,144Z" }))
1400
+ ],
1401
+ [
1402
+ "thin",
1403
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M240,108H226.6L197.77,43.13a12,12,0,0,0-11-7.13H69.2a12,12,0,0,0-11,7.13L29.4,108H16a4,4,0,0,0,0,8H28v84a12,12,0,0,0,12,12H64a12,12,0,0,0,12-12V180H180v20a12,12,0,0,0,12,12h24a12,12,0,0,0,12-12V116h12a4,4,0,0,0,0-8ZM65.54,46.38A4,4,0,0,1,69.2,44H186.8a4,4,0,0,1,3.66,2.38L217.84,108H38.16ZM68,200a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V180H68Zm148,4H192a4,4,0,0,1-4-4V180h32v20A4,4,0,0,1,216,204Zm4-32H36V116H220ZM60,144a4,4,0,0,1,4-4H80a4,4,0,0,1,0,8H64A4,4,0,0,1,60,144Zm112,0a4,4,0,0,1,4-4h16a4,4,0,0,1,0,8H176A4,4,0,0,1,172,144Z" }))
1404
+ ]
1405
+ ]), va = /* @__PURE__ */ new Map([
1406
+ [
1407
+ "bold",
1408
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z" }))
1409
+ ],
1410
+ [
1411
+ "duotone",
1412
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ p("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))
1413
+ ],
1414
+ [
1415
+ "fill",
1416
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z" }))
1417
+ ],
1418
+ [
1419
+ "light",
1420
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z" }))
1421
+ ],
1422
+ [
1423
+ "regular",
1424
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))
1425
+ ],
1426
+ [
1427
+ "thin",
1428
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z" }))
1429
+ ]
1430
+ ]), wa = /* @__PURE__ */ new Map([
1431
+ [
1432
+ "bold",
1433
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z" }))
1434
+ ],
1435
+ [
1436
+ "duotone",
1437
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p(
1438
+ "path",
1439
+ {
1440
+ d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
1441
+ opacity: "0.2"
1442
+ }
1443
+ ), /* @__PURE__ */ p("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
1444
+ ],
1445
+ [
1446
+ "fill",
1447
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
1448
+ ],
1449
+ [
1450
+ "light",
1451
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z" }))
1452
+ ],
1453
+ [
1454
+ "regular",
1455
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
1456
+ ],
1457
+ [
1458
+ "thin",
1459
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z" }))
1460
+ ]
1461
+ ]), ba = /* @__PURE__ */ new Map([
1462
+ [
1463
+ "bold",
1464
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z" }))
1465
+ ],
1466
+ [
1467
+ "duotone",
1468
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ p("path", { d: "M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))
1469
+ ],
1470
+ [
1471
+ "fill",
1472
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
1473
+ ],
1474
+ [
1475
+ "light",
1476
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z" }))
1477
+ ],
1478
+ [
1479
+ "regular",
1480
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))
1481
+ ],
1482
+ [
1483
+ "thin",
1484
+ /* @__PURE__ */ p(y, null, /* @__PURE__ */ p("path", { d: "M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" }))
1485
+ ]
1486
+ ]), ya = Jt({
1487
+ color: "currentColor",
1488
+ size: "1em",
1489
+ weight: "regular",
1490
+ mirrored: !1
1491
+ }), ve = he(
1492
+ (e, t) => {
1493
+ const {
1494
+ alt: r,
1495
+ color: o,
1496
+ size: n,
1497
+ weight: i,
1498
+ mirrored: l,
1499
+ children: d,
1500
+ weights: h,
1501
+ ...s
1502
+ } = e, {
1503
+ color: m = "currentColor",
1504
+ size: c,
1505
+ weight: b = "regular",
1506
+ mirrored: _ = !1,
1507
+ ...A
1508
+ } = bt(ya);
1509
+ return /* @__PURE__ */ p(
1510
+ "svg",
1511
+ {
1512
+ ref: t,
1513
+ xmlns: "http://www.w3.org/2000/svg",
1514
+ width: n ?? c,
1515
+ height: n ?? c,
1516
+ fill: o ?? m,
1517
+ viewBox: "0 0 256 256",
1518
+ transform: l || _ ? "scale(-1, 1)" : void 0,
1519
+ ...A,
1520
+ ...s
1521
+ },
1522
+ !!r && /* @__PURE__ */ p("title", null, r),
1523
+ d,
1524
+ h.get(i ?? b)
1525
+ );
1526
+ }
1527
+ );
1528
+ ve.displayName = "IconBase";
1529
+ const tn = he((e, t) => /* @__PURE__ */ p(ve, { ref: t, ...e, weights: ma }));
1530
+ tn.displayName = "ArrowLeftIcon";
1531
+ const rn = he((e, t) => /* @__PURE__ */ p(ve, { ref: t, ...e, weights: _a }));
1532
+ rn.displayName = "ArrowsClockwiseIcon";
1533
+ const on = he((e, t) => /* @__PURE__ */ p(ve, { ref: t, ...e, weights: ga }));
1534
+ on.displayName = "CarIcon";
1535
+ const nn = he((e, t) => /* @__PURE__ */ p(ve, { ref: t, ...e, weights: va }));
1536
+ nn.displayName = "CircleNotchIcon";
1537
+ const an = he((e, t) => /* @__PURE__ */ p(ve, { ref: t, ...e, weights: wa }));
1538
+ an.displayName = "XIcon";
1539
+ const ln = he((e, t) => /* @__PURE__ */ p(ve, { ref: t, ...e, weights: ba }));
1540
+ ln.displayName = "XCircleIcon";
1541
+ function sn(e) {
1542
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1543
+ }
1544
+ var cn = { exports: {} };
1545
+ /*!
1546
+ * JavaScript Cookie v2.2.1
1547
+ * https://github.com/js-cookie/js-cookie
1548
+ *
1549
+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
1550
+ * Released under the MIT license
1551
+ */
1552
+ (function(e, t) {
1553
+ (function(r) {
1554
+ var o;
1555
+ if (e.exports = r(), o = !0, !o) {
1556
+ var n = window.Cookies, i = window.Cookies = r();
1557
+ i.noConflict = function() {
1558
+ return window.Cookies = n, i;
1559
+ };
1560
+ }
1561
+ })(function() {
1562
+ function r() {
1563
+ for (var i = 0, l = {}; i < arguments.length; i++) {
1564
+ var d = arguments[i];
1565
+ for (var h in d)
1566
+ l[h] = d[h];
1567
+ }
1568
+ return l;
1569
+ }
1570
+ function o(i) {
1571
+ return i.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
1572
+ }
1573
+ function n(i) {
1574
+ function l() {
1575
+ }
1576
+ function d(s, m, c) {
1577
+ if (!(typeof document > "u")) {
1578
+ c = r({
1579
+ path: "/"
1580
+ }, l.defaults, c), typeof c.expires == "number" && (c.expires = new Date(/* @__PURE__ */ new Date() * 1 + c.expires * 864e5)), c.expires = c.expires ? c.expires.toUTCString() : "";
1581
+ try {
1582
+ var b = JSON.stringify(m);
1583
+ /^[\{\[]/.test(b) && (m = b);
1584
+ } catch {
1585
+ }
1586
+ m = i.write ? i.write(m, s) : encodeURIComponent(String(m)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), s = encodeURIComponent(String(s)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
1587
+ var _ = "";
1588
+ for (var A in c)
1589
+ c[A] && (_ += "; " + A, c[A] !== !0 && (_ += "=" + c[A].split(";")[0]));
1590
+ return document.cookie = s + "=" + m + _;
1591
+ }
1592
+ }
1593
+ function h(s, m) {
1594
+ if (!(typeof document > "u")) {
1595
+ for (var c = {}, b = document.cookie ? document.cookie.split("; ") : [], _ = 0; _ < b.length; _++) {
1596
+ var A = b[_].split("="), R = A.slice(1).join("=");
1597
+ !m && R.charAt(0) === '"' && (R = R.slice(1, -1));
1598
+ try {
1599
+ var S = o(A[0]);
1600
+ if (R = (i.read || i)(R, S) || o(R), m)
1601
+ try {
1602
+ R = JSON.parse(R);
1603
+ } catch {
1604
+ }
1605
+ if (c[S] = R, s === S)
1606
+ break;
1607
+ } catch {
1608
+ }
1609
+ }
1610
+ return s ? c[s] : c;
1611
+ }
1612
+ }
1613
+ return l.set = d, l.get = function(s) {
1614
+ return h(
1615
+ s,
1616
+ !1
1617
+ /* read as raw */
1618
+ );
1619
+ }, l.getJSON = function(s) {
1620
+ return h(
1621
+ s,
1622
+ !0
1623
+ /* read as json */
1624
+ );
1625
+ }, l.remove = function(s, m) {
1626
+ d(s, "", r(m, {
1627
+ expires: -1
1628
+ }));
1629
+ }, l.defaults = {}, l.withConverter = n, l;
1630
+ }
1631
+ return n(function() {
1632
+ });
1633
+ });
1634
+ })(cn);
1635
+ var xa = cn.exports;
1636
+ const $t = /* @__PURE__ */ sn(xa);
1637
+ var dn = { exports: {} }, ka = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", Aa = ka, Ta = Aa;
1638
+ function un() {
1639
+ }
1640
+ function pn() {
1641
+ }
1642
+ pn.resetWarningCache = un;
1643
+ var Ea = function() {
1644
+ function e(o, n, i, l, d, h) {
1645
+ if (h !== Ta) {
1646
+ var s = new Error(
1647
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1648
+ );
1649
+ throw s.name = "Invariant Violation", s;
1650
+ }
1651
+ }
1652
+ e.isRequired = e;
1653
+ function t() {
1654
+ return e;
1655
+ }
1656
+ var r = {
1657
+ array: e,
1658
+ bigint: e,
1659
+ bool: e,
1660
+ func: e,
1661
+ number: e,
1662
+ object: e,
1663
+ string: e,
1664
+ symbol: e,
1665
+ any: e,
1666
+ arrayOf: t,
1667
+ element: e,
1668
+ elementType: e,
1669
+ instanceOf: t,
1670
+ node: e,
1671
+ objectOf: t,
1672
+ oneOf: t,
1673
+ oneOfType: t,
1674
+ shape: t,
1675
+ exact: t,
1676
+ checkPropTypes: pn,
1677
+ resetWarningCache: un
1678
+ };
1679
+ return r.PropTypes = r, r;
1680
+ };
1681
+ dn.exports = Ea();
1682
+ var Sa = dn.exports;
1683
+ const Q = /* @__PURE__ */ sn(Sa);
1684
+ function hn({ error: e }) {
1685
+ return /* @__PURE__ */ u("div", { className: "rounded-md bg-red-50 p-4", children: /* @__PURE__ */ u("div", { className: "flex justify-center items-center", children: [
1686
+ /* @__PURE__ */ u("div", { className: "flex-shrink-0", children: /* @__PURE__ */ u(
1687
+ ln,
1688
+ {
1689
+ size: 20,
1690
+ weight: "bold",
1691
+ className: "text-red-400",
1692
+ "aria-hidden": "true"
1693
+ }
1694
+ ) }),
1695
+ /* @__PURE__ */ u("div", { className: "ml-3", children: /* @__PURE__ */ u("h3", { className: "text-sm font-medium text-red-800", children: e }) })
1696
+ ] }) });
1697
+ }
1698
+ hn.propTypes = {
1699
+ error: Q.string.isRequired
1700
+ };
1701
+ function Ca({ className: e, alt: t = "Partbot Logo" }) {
1702
+ return /* @__PURE__ */ u("span", { className: e, role: "img", "aria-label": t, children: /* @__PURE__ */ u(
1703
+ "svg",
1704
+ {
1705
+ xmlns: "http://www.w3.org/2000/svg",
1706
+ width: "239.19",
1707
+ height: "54.22",
1708
+ viewBox: "0 0 239.19 54.22",
1709
+ focusable: "false",
1710
+ "aria-hidden": "true",
1711
+ style: {
1712
+ width: "auto",
1713
+ height: "100%"
1714
+ },
1715
+ children: /* @__PURE__ */ u("g", { children: [
1716
+ /* @__PURE__ */ u(
1717
+ "rect",
1718
+ {
1719
+ fill: "currentColor",
1720
+ y: ".22",
1721
+ width: "24.45",
1722
+ height: "24.45",
1723
+ rx: "1.81",
1724
+ ry: "1.81"
1725
+ }
1726
+ ),
1727
+ /* @__PURE__ */ u(
1728
+ "rect",
1729
+ {
1730
+ fill: "currentColor",
1731
+ y: "29.76",
1732
+ width: "24.45",
1733
+ height: "24.45",
1734
+ rx: "1.7",
1735
+ ry: "1.7"
1736
+ }
1737
+ ),
1738
+ /* @__PURE__ */ u(
1739
+ "path",
1740
+ {
1741
+ fill: "currentColor",
1742
+ d: "M36.91,34.61h-5.67c-.94,0-1.7-.76-1.7-1.7V1.7C29.55.76,30.31,0,31.25,0h5.67c9.44,0,17.09,7.65,17.09,17.09h0v.43c0,9.44-7.65,17.09-17.09,17.09Z"
1743
+ }
1744
+ ),
1745
+ /* @__PURE__ */ u(
1746
+ "path",
1747
+ {
1748
+ fill: "currentColor",
1749
+ d: "M97.79,12.21c-1.74-.96-3.67-1.44-5.8-1.44h-13.54v31.48h7.56v-8.81h5.98c2.13,0,4.06-.48,5.8-1.44,1.74-.96,3.13-2.3,4.18-4.03,1.05-1.72,1.57-3.7,1.57-5.91s-.52-4.18-1.57-5.87c-1.05-1.69-2.44-3.02-4.18-3.98ZM95.32,24.8c-.45.75-1.04,1.32-1.78,1.71-.74.39-1.54.58-2.41.58h-5.13v-10.03h5.13c.87,0,1.67.2,2.41.61.73.4,1.33.98,1.78,1.73.45.75.67,1.65.67,2.7s-.22,1.95-.67,2.7Z"
1750
+ }
1751
+ ),
1752
+ /* @__PURE__ */ u(
1753
+ "path",
1754
+ {
1755
+ fill: "currentColor",
1756
+ d: "M124.27,20.24c-1.81-1.06-4.01-1.6-6.59-1.6s-4.76.54-6.63,1.62c-1.87,1.08-3.32,2.54-4.34,4.39-1.02,1.84-1.53,3.93-1.53,6.27s.43,4.26,1.3,6.05c.87,1.78,2.08,3.2,3.64,4.25,1.56,1.05,3.36,1.57,5.4,1.57,1.29,0,2.41-.18,3.35-.54.94-.36,1.75-.86,2.41-1.51.66-.64,1.2-1.37,1.62-2.18h.18v3.69h6.84v-11.47c0-2.28-.49-4.34-1.46-6.18s-2.37-3.3-4.18-4.36ZM122.18,33.8c-.42.93-1.03,1.66-1.82,2.18s-1.72.79-2.77.79-2.02-.26-2.83-.79-1.42-1.25-1.84-2.18c-.42-.93-.63-1.96-.63-3.1s.21-2.11.63-3.01c.42-.9,1.03-1.61,1.84-2.14s1.75-.79,2.83-.79,1.97.26,2.77.79,1.4,1.24,1.82,2.14c.42.9.63,1.9.63,3.01s-.21,2.17-.63,3.1Z"
1757
+ }
1758
+ ),
1759
+ /* @__PURE__ */ u(
1760
+ "path",
1761
+ {
1762
+ fill: "currentColor",
1763
+ d: "M159.56,13.56h-7.02v5.62h-12.06c-2.13,0-3.79.64-4.99,1.84s-1.8,2.85-1.8,4.95v16.28h6.97v-15.83c0-.45.15-.82.45-1.1.3-.28.66-.43,1.08-.43h10.35v10.61c0,2.07.6,3.71,1.8,4.92,1.2,1.21,2.86,1.82,4.99,1.82h6.57v-5.85h-5.04c-.36,0-.67-.13-.92-.38-.26-.25-.38-.56-.38-.92v-10.21h6.34v-5.71h-6.34v-5.62Z"
1764
+ }
1765
+ ),
1766
+ /* @__PURE__ */ u(
1767
+ "path",
1768
+ {
1769
+ fill: "currentColor",
1770
+ d: "M189.1,20.13c-1.65-.99-3.57-1.48-5.76-1.48-.93,0-1.81.12-2.63.36-.83.24-1.57.59-2.25,1.06-.67.47-1.24,1.01-1.69,1.64h-.14v-12.28h-6.97v20.87c0,2.52.51,4.72,1.53,6.61,1.02,1.89,2.46,3.34,4.32,4.36,1.86,1.02,4.03,1.53,6.52,1.53,1.95,0,3.68-.3,5.19-.9,1.51-.6,2.8-1.46,3.87-2.59,1.06-1.12,1.88-2.45,2.45-3.98.57-1.53.85-3.19.85-4.99,0-2.34-.47-4.38-1.42-6.12-.94-1.74-2.24-3.1-3.89-4.09ZM186.65,33.82c-.44.91-1.04,1.63-1.82,2.16-.78.52-1.71.79-2.79.79s-2.02-.26-2.81-.79-1.4-1.24-1.82-2.16-.63-1.94-.63-3.08.21-2.16.63-3.06c.42-.9,1.03-1.61,1.82-2.14s1.73-.79,2.81-.79,2.01.26,2.79.79c.78.52,1.39,1.24,1.82,2.14.43.9.65,1.92.65,3.06s-.22,2.17-.65,3.08Z"
1771
+ }
1772
+ ),
1773
+ /* @__PURE__ */ u(
1774
+ "path",
1775
+ {
1776
+ fill: "currentColor",
1777
+ d: "M215.96,20.24c-1.87-1.06-4-1.6-6.36-1.6s-4.5.53-6.39,1.6c-1.89,1.06-3.38,2.5-4.48,4.32-1.09,1.81-1.64,3.88-1.64,6.18s.55,4.33,1.64,6.16c1.09,1.83,2.59,3.27,4.48,4.32,1.89,1.05,4.02,1.57,6.39,1.57s4.45-.52,6.34-1.57,3.38-2.49,4.47-4.32c1.09-1.83,1.64-3.88,1.64-6.16s-.55-4.37-1.64-6.18c-1.09-1.81-2.58-3.25-4.45-4.32ZM214.37,33.75c-.45.9-1.08,1.62-1.89,2.16s-1.77.81-2.88.81-2.08-.27-2.9-.81-1.46-1.26-1.91-2.16c-.45-.9-.67-1.92-.67-3.06s.22-2.11.67-3.01c.45-.9,1.09-1.62,1.91-2.16s1.79-.81,2.9-.81,2.07.27,2.88.81,1.44,1.26,1.89,2.16c.45.9.67,1.9.67,3.01s-.22,2.16-.67,3.06Z"
1778
+ }
1779
+ ),
1780
+ /* @__PURE__ */ u(
1781
+ "path",
1782
+ {
1783
+ fill: "currentColor",
1784
+ d: "M239.19,24.89v-5.71h-6.34v-5.62h-7.02v21.95c0,2.07.6,3.71,1.8,4.92,1.2,1.21,2.86,1.82,4.99,1.82h6.57v-5.85h-5.04c-.36,0-.67-.13-.92-.38-.26-.25-.38-.56-.38-.92v-10.21h6.34Z"
1785
+ }
1786
+ )
1787
+ ] })
1788
+ }
1789
+ ) });
1790
+ }
1791
+ const io = ["ACT", "NSW", "NT", "QLD", "SA", "TAS", "VIC", "WA"], lo = "https://api.partbot.io/v1/vehicles/plate-search", so = "https://api.partbot.io/v1/vehicles/plate-search-retry";
1792
+ function fn(e) {
1793
+ const [t, r] = q(!1), [o, n] = q(!1), [i, l] = q(""), [d, h] = q(""), [s, m] = q(null), [c, b] = q(!1), _ = wt(null), [A, R] = q(lo), [S, E] = q(null), C = e.apiKey, B = e.callbackUrl, N = e.productsUrl, Y = e.useGeolocation === "true", X = e.themeColor || "#4f46e5", we = e.buttonTheme || "light", oe = e.responsive, ie = e.intro || "Enter your Number&nbsp;Plate and select your State or Territory to find your vehicle.", fe = e.placeholder || "PL8SRCH", L = e.supportMessage;
1794
+ te(() => {
1795
+ const w = localStorage.getItem(
1796
+ "partbot_selected_vehicle"
1797
+ );
1798
+ if (w) {
1799
+ const M = JSON.parse(w);
1800
+ M.description && (M.vehicle_ids.length > 0 || Object.values(M.vehicle).every(
1801
+ (x) => x !== null && x !== "" && (typeof x != "object" || Object.keys(x).length > 0)
1802
+ )) && E(M);
1803
+ }
1804
+ }, []), te(() => {
1805
+ document.documentElement.style.setProperty("--partbot-theme", X);
1806
+ }, [X]), te(() => {
1807
+ t && Y && "geolocation" in navigator && navigator.geolocation.getCurrentPosition(async function(w) {
1808
+ const { latitude: M, longitude: x } = w.coords;
1809
+ try {
1810
+ const U = await (await fetch(
1811
+ `https://maps.googleapis.com/maps/api/geocode/json?latlng=${M},${x}&key=AIzaSyDAdDL5E8iWK_oc0FLqdW-QAhZo84xIX0k`
1812
+ )).json();
1813
+ if (U.results && U.results[0]) {
1814
+ const Pe = U.results[0].address_components.find(
1815
+ (I) => I.types.includes("administrative_area_level_1")
1816
+ );
1817
+ if (Pe) {
1818
+ const I = Pe.short_name;
1819
+ h(I);
1820
+ }
1821
+ }
1822
+ } catch (P) {
1823
+ console.error("Geocoding error:", P);
1824
+ }
1825
+ });
1826
+ }, [Y, t]), te(() => {
1827
+ let w = localStorage.getItem("partbot_plate_details");
1828
+ w && (w = JSON.parse(w), w.plate ? l(w.plate.number) : localStorage.removeItem("partbot_plate_details"));
1829
+ }, []), te(() => {
1830
+ t && !o && n(!0), t && _.current && _.current.focus();
1831
+ }, [t, o]);
1832
+ const K = (w) => {
1833
+ if (w && w.preventDefault(), !d || !i)
1834
+ return;
1835
+ b(!0);
1836
+ const M = {
1837
+ plate: i,
1838
+ state: d
1839
+ };
1840
+ async function x() {
1841
+ return (await fetch(A, {
1842
+ method: "POST",
1843
+ mode: "cors",
1844
+ // no-cors, *cors, same-origin
1845
+ cache: "no-cache",
1846
+ // *default, no-cache, reload, force-cache, only-if-cached
1847
+ credentials: "same-origin",
1848
+ // include, *same-origin, omit
1849
+ headers: {
1850
+ "Content-Type": "application/json",
1851
+ Authorization: `Basic ${C}`
1852
+ },
1853
+ redirect: "follow",
1854
+ // manual, *follow, error
1855
+ referrerPolicy: "no-referrer",
1856
+ // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
1857
+ body: JSON.stringify(M)
1858
+ })).json();
1859
+ }
1860
+ x().then((P) => {
1861
+ b(!1), P.plate ? (localStorage.setItem("partbot_plate_details", JSON.stringify(P)), m(P)) : P && P.indexOf("Invalid API Key") !== -1 ? m({ error: P }) : m({ error: "Could not find any matching vehicles." });
1862
+ }).catch((P) => {
1863
+ console.error("Error:", P), m({ error: "Could not find any matching vehicles." });
1864
+ });
1865
+ };
1866
+ te(() => {
1867
+ K();
1868
+ }, [A]);
1869
+ const He = (w) => {
1870
+ localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"), $t.remove("partbot_selected_vehicle"), m(null), R(so);
1871
+ }, Ie = (w) => {
1872
+ window.open(
1873
+ `mailto:report@partbot.io?subject=${encodeURIComponent(
1874
+ "Registration Search Issue"
1875
+ )}&body=${encodeURIComponent(
1876
+ `Incorrect vehicles were shown for ${d} number plate: ${i}, vehicle: ${s.factory_vehicle.make} ${s.factory_vehicle.model} ${s.factory_vehicle.year} ${s.factory_vehicle.body} ${s.factory_vehicle.series}. Please provide details of the correct vehicle below:`
1877
+ )}`
1878
+ );
1879
+ }, et = (w) => {
1880
+ l(""), m(null), R(lo), E(null), localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"), $t.remove("partbot_selected_vehicle");
1881
+ }, tt = (w) => {
1882
+ var M = JSON.stringify({
1883
+ description: w.description,
1884
+ vehicle_ids: w.vehicle_ids,
1885
+ vehicle: {
1886
+ ...w.vehicle,
1887
+ year: s.factory_vehicle.year
1888
+ }
1889
+ });
1890
+ localStorage.setItem("partbot_selected_vehicle", M), $t.set("partbot_selected_vehicle", M, {
1891
+ secure: !0
1892
+ });
1893
+ var x = new CustomEvent("plate-search-change", {
1894
+ detail: {
1895
+ vehicle_ids: w.vehicle_ids
1896
+ }
1897
+ });
1898
+ document.dispatchEvent(x), E(w), B && B !== window.location.href && (r(!1), window.location.href = B + window.location.search);
1899
+ }, yt = (w) => {
1900
+ if (r(!1), N)
1901
+ try {
1902
+ const M = new URL(N, window.location.origin);
1903
+ if (M.origin !== window.location.origin) {
1904
+ console.warn(
1905
+ "Partbot: Blocked navigation to external productsUrl",
1906
+ M.toString()
1907
+ );
1908
+ return;
1909
+ }
1910
+ window.location.assign(M.href);
1911
+ } catch (M) {
1912
+ console.error(
1913
+ "Partbot: Invalid productsUrl provided",
1914
+ N,
1915
+ M
1916
+ );
1917
+ }
1918
+ }, Oe = (w) => {
1919
+ const M = [
1920
+ "series",
1921
+ "variant",
1922
+ "body",
1923
+ "fuel_type",
1924
+ "drivetrain",
1925
+ "engine",
1926
+ "engine_capacity",
1927
+ "cylinders"
1928
+ ];
1929
+ return Object.entries(w).filter(([x, P]) => P !== null && M.includes(x)).map(([x, P]) => x === "cylinders" ? `${P}cyl` : P).join(" ");
1930
+ };
1931
+ return /* @__PURE__ */ u(y, { children: [
1932
+ /* @__PURE__ */ u(
1933
+ "button",
1934
+ {
1935
+ onClick: (w) => r(!t),
1936
+ type: "button",
1937
+ className: `${we === "dark" ? "bg-transparent text-gray-100 hover:text-white" : "bg-white text-gray-700 hover:bg-gray-50"} inline-flex items-center ${oe ? "px-2 md:px-3" : "px-3"} text-md focus:outline-none focus:ring-bg-theme-color h-[44px] rounded-md border-4 border-double border-gray-400 font-license text-base font-medium shadow-sm transition cursor-pointer`,
1938
+ children: [
1939
+ /* @__PURE__ */ u(
1940
+ on,
1941
+ {
1942
+ weight: "fill",
1943
+ className: oe ? "h-5 w-5 md:-ml-1 md:mr-2" : "mr-2 -ml-1 h-5 w-5",
1944
+ "aria-hidden": "true"
1945
+ }
1946
+ ),
1947
+ /* @__PURE__ */ u("span", { className: oe ? "hidden md:inline" : "mt-0.5 md:inline", children: i || fe })
1948
+ ]
1949
+ }
1950
+ ),
1951
+ /* @__PURE__ */ u(
1952
+ "div",
1953
+ {
1954
+ className: `${t ? "modal-container modal-container-open" : "modal-container modal-container-close"}`,
1955
+ style: !t && !o ? { display: "none" } : {},
1956
+ onClick: (w) => {
1957
+ w.target === w.currentTarget && r(!1);
1958
+ },
1959
+ children: /* @__PURE__ */ u(
1960
+ "div",
1961
+ {
1962
+ role: "dialog",
1963
+ "aria-modal": "true",
1964
+ "aria-label": "Number plate search dialog",
1965
+ className: t ? "modal modal-open" : "modal modal-close",
1966
+ children: [
1967
+ /* @__PURE__ */ u("div", { className: "absolute top-0 right-0 pt-4 pr-4", children: /* @__PURE__ */ u(
1968
+ "button",
1969
+ {
1970
+ type: "button",
1971
+ className: "focus:outline-none focus:ring-bg-theme-color rounded-md bg-white text-gray-400 hover:text-gray-500",
1972
+ onClick: () => r(!1),
1973
+ children: [
1974
+ /* @__PURE__ */ u("span", { className: "sr-only", children: "Close" }),
1975
+ /* @__PURE__ */ u(an, { size: 16, weight: "bold", "aria-hidden": "true" })
1976
+ ]
1977
+ }
1978
+ ) }),
1979
+ s && !S && /* @__PURE__ */ u("div", { className: "modal-content", children: /* @__PURE__ */ u("div", { className: "mb-5 text-center", children: [
1980
+ /* @__PURE__ */ u("div", { className: "inline-flex items-center text-center text-2xl font-extrabold tracking-tight text-black", children: /* @__PURE__ */ u("div", { children: [
1981
+ "Results for",
1982
+ " ",
1983
+ /* @__PURE__ */ u("span", { className: "text-theme-color", children: [
1984
+ i,
1985
+ " (",
1986
+ d,
1987
+ ")"
1988
+ ] })
1989
+ ] }) }),
1990
+ /* @__PURE__ */ u("div", { className: "mt-6", children: [
1991
+ /* @__PURE__ */ u("div", { className: "modal-scroll-area", children: s.vehicles ? /* @__PURE__ */ u("div", { className: "grid gap-3 text-left", children: [
1992
+ s.vehicles.map(function(w, M) {
1993
+ return /* @__PURE__ */ u(
1994
+ "div",
1995
+ {
1996
+ className: "focus:outline-none relative grid cursor-pointer gap-4 rounded-lg border border-gray-300 bg-white px-4 py-4 shadow-sm hover:border-gray-400 sm:flex sm:justify-between",
1997
+ children: [
1998
+ /* @__PURE__ */ u("div", { className: "pr-5 text-xs", children: /* @__PURE__ */ u("div", { className: "grid gap-2", children: [
1999
+ /* @__PURE__ */ u("div", { className: "text-sm font-bold text-gray-900", children: w.description }),
2000
+ /* @__PURE__ */ u("div", { className: "text-gray-600", children: Oe(w.vehicle) })
2001
+ ] }) }),
2002
+ /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(
2003
+ "button",
2004
+ {
2005
+ className: "justify-center rounded-md border border-transparent bg-theme-color px-2 py-1.5 text-xs font-medium text-white shadow-sm",
2006
+ onClick: () => tt(w),
2007
+ children: "Select vehicle"
2008
+ }
2009
+ ) })
2010
+ ]
2011
+ },
2012
+ M
2013
+ );
2014
+ }),
2015
+ s.differing_attributes && s.vehicle_breakdown && s.vehicle_breakdown.length > 0 && /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u("details", { className: "[&_summary::-webkit-details-marker]:hidden group rounded-lg border border-gray-300 bg-white", children: [
2016
+ /* @__PURE__ */ u("summary", { className: "flex cursor-pointer items-center justify-between px-4 py-2 text-left text-sm font-medium text-gray-900", children: [
2017
+ /* @__PURE__ */ u("span", { children: "More options..." }),
2018
+ /* @__PURE__ */ u(
2019
+ "svg",
2020
+ {
2021
+ className: "!h-5 !w-5 text-gray-500 transition duration-300 group-open:rotate-180",
2022
+ xmlns: "http://www.w3.org/2000/svg",
2023
+ viewBox: "0 0 20 20",
2024
+ fill: "currentColor",
2025
+ children: /* @__PURE__ */ u(
2026
+ "path",
2027
+ {
2028
+ fillRule: "evenodd",
2029
+ d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
2030
+ clipRule: "evenodd"
2031
+ }
2032
+ )
2033
+ }
2034
+ )
2035
+ ] }),
2036
+ /* @__PURE__ */ u("div", { className: "border-t border-gray-200 px-4 py-3", children: /* @__PURE__ */ u("div", { className: "grid gap-3", children: s.vehicle_breakdown && s.vehicle_breakdown.map(
2037
+ (w, M) => /* @__PURE__ */ u(
2038
+ "div",
2039
+ {
2040
+ className: "flex items-center justify-between rounded-md border border-gray-200 p-3 text-sm",
2041
+ children: [
2042
+ /* @__PURE__ */ u("div", { children: s.differing_attributes.map(
2043
+ (x) => /* @__PURE__ */ u(
2044
+ "div",
2045
+ {
2046
+ className: "text-xs text-gray-600",
2047
+ children: [
2048
+ /* @__PURE__ */ u("span", { className: "font-medium capitalize", children: [
2049
+ x,
2050
+ ":"
2051
+ ] }),
2052
+ " ",
2053
+ w.vehicle[x]
2054
+ ]
2055
+ },
2056
+ x
2057
+ )
2058
+ ) }),
2059
+ /* @__PURE__ */ u(
2060
+ "button",
2061
+ {
2062
+ onClick: () => tt(w),
2063
+ className: "ml-4 rounded-md bg-theme-color px-3 py-1.5 text-xs font-medium text-white hover:bg-opacity-90",
2064
+ children: "Select"
2065
+ }
2066
+ )
2067
+ ]
2068
+ },
2069
+ M
2070
+ )
2071
+ ) }) })
2072
+ ] }) })
2073
+ ] }) : /* @__PURE__ */ u("div", { className: "my-5", children: /* @__PURE__ */ u(hn, { error: s.error }) }) }),
2074
+ s.vehicles && s.vehicles.length > 3 && /* @__PURE__ */ u("div", { className: "pb-4 text-center text-xs text-gray-500", children: "Scroll for more..." }),
2075
+ L && /* @__PURE__ */ u(
2076
+ "div",
2077
+ {
2078
+ className: "pl8srch-text mx-auto my-6 w-full text-sm text-gray-500",
2079
+ dangerouslySetInnerHTML: {
2080
+ __html: ao.sanitize(L)
2081
+ }
2082
+ }
2083
+ ),
2084
+ A !== so && /* @__PURE__ */ u(
2085
+ "button",
2086
+ {
2087
+ type: "button",
2088
+ className: "mb-5 hidden w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-base font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",
2089
+ onClick: He,
2090
+ children: [
2091
+ "Try Again",
2092
+ " ",
2093
+ /* @__PURE__ */ u(
2094
+ rn,
2095
+ {
2096
+ size: 16,
2097
+ weight: "bold",
2098
+ className: "ml-3",
2099
+ "aria-hidden": "true"
2100
+ }
2101
+ )
2102
+ ]
2103
+ }
2104
+ ),
2105
+ /* @__PURE__ */ u("div", { className: "align-center flex justify-between", children: [
2106
+ /* @__PURE__ */ u(
2107
+ "button",
2108
+ {
2109
+ onClick: Ie,
2110
+ className: "text-xs text-theme-color",
2111
+ children: "Report incorrect search results"
2112
+ }
2113
+ ),
2114
+ /* @__PURE__ */ u(
2115
+ "button",
2116
+ {
2117
+ onClick: et,
2118
+ className: "text-xs text-theme-color",
2119
+ children: [
2120
+ /* @__PURE__ */ u(
2121
+ tn,
2122
+ {
2123
+ size: 12,
2124
+ weight: "bold",
2125
+ className: "mr-1 inline"
2126
+ }
2127
+ ),
2128
+ " ",
2129
+ "Back to search"
2130
+ ]
2131
+ }
2132
+ )
2133
+ ] })
2134
+ ] })
2135
+ ] }) }),
2136
+ S && /* @__PURE__ */ u("div", { className: "modal-content", children: /* @__PURE__ */ u("div", { className: "mb-5 text-center", children: [
2137
+ /* @__PURE__ */ u("div", { className: "grid items-center", children: [
2138
+ /* @__PURE__ */ u("div", { className: "inline-flex items-center justify-center gap-1 text-center text-2xl font-extrabold tracking-tight text-black", children: [
2139
+ /* @__PURE__ */ u("span", { children: "Selected Vehicle" }),
2140
+ i && /* @__PURE__ */ u("span", { className: "text-theme-color", children: [
2141
+ "(",
2142
+ i,
2143
+ ")"
2144
+ ] })
2145
+ ] }),
2146
+ /* @__PURE__ */ u("div", { className: "text-medium mt-5 text-sm text-gray-500", children: s && s.factory_vehicle ? `${s.factory_vehicle.make} ${s.factory_vehicle.model} ${s.factory_vehicle.year}` : S.description }),
2147
+ S.vehicle && /* @__PURE__ */ u("div", { className: "mt-2 text-xs text-gray-600", children: Oe(S.vehicle) })
2148
+ ] }),
2149
+ /* @__PURE__ */ u("div", { className: "mt-6 flex gap-4", children: [
2150
+ /* @__PURE__ */ u(
2151
+ "button",
2152
+ {
2153
+ className: "mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",
2154
+ onClick: et,
2155
+ children: "Clear Vehicle"
2156
+ }
2157
+ ),
2158
+ N && /* @__PURE__ */ u(
2159
+ "button",
2160
+ {
2161
+ className: "mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",
2162
+ onClick: yt,
2163
+ children: "Show Products"
2164
+ }
2165
+ )
2166
+ ] })
2167
+ ] }) }),
2168
+ !S && !s && /* @__PURE__ */ u("div", { className: "modal-content", children: [
2169
+ /* @__PURE__ */ u("div", { className: "mb-5 text-center", children: [
2170
+ /* @__PURE__ */ u("div", { className: "inline-flex items-center text-2xl font-extrabold tracking-tight text-black", children: /* @__PURE__ */ u("span", { children: "Number Plate Search" }) }),
2171
+ /* @__PURE__ */ u(
2172
+ "div",
2173
+ {
2174
+ className: "[&>a]:text-theme-color hover:[&>a]:text-theme-color pl8srch-text text-balance mx-auto mt-3 mb-4 max-w-sm text-sm text-gray-500 whitespace-normal!",
2175
+ dangerouslySetInnerHTML: {
2176
+ __html: ao.sanitize(ie)
2177
+ }
2178
+ }
2179
+ )
2180
+ ] }),
2181
+ /* @__PURE__ */ u(
2182
+ "form",
2183
+ {
2184
+ onSubmit: K,
2185
+ className: "flex flex-col items-center text-black",
2186
+ children: [
2187
+ /* @__PURE__ */ u(
2188
+ "input",
2189
+ {
2190
+ type: "text",
2191
+ name: "plate",
2192
+ ref: _,
2193
+ className: `pl8srch-input h-[130px] w-full rounded-xl border-[6px] px-6 pt-5 pb-2 text-center font-license text-[60px] uppercase md:h-[150px] md:border-8 md:text-[75px] focus:outline-none focus:ring-bg-theme-color focus:border-theme-color transition-all duration-200 ${i ? "border-theme-color" : "border-stone-300"}`,
2194
+ placeholder: fe,
2195
+ value: i,
2196
+ onChange: (w) => l(w.target.value.toUpperCase())
2197
+ }
2198
+ ),
2199
+ /* @__PURE__ */ u("span", { className: "relative z-0 my-5 flex w-full rounded-md items-stretch shadow-sm", children: io.map((w, M) => {
2200
+ let x = "bg-white text-gray-700 hover:bg-gray-50 border-gray-300";
2201
+ return w === d && (x = "bg-theme-color text-white hover:bg-theme-color border-theme-color"), M === 0 ? /* @__PURE__ */ u(
2202
+ "button",
2203
+ {
2204
+ onClick: (P) => h(w),
2205
+ type: "button",
2206
+ className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative inline-flex items-center cursor-pointer rounded-l-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`,
2207
+ children: w
2208
+ },
2209
+ w
2210
+ ) : io.length === M + 1 ? /* @__PURE__ */ u(
2211
+ "button",
2212
+ {
2213
+ onClick: (P) => h(w),
2214
+ type: "button",
2215
+ className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer rounded-r-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`,
2216
+ children: w
2217
+ },
2218
+ w
2219
+ ) : /* @__PURE__ */ u(
2220
+ "button",
2221
+ {
2222
+ onClick: (P) => h(w),
2223
+ type: "button",
2224
+ className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`,
2225
+ children: w
2226
+ },
2227
+ w
2228
+ );
2229
+ }) }),
2230
+ /* @__PURE__ */ u(
2231
+ "button",
2232
+ {
2233
+ type: "submit",
2234
+ className: "hover:bg-theme-color-800 flex w-full items-center justify-center rounded-md border border-transparent bg-theme-color px-4 py-2 text-base font-medium text-white shadow-sm",
2235
+ children: [
2236
+ "Find your vehicle",
2237
+ c ? /* @__PURE__ */ u(
2238
+ nn,
2239
+ {
2240
+ weight: "bold",
2241
+ className: "ml-3 h-4 w-4 animate-spin",
2242
+ "aria-hidden": "true"
2243
+ }
2244
+ ) : ""
2245
+ ]
2246
+ }
2247
+ )
2248
+ ]
2249
+ }
2250
+ )
2251
+ ] }),
2252
+ /* @__PURE__ */ u("div", { className: "mt-8 text-center", children: /* @__PURE__ */ u(
2253
+ "a",
2254
+ {
2255
+ href: `https://use.partbot.io/?ref=${window.location.hostname}`,
2256
+ target: "_blank",
2257
+ rel: "noreferrer",
2258
+ className: "mx-auto inline-flex max-w-sm items-center text-center text-xs font-medium tracking-tight text-gray-500 transition gap-2",
2259
+ children: [
2260
+ /* @__PURE__ */ u("span", { children: "Powered by" }),
2261
+ /* @__PURE__ */ u(Ca, { className: "inline h-4" })
2262
+ ]
2263
+ }
2264
+ ) })
2265
+ ]
2266
+ }
2267
+ )
2268
+ }
2269
+ )
2270
+ ] });
2271
+ }
2272
+ fn.propTypes = {
2273
+ apiKey: Q.string.isRequired,
2274
+ callbackUrl: Q.string,
2275
+ productsUrl: Q.string,
2276
+ themeColor: Q.string,
2277
+ useGeolocation: Q.bool,
2278
+ buttonTheme: Q.oneOf(["light", "dark"]),
2279
+ responsive: Q.bool,
2280
+ placeholder: Q.string,
2281
+ intro: Q.string,
2282
+ supportMessage: Q.string
2283
+ };
2284
+ const co = `@import"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap";/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-leading:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}plate-search,plate-search *,plate-search:before,plate-search:after,plate-search::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-leading:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}:host,:host *,:host:before,:host:after,:host::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-leading:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}plate-search,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.modal-container{inset:calc(var(--spacing)*0);top:calc(var(--spacing)*0);z-index:9999;background-color:#00000080;justify-content:center;align-items:flex-start;width:100vw;height:100vh;display:flex;position:fixed;overflow-y:auto}@supports (color:color-mix(in lab,red,red)){.modal-container{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.modal-container{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (min-width:48rem){.modal-container{align-items:center}}.modal-container-open{pointer-events:auto;opacity:1;--tw-duration:.2s;--tw-ease:var(--ease-out);transition-duration:.2s;transition-timing-function:var(--ease-out)}.modal-container-close{pointer-events:none;opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}.modal{width:100vw;height:100vh;transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);overscroll-behavior:auto;background-color:var(--color-white);padding-inline:calc(var(--spacing)*6);padding-top:calc(var(--spacing)*8);padding-bottom:calc(var(--spacing)*8);text-align:left;vertical-align:bottom;font-family:var(--font-sans);--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));display:inline-block;overflow:hidden}@media (min-width:40rem){.modal{margin-block:calc(var(--spacing)*8);width:100%;max-width:var(--container-lg);vertical-align:middle}}@media (min-width:48rem){.modal{margin:calc(var(--spacing)*3);height:auto;max-width:var(--container-lg);border-radius:var(--radius-xl);padding-inline:calc(var(--spacing)*12)}}.modal-close{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}@media (min-width:40rem){.modal-close{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}}.modal-open{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:1;--tw-duration:.3s;--tw-ease:var(--ease-out);transition-duration:.3s;transition-timing-function:var(--ease-out)}.modal-scroll-area{margin-top:calc(var(--spacing)*3);margin-bottom:calc(var(--spacing)*3);max-height:380px;overflow:auto}.pl8srch-text a{color:var(--partbot-theme);opacity:.8;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.2s;text-decoration-line:underline;transition-duration:.2s}@media (hover:hover){.pl8srch-text a:hover{color:var(--partbot-theme);opacity:1}}}@layer utilities{.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-0{z-index:0}.z-\\[10000\\]{z-index:10000}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.-ml-px{margin-left:-1px}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\\!h-5{height:calc(var(--spacing)*5)!important}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-\\[44px\\]{height:44px}.h-\\[130px\\]{height:130px}.h-full{height:100%}.min-h-screen{min-height:100vh}.\\!w-5{width:calc(var(--spacing)*5)!important}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:var(--container-sm)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-\\[6px\\]{border-style:var(--tw-border-style);border-width:6px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-double{--tw-border-style:double;border-style:double}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-stone-300{border-color:var(--color-stone-300)}.border-theme-color{border-color:var(--partbot-theme)}.border-transparent{border-color:#0000}.border-t-white\\/20{border-top-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-t-white\\/20{border-top-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-b-emerald-600{border-bottom-color:var(--color-emerald-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-theme-color{background-color:var(--partbot-theme)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\\[url\\(\\'\\/background-2\\.png\\'\\)\\]{background-image:url(/background-2.png)}.from-amber-50\\/50{--tw-gradient-from:#fffbeb80}@supports (color:color-mix(in lab,red,red)){.from-amber-50\\/50{--tw-gradient-from:color-mix(in oklab,var(--color-amber-50)50%,transparent)}}.from-amber-50\\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-amber-800\\/10{--tw-gradient-to:#953d001a}@supports (color:color-mix(in lab,red,red)){.to-amber-800\\/10{--tw-gradient-to:color-mix(in oklab,var(--color-amber-800)10%,transparent)}}.to-amber-800\\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-cover{background-size:cover}.bg-top-right{background-position:100% 0}.bg-no-repeat{background-repeat:no-repeat}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[60px\\]{font-size:60px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-balance{text-wrap:balance}.whitespace-normal\\!{white-space:normal!important}.whitespace-nowrap{white-space:nowrap}.text-black{color:var(--color-black)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-700{color:var(--color-emerald-700)}.text-gray-100{color:var(--color-gray-100)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-400{color:var(--color-red-400)}.text-red-800{color:var(--color-red-800)}.text-theme-color{color:var(--partbot-theme)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.group-open\\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-theme-color:hover{background-color:var(--partbot-theme)}.hover\\:text-gray-500:hover{color:var(--color-gray-500)}.hover\\:text-white:hover{color:var(--color-white)}}.focus\\:z-10:focus{z-index:10}.focus\\:border-bg-theme-color:focus,.focus\\:border-theme-color:focus{border-color:var(--partbot-theme)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-bg-theme-color:focus{--tw-ring-color:var(--partbot-theme)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\\:flex{display:flex}.sm\\:max-w-prose{max-width:65ch}.sm\\:justify-between{justify-content:space-between}.sm\\:overflow-hidden{overflow:hidden}.sm\\:px-3{padding-inline:calc(var(--spacing)*3)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\\:mt-6{margin-top:calc(var(--spacing)*6)}.md\\:mt-12{margin-top:calc(var(--spacing)*12)}.md\\:mr-2{margin-right:calc(var(--spacing)*2)}.md\\:-ml-1{margin-left:calc(var(--spacing)*-1)}.md\\:inline{display:inline}.md\\:h-\\[150px\\]{height:150px}.md\\:max-w-2xl{max-width:var(--container-2xl)}.md\\:items-center{align-items:center}.md\\:justify-center{justify-content:center}.md\\:border-8{border-style:var(--tw-border-style);border-width:8px}.md\\:px-3{padding-inline:calc(var(--spacing)*3)}.md\\:py-12{padding-block:calc(var(--spacing)*12)}.md\\:text-center{text-align:center}.md\\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.md\\:text-\\[75px\\]{font-size:75px}}@media (min-width:64rem){.lg\\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\\:py-12{padding-block:calc(var(--spacing)*12)}.lg\\:text-8xl{font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.lg\\:leading-20{--tw-leading:calc(var(--spacing)*20);line-height:calc(var(--spacing)*20)}}.\\[\\&_summary\\:\\:-webkit-details-marker\\]\\:hidden summary::-webkit-details-marker{display:none}.\\[\\&\\>a\\]\\:text-theme-color>a{color:var(--partbot-theme)}@media (hover:hover){.hover\\:\\[\\&\\>a\\]\\:text-theme-color:hover>a{color:var(--partbot-theme)}}.font-license{font-family:var(--font-license)}}@font-face{font-family:License Plate;src:url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)format("woff2");font-weight:400;font-style:normal}:host{overflow-wrap:break-word;white-space:normal;display:block;overflow:auto}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-leading{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}`, Na = "3.0.3", La = {
2285
+ version: Na
2286
+ };
2287
+ function uo({ domElement: e }) {
2288
+ const t = e.getAttribute("data-api-key"), r = e.getAttribute("data-callback-url"), o = e.getAttribute("data-products-url"), n = e.getAttribute("data-theme-color"), i = e.getAttribute("data-use-geolocation") === "true", l = e.getAttribute("data-button"), d = e.getAttribute("data-responsive") ? e.getAttribute("data-responsive") === "true" : !0, h = e.getAttribute("data-placeholder"), s = e.getAttribute("data-intro"), m = e.getAttribute("data-support-message");
2289
+ return te(() => {
2290
+ console.info(
2291
+ "Vehicle Registration Search powered by Partbot https://use.partbot.io"
2292
+ );
2293
+ }, []), /* @__PURE__ */ u("div", { className: "App", children: /* @__PURE__ */ u(
2294
+ fn,
2295
+ {
2296
+ className: "partbot",
2297
+ apiKey: t,
2298
+ callbackUrl: r,
2299
+ productsUrl: o,
2300
+ themeColor: n,
2301
+ useGeolocation: i,
2302
+ buttonTheme: l,
2303
+ responsive: d,
2304
+ placeholder: h,
2305
+ intro: s,
2306
+ supportMessage: m
2307
+ }
2308
+ ) });
2309
+ }
2310
+ class Ne extends HTMLElement {
2311
+ constructor() {
2312
+ super(), this.apiKey = this.dataset.apiKey, this.callbackUrl = this.dataset.callbackUrl, this.productsUrl = this.dataset.productsUrl, this.themeColor = this.dataset.themeColor, this.useGeolocation = this.dataset.useGeolocation, this.debug = this.dataset.debug === "true", this.assetUrl = this.dataset.assetUrl, this.buttonTheme = this.dataset.button, this.responsive = this.dataset.responsive ? this.dataset.responsive === "true" : !0, this.placeholder = this.dataset.placeholder, this.intro = this.dataset.intro, this.supportMessage = this.dataset.supportMessage;
2313
+ }
2314
+ connectedCallback() {
2315
+ this.style.visibility = "hidden";
2316
+ let t;
2317
+ if (this.assetUrl && (t = new URL(
2318
+ this.assetUrl.replace(/\/$/, "") + "/css/plate-search.css",
2319
+ window.location.href
2320
+ )), !t && this.debug && (t = new URL("/css/plate-search.css", window.location.href)), !t) {
2321
+ const l = La.version;
2322
+ t = new URL(
2323
+ `https://unpkg.com/@cartbot/plate-search@${l}/build/dist/css/plate-search.css`
2324
+ );
2325
+ }
2326
+ const o = [
2327
+ ["data-api-key", this.apiKey],
2328
+ ["data-callback-url", this.callbackUrl],
2329
+ ["data-products-url", this.productsUrl],
2330
+ ["data-theme-color", this.themeColor],
2331
+ ["data-use-geolocation", this.useGeolocation],
2332
+ ["data-button", this.buttonTheme],
2333
+ ["data-responsive", this.responsive],
2334
+ ["data-placeholder", this.placeholder],
2335
+ ["data-intro", this.intro],
2336
+ ["data-support-message", this.supportMessage]
2337
+ ].filter(([l, d]) => d != null).map(([l, d]) => `${l}="${d}"`).join(" "), n = (l, d) => {
2338
+ if (!/@import/i.test(l) && "adoptedStyleSheets" in Document.prototype)
2339
+ try {
2340
+ const m = new CSSStyleSheet();
2341
+ return m.replaceSync(l), console.info(`Partbot: using constructable stylesheet (${d})`), m;
2342
+ } catch (m) {
2343
+ console.warn("Partbot: constructable sheet failed, falling back", m);
2344
+ }
2345
+ const s = document.createElement("style");
2346
+ return s.textContent = l, console.info(`Partbot: using <style> element fallback (${d})`), s;
2347
+ };
2348
+ Ne.__stylePromise || (t ? Ne.__stylePromise = fetch(t).then((l) => {
2349
+ if (!l.ok) throw new Error(`HTTP ${l.status}`);
2350
+ return l.text();
2351
+ }).then((l) => n(l, t.href)).catch((l) => (console.warn(
2352
+ "Partbot: external stylesheet failed, falling back to inline",
2353
+ l
2354
+ ), n(co, "inline-fallback"))) : Ne.__stylePromise = Promise.resolve(
2355
+ n(co, "inline")
2356
+ ));
2357
+ const i = document.createElement("template");
2358
+ if (i.innerHTML = `
2359
+ <div class="partbot-plate-search isolate" ${o}></div>`, this.attachShadow({ mode: "open" }), Ne.__stylePromise.then((l) => {
2360
+ var d, h;
2361
+ if (l) {
2362
+ if (l instanceof CSSStyleSheet ? this.shadowRoot.adoptedStyleSheets = [l] : l instanceof HTMLStyleElement && this.shadowRoot.prepend(l.cloneNode(!0)), this.debug)
2363
+ try {
2364
+ const s = (d = this.shadowRoot.adoptedStyleSheets) == null ? void 0 : d[0];
2365
+ s && console.info(
2366
+ "Partbot debug: first rule in adopted sheet →",
2367
+ (h = s.cssRules[0]) == null ? void 0 : h.cssText
2368
+ );
2369
+ const m = getComputedStyle(this).getPropertyValue("--tw-border-style");
2370
+ console.info(
2371
+ "Partbot debug: --tw-border-style on :host →",
2372
+ m
2373
+ );
2374
+ } catch (s) {
2375
+ console.warn("Partbot debug: failed to inspect stylesheet", s);
2376
+ }
2377
+ requestAnimationFrame(() => {
2378
+ this.style.visibility = "visible";
2379
+ });
2380
+ }
2381
+ }), this.shadowRoot.appendChild(i.content.cloneNode(!0)), !document.head.querySelector("style[data-partbot-license]")) {
2382
+ const l = document.createElement("style");
2383
+ l.setAttribute("data-partbot-license", ""), l.appendChild(
2384
+ document.createTextNode(`
2385
+ @font-face {
2386
+ font-family: "License Plate";
2387
+ src: url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)
2388
+ format("woff2");
2389
+ font-weight: normal;
2390
+ font-style: normal;
2391
+ }`)
2392
+ ), document.head.appendChild(l);
2393
+ }
2394
+ }
2395
+ }
2396
+ customElements.define("plate-search", Ne);
2397
+ typeof window < "u" && (window.React = window.React || gt, window.ReactDOM = window.ReactDOM || Bn);
2398
+ const Se = document.querySelector("plate-search");
2399
+ var po;
2400
+ if (Se) {
2401
+ const e = ((po = Se.shadowRoot) == null ? void 0 : po.querySelector(
2402
+ ".partbot-plate-search"
2403
+ )) || Se.querySelector(".partbot-plate-search");
2404
+ if (!e)
2405
+ console.error("Partbot: failed to locate .partbot-plate-search container");
2406
+ else {
2407
+ const t = [
2408
+ ...Se.shadowRoot ? Se.shadowRoot.querySelectorAll("link") : Se.querySelectorAll("link")
2409
+ ];
2410
+ if (t.length === 0)
2411
+ _t(
2412
+ gt.createElement(uo, { domElement: e }),
2413
+ e
2414
+ );
2415
+ else {
2416
+ let r = 0;
2417
+ const o = () => {
2418
+ ++r >= t.length && _t(
2419
+ gt.createElement(uo, { domElement: e }),
2420
+ e
2421
+ );
2422
+ };
2423
+ t.forEach((n) => {
2424
+ n.sheet || n.complete ? o() : (n.addEventListener("load", o, { once: !0 }), n.addEventListener("error", o, { once: !0 }));
2425
+ });
2426
+ }
2427
+ }
2428
+ } else
2429
+ console.warn("Missing <plate-search> element");
2430
+ export {
2431
+ fn as PlateSearch
2432
+ };