@inploi/plugin-chatbot 7.0.1 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,61 +4,63 @@ import { FlowStateData, FlowSubmission, KeyToSubmissionMap } from './chatbot.sta
4
4
  export type DistributivePick<T, K extends keyof T> = T extends unknown ? Pick<T, K> : never;
5
5
  export declare const kbToReadableSize: (kb: number) => string;
6
6
  export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
7
+ type: "text";
8
+ id: string;
7
9
  data: {
8
10
  text: string;
9
11
  };
10
- type: "text";
11
- id: string;
12
12
  isHead?: boolean | undefined;
13
13
  nextId?: string | undefined;
14
14
  } | {
15
+ type: "end-flow";
16
+ id: string;
15
17
  data: {
16
18
  systemMessage: string;
17
19
  };
18
- type: "end-flow";
19
- id: string;
20
20
  isHead?: boolean | undefined;
21
21
  nextId?: string | undefined;
22
22
  } | {
23
+ type: "integration-application-submit";
24
+ id: string;
23
25
  data: {
24
26
  integrationId: string;
25
27
  skipConfirmation: boolean;
26
28
  submitLabel: string;
27
- submitKeys: ("all" | string[]) & ("all" | string[] | undefined);
29
+ submitKeys: "all" | string[];
28
30
  key?: string | undefined;
29
31
  };
30
- type: "integration-application-submit";
31
- id: string;
32
32
  isHead?: boolean | undefined;
33
33
  nextId?: string | undefined;
34
34
  } | {
35
+ type: "integration-workflow-get";
36
+ id: string;
35
37
  data: {
36
38
  integrationId: string;
37
39
  };
38
- type: "integration-workflow-get";
39
- id: string;
40
40
  isHead?: boolean | undefined;
41
41
  nextId?: string | undefined;
42
42
  } | {
43
+ type: "link";
44
+ id: string;
43
45
  data: {
44
46
  href: string;
45
47
  cta: string;
46
48
  };
47
- type: "link";
48
- id: string;
49
49
  isHead?: boolean | undefined;
50
50
  nextId?: string | undefined;
51
51
  } | {
52
+ type: "image";
53
+ id: string;
52
54
  data: {
53
55
  url: string;
54
56
  width: number;
55
57
  height: number;
56
58
  };
57
- type: "image";
58
- id: string;
59
59
  isHead?: boolean | undefined;
60
60
  nextId?: string | undefined;
61
61
  } | {
62
+ type: "question-boolean";
63
+ id: string;
62
64
  data: {
63
65
  key: string;
64
66
  question: string;
@@ -66,11 +68,11 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
66
68
  falseLabel: string;
67
69
  optional: boolean;
68
70
  };
69
- type: "question-boolean";
70
- id: string;
71
71
  isHead?: boolean | undefined;
72
72
  nextId?: string | undefined;
73
73
  } | {
74
+ type: "question-text";
75
+ id: string;
74
76
  data: {
75
77
  key: string;
76
78
  question: string;
@@ -80,11 +82,11 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
80
82
  maxChars?: number | undefined;
81
83
  minChars?: number | undefined;
82
84
  };
83
- type: "question-text";
84
- id: string;
85
85
  isHead?: boolean | undefined;
86
86
  nextId?: string | undefined;
87
87
  } | {
88
+ type: "question-number";
89
+ id: string;
88
90
  data: {
89
91
  key: string;
90
92
  question: string;
@@ -94,11 +96,11 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
94
96
  min?: number | undefined;
95
97
  max?: number | undefined;
96
98
  };
97
- type: "question-number";
98
- id: string;
99
99
  isHead?: boolean | undefined;
100
100
  nextId?: string | undefined;
101
101
  } | {
102
+ type: "question-phone";
103
+ id: string;
102
104
  data: {
103
105
  key: string;
104
106
  question: string;
@@ -107,11 +109,11 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
107
109
  minChars: number;
108
110
  defaultCountryCode: string;
109
111
  };
110
- type: "question-phone";
111
- id: string;
112
112
  isHead?: boolean | undefined;
113
113
  nextId?: string | undefined;
114
114
  } | {
115
+ type: "question-enum";
116
+ id: string;
115
117
  data: {
116
118
  options: {
117
119
  value: string;
@@ -122,11 +124,11 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
122
124
  maxSelected: number;
123
125
  minSelected: number;
124
126
  };
125
- type: "question-enum";
126
- id: string;
127
127
  isHead?: boolean | undefined;
128
128
  nextId?: string | undefined;
129
129
  } | {
130
+ type: "question-file";
131
+ id: string;
130
132
  data: {
131
133
  key: string;
132
134
  question: string;
@@ -135,11 +137,11 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
135
137
  multiple?: boolean | undefined;
136
138
  maxSizeKb?: number | undefined;
137
139
  };
138
- type: "question-file";
139
- id: string;
140
140
  isHead?: boolean | undefined;
141
141
  nextId?: string | undefined;
142
142
  } | {
143
+ type: "question-address";
144
+ id: string;
143
145
  data: {
144
146
  keys: {
145
147
  line1: string | null;
@@ -155,23 +157,12 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
155
157
  optional: boolean;
156
158
  placeholder?: string | undefined;
157
159
  };
158
- type: "question-address";
159
- id: string;
160
160
  isHead?: boolean | undefined;
161
161
  nextId?: string | undefined;
162
162
  } | {
163
- data: ({
164
- compareKey: string;
165
- compareValue: string;
166
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
167
- } | {
168
- combinator: "and" | "or";
169
- conditions: {
170
- compareKey: string;
171
- compareValue: string;
172
- compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
173
- }[];
174
- }) & ({
163
+ type: "if-block";
164
+ id: string;
165
+ data: {
175
166
  compareKey: string;
176
167
  compareValue: string;
177
168
  compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
@@ -182,49 +173,47 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
182
173
  compareValue: string;
183
174
  compare: "equals" | "notEquals" | "contains" | "notContains" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo";
184
175
  }[];
185
- } | undefined);
186
- type: "if-block";
187
- id: string;
176
+ };
188
177
  isHead?: boolean | undefined;
189
178
  nextId?: string | undefined;
190
179
  branchId?: string | undefined;
191
180
  } | {
181
+ type: "jump";
182
+ id: string;
192
183
  data: {
193
184
  targetId: string;
194
185
  };
195
- type: "jump";
196
- id: string;
197
186
  isHead?: boolean | undefined;
198
187
  nextId?: string | undefined;
199
188
  } | {
189
+ type: "add-submission";
190
+ id: string;
200
191
  data: {
201
192
  value: string;
202
193
  key: string;
203
194
  };
204
- type: "add-submission";
205
- id: string;
206
195
  isHead?: boolean | undefined;
207
196
  nextId?: string | undefined;
208
197
  } | {
198
+ type: "identify";
199
+ id: string;
209
200
  data: {
210
201
  key: string;
202
+ email?: string | undefined;
211
203
  firstName?: string | undefined;
212
204
  lastName?: string | undefined;
213
205
  phoneNumber?: string | undefined;
214
- email?: string | undefined;
215
206
  customTraits?: {
216
207
  value: string;
217
208
  key: string;
218
209
  }[] | undefined;
219
210
  };
220
- type: "identify";
221
- id: string;
222
211
  isHead?: boolean | undefined;
223
212
  nextId?: string | undefined;
224
213
  } | {
225
- data: {};
226
214
  type: "feedback";
227
215
  id: string;
216
+ data: {};
228
217
  isHead?: boolean | undefined;
229
218
  nextId?: string | undefined;
230
219
  };
@@ -13,6 +13,7 @@ export type PhonePayload = {
13
13
  phoneNumber?: string;
14
14
  };
15
15
  minChars?: number;
16
+ maxChars?: number;
16
17
  };
17
18
  submission: FlowSubmissionPhone | FlowSubmissionString | null;
18
19
  };
@@ -0,0 +1,5 @@
1
+ "use strict";const Lt=require("@inploi/sdk");var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ji(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var da=Array.isArray,Me=da,ua=typeof zt=="object"&&zt&&zt.Object===Object&&zt,ha=ua,pa=ha,fa=typeof self=="object"&&self&&self.Object===Object&&self,wa=pa||fa||Function("return this")(),Fe=wa,va=Fe,ga=va.Symbol,Le=ga,ai=Le,Xi=Object.prototype,ba=Xi.hasOwnProperty,_a=Xi.toString,mt=ai?ai.toStringTag:void 0;function ma(t){var e=ba.call(t,mt),i=t[mt];try{t[mt]=void 0;var r=!0}catch{}var a=_a.call(t);return r&&(e?t[mt]=i:delete t[mt]),a}var ya=ma,xa=Object.prototype,ka=xa.toString;function $a(t){return ka.call(t)}var Sa=$a,oi=Le,Ca=ya,Ea=Sa,Oa="[object Null]",Pa="[object Undefined]",ni=oi?oi.toStringTag:void 0;function Ta(t){return t==null?t===void 0?Pa:Oa:ni&&ni in Object(t)?Ca(t):Ea(t)}var Zi=Ta;function ja(t){return t!=null&&typeof t=="object"}var Ia=ja,za=Zi,Da=Ia,Na="[object Symbol]";function Aa(t){return typeof t=="symbol"||Da(t)&&za(t)==Na}var He=Aa,Ma=Me,Fa=He,La=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ha=/^\w*$/;function Ba(t,e){if(Ma(t))return!1;var i=typeof t;return i=="number"||i=="symbol"||i=="boolean"||t==null||Fa(t)?!0:Ha.test(t)||!La.test(t)||e!=null&&t in Object(e)}var Ua=Ba;function Ra(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Qi=Ra,Va=Zi,Ka=Qi,Wa="[object AsyncFunction]",Ga="[object Function]",qa="[object GeneratorFunction]",Ya="[object Proxy]";function Ja(t){if(!Ka(t))return!1;var e=Va(t);return e==Ga||e==qa||e==Wa||e==Ya}var Xa=Ja,Za=Fe,Qa=Za["__core-js_shared__"],to=Qa,ne=to,si=function(){var t=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function eo(t){return!!si&&si in t}var io=eo,ro=Function.prototype,ao=ro.toString;function oo(t){if(t!=null){try{return ao.call(t)}catch{}try{return t+""}catch{}}return""}var no=oo,so=Xa,co=io,lo=Qi,uo=no,ho=/[\\^$.*+?()[\]{}|]/g,po=/^\[object .+?Constructor\]$/,fo=Function.prototype,wo=Object.prototype,vo=fo.toString,go=wo.hasOwnProperty,bo=RegExp("^"+vo.call(go).replace(ho,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _o(t){if(!lo(t)||co(t))return!1;var e=so(t)?bo:po;return e.test(uo(t))}var mo=_o;function yo(t,e){return t==null?void 0:t[e]}var xo=yo,ko=mo,$o=xo;function So(t,e){var i=$o(t,e);return ko(i)?i:void 0}var tr=So,Co=tr,Eo=Co(Object,"create"),qt=Eo,ci=qt;function Oo(){this.__data__=ci?ci(null):{},this.size=0}var Po=Oo;function To(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var jo=To,Io=qt,zo="__lodash_hash_undefined__",Do=Object.prototype,No=Do.hasOwnProperty;function Ao(t){var e=this.__data__;if(Io){var i=e[t];return i===zo?void 0:i}return No.call(e,t)?e[t]:void 0}var Mo=Ao,Fo=qt,Lo=Object.prototype,Ho=Lo.hasOwnProperty;function Bo(t){var e=this.__data__;return Fo?e[t]!==void 0:Ho.call(e,t)}var Uo=Bo,Ro=qt,Vo="__lodash_hash_undefined__";function Ko(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Ro&&e===void 0?Vo:e,this}var Wo=Ko,Go=Po,qo=jo,Yo=Mo,Jo=Uo,Xo=Wo;function pt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}pt.prototype.clear=Go;pt.prototype.delete=qo;pt.prototype.get=Yo;pt.prototype.has=Jo;pt.prototype.set=Xo;var Zo=pt;function Qo(){this.__data__=[],this.size=0}var tn=Qo;function en(t,e){return t===e||t!==t&&e!==e}var rn=en,an=rn;function on(t,e){for(var i=t.length;i--;)if(an(t[i][0],e))return i;return-1}var Yt=on,nn=Yt,sn=Array.prototype,cn=sn.splice;function ln(t){var e=this.__data__,i=nn(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():cn.call(e,i,1),--this.size,!0}var dn=ln,un=Yt;function hn(t){var e=this.__data__,i=un(e,t);return i<0?void 0:e[i][1]}var pn=hn,fn=Yt;function wn(t){return fn(this.__data__,t)>-1}var vn=wn,gn=Yt;function bn(t,e){var i=this.__data__,r=gn(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}var _n=bn,mn=tn,yn=dn,xn=pn,kn=vn,$n=_n;function ft(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ft.prototype.clear=mn;ft.prototype.delete=yn;ft.prototype.get=xn;ft.prototype.has=kn;ft.prototype.set=$n;var Sn=ft,Cn=tr,En=Fe,On=Cn(En,"Map"),Pn=On,li=Zo,Tn=Sn,jn=Pn;function In(){this.size=0,this.__data__={hash:new li,map:new(jn||Tn),string:new li}}var zn=In;function Dn(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Nn=Dn,An=Nn;function Mn(t,e){var i=t.__data__;return An(e)?i[typeof e=="string"?"string":"hash"]:i.map}var Jt=Mn,Fn=Jt;function Ln(t){var e=Fn(this,t).delete(t);return this.size-=e?1:0,e}var Hn=Ln,Bn=Jt;function Un(t){return Bn(this,t).get(t)}var Rn=Un,Vn=Jt;function Kn(t){return Vn(this,t).has(t)}var Wn=Kn,Gn=Jt;function qn(t,e){var i=Gn(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}var Yn=qn,Jn=zn,Xn=Hn,Zn=Rn,Qn=Wn,ts=Yn;function wt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}wt.prototype.clear=Jn;wt.prototype.delete=Xn;wt.prototype.get=Zn;wt.prototype.has=Qn;wt.prototype.set=ts;var es=wt,er=es,is="Expected a function";function Be(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(is);var i=function(){var r=arguments,a=e?e.apply(this,r):r[0],o=i.cache;if(o.has(a))return o.get(a);var n=t.apply(this,r);return i.cache=o.set(a,n)||o,n};return i.cache=new(Be.Cache||er),i}Be.Cache=er;var rs=Be,as=rs,os=500;function ns(t){var e=as(t,function(r){return i.size===os&&i.clear(),r}),i=e.cache;return e}var ss=ns,cs=ss,ls=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/\\(\\)?/g,us=cs(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ls,function(i,r,a,o){e.push(a?o.replace(ds,"$1"):r||i)}),e}),hs=us;function ps(t,e){for(var i=-1,r=t==null?0:t.length,a=Array(r);++i<r;)a[i]=e(t[i],i,t);return a}var fs=ps,di=Le,ws=fs,vs=Me,gs=He,bs=1/0,ui=di?di.prototype:void 0,hi=ui?ui.toString:void 0;function ir(t){if(typeof t=="string")return t;if(vs(t))return ws(t,ir)+"";if(gs(t))return hi?hi.call(t):"";var e=t+"";return e=="0"&&1/t==-bs?"-0":e}var _s=ir,ms=_s;function ys(t){return t==null?"":ms(t)}var xs=ys,ks=Me,$s=Ua,Ss=hs,Cs=xs;function Es(t,e){return ks(t)?t:$s(t,e)?[t]:Ss(Cs(t))}var Os=Es,Ps=He,Ts=1/0;function js(t){if(typeof t=="string"||Ps(t))return t;var e=t+"";return e=="0"&&1/t==-Ts?"-0":e}var Is=js,zs=Os,Ds=Is;function Ns(t,e){e=zs(e,t);for(var i=0,r=e.length;t!=null&&i<r;)t=t[Ds(e[i++])];return i&&i==r?t:void 0}var As=Ns,Ms=As;function Fs(t,e,i){var r=t==null?void 0:Ms(t,e);return r===void 0?i:r}var Ls=Fs;const rr=Ji(Ls);var Tt,w,ar,or,rt,pi,nr,_e,sr,ct={},cr=[],Hs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xt=Array.isArray;function W(t,e){for(var i in e)t[i]=e[i];return t}function lr(t){var e=t.parentNode;e&&e.removeChild(t)}function A(t,e,i){var r,a,o,n={};for(o in e)o=="key"?r=e[o]:o=="ref"?a=e[o]:n[o]=e[o];if(arguments.length>2&&(n.children=arguments.length>3?Tt.call(arguments,2):i),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)n[o]===void 0&&(n[o]=t.defaultProps[o]);return $t(t,n,r,a,null)}function $t(t,e,i,r,a){var o={type:t,props:e,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++ar};return a==null&&w.vnode!=null&&w.vnode(o),o}function Bs(){return{current:null}}function H(t){return t.children}function L(t,e){this.props=t,this.context=e}function Ht(t,e){if(e==null)return t.__?Ht(t.__,t.__.__k.indexOf(t)+1):null;for(var i;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null)return i.__e;return typeof t.type=="function"?Ht(t):null}function dr(t){var e,i;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null){t.__e=t.__c.base=i.__e;break}return dr(t)}}function me(t){(!t.__d&&(t.__d=!0)&&rt.push(t)&&!Bt.__r++||pi!==w.debounceRendering)&&((pi=w.debounceRendering)||nr)(Bt)}function Bt(){var t,e,i,r,a,o,n,s,l;for(rt.sort(_e);t=rt.shift();)t.__d&&(e=rt.length,r=void 0,a=void 0,o=void 0,s=(n=(i=t).__v).__e,(l=i.__P)&&(r=[],a=[],(o=W({},n)).__v=n.__v+1,Ue(l,n,o,i.__n,l.ownerSVGElement!==void 0,n.__h!=null?[s]:null,r,s??Ht(n),n.__h,a),fr(r,n,a),n.__e!=s&&dr(n)),rt.length>e&&rt.sort(_e));Bt.__r=0}function ur(t,e,i,r,a,o,n,s,l,d,u){var c,h,v,f,g,I,_,$,M,F,D=0,N=r&&r.__k||cr,et=N.length,it=et,P=e.length;for(i.__k=[],c=0;c<P;c++)(f=i.__k[c]=(f=e[c])==null||typeof f=="boolean"||typeof f=="function"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?$t(null,f,null,null,f):Xt(f)?$t(H,{children:f},null,null,null):f.__b>0?$t(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null&&(f.__=i,f.__b=i.__b+1,($=Us(f,N,_=c+D,it))===-1?v=ct:(v=N[$]||ct,N[$]=void 0,it--),Ue(t,f,v,a,o,n,s,l,d,u),g=f.__e,(h=f.ref)&&v.ref!=h&&(v.ref&&Re(v.ref,null,f),u.push(h,f.__c||g,f)),g!=null&&(I==null&&(I=g),F=!(M=v===ct||v.__v===null)&&$===_,M?$==-1&&D--:$!==_&&($===_+1?(D++,F=!0):$>_?it>P-_?(D+=$-_,F=!0):D--:D=$<_&&$==_-1?$-_:0),_=c+D,F=F||$==c&&!M,typeof f.type!="function"||$===_&&v.__k!==f.__k?typeof f.type=="function"||F?f.__d!==void 0?(l=f.__d,f.__d=void 0):l=g.nextSibling:l=pr(t,g,l):l=hr(f,l,t),typeof i.type=="function"&&(i.__d=l)));for(i.__e=I,c=et;c--;)N[c]!=null&&(typeof i.type=="function"&&N[c].__e!=null&&N[c].__e==i.__d&&(i.__d=N[c].__e.nextSibling),wr(N[c],N[c]))}function hr(t,e,i){for(var r,a=t.__k,o=0;a&&o<a.length;o++)(r=a[o])&&(r.__=t,e=typeof r.type=="function"?hr(r,e,i):pr(i,r.__e,e));return e}function q(t,e){return e=e||[],t==null||typeof t=="boolean"||(Xt(t)?t.some(function(i){q(i,e)}):e.push(t)),e}function pr(t,e,i){return i==null||i.parentNode!==t?t.insertBefore(e,null):e==i&&e.parentNode!=null||t.insertBefore(e,i),e.nextSibling}function Us(t,e,i,r){var a=t.key,o=t.type,n=i-1,s=i+1,l=e[i];if(l===null||l&&a==l.key&&o===l.type)return i;if(r>(l!=null?1:0))for(;n>=0||s<e.length;){if(n>=0){if((l=e[n])&&a==l.key&&o===l.type)return n;n--}if(s<e.length){if((l=e[s])&&a==l.key&&o===l.type)return s;s++}}return-1}function Rs(t,e,i,r,a){var o;for(o in i)o==="children"||o==="key"||o in e||Ut(t,o,null,i[o],r);for(o in e)a&&typeof e[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||i[o]===e[o]||Ut(t,o,e[o],i[o],r)}function fi(t,e,i){e[0]==="-"?t.setProperty(e,i??""):t[e]=i==null?"":typeof i!="number"||Hs.test(e)?i:i+"px"}function Ut(t,e,i,r,a){var o;t:if(e==="style")if(typeof i=="string")t.style.cssText=i;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)i&&e in i||fi(t.style,e,"");if(i)for(e in i)r&&i[e]===r[e]||fi(t.style,e,i[e])}else if(e[0]==="o"&&e[1]==="n")o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=i,i?r||t.addEventListener(e,o?vi:wi,o):t.removeEventListener(e,o?vi:wi,o);else if(e!=="dangerouslySetInnerHTML"){if(a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e in t)try{t[e]=i??"";break t}catch{}typeof i=="function"||(i==null||i===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,i))}}function wi(t){return this.l[t.type+!1](w.event?w.event(t):t)}function vi(t){return this.l[t.type+!0](w.event?w.event(t):t)}function Ue(t,e,i,r,a,o,n,s,l,d){var u,c,h,v,f,g,I,_,$,M,F,D,N,et,it,P=e.type;if(e.constructor!==void 0)return null;i.__h!=null&&(l=i.__h,s=e.__e=i.__e,e.__h=null,o=[s]),(u=w.__b)&&u(e);try{t:if(typeof P=="function"){if(_=e.props,$=(u=P.contextType)&&r[u.__c],M=u?$?$.props.value:u.__:r,i.__c?I=(c=e.__c=i.__c).__=c.__E:("prototype"in P&&P.prototype.render?e.__c=c=new P(_,M):(e.__c=c=new L(_,M),c.constructor=P,c.render=Ks),$&&$.sub(c),c.props=_,c.state||(c.state={}),c.context=M,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),P.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=W({},c.__s)),W(c.__s,P.getDerivedStateFromProps(_,c.__s))),v=c.props,f=c.state,c.__v=e,h)P.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(P.getDerivedStateFromProps==null&&_!==v&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,M),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,M)===!1||e.__v===i.__v)){for(e.__v!==i.__v&&(c.props=_,c.state=c.__s,c.__d=!1),e.__e=i.__e,e.__k=i.__k,e.__k.forEach(function(It){It&&(It.__=e)}),F=0;F<c._sb.length;F++)c.__h.push(c._sb[F]);c._sb=[],c.__h.length&&n.push(c);break t}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,M),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(v,f,g)})}if(c.context=M,c.props=_,c.__P=t,c.__e=!1,D=w.__r,N=0,"prototype"in P&&P.prototype.render){for(c.state=c.__s,c.__d=!1,D&&D(e),u=c.render(c.props,c.state,c.context),et=0;et<c._sb.length;et++)c.__h.push(c._sb[et]);c._sb=[]}else do c.__d=!1,D&&D(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&&(r=W(W({},r),c.getChildContext())),h||c.getSnapshotBeforeUpdate==null||(g=c.getSnapshotBeforeUpdate(v,f)),ur(t,Xt(it=u!=null&&u.type===H&&u.key==null?u.props.children:u)?it:[it],e,i,r,a,o,n,s,l,d),c.base=e.__e,e.__h=null,c.__h.length&&n.push(c),I&&(c.__E=c.__=null)}else o==null&&e.__v===i.__v?(e.__k=i.__k,e.__e=i.__e):e.__e=Vs(i.__e,e,i,r,a,o,n,l,d);(u=w.diffed)&&u(e)}catch(It){e.__v=null,(l||o!=null)&&(e.__e=s,e.__h=!!l,o[o.indexOf(s)]=null),w.__e(It,e,i)}}function fr(t,e,i){for(var r=0;r<i.length;r++)Re(i[r],i[++r],i[++r]);w.__c&&w.__c(e,t),t.some(function(a){try{t=a.__h,a.__h=[],t.some(function(o){o.call(a)})}catch(o){w.__e(o,a.__v)}})}function Vs(t,e,i,r,a,o,n,s,l){var d,u,c,h=i.props,v=e.props,f=e.type,g=0;if(f==="svg"&&(a=!0),o!=null){for(;g<o.length;g++)if((d=o[g])&&"setAttribute"in d==!!f&&(f?d.localName===f:d.nodeType===3)){t=d,o[g]=null;break}}if(t==null){if(f===null)return document.createTextNode(v);t=a?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,v.is&&v),o=null,s=!1}if(f===null)h===v||s&&t.data===v||(t.data=v);else{if(o=o&&Tt.call(t.childNodes),u=(h=i.props||ct).dangerouslySetInnerHTML,c=v.dangerouslySetInnerHTML,!s){if(o!=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(Rs(t,v,h,a,s),c)e.__k=[];else if(ur(t,Xt(g=e.props.children)?g:[g],e,i,r,a&&f!=="foreignObject",o,n,o?o[0]:i.__k&&Ht(i,0),s,l),o!=null)for(g=o.length;g--;)o[g]!=null&&lr(o[g]);s||("value"in v&&(g=v.value)!==void 0&&(g!==t.value||f==="progress"&&!g||f==="option"&&g!==h.value)&&Ut(t,"value",g,h.value,!1),"checked"in v&&(g=v.checked)!==void 0&&g!==t.checked&&Ut(t,"checked",g,h.checked,!1))}return t}function Re(t,e,i){try{typeof t=="function"?t(e):t.current=e}catch(r){w.__e(r,i)}}function wr(t,e,i){var r,a;if(w.unmount&&w.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Re(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){w.__e(o,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(a=0;a<r.length;a++)r[a]&&wr(r[a],e,i||typeof t.type!="function");i||t.__e==null||lr(t.__e),t.__=t.__e=t.__d=void 0}function Ks(t,e,i){return this.constructor(t,i)}function dt(t,e,i){var r,a,o,n;w.__&&w.__(t,e),a=(r=typeof i=="function")?null:i&&i.__k||e.__k,o=[],n=[],Ue(e,t=(!r&&i||e).__k=A(H,null,[t]),a||ct,ct,e.ownerSVGElement!==void 0,!r&&i?[i]:a?null:e.firstChild?Tt.call(e.childNodes):null,o,!r&&i?i:a?a.__e:e.firstChild,r,n),fr(o,t,n)}function vr(t,e){dt(t,e,vr)}function Ws(t,e,i){var r,a,o,n,s=W({},t.props);for(o in t.type&&t.type.defaultProps&&(n=t.type.defaultProps),e)o=="key"?r=e[o]:o=="ref"?a=e[o]:s[o]=e[o]===void 0&&n!==void 0?n[o]:e[o];return arguments.length>2&&(s.children=arguments.length>3?Tt.call(arguments,2):i),$t(t.type,s,r||t.key,a||t.ref,null)}function gr(t,e){var i={__c:e="__cC"+sr++,__:t,Consumer:function(r,a){return r.children(a)},Provider:function(r){var a,o;return this.getChildContext||(a=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&a.some(function(s){s.__e=!0,me(s)})},this.sub=function(n){a.push(n);var s=n.componentWillUnmount;n.componentWillUnmount=function(){a.splice(a.indexOf(n),1),s&&s.call(n)}}),r.children}};return i.Provider.__=i.Consumer.contextType=i}Tt=cr.slice,w={__e:function(t,e,i,r){for(var a,o,n;e=e.__;)if((a=e.__c)&&!a.__)try{if((o=a.constructor)&&o.getDerivedStateFromError!=null&&(a.setState(o.getDerivedStateFromError(t)),n=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(t,r||{}),n=a.__d),n)return a.__E=a}catch(s){t=s}throw t}},ar=0,or=function(t){return t!=null&&t.constructor===void 0},L.prototype.setState=function(t,e){var i;i=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=W({},this.state),typeof t=="function"&&(t=t(W({},i),this.props)),t&&W(i,t),t!=null&&this.__v&&(e&&this._sb.push(e),me(this))},L.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),me(this))},L.prototype.render=H,rt=[],nr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_e=function(t,e){return t.__v.__b-e.__v.__b},Bt.__r=0,sr=0;function br(t){var e,i,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(i=br(t[e]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function Zt(){for(var t,e,i=0,r="",a=arguments.length;i<a;i++)(t=arguments[i])&&(e=br(t))&&(r&&(r+=" "),r+=e);return r}const gi=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,bi=Zt,Qt=(t,e)=>i=>{var r;if((e==null?void 0:e.variants)==null)return bi(t,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:a,defaultVariants:o}=e,n=Object.keys(a).map(d=>{const u=i==null?void 0:i[d],c=o==null?void 0:o[d];if(u===null)return null;const h=gi(u)||gi(c);return a[d][h]}),s=i&&Object.entries(i).reduce((d,u)=>{let[c,h]=u;return h===void 0||(d[c]=h),d},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:c,className:h,...v}=u;return Object.entries(v).every(f=>{let[g,I]=f;return Array.isArray(I)?I.includes({...o,...s}[g]):{...o,...s}[g]===I})?[...d,c,h]:d},[]);return bi(t,n,l,i==null?void 0:i.class,i==null?void 0:i.className)};var tt,x,se,_i,ut=0,_r=[],Nt=[],mi=w.__b,yi=w.__r,xi=w.diffed,ki=w.__c,$i=w.unmount;function vt(t,e){w.__h&&w.__h(x,t,ut||e),ut=0;var i=x.__H||(x.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:Nt}),i.__[t]}function Ve(t){return ut=1,mr(xr,t)}function mr(t,e,i){var r=vt(tt++,2);if(r.t=t,!r.__c&&(r.__=[i?i(e):xr(void 0,e),function(s){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,s);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=x,!x.u)){var a=function(s,l,d){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(h){return h.__c});if(u.every(function(h){return!h.__N}))return!o||o.call(this,s,l,d);var c=!1;return u.forEach(function(h){if(h.__N){var v=h.__[0];h.__=h.__N,h.__N=void 0,v!==h.__[0]&&(c=!0)}}),!(!c&&r.__c.props===s)&&(!o||o.call(this,s,l,d))};x.u=!0;var o=x.shouldComponentUpdate,n=x.componentWillUpdate;x.componentWillUpdate=function(s,l,d){if(this.__e){var u=o;o=void 0,a(s,l,d),o=u}n&&n.call(this,s,l,d)},x.shouldComponentUpdate=a}return r.__N||r.__}function Ke(t,e){var i=vt(tt++,3);!w.__s&&We(i.__H,e)&&(i.__=t,i.i=e,x.__H.__h.push(i))}function gt(t,e){var i=vt(tt++,4);!w.__s&&We(i.__H,e)&&(i.__=t,i.i=e,x.__h.push(i))}function te(t){return ut=5,st(function(){return{current:t}},[])}function Gs(t,e,i){ut=6,gt(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},i==null?i:i.concat(t))}function st(t,e){var i=vt(tt++,7);return We(i.__H,e)?(i.__V=t(),i.i=e,i.__h=t,i.__V):i.__}function qs(t,e){return ut=8,st(function(){return t},e)}function yr(t){var e=x.context[t.__c],i=vt(tt++,9);return i.c=t,e?(i.__==null&&(i.__=!0,e.sub(x)),e.props.value):t.__}function Ys(t,e){w.useDebugValue&&w.useDebugValue(e?e(t):t)}function Js(){var t=vt(tt++,11);if(!t.__){for(var e=x.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var i=e.__m||(e.__m=[0,0]);t.__="P"+i[0]+"-"+i[1]++}return t.__}function Xs(){for(var t;t=_r.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(At),t.__H.__h.forEach(ye),t.__H.__h=[]}catch(e){t.__H.__h=[],w.__e(e,t.__v)}}w.__b=function(t){x=null,mi&&mi(t)},w.__r=function(t){yi&&yi(t),tt=0;var e=(x=t.__c).__H;e&&(se===x?(e.__h=[],x.__h=[],e.__.forEach(function(i){i.__N&&(i.__=i.__N),i.__V=Nt,i.__N=i.i=void 0})):(e.__h.forEach(At),e.__h.forEach(ye),e.__h=[],tt=0)),se=x},w.diffed=function(t){xi&&xi(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(_r.push(e)!==1&&_i===w.requestAnimationFrame||((_i=w.requestAnimationFrame)||Zs)(Xs)),e.__H.__.forEach(function(i){i.i&&(i.__H=i.i),i.__V!==Nt&&(i.__=i.__V),i.i=void 0,i.__V=Nt})),se=x=null},w.__c=function(t,e){e.some(function(i){try{i.__h.forEach(At),i.__h=i.__h.filter(function(r){return!r.__||ye(r)})}catch(r){e.some(function(a){a.__h&&(a.__h=[])}),e=[],w.__e(r,i.__v)}}),ki&&ki(t,e)},w.unmount=function(t){$i&&$i(t);var e,i=t.__c;i&&i.__H&&(i.__H.__.forEach(function(r){try{At(r)}catch(a){e=a}}),i.__H=void 0,e&&w.__e(e,i.__v))};var Si=typeof requestAnimationFrame=="function";function Zs(t){var e,i=function(){clearTimeout(r),Si&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(i,100);Si&&(e=requestAnimationFrame(i))}function At(t){var e=x,i=t.__c;typeof i=="function"&&(t.__c=void 0,i()),x=e}function ye(t){var e=x;t.__c=t.__(),x=e}function We(t,e){return!t||t.length!==e.length||e.some(function(i,r){return i!==t[r]})}function xr(t,e){return typeof e=="function"?e(t):e}function kr(t,e){for(var i in e)t[i]=e[i];return t}function xe(t,e){for(var i in t)if(i!=="__source"&&!(i in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ce(t,e){return t===e&&(t!==0||1/t==1/e)||t!=t&&e!=e}function ke(t){this.props=t}function Qs(t,e){function i(a){var o=this.props.ref,n=o==a.ref;return!n&&o&&(o.call?o(null):o.current=null),e?!e(this.props,a)||!n:xe(this.props,a)}function r(a){return this.shouldComponentUpdate=i,A(t,a)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ke.prototype=new L).isPureReactComponent=!0,ke.prototype.shouldComponentUpdate=function(t,e){return xe(this.props,t)||xe(this.state,e)};var Ci=w.__b;w.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ci&&Ci(t)};var tc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function $r(t){function e(i){var r=kr({},i);return delete r.ref,t(r,i.ref||null)}return e.$$typeof=tc,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Ei=function(t,e){return t==null?null:q(q(t).map(e))},ec={map:Ei,forEach:Ei,count:function(t){return t?q(t).length:0},only:function(t){var e=q(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:q},ic=w.__e;w.__e=function(t,e,i,r){if(t.then){for(var a,o=e;o=o.__;)if((a=o.__c)&&a.__c)return e.__e==null&&(e.__e=i.__e,e.__k=i.__k),a.__c(t,e)}ic(t,e,i,r)};var Oi=w.unmount;function Sr(t,e,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=kr({},t)).__c!=null&&(t.__c.__P===i&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return Sr(r,e,i)})),t}function Cr(t,e,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Cr(r,e,i)}),t.__c&&t.__c.__P===e&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}function St(){this.__u=0,this.t=null,this.__b=null}function Er(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Or(t){var e,i,r;function a(o){if(e||(e=t()).then(function(n){i=n.default||n},function(n){r=n}),r)throw r;if(!i)throw e;return A(i,o)}return a.displayName="Lazy",a.__f=!0,a}function xt(){this.u=null,this.o=null}w.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Oi&&Oi(t)},(St.prototype=new L).__c=function(t,e){var i=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(i);var a=Er(r.__v),o=!1,n=function(){o||(o=!0,i.__R=null,a?a(s):s())};i.__R=n;var s=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Cr(d,d.__c.__P,d.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(n,n)},St.prototype.componentWillUnmount=function(){this.t=[]},St.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Sr(this.__b,i,r.__O=r.__P)}this.__b=null}var a=e.__a&&A(H,null,t.fallback);return a&&(a.__h=null),[A(H,null,e.__a?null:t.children),a]};var Pi=function(t,e,i){if(++i[1]===i[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(i=t.u;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;t.u=i=i[2]}};function rc(t){return this.getChildContext=function(){return t.context},t.children}function ac(t){var e=this,i=t.i;e.componentWillUnmount=function(){dt(null,e.l),e.l=null,e.i=null},e.i&&e.i!==i&&e.componentWillUnmount(),t.__v?(e.l||(e.i=i,e.l={nodeType:1,parentNode:i,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,a){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),dt(A(rc,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function oc(t,e){var i=A(ac,{__v:t,i:e});return i.containerInfo=e,i}(xt.prototype=new L).__a=function(t){var e=this,i=Er(e.__v),r=e.o.get(t);return r[0]++,function(a){var o=function(){e.props.revealOrder?(r.push(a),Pi(e,t,r)):a()};i?i(o):o()}},xt.prototype.render=function(t){this.u=null,this.o=new Map;var e=q(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var i=e.length;i--;)this.o.set(e[i],this.u=[1,0,this.u]);return t.children},xt.prototype.componentDidUpdate=xt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,i){Pi(t,i,e)})};var Pr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,nc=/^(?: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]/,sc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,cc=/[A-Z0-9]/g,lc=typeof document<"u",dc=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function uc(t,e,i){return e.__k==null&&(e.textContent=""),dt(t,e),typeof i=="function"&&i(),t?t.__c:null}function hc(t,e,i){return vr(t,e),typeof i=="function"&&i(),t?t.__c:null}L.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(L.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ti=w.event;function pc(){}function fc(){return this.cancelBubble}function wc(){return this.defaultPrevented}w.event=function(t){return Ti&&(t=Ti(t)),t.persist=pc,t.isPropagationStopped=fc,t.isDefaultPrevented=wc,t.nativeEvent=t};var Ge,vc={enumerable:!1,configurable:!0,get:function(){return this.class}},ji=w.vnode;w.vnode=function(t){typeof t.type=="string"&&function(e){var i=e.props,r=e.type,a={};for(var o in i){var n=i[o];if(!(o==="value"&&"defaultValue"in i&&n==null||lc&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var s=o.toLowerCase();o==="defaultValue"&&"value"in i&&i.value==null?o="value":o==="download"&&n===!0?n="":s==="ondoubleclick"?o="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||dc(i.type)?s==="onfocus"?o="onfocusin":s==="onblur"?o="onfocusout":sc.test(o)?o=s:r.indexOf("-")===-1&&nc.test(o)?o=o.replace(cc,"-$&").toLowerCase():n===null&&(n=void 0):s=o="oninput",s==="oninput"&&a[o=s]&&(o="oninputCapture"),a[o]=n}}r=="select"&&a.multiple&&Array.isArray(a.value)&&(a.value=q(i.children).forEach(function(l){l.props.selected=a.value.indexOf(l.props.value)!=-1})),r=="select"&&a.defaultValue!=null&&(a.value=q(i.children).forEach(function(l){l.props.selected=a.multiple?a.defaultValue.indexOf(l.props.value)!=-1:a.defaultValue==l.props.value})),i.class&&!i.className?(a.class=i.class,Object.defineProperty(a,"className",vc)):(i.className&&!i.class||i.class&&i.className)&&(a.class=a.className=i.className),e.props=a}(t),t.$$typeof=Pr,ji&&ji(t)};var Ii=w.__r;w.__r=function(t){Ii&&Ii(t),Ge=t.__c};var zi=w.diffed;w.diffed=function(t){zi&&zi(t);var e=t.props,i=t.__e;i!=null&&t.type==="textarea"&&"value"in e&&e.value!==i.value&&(i.value=e.value==null?"":e.value),Ge=null};var gc={ReactCurrentDispatcher:{current:{readContext:function(t){return Ge.__n[t.__c].props.value}}}};function bc(t){return A.bind(null,t)}function Tr(t){return!!t&&t.$$typeof===Pr}function _c(t){return Tr(t)?Ws.apply(null,arguments):t}function mc(t){return!!t.__k&&(dt(null,t),!0)}function yc(t){return t&&(t.base||t.nodeType===1&&t)||null}var xc=function(t,e){return t(e)},kc=function(t,e){return t(e)},$c=H;function jr(t){t()}function Sc(t){return t}function Cc(){return[!1,jr]}var Ec=gt;function Oc(t,e){var i=e(),r=Ve({h:{__:i,v:e}}),a=r[0].h,o=r[1];return gt(function(){a.__=i,a.v=e,ce(a.__,e())||o({h:a})},[t,i,e]),Ke(function(){return ce(a.__,a.v())||o({h:a}),t(function(){ce(a.__,a.v())||o({h:a})})},[t]),i}var Pc={useState:Ve,useId:Js,useReducer:mr,useEffect:Ke,useLayoutEffect:gt,useInsertionEffect:Ec,useTransition:Cc,useDeferredValue:Sc,useSyncExternalStore:Oc,startTransition:jr,useRef:te,useImperativeHandle:Gs,useMemo:st,useCallback:qs,useContext:yr,useDebugValue:Ys,version:"17.0.2",Children:ec,render:uc,hydrate:hc,unmountComponentAtNode:mc,createPortal:oc,createElement:A,createContext:gr,createFactory:bc,cloneElement:_c,createRef:Bs,Fragment:H,isValidElement:Tr,findDOMNode:yc,Component:L,PureComponent:ke,memo:Qs,forwardRef:$r,flushSync:kc,unstable_batchedUpdates:xc,StrictMode:$c,Suspense:St,SuspenseList:xt,lazy:Or,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:gc};const j=Symbol.for("@ts-pattern/matcher"),Ir=Symbol.for("@ts-pattern/isVariadic"),Rt="@ts-pattern/anonymous-select-key",$e=t=>!!(t&&typeof t=="object"),Mt=t=>t&&!!t[j],S=(t,e,i)=>{if(Mt(t)){const r=t[j](),{matched:a,selections:o}=r.match(e);return a&&o&&Object.keys(o).forEach(n=>i(n,o[n])),a}if($e(t)){if(!$e(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let r=[],a=[],o=[];for(const n of t.keys()){const s=t[n];Mt(s)&&s[Ir]?o.push(s):o.length?a.push(s):r.push(s)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<r.length+a.length)return!1;const n=e.slice(0,r.length),s=a.length===0?[]:e.slice(-a.length),l=e.slice(r.length,a.length===0?1/0:-a.length);return r.every((d,u)=>S(d,n[u],i))&&a.every((d,u)=>S(d,s[u],i))&&(o.length===0||S(o[0],l,i))}return t.length===e.length&&t.every((n,s)=>S(n,e[s],i))}return Reflect.ownKeys(t).every(r=>{const a=t[r];return(r in e||Mt(o=a)&&o[j]().matcherType==="optional")&&S(a,e[r],i);var o})}return Object.is(e,t)},T=t=>{var e,i,r;return $e(t)?Mt(t)?(e=(i=(r=t[j]()).getSelectionKeys)==null?void 0:i.call(r))!=null?e:[]:Array.isArray(t)?Et(t,T):Et(Object.values(t),T):[]},Et=(t,e)=>t.reduce((i,r)=>i.concat(e(r)),[]);function Tc(...t){if(t.length===1){const[e]=t;return i=>S(e,i,()=>{})}if(t.length===2){const[e,i]=t;return S(e,i,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`)}function C(t){return Object.assign(t,{optional:()=>qe(t),and:e=>y(t,e),or:e=>zr(t,e),select:e=>e===void 0?Ot(t):Ot(e,t)})}function Se(t){return Object.assign((e=>Object.assign(e,{[Symbol.iterator](){let i=0;const r=[{value:Object.assign(e,{[Ir]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var a;return(a=r[i++])!=null?a:r.at(-1)}}}}))(t),{optional:()=>Se(qe(t)),select:e=>Se(e===void 0?Ot(t):Ot(e,t))})}function qe(t){return C({[j]:()=>({match:e=>{let i={};const r=(a,o)=>{i[a]=o};return e===void 0?(T(t).forEach(a=>r(a,void 0)),{matched:!0,selections:i}):{matched:S(t,e,r),selections:i}},getSelectionKeys:()=>T(t),matcherType:"optional"})})}const jc=(t,e)=>{for(const i of t)if(!e(i))return!1;return!0},Ic=(t,e)=>{for(const[i,r]of t.entries())if(!e(r,i))return!1;return!0},zc=(t,e)=>{const i=Reflect.ownKeys(t);for(const r of i)if(!e(r,t[r]))return!1;return!0};function y(...t){return C({[j]:()=>({match:e=>{let i={};const r=(a,o)=>{i[a]=o};return{matched:t.every(a=>S(a,e,r)),selections:i}},getSelectionKeys:()=>Et(t,T),matcherType:"and"})})}function zr(...t){return C({[j]:()=>({match:e=>{let i={};const r=(a,o)=>{i[a]=o};return Et(t,T).forEach(a=>r(a,void 0)),{matched:t.some(a=>S(a,e,r)),selections:i}},getSelectionKeys:()=>Et(t,T),matcherType:"or"})})}function b(t){return{[j]:()=>({match:e=>({matched:!!t(e)})})}}function Ot(...t){const e=typeof t[0]=="string"?t[0]:void 0,i=t.length===2?t[1]:typeof t[0]=="string"?void 0:t[0];return C({[j]:()=>({match:r=>{let a={[e??Rt]:r};return{matched:i===void 0||S(i,r,(o,n)=>{a[o]=n}),selections:a}},getSelectionKeys:()=>[e??Rt].concat(i===void 0?[]:T(i))})})}function Dr(t){return!0}function B(t){return typeof t=="number"}function Y(t){return typeof t=="string"}function J(t){return typeof t=="bigint"}const Nr=C(b(Dr)),Dc=C(b(Dr)),Nc=Nr,X=t=>Object.assign(C(t),{startsWith:e=>{return X(y(t,(i=e,b(r=>Y(r)&&r.startsWith(i)))));var i},endsWith:e=>{return X(y(t,(i=e,b(r=>Y(r)&&r.endsWith(i)))));var i},minLength:e=>X(y(t,(i=>b(r=>Y(r)&&r.length>=i))(e))),length:e=>X(y(t,(i=>b(r=>Y(r)&&r.length===i))(e))),maxLength:e=>X(y(t,(i=>b(r=>Y(r)&&r.length<=i))(e))),includes:e=>{return X(y(t,(i=e,b(r=>Y(r)&&r.includes(i)))));var i},regex:e=>{return X(y(t,(i=e,b(r=>Y(r)&&!!r.match(i)))));var i}}),Di=X(b(Y)),U=t=>Object.assign(C(t),{between:(e,i)=>U(y(t,((r,a)=>b(o=>B(o)&&r<=o&&a>=o))(e,i))),lt:e=>U(y(t,(i=>b(r=>B(r)&&r<i))(e))),gt:e=>U(y(t,(i=>b(r=>B(r)&&r>i))(e))),lte:e=>U(y(t,(i=>b(r=>B(r)&&r<=i))(e))),gte:e=>U(y(t,(i=>b(r=>B(r)&&r>=i))(e))),int:()=>U(y(t,b(e=>B(e)&&Number.isInteger(e)))),finite:()=>U(y(t,b(e=>B(e)&&Number.isFinite(e)))),positive:()=>U(y(t,b(e=>B(e)&&e>0))),negative:()=>U(y(t,b(e=>B(e)&&e<0)))}),Ac=U(b(B)),Z=t=>Object.assign(C(t),{between:(e,i)=>Z(y(t,((r,a)=>b(o=>J(o)&&r<=o&&a>=o))(e,i))),lt:e=>Z(y(t,(i=>b(r=>J(r)&&r<i))(e))),gt:e=>Z(y(t,(i=>b(r=>J(r)&&r>i))(e))),lte:e=>Z(y(t,(i=>b(r=>J(r)&&r<=i))(e))),gte:e=>Z(y(t,(i=>b(r=>J(r)&&r>=i))(e))),positive:()=>Z(y(t,b(e=>J(e)&&e>0))),negative:()=>Z(y(t,b(e=>J(e)&&e<0)))}),Mc=Z(b(J)),Fc=C(b(function(t){return typeof t=="boolean"})),Lc=C(b(function(t){return typeof t=="symbol"})),Hc=C(b(function(t){return t==null})),Bc=C(b(function(t){return t!=null}));var at={__proto__:null,matcher:j,optional:qe,array:function(...t){return Se({[j]:()=>({match:e=>{if(!Array.isArray(e))return{matched:!1};if(t.length===0)return{matched:!0};const i=t[0];let r={};if(e.length===0)return T(i).forEach(o=>{r[o]=[]}),{matched:!0,selections:r};const a=(o,n)=>{r[o]=(r[o]||[]).concat([n])};return{matched:e.every(o=>S(i,o,a)),selections:r}},getSelectionKeys:()=>t.length===0?[]:T(t[0])})})},set:function(...t){return C({[j]:()=>({match:e=>{if(!(e instanceof Set))return{matched:!1};let i={};if(e.size===0)return{matched:!0,selections:i};if(t.length===0)return{matched:!0};const r=(o,n)=>{i[o]=(i[o]||[]).concat([n])},a=t[0];return{matched:jc(e,o=>S(a,o,r)),selections:i}},getSelectionKeys:()=>t.length===0?[]:T(t[0])})})},map:function(...t){return C({[j]:()=>({match:e=>{if(!(e instanceof Map))return{matched:!1};let i={};if(e.size===0)return{matched:!0,selections:i};const r=(s,l)=>{i[s]=(i[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[o,n]=t;return{matched:Ic(e,(s,l)=>{const d=S(o,l,r),u=S(n,s,r);return d&&u}),selections:i}},getSelectionKeys:()=>t.length===0?[]:[...T(t[0]),...T(t[1])]})})},record:function(...t){return C({[j]:()=>({match:e=>{if(e===null||typeof e!="object"||Array.isArray(e))return{matched:!1};var i;if(t.length===0)throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(i=t[0])==null?void 0:i.toString()}`);let r={};const a=(s,l)=>{r[s]=(r[s]||[]).concat([l])},[o,n]=t.length===1?[Di,t[0]]:t;return{matched:zc(e,(s,l)=>{const d=typeof s!="string"||Number.isNaN(Number(s))?null:Number(s),u=d!==null&&S(o,d,a),c=S(o,s,a),h=S(n,l,a);return(c||u)&&h}),selections:r}},getSelectionKeys:()=>t.length===0?[]:[...T(t[0]),...T(t[1])]})})},intersection:y,union:zr,not:function(t){return C({[j]:()=>({match:e=>({matched:!S(t,e,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:b,select:Ot,any:Nr,unknown:Dc,_:Nc,string:Di,number:Ac,bigint:Mc,boolean:Fc,symbol:Lc,nullish:Hc,nonNullable:Bc,instanceOf:function(t){return C(b(function(e){return i=>i instanceof e}(t)))},shape:function(t){return C(b(Tc(t)))}};class Uc extends Error{constructor(e){let i;try{i=JSON.stringify(e)}catch{i=e}super(`Pattern matching error: no pattern matches value ${i}`),this.input=void 0,this.input=e}}const Ce={matched:!1,value:void 0};function ee(t){return new Vt(t,Ce)}class Vt{constructor(e,i){this.input=void 0,this.state=void 0,this.input=e,this.state=i}with(...e){if(this.state.matched)return this;const i=e[e.length-1],r=[e[0]];let a;e.length===3&&typeof e[1]=="function"?a=e[1]:e.length>2&&r.push(...e.slice(1,e.length-1));let o=!1,n={};const s=(d,u)=>{o=!0,n[d]=u},l=!r.some(d=>S(d,this.input,s))||a&&!a(this.input)?Ce:{matched:!0,value:i(o?Rt in n?n[Rt]:n:this.input,this.input)};return new Vt(this.input,l)}when(e,i){if(this.state.matched)return this;const r=!!e(this.input);return new Vt(this.input,r?{matched:!0,value:i(this.input,this.input)}:Ce)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(e=Rc){return this.state.matched?this.state.value:e(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}}function Rc(t){throw new Uc(t)}var Vc=["other","few","many","two","one","zero"],Ni=({terms:t,overrides:e,locale:i})=>{const r=new Intl.PluralRules(i);function a(o,n){const s=(e==null?void 0:e[o])??t[o];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(l,d)=>{var u;return((u=n==null?void 0:n[d])==null?void 0:u.toString())??""});case"object":{if(typeof(n==null?void 0:n.count)!="number")throw new Error(`Missing count for translation key “${o.toString()}”`);let l=r.select(n.count);if(!(l in s)){const d=Vc.find(u=>u in s);if(!d)throw new Error(`Missing plural rule for translation key “${o.toString()}”`);l=d}return s[l].replace(/{{(\w+)}}/g,(d,u)=>{var c;return((c=n==null?void 0:n[u])==null?void 0:c.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${o.toString()}”.`)}}return a},Kc=0;function p(t,e,i,r,a,o){var n,s,l={};for(s in e)s=="ref"?n=e[s]:l[s]=e[s];var d={type:t,props:l,key:i,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Kc,__source:a,__self:o};if(typeof t=="function"&&(n=t.defaultProps))for(s in n)l[s]===void 0&&(l[s]=n[s]);return w.vnode&&w.vnode(d),d}var Ai=gr(null),Wc=t=>({defaultTerms:t,TranslationProvider:({terms:e,children:i,locale:r})=>{const a=st(()=>Ni({locale:r,terms:t,overrides:e}),[e,r]);return p(Ai.Provider,{value:{t:a,locale:r},children:i})},useTranslation:()=>{const e=yr(Ai);if(e===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:e.t,locale:e.locale}},createTFunction:({overrides:e,locale:i})=>Ni({terms:t,overrides:e,locale:i})});const{TranslationProvider:Gc,useTranslation:ie,createTFunction:qc}=Wc({error_heading:"Something unexpected happened",undo:"Undo",send:"Send",skip:"Skip",skipped:"Skipped",submission_redirect_message:"Almost there! Please complete your submission here:",complete_submission:"Complete submission",submission_completed:"Submission completed!",submission_failed:"Failed to submit",maximize:"Maximise",minimize:"Minimise",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_max_chars:"Please enter no more than {{count}} characters",validation_min_chars:"Please enter {{count}} or more characters",validation_phone:"Please enter a valid phone number",validation_phone_min_chars:"Your phone number must be at least {{count}} digits long",validation_country_code:"Please select a country code",validation_number:"Please enter a valid number",validation_number_min:"Please enter a number greater than or equal to {{min}}",validation_number_max:"Please enter a number less than or equal to {{max}}",validation_number_decimal_cases:"Please enter a number with at most {{count}} decimal cases",validation_file:"Please select a file",validation_file_ext:"Please only upload {{ext}} files",validation_file_max:{one:"Please only upload one file",other:"Please only upload up to {{count}} files"},validation_email:"That doesn’t look like a valid email address",validation_url:"That doesn’t look like a valid URL",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"}});function Ye(t,e){if(!t)throw new Error(e)}var Yc=Symbol.for("preact-signals");function Je(){if(lt>1)lt--;else{for(var t,e=!1;Ct!==void 0;){var i=Ct;for(Ct=void 0,Ee++;i!==void 0;){var r=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&Mr(i))try{i.c()}catch(a){e||(t=a,e=!0)}i=r}}if(Ee=0,lt--,e)throw t}}var m=void 0,Ct=void 0,lt=0,Ee=0,Kt=0;function Ar(t){if(m!==void 0){var e=t.n;if(e===void 0||e.t!==m)return e={i:0,S:t,p:m.s,n:void 0,t:m,e:void 0,x:void 0,r:e},m.s!==void 0&&(m.s.n=e),m.s=e,t.n=e,32&m.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=m.s,e.n=void 0,m.s.n=e,m.s=e),e}}function O(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}O.prototype.brand=Yc;O.prototype.h=function(){return!0};O.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};O.prototype.U=function(t){if(this.t!==void 0){var e=t.e,i=t.x;e!==void 0&&(e.x=i,t.e=void 0),i!==void 0&&(i.e=e,t.x=void 0),t===this.t&&(this.t=i)}};O.prototype.subscribe=function(t){var e=this;return Ze(function(){var i=e.value,r=m;m=void 0;try{t(i)}finally{m=r}})};O.prototype.valueOf=function(){return this.value};O.prototype.toString=function(){return this.value+""};O.prototype.toJSON=function(){return this.value};O.prototype.peek=function(){var t=m;m=void 0;try{return this.value}finally{m=t}};Object.defineProperty(O.prototype,"value",{get:function(){var t=Ar(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Ee>100)throw new Error("Cycle detected");this.v=t,this.i++,Kt++,lt++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Je()}}}});function ht(t){return new O(t)}function Mr(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 Fr(t){for(var e=t.s;e!==void 0;e=e.n){var i=e.S.n;if(i!==void 0&&(e.r=i),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Lr(t){for(var e=t.s,i=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):i=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=i}function bt(t){O.call(this,void 0),this.x=t,this.s=void 0,this.g=Kt-1,this.f=4}(bt.prototype=new O).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Kt))return!0;if(this.g=Kt,this.f|=1,this.i>0&&!Mr(this))return this.f&=-2,!0;var t=m;try{Fr(this),m=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(i){this.v=i,this.f|=16,this.i++}return m=t,Lr(this),this.f&=-2,!0};bt.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}O.prototype.S.call(this,t)};bt.prototype.U=function(t){if(this.t!==void 0&&(O.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};bt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(bt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=Ar(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function Jc(t){return new bt(t)}function Hr(t){var e=t.u;if(t.u=void 0,typeof e=="function"){lt++;var i=m;m=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,Xe(t),r}finally{m=i,Je()}}}function Xe(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Hr(t)}function Xc(t){if(m!==this)throw new Error("Out-of-order effect");Lr(this),m=t,this.f&=-2,8&this.f&&Xe(this),Je()}function jt(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}jt.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()}};jt.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Hr(this),Fr(this),lt++;var t=m;return m=this,Xc.bind(this,t)};jt.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ct,Ct=this)};jt.prototype.d=function(){this.f|=8,1&this.f||Xe(this)};function Ze(t){var e=new jt(t);try{e.c()}catch(i){throw e.d(),i}return e.d.bind(e)}var le;function _t(t,e){w[t]=e.bind(null,w[t]||function(){})}function Wt(t){le&&le(),le=t&&t.S()}function Br(t){var e=this,i=t.data,r=Qc(i);r.value=i;var a=st(function(){for(var o=e.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return e.__$u.c=function(){var n;!or(a.peek())&&((n=e.base)==null?void 0:n.nodeType)===3?e.base.data=a.peek():(e.__$f|=1,e.setState({}))},Jc(function(){var n=r.value.value;return n===0?0:n===!0?"":n||""})},[]);return a.value}Br.displayName="_st";Object.defineProperties(O.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Br},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});_t("__b",function(t,e){if(typeof e.type=="string"){var i,r=e.props;for(var a in r)if(a!=="children"){var o=r[a];o instanceof O&&(i||(e.__np=i={}),i[a]=o,r[a]=o.peek())}}t(e)});_t("__r",function(t,e){Wt();var i,r=e.__c;r&&(r.__$f&=-2,(i=r.__$u)===void 0&&(r.__$u=i=function(a){var o;return Ze(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o}())),Wt(i),t(e)});_t("__e",function(t,e,i,r){Wt(),t(e,i,r)});_t("diffed",function(t,e){Wt();var i;if(typeof e.type=="string"&&(i=e.__e)){var r=e.__np,a=e.props;if(r){var o=i.U;if(o)for(var n in o){var s=o[n];s!==void 0&&!(n in r)&&(s.d(),o[n]=void 0)}else i.U=o={};for(var l in r){var d=o[l],u=r[l];d===void 0?(d=Zc(i,l,u,a),o[l]=d):d.o(u,a)}}}t(e)});function Zc(t,e,i,r){var a=e in t&&t.ownerSVGElement===void 0,o=ht(i);return{o:function(n,s){o.value=n,r=s},d:Ze(function(){var n=o.value.value;r[e]!==n&&(r[e]=n,a?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))})}}_t("unmount",function(t,e){if(typeof e.type=="string"){var i=e.__e;if(i){var r=i.U;if(r){i.U=void 0;for(var a in r){var o=r[a];o&&o.d()}}}}else{var n=e.__c;if(n){var s=n.__$u;s&&(n.__$u=void 0,s.d())}}t(e)});_t("__h",function(t,e,i,r){(r<3||r===9)&&(e.__$f|=2),t(e,i,r)});L.prototype.shouldComponentUpdate=function(t,e){var i=this.__$u;if(!(i&&i.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in e)return!0;for(var a in t)if(a!=="__source"&&t[a]!==this.props[a])return!0;for(var o in this.props)if(!(o in t))return!0;return!1};function Qc(t){return st(function(){return ht(t)},[])}const Oe=(t,e)=>e.some(i=>t instanceof i);let Mi,Fi;function tl(){return Mi||(Mi=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function el(){return Fi||(Fi=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Pe=new WeakMap,de=new WeakMap,re=new WeakMap;function il(t){const e=new Promise((i,r)=>{const a=()=>{t.removeEventListener("success",o),t.removeEventListener("error",n)},o=()=>{i(ot(t.result)),a()},n=()=>{r(t.error),a()};t.addEventListener("success",o),t.addEventListener("error",n)});return re.set(e,t),e}function rl(t){if(Pe.has(t))return;const e=new Promise((i,r)=>{const a=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",n),t.removeEventListener("abort",n)},o=()=>{i(),a()},n=()=>{r(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",o),t.addEventListener("error",n),t.addEventListener("abort",n)});Pe.set(t,e)}let Te={get(t,e,i){if(t instanceof IDBTransaction){if(e==="done")return Pe.get(t);if(e==="store")return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return ot(t[e])},set(t,e,i){return t[e]=i,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Ur(t){Te=t(Te)}function al(t){return el().includes(t)?function(...e){return t.apply(je(this),e),ot(this.request)}:function(...e){return ot(t.apply(je(this),e))}}function ol(t){return typeof t=="function"?al(t):(t instanceof IDBTransaction&&rl(t),Oe(t,tl())?new Proxy(t,Te):t)}function ot(t){if(t instanceof IDBRequest)return il(t);if(de.has(t))return de.get(t);const e=ol(t);return e!==t&&(de.set(t,e),re.set(e,t)),e}const je=t=>re.get(t);function nl(t,e,{blocked:i,upgrade:r,blocking:a,terminated:o}={}){const n=indexedDB.open(t,e),s=ot(n);return r&&n.addEventListener("upgradeneeded",l=>{r(ot(n.result),l.oldVersion,l.newVersion,ot(n.transaction),l)}),i&&n.addEventListener("blocked",l=>i(l.oldVersion,l.newVersion,l)),s.then(l=>{o&&l.addEventListener("close",()=>o()),a&&l.addEventListener("versionchange",d=>a(d.oldVersion,d.newVersion,d))}).catch(()=>{}),s}const sl=["get","getKey","getAll","getAllKeys","count"],cl=["put","add","delete","clear"],ue=new Map;function Li(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(ue.get(e))return ue.get(e);const i=e.replace(/FromIndex$/,""),r=e!==i,a=cl.includes(i);if(!(i in(r?IDBIndex:IDBObjectStore).prototype)||!(a||sl.includes(i)))return;const o=async function(n,...s){const l=this.transaction(n,a?"readwrite":"readonly");let d=l.store;return r&&(d=d.index(s.shift())),(await Promise.all([d[i](...s),a&&l.done]))[0]};return ue.set(e,o),o}Ur(t=>({...t,get:(e,i,r)=>Li(e,i)||t.get(e,i,r),has:(e,i)=>!!Li(e,i)||t.has(e,i)}));const ll=["continue","continuePrimaryKey","advance"],Hi={},Ie=new WeakMap,Rr=new WeakMap,dl={get(t,e){if(!ll.includes(e))return t[e];let i=Hi[e];return i||(i=Hi[e]=function(...r){Ie.set(this,Rr.get(this)[e](...r))}),i}};async function*ul(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const i=new Proxy(e,dl);for(Rr.set(i,e),re.set(i,je(e));e;)yield i,e=await(Ie.get(i)||e.continue()),Ie.delete(i)}function Bi(t,e){return e===Symbol.asyncIterator&&Oe(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&Oe(t,[IDBIndex,IDBObjectStore])}Ur(t=>({...t,get(e,i,r){return Bi(e,i)?ul:t.get(e,i,r)},has(e,i){return Bi(e,i)||t.has(e,i)}}));const hl=t=>ee(t).with(at.number.lte(1e3),()=>`${Math.round(t)}KB`).with(at.number.lt(1e3*10),()=>`${(t/1e3).toFixed(1)}MB`).otherwise(()=>`${Math.round(t/1e3)}MB`),pl=t=>{const e=t.find(i=>i.isHead);if(!e)throw new Error("No head node found");return e},fl=t=>Object.entries(t).reduce((i,[r,a])=>(i[r]=a.value,i),{}),wl=t=>e=>e?e.type===t:!1;class vl extends Error{constructor(){super("Aborted")}}function gl(t,e=300){let i;return(...r)=>{clearTimeout(i),i=setTimeout(()=>{t.apply(this,r)},e)}}const bl=t=>typeof t=="string",_l=t=>{let e=5381;for(let i=0;i<t.length;i++)e=e*33^t.charCodeAt(i);return e>>>0},ze=t=>t===null||typeof t!="object"?t:Array.isArray(t)?t.map(ze):Object.keys(t).sort().reduce((e,i)=>(e[i]=ze(t[i]),e),{}),ml=t=>{const e=JSON.stringify(ze(t));return _l(e).toString(36)},yl=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():Math.random().toString(36).slice(2),Ui=()=>({messages:[],submissions:{},currentInput:null,nodeHistory:[],isFinished:!1,sequence:0,flowSessionId:yl()}),xl=t=>ee(t).with({nativeEvent:{submitter:at.select(at.union(at.instanceOf(HTMLButtonElement),at.instanceOf(HTMLInputElement)))}},e=>e).otherwise(()=>{throw new Error("invalid submitter")}),Ri=typeof window>"u"?void 0:nl("inploi-chatbot",3,{upgrade(t){try{t.deleteObjectStore("state")}catch{}t.createObjectStore("state")}}),kt={getStateData:async(t,e,i)=>{var a;const r=Vi({...t,flowKeys:e,context:i});return(a=await Ri)==null?void 0:a.get("state",r)},setStateData:gl(async t=>{var i;const e=Vi(t);return(i=await Ri)==null?void 0:i.put("state",t.data,e)},1e3)},Ft=(t,e,i,r=0)=>{if(!e.nextId)return i(e.id,{stepsMade:r,remainingSteps:0}),{stepsMade:r,remainingSteps:0};const a=t.find(d=>d.id===e.nextId);if(a===void 0)return{stepsMade:r,remainingSteps:0};const o=e.type==="if-block"?e.branchId:void 0,n=t.find(d=>d.id===o),s=e.type.includes("question")?1:0;if(n){const d=s+Math.max(Ft(t,a,i,r+s).remainingSteps,Ft(t,n,i,r+s).remainingSteps);return i(e.id,{stepsMade:r,remainingSteps:d}),{stepsMade:r,remainingSteps:d}}const l=s+Ft(t,a,i,r+s).remainingSteps;return i(e.id,{stepsMade:r,remainingSteps:l}),{stepsMade:r,remainingSteps:l}},kl=t=>{const e={},i=t.find(r=>r.isHead);return i&&Ft(t,i,(r,a)=>{e[r]=a}),e},Vi=t=>[...t.flowKeys,t.id,t.version,ml(t.context)].join("/"),Q=ht({state:"idle"}),yt=t=>{const{state:e,flow:i}=Q.value;if(e!=="loaded")return;Ye(i,"No flow to update");const r=t(i.data);i.data=r,Q.value={state:e,flow:i},kt.setStateData(i)},k={current$:Q,viewState$:ht("closed"),inputHeight$:ht(53),startFlow:async({flow:t,context:e={},flowKeys:i,title:r,analytics:a,job:o,locationOrigin:n})=>{const l={data:await kt.getStateData(t,i,e)??Ui(),startedAt:new Date,nodeIdToProgress:kl(t.nodes),flowKeys:i,id:t.id,version:t.version,nodes:t.nodes,build:t.build,context:e,title:r,analytics:a,job:o,locationOrigin:n};Q.value={state:"loaded",flow:l},kt.setStateData(l)},cancelCurrentFlow:()=>{Q.value={state:"idle"},k.viewState$.value="closed"},markAsFinished:()=>yt(t=>({...t,isFinished:!0})),setCurrentNodeId:t=>yt(e=>(e.nodeHistory.push(t),e)),restart:()=>{const{state:t,flow:e}=Q.value;if(t!=="loaded")throw new Error("Flow cannot be restarted: not in valid state");const i=Ui();Q.value={state:t,flow:{...e,data:i,startedAt:new Date}},kt.setStateData(e)},addMessage:(t,e)=>{const i={...t,groupId:e};return yt(r=>(r.messages.push(i),r))},removeMessagesSentByNodeIds:t=>{const{state:e,flow:i}=Q.value;Ye(e==="loaded","Application not loaded");const r=i.data.messages.filter(a=>!a.groupId||!t.includes(a.groupId));i.data.messages=r,kt.setStateData(i)},setSubmission:(t,e)=>yt(i=>(e===null?delete i.submissions[t]:i.submissions[t]=e,i)),setInput:t=>yt(e=>({...e,currentInput:t??null}))},$l=({message:t})=>{const{t:e}=ie();return p("div",{class:"flex flex-grow flex-col items-center justify-center",children:[p("svg",{class:"text-error-9 h-16 w-16",fill:"none",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2",stroke:"currentColor","stroke-linecap":"round",viewBox:"0 0 96 96",children:[p("path",{d:"M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z",fill:"#fff"}),p("path",{d:"M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z"}),p("line",{x1:"36.7",y1:"39.3",x2:"44.8",y2:"47.4"}),p("line",{x1:"52.2",y1:"39.3",x2:"60.3",y2:"47.4"}),p("line",{x1:"44.7",y1:"39.2",x2:"36.6",y2:"47.3"}),p("line",{x1:"60.2",y1:"39.2",x2:"52.1",y2:"47.3"}),p("path",{d:"M38 56h19"})]}),p("div",{class:"flex flex-col gap-2 text-center",children:[p("p",{class:"text-error-11 font-bold",children:e("error_heading")}),t&&p("p",{class:"text-neutral-9 text-sm",children:t})]})]})},Vr=t=>p("svg",{role:"img",viewBox:"0 0 24 24",...t,children:[p("title",{children:"Loading"}),p("style",{children:"#s1{animation:3s linear infinite forwards s1__to}@keyframes s1__to{0%{transform:translate(12px,0)}66.666667%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,12px)}}#s2{animation:3s linear infinite forwards s2__ts}@keyframes s2__ts{0%{transform:scale(0,0)}70%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%{transform:scale(1,1)}}#s3{animation:3s linear infinite forwards s3__to}@keyframes s3__to{0%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,33.333333%{transform:translate(12px,24px)}}#s4{animation:3s linear infinite forwards s4__ts}@keyframes s4__ts{0%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%,30%{transform:scale(0,0)}}#s5{animation:3s linear infinite forwards s5__to}@keyframes s5__to{0%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}33.333333%{transform:translate(12px,12.045742px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,66.666667%{transform:translate(12px,24px)}}#s6{animation:3s linear infinite forwards s6__ts}@keyframes s6__ts{0%,100%,63.333333%{transform:scale(0,0)}3.333333%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}33.333333%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}#s7{animation:3s linear infinite forwards s7__to}@keyframes s7__to{0%{transform:translate(12px,0)}33.333333%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}66.666667%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,24px)}}#s8{animation:3s linear infinite forwards s8__ts}@keyframes s8__ts{0%,100%,96.666667%{transform:scale(0,0)}36.666667%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}66.666667%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}"}),p("g",{id:"s1",transform:"translate(12,0)",children:p("g",{id:"s2",transform:"scale(0,0)",children:p("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),p("g",{id:"s3",transform:"translate(12,12)",children:p("g",{id:"s4",transform:"scale(1,1)",children:p("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),p("g",{id:"s5",transform:"translate(12,0)",children:p("g",{id:"s6",transform:"scale(0,0)",children:p("path",{d:"M6.5,13c3.5899,0,6.5-2.9101,6.5-6.5s-2.9101-6.5-6.5-6.5-6.5,2.91015-6.5,6.5s2.91015,6.5,6.5,6.5Zm0-4C7.88071,9,9,7.88071,9,6.5s-1.11929-2.5-2.5-2.5-2.5,1.11929-2.5,2.5s1.11929,2.5,2.5,2.5Z",transform:"translate(-6.5,-6.5)","clip-rule":"evenodd",fill:"currentColor","fill-rule":"evenodd"})})}),p("g",{id:"s7",transform:"translate(12,0)",children:p("g",{id:"s8",transform:"scale(0,0)",children:p("path",{d:"M0,6c0,3.58984,2.91016,6.5,6.5,6.5s6.5-2.91016,6.5-6.5h-4C9,7.38086,7.88086,8.5,6.5,8.5s-2.5-1.11914-2.5-2.5h-4Z",transform:"translate(-6.5,-9.25)",fill:"currentColor"})})})]}),Ki=()=>p("div",{class:"flex flex-grow flex-col items-center justify-center",children:p(Vr,{class:"text-neutral-6 h-8 w-8"})}),Sl=t=>{const i=t/100,r=1.3;return t<0?"0%":t>100?"100%":`${Math.round((1-(1-.1)*Math.pow(1-i,r))*100)}%`},Cl=Qt("touch-hitbox fr relative flex-none rounded-full p-2 transition-all",{variants:{variant:{neutral:"text-neutral-11 hover:text-neutral-12 active:text-neutral-12 hover:bg-interactive-bg-hover active:bg-interactive-bg-active ",white:"text-white/80 hover:text-white active:text-white hover:bg-white/20 active:bg-white/30"}},defaultVariants:{variant:"neutral"}}),Gt=({class:t,children:e,variant:i,...r})=>p("div",{class:"flex flex-1 items-center justify-end px-1",children:p("button",{class:Zt(Cl({variant:i}),t),...r,children:p("svg",{class:"block",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",xmlns:"http://www.w3.org/2000/svg",children:e})})}),El=()=>{if(k.current$.value.state!=="loaded")return null;const t=k.current$.value.flow.nodeIdToProgress,e=k.current$.value.flow.data.nodeHistory.at(-1);if(e===void 0)return null;const i=t[e];if(i===void 0)return null;const r=100*(i.stepsMade/(i.remainingSteps+i.stepsMade));return p("div",{class:"bg-accent-3",children:p("div",{style:{width:Sl(r)},class:"bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"})})},Ol=({children:t,params:e})=>{const{t:i}=ie(),r=k.viewState$;return p(H,{children:p("header",{class:"ring-divider bg-statusbar absolute left-0 right-0 top-0 z-20 mx-auto items-center ring-1 backdrop-blur-md backdrop-saturate-150",children:[p("div",{class:"ring-neutral-7 flex h-[var(--header-height)] gap-2 rounded-t-3xl ring-0 ring-inset transition-all duration-300 [&:has(>.view-switch:focus-visible)]:ring-1",children:[p("p",{id:"chatbot-status-bar",class:"sr-only",children:t}),p("button",{onClick:()=>{r.value="minimised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",onTouchStart:De,children:p("p",{"aria-hidden":!0,class:"text-neutral-12 truncate text-sm font-bold tracking-tight",children:t})}),p("div",{class:"flex flex-shrink-0 items-center gap-3 p-1.5",children:[e.feedback?p("div",{"data-widget":"inploi-feedback","data-key":"chatbot-header",class:Zt({hidden:k.current$.value.state!=="loaded"||r.value!=="maximised"}),children:p("div",{class:"ring-neutral-4 bg-neutral-3 h-8 w-[72px] animate-pulse rounded-full ring-1"})}):null,k.current$.value.state==="loaded"&&p(Gt,{"aria-label":"Restart",onClick:()=>{k.restart()},children:[p("path",{d:"M12 8.5C12 9.29113 11.7654 10.0645 11.3259 10.7223C10.8864 11.3801 10.2616 11.8928 9.53073 12.1955C8.79983 12.4983 7.99556 12.5775 7.21964 12.4231C6.44371 12.2688 5.73098 11.8878 5.17157 11.3284C4.61216 10.769 4.2312 10.0563 4.07686 9.28036C3.92252 8.50444 4.00173 7.70017 4.30448 6.96927C4.60723 6.23836 5.11992 5.61365 5.77772 5.17412C6.43552 4.7346 7.20887 4.5 8 4.5H9"}),p("path",{d:"M8 7L10 4.5L8 2.5"})]},"restart"),p(Gt,{class:"view-switch",onTouchStart:De,"aria-label":i("minimize"),onClick:()=>r.value="minimised",children:p("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"minmax")]})]}),p(El,{})]})})};function De(){}const Pl=Or(()=>Promise.resolve().then(()=>require("./chatbot-body-0fa03ac8.cjs")).then(t=>t.ChatbotBody)),Kr=Qt("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out",{variants:{view:{closed:"hidden",minimised:"max-w-[min(300px,calc(100vw-4rem))] h-[var(--header-height)] animate-slide-in-bottom",maximised:"max-w-[450px] h-[var(--content-height)] animate-maximise"}}}),Wr=Qt("relative flex h-full overflow-hidden rounded-3xl outline outline-1",{variants:{view:{closed:"hidden",minimised:"outline-accent-10 bg-accent-9",maximised:"outline-neutral-3 bg-neutral-1 flex-col"}}}),Tl=({open:t,...e})=>{const i=te(null);return gt(()=>{const r=i.current;r&&(t?r.showModal():r.close())},[t]),p("dialog",{ref:i,...e})},jl=({logger:t,apiClient:e,analytics:i,params:r})=>{const{state:a,flow:o,error:n}=k.current$.value,s=k.viewState$.value,l=a!=="idle"&&s==="maximised",d=te(null);return p(Gc,{terms:r.terms,locale:void 0,children:[p(Tl,{open:l,onClose:()=>k.viewState$.value="minimised",children:p("div",{ref:d,"aria-modal":"true",role:"dialog","aria-labelledby":"chatbot-status-bar",class:Kr({view:"maximised"}),children:p("div",{class:Wr({view:"maximised"}),children:[p(Ol,{params:r,children:o==null?void 0:o.title}),ee({state:a,view:s}).with({state:"idle"},()=>null).with({state:"loading"},()=>p(Ki,{},"loading")).with({state:"loaded"},()=>p(St,{fallback:p(Ki,{},"loading"),children:p(Pl,{analytics:i,apiClient:e,logger:t})})).with({state:"error"},()=>p($l,{message:n})).exhaustive()]})})}),s==="minimised"?p(Il,{flow:o}):null]})},Il=({flow:t})=>{const{t:e}=ie();return p("div",{class:Kr({view:"minimised",class:"z-100 isolate"}),children:p("div",{class:Wr({view:"minimised"}),children:[p("button",{onClick:()=>{k.viewState$.value="maximised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",onTouchStart:De,children:p("p",{"aria-hidden":!0,class:"truncate text-sm font-bold tracking-tight text-white",children:t==null?void 0:t.title})}),p("div",{class:"flex items-center px-0.5",children:p(Gt,{"aria-label":e("close_application"),onClick:k.cancelCurrentFlow,variant:"white",children:p("path",{d:"M12 12L4 4M12 4L4 12"})},"close")})]})})},zl=`[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;z-index:99999;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-e-1: 340 100% 99%;--i-e-2: 353 100% 98%;--i-e-3: 351 91% 96%;--i-e-4: 351 100% 93%;--i-e-5: 350 100% 90%;--i-e-6: 351 80% 86%;--i-e-7: 349 68% 81%;--i-e-8: 348 61% 74%;--i-e-9: 348 75% 59%;--i-e-10: 347 70% 55%;--i-e-11: 345 70% 47%;--i-e-12: 344 63% 24%;--header-height: 44px;--content-height:calc(100vh - 64px);--content-height:calc(100svh - 64px)}@media screen and (min-width: 768px){[data-widget=inploi-chatbot]{--content-height: min(640px, calc(100vh - 16px));--content-height: min(640px, calc(100svh - 16px)) }}[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot] ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot]{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[data-widget=inploi-chatbot] em{font-style:italic}[data-widget=inploi-chatbot] strong{font-weight:700}[data-widget=inploi-chatbot] *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{box-sizing:border-box}[data-widget=inploi-chatbot] :is(ul,ol){list-style:none;padding:0;margin:0}[data-widget=inploi-chatbot] :is(p){margin:0;padding:0}[data-widget=inploi-chatbot] :is(li){margin:0;padding:0;list-style:none}[data-widget=inploi-chatbot] :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}[data-widget=inploi-chatbot] .container{width:100%}@media (min-width: 640px){[data-widget=inploi-chatbot] .container{max-width:640px}}@media (min-width: 768px){[data-widget=inploi-chatbot] .container{max-width:768px}}@media (min-width: 1024px){[data-widget=inploi-chatbot] .container{max-width:1024px}}@media (min-width: 1280px){[data-widget=inploi-chatbot] .container{max-width:1280px}}@media (min-width: 1536px){[data-widget=inploi-chatbot] .container{max-width:1536px}}[data-widget=inploi-chatbot] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[data-widget=inploi-chatbot] .visible{visibility:visible}[data-widget=inploi-chatbot] .invisible{visibility:hidden}[data-widget=inploi-chatbot] .collapse{visibility:collapse}[data-widget=inploi-chatbot] .static{position:static}[data-widget=inploi-chatbot] .fixed{position:fixed}[data-widget=inploi-chatbot] .absolute{position:absolute}[data-widget=inploi-chatbot] .relative{position:relative}[data-widget=inploi-chatbot] .sticky{position:sticky}[data-widget=inploi-chatbot] .inset-0{top:0;right:0;bottom:0;left:0}[data-widget=inploi-chatbot] .bottom-0{bottom:0}[data-widget=inploi-chatbot] .bottom-2{bottom:.5rem}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:.625rem}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-2{left:.5rem}[data-widget=inploi-chatbot] .right-0{right:0}[data-widget=inploi-chatbot] .right-0\\.5{right:.125rem}[data-widget=inploi-chatbot] .right-1{right:.25rem}[data-widget=inploi-chatbot] .right-2{right:.5rem}[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-auto{margin-left:auto;margin-right:auto}[data-widget=inploi-chatbot] .mb-1{margin-bottom:.25rem}[data-widget=inploi-chatbot] .ml-auto{margin-left:auto}[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:.375rem}[data-widget=inploi-chatbot] .h-16{height:4rem}[data-widget=inploi-chatbot] .h-4{height:1rem}[data-widget=inploi-chatbot] .h-48{height:12rem}[data-widget=inploi-chatbot] .h-8{height:2rem}[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\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 1rem)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 1rem)}[data-widget=inploi-chatbot] .w-1\\.5{width:.375rem}[data-widget=inploi-chatbot] .w-16{width:4rem}[data-widget=inploi-chatbot] .w-24{width:6rem}[data-widget=inploi-chatbot] .w-4{width:1rem}[data-widget=inploi-chatbot] .w-64{width:16rem}[data-widget=inploi-chatbot] .w-8{width:2rem}[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:2rem}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,24rem)}[data-widget=inploi-chatbot] .max-w-\\[min\\(300px\\,calc\\(100vw-4rem\\)\\)\\]{max-width:min(300px,calc(100vw - 4rem))}[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] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-widget=inploi-chatbot] .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}[data-widget=inploi-chatbot] .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes pulse{50%{opacity:.5}}[data-widget=inploi-chatbot] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(1.25)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}[data-widget=inploi-chatbot] .cursor-pointer{cursor:pointer}[data-widget=inploi-chatbot] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-y{resize:vertical}[data-widget=inploi-chatbot] .resize{resize:both}[data-widget=inploi-chatbot] .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-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:.25rem}[data-widget=inploi-chatbot] .gap-1\\.5{gap:.375rem}[data-widget=inploi-chatbot] .gap-2{gap:.5rem}[data-widget=inploi-chatbot] .gap-2\\.5{gap:.625rem}[data-widget=inploi-chatbot] .gap-3{gap:.75rem}[data-widget=inploi-chatbot] .gap-4{gap:1rem}[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] .overflow-y-scroll{overflow-y:scroll}[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:.25rem}[data-widget=inploi-chatbot] .rounded-2xl{border-radius:1rem}[data-widget=inploi-chatbot] .rounded-3xl{border-radius:1.5rem}[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:.5rem}[data-widget=inploi-chatbot] .rounded-md{border-radius:.375rem}[data-widget=inploi-chatbot] .rounded-xl{border-radius:.75rem}[data-widget=inploi-chatbot] .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}[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:1.5rem;border-top-right-radius:1.5rem}[data-widget=inploi-chatbot] .rounded-bl-md{border-bottom-left-radius:.375rem}[data-widget=inploi-chatbot] .rounded-br-md{border-bottom-right-radius:.375rem}[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:.25rem}[data-widget=inploi-chatbot] .p-1\\.5{padding:.375rem}[data-widget=inploi-chatbot] .p-10{padding:2.5rem}[data-widget=inploi-chatbot] .p-11{padding:2.75rem}[data-widget=inploi-chatbot] .p-12{padding:3rem}[data-widget=inploi-chatbot] .p-2{padding:.5rem}[data-widget=inploi-chatbot] .p-2\\.5{padding:.625rem}[data-widget=inploi-chatbot] .p-3{padding:.75rem}[data-widget=inploi-chatbot] .p-4{padding:1rem}[data-widget=inploi-chatbot] .p-5{padding:1.25rem}[data-widget=inploi-chatbot] .p-6{padding:1.5rem}[data-widget=inploi-chatbot] .p-7{padding:1.75rem}[data-widget=inploi-chatbot] .p-8{padding:2rem}[data-widget=inploi-chatbot] .p-9{padding:2.25rem}[data-widget=inploi-chatbot] .px-0\\.5{padding-left:.125rem;padding-right:.125rem}[data-widget=inploi-chatbot] .px-1{padding-left:.25rem;padding-right:.25rem}[data-widget=inploi-chatbot] .px-1\\.5{padding-left:.375rem;padding-right:.375rem}[data-widget=inploi-chatbot] .px-2{padding-left:.5rem;padding-right:.5rem}[data-widget=inploi-chatbot] .px-3{padding-left:.75rem;padding-right:.75rem}[data-widget=inploi-chatbot] .px-4{padding-left:1rem;padding-right:1rem}[data-widget=inploi-chatbot] .px-5{padding-left:1.25rem;padding-right:1.25rem}[data-widget=inploi-chatbot] .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}[data-widget=inploi-chatbot] .py-1{padding-top:.25rem;padding-bottom:.25rem}[data-widget=inploi-chatbot] .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}[data-widget=inploi-chatbot] .py-2{padding-top:.5rem;padding-bottom:.5rem}[data-widget=inploi-chatbot] .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}[data-widget=inploi-chatbot] .py-3{padding-top:.75rem;padding-bottom:.75rem}[data-widget=inploi-chatbot] .pb-2{padding-bottom:.5rem}[data-widget=inploi-chatbot] .pb-6{padding-bottom:1.5rem}[data-widget=inploi-chatbot] .pl-1\\.5{padding-left:.375rem}[data-widget=inploi-chatbot] .pl-2{padding-left:.5rem}[data-widget=inploi-chatbot] .pl-2\\.5{padding-left:.625rem}[data-widget=inploi-chatbot] .pl-3{padding-left:.75rem}[data-widget=inploi-chatbot] .pl-4{padding-left:1rem}[data-widget=inploi-chatbot] .pr-1{padding-right:.25rem}[data-widget=inploi-chatbot] .pr-16{padding-right:4rem}[data-widget=inploi-chatbot] .pr-2\\.5{padding-right:.625rem}[data-widget=inploi-chatbot] .pr-3{padding-right:.75rem}[data-widget=inploi-chatbot] .pr-4{padding-right:1rem}[data-widget=inploi-chatbot] .pt-2\\.5{padding-top:.625rem}[data-widget=inploi-chatbot] .pt-3{padding-top:.75rem}[data-widget=inploi-chatbot] .pt-5{padding-top:1.25rem}[data-widget=inploi-chatbot] .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 1rem)}[data-widget=inploi-chatbot] .text-center{text-align:center}[data-widget=inploi-chatbot] .text-justify{text-align:justify}[data-widget=inploi-chatbot] .text-\\[10px\\]{font-size:10px}[data-widget=inploi-chatbot] .text-\\[11px\\]{font-size:11px}[data-widget=inploi-chatbot] .text-base{font-size:1rem;line-height:1.5rem}[data-widget=inploi-chatbot] .text-sm{font-size:.875rem;line-height:1.25rem}[data-widget=inploi-chatbot] .text-xs{font-size:.75rem;line-height:1rem}[data-widget=inploi-chatbot] .font-bold{font-weight:700}[data-widget=inploi-chatbot] .font-medium{font-weight:500}[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:.75rem}[data-widget=inploi-chatbot] .leading-snug{line-height:1.375}[data-widget=inploi-chatbot] .leading-tight{line-height:1.25}[data-widget=inploi-chatbot] .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}[data-widget=inploi-chatbot] .tracking-tight{letter-spacing:-.025em}[data-widget=inploi-chatbot] .tracking-wide{letter-spacing:.025em}[data-widget=inploi-chatbot] .tracking-widest{letter-spacing:.1em}[data-widget=inploi-chatbot] .text-\\[\\#4CAF50\\]{--tw-text-opacity: 1;color:rgb(76 175 80 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-accent-1{color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .text-accent-10{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .text-accent-11{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .text-accent-12{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .text-error-11{color:var(--i-color-e-11)}[data-widget=inploi-chatbot] .text-error-9{color:var(--i-color-e-9)}[data-widget=inploi-chatbot] .text-neutral-10{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .text-neutral-11{color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .text-neutral-12{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .text-neutral-6{color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .text-neutral-8{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .text-neutral-9{color:var(--i-color-n-9)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-white\\/80{color:#fffc}[data-widget=inploi-chatbot] .underline{text-decoration-line:underline}[data-widget=inploi-chatbot] .no-underline{text-decoration-line:none}[data-widget=inploi-chatbot] .underline-offset-2{text-underline-offset:2px}[data-widget=inploi-chatbot] .underline-offset-4{text-underline-offset:4px}[data-widget=inploi-chatbot] .caret-accent-9{caret-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .opacity-0{opacity:0}[data-widget=inploi-chatbot] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}[data-widget=inploi-chatbot] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .outline{outline-style:solid}[data-widget=inploi-chatbot] .outline-1{outline-width:1px}[data-widget=inploi-chatbot] .outline-2{outline-width:2px}[data-widget=inploi-chatbot] .outline-accent-10{outline-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .outline-accent-4{outline-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}[data-widget=inploi-chatbot] .outline-divider{outline-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .outline-neutral-3{outline-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .outline-neutral-6{outline-color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-inset{--tw-ring-inset: inset}[data-widget=inploi-chatbot] .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}[data-widget=inploi-chatbot] .ring-divider{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .ring-lowest{--tw-ring-color: var(--i-color-lowest)}[data-widget=inploi-chatbot] .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}[data-widget=inploi-chatbot] .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}[data-widget=inploi-chatbot] .ring-neutral-7{--tw-ring-color: var(--i-color-n-7)}[data-widget=inploi-chatbot] .ring-transparent{--tw-ring-color: transparent}[data-widget=inploi-chatbot] .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}[data-widget=inploi-chatbot] .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-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] .duration-700{transition-duration:.7s}[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-\\[height\\]{will-change:height}[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:.5rem;border-bottom-left-radius:.5rem}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}[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] .group[aria-pressed=true] .group-aria-\\[pressed\\=true\\]\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (pointer: coarse){[data-widget=inploi-chatbot] .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-11:has(+*>input:focus){color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\>\\.view-switch\\:focus-visible\\)\\]\\:ring-1:has(>.view-switch:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[data-widget=inploi-chatbot] dialog::backdrop{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}[data-widget=inploi-chatbot] dialog::backdrop{background-color:var(--i-overlay-bg)}
2
+ `,Gr="inploi-chatbot",qr=`[data-widget='${Gr}']`,Dl=()=>({getOrCreateChatbotElement:()=>{const t=document.querySelector(qr);if(t)return document.body.appendChild(t),t;const e=document.createElement("div");return document.body.appendChild(e),e.dataset.widget=Gr,e}});var R;function ae(t){return{lang:(t==null?void 0:t.lang)??(R==null?void 0:R.lang),message:t==null?void 0:t.message,abortEarly:(t==null?void 0:t.abortEarly)??(R==null?void 0:R.abortEarly),abortPipeEarly:(t==null?void 0:t.abortPipeEarly)??(R==null?void 0:R.abortPipeEarly)}}var he;function Nl(t){return he==null?void 0:he.get(t)}var pe;function Al(t){return pe==null?void 0:pe.get(t)}var fe;function Ml(t,e){var i;return(i=fe==null?void 0:fe.get(t))==null?void 0:i.get(e)}function nt(t){var i,r;const e=typeof t;return e==="string"?`"${t}"`:e==="number"||e==="bigint"||e==="boolean"?`${t}`:e==="object"||e==="function"?(t&&((r=(i=Object.getPrototypeOf(t))==null?void 0:i.constructor)==null?void 0:r.name))??"null":e}function E(t,e,i,r,a){const o=a&&"input"in a?a.input:i.value,n=(a==null?void 0:a.expected)??t.expects??null,s=(a==null?void 0:a.received)??nt(o),l={kind:t.kind,type:t.type,input:o,expected:n,received:s,message:`Invalid ${e}: ${n?`Expected ${n} but r`:"R"}eceived ${s}`,requirement:t.requirement,path:a==null?void 0:a.path,issues:a==null?void 0:a.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},d=t.kind==="schema",u=(a==null?void 0:a.message)??t.message??Ml(t.reference,l.lang)??(d?Al(l.lang):null)??r.message??Nl(l.lang);u!==void 0&&(l.message=typeof u=="function"?u(l):u),d&&(i.typed=!1),i.issues?i.issues.push(l):i.issues=[l]}function z(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},ae())}}}function Fl(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function Yr(t,e){const i=[...new Set(t)];return i.length>1?`(${i.join(` ${e} `)})`:i[0]??"never"}function Ll(t){if(t.path){let e="";for(const i of t.path)if(typeof i.key=="string"||typeof i.key=="number")e?e+=`.${i.key}`:e+=i.key;else return null;return e}return null}var Hl=class extends Error{constructor(t){super(t[0].message),this.name="ValiError",this.issues=t}},Bl=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function Jr(t,e){return{kind:"validation",type:"check",reference:Jr,async:!1,expects:null,requirement:t,message:e,"~run"(i,r){return i.typed&&!this.requirement(i.value)&&E(this,"input",i,r),i}}}function Xr(t){return{kind:"validation",type:"email",reference:Xr,expects:null,async:!1,requirement:Bl,message:t,"~run"(e,i){return e.typed&&!this.requirement.test(e.value)&&E(this,"email",e,i),e}}}function Zr(t,e){return{kind:"validation",type:"max_length",reference:Zr,async:!1,expects:`<=${t}`,requirement:t,message:e,"~run"(i,r){return i.typed&&i.value.length>this.requirement&&E(this,"length",i,r,{received:`${i.value.length}`}),i}}}function Qr(t,e){return{kind:"validation",type:"max_value",reference:Qr,async:!1,expects:`<=${t instanceof Date?t.toJSON():nt(t)}`,requirement:t,message:e,"~run"(i,r){return i.typed&&!(i.value<=this.requirement)&&E(this,"value",i,r,{received:i.value instanceof Date?i.value.toJSON():nt(i.value)}),i}}}function ta(t,e){return{kind:"validation",type:"min_length",reference:ta,async:!1,expects:`>=${t}`,requirement:t,message:e,"~run"(i,r){return i.typed&&i.value.length<this.requirement&&E(this,"length",i,r,{received:`${i.value.length}`}),i}}}function ea(t,e){return{kind:"validation",type:"min_value",reference:ea,async:!1,expects:`>=${t instanceof Date?t.toJSON():nt(t)}`,requirement:t,message:e,"~run"(i,r){return i.typed&&!(i.value>=this.requirement)&&E(this,"value",i,r,{received:i.value instanceof Date?i.value.toJSON():nt(i.value)}),i}}}function ia(t,e){return{kind:"validation",type:"regex",reference:ia,async:!1,expects:`${t}`,requirement:t,message:e,"~run"(i,r){return i.typed&&!this.requirement.test(i.value)&&E(this,"format",i,r),i}}}function Qe(t){return{kind:"transformation",type:"transform",reference:Qe,async:!1,operation:t,"~run"(e){return e.value=this.operation(e.value),e}}}function ra(t){return{kind:"validation",type:"url",reference:ra,async:!1,expects:null,requirement(e){try{return new URL(e),!0}catch{return!1}},message:t,"~run"(e,i){return e.typed&&!this.requirement(e.value)&&E(this,"URL",e,i),e}}}function Ul(t,e,i){return typeof t.fallback=="function"?t.fallback(e,i):t.fallback}function ti(t,e,i){return typeof t.default=="function"?t.default(e,i):t.default}function aa(){return{kind:"schema",type:"any",reference:aa,expects:"any",async:!1,get"~standard"(){return z(this)},"~run"(t){return t.typed=!0,t}}}function ei(t,e){return{kind:"schema",type:"array",reference:ei,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return z(this)},"~run"(i,r){var o;const a=i.value;if(Array.isArray(a)){i.typed=!0,i.value=[];for(let n=0;n<a.length;n++){const s=a[n],l=this.item["~run"]({value:s},r);if(l.issues){const d={type:"array",origin:"value",input:a,key:n,value:s};for(const u of l.issues)u.path?u.path.unshift(d):u.path=[d],(o=i.issues)==null||o.push(u);if(i.issues||(i.issues=l.issues),r.abortEarly){i.typed=!1;break}}l.typed||(i.typed=!1),i.value.push(l.value)}}else E(this,"type",i,r);return i}}}function oe(t){return{kind:"schema",type:"boolean",reference:oe,expects:"boolean",async:!1,message:t,get"~standard"(){return z(this)},"~run"(e,i){return typeof e.value=="boolean"?e.typed=!0:E(this,"type",e,i),e}}}function Ne(t,e){return{kind:"schema",type:"literal",reference:Ne,expects:nt(t),async:!1,literal:t,message:e,get"~standard"(){return z(this)},"~run"(i,r){return i.value===this.literal?i.typed=!0:E(this,"type",i,r),i}}}function oa(t,e){return{kind:"schema",type:"nullable",reference:oa,expects:`(${t.expects} | null)`,async:!1,wrapped:t,default:e,get"~standard"(){return z(this)},"~run"(i,r){return i.value===null&&(this.default!==void 0&&(i.value=ti(this,i,r)),i.value===null)?(i.typed=!0,i):this.wrapped["~run"](i,r)}}}function Pt(t){return{kind:"schema",type:"number",reference:Pt,expects:"number",async:!1,message:t,get"~standard"(){return z(this)},"~run"(e,i){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:E(this,"type",e,i),e}}}function G(t,e){return{kind:"schema",type:"object",reference:G,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return z(this)},"~run"(i,r){var o;const a=i.value;if(a&&typeof a=="object"){i.typed=!0,i.value={};for(const n in this.entries){const s=this.entries[n];if(n in a||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){const l=n in a?a[n]:ti(s),d=s["~run"]({value:l},r);if(d.issues){const u={type:"object",origin:"value",input:a,key:n,value:l};for(const c of d.issues)c.path?c.path.unshift(u):c.path=[u],(o=i.issues)==null||o.push(c);if(i.issues||(i.issues=d.issues),r.abortEarly){i.typed=!1;break}}d.typed||(i.typed=!1),i.value[n]=d.value}else if(s.fallback!==void 0)i.value[n]=Ul(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(E(this,"key",i,r,{input:void 0,expected:`"${n}"`,path:[{type:"object",origin:"key",input:a,key:n,value:a[n]}]}),r.abortEarly))break}}else E(this,"type",i,r);return i}}}function V(t,e){return{kind:"schema",type:"optional",reference:V,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return z(this)},"~run"(i,r){return i.value===void 0&&(this.default!==void 0&&(i.value=ti(this,i,r)),i.value===void 0)?(i.typed=!0,i):this.wrapped["~run"](i,r)}}}function na(t,e){return{kind:"schema",type:"picklist",reference:na,expects:Yr(t.map(nt),"|"),async:!1,options:t,message:e,get"~standard"(){return z(this)},"~run"(i,r){return this.options.includes(i.value)?i.typed=!0:E(this,"type",i,r),i}}}function ii(t,e,i){return{kind:"schema",type:"record",reference:ii,expects:"Object",async:!1,key:t,value:e,message:i,get"~standard"(){return z(this)},"~run"(r,a){var n,s;const o=r.value;if(o&&typeof o=="object"){r.typed=!0,r.value={};for(const l in o)if(Fl(o,l)){const d=o[l],u=this.key["~run"]({value:l},a);if(u.issues){const h={type:"object",origin:"key",input:o,key:l,value:d};for(const v of u.issues)v.path=[h],(n=r.issues)==null||n.push(v);if(r.issues||(r.issues=u.issues),a.abortEarly){r.typed=!1;break}}const c=this.value["~run"]({value:d},a);if(c.issues){const h={type:"object",origin:"value",input:o,key:l,value:d};for(const v of c.issues)v.path?v.path.unshift(h):v.path=[h],(s=r.issues)==null||s.push(v);if(r.issues||(r.issues=c.issues),a.abortEarly){r.typed=!1;break}}(!u.typed||!c.typed)&&(r.typed=!1),u.typed&&(r.value[u.value]=c.value)}}else E(this,"type",r,a);return r}}}function K(t){return{kind:"schema",type:"string",reference:K,expects:"string",async:!1,message:t,get"~standard"(){return z(this)},"~run"(e,i){return typeof e.value=="string"?e.typed=!0:E(this,"type",e,i),e}}}function Wi(t){let e;if(t)for(const i of t)e?e.push(...i.issues):e=i.issues;return e}function ri(t,e){return{kind:"schema",type:"union",reference:ri,expects:Yr(t.map(i=>i.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return z(this)},"~run"(i,r){let a,o,n;for(const s of this.options){const l=s["~run"]({value:i.value},r);if(l.typed)if(l.issues)o?o.push(l):o=[l];else{a=l;break}else n?n.push(l):n=[l]}if(a)return a;if(o){if(o.length===1)return o[0];E(this,"type",i,r,{issues:Wi(o)}),i.typed=!0}else{if((n==null?void 0:n.length)===1)return n[0];E(this,"type",i,r,{issues:Wi(n)})}return i}}}function Rl(t,e,i){const r=t["~run"]({value:e},ae(i));if(r.issues)throw new Hl(r.issues);return r.value}function Vl(t,e){const i={};for(const r in t.entries)i[r]=!e||e.includes(r)?V(t.entries[r]):t.entries[r];return{...t,entries:i,get"~standard"(){return z(this)}}}function sa(...t){return{...t[0],pipe:t,get"~standard"(){return z(this)},"~run"(e,i){for(const r of t)if(r.kind!=="metadata"){if(e.issues&&(r.kind==="schema"||r.kind==="transformation")){e.typed=!1;break}(!e.issues||!i.abortEarly&&!i.abortPipeEarly)&&(e=r["~run"](e,i))}return e}}}function Kl(t,e,i){const r=t["~run"]({value:e},ae(i));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}async function Wl(t,e,i){const r=await t["~run"]({value:e},ae(i));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const ca=sa(ri([K(),Pt()]),Qe(String)),la=G({id:ca,version:Pt(),build:Pt(),nodes:ei(aa()),context_schema:V(oa(ii(K(),G({required:oe(),type:ri([Ne("string"),Ne("number")])}))))}),Gl=G({flow:la}),ql=G({company:G({name:K()}),flow:la,job:G({id:ca,title:K()}),user:V(G({city:V(K()),country:V(K()),isEU:V(oe()),continent:V(K())}))}),Yl=Lt.endpoint({pathname:"/flow/job/:id",method:"GET",schema:{searchParams:Lt.typed(),response:ql}}),Jl=Lt.endpoint({pathname:"/flow/id/:id",method:"GET",schema:{response:Gl}});var Xl=["1","2","3","4","5","6","7","8","9","10","11","12"],Zl={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]}},Ql=(t,e=1,i)=>r=>{const[a,o]=Zl[i][r];return"oklch("+a+"% "+o*e+" "+t+")"},we=t=>{const e=Ql(t.hue,t.chroma,t.mode);return Object.fromEntries(Xl.map(i=>[t.prefix+i,t.transform(e(i))]))},ve=t=>t,td=t=>{const e=Object.keys(t).flatMap(i=>{const r=t[i];return typeof r=="object"&&r!==null?Object.keys(r).map(a=>{const o=r[a];return[`${String(i)}.${a}`,o]}):[[i,r]]});return Object.fromEntries(e)},Dt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ae=(t,...e)=>{if(!e.length)return t;const i=e.shift();if(Dt(t)&&Dt(i))for(const r in i){const a=i[r];if(Dt(a)){t[r]||Object.assign(t,{[r]:{}});const o=t[r];Dt(o)&&Ae(o,a)}else Object.assign(t,{[r]:i[r]})}return Ae(t,...e)},ed=t=>{function e(i,r){const a=[t.prefix,r.toString().replace(/\./g,"-")].join("");return i==="declaration"?`--${a}`:`var(--${a})`}return e},id=()=>({core:t=>({semantic:e=>({component:i=>({from:r=>{const{theme:a,getToken:o}=r,n=h=>o("reference",h.toString()),s=t({theme:a}),l=e({theme:a,core:n,raw:{core:s}}),d=i({theme:a,core:n,semantic:n,raw:{core:s,semantic:l}}),u=td(Ae(s,l,d)),c=([h,v],f)=>{const g=[f,h].filter(Boolean).join(".");return typeof v=="object"?Object.entries(v).flatMap(I=>c(I,g)):[[r.getToken("declaration",g),v]]};return{values:u,declarations:Object.fromEntries(Object.entries(u).flatMap(h=>c(h))),ref:h=>o("reference",h.toString())}}})})})});const[ge,be,Gi]=["oklch(0% 0 0)","oklch(100% 0 0)","transparent"],rd=id().core(({theme:t})=>({color:{black:ge,white:be,lowest:t.mode==="light"?be:ge,highest:t.mode==="light"?ge:be,...we({prefix:"a-",hue:t.hue,chroma:t.chroma,mode:t.mode,transform:ve}),...we({prefix:"n-",hue:t.hue,chroma:.05,mode:t.mode,transform:ve}),...we({prefix:"e-",hue:20,chroma:t.chroma,mode:t.mode,transform:ve})},typography:{}})).semantic(({core:t,raw:e,theme:i})=>{const r=(a,o)=>e.core.color[a].replace(")",` / ${o})`);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:r("n-8",i.mode==="dark"?.4:.2)},"copy-body":t("color.n-12"),"copy-headings":t("color.n-12"),interactive:{copy:t("color.n-11"),"copy-hover":t("color.n-12"),"copy-active":t("color.n-12"),bg:Gi,"bg-hover":r("n-10",.2),"bg-active":r("n-10",.3)}}}).component(({raw:t,theme:e,semantic:i,core:r})=>{const a=(o,n)=>t.core.color[o].replace(")",` / ${n})`);return{app:{bg:r(e.mode==="dark"?"color.n-1":"color.n-2")},overlay:{bg:a("black",.4)},bubble:{"weak-bg":r(e.mode==="dark"?"color.n-3":"color.lowest"),"weak-outline":i("color.divider"),"strong-shadow":a("a-9",.05)},"status-bar":{bg:a("n-2",.8),"bg-button":Gi,"bg-button-hover":a("n-10",.4),"bg-button-active":a("n-10",.5)},"submit-button":{"bg-active":r(e.mode==="dark"?"color.a-8":"color.a-11")}}}),ad=ed({prefix:"i-"}),od=t=>{const e=rd.from({theme:t,getToken:ad}),i=Object.entries(e.declarations).map(([r,a])=>`${r}: ${a};`);return`${qr} {
3
+ ${i.concat(i).join(`
4
+ `)}
5
+ }`},qi=({context:t,schema:e,logger:i})=>{if(e)for(const r in e){const a=e[r];if(!a)continue;const o=rr(t,r,null);if(a.required&&o===null){const n=`Configuration error in context: ${r} is required`;throw i.error(n),new Error(n)}switch(a.type){case"number":if(typeof o!="number")throw new Error(`Configuration error in context: ${r} is not a number`);break;case"string":if(typeof o!="string")throw new Error(`Configuration error in context: ${r} is not a string`);break;default:a.type}}},nd=({_internal_domManager:t=Dl(),theme:e,terms:i,feedback:r})=>Lt.createPlugin(({apiClient:a,rpcClient:o,logger:n,analytics:s})=>{let l=!1;const d=qc({locale:void 0,overrides:i??{}}),u=()=>{var v;if(typeof window>"u")return;const c=[A("style",{id:"inploi-chatbot-styles"},zl),A("style",{id:"inploi-chatbot-theme"},od(e))],h=t.getOrCreateChatbotElement();if(dt(A(H,{},[c,A(jl,{apiClient:a,logger:n,analytics:s,params:{theme:e,terms:i,feedback:r}})]),h),r){const f=h.querySelector("dialog");if(!f)throw new Error("Couldn't find feedback host");if(r.plugin instanceof Promise)r.plugin.then(({feedbackPlugin:g})=>{var _;const I=g()({rpcClient:o,apiClient:a,logger:n,analytics:s});Yi({instance:I,theme:e,terms:((_=r.params)==null?void 0:_.terms)??{},host:f})});else{const g=r.plugin({rpcClient:o,apiClient:a,logger:n,analytics:s});Yi({instance:g,theme:e,terms:((v=r.params)==null?void 0:v.terms)??{},host:f})}}l=!0};return{prepare:async()=>{if(!(typeof window>"u"))try{if(l)return;u(),n.info("Chatbot plugin prepared")}catch(c){n.error("Error preparing chatbot plugin",c)}},fetchFlowByJobId:async(c,h)=>o.request(Yl,{params:{id:c},searchParams:{id_type:(h==null?void 0:h.idType)==="inploi"?"internal":"external"}}).then(v=>({flow:v.flow,title:v.job.title,flowKeys:[v.job.id,...(h==null?void 0:h.flowKeys)??[]],job:{id:v.job.id,id_type:"external"},...h,context:{user:v.user,...h==null?void 0:h.context}})),fetchFlowById:async(c,h)=>o.request(Jl,{params:{id:c}}).then(v=>{var f;return{flow:v.flow,title:"Chatbot",flowKeys:(h==null?void 0:h.flowKeys)??[],...h,analytics:{customProperties:{flow_id:v.flow.id,flow_version:v.flow.version,...(f=h==null?void 0:h.analytics)==null?void 0:f.customProperties}}}}),open:async c=>{if(!(typeof window>"u"))try{k.cancelCurrentFlow(),k.viewState$.value="maximised",l||u(),c instanceof Promise?(k.current$.value={state:"loading"},c.then(async h=>{qi({context:h.context||{},schema:h.flow.context_schema,logger:n}),k.startFlow(h)}).catch(h=>{const v=h instanceof Error?h.message:d("unknown_error");k.current$.value={state:"error",error:v}})):(qi({context:c.context||{},schema:c.flow.context_schema,logger:n}),k.startFlow(c))}catch(h){n.error("Error starting flow",h)}},close:async()=>{typeof window>"u"||(k.cancelCurrentFlow(),n.info("Closed flow from an external source"))}}});function Yi({instance:t,terms:e,theme:i,host:r}){t.render({key:"chatbot-header",size:"sm",theme:{accent:{chroma:i.chroma??1,hue:i.hue},positive:{hue:180,chroma:1},negative:{hue:33,chroma:1},mode:i.mode,corners:"rounded",highlights:"stroke"},terms:e,host:r})}exports.AbortedError=vl;exports.Cn=Pc;exports.F=st;exports.LoadingIndicator=Vr;exports.M=ee;exports.SvgIconButton=Gt;exports._=te;exports.array=ei;exports.boolean=oe;exports.chatbotPlugin=nd;exports.check=Jr;exports.clsx=Zt;exports.cva=Qt;exports.d=ht;exports.email=Xr;exports.get=rr;exports.getDefaultExportFromCjs=Ji;exports.getDotPath=Ll;exports.getFlowSubmissionsPayload=fl;exports.getFormSubmitter=xl;exports.getHeadOrThrow=pl;exports.h=Ve;exports.invariant=Ye;exports.isString=bl;exports.isSubmissionOfType=wl;exports.k=H;exports.k$1=$r;exports.kbToReadableSize=hl;exports.maxLength=Zr;exports.maxValue=Qr;exports.minLength=ta;exports.minValue=ea;exports.number=Pt;exports.o=p;exports.object=G;exports.optional=V;exports.p=Ke;exports.parse=Rl;exports.partial=Vl;exports.picklist=na;exports.pipe=sa;exports.record=ii;exports.regex=ia;exports.safeParse=Kl;exports.safeParseAsync=Wl;exports.store=k;exports.string=K;exports.transform=Qe;exports.url=ra;exports.useTranslation=ie;exports.y=gt;exports.z=at;