@inploi/plugin-chatbot 14.18.0 → 14.18.2

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