@inploi/plugin-chatbot 4.3.1 → 5.0.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.
@@ -1,3548 +0,0 @@
1
- var Hr = Object.defineProperty;
2
- var Br = (t, e, a) => e in t ? Hr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
- var Re = (t, e, a) => (Br(t, typeof e != "symbol" ? e + "" : e, a), a);
4
- import { createPlugin as Rr } from "@inploi/sdk";
5
- var Dt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
- function Ur(t) {
7
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
8
- }
9
- var Vr = Array.isArray, Ce = Vr, Kr = typeof Dt == "object" && Dt && Dt.Object === Object && Dt, qr = Kr, Wr = qr, Gr = typeof self == "object" && self && self.Object === Object && self, Yr = Wr || Gr || Function("return this")(), Ee = Yr, Xr = Ee, Zr = Xr.Symbol, Pe = Zr, Ue = Pe, Ma = Object.prototype, Jr = Ma.hasOwnProperty, Qr = Ma.toString, _t = Ue ? Ue.toStringTag : void 0;
10
- function ti(t) {
11
- var e = Jr.call(t, _t), a = t[_t];
12
- try {
13
- t[_t] = void 0;
14
- var r = !0;
15
- } catch {
16
- }
17
- var o = Qr.call(t);
18
- return r && (e ? t[_t] = a : delete t[_t]), o;
19
- }
20
- var ei = ti, ai = Object.prototype, ri = ai.toString;
21
- function ii(t) {
22
- return ri.call(t);
23
- }
24
- var oi = ii, Ve = Pe, ni = ei, si = oi, ci = "[object Null]", li = "[object Undefined]", Ke = Ve ? Ve.toStringTag : void 0;
25
- function di(t) {
26
- return t == null ? t === void 0 ? li : ci : Ke && Ke in Object(t) ? ni(t) : si(t);
27
- }
28
- var Fa = di;
29
- function ui(t) {
30
- return t != null && typeof t == "object";
31
- }
32
- var hi = ui, pi = Fa, fi = hi, wi = "[object Symbol]";
33
- function gi(t) {
34
- return typeof t == "symbol" || fi(t) && pi(t) == wi;
35
- }
36
- var Oe = gi, bi = Ce, vi = Oe, _i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, mi = /^\w*$/;
37
- function yi(t, e) {
38
- if (bi(t))
39
- return !1;
40
- var a = typeof t;
41
- return a == "number" || a == "symbol" || a == "boolean" || t == null || vi(t) ? !0 : mi.test(t) || !_i.test(t) || e != null && t in Object(e);
42
- }
43
- var xi = yi;
44
- function ki(t) {
45
- var e = typeof t;
46
- return t != null && (e == "object" || e == "function");
47
- }
48
- var La = ki, $i = Fa, Si = La, Ci = "[object AsyncFunction]", Ei = "[object Function]", Pi = "[object GeneratorFunction]", Oi = "[object Proxy]";
49
- function Ii(t) {
50
- if (!Si(t))
51
- return !1;
52
- var e = $i(t);
53
- return e == Ei || e == Pi || e == Ci || e == Oi;
54
- }
55
- var Ti = Ii, ji = Ee, zi = ji["__core-js_shared__"], Di = zi, te = Di, qe = function() {
56
- var t = /[^.]+$/.exec(te && te.keys && te.keys.IE_PROTO || "");
57
- return t ? "Symbol(src)_1." + t : "";
58
- }();
59
- function Ai(t) {
60
- return !!qe && qe in t;
61
- }
62
- var Ni = Ai, Mi = Function.prototype, Fi = Mi.toString;
63
- function Li(t) {
64
- if (t != null) {
65
- try {
66
- return Fi.call(t);
67
- } catch {
68
- }
69
- try {
70
- return t + "";
71
- } catch {
72
- }
73
- }
74
- return "";
75
- }
76
- var Hi = Li, Bi = Ti, Ri = Ni, Ui = La, Vi = Hi, Ki = /[\\^$.*+?()[\]{}|]/g, qi = /^\[object .+?Constructor\]$/, Wi = Function.prototype, Gi = Object.prototype, Yi = Wi.toString, Xi = Gi.hasOwnProperty, Zi = RegExp(
77
- "^" + Yi.call(Xi).replace(Ki, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
78
- );
79
- function Ji(t) {
80
- if (!Ui(t) || Ri(t))
81
- return !1;
82
- var e = Bi(t) ? Zi : qi;
83
- return e.test(Vi(t));
84
- }
85
- var Qi = Ji;
86
- function to(t, e) {
87
- return t == null ? void 0 : t[e];
88
- }
89
- var eo = to, ao = Qi, ro = eo;
90
- function io(t, e) {
91
- var a = ro(t, e);
92
- return ao(a) ? a : void 0;
93
- }
94
- var Ha = io, oo = Ha, no = oo(Object, "create"), Gt = no, We = Gt;
95
- function so() {
96
- this.__data__ = We ? We(null) : {}, this.size = 0;
97
- }
98
- var co = so;
99
- function lo(t) {
100
- var e = this.has(t) && delete this.__data__[t];
101
- return this.size -= e ? 1 : 0, e;
102
- }
103
- var uo = lo, ho = Gt, po = "__lodash_hash_undefined__", fo = Object.prototype, wo = fo.hasOwnProperty;
104
- function go(t) {
105
- var e = this.__data__;
106
- if (ho) {
107
- var a = e[t];
108
- return a === po ? void 0 : a;
109
- }
110
- return wo.call(e, t) ? e[t] : void 0;
111
- }
112
- var bo = go, vo = Gt, _o = Object.prototype, mo = _o.hasOwnProperty;
113
- function yo(t) {
114
- var e = this.__data__;
115
- return vo ? e[t] !== void 0 : mo.call(e, t);
116
- }
117
- var xo = yo, ko = Gt, $o = "__lodash_hash_undefined__";
118
- function So(t, e) {
119
- var a = this.__data__;
120
- return this.size += this.has(t) ? 0 : 1, a[t] = ko && e === void 0 ? $o : e, this;
121
- }
122
- var Co = So, Eo = co, Po = uo, Oo = bo, Io = xo, To = Co;
123
- function pt(t) {
124
- var e = -1, a = t == null ? 0 : t.length;
125
- for (this.clear(); ++e < a; ) {
126
- var r = t[e];
127
- this.set(r[0], r[1]);
128
- }
129
- }
130
- pt.prototype.clear = Eo;
131
- pt.prototype.delete = Po;
132
- pt.prototype.get = Oo;
133
- pt.prototype.has = Io;
134
- pt.prototype.set = To;
135
- var jo = pt;
136
- function zo() {
137
- this.__data__ = [], this.size = 0;
138
- }
139
- var Do = zo;
140
- function Ao(t, e) {
141
- return t === e || t !== t && e !== e;
142
- }
143
- var No = Ao, Mo = No;
144
- function Fo(t, e) {
145
- for (var a = t.length; a--; )
146
- if (Mo(t[a][0], e))
147
- return a;
148
- return -1;
149
- }
150
- var Yt = Fo, Lo = Yt, Ho = Array.prototype, Bo = Ho.splice;
151
- function Ro(t) {
152
- var e = this.__data__, a = Lo(e, t);
153
- if (a < 0)
154
- return !1;
155
- var r = e.length - 1;
156
- return a == r ? e.pop() : Bo.call(e, a, 1), --this.size, !0;
157
- }
158
- var Uo = Ro, Vo = Yt;
159
- function Ko(t) {
160
- var e = this.__data__, a = Vo(e, t);
161
- return a < 0 ? void 0 : e[a][1];
162
- }
163
- var qo = Ko, Wo = Yt;
164
- function Go(t) {
165
- return Wo(this.__data__, t) > -1;
166
- }
167
- var Yo = Go, Xo = Yt;
168
- function Zo(t, e) {
169
- var a = this.__data__, r = Xo(a, t);
170
- return r < 0 ? (++this.size, a.push([t, e])) : a[r][1] = e, this;
171
- }
172
- var Jo = Zo, Qo = Do, tn = Uo, en = qo, an = Yo, rn = Jo;
173
- function ft(t) {
174
- var e = -1, a = t == null ? 0 : t.length;
175
- for (this.clear(); ++e < a; ) {
176
- var r = t[e];
177
- this.set(r[0], r[1]);
178
- }
179
- }
180
- ft.prototype.clear = Qo;
181
- ft.prototype.delete = tn;
182
- ft.prototype.get = en;
183
- ft.prototype.has = an;
184
- ft.prototype.set = rn;
185
- var on = ft, nn = Ha, sn = Ee, cn = nn(sn, "Map"), ln = cn, Ge = jo, dn = on, un = ln;
186
- function hn() {
187
- this.size = 0, this.__data__ = {
188
- hash: new Ge(),
189
- map: new (un || dn)(),
190
- string: new Ge()
191
- };
192
- }
193
- var pn = hn;
194
- function fn(t) {
195
- var e = typeof t;
196
- return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
197
- }
198
- var wn = fn, gn = wn;
199
- function bn(t, e) {
200
- var a = t.__data__;
201
- return gn(e) ? a[typeof e == "string" ? "string" : "hash"] : a.map;
202
- }
203
- var Xt = bn, vn = Xt;
204
- function _n(t) {
205
- var e = vn(this, t).delete(t);
206
- return this.size -= e ? 1 : 0, e;
207
- }
208
- var mn = _n, yn = Xt;
209
- function xn(t) {
210
- return yn(this, t).get(t);
211
- }
212
- var kn = xn, $n = Xt;
213
- function Sn(t) {
214
- return $n(this, t).has(t);
215
- }
216
- var Cn = Sn, En = Xt;
217
- function Pn(t, e) {
218
- var a = En(this, t), r = a.size;
219
- return a.set(t, e), this.size += a.size == r ? 0 : 1, this;
220
- }
221
- var On = Pn, In = pn, Tn = mn, jn = kn, zn = Cn, Dn = On;
222
- function wt(t) {
223
- var e = -1, a = t == null ? 0 : t.length;
224
- for (this.clear(); ++e < a; ) {
225
- var r = t[e];
226
- this.set(r[0], r[1]);
227
- }
228
- }
229
- wt.prototype.clear = In;
230
- wt.prototype.delete = Tn;
231
- wt.prototype.get = jn;
232
- wt.prototype.has = zn;
233
- wt.prototype.set = Dn;
234
- var An = wt, Ba = An, Nn = "Expected a function";
235
- function Ie(t, e) {
236
- if (typeof t != "function" || e != null && typeof e != "function")
237
- throw new TypeError(Nn);
238
- var a = function() {
239
- var r = arguments, o = e ? e.apply(this, r) : r[0], i = a.cache;
240
- if (i.has(o))
241
- return i.get(o);
242
- var n = t.apply(this, r);
243
- return a.cache = i.set(o, n) || i, n;
244
- };
245
- return a.cache = new (Ie.Cache || Ba)(), a;
246
- }
247
- Ie.Cache = Ba;
248
- var Mn = Ie, Fn = Mn, Ln = 500;
249
- function Hn(t) {
250
- var e = Fn(t, function(r) {
251
- return a.size === Ln && a.clear(), r;
252
- }), a = e.cache;
253
- return e;
254
- }
255
- var Bn = Hn, Rn = Bn, Un = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Vn = /\\(\\)?/g, Kn = Rn(function(t) {
256
- var e = [];
257
- return t.charCodeAt(0) === 46 && e.push(""), t.replace(Un, function(a, r, o, i) {
258
- e.push(o ? i.replace(Vn, "$1") : r || a);
259
- }), e;
260
- }), qn = Kn;
261
- function Wn(t, e) {
262
- for (var a = -1, r = t == null ? 0 : t.length, o = Array(r); ++a < r; )
263
- o[a] = e(t[a], a, t);
264
- return o;
265
- }
266
- var Gn = Wn, Ye = Pe, Yn = Gn, Xn = Ce, Zn = Oe, Jn = 1 / 0, Xe = Ye ? Ye.prototype : void 0, Ze = Xe ? Xe.toString : void 0;
267
- function Ra(t) {
268
- if (typeof t == "string")
269
- return t;
270
- if (Xn(t))
271
- return Yn(t, Ra) + "";
272
- if (Zn(t))
273
- return Ze ? Ze.call(t) : "";
274
- var e = t + "";
275
- return e == "0" && 1 / t == -Jn ? "-0" : e;
276
- }
277
- var Qn = Ra, ts = Qn;
278
- function es(t) {
279
- return t == null ? "" : ts(t);
280
- }
281
- var as = es, rs = Ce, is = xi, os = qn, ns = as;
282
- function ss(t, e) {
283
- return rs(t) ? t : is(t, e) ? [t] : os(ns(t));
284
- }
285
- var cs = ss, ls = Oe, ds = 1 / 0;
286
- function us(t) {
287
- if (typeof t == "string" || ls(t))
288
- return t;
289
- var e = t + "";
290
- return e == "0" && 1 / t == -ds ? "-0" : e;
291
- }
292
- var hs = us, ps = cs, fs = hs;
293
- function ws(t, e) {
294
- e = ps(e, t);
295
- for (var a = 0, r = e.length; t != null && a < r; )
296
- t = t[fs(e[a++])];
297
- return a && a == r ? t : void 0;
298
- }
299
- var gs = ws, bs = gs;
300
- function vs(t, e, a) {
301
- var r = t == null ? void 0 : bs(t, e);
302
- return r === void 0 ? a : r;
303
- }
304
- var _s = vs;
305
- const ms = /* @__PURE__ */ Ur(_s);
306
- var Ot, w, Ua, Va, ot, Je, Ka, ue, qa, lt = {}, Wa = [], ys = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Zt = Array.isArray;
307
- function U(t, e) {
308
- for (var a in e)
309
- t[a] = e[a];
310
- return t;
311
- }
312
- function Ga(t) {
313
- var e = t.parentNode;
314
- e && e.removeChild(t);
315
- }
316
- function A(t, e, a) {
317
- var r, o, i, n = {};
318
- for (i in e)
319
- i == "key" ? r = e[i] : i == "ref" ? o = e[i] : n[i] = e[i];
320
- if (arguments.length > 2 && (n.children = arguments.length > 3 ? Ot.call(arguments, 2) : a), typeof t == "function" && t.defaultProps != null)
321
- for (i in t.defaultProps)
322
- n[i] === void 0 && (n[i] = t.defaultProps[i]);
323
- return kt(t, n, r, o, null);
324
- }
325
- function kt(t, e, a, r, o) {
326
- var i = { type: t, props: e, key: a, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: o ?? ++Ua };
327
- return o == null && w.vnode != null && w.vnode(i), i;
328
- }
329
- function xs() {
330
- return { current: null };
331
- }
332
- function M(t) {
333
- return t.children;
334
- }
335
- function L(t, e) {
336
- this.props = t, this.context = e;
337
- }
338
- function Bt(t, e) {
339
- if (e == null)
340
- return t.__ ? Bt(t.__, t.__.__k.indexOf(t) + 1) : null;
341
- for (var a; e < t.__k.length; e++)
342
- if ((a = t.__k[e]) != null && a.__e != null)
343
- return a.__e;
344
- return typeof t.type == "function" ? Bt(t) : null;
345
- }
346
- function Ya(t) {
347
- var e, a;
348
- if ((t = t.__) != null && t.__c != null) {
349
- for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
350
- if ((a = t.__k[e]) != null && a.__e != null) {
351
- t.__e = t.__c.base = a.__e;
352
- break;
353
- }
354
- return Ya(t);
355
- }
356
- }
357
- function he(t) {
358
- (!t.__d && (t.__d = !0) && ot.push(t) && !Rt.__r++ || Je !== w.debounceRendering) && ((Je = w.debounceRendering) || Ka)(Rt);
359
- }
360
- function Rt() {
361
- var t, e, a, r, o, i, n, c, l;
362
- for (ot.sort(ue); t = ot.shift(); )
363
- t.__d && (e = ot.length, r = void 0, o = void 0, i = void 0, c = (n = (a = t).__v).__e, (l = a.__P) && (r = [], o = [], (i = U({}, n)).__v = n.__v + 1, Te(l, n, i, a.__n, l.ownerSVGElement !== void 0, n.__h != null ? [c] : null, r, c ?? Bt(n), n.__h, o), Qa(r, n, o), n.__e != c && Ya(n)), ot.length > e && ot.sort(ue));
364
- Rt.__r = 0;
365
- }
366
- function Xa(t, e, a, r, o, i, n, c, l, d, u) {
367
- var s, p, g, h, b, m, v, $, N, F, j = 0, z = r && r.__k || Wa, et = z.length, at = et, O = e.length;
368
- for (a.__k = [], s = 0; s < O; s++)
369
- (h = a.__k[s] = (h = e[s]) == null || typeof h == "boolean" || typeof h == "function" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? kt(null, h, null, null, h) : Zt(h) ? kt(M, { children: h }, null, null, null) : h.__b > 0 ? kt(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null && (h.__ = a, h.__b = a.__b + 1, ($ = ks(h, z, v = s + j, at)) === -1 ? g = lt : (g = z[$] || lt, z[$] = void 0, at--), Te(t, h, g, o, i, n, c, l, d, u), b = h.__e, (p = h.ref) && g.ref != p && (g.ref && je(g.ref, null, h), u.push(p, h.__c || b, h)), b != null && (m == null && (m = b), F = !(N = g === lt || g.__v === null) && $ === v, N ? $ == -1 && j-- : $ !== v && ($ === v + 1 ? (j++, F = !0) : $ > v ? at > O - v ? (j += $ - v, F = !0) : j-- : j = $ < v && $ == v - 1 ? $ - v : 0), v = s + j, F = F || $ == s && !N, typeof h.type != "function" || $ === v && g.__k !== h.__k ? typeof h.type == "function" || F ? h.__d !== void 0 ? (l = h.__d, h.__d = void 0) : l = b.nextSibling : l = Ja(t, b, l) : l = Za(h, l, t), typeof a.type == "function" && (a.__d = l)));
370
- for (a.__e = m, s = et; s--; )
371
- z[s] != null && (typeof a.type == "function" && z[s].__e != null && z[s].__e == a.__d && (a.__d = z[s].__e.nextSibling), tr(z[s], z[s]));
372
- }
373
- function Za(t, e, a) {
374
- for (var r, o = t.__k, i = 0; o && i < o.length; i++)
375
- (r = o[i]) && (r.__ = t, e = typeof r.type == "function" ? Za(r, e, a) : Ja(a, r.__e, e));
376
- return e;
377
- }
378
- function V(t, e) {
379
- return e = e || [], t == null || typeof t == "boolean" || (Zt(t) ? t.some(function(a) {
380
- V(a, e);
381
- }) : e.push(t)), e;
382
- }
383
- function Ja(t, e, a) {
384
- return a == null || a.parentNode !== t ? t.insertBefore(e, null) : e == a && e.parentNode != null || t.insertBefore(e, a), e.nextSibling;
385
- }
386
- function ks(t, e, a, r) {
387
- var o = t.key, i = t.type, n = a - 1, c = a + 1, l = e[a];
388
- if (l === null || l && o == l.key && i === l.type)
389
- return a;
390
- if (r > (l != null ? 1 : 0))
391
- for (; n >= 0 || c < e.length; ) {
392
- if (n >= 0) {
393
- if ((l = e[n]) && o == l.key && i === l.type)
394
- return n;
395
- n--;
396
- }
397
- if (c < e.length) {
398
- if ((l = e[c]) && o == l.key && i === l.type)
399
- return c;
400
- c++;
401
- }
402
- }
403
- return -1;
404
- }
405
- function $s(t, e, a, r, o) {
406
- var i;
407
- for (i in a)
408
- i === "children" || i === "key" || i in e || Ut(t, i, null, a[i], r);
409
- for (i in e)
410
- o && typeof e[i] != "function" || i === "children" || i === "key" || i === "value" || i === "checked" || a[i] === e[i] || Ut(t, i, e[i], a[i], r);
411
- }
412
- function Qe(t, e, a) {
413
- e[0] === "-" ? t.setProperty(e, a ?? "") : t[e] = a == null ? "" : typeof a != "number" || ys.test(e) ? a : a + "px";
414
- }
415
- function Ut(t, e, a, r, o) {
416
- var i;
417
- t:
418
- if (e === "style")
419
- if (typeof a == "string")
420
- t.style.cssText = a;
421
- else {
422
- if (typeof r == "string" && (t.style.cssText = r = ""), r)
423
- for (e in r)
424
- a && e in a || Qe(t.style, e, "");
425
- if (a)
426
- for (e in a)
427
- r && a[e] === r[e] || Qe(t.style, e, a[e]);
428
- }
429
- else if (e[0] === "o" && e[1] === "n")
430
- i = e !== (e = e.replace(/Capture$/, "")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + i] = a, a ? r || t.addEventListener(e, i ? ea : ta, i) : t.removeEventListener(e, i ? ea : ta, i);
431
- else if (e !== "dangerouslySetInnerHTML") {
432
- if (o)
433
- e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
434
- else if (e !== "width" && e !== "height" && e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e !== "rowSpan" && e !== "colSpan" && e in t)
435
- try {
436
- t[e] = a ?? "";
437
- break t;
438
- } catch {
439
- }
440
- typeof a == "function" || (a == null || a === !1 && e[4] !== "-" ? t.removeAttribute(e) : t.setAttribute(e, a));
441
- }
442
- }
443
- function ta(t) {
444
- return this.l[t.type + !1](w.event ? w.event(t) : t);
445
- }
446
- function ea(t) {
447
- return this.l[t.type + !0](w.event ? w.event(t) : t);
448
- }
449
- function Te(t, e, a, r, o, i, n, c, l, d) {
450
- var u, s, p, g, h, b, m, v, $, N, F, j, z, et, at, O = e.type;
451
- if (e.constructor !== void 0)
452
- return null;
453
- a.__h != null && (l = a.__h, c = e.__e = a.__e, e.__h = null, i = [c]), (u = w.__b) && u(e);
454
- try {
455
- t:
456
- if (typeof O == "function") {
457
- if (v = e.props, $ = (u = O.contextType) && r[u.__c], N = u ? $ ? $.props.value : u.__ : r, a.__c ? m = (s = e.__c = a.__c).__ = s.__E : ("prototype" in O && O.prototype.render ? e.__c = s = new O(v, N) : (e.__c = s = new L(v, N), s.constructor = O, s.render = Cs), $ && $.sub(s), s.props = v, s.state || (s.state = {}), s.context = N, s.__n = r, p = s.__d = !0, s.__h = [], s._sb = []), s.__s == null && (s.__s = s.state), O.getDerivedStateFromProps != null && (s.__s == s.state && (s.__s = U({}, s.__s)), U(s.__s, O.getDerivedStateFromProps(v, s.__s))), g = s.props, h = s.state, s.__v = e, p)
458
- O.getDerivedStateFromProps == null && s.componentWillMount != null && s.componentWillMount(), s.componentDidMount != null && s.__h.push(s.componentDidMount);
459
- else {
460
- if (O.getDerivedStateFromProps == null && v !== g && s.componentWillReceiveProps != null && s.componentWillReceiveProps(v, N), !s.__e && (s.shouldComponentUpdate != null && s.shouldComponentUpdate(v, s.__s, N) === !1 || e.__v === a.__v)) {
461
- for (e.__v !== a.__v && (s.props = v, s.state = s.__s, s.__d = !1), e.__e = a.__e, e.__k = a.__k, e.__k.forEach(function(zt) {
462
- zt && (zt.__ = e);
463
- }), F = 0; F < s._sb.length; F++)
464
- s.__h.push(s._sb[F]);
465
- s._sb = [], s.__h.length && n.push(s);
466
- break t;
467
- }
468
- s.componentWillUpdate != null && s.componentWillUpdate(v, s.__s, N), s.componentDidUpdate != null && s.__h.push(function() {
469
- s.componentDidUpdate(g, h, b);
470
- });
471
- }
472
- if (s.context = N, s.props = v, s.__P = t, s.__e = !1, j = w.__r, z = 0, "prototype" in O && O.prototype.render) {
473
- for (s.state = s.__s, s.__d = !1, j && j(e), u = s.render(s.props, s.state, s.context), et = 0; et < s._sb.length; et++)
474
- s.__h.push(s._sb[et]);
475
- s._sb = [];
476
- } else
477
- do
478
- s.__d = !1, j && j(e), u = s.render(s.props, s.state, s.context), s.state = s.__s;
479
- while (s.__d && ++z < 25);
480
- s.state = s.__s, s.getChildContext != null && (r = U(U({}, r), s.getChildContext())), p || s.getSnapshotBeforeUpdate == null || (b = s.getSnapshotBeforeUpdate(g, h)), Xa(t, Zt(at = u != null && u.type === M && u.key == null ? u.props.children : u) ? at : [at], e, a, r, o, i, n, c, l, d), s.base = e.__e, e.__h = null, s.__h.length && n.push(s), m && (s.__E = s.__ = null);
481
- } else
482
- i == null && e.__v === a.__v ? (e.__k = a.__k, e.__e = a.__e) : e.__e = Ss(a.__e, e, a, r, o, i, n, l, d);
483
- (u = w.diffed) && u(e);
484
- } catch (zt) {
485
- e.__v = null, (l || i != null) && (e.__e = c, e.__h = !!l, i[i.indexOf(c)] = null), w.__e(zt, e, a);
486
- }
487
- }
488
- function Qa(t, e, a) {
489
- for (var r = 0; r < a.length; r++)
490
- je(a[r], a[++r], a[++r]);
491
- w.__c && w.__c(e, t), t.some(function(o) {
492
- try {
493
- t = o.__h, o.__h = [], t.some(function(i) {
494
- i.call(o);
495
- });
496
- } catch (i) {
497
- w.__e(i, o.__v);
498
- }
499
- });
500
- }
501
- function Ss(t, e, a, r, o, i, n, c, l) {
502
- var d, u, s, p = a.props, g = e.props, h = e.type, b = 0;
503
- if (h === "svg" && (o = !0), i != null) {
504
- for (; b < i.length; b++)
505
- if ((d = i[b]) && "setAttribute" in d == !!h && (h ? d.localName === h : d.nodeType === 3)) {
506
- t = d, i[b] = null;
507
- break;
508
- }
509
- }
510
- if (t == null) {
511
- if (h === null)
512
- return document.createTextNode(g);
513
- t = o ? document.createElementNS("http://www.w3.org/2000/svg", h) : document.createElement(h, g.is && g), i = null, c = !1;
514
- }
515
- if (h === null)
516
- p === g || c && t.data === g || (t.data = g);
517
- else {
518
- if (i = i && Ot.call(t.childNodes), u = (p = a.props || lt).dangerouslySetInnerHTML, s = g.dangerouslySetInnerHTML, !c) {
519
- if (i != null)
520
- for (p = {}, b = 0; b < t.attributes.length; b++)
521
- p[t.attributes[b].name] = t.attributes[b].value;
522
- (s || u) && (s && (u && s.__html == u.__html || s.__html === t.innerHTML) || (t.innerHTML = s && s.__html || ""));
523
- }
524
- if ($s(t, g, p, o, c), s)
525
- e.__k = [];
526
- else if (Xa(t, Zt(b = e.props.children) ? b : [b], e, a, r, o && h !== "foreignObject", i, n, i ? i[0] : a.__k && Bt(a, 0), c, l), i != null)
527
- for (b = i.length; b--; )
528
- i[b] != null && Ga(i[b]);
529
- c || ("value" in g && (b = g.value) !== void 0 && (b !== t.value || h === "progress" && !b || h === "option" && b !== p.value) && Ut(t, "value", b, p.value, !1), "checked" in g && (b = g.checked) !== void 0 && b !== t.checked && Ut(t, "checked", b, p.checked, !1));
530
- }
531
- return t;
532
- }
533
- function je(t, e, a) {
534
- try {
535
- typeof t == "function" ? t(e) : t.current = e;
536
- } catch (r) {
537
- w.__e(r, a);
538
- }
539
- }
540
- function tr(t, e, a) {
541
- var r, o;
542
- if (w.unmount && w.unmount(t), (r = t.ref) && (r.current && r.current !== t.__e || je(r, null, e)), (r = t.__c) != null) {
543
- if (r.componentWillUnmount)
544
- try {
545
- r.componentWillUnmount();
546
- } catch (i) {
547
- w.__e(i, e);
548
- }
549
- r.base = r.__P = null, t.__c = void 0;
550
- }
551
- if (r = t.__k)
552
- for (o = 0; o < r.length; o++)
553
- r[o] && tr(r[o], e, a || typeof t.type != "function");
554
- a || t.__e == null || Ga(t.__e), t.__ = t.__e = t.__d = void 0;
555
- }
556
- function Cs(t, e, a) {
557
- return this.constructor(t, a);
558
- }
559
- function ut(t, e, a) {
560
- var r, o, i, n;
561
- w.__ && w.__(t, e), o = (r = typeof a == "function") ? null : a && a.__k || e.__k, i = [], n = [], Te(e, t = (!r && a || e).__k = A(M, null, [t]), o || lt, lt, e.ownerSVGElement !== void 0, !r && a ? [a] : o ? null : e.firstChild ? Ot.call(e.childNodes) : null, i, !r && a ? a : o ? o.__e : e.firstChild, r, n), Qa(i, t, n);
562
- }
563
- function er(t, e) {
564
- ut(t, e, er);
565
- }
566
- function Es(t, e, a) {
567
- var r, o, i, n, c = U({}, t.props);
568
- for (i in t.type && t.type.defaultProps && (n = t.type.defaultProps), e)
569
- i == "key" ? r = e[i] : i == "ref" ? o = e[i] : c[i] = e[i] === void 0 && n !== void 0 ? n[i] : e[i];
570
- return arguments.length > 2 && (c.children = arguments.length > 3 ? Ot.call(arguments, 2) : a), kt(t.type, c, r || t.key, o || t.ref, null);
571
- }
572
- function ar(t, e) {
573
- var a = { __c: e = "__cC" + qa++, __: t, Consumer: function(r, o) {
574
- return r.children(o);
575
- }, Provider: function(r) {
576
- var o, i;
577
- return this.getChildContext || (o = [], (i = {})[e] = this, this.getChildContext = function() {
578
- return i;
579
- }, this.shouldComponentUpdate = function(n) {
580
- this.props.value !== n.value && o.some(function(c) {
581
- c.__e = !0, he(c);
582
- });
583
- }, this.sub = function(n) {
584
- o.push(n);
585
- var c = n.componentWillUnmount;
586
- n.componentWillUnmount = function() {
587
- o.splice(o.indexOf(n), 1), c && c.call(n);
588
- };
589
- }), r.children;
590
- } };
591
- return a.Provider.__ = a.Consumer.contextType = a;
592
- }
593
- Ot = Wa.slice, w = { __e: function(t, e, a, r) {
594
- for (var o, i, n; e = e.__; )
595
- if ((o = e.__c) && !o.__)
596
- try {
597
- if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(t)), n = o.__d), o.componentDidCatch != null && (o.componentDidCatch(t, r || {}), n = o.__d), n)
598
- return o.__E = o;
599
- } catch (c) {
600
- t = c;
601
- }
602
- throw t;
603
- } }, Ua = 0, Va = function(t) {
604
- return t != null && t.constructor === void 0;
605
- }, L.prototype.setState = function(t, e) {
606
- var a;
607
- a = this.__s != null && this.__s !== this.state ? this.__s : this.__s = U({}, this.state), typeof t == "function" && (t = t(U({}, a), this.props)), t && U(a, t), t != null && this.__v && (e && this._sb.push(e), he(this));
608
- }, L.prototype.forceUpdate = function(t) {
609
- this.__v && (this.__e = !0, t && this.__h.push(t), he(this));
610
- }, L.prototype.render = M, ot = [], Ka = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ue = function(t, e) {
611
- return t.__v.__b - e.__v.__b;
612
- }, Rt.__r = 0, qa = 0;
613
- var ze = class extends Error {
614
- /**
615
- * Creates a Valibot error with useful information.
616
- *
617
- * @param issues The error issues.
618
- */
619
- constructor(e) {
620
- super(e[0].message);
621
- Re(this, "issues");
622
- this.name = "ValiError", this.issues = e;
623
- }
624
- };
625
- function rr(t, e) {
626
- return {
627
- ...t,
628
- _parse(a, r) {
629
- return t._parse(e(a), r);
630
- }
631
- };
632
- }
633
- function It(t) {
634
- return { issues: t };
635
- }
636
- function I(t) {
637
- return { output: t };
638
- }
639
- function Ps(t, e) {
640
- return {
641
- reason: t == null ? void 0 : t.reason,
642
- validation: e.validation,
643
- origin: (t == null ? void 0 : t.origin) || "value",
644
- message: e.message,
645
- input: e.input,
646
- path: e.path,
647
- abortEarly: t == null ? void 0 : t.abortEarly,
648
- abortPipeEarly: t == null ? void 0 : t.abortPipeEarly,
649
- skipPipe: t == null ? void 0 : t.skipPipe
650
- };
651
- }
652
- function Os(t, e) {
653
- return {
654
- reason: e,
655
- origin: t == null ? void 0 : t.origin,
656
- abortEarly: t == null ? void 0 : t.abortEarly,
657
- abortPipeEarly: t == null ? void 0 : t.abortPipeEarly,
658
- skipPipe: t == null ? void 0 : t.skipPipe
659
- };
660
- }
661
- function J(t, e, a, r) {
662
- if (!e || !e.length || a != null && a.skipPipe)
663
- return I(t);
664
- let o, i, n = t;
665
- for (const c of e) {
666
- const l = c._parse(n);
667
- if (l.issues) {
668
- o = o || Os(a, r);
669
- for (const d of l.issues) {
670
- const u = Ps(o, d);
671
- i ? i.push(u) : i = [u];
672
- }
673
- if (o.abortEarly || o.abortPipeEarly)
674
- break;
675
- } else
676
- n = l.output;
677
- }
678
- return i ? It(i) : I(n);
679
- }
680
- function X(t, e) {
681
- return Array.isArray(t) ? [void 0, t] : [t, e];
682
- }
683
- function ir(t) {
684
- return typeof t == "function" ? t() : t;
685
- }
686
- function Q(t, e, a, r) {
687
- return It([
688
- {
689
- validation: t,
690
- message: ir(e),
691
- input: a,
692
- requirement: r
693
- }
694
- ]);
695
- }
696
- function or(t, e, a) {
697
- if (!t || typeof t == "object" && !Array.isArray(t)) {
698
- const [i, n] = X(e, a);
699
- return [t, i, n];
700
- }
701
- const [r, o] = X(
702
- t,
703
- e
704
- );
705
- return [void 0, r, o];
706
- }
707
- function K(t, e, a, r, o, i) {
708
- return {
709
- issues: [
710
- {
711
- reason: e,
712
- validation: a,
713
- origin: (t == null ? void 0 : t.origin) || "value",
714
- message: ir(r),
715
- input: o,
716
- issues: i,
717
- abortEarly: t == null ? void 0 : t.abortEarly,
718
- abortPipeEarly: t == null ? void 0 : t.abortPipeEarly,
719
- skipPipe: t == null ? void 0 : t.skipPipe
720
- }
721
- ]
722
- };
723
- }
724
- function nr(t) {
725
- return typeof t.default == "function" ? t.default() : t.default;
726
- }
727
- function Is(t) {
728
- return {
729
- type: "any",
730
- async: !1,
731
- pipe: t,
732
- _parse(e, a) {
733
- return J(e, this.pipe, a, "any");
734
- }
735
- };
736
- }
737
- function Ts(t, e, a) {
738
- const [r = "Invalid type", o] = X(e, a);
739
- return {
740
- type: "array",
741
- async: !1,
742
- item: t,
743
- message: r,
744
- pipe: o,
745
- _parse(i, n) {
746
- if (!Array.isArray(i))
747
- return K(n, "type", "array", this.message, i);
748
- let c;
749
- const l = [];
750
- for (let d = 0; d < i.length; d++) {
751
- const u = i[d], s = this.item._parse(u, n);
752
- if (s.issues) {
753
- const p = {
754
- type: "array",
755
- input: i,
756
- key: d,
757
- value: u
758
- };
759
- for (const g of s.issues)
760
- g.path ? g.path.unshift(p) : g.path = [p], c == null || c.push(g);
761
- if (c || (c = s.issues), n != null && n.abortEarly)
762
- break;
763
- } else
764
- l.push(s.output);
765
- }
766
- return c ? It(c) : J(l, this.pipe, n, "array");
767
- }
768
- };
769
- }
770
- function sr(t, e) {
771
- const [a = "Invalid type", r] = X(t, e);
772
- return {
773
- type: "boolean",
774
- async: !1,
775
- message: a,
776
- pipe: r,
777
- _parse(o, i) {
778
- return typeof o != "boolean" ? K(i, "type", "boolean", this.message, o) : J(o, this.pipe, i, "boolean");
779
- }
780
- };
781
- }
782
- function aa(t, e = "Invalid type") {
783
- return {
784
- type: "literal",
785
- async: !1,
786
- literal: t,
787
- message: e,
788
- _parse(a, r) {
789
- return a !== this.literal ? K(r, "type", "literal", this.message, a) : I(a);
790
- }
791
- };
792
- }
793
- function js(t, e) {
794
- return {
795
- type: "nullable",
796
- async: !1,
797
- wrapped: t,
798
- default: e,
799
- _parse(a, r) {
800
- if (a === null) {
801
- const o = nr(this);
802
- if (o === void 0)
803
- return I(a);
804
- a = o;
805
- }
806
- return this.wrapped._parse(a, r);
807
- }
808
- };
809
- }
810
- function ra(t, e) {
811
- const [a = "Invalid type", r] = X(t, e);
812
- return {
813
- type: "number",
814
- async: !1,
815
- message: a,
816
- pipe: r,
817
- _parse(o, i) {
818
- return typeof o != "number" || isNaN(o) ? K(i, "type", "number", this.message, o) : J(o, this.pipe, i, "number");
819
- }
820
- };
821
- }
822
- function Y(t, e, a, r) {
823
- const [o, i = "Invalid type", n] = or(e, a, r);
824
- let c;
825
- return {
826
- type: "object",
827
- async: !1,
828
- entries: t,
829
- rest: o,
830
- message: i,
831
- pipe: n,
832
- _parse(l, d) {
833
- if (!l || typeof l != "object")
834
- return K(d, "type", "object", this.message, l);
835
- c = c || Object.entries(this.entries);
836
- let u;
837
- const s = {};
838
- for (const [p, g] of c) {
839
- const h = l[p], b = g._parse(h, d);
840
- if (b.issues) {
841
- const m = {
842
- type: "object",
843
- input: l,
844
- key: p,
845
- value: h
846
- };
847
- for (const v of b.issues)
848
- v.path ? v.path.unshift(m) : v.path = [m], u == null || u.push(v);
849
- if (u || (u = b.issues), d != null && d.abortEarly)
850
- break;
851
- } else
852
- (b.output !== void 0 || p in l) && (s[p] = b.output);
853
- }
854
- if (this.rest && !(d != null && d.abortEarly && u)) {
855
- for (const p in l)
856
- if (!(p in this.entries)) {
857
- const g = l[p], h = this.rest._parse(g, d);
858
- if (h.issues) {
859
- const b = {
860
- type: "object",
861
- input: l,
862
- key: p,
863
- value: g
864
- };
865
- for (const m of h.issues)
866
- m.path ? m.path.unshift(b) : m.path = [b], u == null || u.push(m);
867
- if (u || (u = h.issues), d != null && d.abortEarly)
868
- break;
869
- } else
870
- s[p] = h.output;
871
- }
872
- }
873
- return u ? It(u) : J(
874
- s,
875
- this.pipe,
876
- d,
877
- "object"
878
- );
879
- }
880
- };
881
- }
882
- function nt(t, e) {
883
- return {
884
- type: "optional",
885
- async: !1,
886
- wrapped: t,
887
- default: e,
888
- _parse(a, r) {
889
- if (a === void 0) {
890
- const o = nr(this);
891
- if (o === void 0)
892
- return I(a);
893
- a = o;
894
- }
895
- return this.wrapped._parse(a, r);
896
- }
897
- };
898
- }
899
- function Cl(t, e = "Invalid type") {
900
- return {
901
- type: "picklist",
902
- async: !1,
903
- options: t,
904
- message: e,
905
- _parse(a, r) {
906
- return this.options.includes(a) ? I(a) : K(r, "type", "picklist", this.message, a);
907
- }
908
- };
909
- }
910
- function R(t, e) {
911
- const [a = "Invalid type", r] = X(t, e);
912
- return {
913
- type: "string",
914
- async: !1,
915
- message: a,
916
- pipe: r,
917
- _parse(o, i) {
918
- return typeof o != "string" ? K(i, "type", "string", this.message, o) : J(o, this.pipe, i, "string");
919
- }
920
- };
921
- }
922
- function zs(t, e, a, r) {
923
- if (typeof e == "object" && !Array.isArray(e)) {
924
- const [n, c] = X(a, r);
925
- return [t, e, n, c];
926
- }
927
- const [o, i] = X(
928
- e,
929
- a
930
- );
931
- return [R(), t, o, i];
932
- }
933
- var Ds = ["__proto__", "prototype", "constructor"];
934
- function As(t, e, a, r) {
935
- const [o, i, n = "Invalid type", c] = zs(t, e, a, r);
936
- return {
937
- type: "record",
938
- async: !1,
939
- key: o,
940
- value: i,
941
- message: n,
942
- pipe: c,
943
- _parse(l, d) {
944
- if (!l || typeof l != "object")
945
- return K(d, "type", "record", this.message, l);
946
- let u;
947
- const s = {};
948
- for (const [p, g] of Object.entries(l))
949
- if (!Ds.includes(p)) {
950
- let h;
951
- const b = this.key._parse(p, {
952
- origin: "key",
953
- abortEarly: d == null ? void 0 : d.abortEarly,
954
- abortPipeEarly: d == null ? void 0 : d.abortPipeEarly,
955
- skipPipe: d == null ? void 0 : d.skipPipe
956
- });
957
- if (b.issues) {
958
- h = {
959
- type: "record",
960
- input: l,
961
- key: p,
962
- value: g
963
- };
964
- for (const v of b.issues)
965
- v.path = [h], u == null || u.push(v);
966
- if (u || (u = b.issues), d != null && d.abortEarly)
967
- break;
968
- }
969
- const m = this.value._parse(g, d);
970
- if (m.issues) {
971
- h = h || {
972
- type: "record",
973
- input: l,
974
- key: p,
975
- value: g
976
- };
977
- for (const v of m.issues)
978
- v.path ? v.path.unshift(h) : v.path = [h], u == null || u.push(v);
979
- if (u || (u = m.issues), d != null && d.abortEarly)
980
- break;
981
- }
982
- !b.issues && !m.issues && (s[b.output] = m.output);
983
- }
984
- return u ? It(u) : J(
985
- s,
986
- this.pipe,
987
- d,
988
- "record"
989
- );
990
- }
991
- };
992
- }
993
- function Ns(t, e = "Invalid type") {
994
- return {
995
- type: "union",
996
- async: !1,
997
- options: t,
998
- message: e,
999
- _parse(a, r) {
1000
- let o, i;
1001
- for (const n of this.options) {
1002
- const c = n._parse(a, r);
1003
- if (c.issues)
1004
- if (o)
1005
- for (const l of c.issues)
1006
- o.push(l);
1007
- else
1008
- o = c.issues;
1009
- else {
1010
- i = [c.output];
1011
- break;
1012
- }
1013
- }
1014
- return i ? I(i[0]) : K(r, "type", "union", this.message, a, o);
1015
- }
1016
- };
1017
- }
1018
- function ia(t, e, a) {
1019
- const r = t._parse(e, a);
1020
- if (r.issues)
1021
- throw new ze(r.issues);
1022
- return r.output;
1023
- }
1024
- async function El(t, e, a) {
1025
- const r = await t._parse(e, a);
1026
- if (r.issues)
1027
- throw new ze(r.issues);
1028
- return r.output;
1029
- }
1030
- function Pl(t, e, a, r) {
1031
- const [o, i, n] = or(e, a, r);
1032
- return Y(
1033
- Object.entries(t.entries).reduce(
1034
- (c, [l, d]) => ({
1035
- ...c,
1036
- [l]: nt(d)
1037
- }),
1038
- {}
1039
- ),
1040
- o,
1041
- i,
1042
- n
1043
- );
1044
- }
1045
- function Ol(t, e, a) {
1046
- const r = t._parse(e, a);
1047
- return r.issues ? {
1048
- success: !1,
1049
- error: new ze(r.issues),
1050
- issues: r.issues
1051
- } : {
1052
- success: !0,
1053
- data: r.output,
1054
- output: r.output
1055
- };
1056
- }
1057
- function Il(t, e, a) {
1058
- return {
1059
- ...t,
1060
- _parse(r, o) {
1061
- const i = t._parse(r, o);
1062
- if (i.issues)
1063
- return i;
1064
- const n = e(i.output);
1065
- return a && !Array.isArray(a) ? a._parse(n, o) : J(n, a, o, typeof n);
1066
- }
1067
- };
1068
- }
1069
- var Ms = /^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;
1070
- function Tl(t, e = "Invalid input") {
1071
- return {
1072
- type: "custom",
1073
- async: !1,
1074
- message: e,
1075
- requirement: t,
1076
- _parse(a) {
1077
- return this.requirement(a) ? I(a) : Q(this.type, this.message, a, this.requirement);
1078
- }
1079
- };
1080
- }
1081
- function jl(t = "Invalid email") {
1082
- return {
1083
- type: "email",
1084
- async: !1,
1085
- message: t,
1086
- requirement: Ms,
1087
- _parse(e) {
1088
- return this.requirement.test(e) ? I(e) : Q(this.type, this.message, e, this.requirement);
1089
- }
1090
- };
1091
- }
1092
- function zl(t, e = "Invalid length") {
1093
- return {
1094
- type: "max_length",
1095
- async: !1,
1096
- message: e,
1097
- requirement: t,
1098
- _parse(a) {
1099
- return a.length > this.requirement ? Q(this.type, this.message, a, this.requirement) : I(a);
1100
- }
1101
- };
1102
- }
1103
- function Dl(t, e = "Invalid value") {
1104
- return {
1105
- type: "max_value",
1106
- async: !1,
1107
- message: e,
1108
- requirement: t,
1109
- _parse(a) {
1110
- return a > this.requirement ? Q(this.type, this.message, a, this.requirement) : I(a);
1111
- }
1112
- };
1113
- }
1114
- function Al(t, e = "Invalid length") {
1115
- return {
1116
- type: "min_length",
1117
- async: !1,
1118
- message: e,
1119
- requirement: t,
1120
- _parse(a) {
1121
- return a.length < this.requirement ? Q(this.type, this.message, a, this.requirement) : I(a);
1122
- }
1123
- };
1124
- }
1125
- function Nl(t, e = "Invalid value") {
1126
- return {
1127
- type: "min_value",
1128
- async: !1,
1129
- message: e,
1130
- requirement: t,
1131
- _parse(a) {
1132
- return a < this.requirement ? Q(this.type, this.message, a, this.requirement) : I(a);
1133
- }
1134
- };
1135
- }
1136
- function Ml(t, e = "Invalid regex") {
1137
- return {
1138
- type: "regex",
1139
- async: !1,
1140
- message: e,
1141
- requirement: t,
1142
- _parse(a) {
1143
- return this.requirement.test(a) ? I(a) : Q(this.type, this.message, a, this.requirement);
1144
- }
1145
- };
1146
- }
1147
- function Fl(t = "Invalid URL") {
1148
- return {
1149
- type: "url",
1150
- async: !1,
1151
- message: t,
1152
- requirement(e) {
1153
- try {
1154
- return new URL(e), !0;
1155
- } catch {
1156
- return !1;
1157
- }
1158
- },
1159
- _parse(e) {
1160
- return this.requirement(e) ? I(e) : Q(this.type, this.message, e, this.requirement);
1161
- }
1162
- };
1163
- }
1164
- function cr(t) {
1165
- var e, a, r = "";
1166
- if (typeof t == "string" || typeof t == "number")
1167
- r += t;
1168
- else if (typeof t == "object")
1169
- if (Array.isArray(t))
1170
- for (e = 0; e < t.length; e++)
1171
- t[e] && (a = cr(t[e])) && (r && (r += " "), r += a);
1172
- else
1173
- for (e in t)
1174
- t[e] && (r && (r += " "), r += e);
1175
- return r;
1176
- }
1177
- function lr() {
1178
- for (var t, e, a = 0, r = ""; a < arguments.length; )
1179
- (t = arguments[a++]) && (e = cr(t)) && (r && (r += " "), r += e);
1180
- return r;
1181
- }
1182
- const oa = (t) => typeof t == "boolean" ? "".concat(t) : t === 0 ? "0" : t, na = lr, Fs = (t, e) => (a) => {
1183
- var r;
1184
- if ((e == null ? void 0 : e.variants) == null)
1185
- return na(t, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
1186
- const { variants: o, defaultVariants: i } = e, n = Object.keys(o).map((d) => {
1187
- const u = a == null ? void 0 : a[d], s = i == null ? void 0 : i[d];
1188
- if (u === null)
1189
- return null;
1190
- const p = oa(u) || oa(s);
1191
- return o[d][p];
1192
- }), c = a && Object.entries(a).reduce((d, u) => {
1193
- let [s, p] = u;
1194
- return p === void 0 || (d[s] = p), d;
1195
- }, {}), l = e == null || (r = e.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
1196
- let { class: s, className: p, ...g } = u;
1197
- return Object.entries(g).every((h) => {
1198
- let [b, m] = h;
1199
- return Array.isArray(m) ? m.includes({
1200
- ...i,
1201
- ...c
1202
- }[b]) : {
1203
- ...i,
1204
- ...c
1205
- }[b] === m;
1206
- }) ? [
1207
- ...d,
1208
- s,
1209
- p
1210
- ] : d;
1211
- }, []);
1212
- return na(t, n, l, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
1213
- };
1214
- var Z, y, ee, sa, ht = 0, dr = [], Mt = [], ca = w.__b, la = w.__r, da = w.diffed, ua = w.__c, ha = w.unmount;
1215
- function gt(t, e) {
1216
- w.__h && w.__h(y, t, ht || e), ht = 0;
1217
- var a = y.__H || (y.__H = { __: [], __h: [] });
1218
- return t >= a.__.length && a.__.push({ __V: Mt }), a.__[t];
1219
- }
1220
- function ur(t) {
1221
- return ht = 1, hr(wr, t);
1222
- }
1223
- function hr(t, e, a) {
1224
- var r = gt(Z++, 2);
1225
- if (r.t = t, !r.__c && (r.__ = [a ? a(e) : wr(void 0, e), function(c) {
1226
- var l = r.__N ? r.__N[0] : r.__[0], d = r.t(l, c);
1227
- l !== d && (r.__N = [d, r.__[1]], r.__c.setState({}));
1228
- }], r.__c = y, !y.u)) {
1229
- var o = function(c, l, d) {
1230
- if (!r.__c.__H)
1231
- return !0;
1232
- var u = r.__c.__H.__.filter(function(p) {
1233
- return p.__c;
1234
- });
1235
- if (u.every(function(p) {
1236
- return !p.__N;
1237
- }))
1238
- return !i || i.call(this, c, l, d);
1239
- var s = !1;
1240
- return u.forEach(function(p) {
1241
- if (p.__N) {
1242
- var g = p.__[0];
1243
- p.__ = p.__N, p.__N = void 0, g !== p.__[0] && (s = !0);
1244
- }
1245
- }), !(!s && r.__c.props === c) && (!i || i.call(this, c, l, d));
1246
- };
1247
- y.u = !0;
1248
- var i = y.shouldComponentUpdate, n = y.componentWillUpdate;
1249
- y.componentWillUpdate = function(c, l, d) {
1250
- if (this.__e) {
1251
- var u = i;
1252
- i = void 0, o(c, l, d), i = u;
1253
- }
1254
- n && n.call(this, c, l, d);
1255
- }, y.shouldComponentUpdate = o;
1256
- }
1257
- return r.__N || r.__;
1258
- }
1259
- function pr(t, e) {
1260
- var a = gt(Z++, 3);
1261
- !w.__s && Ae(a.__H, e) && (a.__ = t, a.i = e, y.__H.__h.push(a));
1262
- }
1263
- function Tt(t, e) {
1264
- var a = gt(Z++, 4);
1265
- !w.__s && Ae(a.__H, e) && (a.__ = t, a.i = e, y.__h.push(a));
1266
- }
1267
- function De(t) {
1268
- return ht = 5, bt(function() {
1269
- return { current: t };
1270
- }, []);
1271
- }
1272
- function Ls(t, e, a) {
1273
- ht = 6, Tt(function() {
1274
- return typeof t == "function" ? (t(e()), function() {
1275
- return t(null);
1276
- }) : t ? (t.current = e(), function() {
1277
- return t.current = null;
1278
- }) : void 0;
1279
- }, a == null ? a : a.concat(t));
1280
- }
1281
- function bt(t, e) {
1282
- var a = gt(Z++, 7);
1283
- return Ae(a.__H, e) ? (a.__V = t(), a.i = e, a.__h = t, a.__V) : a.__;
1284
- }
1285
- function Hs(t, e) {
1286
- return ht = 8, bt(function() {
1287
- return t;
1288
- }, e);
1289
- }
1290
- function fr(t) {
1291
- var e = y.context[t.__c], a = gt(Z++, 9);
1292
- return a.c = t, e ? (a.__ == null && (a.__ = !0, e.sub(y)), e.props.value) : t.__;
1293
- }
1294
- function Bs(t, e) {
1295
- w.useDebugValue && w.useDebugValue(e ? e(t) : t);
1296
- }
1297
- function Rs() {
1298
- var t = gt(Z++, 11);
1299
- if (!t.__) {
1300
- for (var e = y.__v; e !== null && !e.__m && e.__ !== null; )
1301
- e = e.__;
1302
- var a = e.__m || (e.__m = [0, 0]);
1303
- t.__ = "P" + a[0] + "-" + a[1]++;
1304
- }
1305
- return t.__;
1306
- }
1307
- function Us() {
1308
- for (var t; t = dr.shift(); )
1309
- if (t.__P && t.__H)
1310
- try {
1311
- t.__H.__h.forEach(Ft), t.__H.__h.forEach(pe), t.__H.__h = [];
1312
- } catch (e) {
1313
- t.__H.__h = [], w.__e(e, t.__v);
1314
- }
1315
- }
1316
- w.__b = function(t) {
1317
- y = null, ca && ca(t);
1318
- }, w.__r = function(t) {
1319
- la && la(t), Z = 0;
1320
- var e = (y = t.__c).__H;
1321
- e && (ee === y ? (e.__h = [], y.__h = [], e.__.forEach(function(a) {
1322
- a.__N && (a.__ = a.__N), a.__V = Mt, a.__N = a.i = void 0;
1323
- })) : (e.__h.forEach(Ft), e.__h.forEach(pe), e.__h = [], Z = 0)), ee = y;
1324
- }, w.diffed = function(t) {
1325
- da && da(t);
1326
- var e = t.__c;
1327
- e && e.__H && (e.__H.__h.length && (dr.push(e) !== 1 && sa === w.requestAnimationFrame || ((sa = w.requestAnimationFrame) || Vs)(Us)), e.__H.__.forEach(function(a) {
1328
- a.i && (a.__H = a.i), a.__V !== Mt && (a.__ = a.__V), a.i = void 0, a.__V = Mt;
1329
- })), ee = y = null;
1330
- }, w.__c = function(t, e) {
1331
- e.some(function(a) {
1332
- try {
1333
- a.__h.forEach(Ft), a.__h = a.__h.filter(function(r) {
1334
- return !r.__ || pe(r);
1335
- });
1336
- } catch (r) {
1337
- e.some(function(o) {
1338
- o.__h && (o.__h = []);
1339
- }), e = [], w.__e(r, a.__v);
1340
- }
1341
- }), ua && ua(t, e);
1342
- }, w.unmount = function(t) {
1343
- ha && ha(t);
1344
- var e, a = t.__c;
1345
- a && a.__H && (a.__H.__.forEach(function(r) {
1346
- try {
1347
- Ft(r);
1348
- } catch (o) {
1349
- e = o;
1350
- }
1351
- }), a.__H = void 0, e && w.__e(e, a.__v));
1352
- };
1353
- var pa = typeof requestAnimationFrame == "function";
1354
- function Vs(t) {
1355
- var e, a = function() {
1356
- clearTimeout(r), pa && cancelAnimationFrame(e), setTimeout(t);
1357
- }, r = setTimeout(a, 100);
1358
- pa && (e = requestAnimationFrame(a));
1359
- }
1360
- function Ft(t) {
1361
- var e = y, a = t.__c;
1362
- typeof a == "function" && (t.__c = void 0, a()), y = e;
1363
- }
1364
- function pe(t) {
1365
- var e = y;
1366
- t.__c = t.__(), y = e;
1367
- }
1368
- function Ae(t, e) {
1369
- return !t || t.length !== e.length || e.some(function(a, r) {
1370
- return a !== t[r];
1371
- });
1372
- }
1373
- function wr(t, e) {
1374
- return typeof e == "function" ? e(t) : e;
1375
- }
1376
- function gr(t, e) {
1377
- for (var a in e)
1378
- t[a] = e[a];
1379
- return t;
1380
- }
1381
- function fe(t, e) {
1382
- for (var a in t)
1383
- if (a !== "__source" && !(a in e))
1384
- return !0;
1385
- for (var r in e)
1386
- if (r !== "__source" && t[r] !== e[r])
1387
- return !0;
1388
- return !1;
1389
- }
1390
- function ae(t, e) {
1391
- return t === e && (t !== 0 || 1 / t == 1 / e) || t != t && e != e;
1392
- }
1393
- function we(t) {
1394
- this.props = t;
1395
- }
1396
- function Ks(t, e) {
1397
- function a(o) {
1398
- var i = this.props.ref, n = i == o.ref;
1399
- return !n && i && (i.call ? i(null) : i.current = null), e ? !e(this.props, o) || !n : fe(this.props, o);
1400
- }
1401
- function r(o) {
1402
- return this.shouldComponentUpdate = a, A(t, o);
1403
- }
1404
- return r.displayName = "Memo(" + (t.displayName || t.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
1405
- }
1406
- (we.prototype = new L()).isPureReactComponent = !0, we.prototype.shouldComponentUpdate = function(t, e) {
1407
- return fe(this.props, t) || fe(this.state, e);
1408
- };
1409
- var fa = w.__b;
1410
- w.__b = function(t) {
1411
- t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), fa && fa(t);
1412
- };
1413
- var qs = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
1414
- function Ws(t) {
1415
- function e(a) {
1416
- var r = gr({}, a);
1417
- return delete r.ref, t(r, a.ref || null);
1418
- }
1419
- return e.$$typeof = qs, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
1420
- }
1421
- var wa = function(t, e) {
1422
- return t == null ? null : V(V(t).map(e));
1423
- }, Gs = { map: wa, forEach: wa, count: function(t) {
1424
- return t ? V(t).length : 0;
1425
- }, only: function(t) {
1426
- var e = V(t);
1427
- if (e.length !== 1)
1428
- throw "Children.only";
1429
- return e[0];
1430
- }, toArray: V }, Ys = w.__e;
1431
- w.__e = function(t, e, a, r) {
1432
- if (t.then) {
1433
- for (var o, i = e; i = i.__; )
1434
- if ((o = i.__c) && o.__c)
1435
- return e.__e == null && (e.__e = a.__e, e.__k = a.__k), o.__c(t, e);
1436
- }
1437
- Ys(t, e, a, r);
1438
- };
1439
- var ga = w.unmount;
1440
- function br(t, e, a) {
1441
- return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(r) {
1442
- typeof r.__c == "function" && r.__c();
1443
- }), t.__c.__H = null), (t = gr({}, t)).__c != null && (t.__c.__P === a && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(r) {
1444
- return br(r, e, a);
1445
- })), t;
1446
- }
1447
- function vr(t, e, a) {
1448
- return t && (t.__v = null, t.__k = t.__k && t.__k.map(function(r) {
1449
- return vr(r, e, a);
1450
- }), t.__c && t.__c.__P === e && (t.__e && a.insertBefore(t.__e, t.__d), t.__c.__e = !0, t.__c.__P = a)), t;
1451
- }
1452
- function $t() {
1453
- this.__u = 0, this.t = null, this.__b = null;
1454
- }
1455
- function _r(t) {
1456
- var e = t.__.__c;
1457
- return e && e.__a && e.__a(t);
1458
- }
1459
- function mr(t) {
1460
- var e, a, r;
1461
- function o(i) {
1462
- if (e || (e = t()).then(function(n) {
1463
- a = n.default || n;
1464
- }, function(n) {
1465
- r = n;
1466
- }), r)
1467
- throw r;
1468
- if (!a)
1469
- throw e;
1470
- return A(a, i);
1471
- }
1472
- return o.displayName = "Lazy", o.__f = !0, o;
1473
- }
1474
- function yt() {
1475
- this.u = null, this.o = null;
1476
- }
1477
- w.unmount = function(t) {
1478
- var e = t.__c;
1479
- e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), ga && ga(t);
1480
- }, ($t.prototype = new L()).__c = function(t, e) {
1481
- var a = e.__c, r = this;
1482
- r.t == null && (r.t = []), r.t.push(a);
1483
- var o = _r(r.__v), i = !1, n = function() {
1484
- i || (i = !0, a.__R = null, o ? o(c) : c());
1485
- };
1486
- a.__R = n;
1487
- var c = function() {
1488
- if (!--r.__u) {
1489
- if (r.state.__a) {
1490
- var d = r.state.__a;
1491
- r.__v.__k[0] = vr(d, d.__c.__P, d.__c.__O);
1492
- }
1493
- var u;
1494
- for (r.setState({ __a: r.__b = null }); u = r.t.pop(); )
1495
- u.forceUpdate();
1496
- }
1497
- }, l = e.__h === !0;
1498
- r.__u++ || l || r.setState({ __a: r.__b = r.__v.__k[0] }), t.then(n, n);
1499
- }, $t.prototype.componentWillUnmount = function() {
1500
- this.t = [];
1501
- }, $t.prototype.render = function(t, e) {
1502
- if (this.__b) {
1503
- if (this.__v.__k) {
1504
- var a = document.createElement("div"), r = this.__v.__k[0].__c;
1505
- this.__v.__k[0] = br(this.__b, a, r.__O = r.__P);
1506
- }
1507
- this.__b = null;
1508
- }
1509
- var o = e.__a && A(M, null, t.fallback);
1510
- return o && (o.__h = null), [A(M, null, e.__a ? null : t.children), o];
1511
- };
1512
- var ba = function(t, e, a) {
1513
- if (++a[1] === a[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size))
1514
- for (a = t.u; a; ) {
1515
- for (; a.length > 3; )
1516
- a.pop()();
1517
- if (a[1] < a[0])
1518
- break;
1519
- t.u = a = a[2];
1520
- }
1521
- };
1522
- function Xs(t) {
1523
- return this.getChildContext = function() {
1524
- return t.context;
1525
- }, t.children;
1526
- }
1527
- function Zs(t) {
1528
- var e = this, a = t.i;
1529
- e.componentWillUnmount = function() {
1530
- ut(null, e.l), e.l = null, e.i = null;
1531
- }, e.i && e.i !== a && e.componentWillUnmount(), t.__v ? (e.l || (e.i = a, e.l = { nodeType: 1, parentNode: a, childNodes: [], appendChild: function(r) {
1532
- this.childNodes.push(r), e.i.appendChild(r);
1533
- }, insertBefore: function(r, o) {
1534
- this.childNodes.push(r), e.i.appendChild(r);
1535
- }, removeChild: function(r) {
1536
- this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), e.i.removeChild(r);
1537
- } }), ut(A(Xs, { context: e.context }, t.__v), e.l)) : e.l && e.componentWillUnmount();
1538
- }
1539
- function Js(t, e) {
1540
- var a = A(Zs, { __v: t, i: e });
1541
- return a.containerInfo = e, a;
1542
- }
1543
- (yt.prototype = new L()).__a = function(t) {
1544
- var e = this, a = _r(e.__v), r = e.o.get(t);
1545
- return r[0]++, function(o) {
1546
- var i = function() {
1547
- e.props.revealOrder ? (r.push(o), ba(e, t, r)) : o();
1548
- };
1549
- a ? a(i) : i();
1550
- };
1551
- }, yt.prototype.render = function(t) {
1552
- this.u = null, this.o = /* @__PURE__ */ new Map();
1553
- var e = V(t.children);
1554
- t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
1555
- for (var a = e.length; a--; )
1556
- this.o.set(e[a], this.u = [1, 0, this.u]);
1557
- return t.children;
1558
- }, yt.prototype.componentDidUpdate = yt.prototype.componentDidMount = function() {
1559
- var t = this;
1560
- this.o.forEach(function(e, a) {
1561
- ba(t, a, e);
1562
- });
1563
- };
1564
- var yr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Qs = /^(?: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]/, tc = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ec = /[A-Z0-9]/g, ac = typeof document < "u", rc = function(t) {
1565
- return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
1566
- };
1567
- function ic(t, e, a) {
1568
- return e.__k == null && (e.textContent = ""), ut(t, e), typeof a == "function" && a(), t ? t.__c : null;
1569
- }
1570
- function oc(t, e, a) {
1571
- return er(t, e), typeof a == "function" && a(), t ? t.__c : null;
1572
- }
1573
- L.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
1574
- Object.defineProperty(L.prototype, t, { configurable: !0, get: function() {
1575
- return this["UNSAFE_" + t];
1576
- }, set: function(e) {
1577
- Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
1578
- } });
1579
- });
1580
- var va = w.event;
1581
- function nc() {
1582
- }
1583
- function sc() {
1584
- return this.cancelBubble;
1585
- }
1586
- function cc() {
1587
- return this.defaultPrevented;
1588
- }
1589
- w.event = function(t) {
1590
- return va && (t = va(t)), t.persist = nc, t.isPropagationStopped = sc, t.isDefaultPrevented = cc, t.nativeEvent = t;
1591
- };
1592
- var Ne, lc = { enumerable: !1, configurable: !0, get: function() {
1593
- return this.class;
1594
- } }, _a = w.vnode;
1595
- w.vnode = function(t) {
1596
- typeof t.type == "string" && function(e) {
1597
- var a = e.props, r = e.type, o = {};
1598
- for (var i in a) {
1599
- var n = a[i];
1600
- if (!(i === "value" && "defaultValue" in a && n == null || ac && i === "children" && r === "noscript" || i === "class" || i === "className")) {
1601
- var c = i.toLowerCase();
1602
- i === "defaultValue" && "value" in a && a.value == null ? i = "value" : i === "download" && n === !0 ? n = "" : c === "ondoubleclick" ? i = "ondblclick" : c !== "onchange" || r !== "input" && r !== "textarea" || rc(a.type) ? c === "onfocus" ? i = "onfocusin" : c === "onblur" ? i = "onfocusout" : tc.test(i) ? i = c : r.indexOf("-") === -1 && Qs.test(i) ? i = i.replace(ec, "-$&").toLowerCase() : n === null && (n = void 0) : c = i = "oninput", c === "oninput" && o[i = c] && (i = "oninputCapture"), o[i] = n;
1603
- }
1604
- }
1605
- r == "select" && o.multiple && Array.isArray(o.value) && (o.value = V(a.children).forEach(function(l) {
1606
- l.props.selected = o.value.indexOf(l.props.value) != -1;
1607
- })), r == "select" && o.defaultValue != null && (o.value = V(a.children).forEach(function(l) {
1608
- l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.props.value;
1609
- })), a.class && !a.className ? (o.class = a.class, Object.defineProperty(o, "className", lc)) : (a.className && !a.class || a.class && a.className) && (o.class = o.className = a.className), e.props = o;
1610
- }(t), t.$$typeof = yr, _a && _a(t);
1611
- };
1612
- var ma = w.__r;
1613
- w.__r = function(t) {
1614
- ma && ma(t), Ne = t.__c;
1615
- };
1616
- var ya = w.diffed;
1617
- w.diffed = function(t) {
1618
- ya && ya(t);
1619
- var e = t.props, a = t.__e;
1620
- a != null && t.type === "textarea" && "value" in e && e.value !== a.value && (a.value = e.value == null ? "" : e.value), Ne = null;
1621
- };
1622
- var dc = { ReactCurrentDispatcher: { current: { readContext: function(t) {
1623
- return Ne.__n[t.__c].props.value;
1624
- } } } };
1625
- function uc(t) {
1626
- return A.bind(null, t);
1627
- }
1628
- function xr(t) {
1629
- return !!t && t.$$typeof === yr;
1630
- }
1631
- function hc(t) {
1632
- return xr(t) ? Es.apply(null, arguments) : t;
1633
- }
1634
- function pc(t) {
1635
- return !!t.__k && (ut(null, t), !0);
1636
- }
1637
- function fc(t) {
1638
- return t && (t.base || t.nodeType === 1 && t) || null;
1639
- }
1640
- var wc = function(t, e) {
1641
- return t(e);
1642
- }, gc = function(t, e) {
1643
- return t(e);
1644
- }, bc = M;
1645
- function kr(t) {
1646
- t();
1647
- }
1648
- function vc(t) {
1649
- return t;
1650
- }
1651
- function _c() {
1652
- return [!1, kr];
1653
- }
1654
- var mc = Tt;
1655
- function yc(t, e) {
1656
- var a = e(), r = ur({ h: { __: a, v: e } }), o = r[0].h, i = r[1];
1657
- return Tt(function() {
1658
- o.__ = a, o.v = e, ae(o.__, e()) || i({ h: o });
1659
- }, [t, a, e]), pr(function() {
1660
- return ae(o.__, o.v()) || i({ h: o }), t(function() {
1661
- ae(o.__, o.v()) || i({ h: o });
1662
- });
1663
- }, [t]), a;
1664
- }
1665
- var Ll = { useState: ur, useId: Rs, useReducer: hr, useEffect: pr, useLayoutEffect: Tt, useInsertionEffect: mc, useTransition: _c, useDeferredValue: vc, useSyncExternalStore: yc, startTransition: kr, useRef: De, useImperativeHandle: Ls, useMemo: bt, useCallback: Hs, useContext: fr, useDebugValue: Bs, version: "17.0.2", Children: Gs, render: ic, hydrate: oc, unmountComponentAtNode: pc, createPortal: Js, createElement: A, createContext: ar, createFactory: uc, cloneElement: hc, createRef: xs, Fragment: M, isValidElement: xr, findDOMNode: fc, Component: L, PureComponent: we, memo: Ks, forwardRef: Ws, flushSync: gc, unstable_batchedUpdates: wc, StrictMode: bc, Suspense: $t, SuspenseList: yt, lazy: mr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: dc };
1666
- const T = Symbol.for("@ts-pattern/matcher"), $r = Symbol.for("@ts-pattern/isVariadic"), Vt = "@ts-pattern/anonymous-select-key", ge = (t) => !!(t && typeof t == "object"), Lt = (t) => t && !!t[T], C = (t, e, a) => {
1667
- if (Lt(t)) {
1668
- const r = t[T](), { matched: o, selections: i } = r.match(e);
1669
- return o && i && Object.keys(i).forEach((n) => a(n, i[n])), o;
1670
- }
1671
- if (ge(t)) {
1672
- if (!ge(e))
1673
- return !1;
1674
- if (Array.isArray(t)) {
1675
- if (!Array.isArray(e))
1676
- return !1;
1677
- let r = [], o = [], i = [];
1678
- for (const n of t.keys()) {
1679
- const c = t[n];
1680
- Lt(c) && c[$r] ? i.push(c) : i.length ? o.push(c) : r.push(c);
1681
- }
1682
- if (i.length) {
1683
- if (i.length > 1)
1684
- throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
1685
- if (e.length < r.length + o.length)
1686
- return !1;
1687
- const n = e.slice(0, r.length), c = o.length === 0 ? [] : e.slice(-o.length), l = e.slice(r.length, o.length === 0 ? 1 / 0 : -o.length);
1688
- return r.every((d, u) => C(d, n[u], a)) && o.every((d, u) => C(d, c[u], a)) && (i.length === 0 || C(i[0], l, a));
1689
- }
1690
- return t.length === e.length && t.every((n, c) => C(n, e[c], a));
1691
- }
1692
- return Object.keys(t).every((r) => {
1693
- const o = t[r];
1694
- return (r in e || Lt(i = o) && i[T]().matcherType === "optional") && C(o, e[r], a);
1695
- var i;
1696
- });
1697
- }
1698
- return Object.is(e, t);
1699
- }, D = (t) => {
1700
- var e, a, r;
1701
- return ge(t) ? Lt(t) ? (e = (a = (r = t[T]()).getSelectionKeys) == null ? void 0 : a.call(r)) != null ? e : [] : Array.isArray(t) ? Ct(t, D) : Ct(Object.values(t), D) : [];
1702
- }, Ct = (t, e) => t.reduce((a, r) => a.concat(e(r)), []);
1703
- function xc(...t) {
1704
- if (t.length === 1) {
1705
- const [e] = t;
1706
- return (a) => C(e, a, () => {
1707
- });
1708
- }
1709
- if (t.length === 2) {
1710
- const [e, a] = t;
1711
- return C(e, a, () => {
1712
- });
1713
- }
1714
- throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
1715
- }
1716
- function P(t) {
1717
- return Object.assign(t, { optional: () => Me(t), and: (e) => x(t, e), or: (e) => Sr(t, e), select: (e) => e === void 0 ? Et(t) : Et(e, t) });
1718
- }
1719
- function be(t) {
1720
- return Object.assign(((e) => Object.assign(e, { *[Symbol.iterator]() {
1721
- yield Object.assign(e, { [$r]: !0 });
1722
- } }))(t), { optional: () => be(Me(t)), select: (e) => be(e === void 0 ? Et(t) : Et(e, t)) });
1723
- }
1724
- function Me(t) {
1725
- return P({ [T]: () => ({ match: (e) => {
1726
- let a = {};
1727
- const r = (o, i) => {
1728
- a[o] = i;
1729
- };
1730
- return e === void 0 ? (D(t).forEach((o) => r(o, void 0)), { matched: !0, selections: a }) : { matched: C(t, e, r), selections: a };
1731
- }, getSelectionKeys: () => D(t), matcherType: "optional" }) });
1732
- }
1733
- const kc = (t, e) => {
1734
- for (const a of t)
1735
- if (!e(a))
1736
- return !1;
1737
- return !0;
1738
- }, $c = (t, e) => {
1739
- for (const [a, r] of t.entries())
1740
- if (!e(r, a))
1741
- return !1;
1742
- return !0;
1743
- };
1744
- function x(...t) {
1745
- return P({ [T]: () => ({ match: (e) => {
1746
- let a = {};
1747
- const r = (o, i) => {
1748
- a[o] = i;
1749
- };
1750
- return { matched: t.every((o) => C(o, e, r)), selections: a };
1751
- }, getSelectionKeys: () => Ct(t, D), matcherType: "and" }) });
1752
- }
1753
- function Sr(...t) {
1754
- return P({ [T]: () => ({ match: (e) => {
1755
- let a = {};
1756
- const r = (o, i) => {
1757
- a[o] = i;
1758
- };
1759
- return Ct(t, D).forEach((o) => r(o, void 0)), { matched: t.some((o) => C(o, e, r)), selections: a };
1760
- }, getSelectionKeys: () => Ct(t, D), matcherType: "or" }) });
1761
- }
1762
- function _(t) {
1763
- return { [T]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
1764
- }
1765
- function Et(...t) {
1766
- const e = typeof t[0] == "string" ? t[0] : void 0, a = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
1767
- return P({ [T]: () => ({ match: (r) => {
1768
- let o = { [e ?? Vt]: r };
1769
- return { matched: a === void 0 || C(a, r, (i, n) => {
1770
- o[i] = n;
1771
- }), selections: o };
1772
- }, getSelectionKeys: () => [e ?? Vt].concat(a === void 0 ? [] : D(a)) }) });
1773
- }
1774
- function H(t) {
1775
- return typeof t == "number";
1776
- }
1777
- function rt(t) {
1778
- return typeof t == "string";
1779
- }
1780
- function q(t) {
1781
- return typeof t == "bigint";
1782
- }
1783
- const Cr = P(_(function(t) {
1784
- return !0;
1785
- })), Sc = Cr, it = (t) => Object.assign(P(t), { startsWith: (e) => {
1786
- return it(x(t, (a = e, _((r) => rt(r) && r.startsWith(a)))));
1787
- var a;
1788
- }, endsWith: (e) => {
1789
- return it(x(t, (a = e, _((r) => rt(r) && r.endsWith(a)))));
1790
- var a;
1791
- }, minLength: (e) => it(x(t, ((a) => _((r) => rt(r) && r.length >= a))(e))), maxLength: (e) => it(x(t, ((a) => _((r) => rt(r) && r.length <= a))(e))), includes: (e) => {
1792
- return it(x(t, (a = e, _((r) => rt(r) && r.includes(a)))));
1793
- var a;
1794
- }, regex: (e) => {
1795
- return it(x(t, (a = e, _((r) => rt(r) && !!r.match(a)))));
1796
- var a;
1797
- } }), Cc = it(_(rt)), B = (t) => Object.assign(P(t), { between: (e, a) => B(x(t, ((r, o) => _((i) => H(i) && r <= i && o >= i))(e, a))), lt: (e) => B(x(t, ((a) => _((r) => H(r) && r < a))(e))), gt: (e) => B(x(t, ((a) => _((r) => H(r) && r > a))(e))), lte: (e) => B(x(t, ((a) => _((r) => H(r) && r <= a))(e))), gte: (e) => B(x(t, ((a) => _((r) => H(r) && r >= a))(e))), int: () => B(x(t, _((e) => H(e) && Number.isInteger(e)))), finite: () => B(x(t, _((e) => H(e) && Number.isFinite(e)))), positive: () => B(x(t, _((e) => H(e) && e > 0))), negative: () => B(x(t, _((e) => H(e) && e < 0))) }), Ec = B(_(H)), W = (t) => Object.assign(P(t), { between: (e, a) => W(x(t, ((r, o) => _((i) => q(i) && r <= i && o >= i))(e, a))), lt: (e) => W(x(t, ((a) => _((r) => q(r) && r < a))(e))), gt: (e) => W(x(t, ((a) => _((r) => q(r) && r > a))(e))), lte: (e) => W(x(t, ((a) => _((r) => q(r) && r <= a))(e))), gte: (e) => W(x(t, ((a) => _((r) => q(r) && r >= a))(e))), positive: () => W(x(t, _((e) => q(e) && e > 0))), negative: () => W(x(t, _((e) => q(e) && e < 0))) }), Pc = W(_(q)), Oc = P(_(function(t) {
1798
- return typeof t == "boolean";
1799
- })), Ic = P(_(function(t) {
1800
- return typeof t == "symbol";
1801
- })), Tc = P(_(function(t) {
1802
- return t == null;
1803
- }));
1804
- var ct = { __proto__: null, matcher: T, optional: Me, array: function(...t) {
1805
- return be({ [T]: () => ({ match: (e) => {
1806
- if (!Array.isArray(e))
1807
- return { matched: !1 };
1808
- if (t.length === 0)
1809
- return { matched: !0 };
1810
- const a = t[0];
1811
- let r = {};
1812
- if (e.length === 0)
1813
- return D(a).forEach((i) => {
1814
- r[i] = [];
1815
- }), { matched: !0, selections: r };
1816
- const o = (i, n) => {
1817
- r[i] = (r[i] || []).concat([n]);
1818
- };
1819
- return { matched: e.every((i) => C(a, i, o)), selections: r };
1820
- }, getSelectionKeys: () => t.length === 0 ? [] : D(t[0]) }) });
1821
- }, set: function(...t) {
1822
- return P({ [T]: () => ({ match: (e) => {
1823
- if (!(e instanceof Set))
1824
- return { matched: !1 };
1825
- let a = {};
1826
- if (e.size === 0)
1827
- return { matched: !0, selections: a };
1828
- if (t.length === 0)
1829
- return { matched: !0 };
1830
- const r = (i, n) => {
1831
- a[i] = (a[i] || []).concat([n]);
1832
- }, o = t[0];
1833
- return { matched: kc(e, (i) => C(o, i, r)), selections: a };
1834
- }, getSelectionKeys: () => t.length === 0 ? [] : D(t[0]) }) });
1835
- }, map: function(...t) {
1836
- return P({ [T]: () => ({ match: (e) => {
1837
- if (!(e instanceof Map))
1838
- return { matched: !1 };
1839
- let a = {};
1840
- if (e.size === 0)
1841
- return { matched: !0, selections: a };
1842
- const r = (c, l) => {
1843
- a[c] = (a[c] || []).concat([l]);
1844
- };
1845
- if (t.length === 0)
1846
- return { matched: !0 };
1847
- var o;
1848
- if (t.length === 1)
1849
- throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = t[0]) == null ? void 0 : o.toString()}`);
1850
- const [i, n] = t;
1851
- return { matched: $c(e, (c, l) => {
1852
- const d = C(i, l, r), u = C(n, c, r);
1853
- return d && u;
1854
- }), selections: a };
1855
- }, getSelectionKeys: () => t.length === 0 ? [] : [...D(t[0]), ...D(t[1])] }) });
1856
- }, intersection: x, union: Sr, not: function(t) {
1857
- return P({ [T]: () => ({ match: (e) => ({ matched: !C(t, e, () => {
1858
- }) }), getSelectionKeys: () => [], matcherType: "not" }) });
1859
- }, when: _, select: Et, any: Cr, _: Sc, string: Cc, number: Ec, bigint: Pc, boolean: Oc, symbol: Ic, nullish: Tc, instanceOf: function(t) {
1860
- return P(_(function(e) {
1861
- return (a) => a instanceof e;
1862
- }(t)));
1863
- }, shape: function(t) {
1864
- return P(_(xc(t)));
1865
- } };
1866
- const ve = { matched: !1, value: void 0 };
1867
- function Fe(t) {
1868
- return new Kt(t, ve);
1869
- }
1870
- class Kt {
1871
- constructor(e, a) {
1872
- this.input = void 0, this.state = void 0, this.input = e, this.state = a;
1873
- }
1874
- with(...e) {
1875
- if (this.state.matched)
1876
- return this;
1877
- const a = e[e.length - 1], r = [e[0]];
1878
- let o;
1879
- e.length === 3 && typeof e[1] == "function" ? o = e[1] : e.length > 2 && r.push(...e.slice(1, e.length - 1));
1880
- let i = !1, n = {};
1881
- const c = (d, u) => {
1882
- i = !0, n[d] = u;
1883
- }, l = !r.some((d) => C(d, this.input, c)) || o && !o(this.input) ? ve : { matched: !0, value: a(i ? Vt in n ? n[Vt] : n : this.input, this.input) };
1884
- return new Kt(this.input, l);
1885
- }
1886
- when(e, a) {
1887
- if (this.state.matched)
1888
- return this;
1889
- const r = !!e(this.input);
1890
- return new Kt(this.input, r ? { matched: !0, value: a(this.input, this.input) } : ve);
1891
- }
1892
- otherwise(e) {
1893
- return this.state.matched ? this.state.value : e(this.input);
1894
- }
1895
- exhaustive() {
1896
- if (this.state.matched)
1897
- return this.state.value;
1898
- let e;
1899
- try {
1900
- e = JSON.stringify(this.input);
1901
- } catch {
1902
- e = this.input;
1903
- }
1904
- throw new Error(`Pattern matching error: no pattern matches value ${e}`);
1905
- }
1906
- run() {
1907
- return this.exhaustive();
1908
- }
1909
- returnType() {
1910
- return this;
1911
- }
1912
- }
1913
- var jc = ["other", "few", "many", "two", "one", "zero"], xa = ({
1914
- terms: t,
1915
- overrides: e,
1916
- locale: a
1917
- }) => {
1918
- const r = new Intl.PluralRules(a);
1919
- function o(i, n) {
1920
- const c = (e == null ? void 0 : e[i]) ?? t[i];
1921
- switch (typeof c) {
1922
- case "string":
1923
- return c.replace(/{{(\w+)}}/g, (l, d) => {
1924
- var u;
1925
- return ((u = n == null ? void 0 : n[d]) == null ? void 0 : u.toString()) ?? "";
1926
- });
1927
- case "object": {
1928
- if (typeof (n == null ? void 0 : n.count) != "number")
1929
- throw new Error(`Missing count for translation key “${i.toString()}”`);
1930
- let l = r.select(n.count);
1931
- if (!(l in c)) {
1932
- const d = jc.find((u) => u in c);
1933
- if (!d)
1934
- throw new Error(`Missing plural rule for translation key “${i.toString()}”`);
1935
- l = d;
1936
- }
1937
- return c[l].replace(/{{(\w+)}}/g, (d, u) => {
1938
- var s;
1939
- return ((s = n == null ? void 0 : n[u]) == null ? void 0 : s.toString()) ?? "";
1940
- });
1941
- }
1942
- default:
1943
- throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`);
1944
- }
1945
- }
1946
- return o;
1947
- }, zc = 0;
1948
- function f(t, e, a, r, o, i) {
1949
- var n, c, l = {};
1950
- for (c in e)
1951
- c == "ref" ? n = e[c] : l[c] = e[c];
1952
- var d = { type: t, props: l, key: a, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --zc, __source: o, __self: i };
1953
- if (typeof t == "function" && (n = t.defaultProps))
1954
- for (c in n)
1955
- l[c] === void 0 && (l[c] = n[c]);
1956
- return w.vnode && w.vnode(d), d;
1957
- }
1958
- var ka = ar(null), Dc = (t) => ({
1959
- TranslationProvider: ({ terms: e, children: a, locale: r }) => {
1960
- const o = bt(() => xa({ locale: r, terms: t, overrides: e }), [e, r]);
1961
- return /* @__PURE__ */ f(ka.Provider, { value: { t: o, locale: r }, children: a });
1962
- },
1963
- useTranslation: () => {
1964
- const e = fr(ka);
1965
- if (e === null)
1966
- throw new Error("Please wrap useTranslation in a TranslationProvider");
1967
- return { t: e.t, locale: e.locale };
1968
- },
1969
- createTFunction: ({
1970
- overrides: e,
1971
- locale: a
1972
- }) => xa({ terms: t, overrides: e, locale: a })
1973
- });
1974
- const {
1975
- TranslationProvider: Ac,
1976
- useTranslation: Er,
1977
- createTFunction: Nc
1978
- } = Dc({
1979
- error_heading: "Something unexpected happened",
1980
- undo: "Undo",
1981
- send: "Send",
1982
- skip: "Skip",
1983
- skipped: "Skipped",
1984
- submission_redirect_message: "Almost there! Please complete your submission here:",
1985
- complete_submission: "Complete submission",
1986
- submission_completed: "Submission completed!",
1987
- submission_failed: "Failed to submit",
1988
- maximize: "Maximise",
1989
- minimize: "Minimise",
1990
- close_application: "Close application",
1991
- applying_for: "Applying for “{{title}}”",
1992
- /** When an application is at an invalid state, the user will get this error. */
1993
- invalid_state: "Invalid application state",
1994
- redirect_url_error: "Couldn’t get the redirect URL.",
1995
- upload_file: {
1996
- one: "Select file to upload",
1997
- other: "Select files to upload"
1998
- },
1999
- file_max_size: "max {{size}}",
2000
- file_extensions: "Accepted file extensions",
2001
- address_error: "Something went wrong! Plase continue manually",
2002
- address_search: "Type and search for places…",
2003
- address_manual: "Fill in manually",
2004
- back: "Back",
2005
- search: "Search",
2006
- unknown_error: "An error occurred",
2007
- line1: "Line 1",
2008
- line2: "Line 2",
2009
- line3: "Line 3",
2010
- city: "City",
2011
- state: "State",
2012
- postcode: "Postcode",
2013
- country: "Country",
2014
- select_country: "Select a country",
2015
- validation_max_chars: "Please enter no more than {{count}} characters",
2016
- validation_min_chars: "Please enter {{count}} or more characters",
2017
- validation_phone: "Please enter a valid phone number",
2018
- validation_phone_min_chars: "Your phone number must be at least {{count}} digits long",
2019
- validation_country_code: "Please select a country code",
2020
- validation_number: "Please enter a valid number",
2021
- validation_number_min: "Please enter a number greater than or equal to {{min}}",
2022
- validation_number_max: "Please enter a number less than or equal to {{max}}",
2023
- validation_number_decimal_cases: "Please enter a number with at most {{count}} decimal cases",
2024
- validation_file: "Please select a file",
2025
- validation_file_ext: "Please only upload {{ext}} files",
2026
- validation_file_max: {
2027
- one: "Please only upload one file",
2028
- other: "Please only upload up to {{count}} files"
2029
- },
2030
- validation_email: "That doesn’t look like a valid email address",
2031
- validation_url: "That doesn’t look like a valid URL",
2032
- validation_multiple_choice_min: {
2033
- one: "Please select at least {{count}} option",
2034
- other: "Please select at least {{count}} options"
2035
- },
2036
- validation_multiple_choice_max: {
2037
- one: "Please select at most {{count}} option",
2038
- other: "Please select at most {{count}} options"
2039
- }
2040
- });
2041
- function Pr(t, e) {
2042
- if (!t)
2043
- throw new Error(e);
2044
- }
2045
- function Jt() {
2046
- throw new Error("Cycle detected");
2047
- }
2048
- var Mc = Symbol.for("preact-signals");
2049
- function Le() {
2050
- if (dt > 1)
2051
- dt--;
2052
- else {
2053
- for (var t, e = !1; St !== void 0; ) {
2054
- var a = St;
2055
- for (St = void 0, _e++; a !== void 0; ) {
2056
- var r = a.o;
2057
- if (a.o = void 0, a.f &= -3, !(8 & a.f) && Ir(a))
2058
- try {
2059
- a.c();
2060
- } catch (o) {
2061
- e || (t = o, e = !0);
2062
- }
2063
- a = r;
2064
- }
2065
- }
2066
- if (_e = 0, dt--, e)
2067
- throw t;
2068
- }
2069
- }
2070
- var k = void 0, St = void 0, dt = 0, _e = 0, qt = 0;
2071
- function Or(t) {
2072
- if (k !== void 0) {
2073
- var e = t.n;
2074
- if (e === void 0 || e.t !== k)
2075
- return e = { i: 0, S: t, p: k.s, n: void 0, t: k, e: void 0, x: void 0, r: e }, k.s !== void 0 && (k.s.n = e), k.s = e, t.n = e, 32 & k.f && t.S(e), e;
2076
- if (e.i === -1)
2077
- return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = k.s, e.n = void 0, k.s.n = e, k.s = e), e;
2078
- }
2079
- }
2080
- function E(t) {
2081
- this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
2082
- }
2083
- E.prototype.brand = Mc;
2084
- E.prototype.h = function() {
2085
- return !0;
2086
- };
2087
- E.prototype.S = function(t) {
2088
- this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
2089
- };
2090
- E.prototype.U = function(t) {
2091
- if (this.t !== void 0) {
2092
- var e = t.e, a = t.x;
2093
- e !== void 0 && (e.x = a, t.e = void 0), a !== void 0 && (a.e = e, t.x = void 0), t === this.t && (this.t = a);
2094
- }
2095
- };
2096
- E.prototype.subscribe = function(t) {
2097
- var e = this;
2098
- return Be(function() {
2099
- var a = e.value, r = 32 & this.f;
2100
- this.f &= -33;
2101
- try {
2102
- t(a);
2103
- } finally {
2104
- this.f |= r;
2105
- }
2106
- });
2107
- };
2108
- E.prototype.valueOf = function() {
2109
- return this.value;
2110
- };
2111
- E.prototype.toString = function() {
2112
- return this.value + "";
2113
- };
2114
- E.prototype.toJSON = function() {
2115
- return this.value;
2116
- };
2117
- E.prototype.peek = function() {
2118
- return this.v;
2119
- };
2120
- Object.defineProperty(E.prototype, "value", { get: function() {
2121
- var t = Or(this);
2122
- return t !== void 0 && (t.i = this.i), this.v;
2123
- }, set: function(t) {
2124
- if (k instanceof tt && function() {
2125
- throw new Error("Computed cannot have side-effects");
2126
- }(), t !== this.v) {
2127
- _e > 100 && Jt(), this.v = t, this.i++, qt++, dt++;
2128
- try {
2129
- for (var e = this.t; e !== void 0; e = e.x)
2130
- e.t.N();
2131
- } finally {
2132
- Le();
2133
- }
2134
- }
2135
- } });
2136
- function Pt(t) {
2137
- return new E(t);
2138
- }
2139
- function Ir(t) {
2140
- for (var e = t.s; e !== void 0; e = e.n)
2141
- if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
2142
- return !0;
2143
- return !1;
2144
- }
2145
- function Tr(t) {
2146
- for (var e = t.s; e !== void 0; e = e.n) {
2147
- var a = e.S.n;
2148
- if (a !== void 0 && (e.r = a), e.S.n = e, e.i = -1, e.n === void 0) {
2149
- t.s = e;
2150
- break;
2151
- }
2152
- }
2153
- }
2154
- function jr(t) {
2155
- for (var e = t.s, a = void 0; e !== void 0; ) {
2156
- var r = e.p;
2157
- e.i === -1 ? (e.S.U(e), r !== void 0 && (r.n = e.n), e.n !== void 0 && (e.n.p = r)) : a = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = r;
2158
- }
2159
- t.s = a;
2160
- }
2161
- function tt(t) {
2162
- E.call(this, void 0), this.x = t, this.s = void 0, this.g = qt - 1, this.f = 4;
2163
- }
2164
- (tt.prototype = new E()).h = function() {
2165
- if (this.f &= -3, 1 & this.f)
2166
- return !1;
2167
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === qt))
2168
- return !0;
2169
- if (this.g = qt, this.f |= 1, this.i > 0 && !Ir(this))
2170
- return this.f &= -2, !0;
2171
- var t = k;
2172
- try {
2173
- Tr(this), k = this;
2174
- var e = this.x();
2175
- (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
2176
- } catch (a) {
2177
- this.v = a, this.f |= 16, this.i++;
2178
- }
2179
- return k = t, jr(this), this.f &= -2, !0;
2180
- };
2181
- tt.prototype.S = function(t) {
2182
- if (this.t === void 0) {
2183
- this.f |= 36;
2184
- for (var e = this.s; e !== void 0; e = e.n)
2185
- e.S.S(e);
2186
- }
2187
- E.prototype.S.call(this, t);
2188
- };
2189
- tt.prototype.U = function(t) {
2190
- if (this.t !== void 0 && (E.prototype.U.call(this, t), this.t === void 0)) {
2191
- this.f &= -33;
2192
- for (var e = this.s; e !== void 0; e = e.n)
2193
- e.S.U(e);
2194
- }
2195
- };
2196
- tt.prototype.N = function() {
2197
- if (!(2 & this.f)) {
2198
- this.f |= 6;
2199
- for (var t = this.t; t !== void 0; t = t.x)
2200
- t.t.N();
2201
- }
2202
- };
2203
- tt.prototype.peek = function() {
2204
- if (this.h() || Jt(), 16 & this.f)
2205
- throw this.v;
2206
- return this.v;
2207
- };
2208
- Object.defineProperty(tt.prototype, "value", { get: function() {
2209
- 1 & this.f && Jt();
2210
- var t = Or(this);
2211
- if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2212
- throw this.v;
2213
- return this.v;
2214
- } });
2215
- function Fc(t) {
2216
- return new tt(t);
2217
- }
2218
- function zr(t) {
2219
- var e = t.u;
2220
- if (t.u = void 0, typeof e == "function") {
2221
- dt++;
2222
- var a = k;
2223
- k = void 0;
2224
- try {
2225
- e();
2226
- } catch (r) {
2227
- throw t.f &= -2, t.f |= 8, He(t), r;
2228
- } finally {
2229
- k = a, Le();
2230
- }
2231
- }
2232
- }
2233
- function He(t) {
2234
- for (var e = t.s; e !== void 0; e = e.n)
2235
- e.S.U(e);
2236
- t.x = void 0, t.s = void 0, zr(t);
2237
- }
2238
- function Lc(t) {
2239
- if (k !== this)
2240
- throw new Error("Out-of-order effect");
2241
- jr(this), k = t, this.f &= -2, 8 & this.f && He(this), Le();
2242
- }
2243
- function jt(t) {
2244
- this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
2245
- }
2246
- jt.prototype.c = function() {
2247
- var t = this.S();
2248
- try {
2249
- if (8 & this.f || this.x === void 0)
2250
- return;
2251
- var e = this.x();
2252
- typeof e == "function" && (this.u = e);
2253
- } finally {
2254
- t();
2255
- }
2256
- };
2257
- jt.prototype.S = function() {
2258
- 1 & this.f && Jt(), this.f |= 1, this.f &= -9, zr(this), Tr(this), dt++;
2259
- var t = k;
2260
- return k = this, Lc.bind(this, t);
2261
- };
2262
- jt.prototype.N = function() {
2263
- 2 & this.f || (this.f |= 2, this.o = St, St = this);
2264
- };
2265
- jt.prototype.d = function() {
2266
- this.f |= 8, 1 & this.f || He(this);
2267
- };
2268
- function Be(t) {
2269
- var e = new jt(t);
2270
- try {
2271
- e.c();
2272
- } catch (a) {
2273
- throw e.d(), a;
2274
- }
2275
- return e.d.bind(e);
2276
- }
2277
- var re;
2278
- function vt(t, e) {
2279
- w[t] = e.bind(null, w[t] || function() {
2280
- });
2281
- }
2282
- function Wt(t) {
2283
- re && re(), re = t && t.S();
2284
- }
2285
- function Dr(t) {
2286
- var e = this, a = t.data, r = Bc(a);
2287
- r.value = a;
2288
- var o = bt(function() {
2289
- for (var i = e.__v; i = i.__; )
2290
- if (i.__c) {
2291
- i.__c.__$f |= 4;
2292
- break;
2293
- }
2294
- return e.__$u.c = function() {
2295
- var n;
2296
- !Va(o.peek()) && ((n = e.base) == null ? void 0 : n.nodeType) === 3 ? e.base.data = o.peek() : (e.__$f |= 1, e.setState({}));
2297
- }, Fc(function() {
2298
- var n = r.value.value;
2299
- return n === 0 ? 0 : n === !0 ? "" : n || "";
2300
- });
2301
- }, []);
2302
- return o.value;
2303
- }
2304
- Dr.displayName = "_st";
2305
- Object.defineProperties(E.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Dr }, props: { configurable: !0, get: function() {
2306
- return { data: this };
2307
- } }, __b: { configurable: !0, value: 1 } });
2308
- vt("__b", function(t, e) {
2309
- if (typeof e.type == "string") {
2310
- var a, r = e.props;
2311
- for (var o in r)
2312
- if (o !== "children") {
2313
- var i = r[o];
2314
- i instanceof E && (a || (e.__np = a = {}), a[o] = i, r[o] = i.peek());
2315
- }
2316
- }
2317
- t(e);
2318
- });
2319
- vt("__r", function(t, e) {
2320
- Wt();
2321
- var a, r = e.__c;
2322
- r && (r.__$f &= -2, (a = r.__$u) === void 0 && (r.__$u = a = function(o) {
2323
- var i;
2324
- return Be(function() {
2325
- i = this;
2326
- }), i.c = function() {
2327
- r.__$f |= 1, r.setState({});
2328
- }, i;
2329
- }())), Wt(a), t(e);
2330
- });
2331
- vt("__e", function(t, e, a, r) {
2332
- Wt(), t(e, a, r);
2333
- });
2334
- vt("diffed", function(t, e) {
2335
- Wt();
2336
- var a;
2337
- if (typeof e.type == "string" && (a = e.__e)) {
2338
- var r = e.__np, o = e.props;
2339
- if (r) {
2340
- var i = a.U;
2341
- if (i)
2342
- for (var n in i) {
2343
- var c = i[n];
2344
- c !== void 0 && !(n in r) && (c.d(), i[n] = void 0);
2345
- }
2346
- else
2347
- a.U = i = {};
2348
- for (var l in r) {
2349
- var d = i[l], u = r[l];
2350
- d === void 0 ? (d = Hc(a, l, u, o), i[l] = d) : d.o(u, o);
2351
- }
2352
- }
2353
- }
2354
- t(e);
2355
- });
2356
- function Hc(t, e, a, r) {
2357
- var o = e in t && t.ownerSVGElement === void 0, i = Pt(a);
2358
- return { o: function(n, c) {
2359
- i.value = n, r = c;
2360
- }, d: Be(function() {
2361
- var n = i.value.value;
2362
- r[e] !== n && (r[e] = n, o ? t[e] = n : n ? t.setAttribute(e, n) : t.removeAttribute(e));
2363
- }) };
2364
- }
2365
- vt("unmount", function(t, e) {
2366
- if (typeof e.type == "string") {
2367
- var a = e.__e;
2368
- if (a) {
2369
- var r = a.U;
2370
- if (r) {
2371
- a.U = void 0;
2372
- for (var o in r) {
2373
- var i = r[o];
2374
- i && i.d();
2375
- }
2376
- }
2377
- }
2378
- } else {
2379
- var n = e.__c;
2380
- if (n) {
2381
- var c = n.__$u;
2382
- c && (n.__$u = void 0, c.d());
2383
- }
2384
- }
2385
- t(e);
2386
- });
2387
- vt("__h", function(t, e, a, r) {
2388
- (r < 3 || r === 9) && (e.__$f |= 2), t(e, a, r);
2389
- });
2390
- L.prototype.shouldComponentUpdate = function(t, e) {
2391
- var a = this.__$u;
2392
- if (!(a && a.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
2393
- return !0;
2394
- for (var r in e)
2395
- return !0;
2396
- for (var o in t)
2397
- if (o !== "__source" && t[o] !== this.props[o])
2398
- return !0;
2399
- for (var i in this.props)
2400
- if (!(i in t))
2401
- return !0;
2402
- return !1;
2403
- };
2404
- function Bc(t) {
2405
- return bt(function() {
2406
- return Pt(t);
2407
- }, []);
2408
- }
2409
- const me = (t, e) => e.some((a) => t instanceof a);
2410
- let $a, Sa;
2411
- function Rc() {
2412
- return $a || ($a = [
2413
- IDBDatabase,
2414
- IDBObjectStore,
2415
- IDBIndex,
2416
- IDBCursor,
2417
- IDBTransaction
2418
- ]);
2419
- }
2420
- function Uc() {
2421
- return Sa || (Sa = [
2422
- IDBCursor.prototype.advance,
2423
- IDBCursor.prototype.continue,
2424
- IDBCursor.prototype.continuePrimaryKey
2425
- ]);
2426
- }
2427
- const ye = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap();
2428
- function Vc(t) {
2429
- const e = new Promise((a, r) => {
2430
- const o = () => {
2431
- t.removeEventListener("success", i), t.removeEventListener("error", n);
2432
- }, i = () => {
2433
- a(st(t.result)), o();
2434
- }, n = () => {
2435
- r(t.error), o();
2436
- };
2437
- t.addEventListener("success", i), t.addEventListener("error", n);
2438
- });
2439
- return Qt.set(e, t), e;
2440
- }
2441
- function Kc(t) {
2442
- if (ye.has(t))
2443
- return;
2444
- const e = new Promise((a, r) => {
2445
- const o = () => {
2446
- t.removeEventListener("complete", i), t.removeEventListener("error", n), t.removeEventListener("abort", n);
2447
- }, i = () => {
2448
- a(), o();
2449
- }, n = () => {
2450
- r(t.error || new DOMException("AbortError", "AbortError")), o();
2451
- };
2452
- t.addEventListener("complete", i), t.addEventListener("error", n), t.addEventListener("abort", n);
2453
- });
2454
- ye.set(t, e);
2455
- }
2456
- let xe = {
2457
- get(t, e, a) {
2458
- if (t instanceof IDBTransaction) {
2459
- if (e === "done")
2460
- return ye.get(t);
2461
- if (e === "store")
2462
- return a.objectStoreNames[1] ? void 0 : a.objectStore(a.objectStoreNames[0]);
2463
- }
2464
- return st(t[e]);
2465
- },
2466
- set(t, e, a) {
2467
- return t[e] = a, !0;
2468
- },
2469
- has(t, e) {
2470
- return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
2471
- }
2472
- };
2473
- function Ar(t) {
2474
- xe = t(xe);
2475
- }
2476
- function qc(t) {
2477
- return Uc().includes(t) ? function(...e) {
2478
- return t.apply(ke(this), e), st(this.request);
2479
- } : function(...e) {
2480
- return st(t.apply(ke(this), e));
2481
- };
2482
- }
2483
- function Wc(t) {
2484
- return typeof t == "function" ? qc(t) : (t instanceof IDBTransaction && Kc(t), me(t, Rc()) ? new Proxy(t, xe) : t);
2485
- }
2486
- function st(t) {
2487
- if (t instanceof IDBRequest)
2488
- return Vc(t);
2489
- if (ie.has(t))
2490
- return ie.get(t);
2491
- const e = Wc(t);
2492
- return e !== t && (ie.set(t, e), Qt.set(e, t)), e;
2493
- }
2494
- const ke = (t) => Qt.get(t);
2495
- function Gc(t, e, { blocked: a, upgrade: r, blocking: o, terminated: i } = {}) {
2496
- const n = indexedDB.open(t, e), c = st(n);
2497
- return r && n.addEventListener("upgradeneeded", (l) => {
2498
- r(st(n.result), l.oldVersion, l.newVersion, st(n.transaction), l);
2499
- }), a && n.addEventListener("blocked", (l) => a(
2500
- // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
2501
- l.oldVersion,
2502
- l.newVersion,
2503
- l
2504
- )), c.then((l) => {
2505
- i && l.addEventListener("close", () => i()), o && l.addEventListener("versionchange", (d) => o(d.oldVersion, d.newVersion, d));
2506
- }).catch(() => {
2507
- }), c;
2508
- }
2509
- const Yc = ["get", "getKey", "getAll", "getAllKeys", "count"], Xc = ["put", "add", "delete", "clear"], oe = /* @__PURE__ */ new Map();
2510
- function Ca(t, e) {
2511
- if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
2512
- return;
2513
- if (oe.get(e))
2514
- return oe.get(e);
2515
- const a = e.replace(/FromIndex$/, ""), r = e !== a, o = Xc.includes(a);
2516
- if (
2517
- // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
2518
- !(a in (r ? IDBIndex : IDBObjectStore).prototype) || !(o || Yc.includes(a))
2519
- )
2520
- return;
2521
- const i = async function(n, ...c) {
2522
- const l = this.transaction(n, o ? "readwrite" : "readonly");
2523
- let d = l.store;
2524
- return r && (d = d.index(c.shift())), (await Promise.all([
2525
- d[a](...c),
2526
- o && l.done
2527
- ]))[0];
2528
- };
2529
- return oe.set(e, i), i;
2530
- }
2531
- Ar((t) => ({
2532
- ...t,
2533
- get: (e, a, r) => Ca(e, a) || t.get(e, a, r),
2534
- has: (e, a) => !!Ca(e, a) || t.has(e, a)
2535
- }));
2536
- const Zc = ["continue", "continuePrimaryKey", "advance"], Ea = {}, $e = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), Jc = {
2537
- get(t, e) {
2538
- if (!Zc.includes(e))
2539
- return t[e];
2540
- let a = Ea[e];
2541
- return a || (a = Ea[e] = function(...r) {
2542
- $e.set(this, Nr.get(this)[e](...r));
2543
- }), a;
2544
- }
2545
- };
2546
- async function* Qc(...t) {
2547
- let e = this;
2548
- if (e instanceof IDBCursor || (e = await e.openCursor(...t)), !e)
2549
- return;
2550
- e = e;
2551
- const a = new Proxy(e, Jc);
2552
- for (Nr.set(a, e), Qt.set(a, ke(e)); e; )
2553
- yield a, e = await ($e.get(a) || e.continue()), $e.delete(a);
2554
- }
2555
- function Pa(t, e) {
2556
- return e === Symbol.asyncIterator && me(t, [IDBIndex, IDBObjectStore, IDBCursor]) || e === "iterate" && me(t, [IDBIndex, IDBObjectStore]);
2557
- }
2558
- Ar((t) => ({
2559
- ...t,
2560
- get(e, a, r) {
2561
- return Pa(e, a) ? Qc : t.get(e, a, r);
2562
- },
2563
- has(e, a) {
2564
- return Pa(e, a) || t.has(e, a);
2565
- }
2566
- }));
2567
- const Hl = (t) => Fe(t).with(ct.number.lte(1e3), () => `${Math.round(t)}KB`).with(ct.number.lt(1e3 * 10), () => `${(t / 1e3).toFixed(1)}MB`).otherwise(() => `${Math.round(t / 1e3)}MB`), Bl = (t) => {
2568
- const e = t.find((a) => a.isHead);
2569
- if (!e)
2570
- throw new Error("No head node found");
2571
- return e;
2572
- }, Rl = (t) => Object.entries(t).reduce((a, [r, o]) => (a[r] = o.value, a), {}), Ul = (t) => (e) => e ? e.type === t : !1;
2573
- class Vl extends Error {
2574
- constructor() {
2575
- super("Aborted");
2576
- }
2577
- }
2578
- function tl(t, e = 300) {
2579
- let a;
2580
- return (...r) => {
2581
- clearTimeout(a), a = setTimeout(() => {
2582
- t.apply(this, r);
2583
- }, e);
2584
- };
2585
- }
2586
- const Kl = (t) => typeof t == "string", el = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : Math.random().toString(36).slice(2), Oa = () => ({
2587
- messages: [],
2588
- submissions: {},
2589
- currentInput: null,
2590
- nodeHistory: [],
2591
- isFinished: !1,
2592
- sequence: 0,
2593
- flowSessionId: el()
2594
- }), ql = (t) => (
2595
- /** nativeEvent is a hidden property not exposed by JSX's typings */
2596
- Fe(t).with({
2597
- nativeEvent: {
2598
- submitter: ct.select(ct.union(ct.instanceOf(HTMLButtonElement), ct.instanceOf(HTMLInputElement)))
2599
- }
2600
- }, (e) => e).otherwise(() => {
2601
- throw new Error("invalid submitter");
2602
- })
2603
- ), Ia = typeof window > "u" ? void 0 : Gc("inploi-chatbot", 3, {
2604
- upgrade(t) {
2605
- try {
2606
- t.deleteObjectStore("state");
2607
- } catch {
2608
- }
2609
- t.createObjectStore("state");
2610
- }
2611
- }), xt = {
2612
- getStateData: async (t, e) => {
2613
- var r;
2614
- const a = Ta({
2615
- ...t,
2616
- flowKeys: e
2617
- });
2618
- return (r = await Ia) == null ? void 0 : r.get("state", a);
2619
- },
2620
- setStateData: tl(async (t) => {
2621
- var a;
2622
- const e = Ta(t);
2623
- return (a = await Ia) == null ? void 0 : a.put("state", t.data, e);
2624
- }, 1e3)
2625
- }, Ht = (t, e, a, r = 0) => {
2626
- if (!e.nextId)
2627
- return a(e.id, {
2628
- stepsMade: r,
2629
- remainingSteps: 0
2630
- }), {
2631
- stepsMade: r,
2632
- remainingSteps: 0
2633
- };
2634
- const o = t.find((d) => d.id === e.nextId);
2635
- if (o === void 0)
2636
- return {
2637
- stepsMade: r,
2638
- remainingSteps: 0
2639
- };
2640
- const i = e.type === "if-block" ? e.branchId : void 0, n = t.find((d) => d.id === i), c = e.type.includes("question") ? 1 : 0;
2641
- if (n) {
2642
- const d = c + Math.max(Ht(t, o, a, r + c).remainingSteps, Ht(t, n, a, r + c).remainingSteps);
2643
- return a(e.id, {
2644
- stepsMade: r,
2645
- remainingSteps: d
2646
- }), {
2647
- stepsMade: r,
2648
- remainingSteps: d
2649
- };
2650
- }
2651
- const l = c + Ht(t, o, a, r + c).remainingSteps;
2652
- return a(e.id, {
2653
- stepsMade: r,
2654
- remainingSteps: l
2655
- }), {
2656
- stepsMade: r,
2657
- remainingSteps: l
2658
- };
2659
- }, al = (t) => {
2660
- const e = {}, a = t.find((r) => r.isHead);
2661
- return a && Ht(t, a, (r, o) => {
2662
- e[r] = o;
2663
- }), e;
2664
- }, Ta = (t) => [...t.flowKeys, t.id, t.version].join("/"), G = Pt({
2665
- state: "idle"
2666
- }), mt = (t) => {
2667
- const {
2668
- state: e,
2669
- flow: a
2670
- } = G.value;
2671
- if (e !== "loaded")
2672
- return;
2673
- Pr(a, "No flow to update");
2674
- const r = t(a.data);
2675
- a.data = r, G.value = {
2676
- state: e,
2677
- flow: a
2678
- }, xt.setStateData(a);
2679
- }, S = {
2680
- current$: G,
2681
- viewState$: Pt("closed"),
2682
- inputHeight$: Pt(53),
2683
- startFlow: async ({
2684
- flow: t,
2685
- context: e = {},
2686
- flowKeys: a,
2687
- title: r,
2688
- analytics: o,
2689
- job: i,
2690
- locationOrigin: n
2691
- }) => {
2692
- const l = {
2693
- data: await xt.getStateData(t, a) ?? Oa(),
2694
- startedAt: /* @__PURE__ */ new Date(),
2695
- nodeIdToProgress: al(t.nodes),
2696
- flowKeys: a,
2697
- id: t.id,
2698
- version: t.version,
2699
- nodes: t.nodes,
2700
- build: t.build,
2701
- context: e,
2702
- title: r,
2703
- analytics: o,
2704
- job: i,
2705
- locationOrigin: n
2706
- };
2707
- G.value = {
2708
- state: "loaded",
2709
- flow: l
2710
- }, xt.setStateData(l);
2711
- },
2712
- cancelCurrentFlow: () => {
2713
- G.value = {
2714
- state: "idle"
2715
- }, S.viewState$.value = "closed";
2716
- },
2717
- markAsFinished: () => mt((t) => ({
2718
- ...t,
2719
- isFinished: !0
2720
- })),
2721
- setCurrentNodeId: (t) => mt((e) => (e.nodeHistory.push(t), e)),
2722
- restart: () => {
2723
- const {
2724
- state: t,
2725
- flow: e
2726
- } = G.value;
2727
- if (t !== "loaded")
2728
- throw new Error("Flow cannot be restarted: not in valid state");
2729
- const a = Oa();
2730
- G.value = {
2731
- state: t,
2732
- flow: {
2733
- ...e,
2734
- data: a,
2735
- startedAt: /* @__PURE__ */ new Date()
2736
- }
2737
- }, xt.setStateData(e);
2738
- },
2739
- addMessage: (t, e) => {
2740
- const a = {
2741
- ...t,
2742
- groupId: e
2743
- };
2744
- return mt((r) => (r.messages.push(a), r));
2745
- },
2746
- /** Removes messages from nodeId, all the messages that have the groupId passed, until it reaches one that doesn't */
2747
- removeMessagesSentByNodeIds: (t) => {
2748
- const {
2749
- state: e,
2750
- flow: a
2751
- } = G.value;
2752
- Pr(e === "loaded", "Application not loaded");
2753
- const r = a.data.messages.filter((o) => !o.groupId || !t.includes(o.groupId));
2754
- a.data.messages = r, xt.setStateData(a);
2755
- },
2756
- setSubmission: (t, e) => mt((a) => (e === null ? delete a.submissions[t] : a.submissions[t] = e, a)),
2757
- setInput: (t) => mt((e) => ({
2758
- ...e,
2759
- currentInput: t ?? null
2760
- }))
2761
- }, rl = ({
2762
- message: t
2763
- }) => {
2764
- const {
2765
- t: e
2766
- } = Er();
2767
- return f("div", {
2768
- class: "flex flex-grow flex-col items-center justify-center",
2769
- children: [f("svg", {
2770
- class: "text-error-9 h-16 w-16",
2771
- fill: "none",
2772
- xmlns: "http://www.w3.org/2000/svg",
2773
- "stroke-width": "2",
2774
- stroke: "currentColor",
2775
- "stroke-linecap": "round",
2776
- viewBox: "0 0 96 96",
2777
- children: [f("path", {
2778
- 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",
2779
- fill: "#fff"
2780
- }), f("path", {
2781
- 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"
2782
- }), f("line", {
2783
- x1: "36.7",
2784
- y1: "39.3",
2785
- x2: "44.8",
2786
- y2: "47.4"
2787
- }), f("line", {
2788
- x1: "52.2",
2789
- y1: "39.3",
2790
- x2: "60.3",
2791
- y2: "47.4"
2792
- }), f("line", {
2793
- x1: "44.7",
2794
- y1: "39.2",
2795
- x2: "36.6",
2796
- y2: "47.3"
2797
- }), f("line", {
2798
- x1: "60.2",
2799
- y1: "39.2",
2800
- x2: "52.1",
2801
- y2: "47.3"
2802
- }), f("path", {
2803
- d: "M38 56h19"
2804
- })]
2805
- }), f("div", {
2806
- class: "flex flex-col gap-2 text-center",
2807
- children: [f("p", {
2808
- class: "text-error-11 font-bold",
2809
- children: e("error_heading")
2810
- }), t && f("p", {
2811
- class: "text-neutral-9 text-sm",
2812
- children: t
2813
- })]
2814
- })]
2815
- });
2816
- }, il = (t) => f("svg", {
2817
- role: "img",
2818
- viewBox: "0 0 24 24",
2819
- ...t,
2820
- children: [f("title", {
2821
- children: "Loading"
2822
- }), f("style", {
2823
- 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)}}"
2824
- }), f("g", {
2825
- id: "s1",
2826
- transform: "translate(12,0)",
2827
- children: f("g", {
2828
- id: "s2",
2829
- transform: "scale(0,0)",
2830
- children: f("circle", {
2831
- r: "6.5",
2832
- transform: "translate(0,0)",
2833
- fill: "currentColor"
2834
- })
2835
- })
2836
- }), f("g", {
2837
- id: "s3",
2838
- transform: "translate(12,12)",
2839
- children: f("g", {
2840
- id: "s4",
2841
- transform: "scale(1,1)",
2842
- children: f("circle", {
2843
- r: "6.5",
2844
- transform: "translate(0,0)",
2845
- fill: "currentColor"
2846
- })
2847
- })
2848
- }), f("g", {
2849
- id: "s5",
2850
- transform: "translate(12,0)",
2851
- children: f("g", {
2852
- id: "s6",
2853
- transform: "scale(0,0)",
2854
- children: f("path", {
2855
- 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",
2856
- transform: "translate(-6.5,-6.5)",
2857
- "clip-rule": "evenodd",
2858
- fill: "currentColor",
2859
- "fill-rule": "evenodd"
2860
- })
2861
- })
2862
- }), f("g", {
2863
- id: "s7",
2864
- transform: "translate(12,0)",
2865
- children: f("g", {
2866
- id: "s8",
2867
- transform: "scale(0,0)",
2868
- children: f("path", {
2869
- 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",
2870
- transform: "translate(-6.5,-9.25)",
2871
- fill: "currentColor"
2872
- })
2873
- })
2874
- })]
2875
- }), ja = () => f("div", {
2876
- class: "flex flex-grow flex-col items-center justify-center",
2877
- children: f(il, {
2878
- class: "text-neutral-6 h-8 w-8"
2879
- })
2880
- }), ol = (t) => {
2881
- const a = t / 100, r = 1.3;
2882
- return t < 0 ? "0%" : t > 100 ? "100%" : `${Math.round((1 - (1 - 0.1) * Math.pow(1 - a, r)) * 100)}%`;
2883
- }, At = ({
2884
- class: t,
2885
- children: e,
2886
- ...a
2887
- }) => f("div", {
2888
- class: "flex flex-1 items-center justify-end px-1",
2889
- children: f("button", {
2890
- class: lr("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 flex-none rounded-full p-2 transition-all", t),
2891
- ...a,
2892
- children: f("svg", {
2893
- class: "block",
2894
- width: "16",
2895
- height: "16",
2896
- viewBox: "0 0 16 16",
2897
- fill: "none",
2898
- stroke: "currentColor",
2899
- "stroke-width": "1.5",
2900
- "stroke-linecap": "round",
2901
- xmlns: "http://www.w3.org/2000/svg",
2902
- children: e
2903
- })
2904
- })
2905
- }), nl = () => {
2906
- if (S.current$.value.state !== "loaded")
2907
- return null;
2908
- const t = S.current$.value.flow.nodeIdToProgress, e = S.current$.value.flow.data.nodeHistory.at(-1);
2909
- if (e === void 0)
2910
- return null;
2911
- const a = t[e];
2912
- if (a === void 0)
2913
- return null;
2914
- const r = 100 * (a.stepsMade / (a.remainingSteps + a.stepsMade));
2915
- return f("div", {
2916
- class: "bg-accent-3",
2917
- children: f("div", {
2918
- style: {
2919
- width: ol(r)
2920
- },
2921
- class: "bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"
2922
- })
2923
- });
2924
- }, sl = ({
2925
- children: t,
2926
- params: e
2927
- }) => {
2928
- const {
2929
- t: a
2930
- } = Er(), r = S.viewState$;
2931
- return f(M, {
2932
- children: f("header", {
2933
- 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",
2934
- children: [f("div", {
2935
- class: "ring-neutral-7 flex h-[var(--header-height)] gap-2 rounded-t-3xl ring-0 ring-inset transition-all duration-300 [&:has(>.view-switch:focus-visible)]:ring-1",
2936
- children: [f("p", {
2937
- id: "chatbot-status-bar",
2938
- class: "sr-only",
2939
- children: t
2940
- }), f("button", {
2941
- onClick: () => {
2942
- r.value === "minimised" ? r.value = "maximised" : r.value = "minimised";
2943
- },
2944
- class: "view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",
2945
- onTouchStart: ne,
2946
- children: f("p", {
2947
- "aria-hidden": !0,
2948
- class: "text-neutral-12 truncate text-sm font-bold tracking-tight",
2949
- children: t
2950
- })
2951
- }), f("div", {
2952
- class: "flex flex-shrink-0 items-center gap-3 p-1.5",
2953
- children: [e.feedback ? f("div", {
2954
- "data-widget": "inploi-feedback",
2955
- "data-key": "chatbot-header"
2956
- }) : null, r.value === "minimised" ? f(M, {
2957
- children: [f(At, {
2958
- class: "view-switch",
2959
- onTouchStart: ne,
2960
- "aria-label": a("maximize"),
2961
- onClick: () => r.value = "maximised",
2962
- children: f("path", {
2963
- d: "M12.5 9.5L8 5L3.5 9.5"
2964
- })
2965
- }, "minmax"), f(At, {
2966
- "aria-label": a("close_application"),
2967
- onClick: S.cancelCurrentFlow,
2968
- children: f("path", {
2969
- d: "M12.5 6.5L8 11L3.5 6.5"
2970
- })
2971
- }, "close")]
2972
- }) : f(M, {
2973
- children: [S.current$.value.state === "loaded" && f(At, {
2974
- "aria-label": "Restart",
2975
- onClick: () => {
2976
- S.restart();
2977
- },
2978
- children: [f("path", {
2979
- 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"
2980
- }), f("path", {
2981
- d: "M8 7L10 4.5L8 2.5"
2982
- })]
2983
- }, "restart"), f(At, {
2984
- class: "view-switch",
2985
- onTouchStart: ne,
2986
- "aria-label": a("minimize"),
2987
- onClick: () => r.value = "minimised",
2988
- children: f("path", {
2989
- d: "M12.5 6.5L8 11L3.5 6.5"
2990
- })
2991
- }, "minmax")]
2992
- })]
2993
- })]
2994
- }), f(nl, {})]
2995
- })
2996
- });
2997
- };
2998
- function ne() {
2999
- }
3000
- const cl = mr(() => import("./chatbot-body-3a421cab.js").then((t) => t.ChatbotBody)), za = Fs("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", {
3001
- variants: {
3002
- view: {
3003
- closed: "hidden",
3004
- minimised: "h-[var(--header-height)] animate-slide-in-bottom",
3005
- maximised: "h-[var(--content-height)] animate-maximise"
3006
- }
3007
- }
3008
- }), Da = "outline-neutral-3 bg-neutral-1 relative flex h-full flex-col overflow-hidden rounded-3xl outline outline-1", ll = ({
3009
- open: t,
3010
- ...e
3011
- }) => {
3012
- const a = De(null);
3013
- return Tt(() => {
3014
- const r = a.current;
3015
- r && (t ? r.showModal() : r.close());
3016
- }, [t]), f("dialog", {
3017
- ref: a,
3018
- ...e
3019
- });
3020
- }, dl = ({
3021
- logger: t,
3022
- apiClient: e,
3023
- analytics: a,
3024
- params: r
3025
- }) => {
3026
- const {
3027
- state: o,
3028
- flow: i,
3029
- error: n
3030
- } = S.current$.value, c = S.viewState$.value, l = o !== "idle" && c === "maximised", d = De(null), u = f(sl, {
3031
- params: r,
3032
- children: i == null ? void 0 : i.title
3033
- });
3034
- return f(Ac, {
3035
- terms: r.terms,
3036
- locale: void 0,
3037
- children: [f(ll, {
3038
- open: l,
3039
- onClose: () => S.viewState$.value = "minimised",
3040
- children: f("div", {
3041
- ref: d,
3042
- "aria-modal": "true",
3043
- role: "dialog",
3044
- "aria-labelledby": "chatbot-status-bar",
3045
- class: za({
3046
- view: "maximised"
3047
- }),
3048
- children: f("div", {
3049
- class: Da,
3050
- children: [u, Fe({
3051
- state: o,
3052
- view: c
3053
- }).with({
3054
- state: "idle"
3055
- }, () => null).with({
3056
- state: "loading"
3057
- }, () => f(ja, {}, "loading")).with({
3058
- state: "loaded"
3059
- }, () => f($t, {
3060
- fallback: f(ja, {}, "loading"),
3061
- children: f(cl, {
3062
- analytics: a,
3063
- apiClient: e,
3064
- logger: t
3065
- })
3066
- })).with({
3067
- state: "error"
3068
- }, () => f(rl, {
3069
- message: n
3070
- })).exhaustive()]
3071
- })
3072
- })
3073
- }), c === "minimised" ? f("div", {
3074
- class: za({
3075
- view: "minimised",
3076
- class: "z-100 isolate"
3077
- }),
3078
- children: f("div", {
3079
- class: Da,
3080
- children: u
3081
- })
3082
- }) : null]
3083
- });
3084
- }, Mr = Y({
3085
- id: rr(R(), String),
3086
- version: ra(),
3087
- build: ra(),
3088
- nodes: Ts(Is()),
3089
- context_schema: nt(js(As(R(), Y({
3090
- required: sr(),
3091
- type: Ns([aa("string"), aa("number")])
3092
- }))))
3093
- }), ul = Y({
3094
- flow: Mr
3095
- }), hl = Y({
3096
- company: Y({
3097
- name: R()
3098
- }),
3099
- flow: Mr,
3100
- job: Y({
3101
- id: rr(R(), String),
3102
- title: R()
3103
- }),
3104
- user: nt(Y({
3105
- city: nt(R()),
3106
- country: nt(R()),
3107
- isEU: nt(sr()),
3108
- continent: nt(R())
3109
- }))
3110
- }), pl = `[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-moz-user-select:none;-webkit-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){[data-widget=inploi-chatbot]{--content-height: min(640px, calc(100vh - 16px));--content-height: min(640px, calc(100svh - 16px)) }}[data-widget=inploi-chatbot]{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[data-widget=inploi-chatbot] em{font-style:italic}[data-widget=inploi-chatbot] strong{font-weight:700}[data-widget=inploi-chatbot] *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{box-sizing:border-box}[data-widget=inploi-chatbot] :is(ul,ol){list-style:none;padding:0;margin:0}[data-widget=inploi-chatbot] :is(p){margin:0;padding:0}[data-widget=inploi-chatbot] :is(li){margin:0;padding:0;list-style:none}[data-widget=inploi-chatbot] :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :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: }[data-widget=inploi-chatbot] ::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: }[data-widget=inploi-chatbot] .container{width:100%}@media (min-width: 640px){[data-widget=inploi-chatbot] .container{max-width:640px}}@media (min-width: 768px){[data-widget=inploi-chatbot] .container{max-width:768px}}@media (min-width: 1024px){[data-widget=inploi-chatbot] .container{max-width:1024px}}@media (min-width: 1280px){[data-widget=inploi-chatbot] .container{max-width:1280px}}@media (min-width: 1536px){[data-widget=inploi-chatbot] .container{max-width:1536px}}[data-widget=inploi-chatbot] .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}[data-widget=inploi-chatbot] .visible{visibility:visible}[data-widget=inploi-chatbot] .invisible{visibility:hidden}[data-widget=inploi-chatbot] .collapse{visibility:collapse}[data-widget=inploi-chatbot] .static{position:static}[data-widget=inploi-chatbot] .fixed{position:fixed}[data-widget=inploi-chatbot] .absolute{position:absolute}[data-widget=inploi-chatbot] .relative{position:relative}[data-widget=inploi-chatbot] .sticky{position:sticky}[data-widget=inploi-chatbot] .inset-0{top:0;right:0;bottom:0;left:0}[data-widget=inploi-chatbot] .bottom-0{bottom:0}[data-widget=inploi-chatbot] .bottom-2{bottom:.5rem}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:.625rem}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-2{left:.5rem}[data-widget=inploi-chatbot] .right-0{right:0}[data-widget=inploi-chatbot] .right-2{right:.5rem}[data-widget=inploi-chatbot] .top-0{top:0}[data-widget=inploi-chatbot] .isolate{isolation:isolate}[data-widget=inploi-chatbot] .z-20{z-index:20}[data-widget=inploi-chatbot] .z-50{z-index:50}[data-widget=inploi-chatbot] .m-0{margin:0}[data-widget=inploi-chatbot] .mx-auto{margin-left:auto;margin-right:auto}[data-widget=inploi-chatbot] .mb-1{margin-bottom:.25rem}[data-widget=inploi-chatbot] .ml-auto{margin-left:auto}[data-widget=inploi-chatbot] .mt-auto{margin-top:auto}[data-widget=inploi-chatbot] .block{display:block}[data-widget=inploi-chatbot] .inline-block{display:inline-block}[data-widget=inploi-chatbot] .inline{display:inline}[data-widget=inploi-chatbot] .flex{display:flex}[data-widget=inploi-chatbot] .inline-flex{display:inline-flex}[data-widget=inploi-chatbot] .table{display:table}[data-widget=inploi-chatbot] .table-row{display:table-row}[data-widget=inploi-chatbot] .flow-root{display:flow-root}[data-widget=inploi-chatbot] .grid{display:grid}[data-widget=inploi-chatbot] .inline-grid{display:inline-grid}[data-widget=inploi-chatbot] .contents{display:contents}[data-widget=inploi-chatbot] .list-item{display:list-item}[data-widget=inploi-chatbot] .\\!hidden{display:none!important}[data-widget=inploi-chatbot] .hidden{display:none}[data-widget=inploi-chatbot] .h-1{height:.25rem}[data-widget=inploi-chatbot] .h-1\\.5{height:.375rem}[data-widget=inploi-chatbot] .h-16{height:4rem}[data-widget=inploi-chatbot] .h-4{height:1rem}[data-widget=inploi-chatbot] .h-48{height:12rem}[data-widget=inploi-chatbot] .h-8{height:2rem}[data-widget=inploi-chatbot] .h-\\[3px\\]{height:3px}[data-widget=inploi-chatbot] .h-\\[var\\(--content-height\\)\\]{height:var(--content-height)}[data-widget=inploi-chatbot] .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}[data-widget=inploi-chatbot] .h-full{height:100%}[data-widget=inploi-chatbot] .max-h-\\[calc\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 1rem)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 1rem)}[data-widget=inploi-chatbot] .w-1{width:.25rem}[data-widget=inploi-chatbot] .w-1\\.5{width:.375rem}[data-widget=inploi-chatbot] .w-16{width:4rem}[data-widget=inploi-chatbot] .w-24{width:6rem}[data-widget=inploi-chatbot] .w-4{width:1rem}[data-widget=inploi-chatbot] .w-64{width:16rem}[data-widget=inploi-chatbot] .w-8{width:2rem}[data-widget=inploi-chatbot] .w-full{width:100%}[data-widget=inploi-chatbot] .min-w-0{min-width:0px}[data-widget=inploi-chatbot] .min-w-\\[2rem\\]{min-width:2rem}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,24rem)}[data-widget=inploi-chatbot] .max-w-\\[var\\(--radix-popover-content-available-width\\)\\]{max-width:var(--radix-popover-content-available-width)}[data-widget=inploi-chatbot] .max-w-full{max-width:100%}[data-widget=inploi-chatbot] .flex-1{flex:1 1 0%}[data-widget=inploi-chatbot] .flex-none{flex:none}[data-widget=inploi-chatbot] .flex-shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .scale-75{--tw-scale-x: .75;--tw-scale-y: .75;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))}[data-widget=inploi-chatbot] .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)}}[data-widget=inploi-chatbot] .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}}[data-widget=inploi-chatbot] .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .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)}}[data-widget=inploi-chatbot] .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}[data-widget=inploi-chatbot] .cursor-pointer{cursor:pointer}[data-widget=inploi-chatbot] .select-none{-moz-user-select:none;-webkit-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-moz-user-select:text;-webkit-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-y{resize:vertical}[data-widget=inploi-chatbot] .resize{resize:both}[data-widget=inploi-chatbot] .appearance-none{-moz-appearance:none;-webkit-appearance:none;appearance:none}[data-widget=inploi-chatbot] .flex-col{flex-direction:column}[data-widget=inploi-chatbot] .flex-wrap{flex-wrap:wrap}[data-widget=inploi-chatbot] .items-center{align-items:center}[data-widget=inploi-chatbot] .items-stretch{align-items:stretch}[data-widget=inploi-chatbot] .justify-end{justify-content:flex-end}[data-widget=inploi-chatbot] .justify-center{justify-content:center}[data-widget=inploi-chatbot] .gap-0{gap:0px}[data-widget=inploi-chatbot] .gap-1{gap:.25rem}[data-widget=inploi-chatbot] .gap-1\\.5{gap:.375rem}[data-widget=inploi-chatbot] .gap-2{gap:.5rem}[data-widget=inploi-chatbot] .gap-2\\.5{gap:.625rem}[data-widget=inploi-chatbot] .gap-3{gap:.75rem}[data-widget=inploi-chatbot] .gap-4{gap:1rem}[data-widget=inploi-chatbot] .overflow-hidden{overflow:hidden}[data-widget=inploi-chatbot] .overflow-y-auto{overflow-y:auto}[data-widget=inploi-chatbot] .overflow-y-scroll{overflow-y:scroll}[data-widget=inploi-chatbot] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-widget=inploi-chatbot] .text-ellipsis{text-overflow:ellipsis}[data-widget=inploi-chatbot] .whitespace-nowrap{white-space:nowrap}[data-widget=inploi-chatbot] .break-words{overflow-wrap:break-word}[data-widget=inploi-chatbot] .rounded{border-radius:.25rem}[data-widget=inploi-chatbot] .rounded-2xl{border-radius:1rem}[data-widget=inploi-chatbot] .rounded-3xl{border-radius:1.5rem}[data-widget=inploi-chatbot] .rounded-\\[18px\\]{border-radius:18px}[data-widget=inploi-chatbot] .rounded-full{border-radius:9999px}[data-widget=inploi-chatbot] .rounded-lg{border-radius:.5rem}[data-widget=inploi-chatbot] .rounded-md{border-radius:.375rem}[data-widget=inploi-chatbot] .rounded-xl{border-radius:.75rem}[data-widget=inploi-chatbot] .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}[data-widget=inploi-chatbot] .rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}[data-widget=inploi-chatbot] .rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}[data-widget=inploi-chatbot] .rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}[data-widget=inploi-chatbot] .rounded-bl-md{border-bottom-left-radius:.375rem}[data-widget=inploi-chatbot] .rounded-br-md{border-bottom-right-radius:.375rem}[data-widget=inploi-chatbot] .border{border-width:1px}[data-widget=inploi-chatbot] .border-b{border-bottom-width:1px}[data-widget=inploi-chatbot] .border-t{border-top-width:1px}[data-widget=inploi-chatbot] .border-solid{border-style:solid}[data-widget=inploi-chatbot] .border-dashed{border-style:dashed}[data-widget=inploi-chatbot] .border-accent-9{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .border-divider{border-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .border-neutral-5{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-neutral-8{border-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .border-transparent{border-color:transparent}[data-widget=inploi-chatbot] .border-b-neutral-3{border-bottom-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .border-b-neutral-5{border-bottom-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-b-transparent{border-bottom-color:transparent}[data-widget=inploi-chatbot] .bg-accent-1{background-color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .bg-accent-3{background-color:var(--i-color-a-3)}[data-widget=inploi-chatbot] .bg-accent-9{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .bg-bubble-weak-bg{background-color:var(--i-bubble-weak-bg)}[data-widget=inploi-chatbot] .bg-lowest{background-color:var(--i-color-lowest)}[data-widget=inploi-chatbot] .bg-neutral-1{background-color:var(--i-color-n-1)}[data-widget=inploi-chatbot] .bg-neutral-2{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .bg-neutral-3{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .bg-statusbar{background-color:var(--i-status-bar-bg)}[data-widget=inploi-chatbot] .bg-transparent{background-color:transparent}[data-widget=inploi-chatbot] .bg-none{background-image:none}[data-widget=inploi-chatbot] .p-1{padding:.25rem}[data-widget=inploi-chatbot] .p-1\\.5{padding:.375rem}[data-widget=inploi-chatbot] .p-10{padding:2.5rem}[data-widget=inploi-chatbot] .p-11{padding:2.75rem}[data-widget=inploi-chatbot] .p-12{padding:3rem}[data-widget=inploi-chatbot] .p-2{padding:.5rem}[data-widget=inploi-chatbot] .p-2\\.5{padding:.625rem}[data-widget=inploi-chatbot] .p-3{padding:.75rem}[data-widget=inploi-chatbot] .p-4{padding:1rem}[data-widget=inploi-chatbot] .p-5{padding:1.25rem}[data-widget=inploi-chatbot] .p-6{padding:1.5rem}[data-widget=inploi-chatbot] .p-7{padding:1.75rem}[data-widget=inploi-chatbot] .p-8{padding:2rem}[data-widget=inploi-chatbot] .p-9{padding:2.25rem}[data-widget=inploi-chatbot] .px-1{padding-left:.25rem;padding-right:.25rem}[data-widget=inploi-chatbot] .px-1\\.5{padding-left:.375rem;padding-right:.375rem}[data-widget=inploi-chatbot] .px-2{padding-left:.5rem;padding-right:.5rem}[data-widget=inploi-chatbot] .px-2\\.5{padding-left:.625rem;padding-right:.625rem}[data-widget=inploi-chatbot] .px-3{padding-left:.75rem;padding-right:.75rem}[data-widget=inploi-chatbot] .px-4{padding-left:1rem;padding-right:1rem}[data-widget=inploi-chatbot] .px-5{padding-left:1.25rem;padding-right:1.25rem}[data-widget=inploi-chatbot] .py-0{padding-top:0;padding-bottom:0}[data-widget=inploi-chatbot] .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}[data-widget=inploi-chatbot] .py-1{padding-top:.25rem;padding-bottom:.25rem}[data-widget=inploi-chatbot] .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}[data-widget=inploi-chatbot] .py-2{padding-top:.5rem;padding-bottom:.5rem}[data-widget=inploi-chatbot] .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}[data-widget=inploi-chatbot] .py-3{padding-top:.75rem;padding-bottom:.75rem}[data-widget=inploi-chatbot] .py-\\[6px\\]{padding-top:6px;padding-bottom:6px}[data-widget=inploi-chatbot] .pb-2{padding-bottom:.5rem}[data-widget=inploi-chatbot] .pb-6{padding-bottom:1.5rem}[data-widget=inploi-chatbot] .pl-1{padding-left:.25rem}[data-widget=inploi-chatbot] .pl-1\\.5{padding-left:.375rem}[data-widget=inploi-chatbot] .pl-2{padding-left:.5rem}[data-widget=inploi-chatbot] .pl-2\\.5{padding-left:.625rem}[data-widget=inploi-chatbot] .pl-3{padding-left:.75rem}[data-widget=inploi-chatbot] .pl-4{padding-left:1rem}[data-widget=inploi-chatbot] .pr-1{padding-right:.25rem}[data-widget=inploi-chatbot] .pr-16{padding-right:4rem}[data-widget=inploi-chatbot] .pr-2{padding-right:.5rem}[data-widget=inploi-chatbot] .pr-2\\.5{padding-right:.625rem}[data-widget=inploi-chatbot] .pr-3{padding-right:.75rem}[data-widget=inploi-chatbot] .pr-4{padding-right:1rem}[data-widget=inploi-chatbot] .pt-2{padding-top:.5rem}[data-widget=inploi-chatbot] .pt-2\\.5{padding-top:.625rem}[data-widget=inploi-chatbot] .pt-3{padding-top:.75rem}[data-widget=inploi-chatbot] .pt-5{padding-top:1.25rem}[data-widget=inploi-chatbot] .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 1rem)}[data-widget=inploi-chatbot] .text-center{text-align:center}[data-widget=inploi-chatbot] .text-justify{text-align:justify}[data-widget=inploi-chatbot] .text-\\[10px\\]{font-size:10px}[data-widget=inploi-chatbot] .text-\\[11px\\]{font-size:11px}[data-widget=inploi-chatbot] .text-base{font-size:1rem;line-height:1.5rem}[data-widget=inploi-chatbot] .text-sm{font-size:.875rem;line-height:1.25rem}[data-widget=inploi-chatbot] .text-xs{font-size:.75rem;line-height:1rem}[data-widget=inploi-chatbot] .font-bold{font-weight:700}[data-widget=inploi-chatbot] .font-medium{font-weight:500}[data-widget=inploi-chatbot] .font-semibold{font-weight:600}[data-widget=inploi-chatbot] .uppercase{text-transform:uppercase}[data-widget=inploi-chatbot] .lowercase{text-transform:lowercase}[data-widget=inploi-chatbot] .capitalize{text-transform:capitalize}[data-widget=inploi-chatbot] .italic{font-style:italic}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .leading-3{line-height:.75rem}[data-widget=inploi-chatbot] .leading-snug{line-height:1.375}[data-widget=inploi-chatbot] .leading-tight{line-height:1.25}[data-widget=inploi-chatbot] .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}[data-widget=inploi-chatbot] .tracking-tight{letter-spacing:-.025em}[data-widget=inploi-chatbot] .tracking-wide{letter-spacing:.025em}[data-widget=inploi-chatbot] .tracking-widest{letter-spacing:.1em}[data-widget=inploi-chatbot] .text-\\[\\#4CAF50\\]{--tw-text-opacity: 1;color:rgb(76 175 80 / var(--tw-text-opacity))}[data-widget=inploi-chatbot] .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity))}[data-widget=inploi-chatbot] .text-accent-1{color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .text-accent-10{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .text-accent-11{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .text-accent-12{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .text-error-11{color:var(--i-color-e-11)}[data-widget=inploi-chatbot] .text-error-9{color:var(--i-color-e-9)}[data-widget=inploi-chatbot] .text-interactive-copy{color:var(--i-interactive-copy)}[data-widget=inploi-chatbot] .text-neutral-10{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .text-neutral-11{color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .text-neutral-12{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .text-neutral-6{color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .text-neutral-8{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .text-neutral-9{color:var(--i-color-n-9)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}[data-widget=inploi-chatbot] .underline{text-decoration-line:underline}[data-widget=inploi-chatbot] .no-underline{text-decoration-line:none}[data-widget=inploi-chatbot] .underline-offset-2{text-underline-offset:2px}[data-widget=inploi-chatbot] .underline-offset-4{text-underline-offset:4px}[data-widget=inploi-chatbot] .caret-accent-9{caret-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .opacity-0{opacity:0}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 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)}[data-widget=inploi-chatbot] .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}[data-widget=inploi-chatbot] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .outline{outline-style:solid}[data-widget=inploi-chatbot] .outline-1{outline-width:1px}[data-widget=inploi-chatbot] .outline-2{outline-width:2px}[data-widget=inploi-chatbot] .outline-accent-4{outline-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}[data-widget=inploi-chatbot] .outline-divider{outline-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .outline-neutral-3{outline-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .outline-neutral-6{outline-color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .ring-inset{--tw-ring-inset: inset}[data-widget=inploi-chatbot] .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}[data-widget=inploi-chatbot] .ring-divider{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .ring-lowest{--tw-ring-color: var(--i-color-lowest)}[data-widget=inploi-chatbot] .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}[data-widget=inploi-chatbot] .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}[data-widget=inploi-chatbot] .ring-neutral-7{--tw-ring-color: var(--i-color-n-7)}[data-widget=inploi-chatbot] .ring-transparent{--tw-ring-color: transparent}[data-widget=inploi-chatbot] .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-\\[background\\,color\\,border-color\\,box-shadow\\]{transition-property:background,color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .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}[data-widget=inploi-chatbot] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .duration-100{transition-duration:.1s}[data-widget=inploi-chatbot] .duration-1000{transition-duration:1s}[data-widget=inploi-chatbot] .duration-300{transition-duration:.3s}[data-widget=inploi-chatbot] .duration-700{transition-duration:.7s}[data-widget=inploi-chatbot] .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}[data-widget=inploi-chatbot] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-widget=inploi-chatbot] .will-change-\\[height\\]{will-change:height}[data-widget=inploi-chatbot] .will-change-\\[transform\\,opacity\\]{will-change:transform,opacity}[data-widget=inploi-chatbot] .text-wrap-balance{text-wrap:balance}[data-widget=inploi-chatbot] .fr{outline:none}[data-widget=inploi-chatbot] .fr:focus{outline:none}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .gutter-stable{scrollbar-gutter:stable}[data-widget=inploi-chatbot] .hide-scrollbars::-webkit-scrollbar{display:none}[data-widget=inploi-chatbot] .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}[data-widget=inploi-chatbot] .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}[data-widget=inploi-chatbot] .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}[data-widget=inploi-chatbot] .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}[data-widget=inploi-chatbot] .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}[data-widget=inploi-chatbot] .\\[text-wrap\\:pretty\\]{text-wrap:pretty}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .first-of-type\\:rounded-l-lg:first-of-type{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--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)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--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)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .hover\\:z-10:hover{z-index:10}[data-widget=inploi-chatbot] .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;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))}[data-widget=inploi-chatbot] .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .hover\\:text-interactive-copy-hover:hover{color:var(--i-interactive-copy-hover)}[data-widget=inploi-chatbot] .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .hover\\:underline:hover{text-decoration-line:underline}[data-widget=inploi-chatbot] .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}[data-widget=inploi-chatbot] .focus\\:z-20:focus{z-index:20}[data-widget=inploi-chatbot] .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--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)}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--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)}[data-widget=inploi-chatbot] .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-2:focus-visible{outline-width:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;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))}[data-widget=inploi-chatbot] .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:text-accent-10:active{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:text-accent-11:active{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .active\\:text-interactive-copy-active:active{color:var(--i-interactive-copy-active)}[data-widget=inploi-chatbot] .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-widget=inploi-chatbot] .disabled\\:opacity-50:disabled{opacity:.5}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .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)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .group[aria-pressed=true] .group-aria-\\[pressed\\=true\\]\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}@media (pointer: coarse){[data-widget=inploi-chatbot] .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}}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-11:has(+*>input:focus){color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .\\[\\&\\: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))}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\>\\.view-switch\\:focus-visible\\)\\]\\:ring-1:has(>.view-switch: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(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)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[data-widget=inploi-chatbot] dialog::backdrop{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}[data-widget=inploi-chatbot] dialog::backdrop{background-color:var(--i-overlay-bg)}
3111
- `, Fr = "inploi-chatbot", Lr = `[data-widget='${Fr}']`, fl = () => ({
3112
- getOrCreateChatbotElement: () => {
3113
- const t = document.querySelector(Lr);
3114
- if (t)
3115
- return document.body.appendChild(t), t;
3116
- const e = document.createElement("div");
3117
- return document.body.appendChild(e), e.dataset.widget = Fr, e;
3118
- }
3119
- });
3120
- var wl = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], gl = {
3121
- light: {
3122
- 1: [98.8, 0.015],
3123
- 2: [97.8, 0.018],
3124
- 3: [95.8, 0.025],
3125
- 4: [92, 0.04],
3126
- 5: [89, 0.05],
3127
- 6: [85, 0.07],
3128
- 7: [80.5, 0.08],
3129
- 8: [74, 0.11],
3130
- 9: [60, 0.22],
3131
- 10: [56, 0.23],
3132
- 11: [50, 0.19],
3133
- 12: [25, 0.18]
3134
- },
3135
- dark: {
3136
- 1: [19, 0.015],
3137
- 2: [21, 0.018],
3138
- 3: [25.5, 0.055],
3139
- 4: [29.3, 0.084],
3140
- 5: [33.5, 0.098],
3141
- 6: [39.05, 0.107],
3142
- 7: [45, 0.11],
3143
- 8: [55, 0.13],
3144
- 9: [60, 0.22],
3145
- 10: [67, 0.18],
3146
- 11: [79.3, 0.12],
3147
- 12: [95, 0.04]
3148
- }
3149
- }, bl = (t, e = 1, a) => (r) => {
3150
- const [o, i] = gl[a][r];
3151
- return "oklch(" + o + "% " + i * e + " " + t + ")";
3152
- }, se = (t) => {
3153
- const e = bl(t.hue, t.chroma, t.mode);
3154
- return Object.fromEntries(
3155
- wl.map((a) => [t.prefix + a, t.transform(e(a))])
3156
- );
3157
- }, ce = (t) => t, vl = (t) => {
3158
- const e = Object.keys(t).flatMap((a) => {
3159
- const r = t[a];
3160
- return typeof r == "object" && r !== null ? Object.keys(r).map((o) => {
3161
- const i = r[o];
3162
- return [`${String(a)}.${o}`, i];
3163
- }) : [[a, r]];
3164
- });
3165
- return Object.fromEntries(e);
3166
- }, Nt = (t) => !!t && typeof t == "object" && !Array.isArray(t), Se = (t, ...e) => {
3167
- if (!e.length)
3168
- return t;
3169
- const a = e.shift();
3170
- if (Nt(t) && Nt(a))
3171
- for (const r in a) {
3172
- const o = a[r];
3173
- if (Nt(o)) {
3174
- t[r] || Object.assign(t, { [r]: {} });
3175
- const i = t[r];
3176
- Nt(i) && Se(i, o);
3177
- } else
3178
- Object.assign(t, { [r]: a[r] });
3179
- }
3180
- return Se(t, ...e);
3181
- }, _l = (t) => {
3182
- function e(a, r) {
3183
- const o = [t.prefix, r.toString().replace(/\./g, "-")].join("");
3184
- return a === "declaration" ? `--${o}` : `var(--${o})`;
3185
- }
3186
- return e;
3187
- }, ml = () => ({
3188
- core: (t) => ({
3189
- semantic: (e) => ({
3190
- component: (a) => ({
3191
- from: (r) => {
3192
- const { theme: o, getToken: i } = r, n = (p) => i("reference", p.toString()), c = t({ theme: o }), l = e({ theme: o, core: n, raw: { core: c } }), d = a({
3193
- theme: o,
3194
- core: n,
3195
- semantic: n,
3196
- raw: { core: c, semantic: l }
3197
- }), u = vl(Se(c, l, d)), s = ([p, g], h) => {
3198
- const b = [h, p].filter(Boolean).join(".");
3199
- return typeof g == "object" ? Object.entries(g).flatMap((m) => s(m, b)) : [[r.getToken("declaration", b), g]];
3200
- };
3201
- return {
3202
- values: u,
3203
- declarations: Object.fromEntries(Object.entries(u).flatMap((p) => s(p))),
3204
- ref: (p) => i("reference", p.toString())
3205
- };
3206
- }
3207
- })
3208
- })
3209
- })
3210
- });
3211
- const [le, de, Aa] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], yl = ml().core(({
3212
- theme: t
3213
- }) => ({
3214
- color: {
3215
- black: le,
3216
- white: de,
3217
- lowest: t.mode === "light" ? de : le,
3218
- highest: t.mode === "light" ? le : de,
3219
- ...se({
3220
- prefix: "a-",
3221
- hue: t.hue,
3222
- chroma: t.chroma,
3223
- mode: t.mode,
3224
- transform: ce
3225
- }),
3226
- ...se({
3227
- prefix: "n-",
3228
- hue: t.hue,
3229
- chroma: 0.05,
3230
- mode: t.mode,
3231
- transform: ce
3232
- }),
3233
- ...se({
3234
- prefix: "e-",
3235
- hue: 20,
3236
- chroma: t.chroma,
3237
- mode: t.mode,
3238
- transform: ce
3239
- })
3240
- },
3241
- typography: {}
3242
- })).semantic(({
3243
- core: t,
3244
- raw: e,
3245
- theme: a
3246
- }) => {
3247
- const r = (o, i) => e.core.color[o].replace(")", ` / ${i})`);
3248
- return {
3249
- "font-family": {
3250
- body: "inherit",
3251
- headings: "inherit"
3252
- },
3253
- "font-style": {
3254
- body: "normal",
3255
- headings: "normal"
3256
- },
3257
- "font-weight-body": "normal",
3258
- "font-weight-headings": "normal",
3259
- "radius-app": "1.5rem",
3260
- "radius-interactive": "1.5rem",
3261
- color: {
3262
- divider: r("n-8", a.mode === "dark" ? 0.4 : 0.2)
3263
- },
3264
- "copy-body": t("color.n-12"),
3265
- "copy-headings": t("color.n-12"),
3266
- interactive: {
3267
- copy: t("color.n-11"),
3268
- "copy-hover": t("color.n-12"),
3269
- "copy-active": t("color.n-12"),
3270
- bg: Aa,
3271
- "bg-hover": r("n-10", 0.2),
3272
- "bg-active": r("n-10", 0.3)
3273
- }
3274
- };
3275
- }).component(({
3276
- raw: t,
3277
- theme: e,
3278
- semantic: a,
3279
- core: r
3280
- }) => {
3281
- const o = (i, n) => t.core.color[i].replace(")", ` / ${n})`);
3282
- return {
3283
- app: {
3284
- bg: r(e.mode === "dark" ? "color.n-1" : "color.n-2")
3285
- },
3286
- overlay: {
3287
- bg: o("black", 0.4)
3288
- },
3289
- bubble: {
3290
- "weak-bg": r(e.mode === "dark" ? "color.n-3" : "color.lowest"),
3291
- "weak-outline": a("color.divider"),
3292
- "strong-shadow": o("a-9", 0.05)
3293
- },
3294
- "status-bar": {
3295
- bg: o("n-2", 0.8),
3296
- "bg-button": Aa,
3297
- "bg-button-hover": o("n-10", 0.4),
3298
- "bg-button-active": o("n-10", 0.5)
3299
- },
3300
- "submit-button": {
3301
- "bg-active": r(e.mode === "dark" ? "color.a-8" : "color.a-11")
3302
- }
3303
- };
3304
- }), xl = _l({
3305
- prefix: "i-"
3306
- }), kl = (t) => {
3307
- const e = yl.from({
3308
- theme: t,
3309
- getToken: xl
3310
- }), a = Object.entries(e.declarations).map(([r, o]) => `${r}: ${o};`);
3311
- return `${Lr} {
3312
- ${a.concat(a).join(`
3313
- `)}
3314
- }`;
3315
- }, Na = ({
3316
- context: t,
3317
- schema: e,
3318
- logger: a
3319
- }) => {
3320
- if (e)
3321
- for (const r in e) {
3322
- const o = e[r];
3323
- if (!o)
3324
- continue;
3325
- const i = ms(t, r, null);
3326
- if (o.required && i === null) {
3327
- const n = `Configuration error in context: ${r} is required`;
3328
- throw a.error(n), new Error(n);
3329
- }
3330
- switch (o.type) {
3331
- case "number":
3332
- if (typeof i != "number")
3333
- throw new Error(`Configuration error in context: ${r} is not a number`);
3334
- break;
3335
- case "string":
3336
- if (typeof i != "string")
3337
- throw new Error(`Configuration error in context: ${r} is not a string`);
3338
- break;
3339
- default:
3340
- o.type;
3341
- }
3342
- }
3343
- }, Wl = ({
3344
- _internal_domManager: t = fl(),
3345
- theme: e,
3346
- terms: a,
3347
- feedback: r
3348
- }) => Rr(({
3349
- apiClient: o,
3350
- logger: i,
3351
- analytics: n
3352
- }) => {
3353
- let c = !1;
3354
- const l = Nc({
3355
- locale: void 0,
3356
- overrides: a ?? {}
3357
- }), d = () => {
3358
- var p;
3359
- if (typeof window > "u")
3360
- return;
3361
- const u = [A("style", {
3362
- id: "inploi-chatbot-styles"
3363
- }, pl), A("style", {
3364
- id: "inploi-chatbot-theme"
3365
- }, kl(e))], s = t.getOrCreateChatbotElement();
3366
- if (ut(A(M, {}, [u, A(dl, {
3367
- apiClient: o,
3368
- logger: i,
3369
- analytics: n,
3370
- params: {
3371
- theme: e,
3372
- terms: a,
3373
- feedback: r
3374
- }
3375
- })]), s), r) {
3376
- const g = r.plugin({
3377
- apiClient: o,
3378
- logger: i,
3379
- analytics: n
3380
- }), h = s.querySelector("dialog");
3381
- if (!h)
3382
- throw new Error("Couldn't find feedback host");
3383
- g.render({
3384
- key: "chatbot-header",
3385
- size: "sm",
3386
- theme: {
3387
- accent: {
3388
- chroma: e.chroma ?? 1,
3389
- hue: e.hue
3390
- },
3391
- positive: {
3392
- hue: 180,
3393
- chroma: 1
3394
- },
3395
- negative: {
3396
- hue: 33,
3397
- chroma: 1
3398
- },
3399
- mode: e.mode,
3400
- corners: "rounded",
3401
- highlights: "stroke"
3402
- },
3403
- terms: ((p = r.params) == null ? void 0 : p.terms) ?? {},
3404
- host: h
3405
- });
3406
- }
3407
- c = !0;
3408
- };
3409
- return {
3410
- /** Optionally eagerly renders the interface ahead of needing the chatbot. */
3411
- prepare: async () => {
3412
- if (!(typeof window > "u"))
3413
- try {
3414
- if (c)
3415
- return;
3416
- d(), i.info("Chatbot plugin prepared");
3417
- } catch (u) {
3418
- i.error("Error preparing chatbot plugin", u);
3419
- }
3420
- },
3421
- /** Fetches a flow by job ID.
3422
- * @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.
3423
- */
3424
- fetchFlowByJobId: async (u, s) => {
3425
- const p = new URLSearchParams({
3426
- id_type: (s == null ? void 0 : s.idType) === "inploi" ? "internal" : "external"
3427
- });
3428
- return o.fetch([`/flow/job/${u}`, p.toString()].filter(Boolean).join("?")).then((g) => {
3429
- const h = ia(hl, g);
3430
- return {
3431
- flow: h.flow,
3432
- title: l("applying_for", {
3433
- title: h.job.title
3434
- }),
3435
- flowKeys: [h.job.id, ...(s == null ? void 0 : s.flowKeys) ?? []],
3436
- job: {
3437
- id: h.job.id,
3438
- id_type: "external"
3439
- },
3440
- ...s,
3441
- context: {
3442
- user: h.user,
3443
- ...s == null ? void 0 : s.context
3444
- }
3445
- };
3446
- });
3447
- },
3448
- fetchFlowById: async (u, s) => o.fetch(`/flow/id/${u}`).then((p) => {
3449
- var h;
3450
- const g = ia(ul, p);
3451
- return {
3452
- flow: g.flow,
3453
- title: "Chatbot",
3454
- flowKeys: (s == null ? void 0 : s.flowKeys) ?? [],
3455
- ...s,
3456
- analytics: {
3457
- customProperties: {
3458
- flow_id: g.flow.id,
3459
- flow_version: g.flow.version,
3460
- ...(h = s == null ? void 0 : s.analytics) == null ? void 0 : h.customProperties
3461
- }
3462
- }
3463
- };
3464
- }),
3465
- open: async (u) => {
3466
- if (!(typeof window > "u"))
3467
- try {
3468
- S.cancelCurrentFlow(), S.viewState$.value = "maximised", c || d(), u instanceof Promise ? (S.current$.value = {
3469
- state: "loading"
3470
- }, u.then(async (s) => {
3471
- Na({
3472
- context: s.context || {},
3473
- schema: s.flow.context_schema,
3474
- logger: i
3475
- }), S.startFlow(s);
3476
- }).catch((s) => {
3477
- const p = s instanceof Error ? s.message : l("unknown_error");
3478
- S.current$.value = {
3479
- state: "error",
3480
- error: p
3481
- };
3482
- })) : (Na({
3483
- context: u.context || {},
3484
- schema: u.flow.context_schema,
3485
- logger: i
3486
- }), S.startFlow(u));
3487
- } catch (s) {
3488
- i.error("Error starting flow", s);
3489
- }
3490
- },
3491
- close: async () => {
3492
- typeof window > "u" || (S.cancelCurrentFlow(), i.info("Closed flow from an external source"));
3493
- }
3494
- };
3495
- });
3496
- export {
3497
- Vl as A,
3498
- ia as B,
3499
- Cl as C,
3500
- Ul as D,
3501
- Ll as E,
3502
- bt as F,
3503
- El as G,
3504
- Il as H,
3505
- zl as I,
3506
- Al as J,
3507
- As as K,
3508
- sr as L,
3509
- ra as M,
3510
- Fe as N,
3511
- Nl as O,
3512
- Dl as P,
3513
- Tl as Q,
3514
- Ml as R,
3515
- jl as S,
3516
- Fl as T,
3517
- il as U,
3518
- ze as V,
3519
- At as W,
3520
- Wl as X,
3521
- ct as _,
3522
- Bl as a,
3523
- Pr as b,
3524
- Rl as c,
3525
- Ur as d,
3526
- De as e,
3527
- lr as f,
3528
- ms as g,
3529
- ur as h,
3530
- Kl as i,
3531
- Pt as j,
3532
- Hl as k,
3533
- Fs as l,
3534
- Y as m,
3535
- Ts as n,
3536
- f as o,
3537
- pr as p,
3538
- nt as q,
3539
- R as r,
3540
- S as s,
3541
- Pl as t,
3542
- Er as u,
3543
- M as v,
3544
- Ol as w,
3545
- Ws as x,
3546
- Tt as y,
3547
- ql as z
3548
- };