@inploi/plugin-chatbot 14.2.0 → 14.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +6 -6
- package/cdn/style.css +1 -1
- package/dist/chatbot-body-3bc5386e.cjs +5 -0
- package/dist/{chatbot-body-2d2c07ed.js → chatbot-body-6b8fe3ae.js} +1662 -1562
- package/dist/chatbot.idb.d.ts +2 -1
- package/dist/chatbot.state.d.ts +12 -0
- package/dist/components/chat-input/chat-input.d.ts +3 -4
- package/dist/components/chat-input/chat-input.file.d.ts +1 -1
- package/dist/components/chat-input/chat-input.submit.d.ts +2 -0
- package/dist/components/chat-input/chat-input.submit.test.d.ts +1 -0
- package/dist/i18n.d.ts +30 -0
- package/dist/index-7898ce86.cjs +5 -0
- package/dist/{index-ec4bd865.js → index-d67c1a3c.js} +193 -184
- package/dist/interpreter.d.ts +11 -0
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/chatbot-body-e3769bf3.cjs +0 -5
- package/dist/index-267eafbe.cjs +0 -5
package/dist/chatbot.idb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Flow } from './chatbot.api';
|
|
2
|
-
import { ApplicationRecovery, ChatMessage, KeyToSubmissionMap, StartedFlow } from './chatbot.state';
|
|
2
|
+
import { ApplicationRecovery, ChatMessage, KeyToSubmissionMap, StartedFlow, SubmitCooldown } from './chatbot.state';
|
|
3
3
|
import { ChatInput } from './components/chat-input/chat-input';
|
|
4
4
|
|
|
5
5
|
export declare const idb: {
|
|
@@ -8,6 +8,7 @@ export declare const idb: {
|
|
|
8
8
|
nodeHistory: string[];
|
|
9
9
|
startedWriteNodeIds?: string[];
|
|
10
10
|
unconfirmedAttemptKeys?: string[];
|
|
11
|
+
submitCooldown?: SubmitCooldown;
|
|
11
12
|
applicationRecovery?: ApplicationRecovery;
|
|
12
13
|
flowSessionId: string;
|
|
13
14
|
isFinished: boolean;
|
package/dist/chatbot.state.d.ts
CHANGED
|
@@ -401,6 +401,12 @@ export type ApplicationRecovery = {
|
|
|
401
401
|
fileQuestionNodeId: string;
|
|
402
402
|
submitNodeId: string;
|
|
403
403
|
};
|
|
404
|
+
export type SubmitCooldown = {
|
|
405
|
+
key: string;
|
|
406
|
+
until: number;
|
|
407
|
+
/** Consecutive throttled outcomes behind this wait, when it follows a throttle; it sets the next one (PROD-6636). */
|
|
408
|
+
throttles?: number;
|
|
409
|
+
};
|
|
404
410
|
/** Dynamic part of a flow */
|
|
405
411
|
export type FlowStateData = {
|
|
406
412
|
/** History of messages left in the chat */
|
|
@@ -424,6 +430,12 @@ export type FlowStateData = {
|
|
|
424
430
|
* it is browser-local, like the barrier.
|
|
425
431
|
*/
|
|
426
432
|
unconfirmedAttemptKeys?: string[];
|
|
433
|
+
/**
|
|
434
|
+
* When submit becomes available again after an unsuccessful attempt, for the attempt key above (PROD-7112),
|
|
435
|
+
* and how many throttles in a row led to it (PROD-6636). Cleared by a success. Kept across Restart so neither
|
|
436
|
+
* Restart nor a reload skips the wait or resets the escalation; browser-local, like the barrier.
|
|
437
|
+
*/
|
|
438
|
+
submitCooldown?: SubmitCooldown;
|
|
427
439
|
applicationRecovery?: ApplicationRecovery;
|
|
428
440
|
/** Needs to be separate because a node can have many inputs */
|
|
429
441
|
currentInput: ChatInput | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Logger } from '@inploi/sdk';
|
|
1
|
+
import { AnalyticsService, Logger } from '@inploi/sdk';
|
|
2
2
|
import { DistributivePick } from '../../chatbot.utils';
|
|
3
3
|
import { FlowSubmission } from '../../chatbot.state';
|
|
4
4
|
import { AddressInputPayload } from './chat-input.address';
|
|
@@ -15,9 +15,8 @@ export type ChatInputProps<T extends ChatbotInput> = {
|
|
|
15
15
|
onSubmitSuccess: (value: T['submission']) => void;
|
|
16
16
|
input: Omit<T, 'submission'>;
|
|
17
17
|
logger: Logger;
|
|
18
|
+
analytics: Pick<AnalyticsService, 'log'>;
|
|
18
19
|
};
|
|
19
20
|
export type ChatbotInput = TextPayload | NumberPayload | MultipleChoicePayload | BooleanChoicePayload | FilePayload | SubmitPayload | AddressInputPayload | PhonePayload;
|
|
20
21
|
export type ChatInput = DistributivePick<ChatbotInput, 'type' | 'config' | 'key'>;
|
|
21
|
-
export declare const ChatInput: ({ logger }:
|
|
22
|
-
logger: Logger;
|
|
23
|
-
}) => import("preact").JSX.Element;
|
|
22
|
+
export declare const ChatInput: ({ logger, analytics }: Pick<ChatInputProps<ChatbotInput>, "logger" | "analytics">) => import("preact").JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type FilePayload = {
|
|
|
16
16
|
export declare const FileThumbnail: ({ file, class: className, ...props }: ComponentProps<"div"> & {
|
|
17
17
|
file: Pick<FileToUpload, "name" | "sizeKb">;
|
|
18
18
|
}) => import("preact").JSX.Element;
|
|
19
|
-
export declare const ChatInputFile: ({ input, onSubmitSuccess }: ChatInputProps<FilePayload>) => import("preact").JSX.Element;
|
|
19
|
+
export declare const ChatInputFile: ({ input, onSubmitSuccess, analytics }: ChatInputProps<FilePayload>) => import("preact").JSX.Element;
|
|
@@ -2,8 +2,10 @@ import { ChatInputProps } from './chat-input';
|
|
|
2
2
|
|
|
3
3
|
export type SubmitPayload = {
|
|
4
4
|
type: 'submit';
|
|
5
|
+
/** `availableAt` (epoch ms) keeps submit unavailable until then, after an unsuccessful attempt (PROD-7112). */
|
|
5
6
|
config: {
|
|
6
7
|
label: string;
|
|
8
|
+
availableAt?: number;
|
|
7
9
|
};
|
|
8
10
|
key: string | undefined;
|
|
9
11
|
submission: null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/i18n.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ export declare const TranslationProvider: (props: {
|
|
|
15
15
|
readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
|
|
16
16
|
readonly 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.";
|
|
17
17
|
readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
|
|
18
|
+
readonly submission_cooldown: {
|
|
19
|
+
readonly one: "Submit will be available again in {{count}} second.";
|
|
20
|
+
readonly other: "Submit will be available again in {{count}} seconds.";
|
|
21
|
+
};
|
|
22
|
+
readonly submission_cooldown_ready: "Submit is available again.";
|
|
18
23
|
readonly submission_still_working: "Still working — the employer's application system is taking a little longer than usual. Please keep this window open.";
|
|
19
24
|
readonly file_preparing: {
|
|
20
25
|
readonly one: "Preparing your file…";
|
|
@@ -109,6 +114,11 @@ export declare const TranslationProvider: (props: {
|
|
|
109
114
|
readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
|
|
110
115
|
readonly 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.";
|
|
111
116
|
readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
|
|
117
|
+
readonly submission_cooldown: {
|
|
118
|
+
readonly one: "Submit will be available again in {{count}} second.";
|
|
119
|
+
readonly other: "Submit will be available again in {{count}} seconds.";
|
|
120
|
+
};
|
|
121
|
+
readonly submission_cooldown_ready: "Submit is available again.";
|
|
112
122
|
readonly submission_still_working: "Still working — the employer's application system is taking a little longer than usual. Please keep this window open.";
|
|
113
123
|
readonly file_preparing: {
|
|
114
124
|
readonly one: "Preparing your file…";
|
|
@@ -200,6 +210,11 @@ export declare const TranslationProvider: (props: {
|
|
|
200
210
|
readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
|
|
201
211
|
readonly 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.";
|
|
202
212
|
readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
|
|
213
|
+
readonly submission_cooldown: {
|
|
214
|
+
readonly one: "Submit will be available again in {{count}} second.";
|
|
215
|
+
readonly other: "Submit will be available again in {{count}} seconds.";
|
|
216
|
+
};
|
|
217
|
+
readonly submission_cooldown_ready: "Submit is available again.";
|
|
203
218
|
readonly submission_still_working: "Still working — the employer's application system is taking a little longer than usual. Please keep this window open.";
|
|
204
219
|
readonly file_preparing: {
|
|
205
220
|
readonly one: "Preparing your file…";
|
|
@@ -294,6 +309,11 @@ export declare const TranslationProvider: (props: {
|
|
|
294
309
|
readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
|
|
295
310
|
readonly 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.";
|
|
296
311
|
readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
|
|
312
|
+
readonly submission_cooldown: {
|
|
313
|
+
readonly one: "Submit will be available again in {{count}} second.";
|
|
314
|
+
readonly other: "Submit will be available again in {{count}} seconds.";
|
|
315
|
+
};
|
|
316
|
+
readonly submission_cooldown_ready: "Submit is available again.";
|
|
297
317
|
readonly submission_still_working: "Still working — the employer's application system is taking a little longer than usual. Please keep this window open.";
|
|
298
318
|
readonly file_preparing: {
|
|
299
319
|
readonly one: "Preparing your file…";
|
|
@@ -385,6 +405,11 @@ export declare const TranslationProvider: (props: {
|
|
|
385
405
|
readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
|
|
386
406
|
readonly 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.";
|
|
387
407
|
readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
|
|
408
|
+
readonly submission_cooldown: {
|
|
409
|
+
readonly one: "Submit will be available again in {{count}} second.";
|
|
410
|
+
readonly other: "Submit will be available again in {{count}} seconds.";
|
|
411
|
+
};
|
|
412
|
+
readonly submission_cooldown_ready: "Submit is available again.";
|
|
388
413
|
readonly submission_still_working: "Still working — the employer's application system is taking a little longer than usual. Please keep this window open.";
|
|
389
414
|
readonly file_preparing: {
|
|
390
415
|
readonly one: "Preparing your file…";
|
|
@@ -477,6 +502,11 @@ export declare const TranslationProvider: (props: {
|
|
|
477
502
|
readonly submission_failed: "We couldn't submit your application. Choose Restart to try again.";
|
|
478
503
|
readonly 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.";
|
|
479
504
|
readonly submission_unreadable_document: "We couldn't read that file. Please upload a different one.";
|
|
505
|
+
readonly submission_cooldown: {
|
|
506
|
+
readonly one: "Submit will be available again in {{count}} second.";
|
|
507
|
+
readonly other: "Submit will be available again in {{count}} seconds.";
|
|
508
|
+
};
|
|
509
|
+
readonly submission_cooldown_ready: "Submit is available again.";
|
|
480
510
|
readonly submission_still_working: "Still working — the employer's application system is taking a little longer than usual. Please keep this window open.";
|
|
481
511
|
readonly file_preparing: {
|
|
482
512
|
readonly one: "Preparing your file…";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const St=require("@inploi/sdk");var Z;function Ii(t){return{lang:(t==null?void 0:t.lang)??(Z==null?void 0:Z.lang),message:t==null?void 0:t.message,abortEarly:(t==null?void 0:t.abortEarly)??(Z==null?void 0:Z.abortEarly),abortPipeEarly:(t==null?void 0:t.abortPipeEarly)??(Z==null?void 0:Z.abortPipeEarly)}}var oe;function Ao(t){return oe==null?void 0:oe.get(t)}var ae;function Do(t){return ae==null?void 0:ae.get(t)}var re;function Fo(t,e){var i;return(i=re==null?void 0:re.get(t))==null?void 0:i.get(e)}function zi(t){var i,o;let e=typeof t;return e==="string"?`"${t}"`:e==="number"||e==="bigint"||e==="boolean"?`${t}`:e==="object"||e==="function"?(t&&((o=(i=Object.getPrototypeOf(t))==null?void 0:i.constructor)==null?void 0:o.name))??"null":e}function G(t,e,i,o,a){let r=a&&"input"in a?a.input:i.value,n=(a==null?void 0:a.expected)??t.expects??null,s=(a==null?void 0:a.received)??zi(r),c={kind:t.kind,type:t.type,input:r,expected:n,received:s,message:`Invalid ${e}: ${n?`Expected ${n} but r`:"R"}eceived ${s}`,requirement:t.requirement,path:a==null?void 0:a.path,issues:a==null?void 0:a.issues,lang:o.lang,abortEarly:o.abortEarly,abortPipeEarly:o.abortPipeEarly},d=t.kind==="schema",u=(a==null?void 0:a.message)??t.message??Fo(t.reference,c.lang)??(d?Do(c.lang):null)??o.message??Ao(c.lang);u!==void 0&&(c.message=typeof u=="function"?u(c):u),d&&(i.typed=!1),i.issues?i.issues.push(c):i.issues=[c]}function B(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},Ii())}}}function Bo(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function Mo(t,e){let i=[...new Set(t)];return i.length>1?`(${i.join(` ${e} `)})`:i[0]??"never"}function Oi(t){return{kind:"transformation",type:"transform",reference:Oi,async:!1,operation:t,"~run"(e){return e.value=this.operation(e.value),e}}}function Lo(t,e,i){return typeof t.fallback=="function"?t.fallback(e,i):t.fallback}function Ne(t,e,i){return typeof t.default=="function"?t.default(e,i):t.default}function ji(){return{kind:"schema",type:"any",reference:ji,expects:"any",async:!1,get"~standard"(){return B(this)},"~run"(t){return t.typed=!0,t}}}function Ni(t,e){return{kind:"schema",type:"array",reference:Ni,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return B(this)},"~run"(i,o){var r;let a=i.value;if(Array.isArray(a)){i.typed=!0,i.value=[];for(let n=0;n<a.length;n++){let s=a[n],c=this.item["~run"]({value:s},o);if(c.issues){let d={type:"array",origin:"value",input:a,key:n,value:s};for(let u of c.issues)u.path?u.path.unshift(d):u.path=[d],(r=i.issues)==null||r.push(u);if(i.issues||(i.issues=c.issues),o.abortEarly){i.typed=!1;break}}c.typed||(i.typed=!1),i.value.push(c.value)}}else G(this,"type",i,o);return i}}}function Ae(t){return{kind:"schema",type:"boolean",reference:Ae,expects:"boolean",async:!1,message:t,get"~standard"(){return B(this)},"~run"(e,i){return typeof e.value=="boolean"?e.typed=!0:G(this,"type",e,i),e}}}function Mt(t,e){return{kind:"schema",type:"literal",reference:Mt,expects:zi(t),async:!1,literal:t,message:e,get"~standard"(){return B(this)},"~run"(i,o){return i.value===this.literal?i.typed=!0:G(this,"type",i,o),i}}}function Lt(t,e){return{kind:"schema",type:"nullable",reference:Lt,expects:`(${t.expects} | null)`,async:!1,wrapped:t,default:e,get"~standard"(){return B(this)},"~run"(i,o){return i.value===null&&(this.default!==void 0&&(i.value=Ne(this,i,o)),i.value===null)?(i.typed=!0,i):this.wrapped["~run"](i,o)}}}function Ht(t){return{kind:"schema",type:"number",reference:Ht,expects:"number",async:!1,message:t,get"~standard"(){return B(this)},"~run"(e,i){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:G(this,"type",e,i),e}}}function D(t,e){return{kind:"schema",type:"object",reference:D,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return B(this)},"~run"(i,o){var r;let a=i.value;if(a&&typeof a=="object"){i.typed=!0,i.value={};for(let n in this.entries){let s=this.entries[n];if(n in a||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){let c=n in a?a[n]:Ne(s),d=s["~run"]({value:c},o);if(d.issues){let u={type:"object",origin:"value",input:a,key:n,value:c};for(let l of d.issues)l.path?l.path.unshift(u):l.path=[u],(r=i.issues)==null||r.push(l);if(i.issues||(i.issues=d.issues),o.abortEarly){i.typed=!1;break}}d.typed||(i.typed=!1),i.value[n]=d.value}else if(s.fallback!==void 0)i.value[n]=Lo(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(G(this,"key",i,o,{input:void 0,expected:`"${n}"`,path:[{type:"object",origin:"key",input:a,key:n,value:a[n]}]}),o.abortEarly))break}}else G(this,"type",i,o);return i}}}function M(t,e){return{kind:"schema",type:"optional",reference:M,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return B(this)},"~run"(i,o){return i.value===void 0&&(this.default!==void 0&&(i.value=Ne(this,i,o)),i.value===void 0)?(i.typed=!0,i):this.wrapped["~run"](i,o)}}}function Ai(t,e,i){return{kind:"schema",type:"record",reference:Ai,expects:"Object",async:!1,key:t,value:e,message:i,get"~standard"(){return B(this)},"~run"(o,a){var n,s;let r=o.value;if(r&&typeof r=="object"){o.typed=!0,o.value={};for(let c in r)if(Bo(r,c)){let d=r[c],u=this.key["~run"]({value:c},a);if(u.issues){let w={type:"object",origin:"key",input:r,key:c,value:d};for(let g of u.issues)g.path=[w],(n=o.issues)==null||n.push(g);if(o.issues||(o.issues=u.issues),a.abortEarly){o.typed=!1;break}}let l=this.value["~run"]({value:d},a);if(l.issues){let w={type:"object",origin:"value",input:r,key:c,value:d};for(let g of l.issues)g.path?g.path.unshift(w):g.path=[w],(s=o.issues)==null||s.push(g);if(o.issues||(o.issues=l.issues),a.abortEarly){o.typed=!1;break}}(!u.typed||!l.typed)&&(o.typed=!1),u.typed&&(o.value[u.value]=l.value)}}else G(this,"type",o,a);return o}}}function L(t){return{kind:"schema",type:"string",reference:L,expects:"string",async:!1,message:t,get"~standard"(){return B(this)},"~run"(e,i){return typeof e.value=="string"?e.typed=!0:G(this,"type",e,i),e}}}function Ze(t){let e;if(t)for(let i of t)e?e.push(...i.issues):e=i.issues;return e}function De(t,e){return{kind:"schema",type:"union",reference:De,expects:Mo(t.map(i=>i.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return B(this)},"~run"(i,o){let a,r,n;for(let s of this.options){let c=s["~run"]({value:i.value},o);if(c.typed)if(c.issues)r?r.push(c):r=[c];else{a=c;break}else n?n.push(c):n=[c]}if(a)return a;if(r){if(r.length===1)return r[0];G(this,"type",i,o,{issues:Ze(r)}),i.typed=!0}else{if((n==null?void 0:n.length)===1)return n[0];G(this,"type",i,o,{issues:Ze(n)})}return i}}}function Rt(){return{kind:"schema",type:"unknown",reference:Rt,expects:"unknown",async:!1,get"~standard"(){return B(this)},"~run"(t){return t.typed=!0,t}}}function Ho(...t){return{...t[0],pipe:t,get"~standard"(){return B(this)},"~run"(e,i){for(let o of t)if(o.kind!=="metadata"){if(e.issues&&(o.kind==="schema"||o.kind==="transformation")){e.typed=!1;break}(!e.issues||!i.abortEarly&&!i.abortPipeEarly)&&(e=o["~run"](e,i))}return e}}}function Di(t,e,i){let o=t["~run"]({value:e},Ii(i));return{typed:o.typed,success:!o.issues,output:o.value,issues:o.issues}}var Ro=t=>({ok:!0,err:!1,val:t}),Uo=t=>({err:!0,ok:!1,val:t}),Fe=t=>t.filter(e=>(e.type==="question-boolean"||e.type==="question-enum")&&!!e.data.preApply);function Fi(t,e,i){var n,s;let o=t.find(c=>c.type==="pre-apply-result");if(!o)return;let a=(n=e[o.data.participationKey])==null?void 0:n.value,r={};if(a===!0)for(let c of Fe(t)){let d=(s=e[c.data.key])==null?void 0:s.value;Array.isArray(d)&&d.length===1&&(d=d[0]),(typeof d=="boolean"||typeof d=="string")&&(r[c.data.key]=d)}return{node_id:o.id,flow_session_id:i,participation:a,answers:r}}function Wo(t,e){let i=Fi(t,e,""),o=Fe(t).map(r=>{let n=r.data.preApply,s=i==null?void 0:i.answers[r.data.key],c=r.type==="question-boolean"?typeof s=="boolean":r.data.options.some(d=>d.value===s);return{key:r.data.key,severity:n.severity,message:n.mismatchMessage,matched:c&&s===n.expectedValue,valid:c}}),a=(i==null?void 0:i.participation)===!1?"skipped":(i==null?void 0:i.participation)===!0&&o.length>0&&o.every(r=>r.valid)?"completed":"unavailable";return{status:a,hasHardConcerns:a==="completed"?o.some(r=>!r.matched&&r.severity==="hard"):null,hasAdvisoryConcerns:a==="completed"?o.some(r=>!r.matched&&r.severity==="advisory"):null,answers:a==="completed"?o:[]}}function Vo(t,e){let i=new Set(Fe(t).map(o=>o.data.key));for(let o of t)o.type==="pre-apply-result"&&(i.add(o.data.key),i.add(o.data.participationKey));return Object.fromEntries(Object.entries(e).filter(([o])=>!i.has(o)))}var Be=(t,e)=>{if(e.length===0)return;let i=t;for(let o of e){if(i==null||typeof i!="object")return;i=i[o]}return i},Yo=(t,e="all")=>{let i={},o=e==="all"?null:new Set(e);for(let a in t){let r=t[a];r&&(o&&!o.has(a)||(i[a]=r.value))}return i},Ko=({key:t,submissions:e})=>{var o;let i=(o=e[t])==null?void 0:o.value;if(typeof i!="string"&&typeof i!="number")throw new Error(`Submission at “${t}” is not a string or number`);return i},qo=({key:t,path:e,submissions:i,context:o})=>{if(t==="$context"){if(!e)return;let a=Be(o,e);switch(typeof a){case"string":return{type:"string",value:a};case"number":return{type:"number",value:a};case"boolean":return{type:"boolean",value:a};default:console.warn(`Unexpected type for $context.${e.join(".")}`,a);return}}return i[t]},Go=t=>{let e=t.split(".").pop();return e?Ro(e?"."+e:""):Uo("No file extension found")},Zo=(t,e)=>{if(e.length===0)return!0;let i=e.map(o=>o.toLowerCase());return t.every(o=>{let a=Go(o.name);return a.ok&&i.includes(a.val.toLowerCase())})},Xo=t=>t<=1e3?`${Math.round(t)}KB`:t<1e3*10?`${(t/1e3).toFixed(1)}MB`:`${Math.round(t/1e3)}MB`,Jo=t=>typeof t=="string"?t:`+${t.countryCode} ${t.phoneNumber}`,Qo=D({integration_response:D({data:D({redirect_url:L(),message:M(Lt(L())),button_text:M(Lt(L()))})})}),ta=t=>Di(Qo,t).success,ea=D({integration_response:D({status:M(Rt()),error:D({message:L(),data:M(Rt())})})}),ia=t=>Di(ea,t).success;D({success:Mt(!1),message:M(Rt())});var oa=(t,e)=>{if(!ia(t))return;let i=t.integration_response,o=i.error.data,a=typeof o=="object"&&o!==null?o:{},r=g=>typeof a[g]=="string"?a[g]:void 0,n=g=>typeof a[g]=="boolean"?a[g]:void 0,s=g=>{let h=a[g];return Number.isSafeInteger(h)&&h>=0?h:void 0},c=typeof i.status=="number"?i.status:e,d=r("phase"),u=r("verdict"),l=r("code"),w=c===409&&d==="submit"&&u==="confirmed"?"duplicate":c===410&&l==="job_closed"?"closed":d==="submit"&&u==="unknown"?"unknown":void 0;return{message:i.error.message,status:c,phase:d,providerStatus:s("provider_status"),retryAfterSeconds:s("retry_after_seconds"),retryable:n("retryable"),verdict:u,code:l,field:r("field"),outcome:w}},aa=t=>{if(typeof t!="object"||t===null)return null;let e=t.integration_response;if(typeof e!="object"||e===null)return null;let i=e;if(typeof i.status!="number"||i.service!==void 0&&typeof i.service!="string")return null;let o="data"in i,a=i.error,r=typeof a=="object"&&a!==null&&typeof a.message=="string"&&"data"in a;if(!o&&!r)return null;let n=o?i.data:a.data??null;return{service:i.service??"INVALID_SERVICE",response:{status:i.status,payload:n}}},ra=({context:t,schema:e,logger:i})=>{if(e)for(let o in e){let a=e[o];if(!a)continue;let r=Be(t,o.split("."));if(a.required&&r==null){let n=`Configuration error in context: ${o} is required`;throw i.error(n),new Error(n)}if(r!=null)switch(a.type){case"number":if(typeof r!="number")throw new Error(`Configuration error in context: ${o} is not a number`);break;case"string":if(typeof r!="string")throw new Error(`Configuration error in context: ${o} is not a string`);break;default:a.type}}},Pt,f,Bi,Mi,lt,Xe,Li,ge,Hi,ht={},Ri=[],na=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xt=Array.isArray;function X(t,e){for(var i in e)t[i]=e[i];return t}function Ui(t){var e=t.parentNode;e&&e.removeChild(t)}function F(t,e,i){var o,a,r,n={};for(r in e)r=="key"?o=e[r]:r=="ref"?a=e[r]:n[r]=e[r];if(arguments.length>2&&(n.children=arguments.length>3?Pt.call(arguments,2):i),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)n[r]===void 0&&(n[r]=t.defaultProps[r]);return xt(t,n,o,a,null)}function xt(t,e,i,o,a){var r={type:t,props:e,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++Bi};return a==null&&f.vnode!=null&&f.vnode(r),r}function sa(){return{current:null}}function H(t){return t.children}function R(t,e){this.props=t,this.context=e}function Ut(t,e){if(e==null)return t.__?Ut(t.__,t.__.__k.indexOf(t)+1):null;for(var i;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null)return i.__e;return typeof t.type=="function"?Ut(t):null}function Wi(t){var e,i;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null){t.__e=t.__c.base=i.__e;break}return Wi(t)}}function be(t){(!t.__d&&(t.__d=!0)&<.push(t)&&!Wt.__r++||Xe!==f.debounceRendering)&&((Xe=f.debounceRendering)||Li)(Wt)}function Wt(){var t,e,i,o,a,r,n,s,c;for(lt.sort(ge);t=lt.shift();)t.__d&&(e=lt.length,o=void 0,a=void 0,r=void 0,s=(n=(i=t).__v).__e,(c=i.__P)&&(o=[],a=[],(r=X({},n)).__v=n.__v+1,Me(c,n,r,i.__n,c.ownerSVGElement!==void 0,n.__h!=null?[s]:null,o,s??Ut(n),n.__h,a),qi(o,n,a),n.__e!=s&&Wi(n)),lt.length>e&<.sort(ge));Wt.__r=0}function Vi(t,e,i,o,a,r,n,s,c,d,u){var l,w,g,h,b,j,x,v,_,y,E=0,T=o&&o.__k||Ri,U=T.length,W=U,z=e.length;for(i.__k=[],l=0;l<z;l++)(h=i.__k[l]=(h=e[l])==null||typeof h=="boolean"||typeof h=="function"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?xt(null,h,null,null,h):Xt(h)?xt(H,{children:h},null,null,null):h.__b>0?xt(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null&&(h.__=i,h.__b=i.__b+1,(v=la(h,T,x=l+E,W))===-1?g=ht:(g=T[v]||ht,T[v]=void 0,W--),Me(t,h,g,a,r,n,s,c,d,u),b=h.__e,(w=h.ref)&&g.ref!=w&&(g.ref&&Le(g.ref,null,h),u.push(w,h.__c||b,h)),b!=null&&(j==null&&(j=b),y=!(_=g===ht||g.__v===null)&&v===x,_?v==-1&&E--:v!==x&&(v===x+1?(E++,y=!0):v>x?W>z-x?(E+=v-x,y=!0):E--:E=v<x&&v==x-1?v-x:0),x=l+E,y=y||v==l&&!_,typeof h.type!="function"||v===x&&g.__k!==h.__k?typeof h.type=="function"||y?h.__d!==void 0?(c=h.__d,h.__d=void 0):c=b.nextSibling:c=Ki(t,b,c):c=Yi(h,c,t),typeof i.type=="function"&&(i.__d=c)));for(i.__e=j,l=U;l--;)T[l]!=null&&(typeof i.type=="function"&&T[l].__e!=null&&T[l].__e==i.__d&&(i.__d=T[l].__e.nextSibling),Gi(T[l],T[l]))}function Yi(t,e,i){for(var o,a=t.__k,r=0;a&&r<a.length;r++)(o=a[r])&&(o.__=t,e=typeof o.type=="function"?Yi(o,e,i):Ki(i,o.__e,e));return e}function Q(t,e){return e=e||[],t==null||typeof t=="boolean"||(Xt(t)?t.some(function(i){Q(i,e)}):e.push(t)),e}function Ki(t,e,i){return i==null||i.parentNode!==t?t.insertBefore(e,null):e==i&&e.parentNode!=null||t.insertBefore(e,i),e.nextSibling}function la(t,e,i,o){var a=t.key,r=t.type,n=i-1,s=i+1,c=e[i];if(c===null||c&&a==c.key&&r===c.type)return i;if(o>(c!=null?1:0))for(;n>=0||s<e.length;){if(n>=0){if((c=e[n])&&a==c.key&&r===c.type)return n;n--}if(s<e.length){if((c=e[s])&&a==c.key&&r===c.type)return s;s++}}return-1}function ca(t,e,i,o,a){var r;for(r in i)r==="children"||r==="key"||r in e||Vt(t,r,null,i[r],o);for(r in e)a&&typeof e[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||i[r]===e[r]||Vt(t,r,e[r],i[r],o)}function Je(t,e,i){e[0]==="-"?t.setProperty(e,i??""):t[e]=i==null?"":typeof i!="number"||na.test(e)?i:i+"px"}function Vt(t,e,i,o,a){var r;t:if(e==="style")if(typeof i=="string")t.style.cssText=i;else{if(typeof o=="string"&&(t.style.cssText=o=""),o)for(e in o)i&&e in i||Je(t.style,e,"");if(i)for(e in i)o&&i[e]===o[e]||Je(t.style,e,i[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=i,i?o||t.addEventListener(e,r?ti:Qe,r):t.removeEventListener(e,r?ti:Qe,r);else if(e!=="dangerouslySetInnerHTML"){if(a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e in t)try{t[e]=i??"";break t}catch{}typeof i=="function"||(i==null||i===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,i))}}function Qe(t){return this.l[t.type+!1](f.event?f.event(t):t)}function ti(t){return this.l[t.type+!0](f.event?f.event(t):t)}function Me(t,e,i,o,a,r,n,s,c,d){var u,l,w,g,h,b,j,x,v,_,y,E,T,U,W,z=e.type;if(e.constructor!==void 0)return null;i.__h!=null&&(c=i.__h,s=e.__e=i.__e,e.__h=null,r=[s]),(u=f.__b)&&u(e);try{t:if(typeof z=="function"){if(x=e.props,v=(u=z.contextType)&&o[u.__c],_=u?v?v.props.value:u.__:o,i.__c?j=(l=e.__c=i.__c).__=l.__E:("prototype"in z&&z.prototype.render?e.__c=l=new z(x,_):(e.__c=l=new R(x,_),l.constructor=z,l.render=ua),v&&v.sub(l),l.props=x,l.state||(l.state={}),l.context=_,l.__n=o,w=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),z.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=X({},l.__s)),X(l.__s,z.getDerivedStateFromProps(x,l.__s))),g=l.props,h=l.state,l.__v=e,w)z.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(z.getDerivedStateFromProps==null&&x!==g&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(x,_),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(x,l.__s,_)===!1||e.__v===i.__v)){for(e.__v!==i.__v&&(l.props=x,l.state=l.__s,l.__d=!1),e.__e=i.__e,e.__k=i.__k,e.__k.forEach(function(zt){zt&&(zt.__=e)}),y=0;y<l._sb.length;y++)l.__h.push(l._sb[y]);l._sb=[],l.__h.length&&n.push(l);break t}l.componentWillUpdate!=null&&l.componentWillUpdate(x,l.__s,_),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(g,h,b)})}if(l.context=_,l.props=x,l.__P=t,l.__e=!1,E=f.__r,T=0,"prototype"in z&&z.prototype.render){for(l.state=l.__s,l.__d=!1,E&&E(e),u=l.render(l.props,l.state,l.context),U=0;U<l._sb.length;U++)l.__h.push(l._sb[U]);l._sb=[]}else do l.__d=!1,E&&E(e),u=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++T<25);l.state=l.__s,l.getChildContext!=null&&(o=X(X({},o),l.getChildContext())),w||l.getSnapshotBeforeUpdate==null||(b=l.getSnapshotBeforeUpdate(g,h)),Vi(t,Xt(W=u!=null&&u.type===H&&u.key==null?u.props.children:u)?W:[W],e,i,o,a,r,n,s,c,d),l.base=e.__e,e.__h=null,l.__h.length&&n.push(l),j&&(l.__E=l.__=null)}else r==null&&e.__v===i.__v?(e.__k=i.__k,e.__e=i.__e):e.__e=da(i.__e,e,i,o,a,r,n,c,d);(u=f.diffed)&&u(e)}catch(zt){e.__v=null,(c||r!=null)&&(e.__e=s,e.__h=!!c,r[r.indexOf(s)]=null),f.__e(zt,e,i)}}function qi(t,e,i){for(var o=0;o<i.length;o++)Le(i[o],i[++o],i[++o]);f.__c&&f.__c(e,t),t.some(function(a){try{t=a.__h,a.__h=[],t.some(function(r){r.call(a)})}catch(r){f.__e(r,a.__v)}})}function da(t,e,i,o,a,r,n,s,c){var d,u,l,w=i.props,g=e.props,h=e.type,b=0;if(h==="svg"&&(a=!0),r!=null){for(;b<r.length;b++)if((d=r[b])&&"setAttribute"in d==!!h&&(h?d.localName===h:d.nodeType===3)){t=d,r[b]=null;break}}if(t==null){if(h===null)return document.createTextNode(g);t=a?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,g.is&&g),r=null,s=!1}if(h===null)w===g||s&&t.data===g||(t.data=g);else{if(r=r&&Pt.call(t.childNodes),u=(w=i.props||ht).dangerouslySetInnerHTML,l=g.dangerouslySetInnerHTML,!s){if(r!=null)for(w={},b=0;b<t.attributes.length;b++)w[t.attributes[b].name]=t.attributes[b].value;(l||u)&&(l&&(u&&l.__html==u.__html||l.__html===t.innerHTML)||(t.innerHTML=l&&l.__html||""))}if(ca(t,g,w,a,s),l)e.__k=[];else if(Vi(t,Xt(b=e.props.children)?b:[b],e,i,o,a&&h!=="foreignObject",r,n,r?r[0]:i.__k&&Ut(i,0),s,c),r!=null)for(b=r.length;b--;)r[b]!=null&&Ui(r[b]);s||("value"in g&&(b=g.value)!==void 0&&(b!==t.value||h==="progress"&&!b||h==="option"&&b!==w.value)&&Vt(t,"value",b,w.value,!1),"checked"in g&&(b=g.checked)!==void 0&&b!==t.checked&&Vt(t,"checked",b,w.checked,!1))}return t}function Le(t,e,i){try{typeof t=="function"?t(e):t.current=e}catch(o){f.__e(o,i)}}function Gi(t,e,i){var o,a;if(f.unmount&&f.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||Le(o,null,e)),(o=t.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){f.__e(r,e)}o.base=o.__P=null,t.__c=void 0}if(o=t.__k)for(a=0;a<o.length;a++)o[a]&&Gi(o[a],e,i||typeof t.type!="function");i||t.__e==null||Ui(t.__e),t.__=t.__e=t.__d=void 0}function ua(t,e,i){return this.constructor(t,i)}function ut(t,e,i){var o,a,r,n;f.__&&f.__(t,e),a=(o=typeof i=="function")?null:i&&i.__k||e.__k,r=[],n=[],Me(e,t=(!o&&i||e).__k=F(H,null,[t]),a||ht,ht,e.ownerSVGElement!==void 0,!o&&i?[i]:a?null:e.firstChild?Pt.call(e.childNodes):null,r,!o&&i?i:a?a.__e:e.firstChild,o,n),qi(r,t,n)}function Zi(t,e){ut(t,e,Zi)}function pa(t,e,i){var o,a,r,n,s=X({},t.props);for(r in t.type&&t.type.defaultProps&&(n=t.type.defaultProps),e)r=="key"?o=e[r]:r=="ref"?a=e[r]:s[r]=e[r]===void 0&&n!==void 0?n[r]:e[r];return arguments.length>2&&(s.children=arguments.length>3?Pt.call(arguments,2):i),xt(t.type,s,o||t.key,a||t.ref,null)}function Xi(t,e){var i={__c:e="__cC"+Hi++,__:t,Consumer:function(o,a){return o.children(a)},Provider:function(o){var a,r;return this.getChildContext||(a=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&a.some(function(s){s.__e=!0,be(s)})},this.sub=function(n){a.push(n);var s=n.componentWillUnmount;n.componentWillUnmount=function(){a.splice(a.indexOf(n),1),s&&s.call(n)}}),o.children}};return i.Provider.__=i.Consumer.contextType=i}Pt=Ri.slice,f={__e:function(t,e,i,o){for(var a,r,n;e=e.__;)if((a=e.__c)&&!a.__)try{if((r=a.constructor)&&r.getDerivedStateFromError!=null&&(a.setState(r.getDerivedStateFromError(t)),n=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(t,o||{}),n=a.__d),n)return a.__E=a}catch(s){t=s}throw t}},Bi=0,Mi=function(t){return t!=null&&t.constructor===void 0},R.prototype.setState=function(t,e){var i;i=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=X({},this.state),typeof t=="function"&&(t=t(X({},i),this.props)),t&&X(i,t),t!=null&&this.__v&&(e&&this._sb.push(e),be(this))},R.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),be(this))},R.prototype.render=H,lt=[],Li=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ge=function(t,e){return t.__v.__b-e.__v.__b},Wt.__r=0,Hi=0;function Ji(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(i=Ji(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Jt(){for(var t,e,i=0,o="",a=arguments.length;i<a;i++)(t=arguments[i])&&(e=Ji(t))&&(o&&(o+=" "),o+=e);return o}const ei=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,ii=Jt,Qt=(t,e)=>i=>{var o;if((e==null?void 0:e.variants)==null)return ii(t,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:a,defaultVariants:r}=e,n=Object.keys(a).map(d=>{const u=i==null?void 0:i[d],l=r==null?void 0:r[d];if(u===null)return null;const w=ei(u)||ei(l);return a[d][w]}),s=i&&Object.entries(i).reduce((d,u)=>{let[l,w]=u;return w===void 0||(d[l]=w),d},{}),c=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((d,u)=>{let{class:l,className:w,...g}=u;return Object.entries(g).every(h=>{let[b,j]=h;return Array.isArray(j)?j.includes({...r,...s}[b]):{...r,...s}[b]===j})?[...d,l,w]:d},[]);return ii(t,n,c,i==null?void 0:i.class,i==null?void 0:i.className)};var rt,C,ne,oi,wt=0,Qi=[],jt=[],ai=f.__b,ri=f.__r,ni=f.diffed,si=f.__c,li=f.unmount;function gt(t,e){f.__h&&f.__h(C,t,wt||e),wt=0;var i=C.__H||(C.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:jt}),i.__[t]}function He(t){return wt=1,to(io,t)}function to(t,e,i){var o=gt(rt++,2);if(o.t=t,!o.__c&&(o.__=[i?i(e):io(void 0,e),function(s){var c=o.__N?o.__N[0]:o.__[0],d=o.t(c,s);c!==d&&(o.__N=[d,o.__[1]],o.__c.setState({}))}],o.__c=C,!C.u)){var a=function(s,c,d){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(w){return w.__c});if(u.every(function(w){return!w.__N}))return!r||r.call(this,s,c,d);var l=!1;return u.forEach(function(w){if(w.__N){var g=w.__[0];w.__=w.__N,w.__N=void 0,g!==w.__[0]&&(l=!0)}}),!(!l&&o.__c.props===s)&&(!r||r.call(this,s,c,d))};C.u=!0;var r=C.shouldComponentUpdate,n=C.componentWillUpdate;C.componentWillUpdate=function(s,c,d){if(this.__e){var u=r;r=void 0,a(s,c,d),r=u}n&&n.call(this,s,c,d)},C.shouldComponentUpdate=a}return o.__N||o.__}function Re(t,e){var i=gt(rt++,3);!f.__s&&Ue(i.__H,e)&&(i.__=t,i.i=e,C.__H.__h.push(i))}function pt(t,e){var i=gt(rt++,4);!f.__s&&Ue(i.__H,e)&&(i.__=t,i.i=e,C.__h.push(i))}function Tt(t){return wt=5,nt(function(){return{current:t}},[])}function ha(t,e,i){wt=6,pt(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},i==null?i:i.concat(t))}function nt(t,e){var i=gt(rt++,7);return Ue(i.__H,e)?(i.__V=t(),i.i=e,i.__h=t,i.__V):i.__}function fa(t,e){return wt=8,nt(function(){return t},e)}function eo(t){var e=C.context[t.__c],i=gt(rt++,9);return i.c=t,e?(i.__==null&&(i.__=!0,e.sub(C)),e.props.value):t.__}function wa(t,e){f.useDebugValue&&f.useDebugValue(e?e(t):t)}function ga(){var t=gt(rt++,11);if(!t.__){for(var e=C.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var i=e.__m||(e.__m=[0,0]);t.__="P"+i[0]+"-"+i[1]++}return t.__}function ba(){for(var t;t=Qi.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Nt),t.__H.__h.forEach(ve),t.__H.__h=[]}catch(e){t.__H.__h=[],f.__e(e,t.__v)}}f.__b=function(t){C=null,ai&&ai(t)},f.__r=function(t){ri&&ri(t),rt=0;var e=(C=t.__c).__H;e&&(ne===C?(e.__h=[],C.__h=[],e.__.forEach(function(i){i.__N&&(i.__=i.__N),i.__V=jt,i.__N=i.i=void 0})):(e.__h.forEach(Nt),e.__h.forEach(ve),e.__h=[],rt=0)),ne=C},f.diffed=function(t){ni&&ni(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Qi.push(e)!==1&&oi===f.requestAnimationFrame||((oi=f.requestAnimationFrame)||va)(ba)),e.__H.__.forEach(function(i){i.i&&(i.__H=i.i),i.__V!==jt&&(i.__=i.__V),i.i=void 0,i.__V=jt})),ne=C=null},f.__c=function(t,e){e.some(function(i){try{i.__h.forEach(Nt),i.__h=i.__h.filter(function(o){return!o.__||ve(o)})}catch(o){e.some(function(a){a.__h&&(a.__h=[])}),e=[],f.__e(o,i.__v)}}),si&&si(t,e)},f.unmount=function(t){li&&li(t);var e,i=t.__c;i&&i.__H&&(i.__H.__.forEach(function(o){try{Nt(o)}catch(a){e=a}}),i.__H=void 0,e&&f.__e(e,i.__v))};var ci=typeof requestAnimationFrame=="function";function va(t){var e,i=function(){clearTimeout(o),ci&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(i,100);ci&&(e=requestAnimationFrame(i))}function Nt(t){var e=C,i=t.__c;typeof i=="function"&&(t.__c=void 0,i()),C=e}function ve(t){var e=C;t.__c=t.__(),C=e}function Ue(t,e){return!t||t.length!==e.length||e.some(function(i,o){return i!==t[o]})}function io(t,e){return typeof e=="function"?e(t):e}function oo(t,e){for(var i in e)t[i]=e[i];return t}function _e(t,e){for(var i in t)if(i!=="__source"&&!(i in e))return!0;for(var o in e)if(o!=="__source"&&t[o]!==e[o])return!0;return!1}function se(t,e){return t===e&&(t!==0||1/t==1/e)||t!=t&&e!=e}function me(t){this.props=t}function _a(t,e){function i(a){var r=this.props.ref,n=r==a.ref;return!n&&r&&(r.call?r(null):r.current=null),e?!e(this.props,a)||!n:_e(this.props,a)}function o(a){return this.shouldComponentUpdate=i,F(t,a)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(me.prototype=new R).isPureReactComponent=!0,me.prototype.shouldComponentUpdate=function(t,e){return _e(this.props,t)||_e(this.state,e)};var di=f.__b;f.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),di&&di(t)};var ma=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ao(t){function e(i){var o=oo({},i);return delete o.ref,t(o,i.ref||null)}return e.$$typeof=ma,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var ui=function(t,e){return t==null?null:Q(Q(t).map(e))},ya={map:ui,forEach:ui,count:function(t){return t?Q(t).length:0},only:function(t){var e=Q(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Q},xa=f.__e;f.__e=function(t,e,i,o){if(t.then){for(var a,r=e;r=r.__;)if((a=r.__c)&&a.__c)return e.__e==null&&(e.__e=i.__e,e.__k=i.__k),a.__c(t,e)}xa(t,e,i,o)};var pi=f.unmount;function ro(t,e,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),t.__c.__H=null),(t=oo({},t)).__c!=null&&(t.__c.__P===i&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(o){return ro(o,e,i)})),t}function no(t,e,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(o){return no(o,e,i)}),t.__c&&t.__c.__P===e&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}function kt(){this.__u=0,this.t=null,this.__b=null}function so(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function lo(t){var e,i,o;function a(r){if(e||(e=t()).then(function(n){i=n.default||n},function(n){o=n}),o)throw o;if(!i)throw e;return F(i,r)}return a.displayName="Lazy",a.__f=!0,a}function mt(){this.u=null,this.o=null}f.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),pi&&pi(t)},(kt.prototype=new R).__c=function(t,e){var i=e.__c,o=this;o.t==null&&(o.t=[]),o.t.push(i);var a=so(o.__v),r=!1,n=function(){r||(r=!0,i.__R=null,a?a(s):s())};i.__R=n;var s=function(){if(!--o.__u){if(o.state.__a){var d=o.state.__a;o.__v.__k[0]=no(d,d.__c.__P,d.__c.__O)}var u;for(o.setState({__a:o.__b=null});u=o.t.pop();)u.forceUpdate()}},c=e.__h===!0;o.__u++||c||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(n,n)},kt.prototype.componentWillUnmount=function(){this.t=[]},kt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=ro(this.__b,i,o.__O=o.__P)}this.__b=null}var a=e.__a&&F(H,null,t.fallback);return a&&(a.__h=null),[F(H,null,e.__a?null:t.children),a]};var hi=function(t,e,i){if(++i[1]===i[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(i=t.u;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;t.u=i=i[2]}};function ka(t){return this.getChildContext=function(){return t.context},t.children}function $a(t){var e=this,i=t.i;e.componentWillUnmount=function(){ut(null,e.l),e.l=null,e.i=null},e.i&&e.i!==i&&e.componentWillUnmount(),t.__v?(e.l||(e.i=i,e.l={nodeType:1,parentNode:i,childNodes:[],appendChild:function(o){this.childNodes.push(o),e.i.appendChild(o)},insertBefore:function(o,a){this.childNodes.push(o),e.i.appendChild(o)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),e.i.removeChild(o)}}),ut(F(ka,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Sa(t,e){var i=F($a,{__v:t,i:e});return i.containerInfo=e,i}(mt.prototype=new R).__a=function(t){var e=this,i=so(e.__v),o=e.o.get(t);return o[0]++,function(a){var r=function(){e.props.revealOrder?(o.push(a),hi(e,t,o)):a()};i?i(r):r()}},mt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Q(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var i=e.length;i--;)this.o.set(e[i],this.u=[1,0,this.u]);return t.children},mt.prototype.componentDidUpdate=mt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,i){hi(t,i,e)})};var co=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ca=/^(?: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]/,Ea=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Pa=/[A-Z0-9]/g,Ta=typeof document<"u",Ia=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function za(t,e,i){return e.__k==null&&(e.textContent=""),ut(t,e),typeof i=="function"&&i(),t?t.__c:null}function Oa(t,e,i){return Zi(t,e),typeof i=="function"&&i(),t?t.__c:null}R.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(R.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var fi=f.event;function ja(){}function Na(){return this.cancelBubble}function Aa(){return this.defaultPrevented}f.event=function(t){return fi&&(t=fi(t)),t.persist=ja,t.isPropagationStopped=Na,t.isDefaultPrevented=Aa,t.nativeEvent=t};var We,Da={enumerable:!1,configurable:!0,get:function(){return this.class}},wi=f.vnode;f.vnode=function(t){typeof t.type=="string"&&function(e){var i=e.props,o=e.type,a={};for(var r in i){var n=i[r];if(!(r==="value"&&"defaultValue"in i&&n==null||Ta&&r==="children"&&o==="noscript"||r==="class"||r==="className")){var s=r.toLowerCase();r==="defaultValue"&&"value"in i&&i.value==null?r="value":r==="download"&&n===!0?n="":s==="ondoubleclick"?r="ondblclick":s!=="onchange"||o!=="input"&&o!=="textarea"||Ia(i.type)?s==="onfocus"?r="onfocusin":s==="onblur"?r="onfocusout":Ea.test(r)?r=s:o.indexOf("-")===-1&&Ca.test(r)?r=r.replace(Pa,"-$&").toLowerCase():n===null&&(n=void 0):s=r="oninput",s==="oninput"&&a[r=s]&&(r="oninputCapture"),a[r]=n}}o=="select"&&a.multiple&&Array.isArray(a.value)&&(a.value=Q(i.children).forEach(function(c){c.props.selected=a.value.indexOf(c.props.value)!=-1})),o=="select"&&a.defaultValue!=null&&(a.value=Q(i.children).forEach(function(c){c.props.selected=a.multiple?a.defaultValue.indexOf(c.props.value)!=-1:a.defaultValue==c.props.value})),i.class&&!i.className?(a.class=i.class,Object.defineProperty(a,"className",Da)):(i.className&&!i.class||i.class&&i.className)&&(a.class=a.className=i.className),e.props=a}(t),t.$$typeof=co,wi&&wi(t)};var gi=f.__r;f.__r=function(t){gi&&gi(t),We=t.__c};var bi=f.diffed;f.diffed=function(t){bi&&bi(t);var e=t.props,i=t.__e;i!=null&&t.type==="textarea"&&"value"in e&&e.value!==i.value&&(i.value=e.value==null?"":e.value),We=null};var Fa={ReactCurrentDispatcher:{current:{readContext:function(t){return We.__n[t.__c].props.value}}}};function Ba(t){return F.bind(null,t)}function uo(t){return!!t&&t.$$typeof===co}function Ma(t){return uo(t)?pa.apply(null,arguments):t}function La(t){return!!t.__k&&(ut(null,t),!0)}function Ha(t){return t&&(t.base||t.nodeType===1&&t)||null}var Ra=function(t,e){return t(e)},Ua=function(t,e){return t(e)},Wa=H;function po(t){t()}function Va(t){return t}function Ya(){return[!1,po]}var Ka=pt;function qa(t,e){var i=e(),o=He({h:{__:i,v:e}}),a=o[0].h,r=o[1];return pt(function(){a.__=i,a.v=e,se(a.__,e())||r({h:a})},[t,i,e]),Re(function(){return se(a.__,a.v())||r({h:a}),t(function(){se(a.__,a.v())||r({h:a})})},[t]),i}var Ga={useState:He,useId:ga,useReducer:to,useEffect:Re,useLayoutEffect:pt,useInsertionEffect:Ka,useTransition:Ya,useDeferredValue:Va,useSyncExternalStore:qa,startTransition:po,useRef:Tt,useImperativeHandle:ha,useMemo:nt,useCallback:fa,useContext:eo,useDebugValue:wa,version:"17.0.2",Children:ya,render:za,hydrate:Oa,unmountComponentAtNode:La,createPortal:Sa,createElement:F,createContext:Xi,createFactory:Ba,cloneElement:Ma,createRef:sa,Fragment:H,isValidElement:uo,findDOMNode:Ha,Component:R,PureComponent:me,memo:_a,forwardRef:ao,flushSync:Ua,unstable_batchedUpdates:Ra,StrictMode:Wa,Suspense:kt,SuspenseList:mt,lazy:lo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fa};const A=Symbol.for("@ts-pattern/matcher"),ho=Symbol.for("@ts-pattern/isVariadic"),Yt="@ts-pattern/anonymous-select-key",ye=t=>!!(t&&typeof t=="object"),At=t=>t&&!!t[A],P=(t,e,i)=>{if(At(t)){const o=t[A](),{matched:a,selections:r}=o.match(e);return a&&r&&Object.keys(r).forEach(n=>i(n,r[n])),a}if(ye(t)){if(!ye(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let o=[],a=[],r=[];for(const n of t.keys()){const s=t[n];At(s)&&s[ho]?r.push(s):r.length?a.push(s):o.push(s)}if(r.length){if(r.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<o.length+a.length)return!1;const n=e.slice(0,o.length),s=a.length===0?[]:e.slice(-a.length),c=e.slice(o.length,a.length===0?1/0:-a.length);return o.every((d,u)=>P(d,n[u],i))&&a.every((d,u)=>P(d,s[u],i))&&(r.length===0||P(r[0],c,i))}return t.length===e.length&&t.every((n,s)=>P(n,e[s],i))}return Reflect.ownKeys(t).every(o=>{const a=t[o];return(o in e||At(r=a)&&r[A]().matcherType==="optional")&&P(a,e[o],i);var r})}return Object.is(e,t)},N=t=>{var e,i,o;return ye(t)?At(t)?(e=(i=(o=t[A]()).getSelectionKeys)==null?void 0:i.call(o))!=null?e:[]:Array.isArray(t)?Ct(t,N):Ct(Object.values(t),N):[]},Ct=(t,e)=>t.reduce((i,o)=>i.concat(e(o)),[]);function Za(...t){if(t.length===1){const[e]=t;return i=>P(e,i,()=>{})}if(t.length===2){const[e,i]=t;return P(e,i,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`)}function I(t){return Object.assign(t,{optional:()=>Ve(t),and:e=>S(t,e),or:e=>fo(t,e),select:e=>e===void 0?Et(t):Et(e,t)})}function xe(t){return Object.assign((e=>Object.assign(e,{[Symbol.iterator](){let i=0;const o=[{value:Object.assign(e,{[ho]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var a;return(a=o[i++])!=null?a:o.at(-1)}}}}))(t),{optional:()=>xe(Ve(t)),select:e=>xe(e===void 0?Et(t):Et(e,t))})}function Ve(t){return I({[A]:()=>({match:e=>{let i={};const o=(a,r)=>{i[a]=r};return e===void 0?(N(t).forEach(a=>o(a,void 0)),{matched:!0,selections:i}):{matched:P(t,e,o),selections:i}},getSelectionKeys:()=>N(t),matcherType:"optional"})})}const Xa=(t,e)=>{for(const i of t)if(!e(i))return!1;return!0},Ja=(t,e)=>{for(const[i,o]of t.entries())if(!e(o,i))return!1;return!0},Qa=(t,e)=>{const i=Reflect.ownKeys(t);for(const o of i)if(!e(o,t[o]))return!1;return!0};function S(...t){return I({[A]:()=>({match:e=>{let i={};const o=(a,r)=>{i[a]=r};return{matched:t.every(a=>P(a,e,o)),selections:i}},getSelectionKeys:()=>Ct(t,N),matcherType:"and"})})}function fo(...t){return I({[A]:()=>({match:e=>{let i={};const o=(a,r)=>{i[a]=r};return Ct(t,N).forEach(a=>o(a,void 0)),{matched:t.some(a=>P(a,e,o)),selections:i}},getSelectionKeys:()=>Ct(t,N),matcherType:"or"})})}function m(t){return{[A]:()=>({match:e=>({matched:!!t(e)})})}}function Et(...t){const e=typeof t[0]=="string"?t[0]:void 0,i=t.length===2?t[1]:typeof t[0]=="string"?void 0:t[0];return I({[A]:()=>({match:o=>{let a={[e??Yt]:o};return{matched:i===void 0||P(i,o,(r,n)=>{a[r]=n}),selections:a}},getSelectionKeys:()=>[e??Yt].concat(i===void 0?[]:N(i))})})}function wo(t){return!0}function V(t){return typeof t=="number"}function tt(t){return typeof t=="string"}function et(t){return typeof t=="bigint"}const go=I(m(wo)),tr=I(m(wo)),er=go,it=t=>Object.assign(I(t),{startsWith:e=>{return it(S(t,(i=e,m(o=>tt(o)&&o.startsWith(i)))));var i},endsWith:e=>{return it(S(t,(i=e,m(o=>tt(o)&&o.endsWith(i)))));var i},minLength:e=>it(S(t,(i=>m(o=>tt(o)&&o.length>=i))(e))),length:e=>it(S(t,(i=>m(o=>tt(o)&&o.length===i))(e))),maxLength:e=>it(S(t,(i=>m(o=>tt(o)&&o.length<=i))(e))),includes:e=>{return it(S(t,(i=e,m(o=>tt(o)&&o.includes(i)))));var i},regex:e=>{return it(S(t,(i=e,m(o=>tt(o)&&!!o.match(i)))));var i}}),vi=it(m(tt)),Y=t=>Object.assign(I(t),{between:(e,i)=>Y(S(t,((o,a)=>m(r=>V(r)&&o<=r&&a>=r))(e,i))),lt:e=>Y(S(t,(i=>m(o=>V(o)&&o<i))(e))),gt:e=>Y(S(t,(i=>m(o=>V(o)&&o>i))(e))),lte:e=>Y(S(t,(i=>m(o=>V(o)&&o<=i))(e))),gte:e=>Y(S(t,(i=>m(o=>V(o)&&o>=i))(e))),int:()=>Y(S(t,m(e=>V(e)&&Number.isInteger(e)))),finite:()=>Y(S(t,m(e=>V(e)&&Number.isFinite(e)))),positive:()=>Y(S(t,m(e=>V(e)&&e>0))),negative:()=>Y(S(t,m(e=>V(e)&&e<0)))}),ir=Y(m(V)),ot=t=>Object.assign(I(t),{between:(e,i)=>ot(S(t,((o,a)=>m(r=>et(r)&&o<=r&&a>=r))(e,i))),lt:e=>ot(S(t,(i=>m(o=>et(o)&&o<i))(e))),gt:e=>ot(S(t,(i=>m(o=>et(o)&&o>i))(e))),lte:e=>ot(S(t,(i=>m(o=>et(o)&&o<=i))(e))),gte:e=>ot(S(t,(i=>m(o=>et(o)&&o>=i))(e))),positive:()=>ot(S(t,m(e=>et(e)&&e>0))),negative:()=>ot(S(t,m(e=>et(e)&&e<0)))}),or=ot(m(et)),ar=I(m(function(t){return typeof t=="boolean"})),rr=I(m(function(t){return typeof t=="symbol"})),nr=I(m(function(t){return t==null})),sr=I(m(function(t){return t!=null}));var yt={__proto__:null,matcher:A,optional:Ve,array:function(...t){return xe({[A]:()=>({match:e=>{if(!Array.isArray(e))return{matched:!1};if(t.length===0)return{matched:!0};const i=t[0];let o={};if(e.length===0)return N(i).forEach(r=>{o[r]=[]}),{matched:!0,selections:o};const a=(r,n)=>{o[r]=(o[r]||[]).concat([n])};return{matched:e.every(r=>P(i,r,a)),selections:o}},getSelectionKeys:()=>t.length===0?[]:N(t[0])})})},set:function(...t){return I({[A]:()=>({match:e=>{if(!(e instanceof Set))return{matched:!1};let i={};if(e.size===0)return{matched:!0,selections:i};if(t.length===0)return{matched:!0};const o=(r,n)=>{i[r]=(i[r]||[]).concat([n])},a=t[0];return{matched:Xa(e,r=>P(a,r,o)),selections:i}},getSelectionKeys:()=>t.length===0?[]:N(t[0])})})},map:function(...t){return I({[A]:()=>({match:e=>{if(!(e instanceof Map))return{matched:!1};let i={};if(e.size===0)return{matched:!0,selections:i};const o=(s,c)=>{i[s]=(i[s]||[]).concat([c])};if(t.length===0)return{matched:!0};var a;if(t.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(a=t[0])==null?void 0:a.toString()}`);const[r,n]=t;return{matched:Ja(e,(s,c)=>{const d=P(r,c,o),u=P(n,s,o);return d&&u}),selections:i}},getSelectionKeys:()=>t.length===0?[]:[...N(t[0]),...N(t[1])]})})},record:function(...t){return I({[A]:()=>({match:e=>{if(e===null||typeof e!="object"||Array.isArray(e))return{matched:!1};var i;if(t.length===0)throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(i=t[0])==null?void 0:i.toString()}`);let o={};const a=(s,c)=>{o[s]=(o[s]||[]).concat([c])},[r,n]=t.length===1?[vi,t[0]]:t;return{matched:Qa(e,(s,c)=>{const d=typeof s!="string"||Number.isNaN(Number(s))?null:Number(s),u=d!==null&&P(r,d,a),l=P(r,s,a),w=P(n,c,a);return(l||u)&&w}),selections:o}},getSelectionKeys:()=>t.length===0?[]:[...N(t[0]),...N(t[1])]})})},intersection:S,union:fo,not:function(t){return I({[A]:()=>({match:e=>({matched:!P(t,e,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:m,select:Et,any:go,unknown:tr,_:er,string:vi,number:ir,bigint:or,boolean:ar,symbol:rr,nullish:nr,nonNullable:sr,instanceOf:function(t){return I(m(function(e){return i=>i instanceof e}(t)))},shape:function(t){return I(m(Za(t)))}};class lr extends Error{constructor(e){let i;try{i=JSON.stringify(e)}catch{i=e}super(`Pattern matching error: no pattern matches value ${i}`),this.input=void 0,this.input=e}}const ke={matched:!1,value:void 0};function te(t){return new Kt(t,ke)}class Kt{constructor(e,i){this.input=void 0,this.state=void 0,this.input=e,this.state=i}with(...e){if(this.state.matched)return this;const i=e[e.length-1],o=[e[0]];let a;e.length===3&&typeof e[1]=="function"?a=e[1]:e.length>2&&o.push(...e.slice(1,e.length-1));let r=!1,n={};const s=(d,u)=>{r=!0,n[d]=u},c=!o.some(d=>P(d,this.input,s))||a&&!a(this.input)?ke:{matched:!0,value:i(r?Yt in n?n[Yt]:n:this.input,this.input)};return new Kt(this.input,c)}when(e,i){if(this.state.matched)return this;const o=!!e(this.input);return new Kt(this.input,o?{matched:!0,value:i(this.input,this.input)}:ke)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(e=cr){return this.state.matched?this.state.value:e(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}}function cr(t){throw new lr(t)}var dr=["other","few","many","two","one","zero"],_i=({terms:t,overrides:e,locale:i})=>{const o=new Intl.PluralRules(i);function a(r,n){const s=(e==null?void 0:e[r])??t[r];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(c,d)=>{var u;return((u=n==null?void 0:n[d])==null?void 0:u.toString())??""});case"object":{if(typeof(n==null?void 0:n.count)!="number")throw new Error(`Missing count for translation key “${r.toString()}”`);let c=o.select(n.count);if(!(c in s)){const d=dr.find(u=>u in s);if(!d)throw new Error(`Missing plural rule for translation key “${r.toString()}”`);c=d}return s[c].replace(/{{(\w+)}}/g,(d,u)=>{var l;return((l=n==null?void 0:n[u])==null?void 0:l.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${r.toString()}”.`)}}return a},ur=0;function p(t,e,i,o,a,r){var n,s,c={};for(s in e)s=="ref"?n=e[s]:c[s]=e[s];var d={type:t,props:c,key:i,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ur,__source:a,__self:r};if(typeof t=="function"&&(n=t.defaultProps))for(s in n)c[s]===void 0&&(c[s]=n[s]);return f.vnode&&f.vnode(d),d}var mi=Xi(null),bo=t=>({defaultTerms:t,TranslationProvider:({terms:e,children:i,locale:o})=>{const a=nt(()=>_i({locale:o,terms:t,overrides:e}),[e,o]);return p(mi.Provider,{value:{t:a,locale:o},children:i})},useTranslation:()=>{const e=eo(mi);if(e===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:e.t,locale:e.locale}},createTFunction:({overrides:e,locale:i})=>_i({terms:t,overrides:e,locale:i})}),{TranslationProvider:wn,useTranslation:gn,createTFunction:bn,defaultTerms:pr}=bo({submission_redirect_message:"Almost there! Please complete your submission here:",complete_submission:"Complete submission",submission_completed:"Submission completed!",submission_failed:"Failed to submit",close_application:"Close application",invalid_state:"Invalid application state",redirect_url_error:"Couldn’t get the redirect URL.",upload_file:{one:"Select file to upload",other:"Select files to upload"},file_max_size:"max {{size}}",file_extensions:"Accepted file extensions",address_error:"Something went wrong! Plase continue manually",address_search:"Type and search for places…",address_manual:"Fill in manually",back:"Back",search:"Search",unknown_error:"An error occurred",line1:"Line 1",line2:"Line 2",line3:"Line 3",city:"City",state:"State",postcode:"Postcode",country:"Country",select_country:"Select a country",validation_empty:"Please enter a value",validation_date:"Please enter a valid date (YYYY-MM-DD)",validation_email:"That doesn’t look like a valid email address",validation_url:"That doesn’t look like a valid URL",validation_max_chars:"Please enter no more than {{count}} characters",validation_min_chars:"Please enter {{count}} or more characters",validation_phone:"Please enter a valid phone number",validation_phone_min_chars:"Your phone number must be at least {{count}} digits long",validation_country_code:"Please select a country code",validation_number:"Please enter a valid number",validation_number_min:"Please enter a number greater than or equal to {{min}}",validation_number_max:"Please enter a number less than or equal to {{max}}",validation_number_decimal_cases:"Please enter a number with at most {{count}} decimal cases",validation_file:"Please select a file",validation_file_ext:"Please only upload {{ext}} files",validation_file_min:{one:"Please upload at least one file",other:"Please only upload at least {{count}} files"},validation_file_max:{one:"Please only upload one file",other:"Please only upload up to {{count}} files"},validation_file_size:"Your file is too big. Please upload a file smaller than {{size}}",validation_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"});const{TranslationProvider:hr,useTranslation:ee,createTFunction:fr}=bo({...pr,error_heading:"Something unexpected happened",undo:"Change answer",conversation_history:"Conversation history",jump_to_current:"Jump to current question",send:"Send",submitting:"Sending your application…",skip:"Skip",skipped:"Skipped",submission_closed:"This role is no longer accepting applications.",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.",submission_duplicate_earlier_attempt:"It looks like your earlier attempt did go through. You don't need to apply again — check your email for confirmation.",submission_retryable:"We couldn't submit your application. Please try again.",submission_failed:"We couldn't submit your application. Choose Restart to try again.",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.",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.",submission_still_working:"Still working — the employer's application system is taking a little longer than usual. Please keep this window 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.",maximize:"Maximise",minimize:"Minimise"});function Ye(t,e){if(!t)throw new Error(e)}var $e=t=>t===null||typeof t!="object"?t:Array.isArray(t)?t.map($e):Object.keys(t).sort().reduce((e,i)=>(e[i]=$e(t[i]),e),{}),wr=t=>{let e=JSON.stringify($e(t)),i=5381;for(let o=0;o<e.length;o++)i=i*33^e.charCodeAt(o);return(i>>>0).toString(36)},gr=Symbol.for("preact-signals");function Ke(){if(ft>1)ft--;else{for(var t,e=!1;$t!==void 0;){var i=$t;for($t=void 0,Se++;i!==void 0;){var o=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&_o(i))try{i.c()}catch(a){e||(t=a,e=!0)}i=o}}if(Se=0,ft--,e)throw t}}var k=void 0,$t=void 0,ft=0,Se=0,qt=0;function vo(t){if(k!==void 0){var e=t.n;if(e===void 0||e.t!==k)return e={i:0,S:t,p:k.s,n:void 0,t:k,e:void 0,x:void 0,r:e},k.s!==void 0&&(k.s.n=e),k.s=e,t.n=e,32&k.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=k.s,e.n=void 0,k.s.n=e,k.s=e),e}}function O(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}O.prototype.brand=gr;O.prototype.h=function(){return!0};O.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};O.prototype.U=function(t){if(this.t!==void 0){var e=t.e,i=t.x;e!==void 0&&(e.x=i,t.e=void 0),i!==void 0&&(i.e=e,t.x=void 0),t===this.t&&(this.t=i)}};O.prototype.subscribe=function(t){var e=this;return Ge(function(){var i=e.value,o=k;k=void 0;try{t(i)}finally{k=o}})};O.prototype.valueOf=function(){return this.value};O.prototype.toString=function(){return this.value+""};O.prototype.toJSON=function(){return this.value};O.prototype.peek=function(){var t=k;k=void 0;try{return this.value}finally{k=t}};Object.defineProperty(O.prototype,"value",{get:function(){var t=vo(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Se>100)throw new Error("Cycle detected");this.v=t,this.i++,qt++,ft++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Ke()}}}});function J(t){return new O(t)}function _o(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function mo(t){for(var e=t.s;e!==void 0;e=e.n){var i=e.S.n;if(i!==void 0&&(e.r=i),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function yo(t){for(var e=t.s,i=void 0;e!==void 0;){var o=e.p;e.i===-1?(e.S.U(e),o!==void 0&&(o.n=e.n),e.n!==void 0&&(e.n.p=o)):i=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=o}t.s=i}function bt(t){O.call(this,void 0),this.x=t,this.s=void 0,this.g=qt-1,this.f=4}(bt.prototype=new O).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===qt))return!0;if(this.g=qt,this.f|=1,this.i>0&&!_o(this))return this.f&=-2,!0;var t=k;try{mo(this),k=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(i){this.v=i,this.f|=16,this.i++}return k=t,yo(this),this.f&=-2,!0};bt.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}O.prototype.S.call(this,t)};bt.prototype.U=function(t){if(this.t!==void 0&&(O.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};bt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(bt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=vo(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function br(t){return new bt(t)}function xo(t){var e=t.u;if(t.u=void 0,typeof e=="function"){ft++;var i=k;k=void 0;try{e()}catch(o){throw t.f&=-2,t.f|=8,qe(t),o}finally{k=i,Ke()}}}function qe(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,xo(t)}function vr(t){if(k!==this)throw new Error("Out-of-order effect");yo(this),k=t,this.f&=-2,8&this.f&&qe(this),Ke()}function It(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}It.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};It.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,xo(this),mo(this),ft++;var t=k;return k=this,vr.bind(this,t)};It.prototype.N=function(){2&this.f||(this.f|=2,this.o=$t,$t=this)};It.prototype.d=function(){this.f|=8,1&this.f||qe(this)};function Ge(t){var e=new It(t);try{e.c()}catch(i){throw e.d(),i}return e.d.bind(e)}var le;function vt(t,e){f[t]=e.bind(null,f[t]||function(){})}function Gt(t){le&&le(),le=t&&t.S()}function ko(t){var e=this,i=t.data,o=mr(i);o.value=i;var a=nt(function(){for(var r=e.__v;r=r.__;)if(r.__c){r.__c.__$f|=4;break}return e.__$u.c=function(){var n;!Mi(a.peek())&&((n=e.base)==null?void 0:n.nodeType)===3?e.base.data=a.peek():(e.__$f|=1,e.setState({}))},br(function(){var n=o.value.value;return n===0?0:n===!0?"":n||""})},[]);return a.value}ko.displayName="_st";Object.defineProperties(O.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ko},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});vt("__b",function(t,e){if(typeof e.type=="string"){var i,o=e.props;for(var a in o)if(a!=="children"){var r=o[a];r instanceof O&&(i||(e.__np=i={}),i[a]=r,o[a]=r.peek())}}t(e)});vt("__r",function(t,e){Gt();var i,o=e.__c;o&&(o.__$f&=-2,(i=o.__$u)===void 0&&(o.__$u=i=function(a){var r;return Ge(function(){r=this}),r.c=function(){o.__$f|=1,o.setState({})},r}())),Gt(i),t(e)});vt("__e",function(t,e,i,o){Gt(),t(e,i,o)});vt("diffed",function(t,e){Gt();var i;if(typeof e.type=="string"&&(i=e.__e)){var o=e.__np,a=e.props;if(o){var r=i.U;if(r)for(var n in r){var s=r[n];s!==void 0&&!(n in o)&&(s.d(),r[n]=void 0)}else i.U=r={};for(var c in o){var d=r[c],u=o[c];d===void 0?(d=_r(i,c,u,a),r[c]=d):d.o(u,a)}}}t(e)});function _r(t,e,i,o){var a=e in t&&t.ownerSVGElement===void 0,r=J(i);return{o:function(n,s){r.value=n,o=s},d:Ge(function(){var n=r.value.value;o[e]!==n&&(o[e]=n,a?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))})}}vt("unmount",function(t,e){if(typeof e.type=="string"){var i=e.__e;if(i){var o=i.U;if(o){i.U=void 0;for(var a in o){var r=o[a];r&&r.d()}}}}else{var n=e.__c;if(n){var s=n.__$u;s&&(n.__$u=void 0,s.d())}}t(e)});vt("__h",function(t,e,i,o){(o<3||o===9)&&(e.__$f|=2),t(e,i,o)});R.prototype.shouldComponentUpdate=function(t,e){var i=this.__$u;if(!(i&&i.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var o in e)return!0;for(var a in t)if(a!=="__source"&&t[a]!==this.props[a])return!0;for(var r in this.props)if(!(r in t))return!0;return!1};function mr(t){return nt(function(){return J(t)},[])}const Ce=(t,e)=>e.some(i=>t instanceof i);let yi,xi;function yr(){return yi||(yi=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function xr(){return xi||(xi=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Ee=new WeakMap,ce=new WeakMap,ie=new WeakMap;function kr(t){const e=new Promise((i,o)=>{const a=()=>{t.removeEventListener("success",r),t.removeEventListener("error",n)},r=()=>{i(dt(t.result)),a()},n=()=>{o(t.error),a()};t.addEventListener("success",r),t.addEventListener("error",n)});return ie.set(e,t),e}function $r(t){if(Ee.has(t))return;const e=new Promise((i,o)=>{const a=()=>{t.removeEventListener("complete",r),t.removeEventListener("error",n),t.removeEventListener("abort",n)},r=()=>{i(),a()},n=()=>{o(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",r),t.addEventListener("error",n),t.addEventListener("abort",n)});Ee.set(t,e)}let Pe={get(t,e,i){if(t instanceof IDBTransaction){if(e==="done")return Ee.get(t);if(e==="store")return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return dt(t[e])},set(t,e,i){return t[e]=i,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function $o(t){Pe=t(Pe)}function Sr(t){return xr().includes(t)?function(...e){return t.apply(Te(this),e),dt(this.request)}:function(...e){return dt(t.apply(Te(this),e))}}function Cr(t){return typeof t=="function"?Sr(t):(t instanceof IDBTransaction&&$r(t),Ce(t,yr())?new Proxy(t,Pe):t)}function dt(t){if(t instanceof IDBRequest)return kr(t);if(ce.has(t))return ce.get(t);const e=Cr(t);return e!==t&&(ce.set(t,e),ie.set(e,t)),e}const Te=t=>ie.get(t);function Er(t,e,{blocked:i,upgrade:o,blocking:a,terminated:r}={}){const n=indexedDB.open(t,e),s=dt(n);return o&&n.addEventListener("upgradeneeded",c=>{o(dt(n.result),c.oldVersion,c.newVersion,dt(n.transaction),c)}),i&&n.addEventListener("blocked",c=>i(c.oldVersion,c.newVersion,c)),s.then(c=>{r&&c.addEventListener("close",()=>r()),a&&c.addEventListener("versionchange",d=>a(d.oldVersion,d.newVersion,d))}).catch(()=>{}),s}const Pr=["get","getKey","getAll","getAllKeys","count"],Tr=["put","add","delete","clear"],de=new Map;function ki(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(de.get(e))return de.get(e);const i=e.replace(/FromIndex$/,""),o=e!==i,a=Tr.includes(i);if(!(i in(o?IDBIndex:IDBObjectStore).prototype)||!(a||Pr.includes(i)))return;const r=async function(n,...s){const c=this.transaction(n,a?"readwrite":"readonly");let d=c.store;return o&&(d=d.index(s.shift())),(await Promise.all([d[i](...s),a&&c.done]))[0]};return de.set(e,r),r}$o(t=>({...t,get:(e,i,o)=>ki(e,i)||t.get(e,i,o),has:(e,i)=>!!ki(e,i)||t.has(e,i)}));const Ir=["continue","continuePrimaryKey","advance"],$i={},Ie=new WeakMap,So=new WeakMap,zr={get(t,e){if(!Ir.includes(e))return t[e];let i=$i[e];return i||(i=$i[e]=function(...o){Ie.set(this,So.get(this)[e](...o))}),i}};async function*Or(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const i=new Proxy(e,zr);for(So.set(i,e),ie.set(i,Te(e));e;)yield i,e=await(Ie.get(i)||e.continue()),Ie.delete(i)}function Si(t,e){return e===Symbol.asyncIterator&&Ce(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&Ce(t,[IDBIndex,IDBObjectStore])}$o(t=>({...t,get(e,i,o){return Si(e,i)?Or:t.get(e,i,o)},has(e,i){return Si(e,i)||t.has(e,i)}}));const Dt=typeof indexedDB>"u"?void 0:Er("inploi-chatbot",3,{upgrade(t){try{t.deleteObjectStore("state")}catch{}t.createObjectStore("state")}});let Ft,ue,_t;const Ci=()=>{if(!Ft)return _t;const t=Ft;Ft=void 0;const e=Co(t),i=Dt==null?void 0:Dt.then(o=>o.put("state",t.data,e)).finally(()=>{_t===i&&(_t=void 0)});return _t=i,_t},K={getStateData:async(t,e,i)=>{var a;const o=Co({...t,flowKeys:e,context:i});return(a=await Dt)==null?void 0:a.get("state",o)},setStateData:t=>{Ft=t,clearTimeout(ue),ue=setTimeout(()=>void Ci(),1e3)},flushStateData:()=>(clearTimeout(ue),Ci()??Promise.resolve())},jr=t=>{const e=t.find(i=>i.isHead);if(!e)throw new Error("No head node found");return e},Nr=t=>e=>e?e.type===t:!1;class ct extends Error{constructor(){super("Aborted")}}const Ar=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():Math.random().toString(36).slice(2),Ei=()=>({messages:[],submissions:{},currentInput:null,nodeHistory:[],startedWriteNodeIds:[],isFinished:!1,hasInteracted:!1,sequence:0,flowSessionId:Ar()}),Dr=t=>te(t).with({nativeEvent:{submitter:yt.select(yt.union(yt.instanceOf(HTMLButtonElement),yt.instanceOf(HTMLInputElement)))}},e=>e).otherwise(()=>{throw new Error("invalid submitter")}),Bt=(t,e,i,o=0)=>{if(!e.nextId)return i(e.id,{stepsMade:o,remainingSteps:0}),{stepsMade:o,remainingSteps:0};const a=t.find(d=>d.id===e.nextId);if(a===void 0)return{stepsMade:o,remainingSteps:0};const r=e.type==="if-block"?e.branchId:void 0,n=t.find(d=>d.id===r),s=e.type.includes("question")?1:0;if(n){const d=s+Math.max(Bt(t,a,i,o+s).remainingSteps,Bt(t,n,i,o+s).remainingSteps);return i(e.id,{stepsMade:o,remainingSteps:d}),{stepsMade:o,remainingSteps:d}}const c=s+Bt(t,a,i,o+s).remainingSteps;return i(e.id,{stepsMade:o,remainingSteps:c}),{stepsMade:o,remainingSteps:c}},Fr=t=>{const e={},i=t.find(o=>o.isHead);return i&&Bt(t,i,(o,a)=>{e[o]=a}),e},Co=t=>[...t.flowKeys,t.id,t.version,t.build,wr(t.context)].join("/"),Br=t=>{var e,i;if(!(t.data.isFinished||(e=t.data.startedWriteNodeIds)!=null&&e.length))return(i=[...t.data.messages].reverse().find(o=>o.groupId&&t.nodes.some(a=>a.id===o.groupId&&a.type.startsWith("question-"))&&(o.type==="system"||"author"in o&&o.author==="user")))==null?void 0:i.groupId},q=J({state:"idle"}),st=t=>{const{state:e,flow:i}=q.value;if(e!=="loaded")return;Ye(i,"No flow to update");const o=t(i.data);i.data=o,q.value={state:e,flow:i},K.setStateData(i)},$={current$:q,viewState$:J("closed"),prepareFlow:async({flow:t,context:e={},flowKeys:i,title:o,analytics:a,job:r,locationOrigin:n})=>(await K.flushStateData().catch(()=>{}),{data:await K.getStateData(t,i,e)??Ei(),startedAt:new Date,nodeIdToProgress:Fr(t.nodes),flowKeys:i,id:t.id,version:t.version,nodes:t.nodes,build:t.build,context:e,title:o,analytics:a,job:r,locationOrigin:n}),commitFlow:t=>{q.value={state:"loaded",flow:t},K.setStateData(t)},cancelCurrentFlow:()=>{q.value={state:"idle"},$.viewState$.value="closed"},markAsFinished:()=>st(t=>({...t,isFinished:!0})),markAsInteracted:()=>st(t=>({...t,hasInteracted:!0})),setCurrentNodeId:t=>st(e=>(e.nodeHistory.push(t),e)),setApplicationRecovery:async t=>{st(e=>(t?e.applicationRecovery=t:delete e.applicationRecovery,e)),await K.flushStateData()},restart:()=>{const{state:t,flow:e}=q.value;if(t!=="loaded")throw new Error("Flow cannot be restarted: not in valid state");const i={...Ei(),unconfirmedAttemptKeys:e.data.unconfirmedAttemptKeys,submitCooldown:e.data.submitCooldown},o={...e,data:i,startedAt:new Date};q.value={state:t,flow:o},K.setStateData(o)},addMessage:(t,e)=>{const i={...t,groupId:e};return st(o=>(o.messages.push(i),o))},removeMessagesSentByNodeIds:t=>{const{state:e,flow:i}=q.value;Ye(e==="loaded","Application not loaded");const o=i.data.messages.filter(a=>!a.groupId||!t.includes(a.groupId));i.data.messages=o,K.setStateData(i)},setSubmission:(t,e)=>st(i=>(e===null?delete i.submissions[t]:i.submissions[t]=e,i)),setInput:t=>st(e=>({...e,currentInput:t??null})),persistWriteBarrier:async t=>{q.peek().flow===t&&(q.value={state:"loaded",flow:t}),K.setStateData(t),await K.flushStateData()}},Mr=({message:t})=>{const{t:e}=ee();return p("div",{class:"flex flex-grow flex-col items-center justify-center",children:[p("svg",{class:"text-error-9 h-16 w-16",fill:"none",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2",stroke:"currentColor","stroke-linecap":"round",viewBox:"0 0 96 96",children:[p("path",{d:"M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z",fill:"#fff"}),p("path",{d:"M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z"}),p("line",{x1:"36.7",y1:"39.3",x2:"44.8",y2:"47.4"}),p("line",{x1:"52.2",y1:"39.3",x2:"60.3",y2:"47.4"}),p("line",{x1:"44.7",y1:"39.2",x2:"36.6",y2:"47.3"}),p("line",{x1:"60.2",y1:"39.2",x2:"52.1",y2:"47.3"}),p("path",{d:"M38 56h19"})]}),p("div",{class:"flex flex-col gap-2 text-center",children:[p("p",{class:"text-error-11 font-bold",children:e("error_heading")}),t&&p("p",{class:"text-neutral-9 text-sm",children:t})]})]})},Eo=t=>p("svg",{role:"img",viewBox:"0 0 24 24",...t,children:[p("title",{children:"Loading"}),p("style",{children:"#s1{animation:3s linear infinite forwards s1__to}@keyframes s1__to{0%{transform:translate(12px,0)}66.666667%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,12px)}}#s2{animation:3s linear infinite forwards s2__ts}@keyframes s2__ts{0%{transform:scale(0,0)}70%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%{transform:scale(1,1)}}#s3{animation:3s linear infinite forwards s3__to}@keyframes s3__to{0%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,33.333333%{transform:translate(12px,24px)}}#s4{animation:3s linear infinite forwards s4__ts}@keyframes s4__ts{0%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%,30%{transform:scale(0,0)}}#s5{animation:3s linear infinite forwards s5__to}@keyframes s5__to{0%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}33.333333%{transform:translate(12px,12.045742px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,66.666667%{transform:translate(12px,24px)}}#s6{animation:3s linear infinite forwards s6__ts}@keyframes s6__ts{0%,100%,63.333333%{transform:scale(0,0)}3.333333%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}33.333333%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}#s7{animation:3s linear infinite forwards s7__to}@keyframes s7__to{0%{transform:translate(12px,0)}33.333333%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}66.666667%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,24px)}}#s8{animation:3s linear infinite forwards s8__ts}@keyframes s8__ts{0%,100%,96.666667%{transform:scale(0,0)}36.666667%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}66.666667%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}"}),p("g",{id:"s1",transform:"translate(12,0)",children:p("g",{id:"s2",transform:"scale(0,0)",children:p("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),p("g",{id:"s3",transform:"translate(12,12)",children:p("g",{id:"s4",transform:"scale(1,1)",children:p("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),p("g",{id:"s5",transform:"translate(12,0)",children:p("g",{id:"s6",transform:"scale(0,0)",children:p("path",{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",transform:"translate(-6.5,-6.5)","clip-rule":"evenodd",fill:"currentColor","fill-rule":"evenodd"})})}),p("g",{id:"s7",transform:"translate(12,0)",children:p("g",{id:"s8",transform:"scale(0,0)",children:p("path",{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",transform:"translate(-6.5,-9.25)",fill:"currentColor"})})})]}),Pi=()=>p("div",{class:"flex flex-grow flex-col items-center justify-center",children:p(Eo,{class:"text-neutral-6 h-8 w-8"})}),Lr=t=>{const i=t/100,o=1.3;return t<0?"0%":t>100?"100%":`${Math.round((1-(1-.1)*Math.pow(1-i,o))*100)}%`},Hr=Qt("touch-hitbox fr relative flex-none rounded-full p-2 transition-all",{variants:{variant:{neutral:"text-neutral-11 hover:text-neutral-12 active:text-neutral-12 hover:bg-interactive-bg-hover active:bg-interactive-bg-active ",white:"text-white/80 hover:text-white active:text-white hover:bg-white/20 active:bg-white/30"}},defaultVariants:{variant:"neutral"}}),Zt=({class:t,children:e,variant:i,...o})=>p("button",{class:Jt(Hr({variant:i}),t),...o,children:p("svg",{class:"block",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",xmlns:"http://www.w3.org/2000/svg",children:e})}),Po=()=>p("path",{d:"M12.5 6.5L8 11L3.5 6.5"}),Rr=()=>{if($.current$.value.state!=="loaded")return null;const t=$.current$.value.flow.nodeIdToProgress,e=$.current$.value.flow.data.nodeHistory.at(-1);if(e===void 0)return null;const i=t[e];if(i===void 0)return null;const o=100*(i.stepsMade/(i.remainingSteps+i.stepsMade));return p("div",{class:"bg-accent-3",children:p("div",{style:{width:Lr(o)},class:"bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"})})},Ur=({children:t,params:e})=>{const{t:i}=ee(),o=$.viewState$;return p(H,{children:p("header",{class:"ring-divider bg-statusbar absolute left-0 right-0 top-0 z-20 mx-auto items-center ring-1 backdrop-blur-md backdrop-saturate-150",children:[p("div",{class:"ring-neutral-7 flex h-[var(--header-height)] gap-2 rounded-t-3xl ring-0 ring-inset transition-all duration-300 [&:has(>.view-switch:focus-visible)]:ring-1",children:[p("p",{id:"chatbot-status-bar",class:"sr-only",children:t}),p("button",{onClick:()=>{o.value="minimised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",onTouchStart:ze,children:p("p",{"aria-hidden":!0,class:"text-neutral-12 truncate text-sm font-bold tracking-tight",children:t})}),p("div",{class:"flex flex-shrink-0 items-center gap-3 p-1.5",children:[e.feedback?p("div",{"data-widget":"inploi-feedback","data-key":"chatbot-header",class:Jt({hidden:$.current$.value.state!=="loaded"||o.value!=="maximised"}),children:p("div",{class:"ring-neutral-4 bg-neutral-3 h-8 w-[72px] animate-pulse rounded-full ring-1"})}):null,$.current$.value.state==="loaded"&&p(Zt,{class:"mx-1","aria-label":"Restart",onClick:()=>{$.restart()},children:[p("path",{d:"M12 8.5C12 9.29113 11.7654 10.0645 11.3259 10.7223C10.8864 11.3801 10.2616 11.8928 9.53073 12.1955C8.79983 12.4983 7.99556 12.5775 7.21964 12.4231C6.44371 12.2688 5.73098 11.8878 5.17157 11.3284C4.61216 10.769 4.2312 10.0563 4.07686 9.28036C3.92252 8.50444 4.00173 7.70017 4.30448 6.96927C4.60723 6.23836 5.11992 5.61365 5.77772 5.17412C6.43552 4.7346 7.20887 4.5 8 4.5H9"}),p("path",{d:"M8 7L10 4.5L8 2.5"})]},"restart"),p(Zt,{class:"view-switch mx-1",onTouchStart:ze,"aria-label":i("minimize"),onClick:()=>o.value="minimised",children:p(Po,{})},"minmax")]})]}),p(Rr,{})]})})};function ze(){}const Wr=lo(()=>Promise.resolve().then(()=>require("./chatbot-body-3bc5386e.cjs")).then(t=>t.ChatbotBody)),To=Qt("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",{variants:{view:{closed:"hidden",minimised:"max-w-[min(300px,calc(100vw-4rem))] h-[var(--header-height)] animate-slide-in-bottom",maximised:"max-w-[450px] h-[var(--content-height)] animate-maximise"}}}),Io=Qt("relative flex h-full overflow-hidden rounded-3xl outline outline-1",{variants:{view:{closed:"hidden",minimised:"outline-accent-10 bg-accent-9",maximised:"outline-neutral-3 bg-neutral-1 flex-col"}}}),Vr=({open:t,...e})=>{const i=Tt(null);return pt(()=>{const o=i.current;o&&(t?o.showModal():o.close())},[t]),p("dialog",{ref:i,...e})},Yr=({logger:t,apiClient:e,analytics:i,talentBankClient:o,params:a})=>{const{state:r,flow:n,error:s}=$.current$.value,c=$.viewState$.value,d=r!=="idle"&&c==="maximised",u=Tt(null),l=n?[...n.data.nodeHistory].reverse().map(w=>n.nodes.find(g=>g.id===w)).find(w=>(w==null?void 0:w.type)==="flow-section"):void 0;return p(hr,{terms:a.terms,locale:void 0,children:[p(Vr,{open:d,onClose:()=>$.viewState$.value="minimised",children:p("div",{ref:u,"aria-modal":"true",role:"dialog","aria-labelledby":"chatbot-status-bar",class:To({view:"maximised"}),children:p("div",{class:Io({view:"maximised"}),children:[p(Ur,{params:a,children:l?p(H,{children:[p("span",{class:"block",children:l.data.title}),p("span",{class:"block truncate text-xs font-normal",children:n==null?void 0:n.title})]}):n==null?void 0:n.title}),te({state:r,view:c}).with({state:"idle"},()=>null).with({state:"loading"},()=>p(Pi,{},"loading")).with({state:"loaded"},()=>p(kt,{fallback:p(Pi,{},"loading"),children:p(Wr,{analytics:i,apiClient:e,logger:t,talentBankClient:o})})).with({state:"error"},()=>p(Mr,{message:s})).exhaustive()]})})}),c==="minimised"?p(Kr,{flow:n}):null]})},Kr=({flow:t})=>{const{t:e}=ee();return p("div",{class:To({view:"minimised",class:"z-100 isolate"}),children:p("div",{class:Io({view:"minimised"}),children:[p("button",{onClick:()=>{$.viewState$.value="maximised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",onTouchStart:ze,children:p("p",{"aria-hidden":!0,class:"truncate text-sm font-bold tracking-tight text-white",children:t==null?void 0:t.title})}),p("div",{class:"flex items-center px-0.5",children:p(Zt,{class:"mx-1","aria-label":e("close_application"),onClick:$.cancelCurrentFlow,variant:"white",children:p("path",{d:"M12 12L4 4M12 4L4 12"})},"close")})]})})},qr=`[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}[data-widget=inploi-chatbot] .invisible{visibility:hidden}[data-widget=inploi-chatbot] .collapse{visibility:collapse}[data-widget=inploi-chatbot] .static{position:static}[data-widget=inploi-chatbot] .fixed{position:fixed}[data-widget=inploi-chatbot] .absolute{position:absolute}[data-widget=inploi-chatbot] .relative{position:relative}[data-widget=inploi-chatbot] .sticky{position:sticky}[data-widget=inploi-chatbot] .inset-0{top:0;right:0;bottom:0;left:0}[data-widget=inploi-chatbot] .bottom-0{bottom:0}[data-widget=inploi-chatbot] .bottom-2{bottom:8px}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:10px}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-1\\/2{left:50%}[data-widget=inploi-chatbot] .left-2{left:8px}[data-widget=inploi-chatbot] .right-0{right:0}[data-widget=inploi-chatbot] .right-0\\.5{right:2px}[data-widget=inploi-chatbot] .right-1{right:4px}[data-widget=inploi-chatbot] .right-2{right:8px}[data-widget=inploi-chatbot] .top-0{top:0}[data-widget=inploi-chatbot] .isolate{isolation:isolate}[data-widget=inploi-chatbot] .z-20{z-index:20}[data-widget=inploi-chatbot] .z-50{z-index:50}[data-widget=inploi-chatbot] .m-0{margin:0}[data-widget=inploi-chatbot] .mx-1{margin-left:4px;margin-right:4px}[data-widget=inploi-chatbot] .mx-auto{margin-left:auto;margin-right:auto}[data-widget=inploi-chatbot] .mb-1{margin-bottom:4px}[data-widget=inploi-chatbot] .ml-auto{margin-left:auto}[data-widget=inploi-chatbot] .mt-0\\.5{margin-top:2px}[data-widget=inploi-chatbot] .mt-auto{margin-top:auto}[data-widget=inploi-chatbot] .block{display:block}[data-widget=inploi-chatbot] .inline-block{display:inline-block}[data-widget=inploi-chatbot] .inline{display:inline}[data-widget=inploi-chatbot] .flex{display:flex}[data-widget=inploi-chatbot] .inline-flex{display:inline-flex}[data-widget=inploi-chatbot] .table{display:table}[data-widget=inploi-chatbot] .table-row{display:table-row}[data-widget=inploi-chatbot] .flow-root{display:flow-root}[data-widget=inploi-chatbot] .grid{display:grid}[data-widget=inploi-chatbot] .inline-grid{display:inline-grid}[data-widget=inploi-chatbot] .contents{display:contents}[data-widget=inploi-chatbot] .list-item{display:list-item}[data-widget=inploi-chatbot] .\\!hidden{display:none!important}[data-widget=inploi-chatbot] .hidden{display:none}[data-widget=inploi-chatbot] .size-\\[1lh\\]{width:1lh;height:1lh}[data-widget=inploi-chatbot] .h-1\\.5{height:6px}[data-widget=inploi-chatbot] .h-16{height:64px}[data-widget=inploi-chatbot] .h-4{height:16px}[data-widget=inploi-chatbot] .h-48{height:192px}[data-widget=inploi-chatbot] .h-8{height:32px}[data-widget=inploi-chatbot] .h-\\[3px\\]{height:3px}[data-widget=inploi-chatbot] .h-\\[var\\(--content-height\\)\\]{height:var(--content-height)}[data-widget=inploi-chatbot] .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}[data-widget=inploi-chatbot] .h-full{height:100%}[data-widget=inploi-chatbot] .max-h-\\[calc\\(100\\%-var\\(--header-height\\)-4rem\\)\\]{max-height:calc(100% - var(--header-height) - 64px)}[data-widget=inploi-chatbot] .max-h-\\[calc\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 16px)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-0{min-height:0px}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 16px)}[data-widget=inploi-chatbot] .w-1\\.5{width:6px}[data-widget=inploi-chatbot] .w-16{width:64px}[data-widget=inploi-chatbot] .w-24{width:96px}[data-widget=inploi-chatbot] .w-4{width:16px}[data-widget=inploi-chatbot] .w-64{width:256px}[data-widget=inploi-chatbot] .w-8{width:32px}[data-widget=inploi-chatbot] .w-\\[72px\\]{width:72px}[data-widget=inploi-chatbot] .w-full{width:100%}[data-widget=inploi-chatbot] .min-w-0{min-width:0px}[data-widget=inploi-chatbot] .min-w-\\[2rem\\]{min-width:32px}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,384px)}[data-widget=inploi-chatbot] .max-w-\\[min\\(300px\\,calc\\(100vw-4rem\\)\\)\\]{max-width:min(300px,calc(100vw - 64px))}[data-widget=inploi-chatbot] .max-w-\\[var\\(--radix-popover-content-available-width\\)\\]{max-width:var(--radix-popover-content-available-width)}[data-widget=inploi-chatbot] .max-w-full{max-width:100%}[data-widget=inploi-chatbot] .flex-1{flex:1 1 0%}[data-widget=inploi-chatbot] .flex-auto{flex:1 1 auto}[data-widget=inploi-chatbot] .flex-none{flex:none}[data-widget=inploi-chatbot] .flex-shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .shrink{flex-shrink:1}[data-widget=inploi-chatbot] .shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-widget=inploi-chatbot] .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}[data-widget=inploi-chatbot] .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes pulse{50%{opacity:.5}}[data-widget=inploi-chatbot] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(1.25)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}[data-widget=inploi-chatbot] .cursor-pointer{cursor:pointer}[data-widget=inploi-chatbot] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-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-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-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-\\[\\#4CAF50\\]{--tw-text-opacity: 1;color:rgb(76 175 80 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-accent-1{color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .text-accent-10{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .text-accent-11{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .text-accent-12{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .text-error-11{color:var(--i-color-e-11)}[data-widget=inploi-chatbot] .text-error-9{color:var(--i-color-e-9)}[data-widget=inploi-chatbot] .text-neutral-10{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .text-neutral-11{color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .text-neutral-12{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .text-neutral-6{color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .text-neutral-8{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .text-neutral-9{color:var(--i-color-n-9)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-white\\/80{color:#fffc}[data-widget=inploi-chatbot] .underline{text-decoration-line:underline}[data-widget=inploi-chatbot] .no-underline{text-decoration-line:none}[data-widget=inploi-chatbot] .underline-offset-2{text-underline-offset:2px}[data-widget=inploi-chatbot] .underline-offset-4{text-underline-offset:4px}[data-widget=inploi-chatbot] .caret-accent-9{caret-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .opacity-0{opacity:0}[data-widget=inploi-chatbot] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}[data-widget=inploi-chatbot] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .outline{outline-style:solid}[data-widget=inploi-chatbot] .outline-1{outline-width:1px}[data-widget=inploi-chatbot] .outline-2{outline-width:2px}[data-widget=inploi-chatbot] .outline-accent-10{outline-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .outline-accent-4{outline-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}[data-widget=inploi-chatbot] .outline-divider{outline-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .outline-neutral-3{outline-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .outline-neutral-6{outline-color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-inset{--tw-ring-inset: inset}[data-widget=inploi-chatbot] .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}[data-widget=inploi-chatbot] .ring-divider{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .ring-lowest{--tw-ring-color: var(--i-color-lowest)}[data-widget=inploi-chatbot] .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}[data-widget=inploi-chatbot] .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}[data-widget=inploi-chatbot] .ring-neutral-7{--tw-ring-color: var(--i-color-n-7)}[data-widget=inploi-chatbot] .ring-transparent{--tw-ring-color: transparent}[data-widget=inploi-chatbot] .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}[data-widget=inploi-chatbot] .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-saturate-150{--tw-backdrop-saturate: saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-\\[background\\,color\\,border-color\\,box-shadow\\]{transition-property:background,color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .duration-100{transition-duration:.1s}[data-widget=inploi-chatbot] .duration-1000{transition-duration:1s}[data-widget=inploi-chatbot] .duration-300{transition-duration:.3s}[data-widget=inploi-chatbot] .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}[data-widget=inploi-chatbot] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-widget=inploi-chatbot] .will-change-\\[transform\\,opacity\\]{will-change:transform,opacity}[data-widget=inploi-chatbot] .text-wrap-balance{text-wrap:balance}[data-widget=inploi-chatbot] .fr{outline:none}[data-widget=inploi-chatbot] .fr:focus{outline:none}[data-widget=inploi-chatbot] .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .gutter-stable{scrollbar-gutter:stable}[data-widget=inploi-chatbot] .hide-scrollbars::-webkit-scrollbar{display:none}[data-widget=inploi-chatbot] .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}[data-widget=inploi-chatbot] .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}[data-widget=inploi-chatbot] .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}[data-widget=inploi-chatbot] .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}[data-widget=inploi-chatbot] .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}[data-widget=inploi-chatbot] .\\[text-wrap\\:pretty\\]{text-wrap:pretty}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .first-of-type\\:rounded-l-lg:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .hover\\:z-10:hover{z-index:10}[data-widget=inploi-chatbot] .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:bg-divider:hover{background-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-white\\/20:hover{background-color:#fff3}[data-widget=inploi-chatbot] .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .hover\\:underline:hover{text-decoration-line:underline}[data-widget=inploi-chatbot] .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}[data-widget=inploi-chatbot] .hover\\:ring-divider:hover{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .focus\\:z-20:focus{z-index:20}[data-widget=inploi-chatbot] .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-2:focus-visible{outline-width:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}[data-widget=inploi-chatbot] .focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-hover:active{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-white\\/30:active{background-color:#ffffff4d}[data-widget=inploi-chatbot] .active\\:text-accent-10:active{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:text-accent-11:active{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .active\\:text-neutral-12:active{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .active\\:ring-2:active{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .active\\:ring-interactive-bg-hover:active{--tw-ring-color: var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-widget=inploi-chatbot] .disabled\\:opacity-50:disabled{opacity:.5}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .aria-disabled\\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}[data-widget=inploi-chatbot] .aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}[data-widget=inploi-chatbot] .aria-disabled\\:hover\\:border-accent-9:hover[aria-disabled=true]{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .aria-disabled\\:hover\\:bg-accent-9:hover[aria-disabled=true]{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .aria-disabled\\:active\\:ring-1:active[aria-disabled=true]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .aria-disabled\\:active\\:ring-offset-\\[1\\.5px\\]:active[aria-disabled=true]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .group[aria-pressed=true] .group-aria-\\[pressed\\=true\\]\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (pointer: coarse){[data-widget=inploi-chatbot] .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-11:has(+*>input:focus){color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\>\\.view-switch\\:focus-visible\\)\\]\\:ring-1:has(>.view-switch:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[data-widget=inploi-chatbot] dialog::backdrop{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}[data-widget=inploi-chatbot] dialog::backdrop{background-color:var(--i-overlay-bg)}
|
|
2
|
+
`,zo="inploi-chatbot",Oe=`[data-widget='${zo}']`,Gr=()=>({getChatbotElement:()=>document.querySelector(Oe),getOrCreateChatbotElement:()=>{const t=document.querySelector(Oe);if(t)return document.body.appendChild(t),t;const e=document.createElement("div");return document.body.appendChild(e),e.dataset.widget=zo,e}}),Zr=25,Oo=J(()=>{}),Xr=(t,e)=>new Promise((i,o)=>{if(e!=null&&e.aborted)return o(new ct);const a=setTimeout(i,t);e==null||e.addEventListener("abort",()=>{clearTimeout(a),o(new ct)},{once:!0})}),at={onSubmitSuccessFn$:J(()=>{}),onInteractionFn$:J(()=>{}),isBotTyping$:J(!1),isReadingHistory$:J(!1),scrollToEnd:()=>Oo.value()},Jr=()=>{const t=Tt(null);pt(()=>{const i=t.current;if(!i)return;const o=()=>{at.isReadingHistory$.value=!1,i.scrollTo({top:i.scrollHeight,behavior:"instant"})};Oo.value=o;const a=()=>{at.isReadingHistory$.value=i.scrollHeight-i.scrollTop-i.clientHeight>2};i.addEventListener("scroll",a,{passive:!0});const r=new ResizeObserver(()=>{at.isReadingHistory$.peek()||o()});return r.observe(i),i.firstElementChild&&r.observe(i.firstElementChild),()=>{i.removeEventListener("scroll",a),r.disconnect()}},[]);const e=nt(()=>({setSubmission:(o,a)=>$.setSubmission(o,a),send:async({message:o,signal:a,groupId:r})=>{if(await te(o).with({author:"bot",type:"text"},async n=>{if(a!=null&&a.aborted)throw new ct;at.isBotTyping$.value=!0;const s=Math.min(Math.max(20,n.text.length),100)*Zr;try{await Xr(s,a)}finally{at.isBotTyping$.value=!1}}).otherwise(async()=>{}),a!=null&&a.aborted)throw new ct;$.addMessage(o,r)},input:({input:o,signal:a})=>{if(a!=null&&a.aborted)throw new ct;return $.setInput(o),new Promise(r=>{const n=s=>{if(a!=null&&a.aborted)throw new ct;$.setInput(void 0),o.key&&$.setSubmission(o.key,s),r(s)};at.onSubmitSuccessFn$.value=n})}}),[]);return{chatRef:t,chatService:e}};var jo=Ho(De([L(),Ht()]),Oi(String)),No=D({id:jo,version:Ht(),build:Ht(),nodes:Ni(ji()),context_schema:M(Lt(Ai(L(),D({required:Ae(),type:De([Mt("string"),Mt("number")])}))))}),Qr=D({flow:No}),tn=D({company:D({name:L()}),flow:No,job:D({id:jo,title:L()}),user:M(D({city:M(L()),country:M(L()),isEU:M(Ae()),continent:M(L())}))}),en=St.endpoint({pathname:"/flow/job/:id",method:"GET",schema:{searchParams:St.typed(),response:tn}}),on=St.endpoint({pathname:"/flow/id/:id",method:"GET",schema:{response:Qr}}),an=["1","2","3","4","5","6","7","8","9","10","11","12"],rn={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},nn=(t,e=1,i)=>o=>{const[a,r]=rn[i][o];return"oklch("+a+"% "+r*e+" "+t+")"},pe=t=>{const e=nn(t.hue,t.chroma,t.mode);return Object.fromEntries(an.map(i=>[t.prefix+i,t.transform(e(i))]))},he=t=>t,sn=t=>{const e=Object.keys(t).flatMap(i=>{const o=t[i];return typeof o=="object"&&o!==null?Object.keys(o).map(a=>{const r=o[a];return[`${String(i)}.${a}`,r]}):[[i,o]]});return Object.fromEntries(e)},Ot=t=>!!t&&typeof t=="object"&&!Array.isArray(t),je=(t,...e)=>{if(!e.length)return t;const i=e.shift();if(Ot(t)&&Ot(i))for(const o in i){const a=i[o];if(Ot(a)){t[o]||Object.assign(t,{[o]:{}});const r=t[o];Ot(r)&&je(r,a)}else Object.assign(t,{[o]:i[o]})}return je(t,...e)},ln=t=>{function e(i,o){const a=[t.prefix,o.toString().replace(/\./g,"-")].join("");return i==="declaration"?`--${a}`:`var(--${a})`}return e},cn=()=>({core:t=>({semantic:e=>({component:i=>({from:o=>{const{theme:a,getToken:r}=o,n=w=>r("reference",w.toString()),s=t({theme:a}),c=e({theme:a,core:n,raw:{core:s}}),d=i({theme:a,core:n,semantic:n,raw:{core:s,semantic:c}}),u=sn(je(s,c,d)),l=([w,g],h)=>{const b=[h,w].filter(Boolean).join(".");return typeof g=="object"?Object.entries(g).flatMap(j=>l(j,b)):[[o.getToken("declaration",b),g]]};return{values:u,declarations:Object.fromEntries(Object.entries(u).flatMap(w=>l(w))),ref:w=>r("reference",w.toString())}}})})})});const[fe,we,Ti]=["oklch(0% 0 0)","oklch(100% 0 0)","transparent"],dn=cn().core(({theme:t})=>({color:{black:fe,white:we,lowest:t.mode==="light"?we:fe,highest:t.mode==="light"?fe:we,...pe({prefix:"a-",hue:t.hue,chroma:t.chroma,mode:t.mode,transform:he}),...pe({prefix:"n-",hue:t.hue,chroma:.05,mode:t.mode,transform:he}),...pe({prefix:"e-",hue:20,chroma:t.chroma,mode:t.mode,transform:he})},typography:{}})).semantic(({core:t,raw:e,theme:i})=>{const o=(a,r)=>e.core.color[a].replace(")",` / ${r})`);return{"font-family":{body:"inherit",headings:"inherit"},"font-style":{body:"normal",headings:"normal"},"font-weight-body":"normal","font-weight-headings":"normal","radius-app":"1.5rem","radius-interactive":"1.5rem",color:{divider:o("n-8",i.mode==="dark"?.4:.2)},"copy-body":t("color.n-12"),"copy-headings":t("color.n-12"),interactive:{copy:t("color.n-11"),"copy-hover":t("color.n-12"),"copy-active":t("color.n-12"),bg:Ti,"bg-hover":o("n-10",.2),"bg-active":o("n-10",.3)}}}).component(({raw:t,theme:e,semantic:i,core:o})=>{const a=(r,n)=>t.core.color[r].replace(")",` / ${n})`);return{app:{bg:o(e.mode==="dark"?"color.n-1":"color.n-2")},overlay:{bg:a("black",.4)},bubble:{"weak-bg":o(e.mode==="dark"?"color.n-3":"color.lowest"),"weak-outline":i("color.divider"),"strong-shadow":a("a-9",.05)},"status-bar":{bg:a("n-2",.8),"bg-button":Ti,"bg-button-hover":a("n-10",.4),"bg-button-active":a("n-10",.5)},"submit-button":{"bg-active":o(e.mode==="dark"?"color.a-8":"color.a-11")}}}),un=ln({prefix:"i-"}),pn=t=>{const e=dn.from({theme:t,getToken:un}),i=Object.entries(e.declarations).map(([o,a])=>`${o}: ${a};`);return`${Oe} {
|
|
3
|
+
${i.concat(i).join(`
|
|
4
|
+
`)}
|
|
5
|
+
}`},hn=({_internal_domManager:t=Gr(),theme:e,terms:i,feedback:o})=>St.createPlugin(({apiClient:a,rpcClient:r,logger:n,analytics:s,publishableKey:c,env:d})=>{let u=!1,l=0;const w=fr({locale:void 0,overrides:i??{}}),g=c&&d?St.createTalentBankClient({environment:d,publishableKey:c,logger:n}):void 0,h=v=>v===l,b=()=>{if(typeof window>"u")return;l++,K.flushStateData().catch(()=>{}),$.cancelCurrentFlow(),at.isBotTyping$.value=!1;const v=t.getChatbotElement();v&&(ut(null,v),v.remove()),u=!1,n.info("Chatbot plugin destroyed")},j=()=>{if(typeof window>"u")return;const v=l,_=[F("style",{id:"inploi-chatbot-styles"},qr),F("style",{id:"inploi-chatbot-theme"},pn(e))],y=t.getOrCreateChatbotElement();if(ut(F(H,{},[_,F(Yr,{apiClient:a,logger:n,analytics:s,talentBankClient:g,params:{theme:e,terms:i,feedback:o}})]),y),o){const E=T=>{var W,z;if(!h(v))return;const U=(W=t.getChatbotElement())==null?void 0:W.querySelector("dialog");U&&fn({instance:T({rpcClient:r,apiClient:a,logger:n,analytics:s}),theme:e,terms:((z=o.params)==null?void 0:z.terms)??{},host:U})};o.plugin instanceof Promise?o.plugin.then(({feedbackPlugin:T})=>{E(T())}).catch(T=>{n.error("Error preparing feedback plugin",T)}):E(o.plugin)}u=!0},x=async(v,_)=>{if(!h(_))return;ra({context:v.context||{},schema:v.flow.context_schema,logger:n});const y=await $.prepareFlow(v);h(_)&&$.commitFlow(y)};return{prepare:async()=>{if(!(typeof window>"u"))try{if(u)return;j(),n.info("Chatbot plugin prepared")}catch(v){n.error("Error preparing chatbot plugin",v)}},fetchFlowByJobId:async(v,_)=>r.request(en,{params:{id:v},searchParams:{id_type:(_==null?void 0:_.idType)==="inploi"?"internal":"external"}}).then(y=>({flow:y.flow,title:y.job.title,flowKeys:[y.job.id,...(_==null?void 0:_.flowKeys)??[]],job:{id:y.job.id,id_type:"external"},..._,context:{user:y.user,..._==null?void 0:_.context}})),fetchFlowById:async(v,_)=>r.request(on,{params:{id:v}}).then(y=>{var E;return{flow:y.flow,title:"Chatbot",flowKeys:(_==null?void 0:_.flowKeys)??[],..._,analytics:{customProperties:{flow_id:y.flow.id,flow_version:y.flow.version,...(E=_==null?void 0:_.analytics)==null?void 0:E.customProperties}}}}),open:async v=>{if(!(typeof window>"u"))try{$.cancelCurrentFlow(),$.viewState$.value="maximised",u||j();const _=l;v instanceof Promise?($.current$.value={state:"loading"},v.then(y=>x(y,_)).catch(y=>{if(!h(_))return;const E=y instanceof Error?y.message:w("unknown_error");$.current$.value={state:"error",error:E}})):await x(v,_)}catch(_){n.error("Error starting flow",_)}},close:async()=>{typeof window>"u"||($.cancelCurrentFlow(),n.info("Closed flow from an external source"))},destroy:b}});function fn({instance:t,terms:e,theme:i,host:o}){t.render({key:"chatbot-header",size:"sm",theme:{accent:{chroma:i.chroma??1,hue:i.hue},positive:{hue:180,chroma:1},negative:{hue:33,chroma:1},mode:i.mode,corners:"rounded",highlights:"stroke"},terms:e,host:o})}exports.AbortedError=ct;exports.ChevronDown=Po;exports.Cn=Ga;exports.F=Fi;exports.F$1=nt;exports.G=qo;exports.H=Zo;exports.I=Vo;exports.J=Xo;exports.K=Yo;exports.LoadingIndicator=Eo;exports.M=te;exports.Q=Jo;exports.SvgIconButton=Zt;exports.W=ta;exports.Y=oa;exports.Z=aa;exports._=Be;exports._$1=Tt;exports.chatStore=at;exports.chatbotPlugin=hn;exports.clsx=Jt;exports.cva=Qt;exports.getCorrectionNodeId=Br;exports.getFormSubmitter=Dr;exports.getHeadOrThrow=jr;exports.h=He;exports.invariant=Ye;exports.isSubmissionOfType=Nr;exports.j=Wo;exports.k=H;exports.k$1=ao;exports.o=p;exports.p=Re;exports.store=$;exports.useChatService=Jr;exports.useTranslation=ee;exports.y=pt;exports.z=Ko;exports.z$1=yt;
|