@inploi/plugin-chatbot 14.17.2 → 14.18.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.
@@ -0,0 +1,22 @@
1
+ "use strict";const bt=require("@inploi/sdk");var wo=typeof document<"u"?document.currentScript:null,Se=new Set(["Error","TypeError","RangeError","ReferenceError","SyntaxError","URIError","EvalError","AggregateError","AbortError","TimeoutError","NetworkError","NotAllowedError","NotFoundError","NotSupportedError","InvalidStateError","QuotaExceededError","SecurityError","DataCloneError","ChunkLoadError"]),xa=[/^Cannot (?:read|set) properties of (?:undefined|null) \((?:reading|setting) '[\w$]{1,40}'\)$/,/^[\w$.]{1,60} is (?:not a function|not iterable|not defined|not a constructor|undefined|null)$/,/^(?:undefined|null) is not an object \(evaluating '[\w$.]{1,60}'\)$/,/^can't access property "[\w$]{1,40}", [\w$.]{1,60} is (?:undefined|null)$/,/^(?:Script error\.|Assignment to constant variable\.|Maximum call stack size exceeded|Invalid array length|Invalid time value|Failed to fetch|Load failed|Importing a module script failed\.|NetworkError when attempting to fetch resource\.)$/],ka=`IDBDatabase IDBObjectStore IDBTransaction IDBFactory IDBRequest IDBOpenDBRequest IDBIndex IDBCursor IDBKeyRange
2
+ Storage StorageManager Window Document Element HTMLElement HTMLIFrameElement HTMLMediaElement HTMLFormElement
3
+ HTMLInputElement Node EventTarget Navigator Clipboard ServiceWorkerContainer ServiceWorkerRegistration Response
4
+ Request Headers URL URLSearchParams Blob File FileReader FormData MessagePort Worker Cache CacheStorage History
5
+ Location CustomElementRegistry ReadableStream WritableStream AbortSignal Performance Crypto SubtleCrypto
6
+ MediaDevices ResizeObserver IntersectionObserver MutationObserver Notification Permissions LockManager
7
+ DOMTokenList ShadowRoot Selection Range TextDecoder TextEncoder WebSocket XMLHttpRequest
8
+ transaction objectStore createObjectStore deleteObjectStore createIndex index put get getAll getKey delete add
9
+ clear count openCursor open deleteDatabase setItem getItem removeItem key postMessage fetch json text arrayBuffer
10
+ blob formData querySelector querySelectorAll appendChild removeChild insertBefore replaceChild append prepend
11
+ remove contains observe unobserve disconnect play pause writeText readText write read share register
12
+ getRegistration requestStorageAccess focus blur scrollTo scrollIntoView setAttribute getAttribute
13
+ getBoundingClientRect attachShadow define pushState replaceState assign replace reload send close abort
14
+ requestAnimationFrame matchMedia getComputedStyle createElement structuredClone localStorage sessionStorage
15
+ indexedDB serviceWorker clipboard cookie`,$a=["The operation is insecure.","The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.","The user aborted a request.","The operation was aborted.","signal is aborted without reason","Fetch is aborted","The quota has been exceeded.","The object is in an invalid state.","The string did not match the expected pattern.","The object can not be found here.","The operation is not supported.","The database connection is closing.","The transaction has finished.","The transaction is not active.","The transaction was aborted, so the request cannot be fulfilled.","One of the specified object stores was not found.","Connection to Indexed Database server lost. Refresh the page to try again","Attempt to get a record from database without an in-progress transaction","Database deleted by request of the user","An internal error was encountered in the Indexed Database server","Internal error opening backing store for indexedDB.open.","Access is denied for this document.","Access to the IndexedDB API is denied in this context.","The document is sandboxed and lacks the 'allow-same-origin' flag.","The play() request was interrupted by a call to pause().","The play() request was interrupted because the media was removed from the document.","play() failed because the user didn't interact with the document first.","The network connection was lost.","The request timed out.","The Internet connection appears to be offline.","A server with the specified hostname could not be found.","Network request failed","Illegal invocation","cancelled"],Sa=/^Failed to (?:execute|read|set|construct) (?:the )?'([\w$]{1,40})'(?: (?:on|property (?:from|on)|from) '([\w$]{1,40})')?(?:: (.*))?$/,go,Ea=t=>{let{apis:e,sentences:o}=go??(go={apis:new Set(ka.split(/\s+/)),sentences:new Set($a)});if(o.has(t))return t;let i=Sa.exec(t);if(!i)return"";let[,a,n,r]=i;return e.has(a)&&(n===void 0||e.has(n))&&(r===void 0||o.has(r))?t:""},Ca=/^\s*at\s|@(?:[a-z][\w+.-]*:\/\/|\[native code\])/i,Ta=/\b(?:chrome|moz|safari|safari-web|ms-browser)-extension:\/\//,Ia=/\[native code\]|<anonymous>|\(native\)/,Pa=t=>Ta.test(t)?"extension":Ia.test(t)?"native":"script",bo=/^(Failed to fetch dynamically imported module|error loading dynamically imported module)/,ja=/^((?:[\w-]{1,20}\/){0,3}[\w.-]{1,80}\.js)(?:\?retry=\d{1,3})?:(\d{1,7})(?::(\d{1,7}))?\)?$/,Aa=/^ResizeObserver loop (?:completed with undelivered notifications\.|limit exceeded)$/,Oa=({error:t,message:e})=>t==null&&Aa.test(e),ae=t=>t instanceof Error?Se.has(t.name)?t.name:"Error":typeof t,Da=new Set(["DOMException","Object","Array","Promise","Event","ErrorEvent","PromiseRejectionEvent","ProgressEvent","CloseEvent","MessageEvent","Response","Request","XMLHttpRequest"]),Ma=t=>{var i,a;let e=t===null?"null":typeof t,o={message:"",stack:"",thrown:{type:e,ctor:"",keys:0,message_length:0,stack_lines:0}};if(typeof t=="string")return{...o,thrown:{...o.thrown,message_length:t.length}};if(typeof t!="object"||t===null)return o;try{let{message:n,stack:r}=t,s=(a=(i=Object.getPrototypeOf(t))==null?void 0:i.constructor)==null?void 0:a.name,l=typeof s!="string"?"":Se.has(s)||Da.has(s)?s:"other",d=typeof n=="string"?n:"",u=typeof r=="string"?r:"";return{message:t instanceof Error||Se.has(l)||l==="DOMException"?d:"",stack:u,thrown:{type:e,ctor:l,keys:Object.keys(t).length,message_length:d.length,stack_lines:u?u.split(`
16
+ `,1e3).length:0}}}catch{return o}},Na=(t,e,o="")=>{let i=ae(t),{message:a,stack:n,thrown:r}=Ma(t),s=(t==null?o:a).slice(0,300),l=xa.some(h=>h.test(s))?s:bo.test(s)?bo.exec(s)[1]:Ea(s),d=[],u=new Set;for(let h of n.split(`
17
+ `,60)){let w=h.indexOf(e),p=w!==-1&&(w===0||" (@".includes(h[w-1])),g=p?ja.exec(h.slice(w+e.length).trim()):null;g?d.push([g[1],g[2],g[3]].filter(Boolean).join(":")):p?u.add("build"):Ca.test(h)&&u.add(Pa(h))}d.splice(10);let c={name:i,message:l,stack:d,foreign:[...u].sort(),thrown:r};for(;JSON.stringify(c).length>1400&&c.stack.length;)c.stack.pop();return c},vo="inploi-candidate-beacon-seed",za=()=>{try{return typeof sessionStorage>"u"?void 0:sessionStorage}catch{return}},Ra=()=>{},ai=t=>{let e=3735928559,o=1103547991;for(let i=0;i<t.length;i++){let a=t.charCodeAt(i);e=Math.imul(e^a,2654435761),o=Math.imul(o^a,1597334677)}return e=Math.imul(e^e>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(e^e>>>13,3266489909),4294967296*(2097151&o)+(e>>>0)},Fa=(t,e)=>{try{let o=t==null?void 0:t.getItem(vo);if(o)return o;let i=e();return t==null||t.setItem(vo,i),i}catch{return e()}},Ba=[["facebook",/\bFB(?:AN|AV|_IAB)\b/],["instagram",/\bInstagram (\d+)/],["linkedin",/\bLinkedInApp\b/],["tiktok",/\b(?:musical_ly|BytedanceWebview|TikTok)\b/],["samsung",/\bSamsungBrowser\/(\d+)/],["edge",/\bEdg(?:e|A|iOS)?\/(\d+)/],["opera",/\bOPR\/(\d+)/],["firefox",/\b(?:Firefox|FxiOS)\/(\d+)/],["chrome",/\b(?:Chrome|CriOS)\/(\d+)/],["safari",/\bVersion\/(\d+)[\d.]* (?:Mobile\/\S+ )?Safari\//]],La=[["ios",/\b(?:iPhone|iPad|iPod)\b/],["android",/\bAndroid\b/],["windows",/\bWindows\b/],["chromeos",/\bCrOS\b/],["mac",/\bMacintosh\b/],["linux",/\bLinux\b/]],Ha=t=>{var i,a;let e=Ba.find(([,n])=>n.test(t)),o=(i=e==null?void 0:e[1].exec(t))==null?void 0:i[1];return{browser:e?[e[0],o].filter(Boolean).join(" "):"other",platform:((a=La.find(([,n])=>n.test(t)))==null?void 0:a[0])??"other"}},Ua=(t=typeof document>"u"?void 0:document)=>{var n,r;let e=()=>typeof performance>"u"?0:Math.round(performance.now()),o=(t==null?void 0:t.visibilityState)==="hidden"?e():null,i=null,a=!1;return t==null||t.addEventListener("visibilitychange",()=>{t.visibilityState==="hidden"?o=e():o!==null&&(i=e())}),(n=t==null?void 0:t.defaultView)==null||n.addEventListener("pagehide",()=>a=!0),(r=t==null?void 0:t.defaultView)==null||r.addEventListener("pageshow",()=>a=!1),()=>{var d;let s=typeof navigator>"u"?void 0:navigator,l=(d=s==null?void 0:s.connection)==null?void 0:d.effectiveType;return{visibility:(t==null?void 0:t.visibilityState)??"unknown",was_hidden:o!==null,hidden_at_ms:o,shown_at_ms:i,unloading:a,online:typeof(s==null?void 0:s.onLine)=="boolean"?s.onLine:null,connection:typeof l=="string"?l.slice(0,8):null,...Ha((s==null?void 0:s.userAgent)??""),page_ms:e()}}},Wa=new Set(["boot_failed","fatal","submit_blocked"]),Va=(t,e,o)=>{if(e.unloading||e.visibility==="hidden")return!0;if(t!=="boot_failed"||e.hidden_at_ms===null)return!1;if(o.elapsed_ms===void 0)return!0;let i=e.page_ms-o.elapsed_ms;return e.hidden_at_ms>=i||e.shown_at_ms!==null&&e.shown_at_ms>=i},qa=(t,e,o,i,a)=>{var r;if(e)return"abandoned";if(a.online===!1)return"offline";let n=[i.phase,i.stage,o==null?void 0:o.slice(0,40),i.http_status??((r=i.error)==null?void 0:r.name)];return[...new Set(n.filter(s=>s!==void 0&&s!=="").map(String))].join(":")||t},Ya=({config:t,version:e,env:o,seed:i,automated:a=typeof navigator<"u"&&navigator.webdriver===!0,company:n,page:r=Ua(),now:s=Date.now,post:l=(d,u)=>fetch(d,u)})=>{let d=ai(i),u=s(),c=t!==void 0&&d%1e4<t.sampleRate*1e4,h=new Set;return{send:(w,p,g={})=>{if(!t||!c||!e)return;let $=r(),x=Wa.has(w),C=x&&Va(w,$,g),j=C?`${w}:abandoned`:w;if(h.has(j))return;h.add(j);let{error:D,...M}=g,N={dt:new Date(s()).toISOString(),message:"Candidate widget beacon",kind:w,version:e,company_slug:(n==null?void 0:n())??null,env:o==="production"?"production":"staging",mode:a?"test":"live",seed_hash:d.toString(36),sample_rate:t.sampleRate,...p&&{reason:p.slice(0,40)},...x&&{abandoned:C,cause:qa(w,C,p,g,$).slice(0,60)},since_start_ms:Math.max(0,Math.round(s()-u)),...$,...M,...D&&{error:D,error_message:D.message,error_frame:D.stack[0]??null}};l(`https://${t.host}`,{method:"POST",keepalive:!0,headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json"},body:JSON.stringify(N)}).catch(()=>{})}}},ot;function ni(t){return{lang:(t==null?void 0:t.lang)??(ot==null?void 0:ot.lang),message:t==null?void 0:t.message,abortEarly:(t==null?void 0:t.abortEarly)??(ot==null?void 0:ot.abortEarly),abortPipeEarly:(t==null?void 0:t.abortPipeEarly)??(ot==null?void 0:ot.abortPipeEarly)}}var ue;function Ka(t){return ue==null?void 0:ue.get(t)}var pe;function Za(t){return pe==null?void 0:pe.get(t)}var he;function Xa(t,e){var o;return(o=he==null?void 0:he.get(t))==null?void 0:o.get(e)}function qe(t){var o,i;let e=typeof t;return e==="string"?`"${t}"`:e==="number"||e==="bigint"||e==="boolean"?`${t}`:e==="object"||e==="function"?(t&&((i=(o=Object.getPrototypeOf(t))==null?void 0:o.constructor)==null?void 0:i.name))??"null":e}function W(t,e,o,i,a){let n=a&&"input"in a?a.input:o.value,r=(a==null?void 0:a.expected)??t.expects??null,s=(a==null?void 0:a.received)??qe(n),l={kind:t.kind,type:t.type,input:n,expected:r,received:s,message:`Invalid ${e}: ${r?`Expected ${r} but r`:"R"}eceived ${s}`,requirement:t.requirement,path:a==null?void 0:a.path,issues:a==null?void 0:a.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},d=t.kind==="schema",u=(a==null?void 0:a.message)??t.message??Xa(t.reference,l.lang)??(d?Za(l.lang):null)??i.message??Ka(l.lang);u!==void 0&&(l.message=typeof u=="function"?u(l):u),d&&(o.typed=!1),o.issues?o.issues.push(l):o.issues=[l]}function F(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},ni())}}}function Ga(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function Ye(t,e){let o=[...new Set(t)];return o.length>1?`(${o.join(` ${e} `)})`:o[0]??"never"}function ri(t){return{kind:"transformation",type:"transform",reference:ri,async:!1,operation:t,"~run"(e){return e.value=this.operation(e.value),e}}}function Ja(t,e,o){return typeof t.fallback=="function"?t.fallback(e,o):t.fallback}function Ke(t,e,o){return typeof t.default=="function"?t.default(e,o):t.default}function si(){return{kind:"schema",type:"any",reference:si,expects:"any",async:!1,get"~standard"(){return F(this)},"~run"(t){return t.typed=!0,t}}}function li(t,e){return{kind:"schema",type:"array",reference:li,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return F(this)},"~run"(o,i){var n;let a=o.value;if(Array.isArray(a)){o.typed=!0,o.value=[];for(let r=0;r<a.length;r++){let s=a[r],l=this.item["~run"]({value:s},i);if(l.issues){let d={type:"array",origin:"value",input:a,key:r,value:s};for(let u of l.issues)u.path?u.path.unshift(d):u.path=[d],(n=o.issues)==null||n.push(u);if(o.issues||(o.issues=l.issues),i.abortEarly){o.typed=!1;break}}l.typed||(o.typed=!1),o.value.push(l.value)}}else W(this,"type",o,i);return o}}}function Ze(t){return{kind:"schema",type:"boolean",reference:Ze,expects:"boolean",async:!1,message:t,get"~standard"(){return F(this)},"~run"(e,o){return typeof e.value=="boolean"?e.typed=!0:W(this,"type",e,o),e}}}function U(t,e){return{kind:"schema",type:"literal",reference:U,expects:qe(t),async:!1,literal:t,message:e,get"~standard"(){return F(this)},"~run"(o,i){return o.value===this.literal?o.typed=!0:W(this,"type",o,i),o}}}function ci(t){return{kind:"schema",type:"null",reference:ci,expects:"null",async:!1,message:t,get"~standard"(){return F(this)},"~run"(e,o){return e.value===null?e.typed=!0:W(this,"type",e,o),e}}}function wt(t,e){return{kind:"schema",type:"nullable",reference:wt,expects:`(${t.expects} | null)`,async:!1,wrapped:t,default:e,get"~standard"(){return F(this)},"~run"(o,i){return o.value===null&&(this.default!==void 0&&(o.value=Ke(this,o,i)),o.value===null)?(o.typed=!0,o):this.wrapped["~run"](o,i)}}}function Zt(t){return{kind:"schema",type:"number",reference:Zt,expects:"number",async:!1,message:t,get"~standard"(){return F(this)},"~run"(e,o){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:W(this,"type",e,o),e}}}function P(t,e){return{kind:"schema",type:"object",reference:P,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return F(this)},"~run"(o,i){var n;let a=o.value;if(a&&typeof a=="object"){o.typed=!0,o.value={};for(let r in this.entries){let s=this.entries[r];if(r in a||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){let l=r in a?a[r]:Ke(s),d=s["~run"]({value:l},i);if(d.issues){let u={type:"object",origin:"value",input:a,key:r,value:l};for(let c of d.issues)c.path?c.path.unshift(u):c.path=[u],(n=o.issues)==null||n.push(c);if(o.issues||(o.issues=d.issues),i.abortEarly){o.typed=!1;break}}d.typed||(o.typed=!1),o.value[r]=d.value}else if(s.fallback!==void 0)o.value[r]=Ja(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(W(this,"key",o,i,{input:void 0,expected:`"${r}"`,path:[{type:"object",origin:"key",input:a,key:r,value:a[r]}]}),i.abortEarly))break}}else W(this,"type",o,i);return o}}}function L(t,e){return{kind:"schema",type:"optional",reference:L,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return F(this)},"~run"(o,i){return o.value===void 0&&(this.default!==void 0&&(o.value=Ke(this,o,i)),o.value===void 0)?(o.typed=!0,o):this.wrapped["~run"](o,i)}}}function di(t,e){return{kind:"schema",type:"picklist",reference:di,expects:Ye(t.map(qe),"|"),async:!1,options:t,message:e,get"~standard"(){return F(this)},"~run"(o,i){return this.options.includes(o.value)?o.typed=!0:W(this,"type",o,i),o}}}function Xe(t,e,o){return{kind:"schema",type:"record",reference:Xe,expects:"Object",async:!1,key:t,value:e,message:o,get"~standard"(){return F(this)},"~run"(i,a){var r,s;let n=i.value;if(n&&typeof n=="object"){i.typed=!0,i.value={};for(let l in n)if(Ga(n,l)){let d=n[l],u=this.key["~run"]({value:l},a);if(u.issues){let h={type:"object",origin:"key",input:n,key:l,value:d};for(let w of u.issues)w.path=[h],(r=i.issues)==null||r.push(w);if(i.issues||(i.issues=u.issues),a.abortEarly){i.typed=!1;break}}let c=this.value["~run"]({value:d},a);if(c.issues){let h={type:"object",origin:"value",input:n,key:l,value:d};for(let w of c.issues)w.path?w.path.unshift(h):w.path=[h],(s=i.issues)==null||s.push(w);if(i.issues||(i.issues=c.issues),a.abortEarly){i.typed=!1;break}}(!u.typed||!c.typed)&&(i.typed=!1),u.typed&&(i.value[u.value]=c.value)}}else W(this,"type",i,a);return i}}}function z(t){return{kind:"schema",type:"string",reference:z,expects:"string",async:!1,message:t,get"~standard"(){return F(this)},"~run"(e,o){return typeof e.value=="string"?e.typed=!0:W(this,"type",e,o),e}}}function mo(t){let e;if(t)for(let o of t)e?e.push(...o.issues):e=o.issues;return e}function Ge(t,e){return{kind:"schema",type:"union",reference:Ge,expects:Ye(t.map(o=>o.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return F(this)},"~run"(o,i){let a,n,r;for(let s of this.options){let l=s["~run"]({value:o.value},i);if(l.typed)if(l.issues)n?n.push(l):n=[l];else{a=l;break}else r?r.push(l):r=[l]}if(a)return a;if(n){if(n.length===1)return n[0];W(this,"type",o,i,{issues:mo(n)}),o.typed=!0}else{if((r==null?void 0:r.length)===1)return r[0];W(this,"type",o,i,{issues:mo(r)})}return o}}}function $t(){return{kind:"schema",type:"unknown",reference:$t,expects:"unknown",async:!1,get"~standard"(){return F(this)},"~run"(t){return t.typed=!0,t}}}function ui(t,e,o){return{kind:"schema",type:"variant",reference:ui,expects:"Object",async:!1,key:t,options:e,message:o,get"~standard"(){return F(this)},"~run"(i,a){let n=i.value;if(n&&typeof n=="object"){let r,s=0,l=this.key,d=[],u=(c,h)=>{for(let w of c.options){if(w.type==="variant")u(w,new Set(h).add(w.key));else{let p=!0,g=0;for(let $ of h){let x=w.entries[$];if($ in n?x["~run"]({typed:!1,value:n[$]},{abortEarly:!0}).issues:x.type!=="exact_optional"&&x.type!=="optional"&&x.type!=="nullish"){p=!1,l!==$&&(s<g||s===g&&$ in n&&!(l in n))&&(s=g,l=$,d=[]),l===$&&d.push(w.entries[$].expects);break}g++}if(p){let $=w["~run"]({value:n},a);(!r||!r.typed&&$.typed)&&(r=$)}}if(r&&!r.issues)break}};if(u(this,new Set([this.key])),r)return r;W(this,"type",i,a,{input:n[l],expected:Ye(d,"|"),path:[{type:"object",origin:"value",input:n,key:l,value:n[l]}]})}else W(this,"type",i,a);return i}}}function Qa(...t){return{...t[0],pipe:t,get"~standard"(){return F(this)},"~run"(e,o){for(let i of t)if(i.kind!=="metadata"){if(e.issues&&(i.kind==="schema"||i.kind==="transformation")){e.typed=!1;break}(!e.issues||!o.abortEarly&&!o.abortPipeEarly)&&(e=i["~run"](e,o))}return e}}}function Rt(t,e,o){let i=t["~run"]({value:e},ni(o));return{typed:i.typed,success:!i.issues,output:i.value,issues:i.issues}}var tn=t=>({ok:!0,err:!1,val:t}),en=t=>({err:!0,ok:!1,val:t}),Je=t=>t.filter(e=>(e.type==="question-boolean"||e.type==="question-enum")&&!!e.data.preApply);function pi(t,e,o){var r,s;let i=t.find(l=>l.type==="pre-apply-result");if(!i)return;let a=(r=e[i.data.participationKey])==null?void 0:r.value,n={};if(a===!0)for(let l of Je(t)){let d=(s=e[l.data.key])==null?void 0:s.value;Array.isArray(d)&&d.length===1&&(d=d[0]),(typeof d=="boolean"||typeof d=="string")&&(n[l.data.key]=d)}return{node_id:i.id,flow_session_id:o,participation:a,answers:n}}function on(t,e){let o=pi(t,e,""),i=Je(t).map(n=>{let r=n.data.preApply,s=o==null?void 0:o.answers[n.data.key],l=n.type==="question-boolean"?typeof s=="boolean":n.data.options.some(d=>d.value===s);return{key:n.data.key,severity:r.severity,message:r.mismatchMessage,matched:l&&s===r.expectedValue,valid:l}}),a=(o==null?void 0:o.participation)===!1?"skipped":(o==null?void 0:o.participation)===!0&&i.length>0&&i.every(n=>n.valid)?"completed":"unavailable";return{status:a,hasHardConcerns:a==="completed"?i.some(n=>!n.matched&&n.severity==="hard"):null,hasAdvisoryConcerns:a==="completed"?i.some(n=>!n.matched&&n.severity==="advisory"):null,answers:a==="completed"?i:[]}}function an(t,e){let o=new Set(Je(t).map(i=>i.data.key));for(let i of t)i.type==="pre-apply-result"&&(o.add(i.data.key),o.add(i.data.participationKey));return Object.fromEntries(Object.entries(e).filter(([i])=>!o.has(i)))}var ht=class extends Error{constructor(){super("Aborted")}},Qe=(t,e)=>{if(e.length===0)return;let o=t;for(let i of e){if(o==null||typeof o!="object")return;o=o[i]}return o},nn=(t,e="all")=>{let o={},i=e==="all"?null:new Set(e);for(let a in t){let n=t[a];n&&(i&&!i.has(a)||(o[a]=n.value))}return o},hi=(t,e)=>{let o=new Set(t.flatMap(i=>i.type==="add-submission"?[i.data.key]:[]));return Object.entries(e).some(([i,a])=>a!==void 0&&a.type!=="integration"&&!o.has(i))},rn=({key:t,submissions:e})=>{var i;let o=(i=e[t])==null?void 0:i.value;if(typeof o!="string"&&typeof o!="number")throw new Error(`Submission at “${t}” is not a string or number`);return o},sn=({key:t,path:e,submissions:o,context:i})=>{if(t==="$context"){if(!e)return;let a=Qe(i,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 o[t]},ln=t=>{let e=t.split(".").pop();return e?tn(e?"."+e:""):en("No file extension found")},cn=(t,e)=>{if(e.length===0)return!0;let o=e.map(i=>i.toLowerCase());return t.every(i=>{let a=ln(i.name);return a.ok&&o.includes(a.val.toLowerCase())})},dn=t=>t<=1e3?`${Math.round(t)}KB`:t<1e3*10?`${(t/1e3).toFixed(1)}MB`:`${Math.round(t/1e3)}MB`,un=t=>typeof t=="string"?t:`+${t.countryCode} ${t.phoneNumber}`,pn=P({integration_response:P({data:P({redirect_url:z(),message:L(wt(z())),button_text:L(wt(z()))})})}),fi=t=>Rt(pn,t).success,hn=P({integration_response:P({status:L($t()),error:P({message:z(),data:L($t())})})}),wi=t=>Rt(hn,t).success,fn=P({success:U(!0),integration_response:P({data:P({outcome:U("pending"),message:L($t())}),error:L(ci())})}),gi=t=>{let e=Rt(fn,t);if(!e.success||fi(t))return;let{message:o}=e.output.integration_response.data;return typeof o=="string"&&o.trim()?{message:o}:{}};P({success:U(!1),message:L($t())});var wn=P({error:U("Validation failed"),messages:P({})}),gn=(t,e)=>e===422&&Rt(wn,t).success,bn=(t,e)=>{if(!wi(t))return;let o=t.integration_response,i=o.error.data,a=typeof i=="object"&&i!==null?i:{},n=p=>typeof a[p]=="string"?a[p]:void 0,r=p=>typeof a[p]=="boolean"?a[p]:void 0,s=p=>{let g=a[p];return Number.isSafeInteger(g)&&g>=0?g:void 0},l=p=>{let g=n(p),$=g===void 0?NaN:Date.parse(g);return Number.isFinite($)?$:void 0},d=typeof o.status=="number"?o.status:e,u=n("phase"),c=n("verdict"),h=n("code"),w=d===409&&u==="submit"&&c==="confirmed"?"duplicate":d===410&&h==="job_closed"?"closed":u==="submit"&&c==="unknown"?"unknown":void 0;return{message:o.error.message,status:d,phase:u,providerStatus:s("provider_status"),retryAfterSeconds:s("retry_after_seconds"),retryable:r("retryable"),verdict:c,code:h,reason:n("reason"),maintenanceUntil:l("maintenance_until"),field:n("field"),outcome:w}},vn=ui("reason",[P({outcome:U("sent"),reason:U("sandbox"),ats_label:wt(z())}),P({outcome:U("held"),reason:di(["production_connection","no_sandbox_known","company_hold"]),ats_label:wt(z())}),P({outcome:U("internal"),reason:U("internal"),ats_label:wt(z())}),P({outcome:U("held"),reason:U("redirect"),ats_label:z()})]),mn=t=>{let e=Rt(P({staging_destination:vn}),t);if(!e.success)return;let o=e.output.staging_destination;switch(o.reason){case"sandbox":return`Staging: sent to ${o.ats_label===null?"the ATS":o.ats_label} sandbox`;case"production_connection":return"Staging: held, production connection";case"no_sandbox_known":return"Staging: held, no sandbox known";case"company_hold":return"Staging: held, company set to hold all";case"internal":return"Staging: saved in inploi (no ATS)";case"redirect":return`Staging: held, redirect to ${o.ats_label}`}},bi=3e4,_n=2e4,yn=6e4,vi=12e4,mi=6*60*6e4,xn=60*6e4,_i=t=>{let e=(t==null?void 0:t.reason)==="provider_maintenance"?t.maintenanceUntil:void 0,o=e===void 0?0:e-Date.now();return o>0&&o<=mi?e:void 0},kn=t=>{if((t==null?void 0:t.reason)!=="provider_maintenance"||t.outcome==="unknown")return;let e=_i(t);return e===void 0?{}:{until:e}},$n=(t,e)=>new Intl.DateTimeFormat(e,{hour:"numeric",minute:"2-digit"}).format(t),Sn=(t,e)=>{let o=_i(e);if(o!==void 0)return{waitMs:o-Date.now(),throttles:(t??0)+1,maintenance:!0};if(!((e==null?void 0:e.reason)==="provider_maintenance"||(e==null?void 0:e.retryable)===!0&&(e.providerStatus===429||e.providerStatus!==void 0&&e.providerStatus>=500||e.phase==="workflow"&&e.verdict==="not_submitted")))return{waitMs:bi};let i=(t??0)+1,a=Math.min(i*_n,yn),n=(e.retryAfterSeconds??0)*1e3;return{waitMs:Math.min(Math.max(a,n),vi),throttles:i}},En=t=>(t==null?void 0:t.code)==="captcha_failed"&&t.verdict==="not_submitted",Cn=t=>{if(!wi(t))return!1;let e=t.integration_response.error.data;return typeof e=="object"&&e!==null&&"fallback"in e&&e.fallback==="contact"},Tn=t=>((t==null?void 0:t.phase)==="workflow"||(t==null?void 0:t.phase)==="authentication"||(t==null?void 0:t.code)==="captcha_failed")&&t.retryable===!0&&t.verdict==="not_submitted",In=t=>(t==null?void 0:t.outcome)==="unknown"&&t.code==="repeatable_provider_crash",Pn=t=>(t==null?void 0:t.phase)==="submit"&&t.verdict==="confirmed"&&t.code==="unreadable_document"&&typeof t.field=="string"&&t.status!==void 0&&t.status>=400&&t.status<500?t.field:void 0,jn=(t,e)=>{if(typeof t!="object"||t===null)return null;let o=t.integration_response;if(typeof o!="object"||o===null){if(e===void 0)return null;let l="code"in t&&typeof t.code=="string"?t.code:void 0;return{service:"API",response:{status:e,payload:l===void 0?{}:{code:l}}}}let i=o;if(typeof i.status!="number"||i.service!==void 0&&typeof i.service!="string")return null;let a="data"in i,n=i.error,r=typeof n=="object"&&n!==null&&typeof n.message=="string"&&"data"in n;if(!a&&!r)return null;let s=a?i.data:n.data??null;return{service:i.service??"INVALID_SERVICE",response:{status:i.status,payload:s},...gi(t)&&{outcome:"pending"}}},An=t=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(t))return!1;let e=new Date(`${t}T00:00:00Z`);return Number.isFinite(e.getTime())&&e.toISOString().slice(0,10)===t},On=(t,e)=>{if(!An(t))throw new RangeError("Invalid ISO calendar date");return new Intl.DateTimeFormat(e,{dateStyle:"long",timeZone:"UTC"}).format(new Date(`${t}T00:00:00Z`))},Dn=t=>new Promise((e,o)=>{let i=new FileReader;i.onload=()=>{if(typeof i.result!="string"||!i.result)return o(new Error("Invalid file"));e(i.result)},i.onerror=o,i.readAsDataURL(t)}),_o=t=>typeof t=="object"&&t!==null&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null),to=(t,e)=>t?{...t,...Object.fromEntries(Object.entries(e).filter(([,o])=>o!==void 0).map(([o,i])=>{let a=t[o];return[o,_o(a)&&_o(i)?to(a,i):i]}))}:e,Mn=({context:t,schema:e,logger:o})=>{if(e)for(let i in e){let a=e[i];if(!a)continue;let n=Qe(t,i.split("."));if(a.required&&n==null){let r=`Configuration error in context: ${i} is required`;throw o.error(r),new Error(r)}if(n!=null)switch(a.type){case"number":if(typeof n!="number")throw new Error(`Configuration error in context: ${i} is not a number`);break;case"string":if(typeof n!="string")throw new Error(`Configuration error in context: ${i} is not a string`);break;default:a.type}}},yi=Qa(Ge([z(),Zt()]),ri(String)),xi=P({id:yi,version:Zt(),build:Zt(),nodes:li(si()),context_schema:L(wt(Xe(z(),P({required:Ze(),type:Ge([U("string"),U("number")])}))))}),Nn=P({flow:xi}),zn=P({company:P({name:z()}),context:L(Xe(z(),$t())),flow:xi,job:P({id:yi,title:z()}),user:L(P({city:L(z()),country:L(z()),isEU:L(Ze()),continent:L(z())}))}),Rn=(t,e)=>({id:t.job.id,id_type:(e==null?void 0:e.idType)==="internal"&&e.id===t.job.id?"internal":"external"}),Fn=bt.endpoint({pathname:"/flow/job/:id",method:"GET",schema:{searchParams:bt.typed(),response:zn}}),Bn=bt.endpoint({pathname:"/flow/id/:id",method:"GET",schema:{response:Nn}}),Ft,b,ki,$i,pt,yo,Si,Ee,Ei,yt={},Ci=[],Ln=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ne=Array.isArray;function it(t,e){for(var o in e)t[o]=e[o];return t}function Ti(t){var e=t.parentNode;e&&e.removeChild(t)}function K(t,e,o){var i,a,n,r={};for(n in e)n=="key"?i=e[n]:n=="ref"?a=e[n]:r[n]=e[n];if(arguments.length>2&&(r.children=arguments.length>3?Ft.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)r[n]===void 0&&(r[n]=t.defaultProps[n]);return jt(t,r,i,a,null)}function jt(t,e,o,i,a){var n={type:t,props:e,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++ki};return a==null&&b.vnode!=null&&b.vnode(n),n}function Hn(){return{current:null}}function Z(t){return t.children}function G(t,e){this.props=t,this.context=e}function Xt(t,e){if(e==null)return t.__?Xt(t.__,t.__.__k.indexOf(t)+1):null;for(var o;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null)return o.__e;return typeof t.type=="function"?Xt(t):null}function Ii(t){var e,o;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null){t.__e=t.__c.base=o.__e;break}return Ii(t)}}function Ce(t){(!t.__d&&(t.__d=!0)&&pt.push(t)&&!Gt.__r++||yo!==b.debounceRendering)&&((yo=b.debounceRendering)||Si)(Gt)}function Gt(){var t,e,o,i,a,n,r,s,l;for(pt.sort(Ee);t=pt.shift();)t.__d&&(e=pt.length,i=void 0,a=void 0,n=void 0,s=(r=(o=t).__v).__e,(l=o.__P)&&(i=[],a=[],(n=it({},r)).__v=r.__v+1,eo(l,r,n,o.__n,l.ownerSVGElement!==void 0,r.__h!=null?[s]:null,i,s??Xt(r),r.__h,a),Oi(i,r,a),r.__e!=s&&Ii(r)),pt.length>e&&pt.sort(Ee));Gt.__r=0}function Pi(t,e,o,i,a,n,r,s,l,d,u){var c,h,w,p,g,$,x,C,j,D,M=0,N=i&&i.__k||Ci,v=N.length,m=v,_=e.length;for(o.__k=[],c=0;c<_;c++)(p=o.__k[c]=(p=e[c])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?jt(null,p,null,null,p):ne(p)?jt(Z,{children:p},null,null,null):p.__b>0?jt(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null&&(p.__=o,p.__b=o.__b+1,(C=Un(p,N,x=c+M,m))===-1?w=yt:(w=N[C]||yt,N[C]=void 0,m--),eo(t,p,w,a,n,r,s,l,d,u),g=p.__e,(h=p.ref)&&w.ref!=h&&(w.ref&&oo(w.ref,null,p),u.push(h,p.__c||g,p)),g!=null&&($==null&&($=g),D=!(j=w===yt||w.__v===null)&&C===x,j?C==-1&&M--:C!==x&&(C===x+1?(M++,D=!0):C>x?m>_-x?(M+=C-x,D=!0):M--:M=C<x&&C==x-1?C-x:0),x=c+M,D=D||C==c&&!j,typeof p.type!="function"||C===x&&w.__k!==p.__k?typeof p.type=="function"||D?p.__d!==void 0?(l=p.__d,p.__d=void 0):l=g.nextSibling:l=Ai(t,g,l):l=ji(p,l,t),typeof o.type=="function"&&(o.__d=l)));for(o.__e=$,c=v;c--;)N[c]!=null&&(typeof o.type=="function"&&N[c].__e!=null&&N[c].__e==o.__d&&(o.__d=N[c].__e.nextSibling),Di(N[c],N[c]))}function ji(t,e,o){for(var i,a=t.__k,n=0;a&&n<a.length;n++)(i=a[n])&&(i.__=t,e=typeof i.type=="function"?ji(i,e,o):Ai(o,i.__e,e));return e}function at(t,e){return e=e||[],t==null||typeof t=="boolean"||(ne(t)?t.some(function(o){at(o,e)}):e.push(t)),e}function Ai(t,e,o){return o==null||o.parentNode!==t?t.insertBefore(e,null):e==o&&e.parentNode!=null||t.insertBefore(e,o),e.nextSibling}function Un(t,e,o,i){var a=t.key,n=t.type,r=o-1,s=o+1,l=e[o];if(l===null||l&&a==l.key&&n===l.type)return o;if(i>(l!=null?1:0))for(;r>=0||s<e.length;){if(r>=0){if((l=e[r])&&a==l.key&&n===l.type)return r;r--}if(s<e.length){if((l=e[s])&&a==l.key&&n===l.type)return s;s++}}return-1}function Wn(t,e,o,i,a){var n;for(n in o)n==="children"||n==="key"||n in e||Jt(t,n,null,o[n],i);for(n in e)a&&typeof e[n]!="function"||n==="children"||n==="key"||n==="value"||n==="checked"||o[n]===e[n]||Jt(t,n,e[n],o[n],i)}function xo(t,e,o){e[0]==="-"?t.setProperty(e,o??""):t[e]=o==null?"":typeof o!="number"||Ln.test(e)?o:o+"px"}function Jt(t,e,o,i,a){var n;t:if(e==="style")if(typeof o=="string")t.style.cssText=o;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)o&&e in o||xo(t.style,e,"");if(o)for(e in o)i&&o[e]===i[e]||xo(t.style,e,o[e])}else if(e[0]==="o"&&e[1]==="n")n=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+n]=o,o?i||t.addEventListener(e,n?$o:ko,n):t.removeEventListener(e,n?$o:ko,n);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]=o??"";break t}catch{}typeof o=="function"||(o==null||o===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,o))}}function ko(t){return this.l[t.type+!1](b.event?b.event(t):t)}function $o(t){return this.l[t.type+!0](b.event?b.event(t):t)}function eo(t,e,o,i,a,n,r,s,l,d){var u,c,h,w,p,g,$,x,C,j,D,M,N,v,m,_=e.type;if(e.constructor!==void 0)return null;o.__h!=null&&(l=o.__h,s=e.__e=o.__e,e.__h=null,n=[s]),(u=b.__b)&&u(e);try{t:if(typeof _=="function"){if(x=e.props,C=(u=_.contextType)&&i[u.__c],j=u?C?C.props.value:u.__:i,o.__c?$=(c=e.__c=o.__c).__=c.__E:("prototype"in _&&_.prototype.render?e.__c=c=new _(x,j):(e.__c=c=new G(x,j),c.constructor=_,c.render=qn),C&&C.sub(c),c.props=x,c.state||(c.state={}),c.context=j,c.__n=i,h=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),_.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=it({},c.__s)),it(c.__s,_.getDerivedStateFromProps(x,c.__s))),w=c.props,p=c.state,c.__v=e,h)_.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(_.getDerivedStateFromProps==null&&x!==w&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(x,j),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(x,c.__s,j)===!1||e.__v===o.__v)){for(e.__v!==o.__v&&(c.props=x,c.state=c.__s,c.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.forEach(function(y){y&&(y.__=e)}),D=0;D<c._sb.length;D++)c.__h.push(c._sb[D]);c._sb=[],c.__h.length&&r.push(c);break t}c.componentWillUpdate!=null&&c.componentWillUpdate(x,c.__s,j),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(w,p,g)})}if(c.context=j,c.props=x,c.__P=t,c.__e=!1,M=b.__r,N=0,"prototype"in _&&_.prototype.render){for(c.state=c.__s,c.__d=!1,M&&M(e),u=c.render(c.props,c.state,c.context),v=0;v<c._sb.length;v++)c.__h.push(c._sb[v]);c._sb=[]}else do c.__d=!1,M&&M(e),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++N<25);c.state=c.__s,c.getChildContext!=null&&(i=it(it({},i),c.getChildContext())),h||c.getSnapshotBeforeUpdate==null||(g=c.getSnapshotBeforeUpdate(w,p)),Pi(t,ne(m=u!=null&&u.type===Z&&u.key==null?u.props.children:u)?m:[m],e,o,i,a,n,r,s,l,d),c.base=e.__e,e.__h=null,c.__h.length&&r.push(c),$&&(c.__E=c.__=null)}else n==null&&e.__v===o.__v?(e.__k=o.__k,e.__e=o.__e):e.__e=Vn(o.__e,e,o,i,a,n,r,l,d);(u=b.diffed)&&u(e)}catch(y){e.__v=null,(l||n!=null)&&(e.__e=s,e.__h=!!l,n[n.indexOf(s)]=null),b.__e(y,e,o)}}function Oi(t,e,o){for(var i=0;i<o.length;i++)oo(o[i],o[++i],o[++i]);b.__c&&b.__c(e,t),t.some(function(a){try{t=a.__h,a.__h=[],t.some(function(n){n.call(a)})}catch(n){b.__e(n,a.__v)}})}function Vn(t,e,o,i,a,n,r,s,l){var d,u,c,h=o.props,w=e.props,p=e.type,g=0;if(p==="svg"&&(a=!0),n!=null){for(;g<n.length;g++)if((d=n[g])&&"setAttribute"in d==!!p&&(p?d.localName===p:d.nodeType===3)){t=d,n[g]=null;break}}if(t==null){if(p===null)return document.createTextNode(w);t=a?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,w.is&&w),n=null,s=!1}if(p===null)h===w||s&&t.data===w||(t.data=w);else{if(n=n&&Ft.call(t.childNodes),u=(h=o.props||yt).dangerouslySetInnerHTML,c=w.dangerouslySetInnerHTML,!s){if(n!=null)for(h={},g=0;g<t.attributes.length;g++)h[t.attributes[g].name]=t.attributes[g].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(Wn(t,w,h,a,s),c)e.__k=[];else if(Pi(t,ne(g=e.props.children)?g:[g],e,o,i,a&&p!=="foreignObject",n,r,n?n[0]:o.__k&&Xt(o,0),s,l),n!=null)for(g=n.length;g--;)n[g]!=null&&Ti(n[g]);s||("value"in w&&(g=w.value)!==void 0&&(g!==t.value||p==="progress"&&!g||p==="option"&&g!==h.value)&&Jt(t,"value",g,h.value,!1),"checked"in w&&(g=w.checked)!==void 0&&g!==t.checked&&Jt(t,"checked",g,h.checked,!1))}return t}function oo(t,e,o){try{typeof t=="function"?t(e):t.current=e}catch(i){b.__e(i,o)}}function Di(t,e,o){var i,a;if(b.unmount&&b.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||oo(i,null,e)),(i=t.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){b.__e(n,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(a=0;a<i.length;a++)i[a]&&Di(i[a],e,o||typeof t.type!="function");o||t.__e==null||Ti(t.__e),t.__=t.__e=t.__d=void 0}function qn(t,e,o){return this.constructor(t,o)}function vt(t,e,o){var i,a,n,r;b.__&&b.__(t,e),a=(i=typeof o=="function")?null:o&&o.__k||e.__k,n=[],r=[],eo(e,t=(!i&&o||e).__k=K(Z,null,[t]),a||yt,yt,e.ownerSVGElement!==void 0,!i&&o?[o]:a?null:e.firstChild?Ft.call(e.childNodes):null,n,!i&&o?o:a?a.__e:e.firstChild,i,r),Oi(n,t,r)}function Mi(t,e){vt(t,e,Mi)}function Yn(t,e,o){var i,a,n,r,s=it({},t.props);for(n in t.type&&t.type.defaultProps&&(r=t.type.defaultProps),e)n=="key"?i=e[n]:n=="ref"?a=e[n]:s[n]=e[n]===void 0&&r!==void 0?r[n]:e[n];return arguments.length>2&&(s.children=arguments.length>3?Ft.call(arguments,2):o),jt(t.type,s,i||t.key,a||t.ref,null)}function Ni(t,e){var o={__c:e="__cC"+Ei++,__:t,Consumer:function(i,a){return i.children(a)},Provider:function(i){var a,n;return this.getChildContext||(a=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(r){this.props.value!==r.value&&a.some(function(s){s.__e=!0,Ce(s)})},this.sub=function(r){a.push(r);var s=r.componentWillUnmount;r.componentWillUnmount=function(){a.splice(a.indexOf(r),1),s&&s.call(r)}}),i.children}};return o.Provider.__=o.Consumer.contextType=o}Ft=Ci.slice,b={__e:function(t,e,o,i){for(var a,n,r;e=e.__;)if((a=e.__c)&&!a.__)try{if((n=a.constructor)&&n.getDerivedStateFromError!=null&&(a.setState(n.getDerivedStateFromError(t)),r=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(t,i||{}),r=a.__d),r)return a.__E=a}catch(s){t=s}throw t}},ki=0,$i=function(t){return t!=null&&t.constructor===void 0},G.prototype.setState=function(t,e){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=it({},this.state),typeof t=="function"&&(t=t(it({},o),this.props)),t&&it(o,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ce(this))},G.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ce(this))},G.prototype.render=Z,pt=[],Si=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ee=function(t,e){return t.__v.__b-e.__v.__b},Gt.__r=0,Ei=0;var ct,I,fe,So,St=0,zi=[],Ut=[],Eo=b.__b,Co=b.__r,To=b.diffed,Io=b.__c,Po=b.unmount;function Et(t,e){b.__h&&b.__h(I,t,St||e),St=0;var o=I.__H||(I.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:Ut}),o.__[t]}function io(t){return St=1,Ri(Bi,t)}function Ri(t,e,o){var i=Et(ct++,2);if(i.t=t,!i.__c&&(i.__=[o?o(e):Bi(void 0,e),function(s){var l=i.__N?i.__N[0]:i.__[0],d=i.t(l,s);l!==d&&(i.__N=[d,i.__[1]],i.__c.setState({}))}],i.__c=I,!I.u)){var a=function(s,l,d){if(!i.__c.__H)return!0;var u=i.__c.__H.__.filter(function(h){return h.__c});if(u.every(function(h){return!h.__N}))return!n||n.call(this,s,l,d);var c=!1;return u.forEach(function(h){if(h.__N){var w=h.__[0];h.__=h.__N,h.__N=void 0,w!==h.__[0]&&(c=!0)}}),!(!c&&i.__c.props===s)&&(!n||n.call(this,s,l,d))};I.u=!0;var n=I.shouldComponentUpdate,r=I.componentWillUpdate;I.componentWillUpdate=function(s,l,d){if(this.__e){var u=n;n=void 0,a(s,l,d),n=u}r&&r.call(this,s,l,d)},I.shouldComponentUpdate=a}return i.__N||i.__}function re(t,e){var o=Et(ct++,3);!b.__s&&ao(o.__H,e)&&(o.__=t,o.i=e,I.__H.__h.push(o))}function _t(t,e){var o=Et(ct++,4);!b.__s&&ao(o.__H,e)&&(o.__=t,o.i=e,I.__h.push(o))}function mt(t){return St=5,dt(function(){return{current:t}},[])}function Kn(t,e,o){St=6,_t(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},o==null?o:o.concat(t))}function dt(t,e){var o=Et(ct++,7);return ao(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function Zn(t,e){return St=8,dt(function(){return t},e)}function Fi(t){var e=I.context[t.__c],o=Et(ct++,9);return o.c=t,e?(o.__==null&&(o.__=!0,e.sub(I)),e.props.value):t.__}function Xn(t,e){b.useDebugValue&&b.useDebugValue(e?e(t):t)}function Gn(){var t=Et(ct++,11);if(!t.__){for(var e=I.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var o=e.__m||(e.__m=[0,0]);t.__="P"+o[0]+"-"+o[1]++}return t.__}function Jn(){for(var t;t=zi.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Wt),t.__H.__h.forEach(Te),t.__H.__h=[]}catch(e){t.__H.__h=[],b.__e(e,t.__v)}}b.__b=function(t){I=null,Eo&&Eo(t)},b.__r=function(t){Co&&Co(t),ct=0;var e=(I=t.__c).__H;e&&(fe===I?(e.__h=[],I.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Ut,o.__N=o.i=void 0})):(e.__h.forEach(Wt),e.__h.forEach(Te),e.__h=[],ct=0)),fe=I},b.diffed=function(t){To&&To(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(zi.push(e)!==1&&So===b.requestAnimationFrame||((So=b.requestAnimationFrame)||Qn)(Jn)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Ut&&(o.__=o.__V),o.i=void 0,o.__V=Ut})),fe=I=null},b.__c=function(t,e){e.some(function(o){try{o.__h.forEach(Wt),o.__h=o.__h.filter(function(i){return!i.__||Te(i)})}catch(i){e.some(function(a){a.__h&&(a.__h=[])}),e=[],b.__e(i,o.__v)}}),Io&&Io(t,e)},b.unmount=function(t){Po&&Po(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(i){try{Wt(i)}catch(a){e=a}}),o.__H=void 0,e&&b.__e(e,o.__v))};var jo=typeof requestAnimationFrame=="function";function Qn(t){var e,o=function(){clearTimeout(i),jo&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(o,100);jo&&(e=requestAnimationFrame(o))}function Wt(t){var e=I,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),I=e}function Te(t){var e=I;t.__c=t.__(),I=e}function ao(t,e){return!t||t.length!==e.length||e.some(function(o,i){return o!==t[i]})}function Bi(t,e){return typeof e=="function"?e(t):e}var tr=Symbol.for("preact-signals");function no(){if(xt>1)xt--;else{for(var t,e=!1;At!==void 0;){var o=At;for(At=void 0,Ie++;o!==void 0;){var i=o.o;if(o.o=void 0,o.f&=-3,!(8&o.f)&&Hi(o))try{o.c()}catch(a){e||(t=a,e=!0)}o=i}}if(Ie=0,xt--,e)throw t}}var E=void 0,At=void 0,xt=0,Ie=0,Qt=0;function Li(t){if(E!==void 0){var e=t.n;if(e===void 0||e.t!==E)return e={i:0,S:t,p:E.s,n:void 0,t:E,e:void 0,x:void 0,r:e},E.s!==void 0&&(E.s.n=e),E.s=e,t.n=e,32&E.f&&t.S(e),e;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=E.s,e.n=void 0,E.s.n=e,E.s=e),e}}function R(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}R.prototype.brand=tr;R.prototype.h=function(){return!0};R.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)};R.prototype.U=function(t){if(this.t!==void 0){var e=t.e,o=t.x;e!==void 0&&(e.x=o,t.e=void 0),o!==void 0&&(o.e=e,t.x=void 0),t===this.t&&(this.t=o)}};R.prototype.subscribe=function(t){var e=this;return so(function(){var o=e.value,i=E;E=void 0;try{t(o)}finally{E=i}})};R.prototype.valueOf=function(){return this.value};R.prototype.toString=function(){return this.value+""};R.prototype.toJSON=function(){return this.value};R.prototype.peek=function(){var t=E;E=void 0;try{return this.value}finally{E=t}};Object.defineProperty(R.prototype,"value",{get:function(){var t=Li(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Ie>100)throw new Error("Cycle detected");this.v=t,this.i++,Qt++,xt++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{no()}}}});function Y(t){return new R(t)}function Hi(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 Ui(t){for(var e=t.s;e!==void 0;e=e.n){var o=e.S.n;if(o!==void 0&&(e.r=o),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Wi(t){for(var e=t.s,o=void 0;e!==void 0;){var i=e.p;e.i===-1?(e.S.U(e),i!==void 0&&(i.n=e.n),e.n!==void 0&&(e.n.p=i)):o=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=i}t.s=o}function Ct(t){R.call(this,void 0),this.x=t,this.s=void 0,this.g=Qt-1,this.f=4}(Ct.prototype=new R).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&&!Hi(this))return this.f&=-2,!0;var t=E;try{Ui(this),E=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(o){this.v=o,this.f|=16,this.i++}return E=t,Wi(this),this.f&=-2,!0};Ct.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)}R.prototype.S.call(this,t)};Ct.prototype.U=function(t){if(this.t!==void 0&&(R.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)}};Ct.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(Ct.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=Li(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function er(t){return new Ct(t)}function Vi(t){var e=t.u;if(t.u=void 0,typeof e=="function"){xt++;var o=E;E=void 0;try{e()}catch(i){throw t.f&=-2,t.f|=8,ro(t),i}finally{E=o,no()}}}function ro(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Vi(t)}function or(t){if(E!==this)throw new Error("Out-of-order effect");Wi(this),E=t,this.f&=-2,8&this.f&&ro(this),no()}function Bt(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Bt.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()}};Bt.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Vi(this),Ui(this),xt++;var t=E;return E=this,or.bind(this,t)};Bt.prototype.N=function(){2&this.f||(this.f|=2,this.o=At,At=this)};Bt.prototype.d=function(){this.f|=8,1&this.f||ro(this)};function so(t){var e=new Bt(t);try{e.c()}catch(o){throw e.d(),o}return e.d.bind(e)}var we;function Tt(t,e){b[t]=e.bind(null,b[t]||function(){})}function te(t){we&&we(),we=t&&t.S()}function qi(t){var e=this,o=t.data,i=ar(o);i.value=o;var a=dt(function(){for(var n=e.__v;n=n.__;)if(n.__c){n.__c.__$f|=4;break}return e.__$u.c=function(){var r;!$i(a.peek())&&((r=e.base)==null?void 0:r.nodeType)===3?e.base.data=a.peek():(e.__$f|=1,e.setState({}))},er(function(){var r=i.value.value;return r===0?0:r===!0?"":r||""})},[]);return a.value}qi.displayName="_st";Object.defineProperties(R.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:qi},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Tt("__b",function(t,e){if(typeof e.type=="string"){var o,i=e.props;for(var a in i)if(a!=="children"){var n=i[a];n instanceof R&&(o||(e.__np=o={}),o[a]=n,i[a]=n.peek())}}t(e)});Tt("__r",function(t,e){te();var o,i=e.__c;i&&(i.__$f&=-2,(o=i.__$u)===void 0&&(i.__$u=o=function(a){var n;return so(function(){n=this}),n.c=function(){i.__$f|=1,i.setState({})},n}())),te(o),t(e)});Tt("__e",function(t,e,o,i){te(),t(e,o,i)});Tt("diffed",function(t,e){te();var o;if(typeof e.type=="string"&&(o=e.__e)){var i=e.__np,a=e.props;if(i){var n=o.U;if(n)for(var r in n){var s=n[r];s!==void 0&&!(r in i)&&(s.d(),n[r]=void 0)}else o.U=n={};for(var l in i){var d=n[l],u=i[l];d===void 0?(d=ir(o,l,u,a),n[l]=d):d.o(u,a)}}}t(e)});function ir(t,e,o,i){var a=e in t&&t.ownerSVGElement===void 0,n=Y(o);return{o:function(r,s){n.value=r,i=s},d:so(function(){var r=n.value.value;i[e]!==r&&(i[e]=r,a?t[e]=r:r?t.setAttribute(e,r):t.removeAttribute(e))})}}Tt("unmount",function(t,e){if(typeof e.type=="string"){var o=e.__e;if(o){var i=o.U;if(i){o.U=void 0;for(var a in i){var n=i[a];n&&n.d()}}}}else{var r=e.__c;if(r){var s=r.__$u;s&&(r.__$u=void 0,s.d())}}t(e)});Tt("__h",function(t,e,o,i){(i<3||i===9)&&(e.__$f|=2),t(e,o,i)});G.prototype.shouldComponentUpdate=function(t,e){var o=this.__$u;if(!(o&&o.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var i in e)return!0;for(var a in t)if(a!=="__source"&&t[a]!==this.props[a])return!0;for(var n in this.props)if(!(n in t))return!0;return!1};function ar(t){return dt(function(){return Y(t)},[])}const H=Symbol.for("@ts-pattern/matcher"),Yi=Symbol.for("@ts-pattern/isVariadic"),ee="@ts-pattern/anonymous-select-key",Pe=t=>!!(t&&typeof t=="object"),Vt=t=>t&&!!t[H],A=(t,e,o)=>{if(Vt(t)){const i=t[H](),{matched:a,selections:n}=i.match(e);return a&&n&&Object.keys(n).forEach(r=>o(r,n[r])),a}if(Pe(t)){if(!Pe(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let i=[],a=[],n=[];for(const r of t.keys()){const s=t[r];Vt(s)&&s[Yi]?n.push(s):n.length?a.push(s):i.push(s)}if(n.length){if(n.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<i.length+a.length)return!1;const r=e.slice(0,i.length),s=a.length===0?[]:e.slice(-a.length),l=e.slice(i.length,a.length===0?1/0:-a.length);return i.every((d,u)=>A(d,r[u],o))&&a.every((d,u)=>A(d,s[u],o))&&(n.length===0||A(n[0],l,o))}return t.length===e.length&&t.every((r,s)=>A(r,e[s],o))}return Reflect.ownKeys(t).every(i=>{const a=t[i];return(i in e||Vt(n=a)&&n[H]().matcherType==="optional")&&A(a,e[i],o);var n})}return Object.is(e,t)},B=t=>{var e,o,i;return Pe(t)?Vt(t)?(e=(o=(i=t[H]()).getSelectionKeys)==null?void 0:o.call(i))!=null?e:[]:Array.isArray(t)?Nt(t,B):Nt(Object.values(t),B):[]},Nt=(t,e)=>t.reduce((o,i)=>o.concat(e(i)),[]);function Ki(...t){if(t.length===1){const[e]=t;return o=>A(e,o,()=>{})}if(t.length===2){const[e,o]=t;return A(e,o,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`)}function O(t){return Object.assign(t,{optional:()=>lo(t),and:e=>T(t,e),or:e=>Zi(t,e),select:e=>e===void 0?zt(t):zt(e,t)})}function je(t){return Object.assign((e=>Object.assign(e,{[Symbol.iterator](){let o=0;const i=[{value:Object.assign(e,{[Yi]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var a;return(a=i[o++])!=null?a:i.at(-1)}}}}))(t),{optional:()=>je(lo(t)),select:e=>je(e===void 0?zt(t):zt(e,t))})}function lo(t){return O({[H]:()=>({match:e=>{let o={};const i=(a,n)=>{o[a]=n};return e===void 0?(B(t).forEach(a=>i(a,void 0)),{matched:!0,selections:o}):{matched:A(t,e,i),selections:o}},getSelectionKeys:()=>B(t),matcherType:"optional"})})}const nr=(t,e)=>{for(const o of t)if(!e(o))return!1;return!0},rr=(t,e)=>{for(const[o,i]of t.entries())if(!e(i,o))return!1;return!0},sr=(t,e)=>{const o=Reflect.ownKeys(t);for(const i of o)if(!e(i,t[i]))return!1;return!0};function T(...t){return O({[H]:()=>({match:e=>{let o={};const i=(a,n)=>{o[a]=n};return{matched:t.every(a=>A(a,e,i)),selections:o}},getSelectionKeys:()=>Nt(t,B),matcherType:"and"})})}function Zi(...t){return O({[H]:()=>({match:e=>{let o={};const i=(a,n)=>{o[a]=n};return Nt(t,B).forEach(a=>i(a,void 0)),{matched:t.some(a=>A(a,e,i)),selections:o}},getSelectionKeys:()=>Nt(t,B),matcherType:"or"})})}function k(t){return{[H]:()=>({match:e=>({matched:!!t(e)})})}}function zt(...t){const e=typeof t[0]=="string"?t[0]:void 0,o=t.length===2?t[1]:typeof t[0]=="string"?void 0:t[0];return O({[H]:()=>({match:i=>{let a={[e??ee]:i};return{matched:o===void 0||A(o,i,(n,r)=>{a[n]=r}),selections:a}},getSelectionKeys:()=>[e??ee].concat(o===void 0?[]:B(o))})})}function Xi(t){return!0}function J(t){return typeof t=="number"}function nt(t){return typeof t=="string"}function rt(t){return typeof t=="bigint"}const Gi=O(k(Xi)),lr=O(k(Xi)),cr=Gi,st=t=>Object.assign(O(t),{startsWith:e=>{return st(T(t,(o=e,k(i=>nt(i)&&i.startsWith(o)))));var o},endsWith:e=>{return st(T(t,(o=e,k(i=>nt(i)&&i.endsWith(o)))));var o},minLength:e=>st(T(t,(o=>k(i=>nt(i)&&i.length>=o))(e))),length:e=>st(T(t,(o=>k(i=>nt(i)&&i.length===o))(e))),maxLength:e=>st(T(t,(o=>k(i=>nt(i)&&i.length<=o))(e))),includes:e=>{return st(T(t,(o=e,k(i=>nt(i)&&i.includes(o)))));var o},regex:e=>{return st(T(t,(o=e,k(i=>nt(i)&&!!i.match(o)))));var o}}),Ao=st(k(nt)),Q=t=>Object.assign(O(t),{between:(e,o)=>Q(T(t,((i,a)=>k(n=>J(n)&&i<=n&&a>=n))(e,o))),lt:e=>Q(T(t,(o=>k(i=>J(i)&&i<o))(e))),gt:e=>Q(T(t,(o=>k(i=>J(i)&&i>o))(e))),lte:e=>Q(T(t,(o=>k(i=>J(i)&&i<=o))(e))),gte:e=>Q(T(t,(o=>k(i=>J(i)&&i>=o))(e))),int:()=>Q(T(t,k(e=>J(e)&&Number.isInteger(e)))),finite:()=>Q(T(t,k(e=>J(e)&&Number.isFinite(e)))),positive:()=>Q(T(t,k(e=>J(e)&&e>0))),negative:()=>Q(T(t,k(e=>J(e)&&e<0)))}),dr=Q(k(J)),lt=t=>Object.assign(O(t),{between:(e,o)=>lt(T(t,((i,a)=>k(n=>rt(n)&&i<=n&&a>=n))(e,o))),lt:e=>lt(T(t,(o=>k(i=>rt(i)&&i<o))(e))),gt:e=>lt(T(t,(o=>k(i=>rt(i)&&i>o))(e))),lte:e=>lt(T(t,(o=>k(i=>rt(i)&&i<=o))(e))),gte:e=>lt(T(t,(o=>k(i=>rt(i)&&i>=o))(e))),positive:()=>lt(T(t,k(e=>rt(e)&&e>0))),negative:()=>lt(T(t,k(e=>rt(e)&&e<0)))}),ur=lt(k(rt)),pr=O(k(function(t){return typeof t=="boolean"})),hr=O(k(function(t){return typeof t=="symbol"})),fr=O(k(function(t){return t==null})),wr=O(k(function(t){return t!=null}));var ft={__proto__:null,matcher:H,optional:lo,array:function(...t){return je({[H]:()=>({match:e=>{if(!Array.isArray(e))return{matched:!1};if(t.length===0)return{matched:!0};const o=t[0];let i={};if(e.length===0)return B(o).forEach(n=>{i[n]=[]}),{matched:!0,selections:i};const a=(n,r)=>{i[n]=(i[n]||[]).concat([r])};return{matched:e.every(n=>A(o,n,a)),selections:i}},getSelectionKeys:()=>t.length===0?[]:B(t[0])})})},set:function(...t){return O({[H]:()=>({match:e=>{if(!(e instanceof Set))return{matched:!1};let o={};if(e.size===0)return{matched:!0,selections:o};if(t.length===0)return{matched:!0};const i=(n,r)=>{o[n]=(o[n]||[]).concat([r])},a=t[0];return{matched:nr(e,n=>A(a,n,i)),selections:o}},getSelectionKeys:()=>t.length===0?[]:B(t[0])})})},map:function(...t){return O({[H]:()=>({match:e=>{if(!(e instanceof Map))return{matched:!1};let o={};if(e.size===0)return{matched:!0,selections:o};const i=(s,l)=>{o[s]=(o[s]||[]).concat([l])};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[n,r]=t;return{matched:rr(e,(s,l)=>{const d=A(n,l,i),u=A(r,s,i);return d&&u}),selections:o}},getSelectionKeys:()=>t.length===0?[]:[...B(t[0]),...B(t[1])]})})},record:function(...t){return O({[H]:()=>({match:e=>{if(e===null||typeof e!="object"||Array.isArray(e))return{matched:!1};var o;if(t.length===0)throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(o=t[0])==null?void 0:o.toString()}`);let i={};const a=(s,l)=>{i[s]=(i[s]||[]).concat([l])},[n,r]=t.length===1?[Ao,t[0]]:t;return{matched:sr(e,(s,l)=>{const d=typeof s!="string"||Number.isNaN(Number(s))?null:Number(s),u=d!==null&&A(n,d,a),c=A(n,s,a),h=A(r,l,a);return(c||u)&&h}),selections:i}},getSelectionKeys:()=>t.length===0?[]:[...B(t[0]),...B(t[1])]})})},intersection:T,union:Zi,not:function(t){return O({[H]:()=>({match:e=>({matched:!A(t,e,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:k,select:zt,any:Gi,unknown:lr,_:cr,string:Ao,number:dr,bigint:ur,boolean:pr,symbol:hr,nullish:fr,nonNullable:wr,instanceOf:function(t){return O(k(function(e){return o=>o instanceof e}(t)))},shape:function(t){return O(k(Ki(t)))}};let gr=class extends Error{constructor(e){let o;try{o=JSON.stringify(e)}catch{o=e}super(`Pattern matching error: no pattern matches value ${o}`),this.input=void 0,this.input=e}};const Ae={matched:!1,value:void 0};function se(t){return new br(t,Ae)}let br=class Oe{constructor(e,o){this.input=void 0,this.state=void 0,this.input=e,this.state=o}with(...e){if(this.state.matched)return this;const o=e[e.length-1],i=[e[0]];let a;e.length===3&&typeof e[1]=="function"?a=e[1]:e.length>2&&i.push(...e.slice(1,e.length-1));let n=!1,r={};const s=(d,u)=>{n=!0,r[d]=u},l=!i.some(d=>A(d,this.input,s))||a&&!a(this.input)?Ae:{matched:!0,value:o(n?ee in r?r[ee]:r:this.input,this.input)};return new Oe(this.input,l)}when(e,o){if(this.state.matched)return this;const i=!!e(this.input);return new Oe(this.input,i?{matched:!0,value:o(this.input,this.input)}:Ae)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(e=vr){return this.state.matched?this.state.value:e(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}};function vr(t){throw new gr(t)}function Ji(t){var e,o,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(o=Ji(t[e]))&&(i&&(i+=" "),i+=o)}else for(o in t)t[o]&&(i&&(i+=" "),i+=o);return i}function le(){for(var t,e,o=0,i="",a=arguments.length;o<a;o++)(t=arguments[o])&&(e=Ji(t))&&(i&&(i+=" "),i+=e);return i}const Oo=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Do=le,ce=(t,e)=>o=>{var i;if((e==null?void 0:e.variants)==null)return Do(t,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:a,defaultVariants:n}=e,r=Object.keys(a).map(d=>{const u=o==null?void 0:o[d],c=n==null?void 0:n[d];if(u===null)return null;const h=Oo(u)||Oo(c);return a[d][h]}),s=o&&Object.entries(o).reduce((d,u)=>{let[c,h]=u;return h===void 0||(d[c]=h),d},{}),l=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((d,u)=>{let{class:c,className:h,...w}=u;return Object.entries(w).every(p=>{let[g,$]=p;return Array.isArray($)?$.includes({...n,...s}[g]):{...n,...s}[g]===$})?[...d,c,h]:d},[]);return Do(t,r,l,o==null?void 0:o.class,o==null?void 0:o.className)};function Qi(t,e){for(var o in e)t[o]=e[o];return t}function De(t,e){for(var o in t)if(o!=="__source"&&!(o in e))return!0;for(var i in e)if(i!=="__source"&&t[i]!==e[i])return!0;return!1}function ge(t,e){return t===e&&(t!==0||1/t==1/e)||t!=t&&e!=e}function Me(t){this.props=t}function mr(t,e){function o(a){var n=this.props.ref,r=n==a.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,a)||!r:De(this.props,a)}function i(a){return this.shouldComponentUpdate=o,K(t,a)}return i.displayName="Memo("+(t.displayName||t.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}(Me.prototype=new G).isPureReactComponent=!0,Me.prototype.shouldComponentUpdate=function(t,e){return De(this.props,t)||De(this.state,e)};var Mo=b.__b;b.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Mo&&Mo(t)};var _r=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ta(t){function e(o){var i=Qi({},o);return delete i.ref,t(i,o.ref||null)}return e.$$typeof=_r,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var No=function(t,e){return t==null?null:at(at(t).map(e))},yr={map:No,forEach:No,count:function(t){return t?at(t).length:0},only:function(t){var e=at(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:at},xr=b.__e;b.__e=function(t,e,o,i){if(t.then){for(var a,n=e;n=n.__;)if((a=n.__c)&&a.__c)return e.__e==null&&(e.__e=o.__e,e.__k=o.__k),a.__c(t,e)}xr(t,e,o,i)};var zo=b.unmount;function ea(t,e,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(i){typeof i.__c=="function"&&i.__c()}),t.__c.__H=null),(t=Qi({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(i){return ea(i,e,o)})),t}function oa(t,e,o){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(i){return oa(i,e,o)}),t.__c&&t.__c.__P===e&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function Ot(){this.__u=0,this.t=null,this.__b=null}function ia(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function aa(t){var e,o,i;function a(n){if(e||(e=t()).then(function(r){o=r.default||r},function(r){i=r}),i)throw i;if(!o)throw e;return K(o,n)}return a.displayName="Lazy",a.__f=!0,a}function Pt(){this.u=null,this.o=null}b.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),zo&&zo(t)},(Ot.prototype=new G).__c=function(t,e){var o=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(o);var a=ia(i.__v),n=!1,r=function(){n||(n=!0,o.__R=null,a?a(s):s())};o.__R=r;var s=function(){if(!--i.__u){if(i.state.__a){var d=i.state.__a;i.__v.__k[0]=oa(d,d.__c.__P,d.__c.__O)}var u;for(i.setState({__a:i.__b=null});u=i.t.pop();)u.forceUpdate()}},l=e.__h===!0;i.__u++||l||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(r,r)},Ot.prototype.componentWillUnmount=function(){this.t=[]},Ot.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=ea(this.__b,o,i.__O=i.__P)}this.__b=null}var a=e.__a&&K(Z,null,t.fallback);return a&&(a.__h=null),[K(Z,null,e.__a?null:t.children),a]};var Ro=function(t,e,o){if(++o[1]===o[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;t.u=o=o[2]}};function kr(t){return this.getChildContext=function(){return t.context},t.children}function $r(t){var e=this,o=t.i;e.componentWillUnmount=function(){vt(null,e.l),e.l=null,e.i=null},e.i&&e.i!==o&&e.componentWillUnmount(),t.__v?(e.l||(e.i=o,e.l={nodeType:1,parentNode:o,childNodes:[],appendChild:function(i){this.childNodes.push(i),e.i.appendChild(i)},insertBefore:function(i,a){this.childNodes.push(i),e.i.appendChild(i)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.i.removeChild(i)}}),vt(K(kr,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Sr(t,e){var o=K($r,{__v:t,i:e});return o.containerInfo=e,o}(Pt.prototype=new G).__a=function(t){var e=this,o=ia(e.__v),i=e.o.get(t);return i[0]++,function(a){var n=function(){e.props.revealOrder?(i.push(a),Ro(e,t,i)):a()};o?o(n):n()}},Pt.prototype.render=function(t){this.u=null,this.o=new Map;var e=at(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var o=e.length;o--;)this.o.set(e[o],this.u=[1,0,this.u]);return t.children},Pt.prototype.componentDidUpdate=Pt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,o){Ro(t,o,e)})};var na=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Er=/^(?: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]/,Cr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Tr=/[A-Z0-9]/g,Ir=typeof document<"u",Pr=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function jr(t,e,o){return e.__k==null&&(e.textContent=""),vt(t,e),typeof o=="function"&&o(),t?t.__c:null}function Ar(t,e,o){return Mi(t,e),typeof o=="function"&&o(),t?t.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(G.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Fo=b.event;function Or(){}function Dr(){return this.cancelBubble}function Mr(){return this.defaultPrevented}b.event=function(t){return Fo&&(t=Fo(t)),t.persist=Or,t.isPropagationStopped=Dr,t.isDefaultPrevented=Mr,t.nativeEvent=t};var co,Nr={enumerable:!1,configurable:!0,get:function(){return this.class}},Bo=b.vnode;b.vnode=function(t){typeof t.type=="string"&&function(e){var o=e.props,i=e.type,a={};for(var n in o){var r=o[n];if(!(n==="value"&&"defaultValue"in o&&r==null||Ir&&n==="children"&&i==="noscript"||n==="class"||n==="className")){var s=n.toLowerCase();n==="defaultValue"&&"value"in o&&o.value==null?n="value":n==="download"&&r===!0?r="":s==="ondoubleclick"?n="ondblclick":s!=="onchange"||i!=="input"&&i!=="textarea"||Pr(o.type)?s==="onfocus"?n="onfocusin":s==="onblur"?n="onfocusout":Cr.test(n)?n=s:i.indexOf("-")===-1&&Er.test(n)?n=n.replace(Tr,"-$&").toLowerCase():r===null&&(r=void 0):s=n="oninput",s==="oninput"&&a[n=s]&&(n="oninputCapture"),a[n]=r}}i=="select"&&a.multiple&&Array.isArray(a.value)&&(a.value=at(o.children).forEach(function(l){l.props.selected=a.value.indexOf(l.props.value)!=-1})),i=="select"&&a.defaultValue!=null&&(a.value=at(o.children).forEach(function(l){l.props.selected=a.multiple?a.defaultValue.indexOf(l.props.value)!=-1:a.defaultValue==l.props.value})),o.class&&!o.className?(a.class=o.class,Object.defineProperty(a,"className",Nr)):(o.className&&!o.class||o.class&&o.className)&&(a.class=a.className=o.className),e.props=a}(t),t.$$typeof=na,Bo&&Bo(t)};var Lo=b.__r;b.__r=function(t){Lo&&Lo(t),co=t.__c};var Ho=b.diffed;b.diffed=function(t){Ho&&Ho(t);var e=t.props,o=t.__e;o!=null&&t.type==="textarea"&&"value"in e&&e.value!==o.value&&(o.value=e.value==null?"":e.value),co=null};var zr={ReactCurrentDispatcher:{current:{readContext:function(t){return co.__n[t.__c].props.value}}}};function Rr(t){return K.bind(null,t)}function ra(t){return!!t&&t.$$typeof===na}function Fr(t){return ra(t)?Yn.apply(null,arguments):t}function Br(t){return!!t.__k&&(vt(null,t),!0)}function Lr(t){return t&&(t.base||t.nodeType===1&&t)||null}var Hr=function(t,e){return t(e)},Ur=function(t,e){return t(e)},Wr=Z;function sa(t){t()}function Vr(t){return t}function qr(){return[!1,sa]}var Yr=_t;function Kr(t,e){var o=e(),i=io({h:{__:o,v:e}}),a=i[0].h,n=i[1];return _t(function(){a.__=o,a.v=e,ge(a.__,e())||n({h:a})},[t,o,e]),re(function(){return ge(a.__,a.v())||n({h:a}),t(function(){ge(a.__,a.v())||n({h:a})})},[t]),o}var Zr={useState:io,useId:Gn,useReducer:Ri,useEffect:re,useLayoutEffect:_t,useInsertionEffect:Yr,useTransition:qr,useDeferredValue:Vr,useSyncExternalStore:Kr,startTransition:sa,useRef:mt,useImperativeHandle:Kn,useMemo:dt,useCallback:Zn,useContext:Fi,useDebugValue:Xn,version:"17.0.2",Children:yr,render:jr,hydrate:Ar,unmountComponentAtNode:Br,createPortal:Sr,createElement:K,createContext:Ni,createFactory:Rr,cloneElement:Fr,createRef:Hn,Fragment:Z,isValidElement:ra,findDOMNode:Lr,Component:G,PureComponent:Me,memo:mr,forwardRef:ta,flushSync:Ur,unstable_batchedUpdates:Hr,StrictMode:Wr,Suspense:Ot,SuspenseList:Pt,lazy:aa,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zr},Xr=["other","few","many","two","one","zero"],Uo=({terms:t,overrides:e,locale:o})=>{const i=new Intl.PluralRules(o);function a(n,r){const s=(e==null?void 0:e[n])??t[n];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(l,d)=>{var u;return((u=r==null?void 0:r[d])==null?void 0:u.toString())??""});case"object":{if(typeof(r==null?void 0:r.count)!="number")throw new Error(`Missing count for translation key “${n.toString()}”`);let l=i.select(r.count);if(!(l in s)){const d=Xr.find(u=>u in s);if(!d)throw new Error(`Missing plural rule for translation key “${n.toString()}”`);l=d}return s[l].replace(/{{(\w+)}}/g,(d,u)=>{var c;return((c=r==null?void 0:r[u])==null?void 0:c.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${n.toString()}”.`)}}return a},Gr=0;function f(t,e,o,i,a,n){var r,s,l={};for(s in e)s=="ref"?r=e[s]:l[s]=e[s];var d={type:t,props:l,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Gr,__source:a,__self:n};if(typeof t=="function"&&(r=t.defaultProps))for(s in r)l[s]===void 0&&(l[s]=r[s]);return b.vnode&&b.vnode(d),d}var Wo=Ni(null),la=t=>({defaultTerms:t,TranslationProvider:({terms:e,children:o,locale:i})=>{const a=dt(()=>Uo({locale:i,terms:t,overrides:e}),[e,i]);return f(Wo.Provider,{value:{t:a,locale:i},children:o})},useTranslation:()=>{const e=Fi(Wo);if(e===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:e.t,locale:e.locale}},createTFunction:({overrides:e,locale:o})=>Uo({terms:t,overrides:e,locale:o})}),Jr={conversation_history:"Conversation history",jump_to_current:"Jump to current question",send:"Send",submitting:"Sending your application…",skip:"Skip",skipped:"Skipped",submission_closed:"Sorry, this role closed while you were applying.",submission_duplicate_earlier_attempt:"You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.",submission_failed:"We couldn't submit your application. Choose Restart to try again.",submission_unknown_do_not_resubmit:"We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.",submission_unreadable_document:"We couldn't read that file. Please upload a different one.",submission_cooldown:{one:"Submit will be available again in {{count}} second.",other:"Submit will be available again in {{count}} seconds."},submission_cooldown_ready:"Submit is available again.",captcha_check:"One quick check before we send your application",submission_still_working:"Sending your application, this can take up to a minute. Please keep this page open.",file_preparing:{one:"Preparing your file…",other:"Preparing your files…"},file_ready:{one:"Your file is ready to send",other:"Your files are ready to send"},file_read_error:"We couldn't read this file. Select it again or choose another file.",file_read_error_replacement:"We couldn't read this file, so your previous file is no longer selected. Select it again or choose another file.",address_error:"We couldn't search for that address. Try again, or fill it in manually.",address_searching:"Searching addresses…",address_no_results:"We couldn't find that address. Check the spelling or postcode, or fill it in manually.",restart:"Restart",chat_messages:"Chat messages",file_name:"File name",file_size:"File size",file_total_size:"{{size}} total",loading:"Loading",minimize:"Minimise"},{TranslationProvider:Js,useTranslation:Qs,createTFunction:tl,defaultTerms:Qr}=la({submission_redirect_message:"One last step: finish your application on the employer's site.",complete_submission:"Continue on the employer's site",submission_completed:"Submission completed!",submission_pending:"Thanks, we've received your application and are processing it.",submission_failed:"Failed to submit",submission_provider_maintenance:"Sorry, our recruitment system is down for scheduled maintenance until about {{time}}. Please keep this page open and try again when maintenance ends. We apologise for the inconvenience.",submission_provider_maintenance_later:"Sorry, our recruitment system is down for scheduled maintenance until later today. Please keep this page open and try again when maintenance ends. We apologise for the inconvenience.",submission_available_at:"Submit will be available again at {{time}}.",resume_prompt:"You have an unfinished application for this role. Continue where you left off?",resume_continue:"Continue",resume_start_again:"Start again",captcha_failed:"Cloudflare seems to think you're a robot. If that's not the case, please try again in a moment.",close_application:"Close application",invalid_state:"Invalid application state",redirect_url_error:"Couldn’t get the redirect URL.",upload_file:{one:"Select file to upload",other:"Select files to upload"},file_max_size:"max {{size}}",file_extensions:"Accepted file extensions",address_error:"Something went wrong! Plase continue manually",address_search:"Type and search for places…",address_manual:"Fill in manually",back:"Back",search:"Search",unknown_error:"An error occurred",line1:"Line 1",line2:"Line 2",line3:"Line 3",city:"City",state:"State",postcode:"Postcode",country:"Country",select_country:"Select a country",validation_empty:"Please enter a value",validation_date:"Please enter a valid date (YYYY-MM-DD)",validation_email:"That doesn’t look like a valid email address",validation_url:"That doesn’t look like a valid URL",validation_max_chars:"Please enter no more than {{count}} characters",validation_min_chars:"Please enter {{count}} or more characters",validation_phone:"Please enter a valid phone number",validation_phone_min_chars:"Your phone number must be at least {{count}} digits long",validation_country_code:"Please select a country code",validation_number:"Please enter a valid number",validation_number_min:"Please enter a number greater than or equal to {{min}}",validation_number_max:"Please enter a number less than or equal to {{max}}",validation_number_whole:"Enter a whole number",validation_number_decimal_cases:"Please enter a number with at most {{count}} decimal cases",validation_file:"Please select a file",validation_file_ext:"Please only upload {{ext}} files",validation_file_min:{one:"Please upload at least one file",other:"Please only upload at least {{count}} files"},validation_file_max:{one:"Please only upload one file",other:"Please only upload up to {{count}} files"},validation_file_size:"Your file is too big. Please upload a file smaller than {{size}}",validation_file_empty:"This file is empty. If it’s saved in iCloud, Google Drive or OneDrive, download it to your device, then select it again.",validation_required:"This field is required.",validation_multiple_choice_min:{one:"Please select at least {{count}} option",other:"Please select at least {{count}} options"},validation_multiple_choice_max:{one:"Please select at most {{count}} option",other:"Please select at most {{count}} options"},optional:"optional"});const{TranslationProvider:ts,useTranslation:Lt,createTFunction:es}=la({...Qr,...Jr,error_heading:"Something unexpected happened",flow_closed:"This role is no longer accepting applications.",undo:"Change answer",job_alerts_offer:"Want to hear about similar roles? We can email you at {{email}} when new ones open.",job_alerts_accept:"Get job alerts",job_alerts_decline:"No thanks",job_alerts_privacy:"We'll use your email only for these alerts. You can unsubscribe at any time.",job_alerts_privacy_sender:"{{employer}} will email you new jobs like this one. Every email has an unsubscribe link.",job_alerts_success:"Done. We'll email you about similar roles.",job_alerts_error:"Sorry, we couldn't set that up. Please try again later.",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_retryable:"We couldn't submit your application. Please 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.",maximize:"Maximise",submit:"Submit",file_more:{one:"+{{count}} file",other:"+{{count}} files"}});function uo(t,e){if(!t)throw new Error(e)}var Ne=t=>t===null||typeof t!="object"?t:Array.isArray(t)?t.map(Ne):Object.keys(t).sort().reduce((e,o)=>(e[o]=Ne(t[o]),e),{}),os=t=>{let e=JSON.stringify(Ne(t)),o=5381;for(let i=0;i<e.length;i++)o=o*33^e.charCodeAt(i);return(o>>>0).toString(36)};const ze=(t,e)=>e.some(o=>t instanceof o);let Vo,qo;function is(){return Vo||(Vo=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function as(){return qo||(qo=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Re=new WeakMap,be=new WeakMap,de=new WeakMap;function ns(t){const e=new Promise((o,i)=>{const a=()=>{t.removeEventListener("success",n),t.removeEventListener("error",r)},n=()=>{o(gt(t.result)),a()},r=()=>{i(t.error),a()};t.addEventListener("success",n),t.addEventListener("error",r)});return de.set(e,t),e}function rs(t){if(Re.has(t))return;const e=new Promise((o,i)=>{const a=()=>{t.removeEventListener("complete",n),t.removeEventListener("error",r),t.removeEventListener("abort",r)},n=()=>{o(),a()},r=()=>{i(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",n),t.addEventListener("error",r),t.addEventListener("abort",r)});Re.set(t,e)}let Fe={get(t,e,o){if(t instanceof IDBTransaction){if(e==="done")return Re.get(t);if(e==="store")return o.objectStoreNames[1]?void 0:o.objectStore(o.objectStoreNames[0])}return gt(t[e])},set(t,e,o){return t[e]=o,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function ca(t){Fe=t(Fe)}function ss(t){return as().includes(t)?function(...e){return t.apply(Be(this),e),gt(this.request)}:function(...e){return gt(t.apply(Be(this),e))}}function ls(t){return typeof t=="function"?ss(t):(t instanceof IDBTransaction&&rs(t),ze(t,is())?new Proxy(t,Fe):t)}function gt(t){if(t instanceof IDBRequest)return ns(t);if(be.has(t))return be.get(t);const e=ls(t);return e!==t&&(be.set(t,e),de.set(e,t)),e}const Be=t=>de.get(t);function cs(t,e,{blocked:o,upgrade:i,blocking:a,terminated:n}={}){const r=indexedDB.open(t,e),s=gt(r);return i&&r.addEventListener("upgradeneeded",l=>{i(gt(r.result),l.oldVersion,l.newVersion,gt(r.transaction),l)}),o&&r.addEventListener("blocked",l=>o(l.oldVersion,l.newVersion,l)),s.then(l=>{n&&l.addEventListener("close",()=>n()),a&&l.addEventListener("versionchange",d=>a(d.oldVersion,d.newVersion,d))}).catch(()=>{}),s}const ds=["get","getKey","getAll","getAllKeys","count"],us=["put","add","delete","clear"],ve=new Map;function Yo(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(ve.get(e))return ve.get(e);const o=e.replace(/FromIndex$/,""),i=e!==o,a=us.includes(o);if(!(o in(i?IDBIndex:IDBObjectStore).prototype)||!(a||ds.includes(o)))return;const n=async function(r,...s){const l=this.transaction(r,a?"readwrite":"readonly");let d=l.store;return i&&(d=d.index(s.shift())),(await Promise.all([d[o](...s),a&&l.done]))[0]};return ve.set(e,n),n}ca(t=>({...t,get:(e,o,i)=>Yo(e,o)||t.get(e,o,i),has:(e,o)=>!!Yo(e,o)||t.has(e,o)}));const ps=["continue","continuePrimaryKey","advance"],Ko={},Le=new WeakMap,da=new WeakMap,hs={get(t,e){if(!ps.includes(e))return t[e];let o=Ko[e];return o||(o=Ko[e]=function(...i){Le.set(this,da.get(this)[e](...i))}),o}};async function*fs(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const o=new Proxy(e,hs);for(da.set(o,e),de.set(o,Be(e));e;)yield o,e=await(Le.get(o)||e.continue()),Le.delete(o)}function Zo(t,e){return e===Symbol.asyncIterator&&ze(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&ze(t,[IDBIndex,IDBObjectStore])}ca(t=>({...t,get(e,o,i){return Zo(e,o)?fs:t.get(e,o,i)},has(e,o){return Zo(e,o)||t.has(e,o)}}));const Dt=typeof indexedDB>"u"?void 0:cs("inploi-chatbot",3,{upgrade(t){try{t.deleteObjectStore("state")}catch{}t.createObjectStore("state")}}),ws=t=>({...t,messages:t.messages.map(e=>{if(e.type!=="link")return e;const{onClick:o,...i}=e;return i})});let qt,me,It;const Xo=()=>{if(!qt)return It;const t=qt;qt=void 0;const e=oe(t),o=Dt==null?void 0:Dt.then(i=>i.put("state",ws(t.data),e)).finally(()=>{It===o&&(It=void 0)});return It=o,It},q={getStateData:async(t,e,o)=>{var a;const i=oe({...t,flowKeys:e,context:o});return(a=await Dt)==null?void 0:a.get("state",i)},getAllStateData:async()=>{var t;return((t=await Dt)==null?void 0:t.getAll("state"))??[]},setStateData:t=>{qt=t,clearTimeout(me),me=setTimeout(()=>void Xo(),1e3)},flushStateData:()=>(clearTimeout(me),Xo()??Promise.resolve())},gs=t=>e=>e?e.type===t:!1,bs=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():Math.random().toString(36).slice(2),Go=()=>({messages:[],submissions:{},currentInput:null,nodeHistory:[],startedWriteNodeIds:[],isFinished:!1,hasInteracted:!1,sequence:0,flowSessionId:bs()}),vs=t=>se(t).with({nativeEvent:{submitter:ft.select(ft.union(ft.instanceOf(HTMLButtonElement),ft.instanceOf(HTMLInputElement)))}},e=>e).otherwise(()=>{throw new Error("invalid submitter")}),Yt=(t,e,o,i=0)=>{if(!e.nextId)return o(e.id,{stepsMade:i,remainingSteps:0}),{stepsMade:i,remainingSteps:0};const a=t.find(d=>d.id===e.nextId);if(a===void 0)return{stepsMade:i,remainingSteps:0};const n=e.type==="if-block"?e.branchId:void 0,r=t.find(d=>d.id===n),s=e.type.includes("question")?1:0;if(r){const d=s+Math.max(Yt(t,a,o,i+s).remainingSteps,Yt(t,r,o,i+s).remainingSteps);return o(e.id,{stepsMade:i,remainingSteps:d}),{stepsMade:i,remainingSteps:d}}const l=s+Yt(t,a,o,i+s).remainingSteps;return o(e.id,{stepsMade:i,remainingSteps:l}),{stepsMade:i,remainingSteps:l}},ms=t=>{const e={},o=t.find(i=>i.isHead);return o&&Yt(t,o,(i,a)=>{e[i]=a}),e},oe=t=>[...t.flowKeys,t.id,t.version,t.build,os(t.hostContext??t.context)].join("/"),_s=({data:t,nodes:e})=>{const o=t.startedWriteNodeIds===void 0?e.some(i=>i.type==="integration-application-submit"&&t.nodeHistory.includes(i.id)):t.startedWriteNodeIds.length>0;return!t.isFinished&&!o&&hi(e,t.submissions)},Jo=({data:t,nodes:e})=>{var o;return!t.isFinished&&((((o=t.startedWriteNodeIds)==null?void 0:o.length)??0)>0||hi(e,t.submissions))},tt=Y({state:"idle"}),_e=new Set,ut=t=>{const{state:e,flow:o}=tt.value;if(e!=="loaded")return;uo(o,"No flow to update");const i=t(o.data);o.data=i,tt.value={state:e,flow:o},q.setStateData(o)},S={current$:tt,viewState$:Y("closed"),prepareFlow:async({jobAlerts:t,flow:e,context:o={},jobContext:i,flowKeys:a,title:n,analytics:r,job:s,employer:l,locationOrigin:d})=>{await q.flushStateData().catch(()=>{});const u=await q.getStateData(e,a,o),c=u??Go(),h=oe({...e,flowKeys:a,context:o}),w=u!==void 0&&!_e.has(h)&&_s({data:c,nodes:e.nodes});return w||_e.add(h),{jobAlerts:t,data:c,offerResume:w,startedAt:new Date,nodeIdToProgress:ms(e.nodes),flowKeys:a,id:e.id,version:e.version,nodes:e.nodes,build:e.build,context:i===void 0?o:to(i,o),hostContext:i===void 0?void 0:o,title:n,analytics:r,job:s,employer:l,locationOrigin:d}},commitFlow:t=>{tt.value={state:"loaded",flow:t},q.setStateData(t)},settleResume:t=>{t.offerResume=!1,_e.add(oe(t))},cancelCurrentFlow:()=>{tt.value={state:"idle"},S.viewState$.value="closed"},markAsFinished:()=>ut(t=>({...t,isFinished:!0})),markAsInteracted:()=>ut(t=>({...t,hasInteracted:!0})),setCurrentNodeId:t=>ut(e=>(e.nodeHistory.push(t),e)),setApplicationRecovery:async t=>{ut(e=>(t?e.applicationRecovery=t:delete e.applicationRecovery,e)),await q.flushStateData()},restart:()=>{const{state:t,flow:e}=tt.value;if(t!=="loaded")throw new Error("Flow cannot be restarted: not in valid state");const o={...Go(),failedAttemptAt:e.data.failedAttemptAt,unconfirmedAttemptKeys:e.data.unconfirmedAttemptKeys,submitCooldown:e.data.submitCooldown},i={...e,data:o,startedAt:new Date,offerResume:!1};tt.value={state:t,flow:i},q.setStateData(i)},addMessage:(t,e)=>{const o={...t,groupId:e};return ut(i=>(i.messages.push(o),i))},removeMessagesSentByNodeIds:t=>{const{state:e,flow:o}=tt.value;uo(e==="loaded","Application not loaded");const i=o.data.messages.filter(a=>!a.groupId||!t.includes(a.groupId));o.data.messages=i,q.setStateData(o)},setSubmission:(t,e)=>ut(o=>(e===null?delete o.submissions[t]:o.submissions[t]=e,o)),setInput:t=>ut(e=>({...e,currentInput:t??null})),persistWriteBarrier:async t=>{tt.peek().flow===t&&(tt.value={state:"loaded",flow:t}),q.setStateData(t),await q.flushStateData()}},Qo=({heading:t})=>{const{t:e}=Lt();return f("div",{class:"flex flex-grow flex-col items-center justify-center",children:[f("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:[f("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"}),f("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"}),f("line",{x1:"36.7",y1:"39.3",x2:"44.8",y2:"47.4"}),f("line",{x1:"52.2",y1:"39.3",x2:"60.3",y2:"47.4"}),f("line",{x1:"44.7",y1:"39.2",x2:"36.6",y2:"47.3"}),f("line",{x1:"60.2",y1:"39.2",x2:"52.1",y2:"47.3"}),f("path",{d:"M38 56h19"})]}),f("div",{class:"flex flex-col gap-2 text-center",children:f("p",{class:"text-error-11 font-bold",children:e(t)})})]})},ua=t=>{const{t:e}=Lt();return f("svg",{role:"img",viewBox:"0 0 24 24",...t,children:[f("title",{children:e("loading")}),f("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)}}"}),f("g",{id:"s1",transform:"translate(12,0)",children:f("g",{id:"s2",transform:"scale(0,0)",children:f("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),f("g",{id:"s3",transform:"translate(12,12)",children:f("g",{id:"s4",transform:"scale(1,1)",children:f("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),f("g",{id:"s5",transform:"translate(12,0)",children:f("g",{id:"s6",transform:"scale(0,0)",children:f("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"})})}),f("g",{id:"s7",transform:"translate(12,0)",children:f("g",{id:"s8",transform:"scale(0,0)",children:f("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"})})})]})},ti=()=>f("div",{class:"flex flex-grow flex-col items-center justify-center",children:f(ua,{class:"text-neutral-6 h-8 w-8"})}),ys=t=>{const o=t/100,i=1.3;return t<0?"0%":t>100?"100%":`${Math.round((1-(1-.1)*Math.pow(1-o,i))*100)}%`},xs=ce("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"}}),ie=({class:t,children:e,variant:o,...i})=>f("button",{class:le(xs({variant:o}),t),...i,children:f("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})}),pa=()=>f("path",{d:"M12.5 6.5L8 11L3.5 6.5"}),ks=()=>{if(S.current$.value.state!=="loaded")return null;const t=S.current$.value.flow.nodeIdToProgress,e=S.current$.value.flow.data.nodeHistory.at(-1);if(e===void 0)return null;const o=t[e];if(o===void 0)return null;const i=100*(o.stepsMade/(o.remainingSteps+o.stepsMade));return f("div",{class:"bg-accent-3",children:f("div",{style:{width:ys(i)},class:"bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"})})},$s=({children:t,params:e,analytics:o,feedbackReady:i})=>{const{t:a}=Lt(),n=S.viewState$,r=!!e.feedback&&S.current$.value.state==="loaded"&&n.value==="maximised",s=r&&i.value,l=mt(!1);return re(()=>{var d,u;!s||l.current||(l.current=!0,o.log({event:"INTERACTION",properties:{tag:"feedback_shown"},customProperties:(u=(d=S.current$.peek().flow)==null?void 0:d.analytics)==null?void 0:u.customProperties}))},[s,o]),f(Z,{children:f("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:[f("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:[f("p",{id:"chatbot-status-bar",class:"sr-only",children:t}),f("button",{"aria-label":a("minimize"),onClick:()=>{n.value="minimised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",onTouchStart:He,children:f("p",{"aria-hidden":!0,class:"text-neutral-12 truncate text-sm font-bold tracking-tight",children:t})}),f("div",{class:"flex flex-shrink-0 items-center gap-3 p-1.5",children:[e.feedback?f("div",{"data-widget":"inploi-feedback","data-key":"chatbot-header",class:le({hidden:!r}),children:f("div",{class:"ring-neutral-4 bg-neutral-3 h-8 w-[72px] animate-pulse rounded-full ring-1"})}):null,S.current$.value.state==="loaded"&&f(ie,{class:"mx-1","aria-label":a("restart"),onClick:()=>{S.restart()},children:[f("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"}),f("path",{d:"M8 7L10 4.5L8 2.5"})]},"restart"),f(ie,{class:"view-switch mx-1",onTouchStart:He,"aria-label":a("minimize"),onClick:()=>n.value="minimised",children:f(pa,{})},"minmax")]})]}),f(ks,{})]})})};function He(){}const Ss=aa(()=>Promise.resolve().then(()=>require("./chatbot-body-b81136fe.cjs")).then(t=>t.ChatbotBody)),ha=ce("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"}}}),fa=ce("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"}}}),Es=({open:t,...e})=>{const o=mt(null);return _t(()=>{const i=o.current;i&&(t?i.showModal():i.close())},[t]),f("dialog",{ref:o,...e})},Cs=({env:t,logger:e,apiClient:o,rpcClient:i,analytics:a,talentBankClient:n,params:r,feedbackReady:s})=>{const{state:l,flow:d}=S.current$.value,u=S.viewState$.value,c=l!=="idle"&&u==="maximised",h=mt(null),w=d?[...d.data.nodeHistory].reverse().map(p=>d.nodes.find(g=>g.id===p)).find(p=>(p==null?void 0:p.type)==="flow-section"):void 0;return f(ts,{terms:r.terms,locale:void 0,children:[f(Es,{open:c,onClose:()=>S.viewState$.value="minimised",children:f("div",{ref:h,"aria-modal":"true",role:"dialog","aria-labelledby":"chatbot-status-bar",class:ha({view:"maximised"}),children:f("div",{class:fa({view:"maximised"}),children:[f($s,{params:r,analytics:a,feedbackReady:s,children:w?f(Z,{children:[f("span",{class:"block",children:w.data.title}),f("span",{class:"block truncate text-xs font-normal",children:d==null?void 0:d.title})]}):d==null?void 0:d.title}),se({state:l,view:u}).with({state:"idle"},()=>null).with({state:"loading"},()=>f(ti,{},"loading")).with({state:"loaded"},()=>f(Ot,{fallback:f(ti,{},"loading"),children:f(Ss,{env:t,rpcClient:i,analytics:a,apiClient:o,logger:e,talentBankClient:n})})).with({state:"closed"},()=>f(Qo,{heading:"flow_closed"})).with({state:"error"},()=>f(Qo,{heading:"error_heading"})).exhaustive()]})})}),u==="minimised"?f(Ts,{flow:d}):null]})},Ts=({flow:t})=>{const{t:e}=Lt();return f("div",{class:ha({view:"minimised",class:"z-100 isolate"}),children:f("div",{class:fa({view:"minimised"}),children:[f("button",{onClick:()=>{S.viewState$.value="maximised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",onTouchStart:He,children:f("p",{"aria-hidden":!0,class:"truncate text-sm font-bold tracking-tight text-white",children:t==null?void 0:t.title})}),f("div",{class:"flex items-center px-0.5",children:f(ie,{class:"mx-1","aria-label":e("close_application"),onClick:S.cancelCurrentFlow,variant:"white",children:f("path",{d:"M12 12L4 4M12 4L4 12"})},"close")})]})})},wa="14.18.0",Is=(t,e=wa)=>e===void 0?t:{fetch:(o,i)=>{if(o!=="/flow/submit")return t.fetch(o,i);const a=new Headers(i==null?void 0:i.headers);return a.set("x-inploi-widget-version",e),t.fetch(o,{...i,headers:Object.fromEntries(a.entries())})}};let Mt,ga,Kt;const Ps=t=>{const e=t.slice(0,t.lastIndexOf("/")+1);return/^https:\/\/[^/?#]+\/@inploi\/plugin-chatbot(?:@[\w.-]+)?\/cdn\/$/.test(e)?e:void 0},ba=(t,e,o)=>{const i=Na(t,e??`
18
+ `,o);return{...i,stack:i.stack.filter(a=>a.startsWith("index.js:"))}},Ue=t=>ba(t,Kt),va=t=>typeof t=="object"&&t!==null&&"status"in t&&typeof t.status=="number"?t.status:void 0,kt=(t,e,o={})=>Mt==null?void 0:Mt.send(t,e,{...o,message:"Chatbot widget beacon",widget:"chatbot",key_hash:ga}),js=t=>{const e=(o,i,a)=>{if(S.viewState$.value==="closed")return;const n=ba(i,t,a);n.stack.length&&kt("fatal",ae(i),{phase:"render",error:{...n,via:o}})};window.addEventListener("error",o=>{Oa(o)||e("error",o.error,o.message)}),window.addEventListener("unhandledrejection",o=>e("rejection",o.reason))},As=(t,e,o=typeof document>"u"?require("url").pathToFileURL(__filename).href:wo&&wo.src||new URL("index-495ec66b.cjs",document.baseURI).href)=>{const i=Ra();Mt||!i||!t||(ga=e?ai(e).toString(36):void 0,Mt=Ya({config:i,version:wa,env:t,seed:Fa(za(),bt.generateUUID)}),Kt=Ps(o),Kt&&js(Kt))},Os=t=>{let e={application:void 0,attempts:0,blocked:!1};return{fetch:async(o,i)=>{if(o!=="/flow/submit")return t.fetch(o,i);const a=S.current$.value.flow;a!==e.application&&(e={application:a,attempts:0,blocked:!1});const n=e,r=++n.attempts,s=performance.now(),l=await t.fetch(o,i).catch(d=>{throw va(d)===void 0&&!(d instanceof Error&&d.name==="AbortError")&&(n.blocked=!0,kt("submit_blocked",ae(d),{phase:"submit",error:Ue(d),endpoint:"flow_submit",attempt:r,elapsed_ms:Math.round(performance.now()-s),body_kb:typeof(i==null?void 0:i.body)=="string"?Math.round(i.body.length/1024):void 0})),d});return n.blocked&&kt("submit_recovered",void 0,{phase:"submit",endpoint:"flow_submit",attempt:r}),l}}},Ds=`[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;z-index:2147483647;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-e-1: 340 100% 99%;--i-e-2: 353 100% 98%;--i-e-3: 351 91% 96%;--i-e-4: 351 100% 93%;--i-e-5: 350 100% 90%;--i-e-6: 351 80% 86%;--i-e-7: 349 68% 81%;--i-e-8: 348 61% 74%;--i-e-9: 348 75% 59%;--i-e-10: 347 70% 55%;--i-e-11: 345 70% 47%;--i-e-12: 344 63% 24%;--header-height: 44px;--content-height:calc(100vh - 64px);--content-height:calc(100svh - 64px)}@media screen and (min-width: 768px){[data-widget=inploi-chatbot]{--content-height: min(640px, calc(100vh - 16px));--content-height: min(640px, calc(100svh - 16px)) }}[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot] ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot]{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[data-widget=inploi-chatbot] em{font-style:italic}[data-widget=inploi-chatbot] strong{font-weight:700}[data-widget=inploi-chatbot] *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{box-sizing:border-box}[data-widget=inploi-chatbot] :is(ul,ol){list-style:none;padding:0;margin:0}[data-widget=inploi-chatbot] :is(p){margin:0;padding:0}[data-widget=inploi-chatbot] :is(li){margin:0;padding:0;list-style:none}[data-widget=inploi-chatbot] :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}[data-widget=inploi-chatbot] .container{width:100%}@media (min-width: 640px){[data-widget=inploi-chatbot] .container{max-width:640px}}@media (min-width: 768px){[data-widget=inploi-chatbot] .container{max-width:768px}}@media (min-width: 1024px){[data-widget=inploi-chatbot] .container{max-width:1024px}}@media (min-width: 1280px){[data-widget=inploi-chatbot] .container{max-width:1280px}}@media (min-width: 1536px){[data-widget=inploi-chatbot] .container{max-width:1536px}}[data-widget=inploi-chatbot] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[data-widget=inploi-chatbot] .\\!visible{visibility:visible!important}[data-widget=inploi-chatbot] .visible{visibility:visible}[data-widget=inploi-chatbot] .invisible{visibility:hidden}[data-widget=inploi-chatbot] .collapse{visibility:collapse}[data-widget=inploi-chatbot] .static{position:static}[data-widget=inploi-chatbot] .fixed{position:fixed}[data-widget=inploi-chatbot] .absolute{position:absolute}[data-widget=inploi-chatbot] .relative{position:relative}[data-widget=inploi-chatbot] .sticky{position:sticky}[data-widget=inploi-chatbot] .inset-0{top:0;right:0;bottom:0;left:0}[data-widget=inploi-chatbot] .bottom-0{bottom:0}[data-widget=inploi-chatbot] .bottom-1{bottom:4px}[data-widget=inploi-chatbot] .bottom-2{bottom:8px}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:10px}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-1\\/2{left:50%}[data-widget=inploi-chatbot] .left-2{left:8px}[data-widget=inploi-chatbot] .right-0{right:0}[data-widget=inploi-chatbot] .right-0\\.5{right:2px}[data-widget=inploi-chatbot] .right-1{right:4px}[data-widget=inploi-chatbot] .right-2{right:8px}[data-widget=inploi-chatbot] .top-0{top:0}[data-widget=inploi-chatbot] .isolate{isolation:isolate}[data-widget=inploi-chatbot] .z-20{z-index:20}[data-widget=inploi-chatbot] .z-50{z-index:50}[data-widget=inploi-chatbot] .m-0{margin:0}[data-widget=inploi-chatbot] .mx-1{margin-left:4px;margin-right:4px}[data-widget=inploi-chatbot] .mx-auto{margin-left:auto;margin-right:auto}[data-widget=inploi-chatbot] .mb-1{margin-bottom:4px}[data-widget=inploi-chatbot] .ml-auto{margin-left:auto}[data-widget=inploi-chatbot] .mt-0\\.5{margin-top:2px}[data-widget=inploi-chatbot] .mt-auto{margin-top:auto}[data-widget=inploi-chatbot] .block{display:block}[data-widget=inploi-chatbot] .inline-block{display:inline-block}[data-widget=inploi-chatbot] .inline{display:inline}[data-widget=inploi-chatbot] .flex{display:flex}[data-widget=inploi-chatbot] .inline-flex{display:inline-flex}[data-widget=inploi-chatbot] .table{display:table}[data-widget=inploi-chatbot] .table-row{display:table-row}[data-widget=inploi-chatbot] .flow-root{display:flow-root}[data-widget=inploi-chatbot] .grid{display:grid}[data-widget=inploi-chatbot] .inline-grid{display:inline-grid}[data-widget=inploi-chatbot] .contents{display:contents}[data-widget=inploi-chatbot] .list-item{display:list-item}[data-widget=inploi-chatbot] .\\!hidden{display:none!important}[data-widget=inploi-chatbot] .hidden{display:none}[data-widget=inploi-chatbot] .size-\\[1lh\\]{width:1lh;height:1lh}[data-widget=inploi-chatbot] .h-1\\.5{height:6px}[data-widget=inploi-chatbot] .h-16{height:64px}[data-widget=inploi-chatbot] .h-4{height:16px}[data-widget=inploi-chatbot] .h-48{height:192px}[data-widget=inploi-chatbot] .h-8{height:32px}[data-widget=inploi-chatbot] .h-\\[3px\\]{height:3px}[data-widget=inploi-chatbot] .h-\\[var\\(--content-height\\)\\]{height:var(--content-height)}[data-widget=inploi-chatbot] .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}[data-widget=inploi-chatbot] .h-full{height:100%}[data-widget=inploi-chatbot] .max-h-\\[calc\\(100\\%-var\\(--header-height\\)-4rem\\)\\]{max-height:calc(100% - var(--header-height) - 64px)}[data-widget=inploi-chatbot] .max-h-\\[calc\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 16px)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-0{min-height:0px}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[44px\\]{min-height:44px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 16px)}[data-widget=inploi-chatbot] .w-1\\.5{width:6px}[data-widget=inploi-chatbot] .w-16{width:64px}[data-widget=inploi-chatbot] .w-24{width:96px}[data-widget=inploi-chatbot] .w-4{width:16px}[data-widget=inploi-chatbot] .w-64{width:256px}[data-widget=inploi-chatbot] .w-8{width:32px}[data-widget=inploi-chatbot] .w-\\[72px\\]{width:72px}[data-widget=inploi-chatbot] .w-full{width:100%}[data-widget=inploi-chatbot] .min-w-0{min-width:0px}[data-widget=inploi-chatbot] .min-w-\\[2rem\\]{min-width:32px}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,384px)}[data-widget=inploi-chatbot] .max-w-\\[min\\(300px\\,calc\\(100vw-4rem\\)\\)\\]{max-width:min(300px,calc(100vw - 64px))}[data-widget=inploi-chatbot] .max-w-\\[var\\(--radix-popover-content-available-width\\)\\]{max-width:var(--radix-popover-content-available-width)}[data-widget=inploi-chatbot] .max-w-full{max-width:100%}[data-widget=inploi-chatbot] .flex-1{flex:1 1 0%}[data-widget=inploi-chatbot] .flex-auto{flex:1 1 auto}[data-widget=inploi-chatbot] .flex-none{flex:none}[data-widget=inploi-chatbot] .flex-shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .shrink{flex-shrink:1}[data-widget=inploi-chatbot] .shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-widget=inploi-chatbot] .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}[data-widget=inploi-chatbot] .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes pulse{50%{opacity:.5}}[data-widget=inploi-chatbot] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(1.25)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}[data-widget=inploi-chatbot] .cursor-pointer{cursor:pointer}[data-widget=inploi-chatbot] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-none{resize:none}[data-widget=inploi-chatbot] .resize-y{resize:vertical}[data-widget=inploi-chatbot] .resize{resize:both}[data-widget=inploi-chatbot] .scroll-pb-12{scroll-padding-bottom:48px}[data-widget=inploi-chatbot] .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}[data-widget=inploi-chatbot] .flex-col{flex-direction:column}[data-widget=inploi-chatbot] .flex-wrap{flex-wrap:wrap}[data-widget=inploi-chatbot] .items-start{align-items:flex-start}[data-widget=inploi-chatbot] .items-end{align-items:flex-end}[data-widget=inploi-chatbot] .items-center{align-items:center}[data-widget=inploi-chatbot] .items-stretch{align-items:stretch}[data-widget=inploi-chatbot] .justify-end{justify-content:flex-end}[data-widget=inploi-chatbot] .justify-center{justify-content:center}[data-widget=inploi-chatbot] .gap-0{gap:0px}[data-widget=inploi-chatbot] .gap-1{gap:4px}[data-widget=inploi-chatbot] .gap-1\\.5{gap:6px}[data-widget=inploi-chatbot] .gap-2{gap:8px}[data-widget=inploi-chatbot] .gap-2\\.5{gap:10px}[data-widget=inploi-chatbot] .gap-3{gap:12px}[data-widget=inploi-chatbot] .gap-4{gap:16px}[data-widget=inploi-chatbot] .self-center{align-self:center}[data-widget=inploi-chatbot] .overflow-hidden{overflow:hidden}[data-widget=inploi-chatbot] .overflow-y-auto{overflow-y:auto}[data-widget=inploi-chatbot] .overscroll-contain{overscroll-behavior:contain}[data-widget=inploi-chatbot] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-widget=inploi-chatbot] .text-ellipsis{text-overflow:ellipsis}[data-widget=inploi-chatbot] .whitespace-nowrap{white-space:nowrap}[data-widget=inploi-chatbot] .text-balance{text-wrap:balance}[data-widget=inploi-chatbot] .text-pretty{text-wrap:pretty}[data-widget=inploi-chatbot] .break-words{overflow-wrap:break-word}[data-widget=inploi-chatbot] .rounded{border-radius:4px}[data-widget=inploi-chatbot] .rounded-2xl{border-radius:16px}[data-widget=inploi-chatbot] .rounded-3xl{border-radius:24px}[data-widget=inploi-chatbot] .rounded-\\[18px\\]{border-radius:18px}[data-widget=inploi-chatbot] .rounded-full{border-radius:9999px}[data-widget=inploi-chatbot] .rounded-lg{border-radius:8px}[data-widget=inploi-chatbot] .rounded-md{border-radius:6px}[data-widget=inploi-chatbot] .rounded-xl{border-radius:12px}[data-widget=inploi-chatbot] .rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}[data-widget=inploi-chatbot] .rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}[data-widget=inploi-chatbot] .rounded-t-3xl{border-top-left-radius:24px;border-top-right-radius:24px}[data-widget=inploi-chatbot] .rounded-bl-md{border-bottom-left-radius:6px}[data-widget=inploi-chatbot] .rounded-br-md{border-bottom-right-radius:6px}[data-widget=inploi-chatbot] .border{border-width:1px}[data-widget=inploi-chatbot] .border-b{border-bottom-width:1px}[data-widget=inploi-chatbot] .border-t{border-top-width:1px}[data-widget=inploi-chatbot] .border-solid{border-style:solid}[data-widget=inploi-chatbot] .border-dashed{border-style:dashed}[data-widget=inploi-chatbot] .border-accent-9{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .border-divider{border-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .border-neutral-5{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-neutral-8{border-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .border-transparent{border-color:transparent}[data-widget=inploi-chatbot] .border-b-neutral-3{border-bottom-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .border-b-neutral-5{border-bottom-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-b-transparent{border-bottom-color:transparent}[data-widget=inploi-chatbot] .bg-accent-1{background-color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .bg-accent-3{background-color:var(--i-color-a-3)}[data-widget=inploi-chatbot] .bg-accent-9{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .bg-bubble-weak-bg{background-color:var(--i-bubble-weak-bg)}[data-widget=inploi-chatbot] .bg-lowest{background-color:var(--i-color-lowest)}[data-widget=inploi-chatbot] .bg-neutral-1{background-color:var(--i-color-n-1)}[data-widget=inploi-chatbot] .bg-neutral-2{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .bg-neutral-3{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .bg-statusbar{background-color:var(--i-status-bar-bg)}[data-widget=inploi-chatbot] .bg-transparent{background-color:transparent}[data-widget=inploi-chatbot] .bg-none{background-image:none}[data-widget=inploi-chatbot] .p-1{padding:4px}[data-widget=inploi-chatbot] .p-1\\.5{padding:6px}[data-widget=inploi-chatbot] .p-10{padding:40px}[data-widget=inploi-chatbot] .p-11{padding:44px}[data-widget=inploi-chatbot] .p-12{padding:48px}[data-widget=inploi-chatbot] .p-2{padding:8px}[data-widget=inploi-chatbot] .p-2\\.5{padding:10px}[data-widget=inploi-chatbot] .p-3{padding:12px}[data-widget=inploi-chatbot] .p-4{padding:16px}[data-widget=inploi-chatbot] .p-5{padding:20px}[data-widget=inploi-chatbot] .p-6{padding:24px}[data-widget=inploi-chatbot] .p-7{padding:28px}[data-widget=inploi-chatbot] .p-8{padding:32px}[data-widget=inploi-chatbot] .p-9{padding:36px}[data-widget=inploi-chatbot] .px-0\\.5{padding-left:2px;padding-right:2px}[data-widget=inploi-chatbot] .px-1{padding-left:4px;padding-right:4px}[data-widget=inploi-chatbot] .px-1\\.5{padding-left:6px;padding-right:6px}[data-widget=inploi-chatbot] .px-2{padding-left:8px;padding-right:8px}[data-widget=inploi-chatbot] .px-3{padding-left:12px;padding-right:12px}[data-widget=inploi-chatbot] .px-4{padding-left:16px;padding-right:16px}[data-widget=inploi-chatbot] .px-5{padding-left:20px;padding-right:20px}[data-widget=inploi-chatbot] .py-0\\.5{padding-top:2px;padding-bottom:2px}[data-widget=inploi-chatbot] .py-1{padding-top:4px;padding-bottom:4px}[data-widget=inploi-chatbot] .py-1\\.5{padding-top:6px;padding-bottom:6px}[data-widget=inploi-chatbot] .py-2{padding-top:8px;padding-bottom:8px}[data-widget=inploi-chatbot] .py-2\\.5{padding-top:10px;padding-bottom:10px}[data-widget=inploi-chatbot] .py-3{padding-top:12px;padding-bottom:12px}[data-widget=inploi-chatbot] .pb-2{padding-bottom:8px}[data-widget=inploi-chatbot] .pb-6{padding-bottom:24px}[data-widget=inploi-chatbot] .pl-1\\.5{padding-left:6px}[data-widget=inploi-chatbot] .pl-2{padding-left:8px}[data-widget=inploi-chatbot] .pl-2\\.5{padding-left:10px}[data-widget=inploi-chatbot] .pl-3{padding-left:12px}[data-widget=inploi-chatbot] .pl-4{padding-left:16px}[data-widget=inploi-chatbot] .pr-1{padding-right:4px}[data-widget=inploi-chatbot] .pr-16{padding-right:64px}[data-widget=inploi-chatbot] .pr-2\\.5{padding-right:10px}[data-widget=inploi-chatbot] .pr-3{padding-right:12px}[data-widget=inploi-chatbot] .pr-4{padding-right:16px}[data-widget=inploi-chatbot] .pt-2{padding-top:8px}[data-widget=inploi-chatbot] .pt-2\\.5{padding-top:10px}[data-widget=inploi-chatbot] .pt-3{padding-top:12px}[data-widget=inploi-chatbot] .pt-5{padding-top:20px}[data-widget=inploi-chatbot] .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 16px)}[data-widget=inploi-chatbot] .text-center{text-align:center}[data-widget=inploi-chatbot] .text-right{text-align:right}[data-widget=inploi-chatbot] .text-justify{text-align:justify}[data-widget=inploi-chatbot] .text-\\[10px\\]{font-size:10px}[data-widget=inploi-chatbot] .text-\\[11px\\]{font-size:11px}[data-widget=inploi-chatbot] .text-base{font-size:16px;line-height:24px}[data-widget=inploi-chatbot] .text-sm{font-size:14px;line-height:20px}[data-widget=inploi-chatbot] .text-xs{font-size:12px;line-height:16px}[data-widget=inploi-chatbot] .font-bold{font-weight:700}[data-widget=inploi-chatbot] .font-medium{font-weight:500}[data-widget=inploi-chatbot] .font-normal{font-weight:400}[data-widget=inploi-chatbot] .font-semibold{font-weight:600}[data-widget=inploi-chatbot] .uppercase{text-transform:uppercase}[data-widget=inploi-chatbot] .lowercase{text-transform:lowercase}[data-widget=inploi-chatbot] .capitalize{text-transform:capitalize}[data-widget=inploi-chatbot] .italic{font-style:italic}[data-widget=inploi-chatbot] .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-widget=inploi-chatbot] .leading-3{line-height:12px}[data-widget=inploi-chatbot] .leading-snug{line-height:1.375}[data-widget=inploi-chatbot] .leading-tight{line-height:1.25}[data-widget=inploi-chatbot] .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}[data-widget=inploi-chatbot] .tracking-tight{letter-spacing:-.025em}[data-widget=inploi-chatbot] .tracking-wide{letter-spacing:.025em}[data-widget=inploi-chatbot] .tracking-widest{letter-spacing:.1em}[data-widget=inploi-chatbot] .text-accent-10{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .text-accent-11{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .text-accent-12{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .text-error-11{color:var(--i-color-e-11)}[data-widget=inploi-chatbot] .text-error-9{color:var(--i-color-e-9)}[data-widget=inploi-chatbot] .text-neutral-10{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .text-neutral-11{color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .text-neutral-12{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .text-neutral-6{color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .text-system-success{color:var(--i-system-message-success)}[data-widget=inploi-chatbot] .text-system-warning{color:var(--i-system-message-warning)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-white\\/80{color:#fffc}[data-widget=inploi-chatbot] .underline{text-decoration-line:underline}[data-widget=inploi-chatbot] .no-underline{text-decoration-line:none}[data-widget=inploi-chatbot] .underline-offset-2{text-underline-offset:2px}[data-widget=inploi-chatbot] .underline-offset-4{text-underline-offset:4px}[data-widget=inploi-chatbot] .caret-accent-9{caret-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .opacity-0{opacity:0}[data-widget=inploi-chatbot] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}[data-widget=inploi-chatbot] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .outline{outline-style:solid}[data-widget=inploi-chatbot] .outline-1{outline-width:1px}[data-widget=inploi-chatbot] .outline-2{outline-width:2px}[data-widget=inploi-chatbot] .outline-accent-10{outline-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .outline-accent-4{outline-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}[data-widget=inploi-chatbot] .outline-divider{outline-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .outline-neutral-3{outline-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .outline-neutral-6{outline-color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-inset{--tw-ring-inset: inset}[data-widget=inploi-chatbot] .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}[data-widget=inploi-chatbot] .ring-divider{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .ring-lowest{--tw-ring-color: var(--i-color-lowest)}[data-widget=inploi-chatbot] .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}[data-widget=inploi-chatbot] .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}[data-widget=inploi-chatbot] .ring-neutral-7{--tw-ring-color: var(--i-color-n-7)}[data-widget=inploi-chatbot] .ring-transparent{--tw-ring-color: transparent}[data-widget=inploi-chatbot] .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}[data-widget=inploi-chatbot] .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-saturate-150{--tw-backdrop-saturate: saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-\\[background\\,color\\,border-color\\,box-shadow\\]{transition-property:background,color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .duration-100{transition-duration:.1s}[data-widget=inploi-chatbot] .duration-1000{transition-duration:1s}[data-widget=inploi-chatbot] .duration-300{transition-duration:.3s}[data-widget=inploi-chatbot] .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}[data-widget=inploi-chatbot] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-widget=inploi-chatbot] .will-change-\\[transform\\,opacity\\]{will-change:transform,opacity}[data-widget=inploi-chatbot] .text-wrap-balance{text-wrap:balance}[data-widget=inploi-chatbot] .fr{outline:none}[data-widget=inploi-chatbot] .fr:focus{outline:none}[data-widget=inploi-chatbot] .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .gutter-stable{scrollbar-gutter:stable}[data-widget=inploi-chatbot] .hide-scrollbars::-webkit-scrollbar{display:none}[data-widget=inploi-chatbot] .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}[data-widget=inploi-chatbot] .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}[data-widget=inploi-chatbot] .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}[data-widget=inploi-chatbot] .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}[data-widget=inploi-chatbot] .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}[data-widget=inploi-chatbot] .\\[text-wrap\\:pretty\\]{text-wrap:pretty}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .first-of-type\\:rounded-l-lg:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .hover\\:z-10:hover{z-index:10}[data-widget=inploi-chatbot] .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:bg-divider:hover{background-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-white\\/20:hover{background-color:#fff3}[data-widget=inploi-chatbot] .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .hover\\:underline:hover{text-decoration-line:underline}[data-widget=inploi-chatbot] .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}[data-widget=inploi-chatbot] .hover\\:ring-divider:hover{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .focus\\:z-20:focus{z-index:20}[data-widget=inploi-chatbot] .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-2:focus-visible{outline-width:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}[data-widget=inploi-chatbot] .focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-hover:active{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-white\\/30:active{background-color:#ffffff4d}[data-widget=inploi-chatbot] .active\\:text-accent-10:active{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:text-accent-11:active{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .active\\:text-neutral-12:active{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .active\\:ring-2:active{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .active\\:ring-interactive-bg-hover:active{--tw-ring-color: var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-widget=inploi-chatbot] .disabled\\:opacity-50:disabled{opacity:.5}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .aria-disabled\\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}[data-widget=inploi-chatbot] .aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}[data-widget=inploi-chatbot] .aria-disabled\\:hover\\:border-accent-9:hover[aria-disabled=true]{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .aria-disabled\\:hover\\:bg-accent-9:hover[aria-disabled=true]{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .aria-disabled\\:active\\:ring-1:active[aria-disabled=true]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .aria-disabled\\:active\\:ring-offset-\\[1\\.5px\\]:active[aria-disabled=true]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .group[aria-pressed=true] .group-aria-\\[pressed\\=true\\]\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (pointer: coarse){[data-widget=inploi-chatbot] .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-12:has(+*>input:focus){color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\>\\.view-switch\\:focus-visible\\)\\]\\:ring-1:has(>.view-switch:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[data-widget=inploi-chatbot] dialog::backdrop{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}[data-widget=inploi-chatbot] dialog::backdrop{background-color:var(--i-overlay-bg)}@media (prefers-reduced-motion: reduce){[data-widget=inploi-chatbot] [data-widget=inploi-chatbot] dialog::backdrop{animation:inploi-chatbot-fade .15s ease-out}}@media (prefers-reduced-motion: reduce){[data-widget=inploi-chatbot],[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] *:before,[data-widget=inploi-chatbot] *:after,[data-widget=inploi-chatbot] dialog::backdrop{animation:none!important;transition-property:opacity,color,background-color,border-color!important;transition-duration:.15s!important;scroll-behavior:auto!important}[data-widget=inploi-chatbot] .animate-fade-in,[data-widget=inploi-chatbot] .animate-bubble-in,[data-widget=inploi-chatbot] .animate-maximise,[data-widget=inploi-chatbot] .animate-slide-in-bottom,[data-widget=inploi-chatbot] dialog::backdrop{animation:inploi-chatbot-fade .15s ease-out!important}}@keyframes inploi-chatbot-fade{0%{opacity:0}}
19
+ `,ma="inploi-chatbot",We=`[data-widget='${ma}']`,Ms=()=>({getChatbotElement:()=>document.querySelector(We),getOrCreateChatbotElement:()=>{const t=document.querySelector(We);if(t)return document.body.appendChild(t),t;const e=document.createElement("div");return document.body.appendChild(e),e.dataset.widget=ma,e}}),Ns=25,_a=Y(()=>{}),ei=["wheel","touchmove","keydown"],zs=(t,e)=>new Promise((o,i)=>{if(e!=null&&e.aborted)return i(new ht);const a=setTimeout(o,t);e==null||e.addEventListener("abort",()=>{clearTimeout(a),i(new ht)},{once:!0})}),V={onSubmitSuccessFn$:Y(()=>{}),onInteractionFn$:Y(()=>{}),isBotTyping$:Y(!1),captchaVisible$:Y(!1),themeMode$:Y("light"),isReadingHistory$:Y(!1),scrollToEnd:()=>_a.value()},Rs=()=>{const t=mt(null),e=mt(-1/0);_t(()=>{const i=t.current;if(!i)return;const a=()=>{V.isReadingHistory$.value=!1,i.scrollTo({top:i.scrollHeight,behavior:"instant"})};_a.value=a;const n=()=>e.current=performance.now(),r=()=>{i.scrollHeight-i.scrollTop-i.clientHeight<=24?V.isReadingHistory$.value=!1:performance.now()-e.current<1e3&&(V.isReadingHistory$.value=!0)};i.addEventListener("scroll",r,{passive:!0});for(const l of ei)i.addEventListener(l,n,{passive:!0});const s=new ResizeObserver(()=>{V.isReadingHistory$.peek()||a()});return s.observe(i),i.firstElementChild&&s.observe(i.firstElementChild),()=>{i.removeEventListener("scroll",r);for(const l of ei)i.removeEventListener(l,n);s.disconnect()}},[]);const o=dt(()=>({setSubmission:(a,n)=>S.setSubmission(a,n),captcha:{container:()=>{var a;return((a=t.current)==null?void 0:a.querySelector("[data-captcha-slot]"))??null},get theme(){return V.themeMode$.peek()},reveal:a=>{V.captchaVisible$.value=a,a&&requestAnimationFrame(()=>{var n,r;(r=(n=t.current)==null?void 0:n.querySelector("[data-captcha-slot]"))==null||r.focus(),V.scrollToEnd()})}},send:async({message:a,signal:n,groupId:r})=>{if(await se(a).with({author:"bot",type:"text"},async s=>{if(n!=null&&n.aborted)throw new ht;V.isBotTyping$.value=!0;const l=Math.min(Math.max(20,s.text.length),100)*Ns;try{await zs(l,n)}finally{V.isBotTyping$.value=!1}}).otherwise(async()=>{}),n!=null&&n.aborted)throw new ht;S.addMessage(a,r)},input:({input:a,signal:n})=>{if(n!=null&&n.aborted)throw new ht;return S.setInput(a),new Promise(r=>{const s=l=>{if(n!=null&&n.aborted)throw new ht;e.current=-1/0,S.setInput(void 0),a.key&&S.setSubmission(a.key,l),r(l)};V.onSubmitSuccessFn$.value=s})}}),[]);return{chatRef:t,chatService:o}};var Fs=["1","2","3","4","5","6","7","8","9","10","11","12"],Bs={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]}},Ls=(t,e=1,o)=>i=>{const[a,n]=Bs[o][i];return"oklch("+a+"% "+n*e+" "+t+")"},ye=t=>{const e=Ls(t.hue,t.chroma,t.mode);return Object.fromEntries(Fs.map(o=>[t.prefix+o,t.transform(e(o))]))},xe=t=>t,Hs=t=>{const e=Object.keys(t).flatMap(o=>{const i=t[o];return typeof i=="object"&&i!==null?Object.keys(i).map(a=>{const n=i[a];return[`${String(o)}.${a}`,n]}):[[o,i]]});return Object.fromEntries(e)},Ht=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ve=(t,...e)=>{if(!e.length)return t;const o=e.shift();if(Ht(t)&&Ht(o))for(const i in o){const a=o[i];if(Ht(a)){t[i]||Object.assign(t,{[i]:{}});const n=t[i];Ht(n)&&Ve(n,a)}else Object.assign(t,{[i]:o[i]})}return Ve(t,...e)},Us=t=>{function e(o,i){const a=[t.prefix,i.toString().replace(/\./g,"-")].join("");return o==="declaration"?`--${a}`:`var(--${a})`}return e},Ws=()=>({core:t=>({semantic:e=>({component:o=>({from:i=>{const{theme:a,getToken:n}=i,r=h=>n("reference",h.toString()),s=t({theme:a}),l=e({theme:a,core:r,raw:{core:s}}),d=o({theme:a,core:r,semantic:r,raw:{core:s,semantic:l}}),u=Hs(Ve(s,l,d)),c=([h,w],p)=>{const g=[p,h].filter(Boolean).join(".");return typeof w=="object"?Object.entries(w).flatMap($=>c($,g)):[[i.getToken("declaration",g),w]]};return{values:u,declarations:Object.fromEntries(Object.entries(u).flatMap(h=>c(h))),ref:h=>n("reference",h.toString())}}})})})});const[ke,$e,oi]=["oklch(0% 0 0)","oklch(100% 0 0)","transparent"],Vs=Ws().core(({theme:t})=>({color:{black:ke,white:$e,lowest:t.mode==="light"?$e:ke,highest:t.mode==="light"?ke:$e,...ye({prefix:"a-",hue:t.hue,chroma:t.chroma,mode:t.mode,transform:xe}),...ye({prefix:"n-",hue:t.hue,chroma:.05,mode:t.mode,transform:xe}),...ye({prefix:"e-",hue:20,chroma:t.chroma,mode:t.mode,transform:xe})},typography:{}})).semantic(({core:t,raw:e,theme:o})=>{const i=(a,n)=>e.core.color[a].replace(")",` / ${n})`);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:i("n-8",o.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:oi,"bg-hover":i("n-10",.2),"bg-active":i("n-10",.3)}}}).component(({raw:t,theme:e,semantic:o,core:i})=>{const a=(n,r)=>t.core.color[n].replace(")",` / ${r})`);return{app:{bg:i(e.mode==="dark"?"color.n-1":"color.n-2")},overlay:{bg:a("black",.4)},bubble:{"weak-bg":i(e.mode==="dark"?"color.n-3":"color.lowest"),"weak-outline":o("color.divider"),"strong-shadow":a("a-9",.05)},"status-bar":{bg:a("n-2",.8),"bg-button":oi,"bg-button-hover":a("n-10",.4),"bg-button-active":a("n-10",.5)},"submit-button":{"bg-active":i(e.mode==="dark"?"color.a-8":"color.a-11")},"system-message":{warning:e.mode==="dark"?"#FFC107":"#8A5A00",success:e.mode==="dark"?"#4CAF50":"#2E7D32"}}}),qs=Us({prefix:"i-"}),Ys=t=>{const e=Vs.from({theme:t,getToken:qs}),o=Object.entries(e.declarations).map(([i,a])=>`${i}: ${a};`);return`${We} {
20
+ ${o.concat(o).join(`
21
+ `)}
22
+ }`};class ii extends bt.ApiError{}const Ks=({_internal_domManager:t=Ms(),theme:e,terms:o,feedback:i,jobAlerts:a})=>bt.createPlugin(({apiClient:n,rpcClient:r,logger:s,analytics:l,publishableKey:d,env:u})=>{let c=!1,h=0;As(u,d);const w=Os(Is(n));let p=0;const g=new WeakMap,$=(v,m)=>{const _=++p,y=performance.now();return m.catch(X=>{throw typeof X=="object"&&X!==null&&g.set(X,{endpoint:v,attempt:_,elapsed_ms:Math.round(performance.now()-y)}),X})},x=(v,m)=>{const _=va(v);_===404||_===410||kt("fatal","application_unavailable",{phase:"flow",stage:m,error:Ue(v),http_status:_,...m==="flow_fetch"&&typeof v=="object"&&v!==null&&g.get(v)})},C=d&&u?bt.createTalentBankClient({environment:u,publishableKey:d,logger:s}):void 0,j=v=>v===h,D=()=>{if(typeof window>"u")return;h++,q.flushStateData().catch(()=>{}),S.cancelCurrentFlow(),V.isBotTyping$.value=!1;const v=t.getChatbotElement();v&&(vt(null,v),v.remove()),c=!1,s.info("Chatbot plugin destroyed")},M=()=>{if(typeof window>"u")return;const v=h,m=[K("style",{id:"inploi-chatbot-styles"},Ds),K("style",{id:"inploi-chatbot-theme"},Ys(e))],_=t.getOrCreateChatbotElement();V.themeMode$.value=e.mode;const y=Y(!1);if(vt(K(Z,{},[m,K(Cs,{env:u,rpcClient:r,apiClient:w,logger:s,analytics:l,talentBankClient:C,params:{theme:e,terms:o,feedback:i},feedbackReady:y})]),_),i){const X=et=>{var ho,fo;if(!j(v))return;const po=(ho=t.getChatbotElement())==null?void 0:ho.querySelector("dialog");po&&Zs({instance:et({rpcClient:r,apiClient:n,logger:s,analytics:l}),theme:e,terms:((fo=i.params)==null?void 0:fo.terms)??{},host:po}).then(()=>void(y.value=!0),ya=>s.error("Error rendering feedback plugin",ya))};i.plugin instanceof Promise?i.plugin.then(({feedbackPlugin:et})=>{X(et())}).catch(et=>{s.error("Error preparing feedback plugin",et)}):X(i.plugin)}c=!0},N=async(v,m)=>{if(!j(m))return;Mn({context:to(v.jobContext,v.context||{}),schema:v.flow.context_schema,logger:s});const _=await S.prepareFlow({...v,jobAlerts:v.jobAlerts??a});j(m)&&S.commitFlow(_)};return{prepare:async()=>{if(!(typeof window>"u"))try{if(c)return;M(),s.info("Chatbot plugin prepared")}catch(v){s.error("Error preparing chatbot plugin",v)}},fetchFlowByJobId:async(v,m)=>{const _=(m==null?void 0:m.idType)==="inploi"?"internal":"external";return $("flow_by_job",r.request(Fn,{params:{id:v},searchParams:{id_type:_}})).catch(y=>{throw Ki({name:"ApiError",message:ft.string,status:410,data:ft.union({job:{status:"closed"}},{integration_response:{error:{data:{code:"job_closed"}}}})},y)?new ii(y.message,y.status,y.data):y}).then(y=>({flow:y.flow,title:y.job.title,flowKeys:[y.job.id,...(m==null?void 0:m.flowKeys)??[]],job:Rn(y,{id:v,idType:_}),employer:y.company.name,...m,jobContext:y.context,context:{user:y.user,...m==null?void 0:m.context}}))},fetchFlowById:async(v,m)=>$("flow_by_id",r.request(Bn,{params:{id:v}})).then(_=>{var y;return{flow:_.flow,title:"Chatbot",flowKeys:(m==null?void 0:m.flowKeys)??[],...m,analytics:{customProperties:{flow_id:_.flow.id,flow_version:_.flow.version,...(y=m==null?void 0:m.analytics)==null?void 0:y.customProperties}}}}),open:async v=>{if(typeof window>"u")return;const m=performance.now();try{S.cancelCurrentFlow(),S.viewState$.value="maximised",c||M()}catch(y){s.error("Error starting flow",y),kt("boot_failed",ae(y),{phase:"config",error:Ue(y),elapsed_ms:Math.round(performance.now()-m)});return}kt("boot");const _=h;if(v instanceof Promise){S.current$.value={state:"loading"};const y=X=>et=>{j(_)&&(s.error("Error loading flow",et),S.current$.value={state:et instanceof ii?"closed":"error"},x(et,X))};v.then(X=>N(X,_).catch(y("create")),y("flow_fetch"))}else await N(v,_).catch(y=>{s.error("Error starting flow",y),x(y,"create")})},hasApplicationInProgress:async v=>{const m=await q.getStateData(v.flow,v.flowKeys,v.context??{});return m!==void 0&&Jo({data:m,nodes:v.flow.nodes})},hasAnyApplicationInProgress:async()=>(await q.getAllStateData()).some(v=>Jo({data:v,nodes:[]})),close:async()=>{typeof window>"u"||(S.cancelCurrentFlow(),s.info("Closed flow from an external source"))},destroy:D}});function Zs({instance:t,terms:e,theme:o,host:i}){return t.render({key:"chatbot-header",size:"sm",theme:{accent:{chroma:o.chroma??1,hue:o.hue},positive:{hue:180,chroma:1},negative:{hue:33,chroma:1},mode:o.mode,corners:"rounded",highlights:"stroke"},terms:e,host:i})}exports.Ae=Pn;exports.C=on;exports.ChevronDown=pa;exports.Cn=Zr;exports.Ee=In;exports.F=dt;exports.Fe=jn;exports.Ie=On;exports.J=vi;exports.L=Qe;exports.LoadingIndicator=ua;exports.M=se;exports.O=ht;exports.P=an;exports.Q=mi;exports.Re=Tn;exports.Se=Cn;exports.SvgIconButton=ie;exports.V=fi;exports.W=gi;exports.Z=bi;exports._=mt;exports._e=Sn;exports.be=gn;exports.chatStore=V;exports.chatbotPlugin=Ks;exports.clsx=le;exports.createTFunction=es;exports.cva=ce;exports.d=Y;exports.de=cn;exports.fe=un;exports.getFormSubmitter=vs;exports.h=io;exports.he=$n;exports.idb=q;exports.invariant=uo;exports.isSubmissionOfType=gs;exports.j=pi;exports.je=Dn;exports.k=Z;exports.k$1=ta;exports.ke=En;exports.le=rn;exports.me=dn;exports.o=f;exports.p=re;exports.pe=sn;exports.store=S;exports.ue=nn;exports.useChatService=Rs;exports.useTranslation=Lt;exports.ve=bn;exports.we=xn;exports.xe=kn;exports.y=_t;exports.ye=mn;exports.z=ft;