@inploi/plugin-chatbot 14.18.1 → 14.19.0

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