@inploi/plugin-chatbot 3.28.7 → 3.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4682 @@
1
+ var pi = Object.defineProperty;
2
+ var hi = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var Mr = (e, t, r) => (hi(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ import { createPlugin as vi } from "@inploi/sdk";
5
+ var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
+ function _i(e) {
7
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
+ }
9
+ var mi = Array.isArray, vr = mi, bi = typeof Qe == "object" && Qe && Qe.Object === Object && Qe, gi = bi, wi = gi, yi = typeof self == "object" && self && self.Object === Object && self, ki = wi || yi || Function("return this")(), _r = ki, xi = _r, $i = xi.Symbol, mr = $i, jr = mr, Rn = Object.prototype, Si = Rn.hasOwnProperty, Ci = Rn.toString, Re = jr ? jr.toStringTag : void 0;
10
+ function Ei(e) {
11
+ var t = Si.call(e, Re), r = e[Re];
12
+ try {
13
+ e[Re] = void 0;
14
+ var n = !0;
15
+ } catch {
16
+ }
17
+ var o = Ci.call(e);
18
+ return n && (t ? e[Re] = r : delete e[Re]), o;
19
+ }
20
+ var Oi = Ei, Pi = Object.prototype, Ti = Pi.toString;
21
+ function Ii(e) {
22
+ return Ti.call(e);
23
+ }
24
+ var Di = Ii, Fr = mr, Ni = Oi, Ai = Di, Mi = "[object Null]", ji = "[object Undefined]", Lr = Fr ? Fr.toStringTag : void 0;
25
+ function Fi(e) {
26
+ return e == null ? e === void 0 ? ji : Mi : Lr && Lr in Object(e) ? Ni(e) : Ai(e);
27
+ }
28
+ var zn = Fi;
29
+ function Li(e) {
30
+ return e != null && typeof e == "object";
31
+ }
32
+ var Ri = Li, zi = zn, Bi = Ri, Ui = "[object Symbol]";
33
+ function Hi(e) {
34
+ return typeof e == "symbol" || Bi(e) && zi(e) == Ui;
35
+ }
36
+ var br = Hi, Wi = vr, Vi = br, Ki = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Gi = /^\w*$/;
37
+ function qi(e, t) {
38
+ if (Wi(e))
39
+ return !1;
40
+ var r = typeof e;
41
+ return r == "number" || r == "symbol" || r == "boolean" || e == null || Vi(e) ? !0 : Gi.test(e) || !Ki.test(e) || t != null && e in Object(t);
42
+ }
43
+ var Yi = qi;
44
+ function Xi(e) {
45
+ var t = typeof e;
46
+ return e != null && (t == "object" || t == "function");
47
+ }
48
+ var Bn = Xi, Zi = zn, Ji = Bn, Qi = "[object AsyncFunction]", ea = "[object Function]", ta = "[object GeneratorFunction]", ra = "[object Proxy]";
49
+ function na(e) {
50
+ if (!Ji(e))
51
+ return !1;
52
+ var t = Zi(e);
53
+ return t == ea || t == ta || t == Qi || t == ra;
54
+ }
55
+ var oa = na, ia = _r, aa = ia["__core-js_shared__"], sa = aa, Dt = sa, Rr = function() {
56
+ var e = /[^.]+$/.exec(Dt && Dt.keys && Dt.keys.IE_PROTO || "");
57
+ return e ? "Symbol(src)_1." + e : "";
58
+ }();
59
+ function ca(e) {
60
+ return !!Rr && Rr in e;
61
+ }
62
+ var la = ca, ua = Function.prototype, da = ua.toString;
63
+ function fa(e) {
64
+ if (e != null) {
65
+ try {
66
+ return da.call(e);
67
+ } catch {
68
+ }
69
+ try {
70
+ return e + "";
71
+ } catch {
72
+ }
73
+ }
74
+ return "";
75
+ }
76
+ var pa = fa, ha = oa, va = la, _a = Bn, ma = pa, ba = /[\\^$.*+?()[\]{}|]/g, ga = /^\[object .+?Constructor\]$/, wa = Function.prototype, ya = Object.prototype, ka = wa.toString, xa = ya.hasOwnProperty, $a = RegExp(
77
+ "^" + ka.call(xa).replace(ba, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
78
+ );
79
+ function Sa(e) {
80
+ if (!_a(e) || va(e))
81
+ return !1;
82
+ var t = ha(e) ? $a : ga;
83
+ return t.test(ma(e));
84
+ }
85
+ var Ca = Sa;
86
+ function Ea(e, t) {
87
+ return e == null ? void 0 : e[t];
88
+ }
89
+ var Oa = Ea, Pa = Ca, Ta = Oa;
90
+ function Ia(e, t) {
91
+ var r = Ta(e, t);
92
+ return Pa(r) ? r : void 0;
93
+ }
94
+ var Un = Ia, Da = Un, Na = Da(Object, "create"), yt = Na, zr = yt;
95
+ function Aa() {
96
+ this.__data__ = zr ? zr(null) : {}, this.size = 0;
97
+ }
98
+ var Ma = Aa;
99
+ function ja(e) {
100
+ var t = this.has(e) && delete this.__data__[e];
101
+ return this.size -= t ? 1 : 0, t;
102
+ }
103
+ var Fa = ja, La = yt, Ra = "__lodash_hash_undefined__", za = Object.prototype, Ba = za.hasOwnProperty;
104
+ function Ua(e) {
105
+ var t = this.__data__;
106
+ if (La) {
107
+ var r = t[e];
108
+ return r === Ra ? void 0 : r;
109
+ }
110
+ return Ba.call(t, e) ? t[e] : void 0;
111
+ }
112
+ var Ha = Ua, Wa = yt, Va = Object.prototype, Ka = Va.hasOwnProperty;
113
+ function Ga(e) {
114
+ var t = this.__data__;
115
+ return Wa ? t[e] !== void 0 : Ka.call(t, e);
116
+ }
117
+ var qa = Ga, Ya = yt, Xa = "__lodash_hash_undefined__";
118
+ function Za(e, t) {
119
+ var r = this.__data__;
120
+ return this.size += this.has(e) ? 0 : 1, r[e] = Ya && t === void 0 ? Xa : t, this;
121
+ }
122
+ var Ja = Za, Qa = Ma, es = Fa, ts = Ha, rs = qa, ns = Ja;
123
+ function De(e) {
124
+ var t = -1, r = e == null ? 0 : e.length;
125
+ for (this.clear(); ++t < r; ) {
126
+ var n = e[t];
127
+ this.set(n[0], n[1]);
128
+ }
129
+ }
130
+ De.prototype.clear = Qa;
131
+ De.prototype.delete = es;
132
+ De.prototype.get = ts;
133
+ De.prototype.has = rs;
134
+ De.prototype.set = ns;
135
+ var os = De;
136
+ function is() {
137
+ this.__data__ = [], this.size = 0;
138
+ }
139
+ var as = is;
140
+ function ss(e, t) {
141
+ return e === t || e !== e && t !== t;
142
+ }
143
+ var cs = ss, ls = cs;
144
+ function us(e, t) {
145
+ for (var r = e.length; r--; )
146
+ if (ls(e[r][0], t))
147
+ return r;
148
+ return -1;
149
+ }
150
+ var kt = us, ds = kt, fs = Array.prototype, ps = fs.splice;
151
+ function hs(e) {
152
+ var t = this.__data__, r = ds(t, e);
153
+ if (r < 0)
154
+ return !1;
155
+ var n = t.length - 1;
156
+ return r == n ? t.pop() : ps.call(t, r, 1), --this.size, !0;
157
+ }
158
+ var vs = hs, _s = kt;
159
+ function ms(e) {
160
+ var t = this.__data__, r = _s(t, e);
161
+ return r < 0 ? void 0 : t[r][1];
162
+ }
163
+ var bs = ms, gs = kt;
164
+ function ws(e) {
165
+ return gs(this.__data__, e) > -1;
166
+ }
167
+ var ys = ws, ks = kt;
168
+ function xs(e, t) {
169
+ var r = this.__data__, n = ks(r, e);
170
+ return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
171
+ }
172
+ var $s = xs, Ss = as, Cs = vs, Es = bs, Os = ys, Ps = $s;
173
+ function Ne(e) {
174
+ var t = -1, r = e == null ? 0 : e.length;
175
+ for (this.clear(); ++t < r; ) {
176
+ var n = e[t];
177
+ this.set(n[0], n[1]);
178
+ }
179
+ }
180
+ Ne.prototype.clear = Ss;
181
+ Ne.prototype.delete = Cs;
182
+ Ne.prototype.get = Es;
183
+ Ne.prototype.has = Os;
184
+ Ne.prototype.set = Ps;
185
+ var Ts = Ne, Is = Un, Ds = _r, Ns = Is(Ds, "Map"), As = Ns, Br = os, Ms = Ts, js = As;
186
+ function Fs() {
187
+ this.size = 0, this.__data__ = {
188
+ hash: new Br(),
189
+ map: new (js || Ms)(),
190
+ string: new Br()
191
+ };
192
+ }
193
+ var Ls = Fs;
194
+ function Rs(e) {
195
+ var t = typeof e;
196
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
197
+ }
198
+ var zs = Rs, Bs = zs;
199
+ function Us(e, t) {
200
+ var r = e.__data__;
201
+ return Bs(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
202
+ }
203
+ var xt = Us, Hs = xt;
204
+ function Ws(e) {
205
+ var t = Hs(this, e).delete(e);
206
+ return this.size -= t ? 1 : 0, t;
207
+ }
208
+ var Vs = Ws, Ks = xt;
209
+ function Gs(e) {
210
+ return Ks(this, e).get(e);
211
+ }
212
+ var qs = Gs, Ys = xt;
213
+ function Xs(e) {
214
+ return Ys(this, e).has(e);
215
+ }
216
+ var Zs = Xs, Js = xt;
217
+ function Qs(e, t) {
218
+ var r = Js(this, e), n = r.size;
219
+ return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
220
+ }
221
+ var ec = Qs, tc = Ls, rc = Vs, nc = qs, oc = Zs, ic = ec;
222
+ function Ae(e) {
223
+ var t = -1, r = e == null ? 0 : e.length;
224
+ for (this.clear(); ++t < r; ) {
225
+ var n = e[t];
226
+ this.set(n[0], n[1]);
227
+ }
228
+ }
229
+ Ae.prototype.clear = tc;
230
+ Ae.prototype.delete = rc;
231
+ Ae.prototype.get = nc;
232
+ Ae.prototype.has = oc;
233
+ Ae.prototype.set = ic;
234
+ var ac = Ae, Hn = ac, sc = "Expected a function";
235
+ function gr(e, t) {
236
+ if (typeof e != "function" || t != null && typeof t != "function")
237
+ throw new TypeError(sc);
238
+ var r = function() {
239
+ var n = arguments, o = t ? t.apply(this, n) : n[0], i = r.cache;
240
+ if (i.has(o))
241
+ return i.get(o);
242
+ var a = e.apply(this, n);
243
+ return r.cache = i.set(o, a) || i, a;
244
+ };
245
+ return r.cache = new (gr.Cache || Hn)(), r;
246
+ }
247
+ gr.Cache = Hn;
248
+ var cc = gr, lc = cc, uc = 500;
249
+ function dc(e) {
250
+ var t = lc(e, function(n) {
251
+ return r.size === uc && r.clear(), n;
252
+ }), r = t.cache;
253
+ return t;
254
+ }
255
+ var fc = dc, pc = fc, hc = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, vc = /\\(\\)?/g, _c = pc(function(e) {
256
+ var t = [];
257
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(hc, function(r, n, o, i) {
258
+ t.push(o ? i.replace(vc, "$1") : n || r);
259
+ }), t;
260
+ }), mc = _c;
261
+ function bc(e, t) {
262
+ for (var r = -1, n = e == null ? 0 : e.length, o = Array(n); ++r < n; )
263
+ o[r] = t(e[r], r, e);
264
+ return o;
265
+ }
266
+ var gc = bc, Ur = mr, wc = gc, yc = vr, kc = br, xc = 1 / 0, Hr = Ur ? Ur.prototype : void 0, Wr = Hr ? Hr.toString : void 0;
267
+ function Wn(e) {
268
+ if (typeof e == "string")
269
+ return e;
270
+ if (yc(e))
271
+ return wc(e, Wn) + "";
272
+ if (kc(e))
273
+ return Wr ? Wr.call(e) : "";
274
+ var t = e + "";
275
+ return t == "0" && 1 / e == -xc ? "-0" : t;
276
+ }
277
+ var $c = Wn, Sc = $c;
278
+ function Cc(e) {
279
+ return e == null ? "" : Sc(e);
280
+ }
281
+ var Ec = Cc, Oc = vr, Pc = Yi, Tc = mc, Ic = Ec;
282
+ function Dc(e, t) {
283
+ return Oc(e) ? e : Pc(e, t) ? [e] : Tc(Ic(e));
284
+ }
285
+ var Nc = Dc, Ac = br, Mc = 1 / 0;
286
+ function jc(e) {
287
+ if (typeof e == "string" || Ac(e))
288
+ return e;
289
+ var t = e + "";
290
+ return t == "0" && 1 / e == -Mc ? "-0" : t;
291
+ }
292
+ var Fc = jc, Lc = Nc, Rc = Fc;
293
+ function zc(e, t) {
294
+ t = Lc(t, e);
295
+ for (var r = 0, n = t.length; e != null && r < n; )
296
+ e = e[Rc(t[r++])];
297
+ return r && r == n ? e : void 0;
298
+ }
299
+ var Bc = zc, Uc = Bc;
300
+ function Hc(e, t, r) {
301
+ var n = e == null ? void 0 : Uc(e, t);
302
+ return n === void 0 ? r : n;
303
+ }
304
+ var Wc = Hc;
305
+ const Vc = /* @__PURE__ */ _i(Wc);
306
+ var Ye, g, Vn, Kn, he, Vr, Gn, Xt, qn, Se = {}, Yn = [], Kc = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, $t = Array.isArray;
307
+ function J(e, t) {
308
+ for (var r in t)
309
+ e[r] = t[r];
310
+ return e;
311
+ }
312
+ function Xn(e) {
313
+ var t = e.parentNode;
314
+ t && t.removeChild(e);
315
+ }
316
+ function w(e, t, r) {
317
+ var n, o, i, a = {};
318
+ for (i in t)
319
+ i == "key" ? n = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
320
+ if (arguments.length > 2 && (a.children = arguments.length > 3 ? Ye.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null)
321
+ for (i in e.defaultProps)
322
+ a[i] === void 0 && (a[i] = e.defaultProps[i]);
323
+ return Ue(e, a, n, o, null);
324
+ }
325
+ function Ue(e, t, r, n, o) {
326
+ var i = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: o ?? ++Vn };
327
+ return o == null && g.vnode != null && g.vnode(i), i;
328
+ }
329
+ function Zn() {
330
+ return { current: null };
331
+ }
332
+ function j(e) {
333
+ return e.children;
334
+ }
335
+ function G(e, t) {
336
+ this.props = e, this.context = t;
337
+ }
338
+ function pt(e, t) {
339
+ if (t == null)
340
+ return e.__ ? pt(e.__, e.__.__k.indexOf(e) + 1) : null;
341
+ for (var r; t < e.__k.length; t++)
342
+ if ((r = e.__k[t]) != null && r.__e != null)
343
+ return r.__e;
344
+ return typeof e.type == "function" ? pt(e) : null;
345
+ }
346
+ function Jn(e) {
347
+ var t, r;
348
+ if ((e = e.__) != null && e.__c != null) {
349
+ for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++)
350
+ if ((r = e.__k[t]) != null && r.__e != null) {
351
+ e.__e = e.__c.base = r.__e;
352
+ break;
353
+ }
354
+ return Jn(e);
355
+ }
356
+ }
357
+ function Zt(e) {
358
+ (!e.__d && (e.__d = !0) && he.push(e) && !ht.__r++ || Vr !== g.debounceRendering) && ((Vr = g.debounceRendering) || Gn)(ht);
359
+ }
360
+ function ht() {
361
+ var e, t, r, n, o, i, a, s, l;
362
+ for (he.sort(Xt); e = he.shift(); )
363
+ e.__d && (t = he.length, n = void 0, o = void 0, i = void 0, s = (a = (r = e).__v).__e, (l = r.__P) && (n = [], o = [], (i = J({}, a)).__v = a.__v + 1, wr(l, a, i, r.__n, l.ownerSVGElement !== void 0, a.__h != null ? [s] : null, n, s ?? pt(a), a.__h, o), ro(n, a, o), a.__e != s && Jn(a)), he.length > t && he.sort(Xt));
364
+ ht.__r = 0;
365
+ }
366
+ function Qn(e, t, r, n, o, i, a, s, l, u, d) {
367
+ var c, p, v, h, f, _, m, y, k, x, $ = 0, N = n && n.__k || Yn, L = N.length, C = L, T = t.length;
368
+ for (r.__k = [], c = 0; c < T; c++)
369
+ (h = r.__k[c] = (h = t[c]) == null || typeof h == "boolean" || typeof h == "function" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? Ue(null, h, null, null, h) : $t(h) ? Ue(j, { children: h }, null, null, null) : h.__b > 0 ? Ue(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null && (h.__ = r, h.__b = r.__b + 1, (y = Gc(h, N, m = c + $, C)) === -1 ? v = Se : (v = N[y] || Se, N[y] = void 0, C--), wr(e, h, v, o, i, a, s, l, u, d), f = h.__e, (p = h.ref) && v.ref != p && (v.ref && yr(v.ref, null, h), d.push(p, h.__c || f, h)), f != null && (_ == null && (_ = f), x = !(k = v === Se || v.__v === null) && y === m, k ? y == -1 && $-- : y !== m && (y === m + 1 ? ($++, x = !0) : y > m ? C > T - m ? ($ += y - m, x = !0) : $-- : $ = y < m && y == m - 1 ? y - m : 0), m = c + $, x = x || y == c && !k, typeof h.type != "function" || y === m && v.__k !== h.__k ? typeof h.type == "function" || x ? h.__d !== void 0 ? (l = h.__d, h.__d = void 0) : l = f.nextSibling : l = to(e, f, l) : l = eo(h, l, e), typeof r.type == "function" && (r.__d = l)));
370
+ for (r.__e = _, c = L; c--; )
371
+ N[c] != null && (typeof r.type == "function" && N[c].__e != null && N[c].__e == r.__d && (r.__d = N[c].__e.nextSibling), no(N[c], N[c]));
372
+ }
373
+ function eo(e, t, r) {
374
+ for (var n, o = e.__k, i = 0; o && i < o.length; i++)
375
+ (n = o[i]) && (n.__ = e, t = typeof n.type == "function" ? eo(n, t, r) : to(r, n.__e, t));
376
+ return t;
377
+ }
378
+ function Q(e, t) {
379
+ return t = t || [], e == null || typeof e == "boolean" || ($t(e) ? e.some(function(r) {
380
+ Q(r, t);
381
+ }) : t.push(e)), t;
382
+ }
383
+ function to(e, t, r) {
384
+ return r == null || r.parentNode !== e ? e.insertBefore(t, null) : t == r && t.parentNode != null || e.insertBefore(t, r), t.nextSibling;
385
+ }
386
+ function Gc(e, t, r, n) {
387
+ var o = e.key, i = e.type, a = r - 1, s = r + 1, l = t[r];
388
+ if (l === null || l && o == l.key && i === l.type)
389
+ return r;
390
+ if (n > (l != null ? 1 : 0))
391
+ for (; a >= 0 || s < t.length; ) {
392
+ if (a >= 0) {
393
+ if ((l = t[a]) && o == l.key && i === l.type)
394
+ return a;
395
+ a--;
396
+ }
397
+ if (s < t.length) {
398
+ if ((l = t[s]) && o == l.key && i === l.type)
399
+ return s;
400
+ s++;
401
+ }
402
+ }
403
+ return -1;
404
+ }
405
+ function qc(e, t, r, n, o) {
406
+ var i;
407
+ for (i in r)
408
+ i === "children" || i === "key" || i in t || vt(e, i, null, r[i], n);
409
+ for (i in t)
410
+ o && typeof t[i] != "function" || i === "children" || i === "key" || i === "value" || i === "checked" || r[i] === t[i] || vt(e, i, t[i], r[i], n);
411
+ }
412
+ function Kr(e, t, r) {
413
+ t[0] === "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || Kc.test(t) ? r : r + "px";
414
+ }
415
+ function vt(e, t, r, n, o) {
416
+ var i;
417
+ e:
418
+ if (t === "style")
419
+ if (typeof r == "string")
420
+ e.style.cssText = r;
421
+ else {
422
+ if (typeof n == "string" && (e.style.cssText = n = ""), n)
423
+ for (t in n)
424
+ r && t in r || Kr(e.style, t, "");
425
+ if (r)
426
+ for (t in r)
427
+ n && r[t] === n[t] || Kr(e.style, t, r[t]);
428
+ }
429
+ else if (t[0] === "o" && t[1] === "n")
430
+ i = t !== (t = t.replace(/Capture$/, "")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = r, r ? n || e.addEventListener(t, i ? qr : Gr, i) : e.removeEventListener(t, i ? qr : Gr, i);
431
+ else if (t !== "dangerouslySetInnerHTML") {
432
+ if (o)
433
+ t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
434
+ else if (t !== "width" && t !== "height" && t !== "href" && t !== "list" && t !== "form" && t !== "tabIndex" && t !== "download" && t !== "rowSpan" && t !== "colSpan" && t in e)
435
+ try {
436
+ e[t] = r ?? "";
437
+ break e;
438
+ } catch {
439
+ }
440
+ typeof r == "function" || (r == null || r === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, r));
441
+ }
442
+ }
443
+ function Gr(e) {
444
+ return this.l[e.type + !1](g.event ? g.event(e) : e);
445
+ }
446
+ function qr(e) {
447
+ return this.l[e.type + !0](g.event ? g.event(e) : e);
448
+ }
449
+ function wr(e, t, r, n, o, i, a, s, l, u) {
450
+ var d, c, p, v, h, f, _, m, y, k, x, $, N, L, C, T = t.type;
451
+ if (t.constructor !== void 0)
452
+ return null;
453
+ r.__h != null && (l = r.__h, s = t.__e = r.__e, t.__h = null, i = [s]), (d = g.__b) && d(t);
454
+ try {
455
+ e:
456
+ if (typeof T == "function") {
457
+ if (m = t.props, y = (d = T.contextType) && n[d.__c], k = d ? y ? y.props.value : d.__ : n, r.__c ? _ = (c = t.__c = r.__c).__ = c.__E : ("prototype" in T && T.prototype.render ? t.__c = c = new T(m, k) : (t.__c = c = new G(m, k), c.constructor = T, c.render = Xc), y && y.sub(c), c.props = m, c.state || (c.state = {}), c.context = k, c.__n = n, p = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), T.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = J({}, c.__s)), J(c.__s, T.getDerivedStateFromProps(m, c.__s))), v = c.props, h = c.state, c.__v = t, p)
458
+ T.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
459
+ else {
460
+ if (T.getDerivedStateFromProps == null && m !== v && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, k), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, k) === !1 || t.__v === r.__v)) {
461
+ for (t.__v !== r.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.forEach(function(de) {
462
+ de && (de.__ = t);
463
+ }), x = 0; x < c._sb.length; x++)
464
+ c.__h.push(c._sb[x]);
465
+ c._sb = [], c.__h.length && a.push(c);
466
+ break e;
467
+ }
468
+ c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, k), c.componentDidUpdate != null && c.__h.push(function() {
469
+ c.componentDidUpdate(v, h, f);
470
+ });
471
+ }
472
+ if (c.context = k, c.props = m, c.__P = e, c.__e = !1, $ = g.__r, N = 0, "prototype" in T && T.prototype.render) {
473
+ for (c.state = c.__s, c.__d = !1, $ && $(t), d = c.render(c.props, c.state, c.context), L = 0; L < c._sb.length; L++)
474
+ c.__h.push(c._sb[L]);
475
+ c._sb = [];
476
+ } else
477
+ do
478
+ c.__d = !1, $ && $(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
479
+ while (c.__d && ++N < 25);
480
+ c.state = c.__s, c.getChildContext != null && (n = J(J({}, n), c.getChildContext())), p || c.getSnapshotBeforeUpdate == null || (f = c.getSnapshotBeforeUpdate(v, h)), Qn(e, $t(C = d != null && d.type === j && d.key == null ? d.props.children : d) ? C : [C], t, r, n, o, i, a, s, l, u), c.base = t.__e, t.__h = null, c.__h.length && a.push(c), _ && (c.__E = c.__ = null);
481
+ } else
482
+ i == null && t.__v === r.__v ? (t.__k = r.__k, t.__e = r.__e) : t.__e = Yc(r.__e, t, r, n, o, i, a, l, u);
483
+ (d = g.diffed) && d(t);
484
+ } catch (de) {
485
+ t.__v = null, (l || i != null) && (t.__e = s, t.__h = !!l, i[i.indexOf(s)] = null), g.__e(de, t, r);
486
+ }
487
+ }
488
+ function ro(e, t, r) {
489
+ for (var n = 0; n < r.length; n++)
490
+ yr(r[n], r[++n], r[++n]);
491
+ g.__c && g.__c(t, e), e.some(function(o) {
492
+ try {
493
+ e = o.__h, o.__h = [], e.some(function(i) {
494
+ i.call(o);
495
+ });
496
+ } catch (i) {
497
+ g.__e(i, o.__v);
498
+ }
499
+ });
500
+ }
501
+ function Yc(e, t, r, n, o, i, a, s, l) {
502
+ var u, d, c, p = r.props, v = t.props, h = t.type, f = 0;
503
+ if (h === "svg" && (o = !0), i != null) {
504
+ for (; f < i.length; f++)
505
+ if ((u = i[f]) && "setAttribute" in u == !!h && (h ? u.localName === h : u.nodeType === 3)) {
506
+ e = u, i[f] = null;
507
+ break;
508
+ }
509
+ }
510
+ if (e == null) {
511
+ if (h === null)
512
+ return document.createTextNode(v);
513
+ e = o ? document.createElementNS("http://www.w3.org/2000/svg", h) : document.createElement(h, v.is && v), i = null, s = !1;
514
+ }
515
+ if (h === null)
516
+ p === v || s && e.data === v || (e.data = v);
517
+ else {
518
+ if (i = i && Ye.call(e.childNodes), d = (p = r.props || Se).dangerouslySetInnerHTML, c = v.dangerouslySetInnerHTML, !s) {
519
+ if (i != null)
520
+ for (p = {}, f = 0; f < e.attributes.length; f++)
521
+ p[e.attributes[f].name] = e.attributes[f].value;
522
+ (c || d) && (c && (d && c.__html == d.__html || c.__html === e.innerHTML) || (e.innerHTML = c && c.__html || ""));
523
+ }
524
+ if (qc(e, v, p, o, s), c)
525
+ t.__k = [];
526
+ else if (Qn(e, $t(f = t.props.children) ? f : [f], t, r, n, o && h !== "foreignObject", i, a, i ? i[0] : r.__k && pt(r, 0), s, l), i != null)
527
+ for (f = i.length; f--; )
528
+ i[f] != null && Xn(i[f]);
529
+ s || ("value" in v && (f = v.value) !== void 0 && (f !== e.value || h === "progress" && !f || h === "option" && f !== p.value) && vt(e, "value", f, p.value, !1), "checked" in v && (f = v.checked) !== void 0 && f !== e.checked && vt(e, "checked", f, p.checked, !1));
530
+ }
531
+ return e;
532
+ }
533
+ function yr(e, t, r) {
534
+ try {
535
+ typeof e == "function" ? e(t) : e.current = t;
536
+ } catch (n) {
537
+ g.__e(n, r);
538
+ }
539
+ }
540
+ function no(e, t, r) {
541
+ var n, o;
542
+ if (g.unmount && g.unmount(e), (n = e.ref) && (n.current && n.current !== e.__e || yr(n, null, t)), (n = e.__c) != null) {
543
+ if (n.componentWillUnmount)
544
+ try {
545
+ n.componentWillUnmount();
546
+ } catch (i) {
547
+ g.__e(i, t);
548
+ }
549
+ n.base = n.__P = null, e.__c = void 0;
550
+ }
551
+ if (n = e.__k)
552
+ for (o = 0; o < n.length; o++)
553
+ n[o] && no(n[o], t, r || typeof e.type != "function");
554
+ r || e.__e == null || Xn(e.__e), e.__ = e.__e = e.__d = void 0;
555
+ }
556
+ function Xc(e, t, r) {
557
+ return this.constructor(e, r);
558
+ }
559
+ function Te(e, t, r) {
560
+ var n, o, i, a;
561
+ g.__ && g.__(e, t), o = (n = typeof r == "function") ? null : r && r.__k || t.__k, i = [], a = [], wr(t, e = (!n && r || t).__k = w(j, null, [e]), o || Se, Se, t.ownerSVGElement !== void 0, !n && r ? [r] : o ? null : t.firstChild ? Ye.call(t.childNodes) : null, i, !n && r ? r : o ? o.__e : t.firstChild, n, a), ro(i, e, a);
562
+ }
563
+ function oo(e, t) {
564
+ Te(e, t, oo);
565
+ }
566
+ function Zc(e, t, r) {
567
+ var n, o, i, a, s = J({}, e.props);
568
+ for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t)
569
+ i == "key" ? n = t[i] : i == "ref" ? o = t[i] : s[i] = t[i] === void 0 && a !== void 0 ? a[i] : t[i];
570
+ return arguments.length > 2 && (s.children = arguments.length > 3 ? Ye.call(arguments, 2) : r), Ue(e.type, s, n || e.key, o || e.ref, null);
571
+ }
572
+ function We(e, t) {
573
+ var r = { __c: t = "__cC" + qn++, __: e, Consumer: function(n, o) {
574
+ return n.children(o);
575
+ }, Provider: function(n) {
576
+ var o, i;
577
+ return this.getChildContext || (o = [], (i = {})[t] = this, this.getChildContext = function() {
578
+ return i;
579
+ }, this.shouldComponentUpdate = function(a) {
580
+ this.props.value !== a.value && o.some(function(s) {
581
+ s.__e = !0, Zt(s);
582
+ });
583
+ }, this.sub = function(a) {
584
+ o.push(a);
585
+ var s = a.componentWillUnmount;
586
+ a.componentWillUnmount = function() {
587
+ o.splice(o.indexOf(a), 1), s && s.call(a);
588
+ };
589
+ }), n.children;
590
+ } };
591
+ return r.Provider.__ = r.Consumer.contextType = r;
592
+ }
593
+ Ye = Yn.slice, g = { __e: function(e, t, r, n) {
594
+ for (var o, i, a; t = t.__; )
595
+ if ((o = t.__c) && !o.__)
596
+ try {
597
+ if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, n || {}), a = o.__d), a)
598
+ return o.__E = o;
599
+ } catch (s) {
600
+ e = s;
601
+ }
602
+ throw e;
603
+ } }, Vn = 0, Kn = function(e) {
604
+ return e != null && e.constructor === void 0;
605
+ }, G.prototype.setState = function(e, t) {
606
+ var r;
607
+ r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = J({}, this.state), typeof e == "function" && (e = e(J({}, r), this.props)), e && J(r, e), e != null && this.__v && (t && this._sb.push(t), Zt(this));
608
+ }, G.prototype.forceUpdate = function(e) {
609
+ this.__v && (this.__e = !0, e && this.__h.push(e), Zt(this));
610
+ }, G.prototype.render = j, he = [], Gn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Xt = function(e, t) {
611
+ return e.__v.__b - t.__v.__b;
612
+ }, ht.__r = 0, qn = 0;
613
+ var kr = class extends Error {
614
+ /**
615
+ * Creates a Valibot error with useful information.
616
+ *
617
+ * @param issues The error issues.
618
+ */
619
+ constructor(t) {
620
+ super(t[0].message);
621
+ Mr(this, "issues");
622
+ this.name = "ValiError", this.issues = t;
623
+ }
624
+ };
625
+ function io(e, t) {
626
+ return {
627
+ ...e,
628
+ _parse(r, n) {
629
+ return e._parse(t(r), n);
630
+ }
631
+ };
632
+ }
633
+ function Xe(e) {
634
+ return { issues: e };
635
+ }
636
+ function z(e) {
637
+ return { output: e };
638
+ }
639
+ function Jc(e, t) {
640
+ return {
641
+ reason: e == null ? void 0 : e.reason,
642
+ validation: t.validation,
643
+ origin: (e == null ? void 0 : e.origin) || "value",
644
+ message: t.message,
645
+ input: t.input,
646
+ path: t.path,
647
+ abortEarly: e == null ? void 0 : e.abortEarly,
648
+ abortPipeEarly: e == null ? void 0 : e.abortPipeEarly,
649
+ skipPipe: e == null ? void 0 : e.skipPipe
650
+ };
651
+ }
652
+ function Qc(e, t) {
653
+ return {
654
+ reason: t,
655
+ origin: e == null ? void 0 : e.origin,
656
+ abortEarly: e == null ? void 0 : e.abortEarly,
657
+ abortPipeEarly: e == null ? void 0 : e.abortPipeEarly,
658
+ skipPipe: e == null ? void 0 : e.skipPipe
659
+ };
660
+ }
661
+ function ce(e, t, r, n) {
662
+ if (!t || !t.length || r != null && r.skipPipe)
663
+ return z(e);
664
+ let o, i, a = e;
665
+ for (const s of t) {
666
+ const l = s._parse(a);
667
+ if (l.issues) {
668
+ o = o || Qc(r, n);
669
+ for (const u of l.issues) {
670
+ const d = Jc(o, u);
671
+ i ? i.push(d) : i = [d];
672
+ }
673
+ if (o.abortEarly || o.abortPipeEarly)
674
+ break;
675
+ } else
676
+ a = l.output;
677
+ }
678
+ return i ? Xe(i) : z(a);
679
+ }
680
+ function se(e, t) {
681
+ return Array.isArray(e) ? [void 0, e] : [e, t];
682
+ }
683
+ function ao(e) {
684
+ return typeof e == "function" ? e() : e;
685
+ }
686
+ function le(e, t, r, n) {
687
+ return Xe([
688
+ {
689
+ validation: e,
690
+ message: ao(t),
691
+ input: r,
692
+ requirement: n
693
+ }
694
+ ]);
695
+ }
696
+ function so(e, t, r) {
697
+ if (!e || typeof e == "object" && !Array.isArray(e)) {
698
+ const [i, a] = se(t, r);
699
+ return [e, i, a];
700
+ }
701
+ const [n, o] = se(
702
+ e,
703
+ t
704
+ );
705
+ return [void 0, n, o];
706
+ }
707
+ function re(e, t, r, n, o, i) {
708
+ return {
709
+ issues: [
710
+ {
711
+ reason: t,
712
+ validation: r,
713
+ origin: (e == null ? void 0 : e.origin) || "value",
714
+ message: ao(n),
715
+ input: o,
716
+ issues: i,
717
+ abortEarly: e == null ? void 0 : e.abortEarly,
718
+ abortPipeEarly: e == null ? void 0 : e.abortPipeEarly,
719
+ skipPipe: e == null ? void 0 : e.skipPipe
720
+ }
721
+ ]
722
+ };
723
+ }
724
+ function co(e) {
725
+ return typeof e.default == "function" ? e.default() : e.default;
726
+ }
727
+ function el(e) {
728
+ return {
729
+ type: "any",
730
+ async: !1,
731
+ pipe: e,
732
+ _parse(t, r) {
733
+ return ce(t, this.pipe, r, "any");
734
+ }
735
+ };
736
+ }
737
+ function tl(e, t, r) {
738
+ const [n = "Invalid type", o] = se(t, r);
739
+ return {
740
+ type: "array",
741
+ async: !1,
742
+ item: e,
743
+ message: n,
744
+ pipe: o,
745
+ _parse(i, a) {
746
+ if (!Array.isArray(i))
747
+ return re(a, "type", "array", this.message, i);
748
+ let s;
749
+ const l = [];
750
+ for (let u = 0; u < i.length; u++) {
751
+ const d = i[u], c = this.item._parse(d, a);
752
+ if (c.issues) {
753
+ const p = {
754
+ type: "array",
755
+ input: i,
756
+ key: u,
757
+ value: d
758
+ };
759
+ for (const v of c.issues)
760
+ v.path ? v.path.unshift(p) : v.path = [p], s == null || s.push(v);
761
+ if (s || (s = c.issues), a != null && a.abortEarly)
762
+ break;
763
+ } else
764
+ l.push(c.output);
765
+ }
766
+ return s ? Xe(s) : ce(l, this.pipe, a, "array");
767
+ }
768
+ };
769
+ }
770
+ function rl(e, t) {
771
+ const [r = "Invalid type", n] = se(e, t);
772
+ return {
773
+ type: "boolean",
774
+ async: !1,
775
+ message: r,
776
+ pipe: n,
777
+ _parse(o, i) {
778
+ return typeof o != "boolean" ? re(i, "type", "boolean", this.message, o) : ce(o, this.pipe, i, "boolean");
779
+ }
780
+ };
781
+ }
782
+ function Yr(e, t = "Invalid type") {
783
+ return {
784
+ type: "literal",
785
+ async: !1,
786
+ literal: e,
787
+ message: t,
788
+ _parse(r, n) {
789
+ return r !== this.literal ? re(n, "type", "literal", this.message, r) : z(r);
790
+ }
791
+ };
792
+ }
793
+ function nl(e, t) {
794
+ return {
795
+ type: "nullable",
796
+ async: !1,
797
+ wrapped: e,
798
+ default: t,
799
+ _parse(r, n) {
800
+ if (r === null) {
801
+ const o = co(this);
802
+ if (o === void 0)
803
+ return z(r);
804
+ r = o;
805
+ }
806
+ return this.wrapped._parse(r, n);
807
+ }
808
+ };
809
+ }
810
+ function Xr(e, t) {
811
+ const [r = "Invalid type", n] = se(e, t);
812
+ return {
813
+ type: "number",
814
+ async: !1,
815
+ message: r,
816
+ pipe: n,
817
+ _parse(o, i) {
818
+ return typeof o != "number" || isNaN(o) ? re(i, "type", "number", this.message, o) : ce(o, this.pipe, i, "number");
819
+ }
820
+ };
821
+ }
822
+ function ve(e, t, r, n) {
823
+ const [o, i = "Invalid type", a] = so(t, r, n);
824
+ let s;
825
+ return {
826
+ type: "object",
827
+ async: !1,
828
+ entries: e,
829
+ rest: o,
830
+ message: i,
831
+ pipe: a,
832
+ _parse(l, u) {
833
+ if (!l || typeof l != "object")
834
+ return re(u, "type", "object", this.message, l);
835
+ s = s || Object.entries(this.entries);
836
+ let d;
837
+ const c = {};
838
+ for (const [p, v] of s) {
839
+ const h = l[p], f = v._parse(h, u);
840
+ if (f.issues) {
841
+ const _ = {
842
+ type: "object",
843
+ input: l,
844
+ key: p,
845
+ value: h
846
+ };
847
+ for (const m of f.issues)
848
+ m.path ? m.path.unshift(_) : m.path = [_], d == null || d.push(m);
849
+ if (d || (d = f.issues), u != null && u.abortEarly)
850
+ break;
851
+ } else
852
+ (f.output !== void 0 || p in l) && (c[p] = f.output);
853
+ }
854
+ if (this.rest && !(u != null && u.abortEarly && d)) {
855
+ for (const p in l)
856
+ if (!(p in this.entries)) {
857
+ const v = l[p], h = this.rest._parse(v, u);
858
+ if (h.issues) {
859
+ const f = {
860
+ type: "object",
861
+ input: l,
862
+ key: p,
863
+ value: v
864
+ };
865
+ for (const _ of h.issues)
866
+ _.path ? _.path.unshift(f) : _.path = [f], d == null || d.push(_);
867
+ if (d || (d = h.issues), u != null && u.abortEarly)
868
+ break;
869
+ } else
870
+ c[p] = h.output;
871
+ }
872
+ }
873
+ return d ? Xe(d) : ce(
874
+ c,
875
+ this.pipe,
876
+ u,
877
+ "object"
878
+ );
879
+ }
880
+ };
881
+ }
882
+ function lo(e, t) {
883
+ return {
884
+ type: "optional",
885
+ async: !1,
886
+ wrapped: e,
887
+ default: t,
888
+ _parse(r, n) {
889
+ if (r === void 0) {
890
+ const o = co(this);
891
+ if (o === void 0)
892
+ return z(r);
893
+ r = o;
894
+ }
895
+ return this.wrapped._parse(r, n);
896
+ }
897
+ };
898
+ }
899
+ function ef(e, t = "Invalid type") {
900
+ return {
901
+ type: "picklist",
902
+ async: !1,
903
+ options: e,
904
+ message: t,
905
+ _parse(r, n) {
906
+ return this.options.includes(r) ? z(r) : re(n, "type", "picklist", this.message, r);
907
+ }
908
+ };
909
+ }
910
+ function Ce(e, t) {
911
+ const [r = "Invalid type", n] = se(e, t);
912
+ return {
913
+ type: "string",
914
+ async: !1,
915
+ message: r,
916
+ pipe: n,
917
+ _parse(o, i) {
918
+ return typeof o != "string" ? re(i, "type", "string", this.message, o) : ce(o, this.pipe, i, "string");
919
+ }
920
+ };
921
+ }
922
+ function ol(e, t, r, n) {
923
+ if (typeof t == "object" && !Array.isArray(t)) {
924
+ const [a, s] = se(r, n);
925
+ return [e, t, a, s];
926
+ }
927
+ const [o, i] = se(
928
+ t,
929
+ r
930
+ );
931
+ return [Ce(), e, o, i];
932
+ }
933
+ var il = ["__proto__", "prototype", "constructor"];
934
+ function al(e, t, r, n) {
935
+ const [o, i, a = "Invalid type", s] = ol(e, t, r, n);
936
+ return {
937
+ type: "record",
938
+ async: !1,
939
+ key: o,
940
+ value: i,
941
+ message: a,
942
+ pipe: s,
943
+ _parse(l, u) {
944
+ if (!l || typeof l != "object")
945
+ return re(u, "type", "record", this.message, l);
946
+ let d;
947
+ const c = {};
948
+ for (const [p, v] of Object.entries(l))
949
+ if (!il.includes(p)) {
950
+ let h;
951
+ const f = this.key._parse(p, {
952
+ origin: "key",
953
+ abortEarly: u == null ? void 0 : u.abortEarly,
954
+ abortPipeEarly: u == null ? void 0 : u.abortPipeEarly,
955
+ skipPipe: u == null ? void 0 : u.skipPipe
956
+ });
957
+ if (f.issues) {
958
+ h = {
959
+ type: "record",
960
+ input: l,
961
+ key: p,
962
+ value: v
963
+ };
964
+ for (const m of f.issues)
965
+ m.path = [h], d == null || d.push(m);
966
+ if (d || (d = f.issues), u != null && u.abortEarly)
967
+ break;
968
+ }
969
+ const _ = this.value._parse(v, u);
970
+ if (_.issues) {
971
+ h = h || {
972
+ type: "record",
973
+ input: l,
974
+ key: p,
975
+ value: v
976
+ };
977
+ for (const m of _.issues)
978
+ m.path ? m.path.unshift(h) : m.path = [h], d == null || d.push(m);
979
+ if (d || (d = _.issues), u != null && u.abortEarly)
980
+ break;
981
+ }
982
+ !f.issues && !_.issues && (c[f.output] = _.output);
983
+ }
984
+ return d ? Xe(d) : ce(
985
+ c,
986
+ this.pipe,
987
+ u,
988
+ "record"
989
+ );
990
+ }
991
+ };
992
+ }
993
+ function sl(e, t = "Invalid type") {
994
+ return {
995
+ type: "union",
996
+ async: !1,
997
+ options: e,
998
+ message: t,
999
+ _parse(r, n) {
1000
+ let o, i;
1001
+ for (const a of this.options) {
1002
+ const s = a._parse(r, n);
1003
+ if (s.issues)
1004
+ if (o)
1005
+ for (const l of s.issues)
1006
+ o.push(l);
1007
+ else
1008
+ o = s.issues;
1009
+ else {
1010
+ i = [s.output];
1011
+ break;
1012
+ }
1013
+ }
1014
+ return i ? z(i[0]) : re(n, "type", "union", this.message, r, o);
1015
+ }
1016
+ };
1017
+ }
1018
+ function Zr(e, t, r) {
1019
+ const n = e._parse(t, r);
1020
+ if (n.issues)
1021
+ throw new kr(n.issues);
1022
+ return n.output;
1023
+ }
1024
+ async function tf(e, t, r) {
1025
+ const n = await e._parse(t, r);
1026
+ if (n.issues)
1027
+ throw new kr(n.issues);
1028
+ return n.output;
1029
+ }
1030
+ function rf(e, t, r, n) {
1031
+ const [o, i, a] = so(t, r, n);
1032
+ return ve(
1033
+ Object.entries(e.entries).reduce(
1034
+ (s, [l, u]) => ({
1035
+ ...s,
1036
+ [l]: lo(u)
1037
+ }),
1038
+ {}
1039
+ ),
1040
+ o,
1041
+ i,
1042
+ a
1043
+ );
1044
+ }
1045
+ function nf(e, t, r) {
1046
+ const n = e._parse(t, r);
1047
+ return n.issues ? {
1048
+ success: !1,
1049
+ error: new kr(n.issues),
1050
+ issues: n.issues
1051
+ } : {
1052
+ success: !0,
1053
+ data: n.output,
1054
+ output: n.output
1055
+ };
1056
+ }
1057
+ function of(e, t, r) {
1058
+ return {
1059
+ ...e,
1060
+ _parse(n, o) {
1061
+ const i = e._parse(n, o);
1062
+ if (i.issues)
1063
+ return i;
1064
+ const a = t(i.output);
1065
+ return r && !Array.isArray(r) ? r._parse(a, o) : ce(a, r, o, typeof a);
1066
+ }
1067
+ };
1068
+ }
1069
+ var cl = /^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;
1070
+ function af(e, t = "Invalid input") {
1071
+ return {
1072
+ type: "custom",
1073
+ async: !1,
1074
+ message: t,
1075
+ requirement: e,
1076
+ _parse(r) {
1077
+ return this.requirement(r) ? z(r) : le(this.type, this.message, r, this.requirement);
1078
+ }
1079
+ };
1080
+ }
1081
+ function sf(e = "Invalid email") {
1082
+ return {
1083
+ type: "email",
1084
+ async: !1,
1085
+ message: e,
1086
+ requirement: cl,
1087
+ _parse(t) {
1088
+ return this.requirement.test(t) ? z(t) : le(this.type, this.message, t, this.requirement);
1089
+ }
1090
+ };
1091
+ }
1092
+ function cf(e, t = "Invalid length") {
1093
+ return {
1094
+ type: "max_length",
1095
+ async: !1,
1096
+ message: t,
1097
+ requirement: e,
1098
+ _parse(r) {
1099
+ return r.length > this.requirement ? le(this.type, this.message, r, this.requirement) : z(r);
1100
+ }
1101
+ };
1102
+ }
1103
+ function lf(e, t = "Invalid value") {
1104
+ return {
1105
+ type: "max_value",
1106
+ async: !1,
1107
+ message: t,
1108
+ requirement: e,
1109
+ _parse(r) {
1110
+ return r > this.requirement ? le(this.type, this.message, r, this.requirement) : z(r);
1111
+ }
1112
+ };
1113
+ }
1114
+ function uf(e, t = "Invalid length") {
1115
+ return {
1116
+ type: "min_length",
1117
+ async: !1,
1118
+ message: t,
1119
+ requirement: e,
1120
+ _parse(r) {
1121
+ return r.length < this.requirement ? le(this.type, this.message, r, this.requirement) : z(r);
1122
+ }
1123
+ };
1124
+ }
1125
+ function df(e, t = "Invalid value") {
1126
+ return {
1127
+ type: "min_value",
1128
+ async: !1,
1129
+ message: t,
1130
+ requirement: e,
1131
+ _parse(r) {
1132
+ return r < this.requirement ? le(this.type, this.message, r, this.requirement) : z(r);
1133
+ }
1134
+ };
1135
+ }
1136
+ function ff(e, t = "Invalid regex") {
1137
+ return {
1138
+ type: "regex",
1139
+ async: !1,
1140
+ message: t,
1141
+ requirement: e,
1142
+ _parse(r) {
1143
+ return this.requirement.test(r) ? z(r) : le(this.type, this.message, r, this.requirement);
1144
+ }
1145
+ };
1146
+ }
1147
+ function pf(e = "Invalid URL") {
1148
+ return {
1149
+ type: "url",
1150
+ async: !1,
1151
+ message: e,
1152
+ requirement(t) {
1153
+ try {
1154
+ return new URL(t), !0;
1155
+ } catch {
1156
+ return !1;
1157
+ }
1158
+ },
1159
+ _parse(t) {
1160
+ return this.requirement(t) ? z(t) : le(this.type, this.message, t, this.requirement);
1161
+ }
1162
+ };
1163
+ }
1164
+ function H() {
1165
+ return H = Object.assign ? Object.assign.bind() : function(e) {
1166
+ for (var t = 1; t < arguments.length; t++) {
1167
+ var r = arguments[t];
1168
+ for (var n in r)
1169
+ Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
1170
+ }
1171
+ return e;
1172
+ }, H.apply(this, arguments);
1173
+ }
1174
+ var te, E, Nt, Jr, Ie = 0, uo = [], st = [], Qr = g.__b, en = g.__r, tn = g.diffed, rn = g.__c, nn = g.unmount;
1175
+ function ge(e, t) {
1176
+ g.__h && g.__h(E, e, Ie || t), Ie = 0;
1177
+ var r = E.__H || (E.__H = { __: [], __h: [] });
1178
+ return e >= r.__.length && r.__.push({ __V: st }), r.__[e];
1179
+ }
1180
+ function W(e) {
1181
+ return Ie = 1, St(vo, e);
1182
+ }
1183
+ function St(e, t, r) {
1184
+ var n = ge(te++, 2);
1185
+ if (n.t = e, !n.__c && (n.__ = [r ? r(t) : vo(void 0, t), function(s) {
1186
+ var l = n.__N ? n.__N[0] : n.__[0], u = n.t(l, s);
1187
+ l !== u && (n.__N = [u, n.__[1]], n.__c.setState({}));
1188
+ }], n.__c = E, !E.u)) {
1189
+ var o = function(s, l, u) {
1190
+ if (!n.__c.__H)
1191
+ return !0;
1192
+ var d = n.__c.__H.__.filter(function(p) {
1193
+ return p.__c;
1194
+ });
1195
+ if (d.every(function(p) {
1196
+ return !p.__N;
1197
+ }))
1198
+ return !i || i.call(this, s, l, u);
1199
+ var c = !1;
1200
+ return d.forEach(function(p) {
1201
+ if (p.__N) {
1202
+ var v = p.__[0];
1203
+ p.__ = p.__N, p.__N = void 0, v !== p.__[0] && (c = !0);
1204
+ }
1205
+ }), !(!c && n.__c.props === s) && (!i || i.call(this, s, l, u));
1206
+ };
1207
+ E.u = !0;
1208
+ var i = E.shouldComponentUpdate, a = E.componentWillUpdate;
1209
+ E.componentWillUpdate = function(s, l, u) {
1210
+ if (this.__e) {
1211
+ var d = i;
1212
+ i = void 0, o(s, l, u), i = d;
1213
+ }
1214
+ a && a.call(this, s, l, u);
1215
+ }, E.shouldComponentUpdate = o;
1216
+ }
1217
+ return n.__N || n.__;
1218
+ }
1219
+ function D(e, t) {
1220
+ var r = ge(te++, 3);
1221
+ !g.__s && xr(r.__H, t) && (r.__ = e, r.i = t, E.__H.__h.push(r));
1222
+ }
1223
+ function Me(e, t) {
1224
+ var r = ge(te++, 4);
1225
+ !g.__s && xr(r.__H, t) && (r.__ = e, r.i = t, E.__h.push(r));
1226
+ }
1227
+ function P(e) {
1228
+ return Ie = 5, q(function() {
1229
+ return { current: e };
1230
+ }, []);
1231
+ }
1232
+ function fo(e, t, r) {
1233
+ Ie = 6, Me(function() {
1234
+ return typeof e == "function" ? (e(t()), function() {
1235
+ return e(null);
1236
+ }) : e ? (e.current = t(), function() {
1237
+ return e.current = null;
1238
+ }) : void 0;
1239
+ }, r == null ? r : r.concat(e));
1240
+ }
1241
+ function q(e, t) {
1242
+ var r = ge(te++, 7);
1243
+ return xr(r.__H, t) ? (r.__V = e(), r.i = t, r.__h = e, r.__V) : r.__;
1244
+ }
1245
+ function V(e, t) {
1246
+ return Ie = 8, q(function() {
1247
+ return e;
1248
+ }, t);
1249
+ }
1250
+ function Ct(e) {
1251
+ var t = E.context[e.__c], r = ge(te++, 9);
1252
+ return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(E)), t.props.value) : e.__;
1253
+ }
1254
+ function po(e, t) {
1255
+ g.useDebugValue && g.useDebugValue(t ? t(e) : e);
1256
+ }
1257
+ function ll(e) {
1258
+ var t = ge(te++, 10), r = W();
1259
+ return t.__ = e, E.componentDidCatch || (E.componentDidCatch = function(n, o) {
1260
+ t.__ && t.__(n, o), r[1](n);
1261
+ }), [r[0], function() {
1262
+ r[1](void 0);
1263
+ }];
1264
+ }
1265
+ function ho() {
1266
+ var e = ge(te++, 11);
1267
+ if (!e.__) {
1268
+ for (var t = E.__v; t !== null && !t.__m && t.__ !== null; )
1269
+ t = t.__;
1270
+ var r = t.__m || (t.__m = [0, 0]);
1271
+ e.__ = "P" + r[0] + "-" + r[1]++;
1272
+ }
1273
+ return e.__;
1274
+ }
1275
+ function ul() {
1276
+ for (var e; e = uo.shift(); )
1277
+ if (e.__P && e.__H)
1278
+ try {
1279
+ e.__H.__h.forEach(ct), e.__H.__h.forEach(Jt), e.__H.__h = [];
1280
+ } catch (t) {
1281
+ e.__H.__h = [], g.__e(t, e.__v);
1282
+ }
1283
+ }
1284
+ g.__b = function(e) {
1285
+ E = null, Qr && Qr(e);
1286
+ }, g.__r = function(e) {
1287
+ en && en(e), te = 0;
1288
+ var t = (E = e.__c).__H;
1289
+ t && (Nt === E ? (t.__h = [], E.__h = [], t.__.forEach(function(r) {
1290
+ r.__N && (r.__ = r.__N), r.__V = st, r.__N = r.i = void 0;
1291
+ })) : (t.__h.forEach(ct), t.__h.forEach(Jt), t.__h = [], te = 0)), Nt = E;
1292
+ }, g.diffed = function(e) {
1293
+ tn && tn(e);
1294
+ var t = e.__c;
1295
+ t && t.__H && (t.__H.__h.length && (uo.push(t) !== 1 && Jr === g.requestAnimationFrame || ((Jr = g.requestAnimationFrame) || dl)(ul)), t.__H.__.forEach(function(r) {
1296
+ r.i && (r.__H = r.i), r.__V !== st && (r.__ = r.__V), r.i = void 0, r.__V = st;
1297
+ })), Nt = E = null;
1298
+ }, g.__c = function(e, t) {
1299
+ t.some(function(r) {
1300
+ try {
1301
+ r.__h.forEach(ct), r.__h = r.__h.filter(function(n) {
1302
+ return !n.__ || Jt(n);
1303
+ });
1304
+ } catch (n) {
1305
+ t.some(function(o) {
1306
+ o.__h && (o.__h = []);
1307
+ }), t = [], g.__e(n, r.__v);
1308
+ }
1309
+ }), rn && rn(e, t);
1310
+ }, g.unmount = function(e) {
1311
+ nn && nn(e);
1312
+ var t, r = e.__c;
1313
+ r && r.__H && (r.__H.__.forEach(function(n) {
1314
+ try {
1315
+ ct(n);
1316
+ } catch (o) {
1317
+ t = o;
1318
+ }
1319
+ }), r.__H = void 0, t && g.__e(t, r.__v));
1320
+ };
1321
+ var on = typeof requestAnimationFrame == "function";
1322
+ function dl(e) {
1323
+ var t, r = function() {
1324
+ clearTimeout(n), on && cancelAnimationFrame(t), setTimeout(e);
1325
+ }, n = setTimeout(r, 100);
1326
+ on && (t = requestAnimationFrame(r));
1327
+ }
1328
+ function ct(e) {
1329
+ var t = E, r = e.__c;
1330
+ typeof r == "function" && (e.__c = void 0, r()), E = t;
1331
+ }
1332
+ function Jt(e) {
1333
+ var t = E;
1334
+ e.__c = e.__(), E = t;
1335
+ }
1336
+ function xr(e, t) {
1337
+ return !e || e.length !== t.length || t.some(function(r, n) {
1338
+ return r !== e[n];
1339
+ });
1340
+ }
1341
+ function vo(e, t) {
1342
+ return typeof t == "function" ? t(e) : t;
1343
+ }
1344
+ function _o(e, t) {
1345
+ for (var r in t)
1346
+ e[r] = t[r];
1347
+ return e;
1348
+ }
1349
+ function Qt(e, t) {
1350
+ for (var r in e)
1351
+ if (r !== "__source" && !(r in t))
1352
+ return !0;
1353
+ for (var n in t)
1354
+ if (n !== "__source" && e[n] !== t[n])
1355
+ return !0;
1356
+ return !1;
1357
+ }
1358
+ function At(e, t) {
1359
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e != e && t != t;
1360
+ }
1361
+ function _t(e) {
1362
+ this.props = e;
1363
+ }
1364
+ function mo(e, t) {
1365
+ function r(o) {
1366
+ var i = this.props.ref, a = i == o.ref;
1367
+ return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Qt(this.props, o);
1368
+ }
1369
+ function n(o) {
1370
+ return this.shouldComponentUpdate = r, w(e, o);
1371
+ }
1372
+ return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n;
1373
+ }
1374
+ (_t.prototype = new G()).isPureReactComponent = !0, _t.prototype.shouldComponentUpdate = function(e, t) {
1375
+ return Qt(this.props, e) || Qt(this.state, t);
1376
+ };
1377
+ var an = g.__b;
1378
+ g.__b = function(e) {
1379
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), an && an(e);
1380
+ };
1381
+ var fl = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
1382
+ function B(e) {
1383
+ function t(r) {
1384
+ var n = _o({}, r);
1385
+ return delete n.ref, e(n, r.ref || null);
1386
+ }
1387
+ return t.$$typeof = fl, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
1388
+ }
1389
+ var sn = function(e, t) {
1390
+ return e == null ? null : Q(Q(e).map(t));
1391
+ }, ee = { map: sn, forEach: sn, count: function(e) {
1392
+ return e ? Q(e).length : 0;
1393
+ }, only: function(e) {
1394
+ var t = Q(e);
1395
+ if (t.length !== 1)
1396
+ throw "Children.only";
1397
+ return t[0];
1398
+ }, toArray: Q }, pl = g.__e;
1399
+ g.__e = function(e, t, r, n) {
1400
+ if (e.then) {
1401
+ for (var o, i = t; i = i.__; )
1402
+ if ((o = i.__c) && o.__c)
1403
+ return t.__e == null && (t.__e = r.__e, t.__k = r.__k), o.__c(e, t);
1404
+ }
1405
+ pl(e, t, r, n);
1406
+ };
1407
+ var cn = g.unmount;
1408
+ function bo(e, t, r) {
1409
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
1410
+ typeof n.__c == "function" && n.__c();
1411
+ }), e.__c.__H = null), (e = _o({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
1412
+ return bo(n, t, r);
1413
+ })), e;
1414
+ }
1415
+ function go(e, t, r) {
1416
+ return e && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
1417
+ return go(n, t, r);
1418
+ }), e.__c && e.__c.__P === t && (e.__e && r.insertBefore(e.__e, e.__d), e.__c.__e = !0, e.__c.__P = r)), e;
1419
+ }
1420
+ function Ee() {
1421
+ this.__u = 0, this.t = null, this.__b = null;
1422
+ }
1423
+ function wo(e) {
1424
+ var t = e.__.__c;
1425
+ return t && t.__a && t.__a(e);
1426
+ }
1427
+ function $r(e) {
1428
+ var t, r, n;
1429
+ function o(i) {
1430
+ if (t || (t = e()).then(function(a) {
1431
+ r = a.default || a;
1432
+ }, function(a) {
1433
+ n = a;
1434
+ }), n)
1435
+ throw n;
1436
+ if (!r)
1437
+ throw t;
1438
+ return w(r, i);
1439
+ }
1440
+ return o.displayName = "Lazy", o.__f = !0, o;
1441
+ }
1442
+ function xe() {
1443
+ this.u = null, this.o = null;
1444
+ }
1445
+ g.unmount = function(e) {
1446
+ var t = e.__c;
1447
+ t && t.__R && t.__R(), t && e.__h === !0 && (e.type = null), cn && cn(e);
1448
+ }, (Ee.prototype = new G()).__c = function(e, t) {
1449
+ var r = t.__c, n = this;
1450
+ n.t == null && (n.t = []), n.t.push(r);
1451
+ var o = wo(n.__v), i = !1, a = function() {
1452
+ i || (i = !0, r.__R = null, o ? o(s) : s());
1453
+ };
1454
+ r.__R = a;
1455
+ var s = function() {
1456
+ if (!--n.__u) {
1457
+ if (n.state.__a) {
1458
+ var u = n.state.__a;
1459
+ n.__v.__k[0] = go(u, u.__c.__P, u.__c.__O);
1460
+ }
1461
+ var d;
1462
+ for (n.setState({ __a: n.__b = null }); d = n.t.pop(); )
1463
+ d.forceUpdate();
1464
+ }
1465
+ }, l = t.__h === !0;
1466
+ n.__u++ || l || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(a, a);
1467
+ }, Ee.prototype.componentWillUnmount = function() {
1468
+ this.t = [];
1469
+ }, Ee.prototype.render = function(e, t) {
1470
+ if (this.__b) {
1471
+ if (this.__v.__k) {
1472
+ var r = document.createElement("div"), n = this.__v.__k[0].__c;
1473
+ this.__v.__k[0] = bo(this.__b, r, n.__O = n.__P);
1474
+ }
1475
+ this.__b = null;
1476
+ }
1477
+ var o = t.__a && w(j, null, e.fallback);
1478
+ return o && (o.__h = null), [w(j, null, t.__a ? null : e.children), o];
1479
+ };
1480
+ var ln = function(e, t, r) {
1481
+ if (++r[1] === r[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
1482
+ for (r = e.u; r; ) {
1483
+ for (; r.length > 3; )
1484
+ r.pop()();
1485
+ if (r[1] < r[0])
1486
+ break;
1487
+ e.u = r = r[2];
1488
+ }
1489
+ };
1490
+ function hl(e) {
1491
+ return this.getChildContext = function() {
1492
+ return e.context;
1493
+ }, e.children;
1494
+ }
1495
+ function vl(e) {
1496
+ var t = this, r = e.i;
1497
+ t.componentWillUnmount = function() {
1498
+ Te(null, t.l), t.l = null, t.i = null;
1499
+ }, t.i && t.i !== r && t.componentWillUnmount(), e.__v ? (t.l || (t.i = r, t.l = { nodeType: 1, parentNode: r, childNodes: [], appendChild: function(n) {
1500
+ this.childNodes.push(n), t.i.appendChild(n);
1501
+ }, insertBefore: function(n, o) {
1502
+ this.childNodes.push(n), t.i.appendChild(n);
1503
+ }, removeChild: function(n) {
1504
+ this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), t.i.removeChild(n);
1505
+ } }), Te(w(hl, { context: t.context }, e.__v), t.l)) : t.l && t.componentWillUnmount();
1506
+ }
1507
+ function yo(e, t) {
1508
+ var r = w(vl, { __v: e, i: t });
1509
+ return r.containerInfo = t, r;
1510
+ }
1511
+ (xe.prototype = new G()).__a = function(e) {
1512
+ var t = this, r = wo(t.__v), n = t.o.get(e);
1513
+ return n[0]++, function(o) {
1514
+ var i = function() {
1515
+ t.props.revealOrder ? (n.push(o), ln(t, e, n)) : o();
1516
+ };
1517
+ r ? r(i) : i();
1518
+ };
1519
+ }, xe.prototype.render = function(e) {
1520
+ this.u = null, this.o = /* @__PURE__ */ new Map();
1521
+ var t = Q(e.children);
1522
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
1523
+ for (var r = t.length; r--; )
1524
+ this.o.set(t[r], this.u = [1, 0, this.u]);
1525
+ return e.children;
1526
+ }, xe.prototype.componentDidUpdate = xe.prototype.componentDidMount = function() {
1527
+ var e = this;
1528
+ this.o.forEach(function(t, r) {
1529
+ ln(e, r, t);
1530
+ });
1531
+ };
1532
+ var ko = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, _l = /^(?: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]/, ml = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, bl = /[A-Z0-9]/g, gl = typeof document < "u", wl = function(e) {
1533
+ return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
1534
+ };
1535
+ function xo(e, t, r) {
1536
+ return t.__k == null && (t.textContent = ""), Te(e, t), typeof r == "function" && r(), e ? e.__c : null;
1537
+ }
1538
+ function $o(e, t, r) {
1539
+ return oo(e, t), typeof r == "function" && r(), e ? e.__c : null;
1540
+ }
1541
+ G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
1542
+ Object.defineProperty(G.prototype, e, { configurable: !0, get: function() {
1543
+ return this["UNSAFE_" + e];
1544
+ }, set: function(t) {
1545
+ Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
1546
+ } });
1547
+ });
1548
+ var un = g.event;
1549
+ function yl() {
1550
+ }
1551
+ function kl() {
1552
+ return this.cancelBubble;
1553
+ }
1554
+ function xl() {
1555
+ return this.defaultPrevented;
1556
+ }
1557
+ g.event = function(e) {
1558
+ return un && (e = un(e)), e.persist = yl, e.isPropagationStopped = kl, e.isDefaultPrevented = xl, e.nativeEvent = e;
1559
+ };
1560
+ var Sr, $l = { enumerable: !1, configurable: !0, get: function() {
1561
+ return this.class;
1562
+ } }, dn = g.vnode;
1563
+ g.vnode = function(e) {
1564
+ typeof e.type == "string" && function(t) {
1565
+ var r = t.props, n = t.type, o = {};
1566
+ for (var i in r) {
1567
+ var a = r[i];
1568
+ if (!(i === "value" && "defaultValue" in r && a == null || gl && i === "children" && n === "noscript" || i === "class" || i === "className")) {
1569
+ var s = i.toLowerCase();
1570
+ i === "defaultValue" && "value" in r && r.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || n !== "input" && n !== "textarea" || wl(r.type) ? s === "onfocus" ? i = "onfocusin" : s === "onblur" ? i = "onfocusout" : ml.test(i) ? i = s : n.indexOf("-") === -1 && _l.test(i) ? i = i.replace(bl, "-$&").toLowerCase() : a === null && (a = void 0) : s = i = "oninput", s === "oninput" && o[i = s] && (i = "oninputCapture"), o[i] = a;
1571
+ }
1572
+ }
1573
+ n == "select" && o.multiple && Array.isArray(o.value) && (o.value = Q(r.children).forEach(function(l) {
1574
+ l.props.selected = o.value.indexOf(l.props.value) != -1;
1575
+ })), n == "select" && o.defaultValue != null && (o.value = Q(r.children).forEach(function(l) {
1576
+ l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.props.value;
1577
+ })), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", $l)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
1578
+ }(e), e.$$typeof = ko, dn && dn(e);
1579
+ };
1580
+ var fn = g.__r;
1581
+ g.__r = function(e) {
1582
+ fn && fn(e), Sr = e.__c;
1583
+ };
1584
+ var pn = g.diffed;
1585
+ g.diffed = function(e) {
1586
+ pn && pn(e);
1587
+ var t = e.props, r = e.__e;
1588
+ r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), Sr = null;
1589
+ };
1590
+ var So = { ReactCurrentDispatcher: { current: { readContext: function(e) {
1591
+ return Sr.__n[e.__c].props.value;
1592
+ } } } }, Sl = "17.0.2";
1593
+ function Co(e) {
1594
+ return w.bind(null, e);
1595
+ }
1596
+ function me(e) {
1597
+ return !!e && e.$$typeof === ko;
1598
+ }
1599
+ function je(e) {
1600
+ return me(e) ? Zc.apply(null, arguments) : e;
1601
+ }
1602
+ function Eo(e) {
1603
+ return !!e.__k && (Te(null, e), !0);
1604
+ }
1605
+ function Oo(e) {
1606
+ return e && (e.base || e.nodeType === 1 && e) || null;
1607
+ }
1608
+ var Po = function(e, t) {
1609
+ return e(t);
1610
+ }, Et = function(e, t) {
1611
+ return e(t);
1612
+ }, To = j;
1613
+ function Cr(e) {
1614
+ e();
1615
+ }
1616
+ function Io(e) {
1617
+ return e;
1618
+ }
1619
+ function Do() {
1620
+ return [!1, Cr];
1621
+ }
1622
+ var No = Me;
1623
+ function Ao(e, t) {
1624
+ var r = t(), n = W({ h: { __: r, v: t } }), o = n[0].h, i = n[1];
1625
+ return Me(function() {
1626
+ o.__ = r, o.v = t, At(o.__, t()) || i({ h: o });
1627
+ }, [e, r, t]), D(function() {
1628
+ return At(o.__, o.v()) || i({ h: o }), e(function() {
1629
+ At(o.__, o.v()) || i({ h: o });
1630
+ });
1631
+ }, [e]), r;
1632
+ }
1633
+ var Cl = { useState: W, useId: ho, useReducer: St, useEffect: D, useLayoutEffect: Me, useInsertionEffect: No, useTransition: Do, useDeferredValue: Io, useSyncExternalStore: Ao, startTransition: Cr, useRef: P, useImperativeHandle: fo, useMemo: q, useCallback: V, useContext: Ct, useDebugValue: po, version: "17.0.2", Children: ee, render: xo, hydrate: $o, unmountComponentAtNode: Eo, createPortal: yo, createElement: w, createContext: We, createFactory: Co, cloneElement: je, createRef: Zn, Fragment: j, isValidElement: me, findDOMNode: Oo, Component: G, PureComponent: _t, memo: mo, forwardRef: B, flushSync: Et, unstable_batchedUpdates: Po, StrictMode: To, Suspense: Ee, SuspenseList: xe, lazy: $r, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: So };
1634
+ const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1635
+ __proto__: null,
1636
+ Children: ee,
1637
+ Component: G,
1638
+ Fragment: j,
1639
+ PureComponent: _t,
1640
+ StrictMode: To,
1641
+ Suspense: Ee,
1642
+ SuspenseList: xe,
1643
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: So,
1644
+ cloneElement: je,
1645
+ createContext: We,
1646
+ createElement: w,
1647
+ createFactory: Co,
1648
+ createPortal: yo,
1649
+ createRef: Zn,
1650
+ default: Cl,
1651
+ findDOMNode: Oo,
1652
+ flushSync: Et,
1653
+ forwardRef: B,
1654
+ hydrate: $o,
1655
+ isValidElement: me,
1656
+ lazy: $r,
1657
+ memo: mo,
1658
+ render: xo,
1659
+ startTransition: Cr,
1660
+ unmountComponentAtNode: Eo,
1661
+ unstable_batchedUpdates: Po,
1662
+ useCallback: V,
1663
+ useContext: Ct,
1664
+ useDebugValue: po,
1665
+ useDeferredValue: Io,
1666
+ useEffect: D,
1667
+ useErrorBoundary: ll,
1668
+ useId: ho,
1669
+ useImperativeHandle: fo,
1670
+ useInsertionEffect: No,
1671
+ useLayoutEffect: Me,
1672
+ useMemo: q,
1673
+ useReducer: St,
1674
+ useRef: P,
1675
+ useState: W,
1676
+ useSyncExternalStore: Ao,
1677
+ useTransition: Do,
1678
+ version: Sl
1679
+ }, Symbol.toStringTag, { value: "Module" }));
1680
+ function Oe(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
1681
+ return function(o) {
1682
+ if (e == null || e(o), r === !1 || !o.defaultPrevented)
1683
+ return t == null ? void 0 : t(o);
1684
+ };
1685
+ }
1686
+ function Ol(e, t) {
1687
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
1688
+ }
1689
+ function Mo(...e) {
1690
+ return (t) => e.forEach(
1691
+ (r) => Ol(r, t)
1692
+ );
1693
+ }
1694
+ function Ze(...e) {
1695
+ return V(Mo(...e), e);
1696
+ }
1697
+ function Pl(e, t = []) {
1698
+ let r = [];
1699
+ function n(i, a) {
1700
+ const s = /* @__PURE__ */ We(a), l = r.length;
1701
+ r = [
1702
+ ...r,
1703
+ a
1704
+ ];
1705
+ function u(c) {
1706
+ const { scope: p, children: v, ...h } = c, f = (p == null ? void 0 : p[e][l]) || s, _ = q(
1707
+ () => h,
1708
+ Object.values(h)
1709
+ );
1710
+ return /* @__PURE__ */ w(f.Provider, {
1711
+ value: _
1712
+ }, v);
1713
+ }
1714
+ function d(c, p) {
1715
+ const v = (p == null ? void 0 : p[e][l]) || s, h = Ct(v);
1716
+ if (h)
1717
+ return h;
1718
+ if (a !== void 0)
1719
+ return a;
1720
+ throw new Error(`\`${c}\` must be used within \`${i}\``);
1721
+ }
1722
+ return u.displayName = i + "Provider", [
1723
+ u,
1724
+ d
1725
+ ];
1726
+ }
1727
+ const o = () => {
1728
+ const i = r.map((a) => /* @__PURE__ */ We(a));
1729
+ return function(s) {
1730
+ const l = (s == null ? void 0 : s[e]) || i;
1731
+ return q(
1732
+ () => ({
1733
+ [`__scope${e}`]: {
1734
+ ...s,
1735
+ [e]: l
1736
+ }
1737
+ }),
1738
+ [
1739
+ s,
1740
+ l
1741
+ ]
1742
+ );
1743
+ };
1744
+ };
1745
+ return o.scopeName = e, [
1746
+ n,
1747
+ Tl(o, ...t)
1748
+ ];
1749
+ }
1750
+ function Tl(...e) {
1751
+ const t = e[0];
1752
+ if (e.length === 1)
1753
+ return t;
1754
+ const r = () => {
1755
+ const n = e.map(
1756
+ (o) => ({
1757
+ useScope: o(),
1758
+ scopeName: o.scopeName
1759
+ })
1760
+ );
1761
+ return function(i) {
1762
+ const a = n.reduce((s, { useScope: l, scopeName: u }) => {
1763
+ const c = l(i)[`__scope${u}`];
1764
+ return {
1765
+ ...s,
1766
+ ...c
1767
+ };
1768
+ }, {});
1769
+ return q(
1770
+ () => ({
1771
+ [`__scope${t.scopeName}`]: a
1772
+ }),
1773
+ [
1774
+ a
1775
+ ]
1776
+ );
1777
+ };
1778
+ };
1779
+ return r.scopeName = t.scopeName, r;
1780
+ }
1781
+ const er = globalThis != null && globalThis.document ? Me : () => {
1782
+ }, Il = El["useId".toString()] || (() => {
1783
+ });
1784
+ let Dl = 0;
1785
+ function Mt(e) {
1786
+ const [t, r] = W(Il());
1787
+ return er(() => {
1788
+ e || r(
1789
+ (n) => n ?? String(Dl++)
1790
+ );
1791
+ }, [
1792
+ e
1793
+ ]), e || (t ? `radix-${t}` : "");
1794
+ }
1795
+ function be(e) {
1796
+ const t = P(e);
1797
+ return D(() => {
1798
+ t.current = e;
1799
+ }), q(
1800
+ () => (...r) => {
1801
+ var n;
1802
+ return (n = t.current) === null || n === void 0 ? void 0 : n.call(t, ...r);
1803
+ },
1804
+ []
1805
+ );
1806
+ }
1807
+ function Nl({ prop: e, defaultProp: t, onChange: r = () => {
1808
+ } }) {
1809
+ const [n, o] = Al({
1810
+ defaultProp: t,
1811
+ onChange: r
1812
+ }), i = e !== void 0, a = i ? e : n, s = be(r), l = V((u) => {
1813
+ if (i) {
1814
+ const c = typeof u == "function" ? u(e) : u;
1815
+ c !== e && s(c);
1816
+ } else
1817
+ o(u);
1818
+ }, [
1819
+ i,
1820
+ e,
1821
+ o,
1822
+ s
1823
+ ]);
1824
+ return [
1825
+ a,
1826
+ l
1827
+ ];
1828
+ }
1829
+ function Al({ defaultProp: e, onChange: t }) {
1830
+ const r = W(e), [n] = r, o = P(n), i = be(t);
1831
+ return D(() => {
1832
+ o.current !== n && (i(n), o.current = n);
1833
+ }, [
1834
+ n,
1835
+ o,
1836
+ i
1837
+ ]), r;
1838
+ }
1839
+ const Er = /* @__PURE__ */ B((e, t) => {
1840
+ const { children: r, ...n } = e, o = ee.toArray(r), i = o.find(jl);
1841
+ if (i) {
1842
+ const a = i.props.children, s = o.map((l) => l === i ? ee.count(a) > 1 ? ee.only(null) : /* @__PURE__ */ me(a) ? a.props.children : null : l);
1843
+ return /* @__PURE__ */ w(tr, H({}, n, {
1844
+ ref: t
1845
+ }), /* @__PURE__ */ me(a) ? /* @__PURE__ */ je(a, void 0, s) : null);
1846
+ }
1847
+ return /* @__PURE__ */ w(tr, H({}, n, {
1848
+ ref: t
1849
+ }), r);
1850
+ });
1851
+ Er.displayName = "Slot";
1852
+ const tr = /* @__PURE__ */ B((e, t) => {
1853
+ const { children: r, ...n } = e;
1854
+ return /* @__PURE__ */ me(r) ? /* @__PURE__ */ je(r, {
1855
+ ...Fl(n, r.props),
1856
+ ref: t ? Mo(t, r.ref) : r.ref
1857
+ }) : ee.count(r) > 1 ? ee.only(null) : null;
1858
+ });
1859
+ tr.displayName = "SlotClone";
1860
+ const Ml = ({ children: e }) => /* @__PURE__ */ w(j, null, e);
1861
+ function jl(e) {
1862
+ return /* @__PURE__ */ me(e) && e.type === Ml;
1863
+ }
1864
+ function Fl(e, t) {
1865
+ const r = {
1866
+ ...t
1867
+ };
1868
+ for (const n in t) {
1869
+ const o = e[n], i = t[n];
1870
+ /^on[A-Z]/.test(n) ? o && i ? r[n] = (...s) => {
1871
+ i(...s), o(...s);
1872
+ } : o && (r[n] = o) : n === "style" ? r[n] = {
1873
+ ...o,
1874
+ ...i
1875
+ } : n === "className" && (r[n] = [
1876
+ o,
1877
+ i
1878
+ ].filter(Boolean).join(" "));
1879
+ }
1880
+ return {
1881
+ ...e,
1882
+ ...r
1883
+ };
1884
+ }
1885
+ const Ll = [
1886
+ "a",
1887
+ "button",
1888
+ "div",
1889
+ "form",
1890
+ "h2",
1891
+ "h3",
1892
+ "img",
1893
+ "input",
1894
+ "label",
1895
+ "li",
1896
+ "nav",
1897
+ "ol",
1898
+ "p",
1899
+ "span",
1900
+ "svg",
1901
+ "ul"
1902
+ ], Or = Ll.reduce((e, t) => {
1903
+ const r = /* @__PURE__ */ B((n, o) => {
1904
+ const { asChild: i, ...a } = n, s = i ? Er : t;
1905
+ return D(() => {
1906
+ window[Symbol.for("radix-ui")] = !0;
1907
+ }, []), /* @__PURE__ */ w(s, H({}, a, {
1908
+ ref: o
1909
+ }));
1910
+ });
1911
+ return r.displayName = `Primitive.${t}`, {
1912
+ ...e,
1913
+ [t]: r
1914
+ };
1915
+ }, {});
1916
+ function Rl(e, t) {
1917
+ e && Et(
1918
+ () => e.dispatchEvent(t)
1919
+ );
1920
+ }
1921
+ function zl(e, t = globalThis == null ? void 0 : globalThis.document) {
1922
+ const r = be(e);
1923
+ D(() => {
1924
+ const n = (o) => {
1925
+ o.key === "Escape" && r(o);
1926
+ };
1927
+ return t.addEventListener("keydown", n), () => t.removeEventListener("keydown", n);
1928
+ }, [
1929
+ r,
1930
+ t
1931
+ ]);
1932
+ }
1933
+ const rr = "dismissableLayer.update", Bl = "dismissableLayer.pointerDownOutside", Ul = "dismissableLayer.focusOutside";
1934
+ let hn;
1935
+ const Hl = /* @__PURE__ */ We({
1936
+ layers: /* @__PURE__ */ new Set(),
1937
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1938
+ branches: /* @__PURE__ */ new Set()
1939
+ }), Wl = /* @__PURE__ */ B((e, t) => {
1940
+ var r;
1941
+ const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: o, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: s, onDismiss: l, ...u } = e, d = Ct(Hl), [c, p] = W(null), v = (r = c == null ? void 0 : c.ownerDocument) !== null && r !== void 0 ? r : globalThis == null ? void 0 : globalThis.document, [, h] = W({}), f = Ze(
1942
+ t,
1943
+ (C) => p(C)
1944
+ ), _ = Array.from(d.layers), [m] = [
1945
+ ...d.layersWithOutsidePointerEventsDisabled
1946
+ ].slice(-1), y = _.indexOf(m), k = c ? _.indexOf(c) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, $ = k >= y, N = Vl((C) => {
1947
+ const T = C.target, de = [
1948
+ ...d.branches
1949
+ ].some(
1950
+ (It) => It.contains(T)
1951
+ );
1952
+ !$ || de || (i == null || i(C), s == null || s(C), C.defaultPrevented || l == null || l());
1953
+ }, v), L = Kl((C) => {
1954
+ const T = C.target;
1955
+ [
1956
+ ...d.branches
1957
+ ].some(
1958
+ (It) => It.contains(T)
1959
+ ) || (a == null || a(C), s == null || s(C), C.defaultPrevented || l == null || l());
1960
+ }, v);
1961
+ return zl((C) => {
1962
+ k === d.layers.size - 1 && (o == null || o(C), !C.defaultPrevented && l && (C.preventDefault(), l()));
1963
+ }, v), D(() => {
1964
+ if (c)
1965
+ return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (hn = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(c)), d.layers.add(c), vn(), () => {
1966
+ n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = hn);
1967
+ };
1968
+ }, [
1969
+ c,
1970
+ v,
1971
+ n,
1972
+ d
1973
+ ]), D(() => () => {
1974
+ c && (d.layers.delete(c), d.layersWithOutsidePointerEventsDisabled.delete(c), vn());
1975
+ }, [
1976
+ c,
1977
+ d
1978
+ ]), D(() => {
1979
+ const C = () => h({});
1980
+ return document.addEventListener(rr, C), () => document.removeEventListener(rr, C);
1981
+ }, []), /* @__PURE__ */ w(Or.div, H({}, u, {
1982
+ ref: f,
1983
+ style: {
1984
+ pointerEvents: x ? $ ? "auto" : "none" : void 0,
1985
+ ...e.style
1986
+ },
1987
+ onFocusCapture: Oe(e.onFocusCapture, L.onFocusCapture),
1988
+ onBlurCapture: Oe(e.onBlurCapture, L.onBlurCapture),
1989
+ onPointerDownCapture: Oe(e.onPointerDownCapture, N.onPointerDownCapture)
1990
+ }));
1991
+ });
1992
+ function Vl(e, t = globalThis == null ? void 0 : globalThis.document) {
1993
+ const r = be(e), n = P(!1), o = P(() => {
1994
+ });
1995
+ return D(() => {
1996
+ const i = (s) => {
1997
+ if (s.target && !n.current) {
1998
+ let u = function() {
1999
+ jo(Bl, r, l, {
2000
+ discrete: !0
2001
+ });
2002
+ };
2003
+ const l = {
2004
+ originalEvent: s
2005
+ };
2006
+ s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, {
2007
+ once: !0
2008
+ })) : u();
2009
+ } else
2010
+ t.removeEventListener("click", o.current);
2011
+ n.current = !1;
2012
+ }, a = window.setTimeout(() => {
2013
+ t.addEventListener("pointerdown", i);
2014
+ }, 0);
2015
+ return () => {
2016
+ window.clearTimeout(a), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
2017
+ };
2018
+ }, [
2019
+ t,
2020
+ r
2021
+ ]), {
2022
+ // ensures we check React component tree (not just DOM tree)
2023
+ onPointerDownCapture: () => n.current = !0
2024
+ };
2025
+ }
2026
+ function Kl(e, t = globalThis == null ? void 0 : globalThis.document) {
2027
+ const r = be(e), n = P(!1);
2028
+ return D(() => {
2029
+ const o = (i) => {
2030
+ i.target && !n.current && jo(Ul, r, {
2031
+ originalEvent: i
2032
+ }, {
2033
+ discrete: !1
2034
+ });
2035
+ };
2036
+ return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
2037
+ }, [
2038
+ t,
2039
+ r
2040
+ ]), {
2041
+ onFocusCapture: () => n.current = !0,
2042
+ onBlurCapture: () => n.current = !1
2043
+ };
2044
+ }
2045
+ function vn() {
2046
+ const e = new CustomEvent(rr);
2047
+ document.dispatchEvent(e);
2048
+ }
2049
+ function jo(e, t, r, { discrete: n }) {
2050
+ const o = r.originalEvent.target, i = new CustomEvent(e, {
2051
+ bubbles: !1,
2052
+ cancelable: !0,
2053
+ detail: r
2054
+ });
2055
+ t && o.addEventListener(e, t, {
2056
+ once: !0
2057
+ }), n ? Rl(o, i) : o.dispatchEvent(i);
2058
+ }
2059
+ const jt = "focusScope.autoFocusOnMount", Ft = "focusScope.autoFocusOnUnmount", _n = {
2060
+ bubbles: !1,
2061
+ cancelable: !0
2062
+ }, Gl = /* @__PURE__ */ B((e, t) => {
2063
+ const { loop: r = !1, trapped: n = !1, onMountAutoFocus: o, onUnmountAutoFocus: i, ...a } = e, [s, l] = W(null), u = be(o), d = be(i), c = P(null), p = Ze(
2064
+ t,
2065
+ (f) => l(f)
2066
+ ), v = P({
2067
+ paused: !1,
2068
+ pause() {
2069
+ this.paused = !0;
2070
+ },
2071
+ resume() {
2072
+ this.paused = !1;
2073
+ }
2074
+ }).current;
2075
+ D(() => {
2076
+ if (n) {
2077
+ let f = function(k) {
2078
+ if (v.paused || !s)
2079
+ return;
2080
+ const x = k.target;
2081
+ s.contains(x) ? c.current = x : ne(c.current, {
2082
+ select: !0
2083
+ });
2084
+ }, _ = function(k) {
2085
+ if (v.paused || !s)
2086
+ return;
2087
+ const x = k.relatedTarget;
2088
+ x !== null && (s.contains(x) || ne(c.current, {
2089
+ select: !0
2090
+ }));
2091
+ }, m = function(k) {
2092
+ if (document.activeElement === document.body)
2093
+ for (const $ of k)
2094
+ $.removedNodes.length > 0 && ne(s);
2095
+ };
2096
+ document.addEventListener("focusin", f), document.addEventListener("focusout", _);
2097
+ const y = new MutationObserver(m);
2098
+ return s && y.observe(s, {
2099
+ childList: !0,
2100
+ subtree: !0
2101
+ }), () => {
2102
+ document.removeEventListener("focusin", f), document.removeEventListener("focusout", _), y.disconnect();
2103
+ };
2104
+ }
2105
+ }, [
2106
+ n,
2107
+ s,
2108
+ v.paused
2109
+ ]), D(() => {
2110
+ if (s) {
2111
+ bn.add(v);
2112
+ const f = document.activeElement;
2113
+ if (!s.contains(f)) {
2114
+ const m = new CustomEvent(jt, _n);
2115
+ s.addEventListener(jt, u), s.dispatchEvent(m), m.defaultPrevented || (ql(Ql(Fo(s)), {
2116
+ select: !0
2117
+ }), document.activeElement === f && ne(s));
2118
+ }
2119
+ return () => {
2120
+ s.removeEventListener(jt, u), setTimeout(() => {
2121
+ const m = new CustomEvent(Ft, _n);
2122
+ s.addEventListener(Ft, d), s.dispatchEvent(m), m.defaultPrevented || ne(f ?? document.body, {
2123
+ select: !0
2124
+ }), s.removeEventListener(Ft, d), bn.remove(v);
2125
+ }, 0);
2126
+ };
2127
+ }
2128
+ }, [
2129
+ s,
2130
+ u,
2131
+ d,
2132
+ v
2133
+ ]);
2134
+ const h = V((f) => {
2135
+ if (!r && !n || v.paused)
2136
+ return;
2137
+ const _ = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, m = document.activeElement;
2138
+ if (_ && m) {
2139
+ const y = f.currentTarget, [k, x] = Yl(y);
2140
+ k && x ? !f.shiftKey && m === x ? (f.preventDefault(), r && ne(k, {
2141
+ select: !0
2142
+ })) : f.shiftKey && m === k && (f.preventDefault(), r && ne(x, {
2143
+ select: !0
2144
+ })) : m === y && f.preventDefault();
2145
+ }
2146
+ }, [
2147
+ r,
2148
+ n,
2149
+ v.paused
2150
+ ]);
2151
+ return /* @__PURE__ */ w(Or.div, H({
2152
+ tabIndex: -1
2153
+ }, a, {
2154
+ ref: p,
2155
+ onKeyDown: h
2156
+ }));
2157
+ });
2158
+ function ql(e, { select: t = !1 } = {}) {
2159
+ const r = document.activeElement;
2160
+ for (const n of e)
2161
+ if (ne(n, {
2162
+ select: t
2163
+ }), document.activeElement !== r)
2164
+ return;
2165
+ }
2166
+ function Yl(e) {
2167
+ const t = Fo(e), r = mn(t, e), n = mn(t.reverse(), e);
2168
+ return [
2169
+ r,
2170
+ n
2171
+ ];
2172
+ }
2173
+ function Fo(e) {
2174
+ const t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
2175
+ acceptNode: (n) => {
2176
+ const o = n.tagName === "INPUT" && n.type === "hidden";
2177
+ return n.disabled || n.hidden || o ? NodeFilter.FILTER_SKIP : n.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
2178
+ }
2179
+ });
2180
+ for (; r.nextNode(); )
2181
+ t.push(r.currentNode);
2182
+ return t;
2183
+ }
2184
+ function mn(e, t) {
2185
+ for (const r of e)
2186
+ if (!Xl(r, {
2187
+ upTo: t
2188
+ }))
2189
+ return r;
2190
+ }
2191
+ function Xl(e, { upTo: t }) {
2192
+ if (getComputedStyle(e).visibility === "hidden")
2193
+ return !0;
2194
+ for (; e; ) {
2195
+ if (t !== void 0 && e === t)
2196
+ return !1;
2197
+ if (getComputedStyle(e).display === "none")
2198
+ return !0;
2199
+ e = e.parentElement;
2200
+ }
2201
+ return !1;
2202
+ }
2203
+ function Zl(e) {
2204
+ return e instanceof HTMLInputElement && "select" in e;
2205
+ }
2206
+ function ne(e, { select: t = !1 } = {}) {
2207
+ if (e && e.focus) {
2208
+ const r = document.activeElement;
2209
+ e.focus({
2210
+ preventScroll: !0
2211
+ }), e !== r && Zl(e) && t && e.select();
2212
+ }
2213
+ }
2214
+ const bn = Jl();
2215
+ function Jl() {
2216
+ let e = [];
2217
+ return {
2218
+ add(t) {
2219
+ const r = e[0];
2220
+ t !== r && (r == null || r.pause()), e = gn(e, t), e.unshift(t);
2221
+ },
2222
+ remove(t) {
2223
+ var r;
2224
+ e = gn(e, t), (r = e[0]) === null || r === void 0 || r.resume();
2225
+ }
2226
+ };
2227
+ }
2228
+ function gn(e, t) {
2229
+ const r = [
2230
+ ...e
2231
+ ], n = r.indexOf(t);
2232
+ return n !== -1 && r.splice(n, 1), r;
2233
+ }
2234
+ function Ql(e) {
2235
+ return e.filter(
2236
+ (t) => t.tagName !== "A"
2237
+ );
2238
+ }
2239
+ function eu(e, t) {
2240
+ return St((r, n) => {
2241
+ const o = t[r][n];
2242
+ return o ?? r;
2243
+ }, e);
2244
+ }
2245
+ const Pr = (e) => {
2246
+ const { present: t, children: r } = e, n = tu(t), o = typeof r == "function" ? r({
2247
+ present: n.isPresent
2248
+ }) : ee.only(r), i = Ze(n.ref, o.ref);
2249
+ return typeof r == "function" || n.isPresent ? /* @__PURE__ */ je(o, {
2250
+ ref: i
2251
+ }) : null;
2252
+ };
2253
+ Pr.displayName = "Presence";
2254
+ function tu(e) {
2255
+ const [t, r] = W(), n = P({}), o = P(e), i = P("none"), a = e ? "mounted" : "unmounted", [s, l] = eu(a, {
2256
+ mounted: {
2257
+ UNMOUNT: "unmounted",
2258
+ ANIMATION_OUT: "unmountSuspended"
2259
+ },
2260
+ unmountSuspended: {
2261
+ MOUNT: "mounted",
2262
+ ANIMATION_END: "unmounted"
2263
+ },
2264
+ unmounted: {
2265
+ MOUNT: "mounted"
2266
+ }
2267
+ });
2268
+ return D(() => {
2269
+ const u = et(n.current);
2270
+ i.current = s === "mounted" ? u : "none";
2271
+ }, [
2272
+ s
2273
+ ]), er(() => {
2274
+ const u = n.current, d = o.current;
2275
+ if (d !== e) {
2276
+ const p = i.current, v = et(u);
2277
+ e ? l("MOUNT") : v === "none" || (u == null ? void 0 : u.display) === "none" ? l("UNMOUNT") : l(d && p !== v ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
2278
+ }
2279
+ }, [
2280
+ e,
2281
+ l
2282
+ ]), er(() => {
2283
+ if (t) {
2284
+ const u = (c) => {
2285
+ const v = et(n.current).includes(c.animationName);
2286
+ c.target === t && v && Et(
2287
+ () => l("ANIMATION_END")
2288
+ );
2289
+ }, d = (c) => {
2290
+ c.target === t && (i.current = et(n.current));
2291
+ };
2292
+ return t.addEventListener("animationstart", d), t.addEventListener("animationcancel", u), t.addEventListener("animationend", u), () => {
2293
+ t.removeEventListener("animationstart", d), t.removeEventListener("animationcancel", u), t.removeEventListener("animationend", u);
2294
+ };
2295
+ } else
2296
+ l("ANIMATION_END");
2297
+ }, [
2298
+ t,
2299
+ l
2300
+ ]), {
2301
+ isPresent: [
2302
+ "mounted",
2303
+ "unmountSuspended"
2304
+ ].includes(s),
2305
+ ref: V((u) => {
2306
+ u && (n.current = getComputedStyle(u)), r(u);
2307
+ }, [])
2308
+ };
2309
+ }
2310
+ function et(e) {
2311
+ return (e == null ? void 0 : e.animationName) || "none";
2312
+ }
2313
+ let Lt = 0;
2314
+ function ru() {
2315
+ D(() => {
2316
+ var e, t;
2317
+ const r = document.querySelectorAll("[data-radix-focus-guard]");
2318
+ return document.body.insertAdjacentElement("afterbegin", (e = r[0]) !== null && e !== void 0 ? e : wn()), document.body.insertAdjacentElement("beforeend", (t = r[1]) !== null && t !== void 0 ? t : wn()), Lt++, () => {
2319
+ Lt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach(
2320
+ (n) => n.remove()
2321
+ ), Lt--;
2322
+ };
2323
+ }, []);
2324
+ }
2325
+ function wn() {
2326
+ const e = document.createElement("span");
2327
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
2328
+ }
2329
+ var Z = function() {
2330
+ return Z = Object.assign || function(t) {
2331
+ for (var r, n = 1, o = arguments.length; n < o; n++) {
2332
+ r = arguments[n];
2333
+ for (var i in r)
2334
+ Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
2335
+ }
2336
+ return t;
2337
+ }, Z.apply(this, arguments);
2338
+ };
2339
+ function Lo(e, t) {
2340
+ var r = {};
2341
+ for (var n in e)
2342
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2343
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2344
+ for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
2345
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
2346
+ return r;
2347
+ }
2348
+ function nu(e, t, r) {
2349
+ if (r || arguments.length === 2)
2350
+ for (var n = 0, o = t.length, i; n < o; n++)
2351
+ (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
2352
+ return e.concat(i || Array.prototype.slice.call(t));
2353
+ }
2354
+ var lt = "right-scroll-bar-position", ut = "width-before-scroll-bar", ou = "with-scroll-bars-hidden", iu = "--removed-body-scroll-bar-size";
2355
+ function au(e, t) {
2356
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
2357
+ }
2358
+ function su(e, t) {
2359
+ var r = W(function() {
2360
+ return {
2361
+ // value
2362
+ value: e,
2363
+ // last callback
2364
+ callback: t,
2365
+ // "memoized" public interface
2366
+ facade: {
2367
+ get current() {
2368
+ return r.value;
2369
+ },
2370
+ set current(n) {
2371
+ var o = r.value;
2372
+ o !== n && (r.value = n, r.callback(n, o));
2373
+ }
2374
+ }
2375
+ };
2376
+ })[0];
2377
+ return r.callback = t, r.facade;
2378
+ }
2379
+ function cu(e, t) {
2380
+ return su(t || null, function(r) {
2381
+ return e.forEach(function(n) {
2382
+ return au(n, r);
2383
+ });
2384
+ });
2385
+ }
2386
+ function lu(e) {
2387
+ return e;
2388
+ }
2389
+ function uu(e, t) {
2390
+ t === void 0 && (t = lu);
2391
+ var r = [], n = !1, o = {
2392
+ read: function() {
2393
+ if (n)
2394
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
2395
+ return r.length ? r[r.length - 1] : e;
2396
+ },
2397
+ useMedium: function(i) {
2398
+ var a = t(i, n);
2399
+ return r.push(a), function() {
2400
+ r = r.filter(function(s) {
2401
+ return s !== a;
2402
+ });
2403
+ };
2404
+ },
2405
+ assignSyncMedium: function(i) {
2406
+ for (n = !0; r.length; ) {
2407
+ var a = r;
2408
+ r = [], a.forEach(i);
2409
+ }
2410
+ r = {
2411
+ push: function(s) {
2412
+ return i(s);
2413
+ },
2414
+ filter: function() {
2415
+ return r;
2416
+ }
2417
+ };
2418
+ },
2419
+ assignMedium: function(i) {
2420
+ n = !0;
2421
+ var a = [];
2422
+ if (r.length) {
2423
+ var s = r;
2424
+ r = [], s.forEach(i), a = r;
2425
+ }
2426
+ var l = function() {
2427
+ var d = a;
2428
+ a = [], d.forEach(i);
2429
+ }, u = function() {
2430
+ return Promise.resolve().then(l);
2431
+ };
2432
+ u(), r = {
2433
+ push: function(d) {
2434
+ a.push(d), u();
2435
+ },
2436
+ filter: function(d) {
2437
+ return a = a.filter(d), r;
2438
+ }
2439
+ };
2440
+ }
2441
+ };
2442
+ return o;
2443
+ }
2444
+ function du(e) {
2445
+ e === void 0 && (e = {});
2446
+ var t = uu(null);
2447
+ return t.options = Z({ async: !0, ssr: !1 }, e), t;
2448
+ }
2449
+ var Ro = function(e) {
2450
+ var t = e.sideCar, r = Lo(e, ["sideCar"]);
2451
+ if (!t)
2452
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2453
+ var n = t.read();
2454
+ if (!n)
2455
+ throw new Error("Sidecar medium not found");
2456
+ return w(n, Z({}, r));
2457
+ };
2458
+ Ro.isSideCarExport = !0;
2459
+ function fu(e, t) {
2460
+ return e.useMedium(t), Ro;
2461
+ }
2462
+ var zo = du(), Rt = function() {
2463
+ }, Ot = B(function(e, t) {
2464
+ var r = P(null), n = W({
2465
+ onScrollCapture: Rt,
2466
+ onWheelCapture: Rt,
2467
+ onTouchMoveCapture: Rt
2468
+ }), o = n[0], i = n[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, c = e.shards, p = e.sideCar, v = e.noIsolation, h = e.inert, f = e.allowPinchZoom, _ = e.as, m = _ === void 0 ? "div" : _, y = Lo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), k = p, x = cu([r, t]), $ = Z(Z({}, y), o);
2469
+ return w(
2470
+ j,
2471
+ null,
2472
+ d && w(k, { sideCar: zo, removeScrollBar: u, shards: c, noIsolation: v, inert: h, setCallbacks: i, allowPinchZoom: !!f, lockRef: r }),
2473
+ a ? je(ee.only(s), Z(Z({}, $), { ref: x })) : w(m, Z({}, $, { className: l, ref: x }), s)
2474
+ );
2475
+ });
2476
+ Ot.defaultProps = {
2477
+ enabled: !0,
2478
+ removeScrollBar: !0,
2479
+ inert: !1
2480
+ };
2481
+ Ot.classNames = {
2482
+ fullWidth: ut,
2483
+ zeroRight: lt
2484
+ };
2485
+ var yn, pu = function() {
2486
+ if (yn)
2487
+ return yn;
2488
+ if (typeof __webpack_nonce__ < "u")
2489
+ return __webpack_nonce__;
2490
+ };
2491
+ function hu() {
2492
+ if (!document)
2493
+ return null;
2494
+ var e = document.createElement("style");
2495
+ e.type = "text/css";
2496
+ var t = pu();
2497
+ return t && e.setAttribute("nonce", t), e;
2498
+ }
2499
+ function vu(e, t) {
2500
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2501
+ }
2502
+ function _u(e) {
2503
+ var t = document.head || document.getElementsByTagName("head")[0];
2504
+ t.appendChild(e);
2505
+ }
2506
+ var mu = function() {
2507
+ var e = 0, t = null;
2508
+ return {
2509
+ add: function(r) {
2510
+ e == 0 && (t = hu()) && (vu(t, r), _u(t)), e++;
2511
+ },
2512
+ remove: function() {
2513
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2514
+ }
2515
+ };
2516
+ }, bu = function() {
2517
+ var e = mu();
2518
+ return function(t, r) {
2519
+ D(function() {
2520
+ return e.add(t), function() {
2521
+ e.remove();
2522
+ };
2523
+ }, [t && r]);
2524
+ };
2525
+ }, Bo = function() {
2526
+ var e = bu(), t = function(r) {
2527
+ var n = r.styles, o = r.dynamic;
2528
+ return e(n, o), null;
2529
+ };
2530
+ return t;
2531
+ }, gu = {
2532
+ left: 0,
2533
+ top: 0,
2534
+ right: 0,
2535
+ gap: 0
2536
+ }, zt = function(e) {
2537
+ return parseInt(e || "", 10) || 0;
2538
+ }, wu = function(e) {
2539
+ var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2540
+ return [zt(r), zt(n), zt(o)];
2541
+ }, yu = function(e) {
2542
+ if (e === void 0 && (e = "margin"), typeof window > "u")
2543
+ return gu;
2544
+ var t = wu(e), r = document.documentElement.clientWidth, n = window.innerWidth;
2545
+ return {
2546
+ left: t[0],
2547
+ top: t[1],
2548
+ right: t[2],
2549
+ gap: Math.max(0, n - r + t[2] - t[0])
2550
+ };
2551
+ }, ku = Bo(), xu = function(e, t, r, n) {
2552
+ var o = e.left, i = e.top, a = e.right, s = e.gap;
2553
+ return r === void 0 && (r = "margin"), `
2554
+ .`.concat(ou, ` {
2555
+ overflow: hidden `).concat(n, `;
2556
+ padding-right: `).concat(s, "px ").concat(n, `;
2557
+ }
2558
+ body {
2559
+ overflow: hidden `).concat(n, `;
2560
+ overscroll-behavior: contain;
2561
+ `).concat([
2562
+ t && "position: relative ".concat(n, ";"),
2563
+ r === "margin" && `
2564
+ padding-left: `.concat(o, `px;
2565
+ padding-top: `).concat(i, `px;
2566
+ padding-right: `).concat(a, `px;
2567
+ margin-left:0;
2568
+ margin-top:0;
2569
+ margin-right: `).concat(s, "px ").concat(n, `;
2570
+ `),
2571
+ r === "padding" && "padding-right: ".concat(s, "px ").concat(n, ";")
2572
+ ].filter(Boolean).join(""), `
2573
+ }
2574
+
2575
+ .`).concat(lt, ` {
2576
+ right: `).concat(s, "px ").concat(n, `;
2577
+ }
2578
+
2579
+ .`).concat(ut, ` {
2580
+ margin-right: `).concat(s, "px ").concat(n, `;
2581
+ }
2582
+
2583
+ .`).concat(lt, " .").concat(lt, ` {
2584
+ right: 0 `).concat(n, `;
2585
+ }
2586
+
2587
+ .`).concat(ut, " .").concat(ut, ` {
2588
+ margin-right: 0 `).concat(n, `;
2589
+ }
2590
+
2591
+ body {
2592
+ `).concat(iu, ": ").concat(s, `px;
2593
+ }
2594
+ `);
2595
+ }, $u = function(e) {
2596
+ var t = e.noRelative, r = e.noImportant, n = e.gapMode, o = n === void 0 ? "margin" : n, i = q(function() {
2597
+ return yu(o);
2598
+ }, [o]);
2599
+ return w(ku, { styles: xu(i, !t, o, r ? "" : "!important") });
2600
+ }, nr = !1;
2601
+ if (typeof window < "u")
2602
+ try {
2603
+ var tt = Object.defineProperty({}, "passive", {
2604
+ get: function() {
2605
+ return nr = !0, !0;
2606
+ }
2607
+ });
2608
+ window.addEventListener("test", tt, tt), window.removeEventListener("test", tt, tt);
2609
+ } catch {
2610
+ nr = !1;
2611
+ }
2612
+ var we = nr ? { passive: !1 } : !1, Su = function(e) {
2613
+ return e.tagName === "TEXTAREA";
2614
+ }, Uo = function(e, t) {
2615
+ var r = window.getComputedStyle(e);
2616
+ return (
2617
+ // not-not-scrollable
2618
+ r[t] !== "hidden" && // contains scroll inside self
2619
+ !(r.overflowY === r.overflowX && !Su(e) && r[t] === "visible")
2620
+ );
2621
+ }, Cu = function(e) {
2622
+ return Uo(e, "overflowY");
2623
+ }, Eu = function(e) {
2624
+ return Uo(e, "overflowX");
2625
+ }, kn = function(e, t) {
2626
+ var r = t;
2627
+ do {
2628
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2629
+ var n = Ho(e, r);
2630
+ if (n) {
2631
+ var o = Wo(e, r), i = o[1], a = o[2];
2632
+ if (i > a)
2633
+ return !0;
2634
+ }
2635
+ r = r.parentNode;
2636
+ } while (r && r !== document.body);
2637
+ return !1;
2638
+ }, Ou = function(e) {
2639
+ var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight;
2640
+ return [
2641
+ t,
2642
+ r,
2643
+ n
2644
+ ];
2645
+ }, Pu = function(e) {
2646
+ var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth;
2647
+ return [
2648
+ t,
2649
+ r,
2650
+ n
2651
+ ];
2652
+ }, Ho = function(e, t) {
2653
+ return e === "v" ? Cu(t) : Eu(t);
2654
+ }, Wo = function(e, t) {
2655
+ return e === "v" ? Ou(t) : Pu(t);
2656
+ }, Tu = function(e, t) {
2657
+ return e === "h" && t === "rtl" ? -1 : 1;
2658
+ }, Iu = function(e, t, r, n, o) {
2659
+ var i = Tu(e, window.getComputedStyle(t).direction), a = i * n, s = r.target, l = t.contains(s), u = !1, d = a > 0, c = 0, p = 0;
2660
+ do {
2661
+ var v = Wo(e, s), h = v[0], f = v[1], _ = v[2], m = f - _ - i * h;
2662
+ (h || m) && Ho(e, s) && (c += m, p += h), s = s.parentNode;
2663
+ } while (
2664
+ // portaled content
2665
+ !l && s !== document.body || // self content
2666
+ l && (t.contains(s) || t === s)
2667
+ );
2668
+ return (d && (o && c === 0 || !o && a > c) || !d && (o && p === 0 || !o && -a > p)) && (u = !0), u;
2669
+ }, rt = function(e) {
2670
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2671
+ }, xn = function(e) {
2672
+ return [e.deltaX, e.deltaY];
2673
+ }, $n = function(e) {
2674
+ return e && "current" in e ? e.current : e;
2675
+ }, Du = function(e, t) {
2676
+ return e[0] === t[0] && e[1] === t[1];
2677
+ }, Nu = function(e) {
2678
+ return `
2679
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
2680
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2681
+ `);
2682
+ }, Au = 0, ye = [];
2683
+ function Mu(e) {
2684
+ var t = P([]), r = P([0, 0]), n = P(), o = W(Au++)[0], i = W(function() {
2685
+ return Bo();
2686
+ })[0], a = P(e);
2687
+ D(function() {
2688
+ a.current = e;
2689
+ }, [e]), D(function() {
2690
+ if (e.inert) {
2691
+ document.body.classList.add("block-interactivity-".concat(o));
2692
+ var f = nu([e.lockRef.current], (e.shards || []).map($n), !0).filter(Boolean);
2693
+ return f.forEach(function(_) {
2694
+ return _.classList.add("allow-interactivity-".concat(o));
2695
+ }), function() {
2696
+ document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(_) {
2697
+ return _.classList.remove("allow-interactivity-".concat(o));
2698
+ });
2699
+ };
2700
+ }
2701
+ }, [e.inert, e.lockRef.current, e.shards]);
2702
+ var s = V(function(f, _) {
2703
+ if ("touches" in f && f.touches.length === 2)
2704
+ return !a.current.allowPinchZoom;
2705
+ var m = rt(f), y = r.current, k = "deltaX" in f ? f.deltaX : y[0] - m[0], x = "deltaY" in f ? f.deltaY : y[1] - m[1], $, N = f.target, L = Math.abs(k) > Math.abs(x) ? "h" : "v";
2706
+ if ("touches" in f && L === "h" && N.type === "range")
2707
+ return !1;
2708
+ var C = kn(L, N);
2709
+ if (!C)
2710
+ return !0;
2711
+ if (C ? $ = L : ($ = L === "v" ? "h" : "v", C = kn(L, N)), !C)
2712
+ return !1;
2713
+ if (!n.current && "changedTouches" in f && (k || x) && (n.current = $), !$)
2714
+ return !0;
2715
+ var T = n.current || $;
2716
+ return Iu(T, _, f, T === "h" ? k : x, !0);
2717
+ }, []), l = V(function(f) {
2718
+ var _ = f;
2719
+ if (!(!ye.length || ye[ye.length - 1] !== i)) {
2720
+ var m = "deltaY" in _ ? xn(_) : rt(_), y = t.current.filter(function($) {
2721
+ return $.name === _.type && $.target === _.target && Du($.delta, m);
2722
+ })[0];
2723
+ if (y && y.should) {
2724
+ _.cancelable && _.preventDefault();
2725
+ return;
2726
+ }
2727
+ if (!y) {
2728
+ var k = (a.current.shards || []).map($n).filter(Boolean).filter(function($) {
2729
+ return $.contains(_.target);
2730
+ }), x = k.length > 0 ? s(_, k[0]) : !a.current.noIsolation;
2731
+ x && _.cancelable && _.preventDefault();
2732
+ }
2733
+ }
2734
+ }, []), u = V(function(f, _, m, y) {
2735
+ var k = { name: f, delta: _, target: m, should: y };
2736
+ t.current.push(k), setTimeout(function() {
2737
+ t.current = t.current.filter(function(x) {
2738
+ return x !== k;
2739
+ });
2740
+ }, 1);
2741
+ }, []), d = V(function(f) {
2742
+ r.current = rt(f), n.current = void 0;
2743
+ }, []), c = V(function(f) {
2744
+ u(f.type, xn(f), f.target, s(f, e.lockRef.current));
2745
+ }, []), p = V(function(f) {
2746
+ u(f.type, rt(f), f.target, s(f, e.lockRef.current));
2747
+ }, []);
2748
+ D(function() {
2749
+ return ye.push(i), e.setCallbacks({
2750
+ onScrollCapture: c,
2751
+ onWheelCapture: c,
2752
+ onTouchMoveCapture: p
2753
+ }), document.addEventListener("wheel", l, we), document.addEventListener("touchmove", l, we), document.addEventListener("touchstart", d, we), function() {
2754
+ ye = ye.filter(function(f) {
2755
+ return f !== i;
2756
+ }), document.removeEventListener("wheel", l, we), document.removeEventListener("touchmove", l, we), document.removeEventListener("touchstart", d, we);
2757
+ };
2758
+ }, []);
2759
+ var v = e.removeScrollBar, h = e.inert;
2760
+ return w(
2761
+ j,
2762
+ null,
2763
+ h ? w(i, { styles: Nu(o) }) : null,
2764
+ v ? w($u, { gapMode: "margin" }) : null
2765
+ );
2766
+ }
2767
+ const ju = fu(zo, Mu);
2768
+ var Vo = B(function(e, t) {
2769
+ return w(Ot, Z({}, e, { ref: t, sideCar: ju }));
2770
+ });
2771
+ Vo.classNames = Ot.classNames;
2772
+ const Fu = Vo;
2773
+ var Lu = function(e) {
2774
+ if (typeof document > "u")
2775
+ return null;
2776
+ var t = Array.isArray(e) ? e[0] : e;
2777
+ return t.ownerDocument.body;
2778
+ }, ke = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), ot = {}, Bt = 0, Ko = function(e) {
2779
+ return e && (e.host || Ko(e.parentNode));
2780
+ }, Ru = function(e, t) {
2781
+ return t.map(function(r) {
2782
+ if (e.contains(r))
2783
+ return r;
2784
+ var n = Ko(r);
2785
+ return n && e.contains(n) ? n : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null);
2786
+ }).filter(function(r) {
2787
+ return !!r;
2788
+ });
2789
+ }, zu = function(e, t, r, n) {
2790
+ var o = Ru(t, Array.isArray(e) ? e : [e]);
2791
+ ot[r] || (ot[r] = /* @__PURE__ */ new WeakMap());
2792
+ var i = ot[r], a = [], s = /* @__PURE__ */ new Set(), l = new Set(o), u = function(c) {
2793
+ !c || s.has(c) || (s.add(c), u(c.parentNode));
2794
+ };
2795
+ o.forEach(u);
2796
+ var d = function(c) {
2797
+ !c || l.has(c) || Array.prototype.forEach.call(c.children, function(p) {
2798
+ if (s.has(p))
2799
+ d(p);
2800
+ else {
2801
+ var v = p.getAttribute(n), h = v !== null && v !== "false", f = (ke.get(p) || 0) + 1, _ = (i.get(p) || 0) + 1;
2802
+ ke.set(p, f), i.set(p, _), a.push(p), f === 1 && h && nt.set(p, !0), _ === 1 && p.setAttribute(r, "true"), h || p.setAttribute(n, "true");
2803
+ }
2804
+ });
2805
+ };
2806
+ return d(t), s.clear(), Bt++, function() {
2807
+ a.forEach(function(c) {
2808
+ var p = ke.get(c) - 1, v = i.get(c) - 1;
2809
+ ke.set(c, p), i.set(c, v), p || (nt.has(c) || c.removeAttribute(n), nt.delete(c)), v || c.removeAttribute(r);
2810
+ }), Bt--, Bt || (ke = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), ot = {});
2811
+ };
2812
+ }, Bu = function(e, t, r) {
2813
+ r === void 0 && (r = "data-aria-hidden");
2814
+ var n = Array.from(Array.isArray(e) ? e : [e]), o = t || Lu(e);
2815
+ return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), zu(n, o, r, "aria-hidden")) : function() {
2816
+ return null;
2817
+ };
2818
+ };
2819
+ const Go = "Dialog", [qo, hf] = Pl(Go), [Uu, Fe] = qo(Go), Hu = (e) => {
2820
+ const { __scopeDialog: t, children: r, open: n, defaultOpen: o, onOpenChange: i, modal: a = !0 } = e, s = P(null), l = P(null), [u = !1, d] = Nl({
2821
+ prop: n,
2822
+ defaultProp: o,
2823
+ onChange: i
2824
+ });
2825
+ return /* @__PURE__ */ w(Uu, {
2826
+ scope: t,
2827
+ triggerRef: s,
2828
+ contentRef: l,
2829
+ contentId: Mt(),
2830
+ titleId: Mt(),
2831
+ descriptionId: Mt(),
2832
+ open: u,
2833
+ onOpenChange: d,
2834
+ onOpenToggle: V(
2835
+ () => d(
2836
+ (c) => !c
2837
+ ),
2838
+ [
2839
+ d
2840
+ ]
2841
+ ),
2842
+ modal: a
2843
+ }, r);
2844
+ }, Wu = "DialogPortal", [vf, Yo] = qo(Wu, {
2845
+ forceMount: void 0
2846
+ }), or = "DialogOverlay", Vu = /* @__PURE__ */ B((e, t) => {
2847
+ const r = Yo(or, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, i = Fe(or, e.__scopeDialog);
2848
+ return i.modal ? /* @__PURE__ */ w(Pr, {
2849
+ present: n || i.open
2850
+ }, /* @__PURE__ */ w(Ku, H({}, o, {
2851
+ ref: t
2852
+ }))) : null;
2853
+ }), Ku = /* @__PURE__ */ B((e, t) => {
2854
+ const { __scopeDialog: r, ...n } = e, o = Fe(or, r);
2855
+ return (
2856
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2857
+ // ie. when `Overlay` and `Content` are siblings
2858
+ /* @__PURE__ */ w(Fu, {
2859
+ as: Er,
2860
+ allowPinchZoom: !0,
2861
+ shards: [
2862
+ o.contentRef
2863
+ ]
2864
+ }, /* @__PURE__ */ w(Or.div, H({
2865
+ "data-state": Zo(o.open)
2866
+ }, n, {
2867
+ ref: t,
2868
+ style: {
2869
+ pointerEvents: "auto",
2870
+ ...n.style
2871
+ }
2872
+ })))
2873
+ );
2874
+ }), Ve = "DialogContent", Gu = /* @__PURE__ */ B((e, t) => {
2875
+ const r = Yo(Ve, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, i = Fe(Ve, e.__scopeDialog);
2876
+ return /* @__PURE__ */ w(Pr, {
2877
+ present: n || i.open
2878
+ }, i.modal ? /* @__PURE__ */ w(qu, H({}, o, {
2879
+ ref: t
2880
+ })) : /* @__PURE__ */ w(Yu, H({}, o, {
2881
+ ref: t
2882
+ })));
2883
+ }), qu = /* @__PURE__ */ B((e, t) => {
2884
+ const r = Fe(Ve, e.__scopeDialog), n = P(null), o = Ze(t, r.contentRef, n);
2885
+ return D(() => {
2886
+ const i = n.current;
2887
+ if (i)
2888
+ return Bu(i);
2889
+ }, []), /* @__PURE__ */ w(Xo, H({}, e, {
2890
+ ref: o,
2891
+ trapFocus: r.open,
2892
+ disableOutsidePointerEvents: !0,
2893
+ onCloseAutoFocus: Oe(e.onCloseAutoFocus, (i) => {
2894
+ var a;
2895
+ i.preventDefault(), (a = r.triggerRef.current) === null || a === void 0 || a.focus();
2896
+ }),
2897
+ onPointerDownOutside: Oe(e.onPointerDownOutside, (i) => {
2898
+ const a = i.detail.originalEvent, s = a.button === 0 && a.ctrlKey === !0;
2899
+ (a.button === 2 || s) && i.preventDefault();
2900
+ }),
2901
+ onFocusOutside: Oe(
2902
+ e.onFocusOutside,
2903
+ (i) => i.preventDefault()
2904
+ )
2905
+ }));
2906
+ }), Yu = /* @__PURE__ */ B((e, t) => {
2907
+ const r = Fe(Ve, e.__scopeDialog), n = P(!1), o = P(!1);
2908
+ return /* @__PURE__ */ w(Xo, H({}, e, {
2909
+ ref: t,
2910
+ trapFocus: !1,
2911
+ disableOutsidePointerEvents: !1,
2912
+ onCloseAutoFocus: (i) => {
2913
+ var a;
2914
+ if ((a = e.onCloseAutoFocus) === null || a === void 0 || a.call(e, i), !i.defaultPrevented) {
2915
+ var s;
2916
+ n.current || (s = r.triggerRef.current) === null || s === void 0 || s.focus(), i.preventDefault();
2917
+ }
2918
+ n.current = !1, o.current = !1;
2919
+ },
2920
+ onInteractOutside: (i) => {
2921
+ var a, s;
2922
+ (a = e.onInteractOutside) === null || a === void 0 || a.call(e, i), i.defaultPrevented || (n.current = !0, i.detail.originalEvent.type === "pointerdown" && (o.current = !0));
2923
+ const l = i.target;
2924
+ ((s = r.triggerRef.current) === null || s === void 0 ? void 0 : s.contains(l)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && o.current && i.preventDefault();
2925
+ }
2926
+ }));
2927
+ }), Xo = /* @__PURE__ */ B((e, t) => {
2928
+ const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = Fe(Ve, r), l = P(null), u = Ze(t, l);
2929
+ return ru(), /* @__PURE__ */ w(j, null, /* @__PURE__ */ w(Gl, {
2930
+ asChild: !0,
2931
+ loop: !0,
2932
+ trapped: n,
2933
+ onMountAutoFocus: o,
2934
+ onUnmountAutoFocus: i
2935
+ }, /* @__PURE__ */ w(Wl, H({
2936
+ role: "dialog",
2937
+ id: s.contentId,
2938
+ "aria-describedby": s.descriptionId,
2939
+ "aria-labelledby": s.titleId,
2940
+ "data-state": Zo(s.open)
2941
+ }, a, {
2942
+ ref: u,
2943
+ onDismiss: () => s.onOpenChange(!1)
2944
+ }))), !1);
2945
+ });
2946
+ function Zo(e) {
2947
+ return e ? "open" : "closed";
2948
+ }
2949
+ const Xu = Hu, Zu = Vu, Ju = Gu;
2950
+ function Jo(e) {
2951
+ var t, r, n = "";
2952
+ if (typeof e == "string" || typeof e == "number")
2953
+ n += e;
2954
+ else if (typeof e == "object")
2955
+ if (Array.isArray(e))
2956
+ for (t = 0; t < e.length; t++)
2957
+ e[t] && (r = Jo(e[t])) && (n && (n += " "), n += r);
2958
+ else
2959
+ for (t in e)
2960
+ e[t] && (n && (n += " "), n += t);
2961
+ return n;
2962
+ }
2963
+ function Qo() {
2964
+ for (var e, t, r = 0, n = ""; r < arguments.length; )
2965
+ (e = arguments[r++]) && (t = Jo(e)) && (n && (n += " "), n += t);
2966
+ return n;
2967
+ }
2968
+ const Sn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Cn = Qo, Qu = (e, t) => (r) => {
2969
+ var n;
2970
+ if ((t == null ? void 0 : t.variants) == null)
2971
+ return Cn(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
2972
+ const { variants: o, defaultVariants: i } = t, a = Object.keys(o).map((u) => {
2973
+ const d = r == null ? void 0 : r[u], c = i == null ? void 0 : i[u];
2974
+ if (d === null)
2975
+ return null;
2976
+ const p = Sn(d) || Sn(c);
2977
+ return o[u][p];
2978
+ }), s = r && Object.entries(r).reduce((u, d) => {
2979
+ let [c, p] = d;
2980
+ return p === void 0 || (u[c] = p), u;
2981
+ }, {}), l = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((u, d) => {
2982
+ let { class: c, className: p, ...v } = d;
2983
+ return Object.entries(v).every((h) => {
2984
+ let [f, _] = h;
2985
+ return Array.isArray(_) ? _.includes({
2986
+ ...i,
2987
+ ...s
2988
+ }[f]) : {
2989
+ ...i,
2990
+ ...s
2991
+ }[f] === _;
2992
+ }) ? [
2993
+ ...u,
2994
+ c,
2995
+ p
2996
+ ] : u;
2997
+ }, []);
2998
+ return Cn(e, a, l, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
2999
+ }, U = Symbol.for("@ts-pattern/matcher"), ei = Symbol.for("@ts-pattern/isVariadic"), mt = "@ts-pattern/anonymous-select-key", ir = (e) => !!(e && typeof e == "object"), dt = (e) => e && !!e[U], M = (e, t, r) => {
3000
+ if (dt(e)) {
3001
+ const n = e[U](), { matched: o, selections: i } = n.match(t);
3002
+ return o && i && Object.keys(i).forEach((a) => r(a, i[a])), o;
3003
+ }
3004
+ if (ir(e)) {
3005
+ if (!ir(t))
3006
+ return !1;
3007
+ if (Array.isArray(e)) {
3008
+ if (!Array.isArray(t))
3009
+ return !1;
3010
+ let n = [], o = [], i = [];
3011
+ for (const a of e.keys()) {
3012
+ const s = e[a];
3013
+ dt(s) && s[ei] ? i.push(s) : i.length ? o.push(s) : n.push(s);
3014
+ }
3015
+ if (i.length) {
3016
+ if (i.length > 1)
3017
+ throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
3018
+ if (t.length < n.length + o.length)
3019
+ return !1;
3020
+ const a = t.slice(0, n.length), s = o.length === 0 ? [] : t.slice(-o.length), l = t.slice(n.length, o.length === 0 ? 1 / 0 : -o.length);
3021
+ return n.every((u, d) => M(u, a[d], r)) && o.every((u, d) => M(u, s[d], r)) && (i.length === 0 || M(i[0], l, r));
3022
+ }
3023
+ return e.length === t.length && e.every((a, s) => M(a, t[s], r));
3024
+ }
3025
+ return Object.keys(e).every((n) => {
3026
+ const o = e[n];
3027
+ return (n in t || dt(i = o) && i[U]().matcherType === "optional") && M(o, t[n], r);
3028
+ var i;
3029
+ });
3030
+ }
3031
+ return Object.is(t, e);
3032
+ }, K = (e) => {
3033
+ var t, r, n;
3034
+ return ir(e) ? dt(e) ? (t = (r = (n = e[U]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? Ke(e, K) : Ke(Object.values(e), K) : [];
3035
+ }, Ke = (e, t) => e.reduce((r, n) => r.concat(t(n)), []);
3036
+ function ed(...e) {
3037
+ if (e.length === 1) {
3038
+ const [t] = e;
3039
+ return (r) => M(t, r, () => {
3040
+ });
3041
+ }
3042
+ if (e.length === 2) {
3043
+ const [t, r] = e;
3044
+ return M(t, r, () => {
3045
+ });
3046
+ }
3047
+ throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`);
3048
+ }
3049
+ function R(e) {
3050
+ return Object.assign(e, { optional: () => Tr(e), and: (t) => O(e, t), or: (t) => ti(e, t), select: (t) => t === void 0 ? Ge(e) : Ge(t, e) });
3051
+ }
3052
+ function ar(e) {
3053
+ return Object.assign(((t) => Object.assign(t, { *[Symbol.iterator]() {
3054
+ yield Object.assign(t, { [ei]: !0 });
3055
+ } }))(e), { optional: () => ar(Tr(e)), select: (t) => ar(t === void 0 ? Ge(e) : Ge(t, e)) });
3056
+ }
3057
+ function Tr(e) {
3058
+ return R({ [U]: () => ({ match: (t) => {
3059
+ let r = {};
3060
+ const n = (o, i) => {
3061
+ r[o] = i;
3062
+ };
3063
+ return t === void 0 ? (K(e).forEach((o) => n(o, void 0)), { matched: !0, selections: r }) : { matched: M(e, t, n), selections: r };
3064
+ }, getSelectionKeys: () => K(e), matcherType: "optional" }) });
3065
+ }
3066
+ const td = (e, t) => {
3067
+ for (const r of e)
3068
+ if (!t(r))
3069
+ return !1;
3070
+ return !0;
3071
+ }, rd = (e, t) => {
3072
+ for (const [r, n] of e.entries())
3073
+ if (!t(n, r))
3074
+ return !1;
3075
+ return !0;
3076
+ };
3077
+ function O(...e) {
3078
+ return R({ [U]: () => ({ match: (t) => {
3079
+ let r = {};
3080
+ const n = (o, i) => {
3081
+ r[o] = i;
3082
+ };
3083
+ return { matched: e.every((o) => M(o, t, n)), selections: r };
3084
+ }, getSelectionKeys: () => Ke(e, K), matcherType: "and" }) });
3085
+ }
3086
+ function ti(...e) {
3087
+ return R({ [U]: () => ({ match: (t) => {
3088
+ let r = {};
3089
+ const n = (o, i) => {
3090
+ r[o] = i;
3091
+ };
3092
+ return Ke(e, K).forEach((o) => n(o, void 0)), { matched: e.some((o) => M(o, t, n)), selections: r };
3093
+ }, getSelectionKeys: () => Ke(e, K), matcherType: "or" }) });
3094
+ }
3095
+ function S(e) {
3096
+ return { [U]: () => ({ match: (t) => ({ matched: !!e(t) }) }) };
3097
+ }
3098
+ function Ge(...e) {
3099
+ const t = typeof e[0] == "string" ? e[0] : void 0, r = e.length === 2 ? e[1] : typeof e[0] == "string" ? void 0 : e[0];
3100
+ return R({ [U]: () => ({ match: (n) => {
3101
+ let o = { [t ?? mt]: n };
3102
+ return { matched: r === void 0 || M(r, n, (i, a) => {
3103
+ o[i] = a;
3104
+ }), selections: o };
3105
+ }, getSelectionKeys: () => [t ?? mt].concat(r === void 0 ? [] : K(r)) }) });
3106
+ }
3107
+ function Y(e) {
3108
+ return typeof e == "number";
3109
+ }
3110
+ function fe(e) {
3111
+ return typeof e == "string";
3112
+ }
3113
+ function oe(e) {
3114
+ return typeof e == "bigint";
3115
+ }
3116
+ const ri = R(S(function(e) {
3117
+ return !0;
3118
+ })), nd = ri, pe = (e) => Object.assign(R(e), { startsWith: (t) => {
3119
+ return pe(O(e, (r = t, S((n) => fe(n) && n.startsWith(r)))));
3120
+ var r;
3121
+ }, endsWith: (t) => {
3122
+ return pe(O(e, (r = t, S((n) => fe(n) && n.endsWith(r)))));
3123
+ var r;
3124
+ }, minLength: (t) => pe(O(e, ((r) => S((n) => fe(n) && n.length >= r))(t))), maxLength: (t) => pe(O(e, ((r) => S((n) => fe(n) && n.length <= r))(t))), includes: (t) => {
3125
+ return pe(O(e, (r = t, S((n) => fe(n) && n.includes(r)))));
3126
+ var r;
3127
+ }, regex: (t) => {
3128
+ return pe(O(e, (r = t, S((n) => fe(n) && !!n.match(r)))));
3129
+ var r;
3130
+ } }), od = pe(S(fe)), X = (e) => Object.assign(R(e), { between: (t, r) => X(O(e, ((n, o) => S((i) => Y(i) && n <= i && o >= i))(t, r))), lt: (t) => X(O(e, ((r) => S((n) => Y(n) && n < r))(t))), gt: (t) => X(O(e, ((r) => S((n) => Y(n) && n > r))(t))), lte: (t) => X(O(e, ((r) => S((n) => Y(n) && n <= r))(t))), gte: (t) => X(O(e, ((r) => S((n) => Y(n) && n >= r))(t))), int: () => X(O(e, S((t) => Y(t) && Number.isInteger(t)))), finite: () => X(O(e, S((t) => Y(t) && Number.isFinite(t)))), positive: () => X(O(e, S((t) => Y(t) && t > 0))), negative: () => X(O(e, S((t) => Y(t) && t < 0))) }), id = X(S(Y)), ie = (e) => Object.assign(R(e), { between: (t, r) => ie(O(e, ((n, o) => S((i) => oe(i) && n <= i && o >= i))(t, r))), lt: (t) => ie(O(e, ((r) => S((n) => oe(n) && n < r))(t))), gt: (t) => ie(O(e, ((r) => S((n) => oe(n) && n > r))(t))), lte: (t) => ie(O(e, ((r) => S((n) => oe(n) && n <= r))(t))), gte: (t) => ie(O(e, ((r) => S((n) => oe(n) && n >= r))(t))), positive: () => ie(O(e, S((t) => oe(t) && t > 0))), negative: () => ie(O(e, S((t) => oe(t) && t < 0))) }), ad = ie(S(oe)), sd = R(S(function(e) {
3131
+ return typeof e == "boolean";
3132
+ })), cd = R(S(function(e) {
3133
+ return typeof e == "symbol";
3134
+ })), ld = R(S(function(e) {
3135
+ return e == null;
3136
+ }));
3137
+ var $e = { __proto__: null, matcher: U, optional: Tr, array: function(...e) {
3138
+ return ar({ [U]: () => ({ match: (t) => {
3139
+ if (!Array.isArray(t))
3140
+ return { matched: !1 };
3141
+ if (e.length === 0)
3142
+ return { matched: !0 };
3143
+ const r = e[0];
3144
+ let n = {};
3145
+ if (t.length === 0)
3146
+ return K(r).forEach((i) => {
3147
+ n[i] = [];
3148
+ }), { matched: !0, selections: n };
3149
+ const o = (i, a) => {
3150
+ n[i] = (n[i] || []).concat([a]);
3151
+ };
3152
+ return { matched: t.every((i) => M(r, i, o)), selections: n };
3153
+ }, getSelectionKeys: () => e.length === 0 ? [] : K(e[0]) }) });
3154
+ }, set: function(...e) {
3155
+ return R({ [U]: () => ({ match: (t) => {
3156
+ if (!(t instanceof Set))
3157
+ return { matched: !1 };
3158
+ let r = {};
3159
+ if (t.size === 0)
3160
+ return { matched: !0, selections: r };
3161
+ if (e.length === 0)
3162
+ return { matched: !0 };
3163
+ const n = (i, a) => {
3164
+ r[i] = (r[i] || []).concat([a]);
3165
+ }, o = e[0];
3166
+ return { matched: td(t, (i) => M(o, i, n)), selections: r };
3167
+ }, getSelectionKeys: () => e.length === 0 ? [] : K(e[0]) }) });
3168
+ }, map: function(...e) {
3169
+ return R({ [U]: () => ({ match: (t) => {
3170
+ if (!(t instanceof Map))
3171
+ return { matched: !1 };
3172
+ let r = {};
3173
+ if (t.size === 0)
3174
+ return { matched: !0, selections: r };
3175
+ const n = (s, l) => {
3176
+ r[s] = (r[s] || []).concat([l]);
3177
+ };
3178
+ if (e.length === 0)
3179
+ return { matched: !0 };
3180
+ var o;
3181
+ if (e.length === 1)
3182
+ throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = e[0]) == null ? void 0 : o.toString()}`);
3183
+ const [i, a] = e;
3184
+ return { matched: rd(t, (s, l) => {
3185
+ const u = M(i, l, n), d = M(a, s, n);
3186
+ return u && d;
3187
+ }), selections: r };
3188
+ }, getSelectionKeys: () => e.length === 0 ? [] : [...K(e[0]), ...K(e[1])] }) });
3189
+ }, intersection: O, union: ti, not: function(e) {
3190
+ return R({ [U]: () => ({ match: (t) => ({ matched: !M(e, t, () => {
3191
+ }) }), getSelectionKeys: () => [], matcherType: "not" }) });
3192
+ }, when: S, select: Ge, any: ri, _: nd, string: od, number: id, bigint: ad, boolean: sd, symbol: cd, nullish: ld, instanceOf: function(e) {
3193
+ return R(S(function(t) {
3194
+ return (r) => r instanceof t;
3195
+ }(e)));
3196
+ }, shape: function(e) {
3197
+ return R(S(ed(e)));
3198
+ } };
3199
+ const sr = { matched: !1, value: void 0 };
3200
+ function Ir(e) {
3201
+ return new bt(e, sr);
3202
+ }
3203
+ class bt {
3204
+ constructor(t, r) {
3205
+ this.input = void 0, this.state = void 0, this.input = t, this.state = r;
3206
+ }
3207
+ with(...t) {
3208
+ if (this.state.matched)
3209
+ return this;
3210
+ const r = t[t.length - 1], n = [t[0]];
3211
+ let o;
3212
+ t.length === 3 && typeof t[1] == "function" ? o = t[1] : t.length > 2 && n.push(...t.slice(1, t.length - 1));
3213
+ let i = !1, a = {};
3214
+ const s = (u, d) => {
3215
+ i = !0, a[u] = d;
3216
+ }, l = !n.some((u) => M(u, this.input, s)) || o && !o(this.input) ? sr : { matched: !0, value: r(i ? mt in a ? a[mt] : a : this.input, this.input) };
3217
+ return new bt(this.input, l);
3218
+ }
3219
+ when(t, r) {
3220
+ if (this.state.matched)
3221
+ return this;
3222
+ const n = !!t(this.input);
3223
+ return new bt(this.input, n ? { matched: !0, value: r(this.input, this.input) } : sr);
3224
+ }
3225
+ otherwise(t) {
3226
+ return this.state.matched ? this.state.value : t(this.input);
3227
+ }
3228
+ exhaustive() {
3229
+ if (this.state.matched)
3230
+ return this.state.value;
3231
+ let t;
3232
+ try {
3233
+ t = JSON.stringify(this.input);
3234
+ } catch {
3235
+ t = this.input;
3236
+ }
3237
+ throw new Error(`Pattern matching error: no pattern matches value ${t}`);
3238
+ }
3239
+ run() {
3240
+ return this.exhaustive();
3241
+ }
3242
+ returnType() {
3243
+ return this;
3244
+ }
3245
+ }
3246
+ function ni(e, t) {
3247
+ if (!e)
3248
+ throw new Error(t);
3249
+ }
3250
+ function Pt() {
3251
+ throw new Error("Cycle detected");
3252
+ }
3253
+ var ud = Symbol.for("preact-signals");
3254
+ function Dr() {
3255
+ if (Pe > 1)
3256
+ Pe--;
3257
+ else {
3258
+ for (var e, t = !1; He !== void 0; ) {
3259
+ var r = He;
3260
+ for (He = void 0, cr++; r !== void 0; ) {
3261
+ var n = r.o;
3262
+ if (r.o = void 0, r.f &= -3, !(8 & r.f) && ii(r))
3263
+ try {
3264
+ r.c();
3265
+ } catch (o) {
3266
+ t || (e = o, t = !0);
3267
+ }
3268
+ r = n;
3269
+ }
3270
+ }
3271
+ if (cr = 0, Pe--, t)
3272
+ throw e;
3273
+ }
3274
+ }
3275
+ var I = void 0, He = void 0, Pe = 0, cr = 0, gt = 0;
3276
+ function oi(e) {
3277
+ if (I !== void 0) {
3278
+ var t = e.n;
3279
+ if (t === void 0 || t.t !== I)
3280
+ return t = { i: 0, S: e, p: I.s, n: void 0, t: I, e: void 0, x: void 0, r: t }, I.s !== void 0 && (I.s.n = t), I.s = t, e.n = t, 32 & I.f && e.S(t), t;
3281
+ if (t.i === -1)
3282
+ return t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = I.s, t.n = void 0, I.s.n = t, I.s = t), t;
3283
+ }
3284
+ }
3285
+ function F(e) {
3286
+ this.v = e, this.i = 0, this.n = void 0, this.t = void 0;
3287
+ }
3288
+ F.prototype.brand = ud;
3289
+ F.prototype.h = function() {
3290
+ return !0;
3291
+ };
3292
+ F.prototype.S = function(e) {
3293
+ this.t !== e && e.e === void 0 && (e.x = this.t, this.t !== void 0 && (this.t.e = e), this.t = e);
3294
+ };
3295
+ F.prototype.U = function(e) {
3296
+ if (this.t !== void 0) {
3297
+ var t = e.e, r = e.x;
3298
+ t !== void 0 && (t.x = r, e.e = void 0), r !== void 0 && (r.e = t, e.x = void 0), e === this.t && (this.t = r);
3299
+ }
3300
+ };
3301
+ F.prototype.subscribe = function(e) {
3302
+ var t = this;
3303
+ return Ar(function() {
3304
+ var r = t.value, n = 32 & this.f;
3305
+ this.f &= -33;
3306
+ try {
3307
+ e(r);
3308
+ } finally {
3309
+ this.f |= n;
3310
+ }
3311
+ });
3312
+ };
3313
+ F.prototype.valueOf = function() {
3314
+ return this.value;
3315
+ };
3316
+ F.prototype.toString = function() {
3317
+ return this.value + "";
3318
+ };
3319
+ F.prototype.toJSON = function() {
3320
+ return this.value;
3321
+ };
3322
+ F.prototype.peek = function() {
3323
+ return this.v;
3324
+ };
3325
+ Object.defineProperty(F.prototype, "value", { get: function() {
3326
+ var e = oi(this);
3327
+ return e !== void 0 && (e.i = this.i), this.v;
3328
+ }, set: function(e) {
3329
+ if (I instanceof ue && function() {
3330
+ throw new Error("Computed cannot have side-effects");
3331
+ }(), e !== this.v) {
3332
+ cr > 100 && Pt(), this.v = e, this.i++, gt++, Pe++;
3333
+ try {
3334
+ for (var t = this.t; t !== void 0; t = t.x)
3335
+ t.t.N();
3336
+ } finally {
3337
+ Dr();
3338
+ }
3339
+ }
3340
+ } });
3341
+ function qe(e) {
3342
+ return new F(e);
3343
+ }
3344
+ function ii(e) {
3345
+ for (var t = e.s; t !== void 0; t = t.n)
3346
+ if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i)
3347
+ return !0;
3348
+ return !1;
3349
+ }
3350
+ function ai(e) {
3351
+ for (var t = e.s; t !== void 0; t = t.n) {
3352
+ var r = t.S.n;
3353
+ if (r !== void 0 && (t.r = r), t.S.n = t, t.i = -1, t.n === void 0) {
3354
+ e.s = t;
3355
+ break;
3356
+ }
3357
+ }
3358
+ }
3359
+ function si(e) {
3360
+ for (var t = e.s, r = void 0; t !== void 0; ) {
3361
+ var n = t.p;
3362
+ t.i === -1 ? (t.S.U(t), n !== void 0 && (n.n = t.n), t.n !== void 0 && (t.n.p = n)) : r = t, t.S.n = t.r, t.r !== void 0 && (t.r = void 0), t = n;
3363
+ }
3364
+ e.s = r;
3365
+ }
3366
+ function ue(e) {
3367
+ F.call(this, void 0), this.x = e, this.s = void 0, this.g = gt - 1, this.f = 4;
3368
+ }
3369
+ (ue.prototype = new F()).h = function() {
3370
+ if (this.f &= -3, 1 & this.f)
3371
+ return !1;
3372
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === gt))
3373
+ return !0;
3374
+ if (this.g = gt, this.f |= 1, this.i > 0 && !ii(this))
3375
+ return this.f &= -2, !0;
3376
+ var e = I;
3377
+ try {
3378
+ ai(this), I = this;
3379
+ var t = this.x();
3380
+ (16 & this.f || this.v !== t || this.i === 0) && (this.v = t, this.f &= -17, this.i++);
3381
+ } catch (r) {
3382
+ this.v = r, this.f |= 16, this.i++;
3383
+ }
3384
+ return I = e, si(this), this.f &= -2, !0;
3385
+ };
3386
+ ue.prototype.S = function(e) {
3387
+ if (this.t === void 0) {
3388
+ this.f |= 36;
3389
+ for (var t = this.s; t !== void 0; t = t.n)
3390
+ t.S.S(t);
3391
+ }
3392
+ F.prototype.S.call(this, e);
3393
+ };
3394
+ ue.prototype.U = function(e) {
3395
+ if (this.t !== void 0 && (F.prototype.U.call(this, e), this.t === void 0)) {
3396
+ this.f &= -33;
3397
+ for (var t = this.s; t !== void 0; t = t.n)
3398
+ t.S.U(t);
3399
+ }
3400
+ };
3401
+ ue.prototype.N = function() {
3402
+ if (!(2 & this.f)) {
3403
+ this.f |= 6;
3404
+ for (var e = this.t; e !== void 0; e = e.x)
3405
+ e.t.N();
3406
+ }
3407
+ };
3408
+ ue.prototype.peek = function() {
3409
+ if (this.h() || Pt(), 16 & this.f)
3410
+ throw this.v;
3411
+ return this.v;
3412
+ };
3413
+ Object.defineProperty(ue.prototype, "value", { get: function() {
3414
+ 1 & this.f && Pt();
3415
+ var e = oi(this);
3416
+ if (this.h(), e !== void 0 && (e.i = this.i), 16 & this.f)
3417
+ throw this.v;
3418
+ return this.v;
3419
+ } });
3420
+ function dd(e) {
3421
+ return new ue(e);
3422
+ }
3423
+ function ci(e) {
3424
+ var t = e.u;
3425
+ if (e.u = void 0, typeof t == "function") {
3426
+ Pe++;
3427
+ var r = I;
3428
+ I = void 0;
3429
+ try {
3430
+ t();
3431
+ } catch (n) {
3432
+ throw e.f &= -2, e.f |= 8, Nr(e), n;
3433
+ } finally {
3434
+ I = r, Dr();
3435
+ }
3436
+ }
3437
+ }
3438
+ function Nr(e) {
3439
+ for (var t = e.s; t !== void 0; t = t.n)
3440
+ t.S.U(t);
3441
+ e.x = void 0, e.s = void 0, ci(e);
3442
+ }
3443
+ function fd(e) {
3444
+ if (I !== this)
3445
+ throw new Error("Out-of-order effect");
3446
+ si(this), I = e, this.f &= -2, 8 & this.f && Nr(this), Dr();
3447
+ }
3448
+ function Je(e) {
3449
+ this.x = e, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
3450
+ }
3451
+ Je.prototype.c = function() {
3452
+ var e = this.S();
3453
+ try {
3454
+ if (8 & this.f || this.x === void 0)
3455
+ return;
3456
+ var t = this.x();
3457
+ typeof t == "function" && (this.u = t);
3458
+ } finally {
3459
+ e();
3460
+ }
3461
+ };
3462
+ Je.prototype.S = function() {
3463
+ 1 & this.f && Pt(), this.f |= 1, this.f &= -9, ci(this), ai(this), Pe++;
3464
+ var e = I;
3465
+ return I = this, fd.bind(this, e);
3466
+ };
3467
+ Je.prototype.N = function() {
3468
+ 2 & this.f || (this.f |= 2, this.o = He, He = this);
3469
+ };
3470
+ Je.prototype.d = function() {
3471
+ this.f |= 8, 1 & this.f || Nr(this);
3472
+ };
3473
+ function Ar(e) {
3474
+ var t = new Je(e);
3475
+ try {
3476
+ t.c();
3477
+ } catch (r) {
3478
+ throw t.d(), r;
3479
+ }
3480
+ return t.d.bind(t);
3481
+ }
3482
+ var Ut;
3483
+ function Le(e, t) {
3484
+ g[e] = t.bind(null, g[e] || function() {
3485
+ });
3486
+ }
3487
+ function wt(e) {
3488
+ Ut && Ut(), Ut = e && e.S();
3489
+ }
3490
+ function li(e) {
3491
+ var t = this, r = e.data, n = hd(r);
3492
+ n.value = r;
3493
+ var o = q(function() {
3494
+ for (var i = t.__v; i = i.__; )
3495
+ if (i.__c) {
3496
+ i.__c.__$f |= 4;
3497
+ break;
3498
+ }
3499
+ return t.__$u.c = function() {
3500
+ var a;
3501
+ !Kn(o.peek()) && ((a = t.base) == null ? void 0 : a.nodeType) === 3 ? t.base.data = o.peek() : (t.__$f |= 1, t.setState({}));
3502
+ }, dd(function() {
3503
+ var a = n.value.value;
3504
+ return a === 0 ? 0 : a === !0 ? "" : a || "";
3505
+ });
3506
+ }, []);
3507
+ return o.value;
3508
+ }
3509
+ li.displayName = "_st";
3510
+ Object.defineProperties(F.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: li }, props: { configurable: !0, get: function() {
3511
+ return { data: this };
3512
+ } }, __b: { configurable: !0, value: 1 } });
3513
+ Le("__b", function(e, t) {
3514
+ if (typeof t.type == "string") {
3515
+ var r, n = t.props;
3516
+ for (var o in n)
3517
+ if (o !== "children") {
3518
+ var i = n[o];
3519
+ i instanceof F && (r || (t.__np = r = {}), r[o] = i, n[o] = i.peek());
3520
+ }
3521
+ }
3522
+ e(t);
3523
+ });
3524
+ Le("__r", function(e, t) {
3525
+ wt();
3526
+ var r, n = t.__c;
3527
+ n && (n.__$f &= -2, (r = n.__$u) === void 0 && (n.__$u = r = function(o) {
3528
+ var i;
3529
+ return Ar(function() {
3530
+ i = this;
3531
+ }), i.c = function() {
3532
+ n.__$f |= 1, n.setState({});
3533
+ }, i;
3534
+ }())), wt(r), e(t);
3535
+ });
3536
+ Le("__e", function(e, t, r, n) {
3537
+ wt(), e(t, r, n);
3538
+ });
3539
+ Le("diffed", function(e, t) {
3540
+ wt();
3541
+ var r;
3542
+ if (typeof t.type == "string" && (r = t.__e)) {
3543
+ var n = t.__np, o = t.props;
3544
+ if (n) {
3545
+ var i = r.U;
3546
+ if (i)
3547
+ for (var a in i) {
3548
+ var s = i[a];
3549
+ s !== void 0 && !(a in n) && (s.d(), i[a] = void 0);
3550
+ }
3551
+ else
3552
+ r.U = i = {};
3553
+ for (var l in n) {
3554
+ var u = i[l], d = n[l];
3555
+ u === void 0 ? (u = pd(r, l, d, o), i[l] = u) : u.o(d, o);
3556
+ }
3557
+ }
3558
+ }
3559
+ e(t);
3560
+ });
3561
+ function pd(e, t, r, n) {
3562
+ var o = t in e && e.ownerSVGElement === void 0, i = qe(r);
3563
+ return { o: function(a, s) {
3564
+ i.value = a, n = s;
3565
+ }, d: Ar(function() {
3566
+ var a = i.value.value;
3567
+ n[t] !== a && (n[t] = a, o ? e[t] = a : a ? e.setAttribute(t, a) : e.removeAttribute(t));
3568
+ }) };
3569
+ }
3570
+ Le("unmount", function(e, t) {
3571
+ if (typeof t.type == "string") {
3572
+ var r = t.__e;
3573
+ if (r) {
3574
+ var n = r.U;
3575
+ if (n) {
3576
+ r.U = void 0;
3577
+ for (var o in n) {
3578
+ var i = n[o];
3579
+ i && i.d();
3580
+ }
3581
+ }
3582
+ }
3583
+ } else {
3584
+ var a = t.__c;
3585
+ if (a) {
3586
+ var s = a.__$u;
3587
+ s && (a.__$u = void 0, s.d());
3588
+ }
3589
+ }
3590
+ e(t);
3591
+ });
3592
+ Le("__h", function(e, t, r, n) {
3593
+ (n < 3 || n === 9) && (t.__$f |= 2), e(t, r, n);
3594
+ });
3595
+ G.prototype.shouldComponentUpdate = function(e, t) {
3596
+ var r = this.__$u;
3597
+ if (!(r && r.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
3598
+ return !0;
3599
+ for (var n in t)
3600
+ return !0;
3601
+ for (var o in e)
3602
+ if (o !== "__source" && e[o] !== this.props[o])
3603
+ return !0;
3604
+ for (var i in this.props)
3605
+ if (!(i in e))
3606
+ return !0;
3607
+ return !1;
3608
+ };
3609
+ function hd(e) {
3610
+ return q(function() {
3611
+ return qe(e);
3612
+ }, []);
3613
+ }
3614
+ const lr = (e, t) => t.some((r) => e instanceof r);
3615
+ let En, On;
3616
+ function vd() {
3617
+ return En || (En = [
3618
+ IDBDatabase,
3619
+ IDBObjectStore,
3620
+ IDBIndex,
3621
+ IDBCursor,
3622
+ IDBTransaction
3623
+ ]);
3624
+ }
3625
+ function _d() {
3626
+ return On || (On = [
3627
+ IDBCursor.prototype.advance,
3628
+ IDBCursor.prototype.continue,
3629
+ IDBCursor.prototype.continuePrimaryKey
3630
+ ]);
3631
+ }
3632
+ const ur = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap();
3633
+ function md(e) {
3634
+ const t = new Promise((r, n) => {
3635
+ const o = () => {
3636
+ e.removeEventListener("success", i), e.removeEventListener("error", a);
3637
+ }, i = () => {
3638
+ r(_e(e.result)), o();
3639
+ }, a = () => {
3640
+ n(e.error), o();
3641
+ };
3642
+ e.addEventListener("success", i), e.addEventListener("error", a);
3643
+ });
3644
+ return Tt.set(t, e), t;
3645
+ }
3646
+ function bd(e) {
3647
+ if (ur.has(e))
3648
+ return;
3649
+ const t = new Promise((r, n) => {
3650
+ const o = () => {
3651
+ e.removeEventListener("complete", i), e.removeEventListener("error", a), e.removeEventListener("abort", a);
3652
+ }, i = () => {
3653
+ r(), o();
3654
+ }, a = () => {
3655
+ n(e.error || new DOMException("AbortError", "AbortError")), o();
3656
+ };
3657
+ e.addEventListener("complete", i), e.addEventListener("error", a), e.addEventListener("abort", a);
3658
+ });
3659
+ ur.set(e, t);
3660
+ }
3661
+ let dr = {
3662
+ get(e, t, r) {
3663
+ if (e instanceof IDBTransaction) {
3664
+ if (t === "done")
3665
+ return ur.get(e);
3666
+ if (t === "store")
3667
+ return r.objectStoreNames[1] ? void 0 : r.objectStore(r.objectStoreNames[0]);
3668
+ }
3669
+ return _e(e[t]);
3670
+ },
3671
+ set(e, t, r) {
3672
+ return e[t] = r, !0;
3673
+ },
3674
+ has(e, t) {
3675
+ return e instanceof IDBTransaction && (t === "done" || t === "store") ? !0 : t in e;
3676
+ }
3677
+ };
3678
+ function ui(e) {
3679
+ dr = e(dr);
3680
+ }
3681
+ function gd(e) {
3682
+ return _d().includes(e) ? function(...t) {
3683
+ return e.apply(fr(this), t), _e(this.request);
3684
+ } : function(...t) {
3685
+ return _e(e.apply(fr(this), t));
3686
+ };
3687
+ }
3688
+ function wd(e) {
3689
+ return typeof e == "function" ? gd(e) : (e instanceof IDBTransaction && bd(e), lr(e, vd()) ? new Proxy(e, dr) : e);
3690
+ }
3691
+ function _e(e) {
3692
+ if (e instanceof IDBRequest)
3693
+ return md(e);
3694
+ if (Ht.has(e))
3695
+ return Ht.get(e);
3696
+ const t = wd(e);
3697
+ return t !== e && (Ht.set(e, t), Tt.set(t, e)), t;
3698
+ }
3699
+ const fr = (e) => Tt.get(e);
3700
+ function yd(e, t, { blocked: r, upgrade: n, blocking: o, terminated: i } = {}) {
3701
+ const a = indexedDB.open(e, t), s = _e(a);
3702
+ return n && a.addEventListener("upgradeneeded", (l) => {
3703
+ n(_e(a.result), l.oldVersion, l.newVersion, _e(a.transaction), l);
3704
+ }), r && a.addEventListener("blocked", (l) => r(
3705
+ // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
3706
+ l.oldVersion,
3707
+ l.newVersion,
3708
+ l
3709
+ )), s.then((l) => {
3710
+ i && l.addEventListener("close", () => i()), o && l.addEventListener("versionchange", (u) => o(u.oldVersion, u.newVersion, u));
3711
+ }).catch(() => {
3712
+ }), s;
3713
+ }
3714
+ const kd = ["get", "getKey", "getAll", "getAllKeys", "count"], xd = ["put", "add", "delete", "clear"], Wt = /* @__PURE__ */ new Map();
3715
+ function Pn(e, t) {
3716
+ if (!(e instanceof IDBDatabase && !(t in e) && typeof t == "string"))
3717
+ return;
3718
+ if (Wt.get(t))
3719
+ return Wt.get(t);
3720
+ const r = t.replace(/FromIndex$/, ""), n = t !== r, o = xd.includes(r);
3721
+ if (
3722
+ // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
3723
+ !(r in (n ? IDBIndex : IDBObjectStore).prototype) || !(o || kd.includes(r))
3724
+ )
3725
+ return;
3726
+ const i = async function(a, ...s) {
3727
+ const l = this.transaction(a, o ? "readwrite" : "readonly");
3728
+ let u = l.store;
3729
+ return n && (u = u.index(s.shift())), (await Promise.all([
3730
+ u[r](...s),
3731
+ o && l.done
3732
+ ]))[0];
3733
+ };
3734
+ return Wt.set(t, i), i;
3735
+ }
3736
+ ui((e) => ({
3737
+ ...e,
3738
+ get: (t, r, n) => Pn(t, r) || e.get(t, r, n),
3739
+ has: (t, r) => !!Pn(t, r) || e.has(t, r)
3740
+ }));
3741
+ const $d = ["continue", "continuePrimaryKey", "advance"], Tn = {}, pr = /* @__PURE__ */ new WeakMap(), di = /* @__PURE__ */ new WeakMap(), Sd = {
3742
+ get(e, t) {
3743
+ if (!$d.includes(t))
3744
+ return e[t];
3745
+ let r = Tn[t];
3746
+ return r || (r = Tn[t] = function(...n) {
3747
+ pr.set(this, di.get(this)[t](...n));
3748
+ }), r;
3749
+ }
3750
+ };
3751
+ async function* Cd(...e) {
3752
+ let t = this;
3753
+ if (t instanceof IDBCursor || (t = await t.openCursor(...e)), !t)
3754
+ return;
3755
+ t = t;
3756
+ const r = new Proxy(t, Sd);
3757
+ for (di.set(r, t), Tt.set(r, fr(t)); t; )
3758
+ yield r, t = await (pr.get(r) || t.continue()), pr.delete(r);
3759
+ }
3760
+ function In(e, t) {
3761
+ return t === Symbol.asyncIterator && lr(e, [IDBIndex, IDBObjectStore, IDBCursor]) || t === "iterate" && lr(e, [IDBIndex, IDBObjectStore]);
3762
+ }
3763
+ ui((e) => ({
3764
+ ...e,
3765
+ get(t, r, n) {
3766
+ return In(t, r) ? Cd : e.get(t, r, n);
3767
+ },
3768
+ has(t, r) {
3769
+ return In(t, r) || e.has(t, r);
3770
+ }
3771
+ }));
3772
+ const _f = (e) => Ir(e).with($e.number.lte(1e3), () => `${Math.round(e)}KB`).with($e.number.lt(1e3 * 10), () => `${(e / 1e3).toFixed(1)}MB`).otherwise(() => `${Math.round(e / 1e3)}MB`), mf = (e) => {
3773
+ const t = e.find((r) => r.isHead);
3774
+ if (!t)
3775
+ throw new Error("No head node found");
3776
+ return t;
3777
+ }, bf = (e) => Object.entries(e).reduce((r, [n, o]) => (r[n] = o.value, r), {}), gf = (e) => (t) => t ? t.type === e : !1;
3778
+ class wf extends Error {
3779
+ constructor() {
3780
+ super("Aborted");
3781
+ }
3782
+ }
3783
+ function Ed(e, t = 300) {
3784
+ let r;
3785
+ return (...n) => {
3786
+ clearTimeout(r), r = setTimeout(() => {
3787
+ e.apply(this, n);
3788
+ }, t);
3789
+ };
3790
+ }
3791
+ const yf = (e) => typeof e == "string", Od = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2), Dn = () => ({
3792
+ messages: [],
3793
+ submissions: {},
3794
+ currentInput: null,
3795
+ nodeHistory: [],
3796
+ isFinished: !1,
3797
+ sequence: 0,
3798
+ flowSessionId: Od()
3799
+ }), kf = (e) => (
3800
+ /** nativeEvent is a hidden property not exposed by JSX's typings */
3801
+ Ir(e).with({
3802
+ nativeEvent: {
3803
+ submitter: $e.select($e.union($e.instanceOf(HTMLButtonElement), $e.instanceOf(HTMLInputElement)))
3804
+ }
3805
+ }, (t) => t).otherwise(() => {
3806
+ throw new Error("invalid submitter");
3807
+ })
3808
+ ), Nn = typeof window > "u" ? void 0 : yd("inploi-chatbot", 3, {
3809
+ upgrade(e) {
3810
+ try {
3811
+ e.deleteObjectStore("state");
3812
+ } catch {
3813
+ }
3814
+ e.createObjectStore("state");
3815
+ }
3816
+ }), Be = {
3817
+ getStateData: async (e, t) => {
3818
+ var n;
3819
+ const r = An({
3820
+ ...e,
3821
+ flowKeys: t
3822
+ });
3823
+ return (n = await Nn) == null ? void 0 : n.get("state", r);
3824
+ },
3825
+ setStateData: Ed(async (e) => {
3826
+ var r;
3827
+ const t = An(e);
3828
+ return (r = await Nn) == null ? void 0 : r.put("state", e.data, t);
3829
+ }, 1e3)
3830
+ }, ft = (e, t, r, n = 0) => {
3831
+ if (!t.nextId)
3832
+ return r(t.id, {
3833
+ stepsMade: n,
3834
+ remainingSteps: 0
3835
+ }), {
3836
+ stepsMade: n,
3837
+ remainingSteps: 0
3838
+ };
3839
+ const o = e.find((u) => u.id === t.nextId);
3840
+ if (o === void 0)
3841
+ return {
3842
+ stepsMade: n,
3843
+ remainingSteps: 0
3844
+ };
3845
+ const i = t.type === "if-block" ? t.branchId : void 0, a = e.find((u) => u.id === i), s = t.type.includes("question") ? 1 : 0;
3846
+ if (a) {
3847
+ const u = s + Math.max(ft(e, o, r, n + s).remainingSteps, ft(e, a, r, n + s).remainingSteps);
3848
+ return r(t.id, {
3849
+ stepsMade: n,
3850
+ remainingSteps: u
3851
+ }), {
3852
+ stepsMade: n,
3853
+ remainingSteps: u
3854
+ };
3855
+ }
3856
+ const l = s + ft(e, o, r, n + s).remainingSteps;
3857
+ return r(t.id, {
3858
+ stepsMade: n,
3859
+ remainingSteps: l
3860
+ }), {
3861
+ stepsMade: n,
3862
+ remainingSteps: l
3863
+ };
3864
+ }, Pd = (e) => {
3865
+ const t = {}, r = e.find((n) => n.isHead);
3866
+ return r && ft(e, r, (n, o) => {
3867
+ t[n] = o;
3868
+ }), t;
3869
+ }, An = (e) => [...e.flowKeys, e.id, e.version].join("/"), ae = qe({
3870
+ state: "idle"
3871
+ }), ze = (e) => {
3872
+ const {
3873
+ state: t,
3874
+ flow: r
3875
+ } = ae.value;
3876
+ if (t !== "loaded")
3877
+ return;
3878
+ ni(r, "No flow to update");
3879
+ const n = e(r.data);
3880
+ r.data = n, ae.value = {
3881
+ state: t,
3882
+ flow: r
3883
+ }, Be.setStateData(r);
3884
+ }, A = {
3885
+ current$: ae,
3886
+ viewState$: qe("closed"),
3887
+ inputHeight$: qe(53),
3888
+ startFlow: async ({
3889
+ flow: e,
3890
+ context: t = {},
3891
+ flowKeys: r,
3892
+ title: n,
3893
+ analytics: o,
3894
+ job: i
3895
+ }) => {
3896
+ const s = {
3897
+ data: await Be.getStateData(e, r) ?? Dn(),
3898
+ startedAt: /* @__PURE__ */ new Date(),
3899
+ nodeIdToProgress: Pd(e.nodes),
3900
+ flowKeys: r,
3901
+ id: e.id,
3902
+ version: e.version,
3903
+ nodes: e.nodes,
3904
+ build: e.build,
3905
+ context: t,
3906
+ title: n,
3907
+ analytics: o,
3908
+ job: i
3909
+ };
3910
+ ae.value = {
3911
+ state: "loaded",
3912
+ flow: s
3913
+ }, Be.setStateData(s);
3914
+ },
3915
+ cancelCurrentFlow: () => {
3916
+ ae.value = {
3917
+ state: "idle"
3918
+ }, A.viewState$.value = "closed";
3919
+ },
3920
+ markAsFinished: () => ze((e) => ({
3921
+ ...e,
3922
+ isFinished: !0
3923
+ })),
3924
+ setCurrentNodeId: (e) => ze((t) => (t.nodeHistory.push(e), t)),
3925
+ restart: () => {
3926
+ const {
3927
+ state: e,
3928
+ flow: t
3929
+ } = ae.value;
3930
+ if (e !== "loaded")
3931
+ throw new Error("Flow cannot be restarted: not in valid state");
3932
+ const r = Dn();
3933
+ ae.value = {
3934
+ state: e,
3935
+ flow: {
3936
+ ...t,
3937
+ data: r,
3938
+ startedAt: /* @__PURE__ */ new Date()
3939
+ }
3940
+ }, Be.setStateData(t);
3941
+ },
3942
+ addMessage: (e, t) => {
3943
+ const r = {
3944
+ ...e,
3945
+ groupId: t
3946
+ };
3947
+ return ze((n) => (n.messages.push(r), n));
3948
+ },
3949
+ /** Removes messages from nodeId, all the messages that have the groupId passed, until it reaches one that doesn't */
3950
+ removeMessagesSentByNodeIds: (e) => {
3951
+ const {
3952
+ state: t,
3953
+ flow: r
3954
+ } = ae.value;
3955
+ ni(t === "loaded", "Application not loaded");
3956
+ const n = r.data.messages.filter((o) => !o.groupId || !e.includes(o.groupId));
3957
+ r.data.messages = n, Be.setStateData(r);
3958
+ },
3959
+ setSubmission: (e, t) => ze((r) => (t === null ? delete r.submissions[e] : r.submissions[e] = t, r)),
3960
+ setInput: (e) => ze((t) => ({
3961
+ ...t,
3962
+ currentInput: e ?? null
3963
+ }))
3964
+ };
3965
+ var Td = 0;
3966
+ function b(e, t, r, n, o, i) {
3967
+ var a, s, l = {};
3968
+ for (s in t)
3969
+ s == "ref" ? a = t[s] : l[s] = t[s];
3970
+ var u = { type: e, props: l, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --Td, __source: o, __self: i };
3971
+ if (typeof e == "function" && (a = e.defaultProps))
3972
+ for (s in a)
3973
+ l[s] === void 0 && (l[s] = a[s]);
3974
+ return g.vnode && g.vnode(u), u;
3975
+ }
3976
+ const Id = ({
3977
+ message: e
3978
+ }) => b("div", {
3979
+ class: "flex flex-grow flex-col items-center justify-center",
3980
+ children: [b("svg", {
3981
+ class: "text-error-9 h-16 w-16",
3982
+ fill: "none",
3983
+ xmlns: "http://www.w3.org/2000/svg",
3984
+ "stroke-width": "2",
3985
+ stroke: "currentColor",
3986
+ "stroke-linecap": "round",
3987
+ viewBox: "0 0 96 96",
3988
+ children: [b("path", {
3989
+ d: "M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z",
3990
+ fill: "#fff"
3991
+ }), b("path", {
3992
+ d: "M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z"
3993
+ }), b("line", {
3994
+ x1: "36.7",
3995
+ y1: "39.3",
3996
+ x2: "44.8",
3997
+ y2: "47.4"
3998
+ }), b("line", {
3999
+ x1: "52.2",
4000
+ y1: "39.3",
4001
+ x2: "60.3",
4002
+ y2: "47.4"
4003
+ }), b("line", {
4004
+ x1: "44.7",
4005
+ y1: "39.2",
4006
+ x2: "36.6",
4007
+ y2: "47.3"
4008
+ }), b("line", {
4009
+ x1: "60.2",
4010
+ y1: "39.2",
4011
+ x2: "52.1",
4012
+ y2: "47.3"
4013
+ }), b("path", {
4014
+ d: "M38 56h19"
4015
+ })]
4016
+ }), b("div", {
4017
+ class: "flex flex-col gap-2 text-center",
4018
+ children: [b("p", {
4019
+ class: "text-error-11 font-bold",
4020
+ children: "Something unexpected happened"
4021
+ }), e && b("p", {
4022
+ class: "text-neutral-9 text-sm",
4023
+ children: e
4024
+ })]
4025
+ })]
4026
+ }), Dd = (e) => b("svg", {
4027
+ role: "img",
4028
+ viewBox: "0 0 24 24",
4029
+ ...e,
4030
+ children: [b("title", {
4031
+ children: "Loading"
4032
+ }), b("style", {
4033
+ children: "#s1{animation:3s linear infinite forwards s1__to}@keyframes s1__to{0%{transform:translate(12px,0)}66.666667%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,12px)}}#s2{animation:3s linear infinite forwards s2__ts}@keyframes s2__ts{0%{transform:scale(0,0)}70%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%{transform:scale(1,1)}}#s3{animation:3s linear infinite forwards s3__to}@keyframes s3__to{0%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,33.333333%{transform:translate(12px,24px)}}#s4{animation:3s linear infinite forwards s4__ts}@keyframes s4__ts{0%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%,30%{transform:scale(0,0)}}#s5{animation:3s linear infinite forwards s5__to}@keyframes s5__to{0%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}33.333333%{transform:translate(12px,12.045742px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,66.666667%{transform:translate(12px,24px)}}#s6{animation:3s linear infinite forwards s6__ts}@keyframes s6__ts{0%,100%,63.333333%{transform:scale(0,0)}3.333333%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}33.333333%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}#s7{animation:3s linear infinite forwards s7__to}@keyframes s7__to{0%{transform:translate(12px,0)}33.333333%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}66.666667%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,24px)}}#s8{animation:3s linear infinite forwards s8__ts}@keyframes s8__ts{0%,100%,96.666667%{transform:scale(0,0)}36.666667%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}66.666667%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}"
4034
+ }), b("g", {
4035
+ id: "s1",
4036
+ transform: "translate(12,0)",
4037
+ children: b("g", {
4038
+ id: "s2",
4039
+ transform: "scale(0,0)",
4040
+ children: b("circle", {
4041
+ r: "6.5",
4042
+ transform: "translate(0,0)",
4043
+ fill: "currentColor"
4044
+ })
4045
+ })
4046
+ }), b("g", {
4047
+ id: "s3",
4048
+ transform: "translate(12,12)",
4049
+ children: b("g", {
4050
+ id: "s4",
4051
+ transform: "scale(1,1)",
4052
+ children: b("circle", {
4053
+ r: "6.5",
4054
+ transform: "translate(0,0)",
4055
+ fill: "currentColor"
4056
+ })
4057
+ })
4058
+ }), b("g", {
4059
+ id: "s5",
4060
+ transform: "translate(12,0)",
4061
+ children: b("g", {
4062
+ id: "s6",
4063
+ transform: "scale(0,0)",
4064
+ children: b("path", {
4065
+ d: "M6.5,13c3.5899,0,6.5-2.9101,6.5-6.5s-2.9101-6.5-6.5-6.5-6.5,2.91015-6.5,6.5s2.91015,6.5,6.5,6.5Zm0-4C7.88071,9,9,7.88071,9,6.5s-1.11929-2.5-2.5-2.5-2.5,1.11929-2.5,2.5s1.11929,2.5,2.5,2.5Z",
4066
+ transform: "translate(-6.5,-6.5)",
4067
+ "clip-rule": "evenodd",
4068
+ fill: "currentColor",
4069
+ "fill-rule": "evenodd"
4070
+ })
4071
+ })
4072
+ }), b("g", {
4073
+ id: "s7",
4074
+ transform: "translate(12,0)",
4075
+ children: b("g", {
4076
+ id: "s8",
4077
+ transform: "scale(0,0)",
4078
+ children: b("path", {
4079
+ d: "M0,6c0,3.58984,2.91016,6.5,6.5,6.5s6.5-2.91016,6.5-6.5h-4C9,7.38086,7.88086,8.5,6.5,8.5s-2.5-1.11914-2.5-2.5h-4Z",
4080
+ transform: "translate(-6.5,-9.25)",
4081
+ fill: "currentColor"
4082
+ })
4083
+ })
4084
+ })]
4085
+ }), Mn = () => b("div", {
4086
+ class: "flex flex-grow flex-col items-center justify-center",
4087
+ children: b(Dd, {
4088
+ class: "text-neutral-6 h-8 w-8"
4089
+ })
4090
+ }), Nd = (e) => {
4091
+ const r = e / 100, n = 1.3;
4092
+ return e < 0 ? "0%" : e > 100 ? "100%" : `${Math.round((1 - (1 - 0.1) * Math.pow(1 - r, n)) * 100)}%`;
4093
+ }, it = ({
4094
+ class: e,
4095
+ children: t,
4096
+ ...r
4097
+ }) => b("button", {
4098
+ class: Qo("touch-hitbox text-interactive-copy hover:text-interactive-copy-hover active:text-interactive-copy-active hover:bg-interactive-bg-hover active:bg-interactive-bg-active fr relative rounded-full p-2 transition-all", e),
4099
+ ...r,
4100
+ children: b("svg", {
4101
+ class: "block",
4102
+ width: "16",
4103
+ height: "16",
4104
+ viewBox: "0 0 16 16",
4105
+ fill: "none",
4106
+ stroke: "currentColor",
4107
+ "stroke-width": "1.5",
4108
+ "stroke-linecap": "round",
4109
+ xmlns: "http://www.w3.org/2000/svg",
4110
+ children: t
4111
+ })
4112
+ }), Ad = () => {
4113
+ if (A.current$.value.state !== "loaded")
4114
+ return null;
4115
+ const e = A.current$.value.flow.nodeIdToProgress, t = A.current$.value.flow.data.nodeHistory.at(-1);
4116
+ if (t === void 0)
4117
+ return null;
4118
+ const r = e[t];
4119
+ if (r === void 0)
4120
+ return null;
4121
+ const n = 100 * (r.stepsMade / (r.remainingSteps + r.stepsMade));
4122
+ return b("div", {
4123
+ class: "bg-accent-3",
4124
+ children: b("div", {
4125
+ style: {
4126
+ width: Nd(n)
4127
+ },
4128
+ class: "bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"
4129
+ })
4130
+ });
4131
+ }, Md = ({
4132
+ children: e
4133
+ }) => {
4134
+ const t = A.viewState$;
4135
+ return b(j, {
4136
+ children: b("header", {
4137
+ class: "ring-divider bg-statusbar absolute left-0 right-0 top-0 z-20 mx-auto items-center ring-1 backdrop-blur-md backdrop-saturate-150",
4138
+ children: [b("div", {
4139
+ class: "flex h-[var(--header-height)] gap-2",
4140
+ children: [b("p", {
4141
+ id: "chatbot-status-bar",
4142
+ class: "sr-only",
4143
+ children: e
4144
+ }), b("button", {
4145
+ tabIndex: -1,
4146
+ onClick: () => {
4147
+ t.value === "minimised" ? t.value = "maximised" : t.value = "minimised";
4148
+ },
4149
+ class: "view-switch h-full flex-grow overflow-hidden px-4 py-1",
4150
+ onTouchStart: Vt,
4151
+ children: b("p", {
4152
+ "aria-hidden": !0,
4153
+ class: "text-neutral-12 truncate text-sm font-bold tracking-tight",
4154
+ children: e
4155
+ })
4156
+ }), b("div", {
4157
+ class: "flex flex-shrink-0 items-center gap-3 p-1.5",
4158
+ children: t.value === "minimised" ? b(j, {
4159
+ children: [b(it, {
4160
+ class: "view-switch",
4161
+ onTouchStart: Vt,
4162
+ "aria-label": "Maximise job application",
4163
+ onClick: () => t.value = "maximised",
4164
+ children: b("path", {
4165
+ d: "M12.5 9.5L8 5L3.5 9.5"
4166
+ })
4167
+ }, "minmax"), b(it, {
4168
+ "aria-label": "Close application",
4169
+ onClick: A.cancelCurrentFlow,
4170
+ children: b("path", {
4171
+ d: "M12.5 6.5L8 11L3.5 6.5"
4172
+ })
4173
+ }, "close")]
4174
+ }) : b(j, {
4175
+ children: [A.current$.value.state === "loaded" && b(it, {
4176
+ "aria-label": "Restart",
4177
+ onClick: () => {
4178
+ A.restart();
4179
+ },
4180
+ children: [b("path", {
4181
+ d: "M12 8.5C12 9.29113 11.7654 10.0645 11.3259 10.7223C10.8864 11.3801 10.2616 11.8928 9.53073 12.1955C8.79983 12.4983 7.99556 12.5775 7.21964 12.4231C6.44371 12.2688 5.73098 11.8878 5.17157 11.3284C4.61216 10.769 4.2312 10.0563 4.07686 9.28036C3.92252 8.50444 4.00173 7.70017 4.30448 6.96927C4.60723 6.23836 5.11992 5.61365 5.77772 5.17412C6.43552 4.7346 7.20887 4.5 8 4.5H9"
4182
+ }), b("path", {
4183
+ d: "M8 7L10 4.5L8 2.5"
4184
+ })]
4185
+ }, "restart"), b(it, {
4186
+ class: "view-switch",
4187
+ onTouchStart: Vt,
4188
+ "aria-label": "Minimise application",
4189
+ onClick: () => t.value = "minimised",
4190
+ children: b("path", {
4191
+ d: "M12.5 6.5L8 11L3.5 6.5"
4192
+ })
4193
+ }, "minmax")]
4194
+ })
4195
+ })]
4196
+ }), b(Ad, {})]
4197
+ })
4198
+ });
4199
+ };
4200
+ function Vt() {
4201
+ }
4202
+ const jd = $r(() => import("./chatbot-body-59b9e18a.js").then((e) => e.ChatbotBody)), Fd = Qu("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full max-w-[450px] focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out", {
4203
+ variants: {
4204
+ view: {
4205
+ closed: "hidden",
4206
+ minimised: "h-[var(--header-height)] animate-slide-in-bottom",
4207
+ maximised: "h-[var(--content-height)] animate-maximise"
4208
+ }
4209
+ }
4210
+ }), Ld = ({
4211
+ logger: e,
4212
+ apiClient: t,
4213
+ analytics: r
4214
+ }) => {
4215
+ const {
4216
+ state: n,
4217
+ flow: o,
4218
+ error: i
4219
+ } = A.current$.value, a = A.viewState$.value, s = n !== "idle" && a === "maximised", l = P(null);
4220
+ return b(Xu, {
4221
+ open: s,
4222
+ modal: s,
4223
+ children: [b(Zu, {
4224
+ class: "bg-overlay animate-fade-in pointer-events-none fixed inset-0 isolate"
4225
+ }), b(Ju, {
4226
+ forceMount: !0,
4227
+ asChild: !0,
4228
+ children: b("div", {
4229
+ ref: l,
4230
+ "aria-modal": "true",
4231
+ role: "dialog",
4232
+ "aria-labelledby": "chatbot-status-bar",
4233
+ class: Fd({
4234
+ view: a
4235
+ }),
4236
+ children: b("div", {
4237
+ class: "outline-neutral-3 bg-neutral-1 relative flex h-full flex-col overflow-hidden rounded-3xl outline outline-1",
4238
+ children: [b(Md, {
4239
+ children: o == null ? void 0 : o.title
4240
+ }), Ir({
4241
+ state: n,
4242
+ view: a
4243
+ }).with({
4244
+ view: "closed"
4245
+ }, () => null).with({
4246
+ view: "minimised"
4247
+ }, () => null).with({
4248
+ state: "idle"
4249
+ }, () => null).with({
4250
+ state: "loading"
4251
+ }, () => b(Mn, {}, "loading")).with({
4252
+ state: "loaded"
4253
+ }, () => b(Ee, {
4254
+ fallback: b(Mn, {}, "loading"),
4255
+ children: b(jd, {
4256
+ analytics: r,
4257
+ apiClient: t,
4258
+ logger: e
4259
+ })
4260
+ })).with({
4261
+ state: "error"
4262
+ }, () => b(Id, {
4263
+ message: i
4264
+ })).exhaustive()]
4265
+ })
4266
+ })
4267
+ })]
4268
+ });
4269
+ }, fi = ve({
4270
+ id: io(Ce(), String),
4271
+ version: Xr(),
4272
+ build: Xr(),
4273
+ nodes: tl(el()),
4274
+ context_schema: lo(nl(al(Ce(), ve({
4275
+ required: rl(),
4276
+ type: sl([Yr("string"), Yr("number")])
4277
+ }))))
4278
+ }), Rd = ve({
4279
+ flow: fi
4280
+ }), zd = ve({
4281
+ company: ve({
4282
+ name: Ce()
4283
+ }),
4284
+ flow: fi,
4285
+ job: ve({
4286
+ id: io(Ce(), String),
4287
+ title: Ce()
4288
+ })
4289
+ }), Bd = `#isdk{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;z-index:99999;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-e-1: 340 100% 99%;--i-e-2: 353 100% 98%;--i-e-3: 351 91% 96%;--i-e-4: 351 100% 93%;--i-e-5: 350 100% 90%;--i-e-6: 351 80% 86%;--i-e-7: 349 68% 81%;--i-e-8: 348 61% 74%;--i-e-9: 348 75% 59%;--i-e-10: 347 70% 55%;--i-e-11: 345 70% 47%;--i-e-12: 344 63% 24%;--header-height: 44px;--content-height:calc(100vh - 64px);--content-height:calc(100svh - 64px)}@media screen and (min-width: 768px){#isdk{--content-height: min(640px, calc(100vh - 16px));--content-height: min(640px, calc(100svh - 16px)) }}#isdk{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}#isdk em{font-style:italic}#isdk strong{font-weight:700}#isdk *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}#isdk :before,#isdk :after{box-sizing:border-box}#isdk :is(ul,ol){list-style:none;padding:0;margin:0}#isdk :is(p){margin:0;padding:0}#isdk :is(li){margin:0;padding:0;list-style:none}#isdk :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}#isdk *,#isdk :before,#isdk :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }#isdk ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }#isdk .container{width:100%}@media (min-width: 640px){#isdk .container{max-width:640px}}@media (min-width: 768px){#isdk .container{max-width:768px}}@media (min-width: 1024px){#isdk .container{max-width:1024px}}@media (min-width: 1280px){#isdk .container{max-width:1280px}}@media (min-width: 1536px){#isdk .container{max-width:1536px}}#isdk .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#isdk .pointer-events-none{pointer-events:none}#isdk .visible{visibility:visible}#isdk .collapse{visibility:collapse}#isdk .static{position:static}#isdk .fixed{position:fixed}#isdk .absolute{position:absolute}#isdk .relative{position:relative}#isdk .sticky{position:sticky}#isdk .inset-0{top:0;right:0;bottom:0;left:0}#isdk .bottom-0{bottom:0}#isdk .bottom-2{bottom:.5rem}#isdk .bottom-2\\.5{bottom:.625rem}#isdk .left-0{left:0}#isdk .left-2{left:.5rem}#isdk .right-0{right:0}#isdk .right-2{right:.5rem}#isdk .top-0{top:0}#isdk .isolate{isolation:isolate}#isdk .z-20{z-index:20}#isdk .m-0{margin:0}#isdk .mx-auto{margin-left:auto;margin-right:auto}#isdk .mb-1{margin-bottom:.25rem}#isdk .ml-auto{margin-left:auto}#isdk .mt-auto{margin-top:auto}#isdk .block{display:block}#isdk .inline-block{display:inline-block}#isdk .inline{display:inline}#isdk .flex{display:flex}#isdk .inline-flex{display:inline-flex}#isdk .table{display:table}#isdk .table-row{display:table-row}#isdk .flow-root{display:flow-root}#isdk .grid{display:grid}#isdk .inline-grid{display:inline-grid}#isdk .contents{display:contents}#isdk .list-item{display:list-item}#isdk .\\!hidden{display:none!important}#isdk .hidden{display:none}#isdk .h-1{height:.25rem}#isdk .h-1\\.5{height:.375rem}#isdk .h-16{height:4rem}#isdk .h-4{height:1rem}#isdk .h-48{height:12rem}#isdk .h-8{height:2rem}#isdk .h-\\[3px\\]{height:3px}#isdk .h-\\[var\\(--content-height\\)\\]{height:var(--content-height)}#isdk .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}#isdk .h-full{height:100%}#isdk .max-h-full{max-height:100%}#isdk .min-h-\\[36px\\]{min-height:36px}#isdk .w-1{width:.25rem}#isdk .w-1\\.5{width:.375rem}#isdk .w-16{width:4rem}#isdk .w-24{width:6rem}#isdk .w-4{width:1rem}#isdk .w-8{width:2rem}#isdk .w-full{width:100%}#isdk .min-w-0{min-width:0px}#isdk .min-w-\\[2rem\\]{min-width:2rem}#isdk .max-w-\\[450px\\]{max-width:450px}#isdk .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,24rem)}#isdk .max-w-full{max-width:100%}#isdk .flex-1{flex:1 1 0%}#isdk .flex-none{flex:none}#isdk .flex-shrink{flex-shrink:1}#isdk .flex-shrink-0{flex-shrink:0}#isdk .shrink{flex-shrink:1}#isdk .flex-grow,#isdk .grow{flex-grow:1}#isdk .border-collapse{border-collapse:collapse}#isdk .translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#isdk .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}#isdk .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}#isdk .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}#isdk .animate-fade-in{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}#isdk .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(.82)}to{transform:translateY(0)}}#isdk .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}#isdk .cursor-pointer{cursor:pointer}#isdk .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}#isdk .select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}#isdk .resize{resize:both}#isdk .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}#isdk .flex-col{flex-direction:column}#isdk .flex-wrap{flex-wrap:wrap}#isdk .items-center{align-items:center}#isdk .items-stretch{align-items:stretch}#isdk .justify-end{justify-content:flex-end}#isdk .justify-center{justify-content:center}#isdk .gap-0{gap:0px}#isdk .gap-1{gap:.25rem}#isdk .gap-1\\.5{gap:.375rem}#isdk .gap-2{gap:.5rem}#isdk .gap-3{gap:.75rem}#isdk .gap-4{gap:1rem}#isdk .gap-px{gap:1px}#isdk .overflow-hidden{overflow:hidden}#isdk .overflow-y-auto{overflow-y:auto}#isdk .overflow-y-scroll{overflow-y:scroll}#isdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#isdk .text-ellipsis{text-overflow:ellipsis}#isdk .whitespace-nowrap{white-space:nowrap}#isdk .break-words{overflow-wrap:break-word}#isdk .rounded{border-radius:.25rem}#isdk .rounded-2xl{border-radius:1rem}#isdk .rounded-3xl{border-radius:1.5rem}#isdk .rounded-\\[18px\\]{border-radius:18px}#isdk .rounded-full{border-radius:9999px}#isdk .rounded-lg{border-radius:.5rem}#isdk .rounded-md{border-radius:.375rem}#isdk .rounded-xl{border-radius:.75rem}#isdk .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}#isdk .rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}#isdk .rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}#isdk .rounded-bl-md{border-bottom-left-radius:.375rem}#isdk .rounded-br-md{border-bottom-right-radius:.375rem}#isdk .border{border-width:1px}#isdk .border-b{border-bottom-width:1px}#isdk .border-t{border-top-width:1px}#isdk .border-solid{border-style:solid}#isdk .border-dashed{border-style:dashed}#isdk .border-accent-9{border-color:var(--i-color-a-9)}#isdk .border-divider{border-color:var(--i-color-divider)}#isdk .border-neutral-5{border-color:var(--i-color-n-5)}#isdk .border-neutral-8{border-color:var(--i-color-n-8)}#isdk .border-transparent{border-color:transparent}#isdk .border-b-neutral-3{border-bottom-color:var(--i-color-n-3)}#isdk .border-b-neutral-5{border-bottom-color:var(--i-color-n-5)}#isdk .border-b-transparent{border-bottom-color:transparent}#isdk .bg-accent-1{background-color:var(--i-color-a-1)}#isdk .bg-accent-3{background-color:var(--i-color-a-3)}#isdk .bg-accent-9{background-color:var(--i-color-a-9)}#isdk .bg-bubble-weak-bg{background-color:var(--i-bubble-weak-bg)}#isdk .bg-lowest{background-color:var(--i-color-lowest)}#isdk .bg-neutral-1{background-color:var(--i-color-n-1)}#isdk .bg-neutral-2{background-color:var(--i-color-n-2)}#isdk .bg-neutral-3{background-color:var(--i-color-n-3)}#isdk .bg-overlay{background-color:var(--i-overlay-bg)}#isdk .bg-statusbar{background-color:var(--i-status-bar-bg)}#isdk .bg-transparent{background-color:transparent}#isdk .bg-none{background-image:none}#isdk .p-1{padding:.25rem}#isdk .p-1\\.5{padding:.375rem}#isdk .p-2{padding:.5rem}#isdk .p-2\\.5{padding:.625rem}#isdk .p-4{padding:1rem}#isdk .px-1{padding-left:.25rem;padding-right:.25rem}#isdk .px-2{padding-left:.5rem;padding-right:.5rem}#isdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#isdk .px-3{padding-left:.75rem;padding-right:.75rem}#isdk .px-4{padding-left:1rem;padding-right:1rem}#isdk .px-5{padding-left:1.25rem;padding-right:1.25rem}#isdk .py-0{padding-top:0;padding-bottom:0}#isdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}#isdk .py-1{padding-top:.25rem;padding-bottom:.25rem}#isdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}#isdk .py-2{padding-top:.5rem;padding-bottom:.5rem}#isdk .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}#isdk .py-3{padding-top:.75rem;padding-bottom:.75rem}#isdk .py-\\[6px\\]{padding-top:6px;padding-bottom:6px}#isdk .pb-2{padding-bottom:.5rem}#isdk .pb-6{padding-bottom:1.5rem}#isdk .pl-1{padding-left:.25rem}#isdk .pl-1\\.5{padding-left:.375rem}#isdk .pl-2{padding-left:.5rem}#isdk .pl-3{padding-left:.75rem}#isdk .pl-4{padding-left:1rem}#isdk .pr-1{padding-right:.25rem}#isdk .pr-16{padding-right:4rem}#isdk .pr-2{padding-right:.5rem}#isdk .pr-2\\.5{padding-right:.625rem}#isdk .pr-3{padding-right:.75rem}#isdk .pr-4{padding-right:1rem}#isdk .pt-2{padding-top:.5rem}#isdk .pt-2\\.5{padding-top:.625rem}#isdk .pt-3{padding-top:.75rem}#isdk .pt-5{padding-top:1.25rem}#isdk .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 1rem)}#isdk .text-center{text-align:center}#isdk .text-right{text-align:right}#isdk .text-justify{text-align:justify}#isdk .text-\\[10px\\]{font-size:10px}#isdk .text-\\[11px\\]{font-size:11px}#isdk .text-base{font-size:1rem;line-height:1.5rem}#isdk .text-sm{font-size:.875rem;line-height:1.25rem}#isdk .text-xs{font-size:.75rem;line-height:1rem}#isdk .font-bold{font-weight:700}#isdk .font-medium{font-weight:500}#isdk .uppercase{text-transform:uppercase}#isdk .lowercase{text-transform:lowercase}#isdk .capitalize{text-transform:capitalize}#isdk .italic{font-style:italic}#isdk .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#isdk .leading-3{line-height:.75rem}#isdk .leading-snug{line-height:1.375}#isdk .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}#isdk .tracking-tight{letter-spacing:-.025em}#isdk .tracking-wide{letter-spacing:.025em}#isdk .tracking-widest{letter-spacing:.1em}#isdk .text-\\[\\#4CAF50\\]{--tw-text-opacity: 1;color:rgb(76 175 80 / var(--tw-text-opacity))}#isdk .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity))}#isdk .text-accent-10{color:var(--i-color-a-10)}#isdk .text-accent-11{color:var(--i-color-a-11)}#isdk .text-accent-12{color:var(--i-color-a-12)}#isdk .text-accent-9{color:var(--i-color-a-9)}#isdk .text-error-11{color:var(--i-color-e-11)}#isdk .text-error-9{color:var(--i-color-e-9)}#isdk .text-interactive-copy{color:var(--i-interactive-copy)}#isdk .text-neutral-10{color:var(--i-color-n-10)}#isdk .text-neutral-11{color:var(--i-color-n-11)}#isdk .text-neutral-12{color:var(--i-color-n-12)}#isdk .text-neutral-6{color:var(--i-color-n-6)}#isdk .text-neutral-8{color:var(--i-color-n-8)}#isdk .text-neutral-9{color:var(--i-color-n-9)}#isdk .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}#isdk .underline{text-decoration-line:underline}#isdk .no-underline{text-decoration-line:none}#isdk .underline-offset-2{text-underline-offset:2px}#isdk .caret-accent-9{caret-color:var(--i-color-a-9)}#isdk .opacity-0{opacity:0}#isdk .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}#isdk .outline-none{outline:2px solid transparent;outline-offset:2px}#isdk .outline{outline-style:solid}#isdk .outline-1{outline-width:1px}#isdk .outline-2{outline-width:2px}#isdk .outline-accent-4{outline-color:var(--i-color-a-4)}#isdk .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}#isdk .outline-divider{outline-color:var(--i-color-divider)}#isdk .outline-neutral-3{outline-color:var(--i-color-n-3)}#isdk .outline-neutral-6{outline-color:var(--i-color-n-6)}#isdk .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#isdk .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#isdk .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#isdk .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}#isdk .ring-divider{--tw-ring-color: var(--i-color-divider)}#isdk .ring-lowest{--tw-ring-color: var(--i-color-lowest)}#isdk .ring-transparent{--tw-ring-color: transparent}#isdk .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}#isdk .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}#isdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#isdk .backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#isdk .backdrop-saturate-150{--tw-backdrop-saturate: saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#isdk .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#isdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#isdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#isdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#isdk .duration-100{transition-duration:.1s}#isdk .duration-1000{transition-duration:1s}#isdk .duration-300{transition-duration:.3s}#isdk .duration-700{transition-duration:.7s}#isdk .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}#isdk .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}#isdk .will-change-\\[height\\]{will-change:height}#isdk .text-wrap-balance{text-wrap:balance}#isdk .fr{outline:none}#isdk .fr:focus{outline:none}#isdk .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#isdk .gutter-stable{scrollbar-gutter:stable}#isdk .hide-scrollbars::-webkit-scrollbar{display:none}#isdk .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}#isdk .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}#isdk .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}#isdk .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}#isdk .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}#isdk .\\[text-wrap\\:pretty\\]{text-wrap:pretty}#isdk .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}#isdk .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}#isdk .selection\\:bg-transparent *::-moz-selection{background-color:transparent}#isdk .selection\\:bg-transparent *::selection{background-color:transparent}#isdk .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}#isdk .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}#isdk .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}#isdk .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}#isdk .selection\\:bg-transparent::-moz-selection{background-color:transparent}#isdk .selection\\:bg-transparent::selection{background-color:transparent}#isdk .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}#isdk .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}#isdk .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}#isdk .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}#isdk .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}#isdk .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}#isdk .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}#isdk .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}#isdk .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}#isdk .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}#isdk .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}#isdk .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}#isdk .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}#isdk .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}#isdk .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}#isdk .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}#isdk .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}#isdk .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}#isdk .hover\\:text-interactive-copy-hover:hover{color:var(--i-interactive-copy-hover)}#isdk .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}#isdk .hover\\:underline:hover{text-decoration-line:underline}#isdk .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}#isdk .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}#isdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#isdk .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}#isdk .focus-visible\\:outline-2:focus-visible{outline-width:2px}#isdk .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}#isdk .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}#isdk .focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#isdk .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}#isdk .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}#isdk .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}#isdk .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}#isdk .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}#isdk .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}#isdk .active\\:text-accent-10:active{color:var(--i-color-a-10)}#isdk .active\\:text-accent-11:active{color:var(--i-color-a-11)}#isdk .active\\:text-interactive-copy-active:active{color:var(--i-interactive-copy-active)}#isdk .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}#isdk .active\\:ring-2:active{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#isdk .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}#isdk .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}#isdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#isdk .disabled\\:opacity-50:disabled{opacity:.5}#isdk .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}#isdk .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}#isdk .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}@media (pointer: coarse){#isdk .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}#isdk .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-11:has(+*>input:focus){color:var(--i-color-n-11)}#isdk .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
4290
+ `, jn = "isdk", xf = {
4291
+ not_in_local_storage: "Application not found in local storage",
4292
+ invalid_end_node: "Unexpected node type to finish flow",
4293
+ no_submissions: "Application ended without any fields submitted",
4294
+ invalid_state: "Invalid state"
4295
+ }, Ud = () => ({
4296
+ getOrCreateChatbotElement: () => {
4297
+ const e = document.getElementById(jn);
4298
+ if (e)
4299
+ return document.body.appendChild(e), e;
4300
+ const t = document.createElement("div");
4301
+ return document.body.appendChild(t), t.id = jn, t;
4302
+ }
4303
+ });
4304
+ var Hd = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], Wd = {
4305
+ light: {
4306
+ 1: [98.8, 0.015],
4307
+ 2: [97.8, 0.018],
4308
+ 3: [95.8, 0.025],
4309
+ 4: [92, 0.04],
4310
+ 5: [89, 0.05],
4311
+ 6: [85, 0.07],
4312
+ 7: [80.5, 0.08],
4313
+ 8: [74, 0.11],
4314
+ 9: [60, 0.22],
4315
+ 10: [56, 0.23],
4316
+ 11: [50, 0.19],
4317
+ 12: [25, 0.18]
4318
+ },
4319
+ dark: {
4320
+ 1: [19, 0.015],
4321
+ 2: [21, 0.018],
4322
+ 3: [25.5, 0.055],
4323
+ 4: [29.3, 0.084],
4324
+ 5: [33.5, 0.098],
4325
+ 6: [39.05, 0.107],
4326
+ 7: [45, 0.11],
4327
+ 8: [55, 0.13],
4328
+ 9: [60, 0.22],
4329
+ 10: [67, 0.18],
4330
+ 11: [79.3, 0.12],
4331
+ 12: [95, 0.04]
4332
+ }
4333
+ }, Vd = (e, t = 1, r) => (n) => {
4334
+ const [o, i] = Wd[r][n];
4335
+ return "oklch(" + o + "% " + i * t + " " + e + ")";
4336
+ }, Kt = (e) => {
4337
+ const t = Vd(e.hue, e.chroma, e.mode);
4338
+ return Object.fromEntries(
4339
+ Hd.map((r) => [e.prefix + r, e.transform(t(r))])
4340
+ );
4341
+ }, Gt = (e) => e, Kd = (e) => {
4342
+ const t = Object.keys(e).flatMap((r) => {
4343
+ const n = e[r];
4344
+ return typeof n == "object" && n !== null ? Object.keys(n).map((o) => {
4345
+ const i = n[o];
4346
+ return [`${String(r)}.${o}`, i];
4347
+ }) : [[r, n]];
4348
+ });
4349
+ return Object.fromEntries(t);
4350
+ }, at = (e) => !!e && typeof e == "object" && !Array.isArray(e), hr = (e, ...t) => {
4351
+ if (!t.length)
4352
+ return e;
4353
+ const r = t.shift();
4354
+ if (at(e) && at(r))
4355
+ for (const n in r) {
4356
+ const o = r[n];
4357
+ if (at(o)) {
4358
+ e[n] || Object.assign(e, { [n]: {} });
4359
+ const i = e[n];
4360
+ at(i) && hr(i, o);
4361
+ } else
4362
+ Object.assign(e, { [n]: r[n] });
4363
+ }
4364
+ return hr(e, ...t);
4365
+ }, Gd = (e) => {
4366
+ function t(r, n) {
4367
+ const o = [e.prefix, n.toString().replace(/\./g, "-")].join("");
4368
+ return r === "declaration" ? `--${o}` : `var(--${o})`;
4369
+ }
4370
+ return t;
4371
+ }, qd = () => ({
4372
+ core: (e) => ({
4373
+ semantic: (t) => ({
4374
+ component: (r) => ({
4375
+ from: (n) => {
4376
+ const { theme: o, getToken: i } = n, a = (p) => i("reference", p.toString()), s = e({ theme: o }), l = t({ theme: o, core: a, raw: { core: s } }), u = r({
4377
+ theme: o,
4378
+ core: a,
4379
+ semantic: a,
4380
+ raw: { core: s, semantic: l }
4381
+ }), d = Kd(hr(s, l, u)), c = ([p, v], h) => {
4382
+ const f = [h, p].filter(Boolean).join(".");
4383
+ return typeof v == "object" ? Object.entries(v).flatMap((_) => c(_, f)) : [[n.getToken("declaration", f), v]];
4384
+ };
4385
+ return {
4386
+ values: d,
4387
+ declarations: Object.fromEntries(Object.entries(d).flatMap((p) => c(p))),
4388
+ ref: (p) => i("reference", p.toString())
4389
+ };
4390
+ }
4391
+ })
4392
+ })
4393
+ })
4394
+ });
4395
+ const [qt, Yt, Fn] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], Yd = qd().core(({
4396
+ theme: e
4397
+ }) => ({
4398
+ color: {
4399
+ black: qt,
4400
+ white: Yt,
4401
+ lowest: e.mode === "light" ? Yt : qt,
4402
+ highest: e.mode === "light" ? qt : Yt,
4403
+ ...Kt({
4404
+ prefix: "a-",
4405
+ hue: e.hue,
4406
+ chroma: e.chroma,
4407
+ mode: e.mode,
4408
+ transform: Gt
4409
+ }),
4410
+ ...Kt({
4411
+ prefix: "n-",
4412
+ hue: e.hue,
4413
+ chroma: 0.05,
4414
+ mode: e.mode,
4415
+ transform: Gt
4416
+ }),
4417
+ ...Kt({
4418
+ prefix: "e-",
4419
+ hue: 20,
4420
+ chroma: e.chroma,
4421
+ mode: e.mode,
4422
+ transform: Gt
4423
+ })
4424
+ },
4425
+ typography: {}
4426
+ })).semantic(({
4427
+ core: e,
4428
+ raw: t,
4429
+ theme: r
4430
+ }) => {
4431
+ const n = (o, i) => t.core.color[o].replace(")", ` / ${i})`);
4432
+ return {
4433
+ "font-family": {
4434
+ body: "inherit",
4435
+ headings: "inherit"
4436
+ },
4437
+ "font-style": {
4438
+ body: "normal",
4439
+ headings: "normal"
4440
+ },
4441
+ "font-weight-body": "normal",
4442
+ "font-weight-headings": "normal",
4443
+ "radius-app": "1.5rem",
4444
+ "radius-interactive": "1.5rem",
4445
+ color: {
4446
+ divider: n("n-8", r.mode === "dark" ? 0.4 : 0.2)
4447
+ },
4448
+ "copy-body": e("color.n-12"),
4449
+ "copy-headings": e("color.n-12"),
4450
+ interactive: {
4451
+ copy: e("color.n-11"),
4452
+ "copy-hover": e("color.n-12"),
4453
+ "copy-active": e("color.n-12"),
4454
+ bg: Fn,
4455
+ "bg-hover": n("n-10", 0.4),
4456
+ "bg-active": n("n-10", 0.5)
4457
+ }
4458
+ };
4459
+ }).component(({
4460
+ raw: e,
4461
+ theme: t,
4462
+ semantic: r,
4463
+ core: n
4464
+ }) => {
4465
+ const o = (i, a) => e.core.color[i].replace(")", ` / ${a})`);
4466
+ return {
4467
+ app: {
4468
+ bg: n(t.mode === "dark" ? "color.n-1" : "color.n-2")
4469
+ },
4470
+ overlay: {
4471
+ bg: o("black", 0.4)
4472
+ },
4473
+ bubble: {
4474
+ "weak-bg": n(t.mode === "dark" ? "color.n-3" : "color.lowest"),
4475
+ "weak-outline": r("color.divider"),
4476
+ "strong-shadow": o("a-9", 0.05)
4477
+ },
4478
+ "status-bar": {
4479
+ bg: o("n-2", 0.8),
4480
+ "bg-button": Fn,
4481
+ "bg-button-hover": o("n-10", 0.4),
4482
+ "bg-button-active": o("n-10", 0.5)
4483
+ },
4484
+ "submit-button": {
4485
+ "bg-active": n(t.mode === "dark" ? "color.a-8" : "color.a-11")
4486
+ }
4487
+ };
4488
+ }), Xd = Gd({
4489
+ prefix: "i-"
4490
+ }), Zd = (e) => {
4491
+ const t = Yd.from({
4492
+ theme: e,
4493
+ getToken: Xd
4494
+ }), r = Object.entries(t.declarations).map(([n, o]) => `${n}: ${o};`);
4495
+ return `#isdk {
4496
+ ${r.concat(r).join(`
4497
+ `)}
4498
+ }`;
4499
+ }, Ln = ({
4500
+ context: e,
4501
+ schema: t,
4502
+ logger: r
4503
+ }) => {
4504
+ if (t)
4505
+ for (const n in t) {
4506
+ const o = t[n];
4507
+ if (!o)
4508
+ continue;
4509
+ const i = Vc(e, n, null);
4510
+ if (o.required && i === null) {
4511
+ const a = `Configuration error in context: ${n} is required`;
4512
+ throw r.error(a), new Error(a);
4513
+ }
4514
+ switch (o.type) {
4515
+ case "number":
4516
+ if (typeof i != "number")
4517
+ throw new Error(`Configuration error in context: ${n} is not a number`);
4518
+ break;
4519
+ case "string":
4520
+ if (typeof i != "string")
4521
+ throw new Error(`Configuration error in context: ${n} is not a string`);
4522
+ break;
4523
+ default:
4524
+ o.type;
4525
+ }
4526
+ }
4527
+ }, $f = ({
4528
+ _internal_domManager: e = Ud(),
4529
+ theme: t
4530
+ }) => vi(({
4531
+ apiClient: r,
4532
+ logger: n,
4533
+ analytics: o
4534
+ }) => {
4535
+ let i = !1;
4536
+ const a = () => {
4537
+ if (typeof window > "u")
4538
+ return;
4539
+ const s = [w("style", {
4540
+ id: "inploi-chatbot-styles"
4541
+ }, Bd), w("style", {
4542
+ id: "inploi-chatbot-theme"
4543
+ }, Zd(t))], l = e.getOrCreateChatbotElement();
4544
+ Te(w(j, {}, [s, w(Ld, {
4545
+ apiClient: r,
4546
+ logger: n,
4547
+ analytics: o
4548
+ })]), l), i = !0;
4549
+ };
4550
+ return {
4551
+ /** Optionally eagerly renders the interface ahead of needing the chatbot. */
4552
+ prepare: async () => {
4553
+ if (!(typeof window > "u"))
4554
+ try {
4555
+ if (i)
4556
+ return;
4557
+ a(), n.info("Chatbot plugin prepared");
4558
+ } catch (s) {
4559
+ n.error("Error preparing chatbot plugin", s);
4560
+ }
4561
+ },
4562
+ /** Fetches a flow by job ID.
4563
+ * @param jobId - The job ID to fetch the flow for. This is the job ID according to the **ATS**, and not the inploi job ID.
4564
+ */
4565
+ fetchFlowByJobId: async (s, l) => {
4566
+ const u = new URLSearchParams({
4567
+ id_type: (l == null ? void 0 : l.idType) === "inploi" ? "internal" : "external"
4568
+ });
4569
+ return r.fetch([`/flow/job/${s}`, u.toString()].filter(Boolean).join("?")).then((d) => {
4570
+ const c = Zr(zd, d);
4571
+ return {
4572
+ flow: c.flow,
4573
+ title: `Applying for “${c.job.title}”`,
4574
+ flowKeys: [c.job.id, ...(l == null ? void 0 : l.flowKeys) ?? []],
4575
+ job: {
4576
+ id: c.job.id,
4577
+ id_type: "external"
4578
+ },
4579
+ ...l
4580
+ };
4581
+ });
4582
+ },
4583
+ fetchFlowById: async (s, l) => r.fetch(`/flow/id/${s}`).then((u) => {
4584
+ var c;
4585
+ const d = Zr(Rd, u);
4586
+ return {
4587
+ flow: d.flow,
4588
+ title: "Chatbot",
4589
+ flowKeys: (l == null ? void 0 : l.flowKeys) ?? [],
4590
+ ...l,
4591
+ analytics: {
4592
+ customProperties: {
4593
+ flow_id: d.flow.id,
4594
+ flow_version: d.flow.version,
4595
+ ...(c = l == null ? void 0 : l.analytics) == null ? void 0 : c.customProperties
4596
+ }
4597
+ }
4598
+ };
4599
+ }),
4600
+ open: async (s) => {
4601
+ if (!(typeof window > "u"))
4602
+ try {
4603
+ A.cancelCurrentFlow(), A.viewState$.value = "maximised", i || a(), s instanceof Promise ? (A.current$.value = {
4604
+ state: "loading"
4605
+ }, s.then(async (l) => {
4606
+ Ln({
4607
+ context: l.context || {},
4608
+ schema: l.flow.context_schema,
4609
+ logger: n
4610
+ }), A.startFlow(l);
4611
+ }).catch((l) => {
4612
+ const u = l instanceof Error ? l.message : "An error occurred";
4613
+ A.current$.value = {
4614
+ state: "error",
4615
+ error: u
4616
+ };
4617
+ })) : (Ln({
4618
+ context: s.context || {},
4619
+ schema: s.flow.context_schema,
4620
+ logger: n
4621
+ }), A.startFlow(s));
4622
+ } catch (l) {
4623
+ n.error("Error starting flow", l);
4624
+ }
4625
+ },
4626
+ close: async () => {
4627
+ typeof window > "u" || (A.cancelCurrentFlow(), n.info("Closed flow from an external source"));
4628
+ }
4629
+ };
4630
+ });
4631
+ export {
4632
+ wf as A,
4633
+ ef as B,
4634
+ gf as C,
4635
+ Cl as D,
4636
+ tf as E,
4637
+ q as F,
4638
+ of as G,
4639
+ cf as H,
4640
+ uf as I,
4641
+ al as J,
4642
+ rl as K,
4643
+ Xr as L,
4644
+ df as M,
4645
+ Ir as N,
4646
+ lf as O,
4647
+ af as P,
4648
+ ff as Q,
4649
+ sf as R,
4650
+ pf as S,
4651
+ Dd as T,
4652
+ xf as U,
4653
+ kr as V,
4654
+ $f as W,
4655
+ $e as _,
4656
+ mf as a,
4657
+ ni as b,
4658
+ bf as c,
4659
+ _i as d,
4660
+ P as e,
4661
+ Qo as f,
4662
+ Vc as g,
4663
+ W as h,
4664
+ yf as i,
4665
+ qe as j,
4666
+ _f as k,
4667
+ Qu as l,
4668
+ ve as m,
4669
+ tl as n,
4670
+ b as o,
4671
+ D as p,
4672
+ lo as q,
4673
+ Ce as r,
4674
+ A as s,
4675
+ rf as t,
4676
+ j as u,
4677
+ nf as v,
4678
+ B as w,
4679
+ kf as x,
4680
+ Me as y,
4681
+ Zr as z
4682
+ };