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