@inploi/plugin-chatbot 4.3.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +3 -3
- package/cdn/style.css +1 -1
- package/dist/{chatbot-body-3a421cab.js → chatbot-body-78dc7e6c.js} +1 -1
- package/dist/{chatbot-body-59e32abf.cjs → chatbot-body-b911ba6f.cjs} +1 -1
- package/dist/chatbot.d.ts +4 -2
- package/dist/components/status-bar.d.ts +9 -1
- package/dist/i18n.d.ts +0 -6
- package/dist/index-2066a89b.cjs +5 -0
- package/dist/{index-d718e966.js → index-2463356b.js} +874 -801
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/style/tokens.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/index-26542f57.cjs +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";var Gr=Object.defineProperty;var Yr=(t,e,a)=>e in t?Gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var Ze=(t,e,a)=>(Yr(t,typeof e!="symbol"?e+"":e,a),a);const Xr=require("@inploi/sdk");var Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zr=Array.isArray,De=Zr,Jr=typeof Dt=="object"&&Dt&&Dt.Object===Object&&Dt,Qr=Jr,ti=Qr,ei=typeof self=="object"&&self&&self.Object===Object&&self,ai=ti||ei||Function("return this")(),Ae=ai,ri=Ae,ii=ri.Symbol,Ne=ii,Je=Ne,Va=Object.prototype,oi=Va.hasOwnProperty,ni=Va.toString,yt=Je?Je.toStringTag:void 0;function si(t){var e=oi.call(t,yt),a=t[yt];try{t[yt]=void 0;var r=!0}catch{}var o=ni.call(t);return r&&(e?t[yt]=a:delete t[yt]),o}var ci=si,li=Object.prototype,di=li.toString;function ui(t){return di.call(t)}var hi=ui,Qe=Ne,pi=ci,fi=hi,wi="[object Null]",gi="[object Undefined]",ta=Qe?Qe.toStringTag:void 0;function bi(t){return t==null?t===void 0?gi:wi:ta&&ta in Object(t)?pi(t):fi(t)}var qa=bi;function vi(t){return t!=null&&typeof t=="object"}var _i=vi,mi=qa,yi=_i,xi="[object Symbol]";function ki(t){return typeof t=="symbol"||yi(t)&&mi(t)==xi}var Me=ki,$i=De,Si=Me,Ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ei=/^\w*$/;function Pi(t,e){if($i(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Si(t)?!0:Ei.test(t)||!Ci.test(t)||e!=null&&t in Object(e)}var Oi=Pi;function Ii(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ka=Ii,Ti=qa,ji=Ka,zi="[object AsyncFunction]",Di="[object Function]",Ai="[object GeneratorFunction]",Ni="[object Proxy]";function Mi(t){if(!ji(t))return!1;var e=Ti(t);return e==Di||e==Ai||e==zi||e==Ni}var Fi=Mi,Li=Ae,Hi=Li["__core-js_shared__"],Bi=Hi,ne=Bi,ea=function(){var t=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Ri(t){return!!ea&&ea in t}var Ui=Ri,Vi=Function.prototype,qi=Vi.toString;function Ki(t){if(t!=null){try{return qi.call(t)}catch{}try{return t+""}catch{}}return""}var Wi=Ki,Gi=Fi,Yi=Ui,Xi=Ka,Zi=Wi,Ji=/[\\^$.*+?()[\]{}|]/g,Qi=/^\[object .+?Constructor\]$/,to=Function.prototype,eo=Object.prototype,ao=to.toString,ro=eo.hasOwnProperty,io=RegExp("^"+ao.call(ro).replace(Ji,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oo(t){if(!Xi(t)||Yi(t))return!1;var e=Gi(t)?io:Qi;return e.test(Zi(t))}var no=oo;function so(t,e){return t==null?void 0:t[e]}var co=so,lo=no,uo=co;function ho(t,e){var a=uo(t,e);return lo(a)?a:void 0}var Wa=ho,po=Wa,fo=po(Object,"create"),Gt=fo,aa=Gt;function wo(){this.__data__=aa?aa(null):{},this.size=0}var go=wo;function bo(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var vo=bo,_o=Gt,mo="__lodash_hash_undefined__",yo=Object.prototype,xo=yo.hasOwnProperty;function ko(t){var e=this.__data__;if(_o){var a=e[t];return a===mo?void 0:a}return xo.call(e,t)?e[t]:void 0}var $o=ko,So=Gt,Co=Object.prototype,Eo=Co.hasOwnProperty;function Po(t){var e=this.__data__;return So?e[t]!==void 0:Eo.call(e,t)}var Oo=Po,Io=Gt,To="__lodash_hash_undefined__";function jo(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Io&&e===void 0?To:e,this}var zo=jo,Do=go,Ao=vo,No=$o,Mo=Oo,Fo=zo;function wt(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}wt.prototype.clear=Do;wt.prototype.delete=Ao;wt.prototype.get=No;wt.prototype.has=Mo;wt.prototype.set=Fo;var Lo=wt;function Ho(){this.__data__=[],this.size=0}var Bo=Ho;function Ro(t,e){return t===e||t!==t&&e!==e}var Uo=Ro,Vo=Uo;function qo(t,e){for(var a=t.length;a--;)if(Vo(t[a][0],e))return a;return-1}var Yt=qo,Ko=Yt,Wo=Array.prototype,Go=Wo.splice;function Yo(t){var e=this.__data__,a=Ko(e,t);if(a<0)return!1;var r=e.length-1;return a==r?e.pop():Go.call(e,a,1),--this.size,!0}var Xo=Yo,Zo=Yt;function Jo(t){var e=this.__data__,a=Zo(e,t);return a<0?void 0:e[a][1]}var Qo=Jo,tn=Yt;function en(t){return tn(this.__data__,t)>-1}var an=en,rn=Yt;function on(t,e){var a=this.__data__,r=rn(a,t);return r<0?(++this.size,a.push([t,e])):a[r][1]=e,this}var nn=on,sn=Bo,cn=Xo,ln=Qo,dn=an,un=nn;function gt(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}gt.prototype.clear=sn;gt.prototype.delete=cn;gt.prototype.get=ln;gt.prototype.has=dn;gt.prototype.set=un;var hn=gt,pn=Wa,fn=Ae,wn=pn(fn,"Map"),gn=wn,ra=Lo,bn=hn,vn=gn;function _n(){this.size=0,this.__data__={hash:new ra,map:new(vn||bn),string:new ra}}var mn=_n;function yn(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var xn=yn,kn=xn;function $n(t,e){var a=t.__data__;return kn(e)?a[typeof e=="string"?"string":"hash"]:a.map}var Xt=$n,Sn=Xt;function Cn(t){var e=Sn(this,t).delete(t);return this.size-=e?1:0,e}var En=Cn,Pn=Xt;function On(t){return Pn(this,t).get(t)}var In=On,Tn=Xt;function jn(t){return Tn(this,t).has(t)}var zn=jn,Dn=Xt;function An(t,e){var a=Dn(this,t),r=a.size;return a.set(t,e),this.size+=a.size==r?0:1,this}var Nn=An,Mn=mn,Fn=En,Ln=In,Hn=zn,Bn=Nn;function bt(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}bt.prototype.clear=Mn;bt.prototype.delete=Fn;bt.prototype.get=Ln;bt.prototype.has=Hn;bt.prototype.set=Bn;var Rn=bt,Ga=Rn,Un="Expected a function";function Fe(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Un);var a=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=a.cache;if(i.has(o))return i.get(o);var n=t.apply(this,r);return a.cache=i.set(o,n)||i,n};return a.cache=new(Fe.Cache||Ga),a}Fe.Cache=Ga;var Vn=Fe,qn=Vn,Kn=500;function Wn(t){var e=qn(t,function(r){return a.size===Kn&&a.clear(),r}),a=e.cache;return e}var Gn=Wn,Yn=Gn,Xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zn=/\\(\\)?/g,Jn=Yn(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Xn,function(a,r,o,i){e.push(o?i.replace(Zn,"$1"):r||a)}),e}),Qn=Jn;function ts(t,e){for(var a=-1,r=t==null?0:t.length,o=Array(r);++a<r;)o[a]=e(t[a],a,t);return o}var es=ts,ia=Ne,as=es,rs=De,is=Me,os=1/0,oa=ia?ia.prototype:void 0,na=oa?oa.toString:void 0;function Ya(t){if(typeof t=="string")return t;if(rs(t))return as(t,Ya)+"";if(is(t))return na?na.call(t):"";var e=t+"";return e=="0"&&1/t==-os?"-0":e}var ns=Ya,ss=ns;function cs(t){return t==null?"":ss(t)}var ls=cs,ds=De,us=Oi,hs=Qn,ps=ls;function fs(t,e){return ds(t)?t:us(t,e)?[t]:hs(ps(t))}var ws=fs,gs=Me,bs=1/0;function vs(t){if(typeof t=="string"||gs(t))return t;var e=t+"";return e=="0"&&1/t==-bs?"-0":e}var _s=vs,ms=ws,ys=_s;function xs(t,e){e=ms(e,t);for(var a=0,r=e.length;t!=null&&a<r;)t=t[ys(e[a++])];return a&&a==r?t:void 0}var ks=xs,$s=ks;function Ss(t,e,a){var r=t==null?void 0:$s(t,e);return r===void 0?a:r}var Cs=Ss;const Xa=Ua(Cs);var It,w,Za,Ja,nt,sa,Qa,ge,tr,dt={},er=[],Es=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zt=Array.isArray;function U(t,e){for(var a in e)t[a]=e[a];return t}function ar(t){var e=t.parentNode;e&&e.removeChild(t)}function A(t,e,a){var r,o,i,n={};for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:n[i]=e[i];if(arguments.length>2&&(n.children=arguments.length>3?It.call(arguments,2):a),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)n[i]===void 0&&(n[i]=t.defaultProps[i]);return St(t,n,r,o,null)}function St(t,e,a,r,o){var i={type:t,props:e,key:a,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Za};return o==null&&w.vnode!=null&&w.vnode(i),i}function Ps(){return{current:null}}function L(t){return t.children}function F(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 a;e<t.__k.length;e++)if((a=t.__k[e])!=null&&a.__e!=null)return a.__e;return typeof t.type=="function"?Ht(t):null}function rr(t){var e,a;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((a=t.__k[e])!=null&&a.__e!=null){t.__e=t.__c.base=a.__e;break}return rr(t)}}function be(t){(!t.__d&&(t.__d=!0)&&nt.push(t)&&!Bt.__r++||sa!==w.debounceRendering)&&((sa=w.debounceRendering)||Qa)(Bt)}function Bt(){var t,e,a,r,o,i,n,c,l;for(nt.sort(ge);t=nt.shift();)t.__d&&(e=nt.length,r=void 0,o=void 0,i=void 0,c=(n=(a=t).__v).__e,(l=a.__P)&&(r=[],o=[],(i=U({},n)).__v=n.__v+1,Le(l,n,i,a.__n,l.ownerSVGElement!==void 0,n.__h!=null?[c]:null,r,c??Ht(n),n.__h,o),sr(r,n,o),n.__e!=c&&rr(n)),nt.length>e&&nt.sort(ge));Bt.__r=0}function ir(t,e,a,r,o,i,n,c,l,d,u){var s,f,g,h,b,m,v,S,N,M,j=0,z=r&&r.__k||er,at=z.length,rt=at,O=e.length;for(a.__k=[],s=0;s<O;s++)(h=a.__k[s]=(h=e[s])==null||typeof h=="boolean"||typeof h=="function"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?St(null,h,null,null,h):Zt(h)?St(L,{children:h},null,null,null):h.__b>0?St(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null&&(h.__=a,h.__b=a.__b+1,(S=Os(h,z,v=s+j,rt))===-1?g=dt:(g=z[S]||dt,z[S]=void 0,rt--),Le(t,h,g,o,i,n,c,l,d,u),b=h.__e,(f=h.ref)&&g.ref!=f&&(g.ref&&He(g.ref,null,h),u.push(f,h.__c||b,h)),b!=null&&(m==null&&(m=b),M=!(N=g===dt||g.__v===null)&&S===v,N?S==-1&&j--:S!==v&&(S===v+1?(j++,M=!0):S>v?rt>O-v?(j+=S-v,M=!0):j--:j=S<v&&S==v-1?S-v:0),v=s+j,M=M||S==s&&!N,typeof h.type!="function"||S===v&&g.__k!==h.__k?typeof h.type=="function"||M?h.__d!==void 0?(l=h.__d,h.__d=void 0):l=b.nextSibling:l=nr(t,b,l):l=or(h,l,t),typeof a.type=="function"&&(a.__d=l)));for(a.__e=m,s=at;s--;)z[s]!=null&&(typeof a.type=="function"&&z[s].__e!=null&&z[s].__e==a.__d&&(a.__d=z[s].__e.nextSibling),cr(z[s],z[s]))}function or(t,e,a){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e=typeof r.type=="function"?or(r,e,a):nr(a,r.__e,e));return e}function q(t,e){return e=e||[],t==null||typeof t=="boolean"||(Zt(t)?t.some(function(a){q(a,e)}):e.push(t)),e}function nr(t,e,a){return a==null||a.parentNode!==t?t.insertBefore(e,null):e==a&&e.parentNode!=null||t.insertBefore(e,a),e.nextSibling}function Os(t,e,a,r){var o=t.key,i=t.type,n=a-1,c=a+1,l=e[a];if(l===null||l&&o==l.key&&i===l.type)return a;if(r>(l!=null?1:0))for(;n>=0||c<e.length;){if(n>=0){if((l=e[n])&&o==l.key&&i===l.type)return n;n--}if(c<e.length){if((l=e[c])&&o==l.key&&i===l.type)return c;c++}}return-1}function Is(t,e,a,r,o){var i;for(i in a)i==="children"||i==="key"||i in e||Rt(t,i,null,a[i],r);for(i in e)o&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||a[i]===e[i]||Rt(t,i,e[i],a[i],r)}function ca(t,e,a){e[0]==="-"?t.setProperty(e,a??""):t[e]=a==null?"":typeof a!="number"||Es.test(e)?a:a+"px"}function Rt(t,e,a,r,o){var i;t:if(e==="style")if(typeof a=="string")t.style.cssText=a;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)a&&e in a||ca(t.style,e,"");if(a)for(e in a)r&&a[e]===r[e]||ca(t.style,e,a[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=a,a?r||t.addEventListener(e,i?da:la,i):t.removeEventListener(e,i?da:la,i);else if(e!=="dangerouslySetInnerHTML"){if(o)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]=a??"";break t}catch{}typeof a=="function"||(a==null||a===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,a))}}function la(t){return this.l[t.type+!1](w.event?w.event(t):t)}function da(t){return this.l[t.type+!0](w.event?w.event(t):t)}function Le(t,e,a,r,o,i,n,c,l,d){var u,s,f,g,h,b,m,v,S,N,M,j,z,at,rt,O=e.type;if(e.constructor!==void 0)return null;a.__h!=null&&(l=a.__h,c=e.__e=a.__e,e.__h=null,i=[c]),(u=w.__b)&&u(e);try{t:if(typeof O=="function"){if(v=e.props,S=(u=O.contextType)&&r[u.__c],N=u?S?S.props.value:u.__:r,a.__c?m=(s=e.__c=a.__c).__=s.__E:("prototype"in O&&O.prototype.render?e.__c=s=new O(v,N):(e.__c=s=new F(v,N),s.constructor=O,s.render=js),S&&S.sub(s),s.props=v,s.state||(s.state={}),s.context=N,s.__n=r,f=s.__d=!0,s.__h=[],s._sb=[]),s.__s==null&&(s.__s=s.state),O.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=U({},s.__s)),U(s.__s,O.getDerivedStateFromProps(v,s.__s))),g=s.props,h=s.state,s.__v=e,f)O.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(O.getDerivedStateFromProps==null&&v!==g&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(v,N),!s.__e&&(s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(v,s.__s,N)===!1||e.__v===a.__v)){for(e.__v!==a.__v&&(s.props=v,s.state=s.__s,s.__d=!1),e.__e=a.__e,e.__k=a.__k,e.__k.forEach(function(zt){zt&&(zt.__=e)}),M=0;M<s._sb.length;M++)s.__h.push(s._sb[M]);s._sb=[],s.__h.length&&n.push(s);break t}s.componentWillUpdate!=null&&s.componentWillUpdate(v,s.__s,N),s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(g,h,b)})}if(s.context=N,s.props=v,s.__P=t,s.__e=!1,j=w.__r,z=0,"prototype"in O&&O.prototype.render){for(s.state=s.__s,s.__d=!1,j&&j(e),u=s.render(s.props,s.state,s.context),at=0;at<s._sb.length;at++)s.__h.push(s._sb[at]);s._sb=[]}else do s.__d=!1,j&&j(e),u=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++z<25);s.state=s.__s,s.getChildContext!=null&&(r=U(U({},r),s.getChildContext())),f||s.getSnapshotBeforeUpdate==null||(b=s.getSnapshotBeforeUpdate(g,h)),ir(t,Zt(rt=u!=null&&u.type===L&&u.key==null?u.props.children:u)?rt:[rt],e,a,r,o,i,n,c,l,d),s.base=e.__e,e.__h=null,s.__h.length&&n.push(s),m&&(s.__E=s.__=null)}else i==null&&e.__v===a.__v?(e.__k=a.__k,e.__e=a.__e):e.__e=Ts(a.__e,e,a,r,o,i,n,l,d);(u=w.diffed)&&u(e)}catch(zt){e.__v=null,(l||i!=null)&&(e.__e=c,e.__h=!!l,i[i.indexOf(c)]=null),w.__e(zt,e,a)}}function sr(t,e,a){for(var r=0;r<a.length;r++)He(a[r],a[++r],a[++r]);w.__c&&w.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(i){i.call(o)})}catch(i){w.__e(i,o.__v)}})}function Ts(t,e,a,r,o,i,n,c,l){var d,u,s,f=a.props,g=e.props,h=e.type,b=0;if(h==="svg"&&(o=!0),i!=null){for(;b<i.length;b++)if((d=i[b])&&"setAttribute"in d==!!h&&(h?d.localName===h:d.nodeType===3)){t=d,i[b]=null;break}}if(t==null){if(h===null)return document.createTextNode(g);t=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,g.is&&g),i=null,c=!1}if(h===null)f===g||c&&t.data===g||(t.data=g);else{if(i=i&&It.call(t.childNodes),u=(f=a.props||dt).dangerouslySetInnerHTML,s=g.dangerouslySetInnerHTML,!c){if(i!=null)for(f={},b=0;b<t.attributes.length;b++)f[t.attributes[b].name]=t.attributes[b].value;(s||u)&&(s&&(u&&s.__html==u.__html||s.__html===t.innerHTML)||(t.innerHTML=s&&s.__html||""))}if(Is(t,g,f,o,c),s)e.__k=[];else if(ir(t,Zt(b=e.props.children)?b:[b],e,a,r,o&&h!=="foreignObject",i,n,i?i[0]:a.__k&&Ht(a,0),c,l),i!=null)for(b=i.length;b--;)i[b]!=null&&ar(i[b]);c||("value"in g&&(b=g.value)!==void 0&&(b!==t.value||h==="progress"&&!b||h==="option"&&b!==f.value)&&Rt(t,"value",b,f.value,!1),"checked"in g&&(b=g.checked)!==void 0&&b!==t.checked&&Rt(t,"checked",b,f.checked,!1))}return t}function He(t,e,a){try{typeof t=="function"?t(e):t.current=e}catch(r){w.__e(r,a)}}function cr(t,e,a){var r,o;if(w.unmount&&w.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||He(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){w.__e(i,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&cr(r[o],e,a||typeof t.type!="function");a||t.__e==null||ar(t.__e),t.__=t.__e=t.__d=void 0}function js(t,e,a){return this.constructor(t,a)}function ht(t,e,a){var r,o,i,n;w.__&&w.__(t,e),o=(r=typeof a=="function")?null:a&&a.__k||e.__k,i=[],n=[],Le(e,t=(!r&&a||e).__k=A(L,null,[t]),o||dt,dt,e.ownerSVGElement!==void 0,!r&&a?[a]:o?null:e.firstChild?It.call(e.childNodes):null,i,!r&&a?a:o?o.__e:e.firstChild,r,n),sr(i,t,n)}function lr(t,e){ht(t,e,lr)}function zs(t,e,a){var r,o,i,n,c=U({},t.props);for(i in t.type&&t.type.defaultProps&&(n=t.type.defaultProps),e)i=="key"?r=e[i]:i=="ref"?o=e[i]:c[i]=e[i]===void 0&&n!==void 0?n[i]:e[i];return arguments.length>2&&(c.children=arguments.length>3?It.call(arguments,2):a),St(t.type,c,r||t.key,o||t.ref,null)}function dr(t,e){var a={__c:e="__cC"+tr++,__:t,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&o.some(function(c){c.__e=!0,be(c)})},this.sub=function(n){o.push(n);var c=n.componentWillUnmount;n.componentWillUnmount=function(){o.splice(o.indexOf(n),1),c&&c.call(n)}}),r.children}};return a.Provider.__=a.Consumer.contextType=a}It=er.slice,w={__e:function(t,e,a,r){for(var o,i,n;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),n=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,r||{}),n=o.__d),n)return o.__E=o}catch(c){t=c}throw t}},Za=0,Ja=function(t){return t!=null&&t.constructor===void 0},F.prototype.setState=function(t,e){var a;a=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=U({},this.state),typeof t=="function"&&(t=t(U({},a),this.props)),t&&U(a,t),t!=null&&this.__v&&(e&&this._sb.push(e),be(this))},F.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),be(this))},F.prototype.render=L,nt=[],Qa=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ge=function(t,e){return t.__v.__b-e.__v.__b},Bt.__r=0,tr=0;var Jt=class extends Error{constructor(e){super(e[0].message);Ze(this,"issues");this.name="ValiError",this.issues=e}};function ur(t,e){return{...t,_parse(a,r){return t._parse(e(a),r)}}}function Tt(t){return{issues:t}}function I(t){return{output:t}}function Ds(t,e){return{reason:t==null?void 0:t.reason,validation:e.validation,origin:(t==null?void 0:t.origin)||"value",message:e.message,input:e.input,path:e.path,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly,skipPipe:t==null?void 0:t.skipPipe}}function As(t,e){return{reason:e,origin:t==null?void 0:t.origin,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly,skipPipe:t==null?void 0:t.skipPipe}}function Q(t,e,a,r){if(!e||!e.length||a!=null&&a.skipPipe)return I(t);let o,i,n=t;for(const c of e){const l=c._parse(n);if(l.issues){o=o||As(a,r);for(const d of l.issues){const u=Ds(o,d);i?i.push(u):i=[u]}if(o.abortEarly||o.abortPipeEarly)break}else n=l.output}return i?Tt(i):I(n)}function Z(t,e){return Array.isArray(t)?[void 0,t]:[t,e]}function hr(t){return typeof t=="function"?t():t}function tt(t,e,a,r){return Tt([{validation:t,message:hr(e),input:a,requirement:r}])}function pr(t,e,a){if(!t||typeof t=="object"&&!Array.isArray(t)){const[i,n]=Z(e,a);return[t,i,n]}const[r,o]=Z(t,e);return[void 0,r,o]}function K(t,e,a,r,o,i){return{issues:[{reason:e,validation:a,origin:(t==null?void 0:t.origin)||"value",message:hr(r),input:o,issues:i,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly,skipPipe:t==null?void 0:t.skipPipe}]}}function fr(t){return typeof t.default=="function"?t.default():t.default}function Ns(t){return{type:"any",async:!1,pipe:t,_parse(e,a){return Q(e,this.pipe,a,"any")}}}function wr(t,e,a){const[r="Invalid type",o]=Z(e,a);return{type:"array",async:!1,item:t,message:r,pipe:o,_parse(i,n){if(!Array.isArray(i))return K(n,"type","array",this.message,i);let c;const l=[];for(let d=0;d<i.length;d++){const u=i[d],s=this.item._parse(u,n);if(s.issues){const f={type:"array",input:i,key:d,value:u};for(const g of s.issues)g.path?g.path.unshift(f):g.path=[f],c==null||c.push(g);if(c||(c=s.issues),n!=null&&n.abortEarly)break}else l.push(s.output)}return c?Tt(c):Q(l,this.pipe,n,"array")}}}function Be(t,e){const[a="Invalid type",r]=Z(t,e);return{type:"boolean",async:!1,message:a,pipe:r,_parse(o,i){return typeof o!="boolean"?K(i,"type","boolean",this.message,o):Q(o,this.pipe,i,"boolean")}}}function ua(t,e="Invalid type"){return{type:"literal",async:!1,literal:t,message:e,_parse(a,r){return a!==this.literal?K(r,"type","literal",this.message,a):I(a)}}}function Ms(t,e){return{type:"nullable",async:!1,wrapped:t,default:e,_parse(a,r){if(a===null){const o=fr(this);if(o===void 0)return I(a);a=o}return this.wrapped._parse(a,r)}}}function ve(t,e){const[a="Invalid type",r]=Z(t,e);return{type:"number",async:!1,message:a,pipe:r,_parse(o,i){return typeof o!="number"||isNaN(o)?K(i,"type","number",this.message,o):Q(o,this.pipe,i,"number")}}}function V(t,e,a,r){const[o,i="Invalid type",n]=pr(e,a,r);let c;return{type:"object",async:!1,entries:t,rest:o,message:i,pipe:n,_parse(l,d){if(!l||typeof l!="object")return K(d,"type","object",this.message,l);c=c||Object.entries(this.entries);let u;const s={};for(const[f,g]of c){const h=l[f],b=g._parse(h,d);if(b.issues){const m={type:"object",input:l,key:f,value:h};for(const v of b.issues)v.path?v.path.unshift(m):v.path=[m],u==null||u.push(v);if(u||(u=b.issues),d!=null&&d.abortEarly)break}else(b.output!==void 0||f in l)&&(s[f]=b.output)}if(this.rest&&!(d!=null&&d.abortEarly&&u)){for(const f in l)if(!(f in this.entries)){const g=l[f],h=this.rest._parse(g,d);if(h.issues){const b={type:"object",input:l,key:f,value:g};for(const m of h.issues)m.path?m.path.unshift(b):m.path=[b],u==null||u.push(m);if(u||(u=h.issues),d!=null&&d.abortEarly)break}else s[f]=h.output}}return u?Tt(u):Q(s,this.pipe,d,"object")}}}function X(t,e){return{type:"optional",async:!1,wrapped:t,default:e,_parse(a,r){if(a===void 0){const o=fr(this);if(o===void 0)return I(a);a=o}return this.wrapped._parse(a,r)}}}function Fs(t,e="Invalid type"){return{type:"picklist",async:!1,options:t,message:e,_parse(a,r){return this.options.includes(a)?I(a):K(r,"type","picklist",this.message,a)}}}function R(t,e){const[a="Invalid type",r]=Z(t,e);return{type:"string",async:!1,message:a,pipe:r,_parse(o,i){return typeof o!="string"?K(i,"type","string",this.message,o):Q(o,this.pipe,i,"string")}}}function Ls(t,e,a,r){if(typeof e=="object"&&!Array.isArray(e)){const[n,c]=Z(a,r);return[t,e,n,c]}const[o,i]=Z(e,a);return[R(),t,o,i]}var Hs=["__proto__","prototype","constructor"];function gr(t,e,a,r){const[o,i,n="Invalid type",c]=Ls(t,e,a,r);return{type:"record",async:!1,key:o,value:i,message:n,pipe:c,_parse(l,d){if(!l||typeof l!="object")return K(d,"type","record",this.message,l);let u;const s={};for(const[f,g]of Object.entries(l))if(!Hs.includes(f)){let h;const b=this.key._parse(f,{origin:"key",abortEarly:d==null?void 0:d.abortEarly,abortPipeEarly:d==null?void 0:d.abortPipeEarly,skipPipe:d==null?void 0:d.skipPipe});if(b.issues){h={type:"record",input:l,key:f,value:g};for(const v of b.issues)v.path=[h],u==null||u.push(v);if(u||(u=b.issues),d!=null&&d.abortEarly)break}const m=this.value._parse(g,d);if(m.issues){h=h||{type:"record",input:l,key:f,value:g};for(const v of m.issues)v.path?v.path.unshift(h):v.path=[h],u==null||u.push(v);if(u||(u=m.issues),d!=null&&d.abortEarly)break}!b.issues&&!m.issues&&(s[b.output]=m.output)}return u?Tt(u):Q(s,this.pipe,d,"record")}}}function Bs(t,e="Invalid type"){return{type:"union",async:!1,options:t,message:e,_parse(a,r){let o,i;for(const n of this.options){const c=n._parse(a,r);if(c.issues)if(o)for(const l of c.issues)o.push(l);else o=c.issues;else{i=[c.output];break}}return i?I(i[0]):K(r,"type","union",this.message,a,o)}}}function _e(t,e,a){const r=t._parse(e,a);if(r.issues)throw new Jt(r.issues);return r.output}async function Rs(t,e,a){const r=await t._parse(e,a);if(r.issues)throw new Jt(r.issues);return r.output}function Us(t,e,a,r){const[o,i,n]=pr(e,a,r);return V(Object.entries(t.entries).reduce((c,[l,d])=>({...c,[l]:X(d)}),{}),o,i,n)}function Vs(t,e,a){const r=t._parse(e,a);return r.issues?{success:!1,error:new Jt(r.issues),issues:r.issues}:{success:!0,data:r.output,output:r.output}}function qs(t,e,a){return{...t,_parse(r,o){const i=t._parse(r,o);if(i.issues)return i;const n=e(i.output);return a&&!Array.isArray(a)?a._parse(n,o):Q(n,a,o,typeof n)}}}var Ks=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function Ws(t,e="Invalid input"){return{type:"custom",async:!1,message:e,requirement:t,_parse(a){return this.requirement(a)?I(a):tt(this.type,this.message,a,this.requirement)}}}function Gs(t="Invalid email"){return{type:"email",async:!1,message:t,requirement:Ks,_parse(e){return this.requirement.test(e)?I(e):tt(this.type,this.message,e,this.requirement)}}}function Ys(t,e="Invalid length"){return{type:"max_length",async:!1,message:e,requirement:t,_parse(a){return a.length>this.requirement?tt(this.type,this.message,a,this.requirement):I(a)}}}function Xs(t,e="Invalid value"){return{type:"max_value",async:!1,message:e,requirement:t,_parse(a){return a>this.requirement?tt(this.type,this.message,a,this.requirement):I(a)}}}function Zs(t,e="Invalid length"){return{type:"min_length",async:!1,message:e,requirement:t,_parse(a){return a.length<this.requirement?tt(this.type,this.message,a,this.requirement):I(a)}}}function Js(t,e="Invalid value"){return{type:"min_value",async:!1,message:e,requirement:t,_parse(a){return a<this.requirement?tt(this.type,this.message,a,this.requirement):I(a)}}}function Qs(t,e="Invalid regex"){return{type:"regex",async:!1,message:e,requirement:t,_parse(a){return this.requirement.test(a)?I(a):tt(this.type,this.message,a,this.requirement)}}}function tc(t="Invalid URL"){return{type:"url",async:!1,message:t,requirement(e){try{return new URL(e),!0}catch{return!1}},_parse(e){return this.requirement(e)?I(e):tt(this.type,this.message,e,this.requirement)}}}function br(t){var e,a,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(a=br(t[e]))&&(r&&(r+=" "),r+=a);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Qt(){for(var t,e,a=0,r="";a<arguments.length;)(t=arguments[a++])&&(e=br(t))&&(r&&(r+=" "),r+=e);return r}const ha=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,pa=Qt,te=(t,e)=>a=>{var r;if((e==null?void 0:e.variants)==null)return pa(t,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:o,defaultVariants:i}=e,n=Object.keys(o).map(d=>{const u=a==null?void 0:a[d],s=i==null?void 0:i[d];if(u===null)return null;const f=ha(u)||ha(s);return o[d][f]}),c=a&&Object.entries(a).reduce((d,u)=>{let[s,f]=u;return f===void 0||(d[s]=f),d},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:s,className:f,...g}=u;return Object.entries(g).every(h=>{let[b,m]=h;return Array.isArray(m)?m.includes({...i,...c}[b]):{...i,...c}[b]===m})?[...d,s,f]:d},[]);return pa(t,n,l,a==null?void 0:a.class,a==null?void 0:a.className)};var J,y,se,fa,pt=0,vr=[],Nt=[],wa=w.__b,ga=w.__r,ba=w.diffed,va=w.__c,_a=w.unmount;function vt(t,e){w.__h&&w.__h(y,t,pt||e),pt=0;var a=y.__H||(y.__H={__:[],__h:[]});return t>=a.__.length&&a.__.push({__V:Nt}),a.__[t]}function Re(t){return pt=1,_r(yr,t)}function _r(t,e,a){var r=vt(J++,2);if(r.t=t,!r.__c&&(r.__=[a?a(e):yr(void 0,e),function(c){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,c);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=y,!y.u)){var o=function(c,l,d){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(f){return f.__c});if(u.every(function(f){return!f.__N}))return!i||i.call(this,c,l,d);var s=!1;return u.forEach(function(f){if(f.__N){var g=f.__[0];f.__=f.__N,f.__N=void 0,g!==f.__[0]&&(s=!0)}}),!(!s&&r.__c.props===c)&&(!i||i.call(this,c,l,d))};y.u=!0;var i=y.shouldComponentUpdate,n=y.componentWillUpdate;y.componentWillUpdate=function(c,l,d){if(this.__e){var u=i;i=void 0,o(c,l,d),i=u}n&&n.call(this,c,l,d)},y.shouldComponentUpdate=o}return r.__N||r.__}function Ue(t,e){var a=vt(J++,3);!w.__s&&Ve(a.__H,e)&&(a.__=t,a.i=e,y.__H.__h.push(a))}function _t(t,e){var a=vt(J++,4);!w.__s&&Ve(a.__H,e)&&(a.__=t,a.i=e,y.__h.push(a))}function ee(t){return pt=5,lt(function(){return{current:t}},[])}function ec(t,e,a){pt=6,_t(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},a==null?a:a.concat(t))}function lt(t,e){var a=vt(J++,7);return Ve(a.__H,e)?(a.__V=t(),a.i=e,a.__h=t,a.__V):a.__}function ac(t,e){return pt=8,lt(function(){return t},e)}function mr(t){var e=y.context[t.__c],a=vt(J++,9);return a.c=t,e?(a.__==null&&(a.__=!0,e.sub(y)),e.props.value):t.__}function rc(t,e){w.useDebugValue&&w.useDebugValue(e?e(t):t)}function ic(){var t=vt(J++,11);if(!t.__){for(var e=y.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var a=e.__m||(e.__m=[0,0]);t.__="P"+a[0]+"-"+a[1]++}return t.__}function oc(){for(var t;t=vr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Mt),t.__H.__h.forEach(me),t.__H.__h=[]}catch(e){t.__H.__h=[],w.__e(e,t.__v)}}w.__b=function(t){y=null,wa&&wa(t)},w.__r=function(t){ga&&ga(t),J=0;var e=(y=t.__c).__H;e&&(se===y?(e.__h=[],y.__h=[],e.__.forEach(function(a){a.__N&&(a.__=a.__N),a.__V=Nt,a.__N=a.i=void 0})):(e.__h.forEach(Mt),e.__h.forEach(me),e.__h=[],J=0)),se=y},w.diffed=function(t){ba&&ba(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(vr.push(e)!==1&&fa===w.requestAnimationFrame||((fa=w.requestAnimationFrame)||nc)(oc)),e.__H.__.forEach(function(a){a.i&&(a.__H=a.i),a.__V!==Nt&&(a.__=a.__V),a.i=void 0,a.__V=Nt})),se=y=null},w.__c=function(t,e){e.some(function(a){try{a.__h.forEach(Mt),a.__h=a.__h.filter(function(r){return!r.__||me(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],w.__e(r,a.__v)}}),va&&va(t,e)},w.unmount=function(t){_a&&_a(t);var e,a=t.__c;a&&a.__H&&(a.__H.__.forEach(function(r){try{Mt(r)}catch(o){e=o}}),a.__H=void 0,e&&w.__e(e,a.__v))};var ma=typeof requestAnimationFrame=="function";function nc(t){var e,a=function(){clearTimeout(r),ma&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(a,100);ma&&(e=requestAnimationFrame(a))}function Mt(t){var e=y,a=t.__c;typeof a=="function"&&(t.__c=void 0,a()),y=e}function me(t){var e=y;t.__c=t.__(),y=e}function Ve(t,e){return!t||t.length!==e.length||e.some(function(a,r){return a!==t[r]})}function yr(t,e){return typeof e=="function"?e(t):e}function xr(t,e){for(var a in e)t[a]=e[a];return t}function ye(t,e){for(var a in t)if(a!=="__source"&&!(a 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 xe(t){this.props=t}function sc(t,e){function a(o){var i=this.props.ref,n=i==o.ref;return!n&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!n:ye(this.props,o)}function r(o){return this.shouldComponentUpdate=a,A(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(xe.prototype=new F).isPureReactComponent=!0,xe.prototype.shouldComponentUpdate=function(t,e){return ye(this.props,t)||ye(this.state,e)};var ya=w.__b;w.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ya&&ya(t)};var cc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function kr(t){function e(a){var r=xr({},a);return delete r.ref,t(r,a.ref||null)}return e.$$typeof=cc,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var xa=function(t,e){return t==null?null:q(q(t).map(e))},lc={map:xa,forEach:xa,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},dc=w.__e;w.__e=function(t,e,a,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=a.__e,e.__k=a.__k),o.__c(t,e)}dc(t,e,a,r)};var ka=w.unmount;function $r(t,e,a){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=xr({},t)).__c!=null&&(t.__c.__P===a&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return $r(r,e,a)})),t}function Sr(t,e,a){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Sr(r,e,a)}),t.__c&&t.__c.__P===e&&(t.__e&&a.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=a)),t}function Ct(){this.__u=0,this.t=null,this.__b=null}function Cr(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Er(t){var e,a,r;function o(i){if(e||(e=t()).then(function(n){a=n.default||n},function(n){r=n}),r)throw r;if(!a)throw e;return A(a,i)}return o.displayName="Lazy",o.__f=!0,o}function kt(){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),ka&&ka(t)},(Ct.prototype=new F).__c=function(t,e){var a=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(a);var o=Cr(r.__v),i=!1,n=function(){i||(i=!0,a.__R=null,o?o(c):c())};a.__R=n;var c=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Sr(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)},Ct.prototype.componentWillUnmount=function(){this.t=[]},Ct.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var a=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=$r(this.__b,a,r.__O=r.__P)}this.__b=null}var o=e.__a&&A(L,null,t.fallback);return o&&(o.__h=null),[A(L,null,e.__a?null:t.children),o]};var $a=function(t,e,a){if(++a[1]===a[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(a=t.u;a;){for(;a.length>3;)a.pop()();if(a[1]<a[0])break;t.u=a=a[2]}};function uc(t){return this.getChildContext=function(){return t.context},t.children}function hc(t){var e=this,a=t.i;e.componentWillUnmount=function(){ht(null,e.l),e.l=null,e.i=null},e.i&&e.i!==a&&e.componentWillUnmount(),t.__v?(e.l||(e.i=a,e.l={nodeType:1,parentNode:a,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),ht(A(uc,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function pc(t,e){var a=A(hc,{__v:t,i:e});return a.containerInfo=e,a}(kt.prototype=new F).__a=function(t){var e=this,a=Cr(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),$a(e,t,r)):o()};a?a(i):i()}},kt.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 a=e.length;a--;)this.o.set(e[a],this.u=[1,0,this.u]);return t.children},kt.prototype.componentDidUpdate=kt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,a){$a(t,a,e)})};var Pr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,fc=/^(?: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]/,wc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,gc=/[A-Z0-9]/g,bc=typeof document<"u",vc=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function _c(t,e,a){return e.__k==null&&(e.textContent=""),ht(t,e),typeof a=="function"&&a(),t?t.__c:null}function mc(t,e,a){return lr(t,e),typeof a=="function"&&a(),t?t.__c:null}F.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(F.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Sa=w.event;function yc(){}function xc(){return this.cancelBubble}function kc(){return this.defaultPrevented}w.event=function(t){return Sa&&(t=Sa(t)),t.persist=yc,t.isPropagationStopped=xc,t.isDefaultPrevented=kc,t.nativeEvent=t};var qe,$c={enumerable:!1,configurable:!0,get:function(){return this.class}},Ca=w.vnode;w.vnode=function(t){typeof t.type=="string"&&function(e){var a=e.props,r=e.type,o={};for(var i in a){var n=a[i];if(!(i==="value"&&"defaultValue"in a&&n==null||bc&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in a&&a.value==null?i="value":i==="download"&&n===!0?n="":c==="ondoubleclick"?i="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||vc(a.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":wc.test(i)?i=c:r.indexOf("-")===-1&&fc.test(i)?i=i.replace(gc,"-$&").toLowerCase():n===null&&(n=void 0):c=i="oninput",c==="oninput"&&o[i=c]&&(i="oninputCapture"),o[i]=n}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=q(a.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=q(a.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),a.class&&!a.className?(o.class=a.class,Object.defineProperty(o,"className",$c)):(a.className&&!a.class||a.class&&a.className)&&(o.class=o.className=a.className),e.props=o}(t),t.$$typeof=Pr,Ca&&Ca(t)};var Ea=w.__r;w.__r=function(t){Ea&&Ea(t),qe=t.__c};var Pa=w.diffed;w.diffed=function(t){Pa&&Pa(t);var e=t.props,a=t.__e;a!=null&&t.type==="textarea"&&"value"in e&&e.value!==a.value&&(a.value=e.value==null?"":e.value),qe=null};var Sc={ReactCurrentDispatcher:{current:{readContext:function(t){return qe.__n[t.__c].props.value}}}};function Cc(t){return A.bind(null,t)}function Or(t){return!!t&&t.$$typeof===Pr}function Ec(t){return Or(t)?zs.apply(null,arguments):t}function Pc(t){return!!t.__k&&(ht(null,t),!0)}function Oc(t){return t&&(t.base||t.nodeType===1&&t)||null}var Ic=function(t,e){return t(e)},Tc=function(t,e){return t(e)},jc=L;function Ir(t){t()}function zc(t){return t}function Dc(){return[!1,Ir]}var Ac=_t;function Nc(t,e){var a=e(),r=Re({h:{__:a,v:e}}),o=r[0].h,i=r[1];return _t(function(){o.__=a,o.v=e,ce(o.__,e())||i({h:o})},[t,a,e]),Ue(function(){return ce(o.__,o.v())||i({h:o}),t(function(){ce(o.__,o.v())||i({h:o})})},[t]),a}var Mc={useState:Re,useId:ic,useReducer:_r,useEffect:Ue,useLayoutEffect:_t,useInsertionEffect:Ac,useTransition:Dc,useDeferredValue:zc,useSyncExternalStore:Nc,startTransition:Ir,useRef:ee,useImperativeHandle:ec,useMemo:lt,useCallback:ac,useContext:mr,useDebugValue:rc,version:"17.0.2",Children:lc,render:_c,hydrate:mc,unmountComponentAtNode:Pc,createPortal:pc,createElement:A,createContext:dr,createFactory:Cc,cloneElement:Ec,createRef:Ps,Fragment:L,isValidElement:Or,findDOMNode:Oc,Component:F,PureComponent:xe,memo:sc,forwardRef:kr,flushSync:Tc,unstable_batchedUpdates:Ic,StrictMode:jc,Suspense:Ct,SuspenseList:kt,lazy:Er,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Sc};const T=Symbol.for("@ts-pattern/matcher"),Tr=Symbol.for("@ts-pattern/isVariadic"),Ut="@ts-pattern/anonymous-select-key",ke=t=>!!(t&&typeof t=="object"),Ft=t=>t&&!!t[T],C=(t,e,a)=>{if(Ft(t)){const r=t[T](),{matched:o,selections:i}=r.match(e);return o&&i&&Object.keys(i).forEach(n=>a(n,i[n])),o}if(ke(t)){if(!ke(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let r=[],o=[],i=[];for(const n of t.keys()){const c=t[n];Ft(c)&&c[Tr]?i.push(c):i.length?o.push(c):r.push(c)}if(i.length){if(i.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<r.length+o.length)return!1;const n=e.slice(0,r.length),c=o.length===0?[]:e.slice(-o.length),l=e.slice(r.length,o.length===0?1/0:-o.length);return r.every((d,u)=>C(d,n[u],a))&&o.every((d,u)=>C(d,c[u],a))&&(i.length===0||C(i[0],l,a))}return t.length===e.length&&t.every((n,c)=>C(n,e[c],a))}return Object.keys(t).every(r=>{const o=t[r];return(r in e||Ft(i=o)&&i[T]().matcherType==="optional")&&C(o,e[r],a);var i})}return Object.is(e,t)},D=t=>{var e,a,r;return ke(t)?Ft(t)?(e=(a=(r=t[T]()).getSelectionKeys)==null?void 0:a.call(r))!=null?e:[]:Array.isArray(t)?Pt(t,D):Pt(Object.values(t),D):[]},Pt=(t,e)=>t.reduce((a,r)=>a.concat(e(r)),[]);function Fc(...t){if(t.length===1){const[e]=t;return a=>C(e,a,()=>{})}if(t.length===2){const[e,a]=t;return C(e,a,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`)}function P(t){return Object.assign(t,{optional:()=>Ke(t),and:e=>x(t,e),or:e=>jr(t,e),select:e=>e===void 0?Ot(t):Ot(e,t)})}function $e(t){return Object.assign((e=>Object.assign(e,{*[Symbol.iterator](){yield Object.assign(e,{[Tr]:!0})}}))(t),{optional:()=>$e(Ke(t)),select:e=>$e(e===void 0?Ot(t):Ot(e,t))})}function Ke(t){return P({[T]:()=>({match:e=>{let a={};const r=(o,i)=>{a[o]=i};return e===void 0?(D(t).forEach(o=>r(o,void 0)),{matched:!0,selections:a}):{matched:C(t,e,r),selections:a}},getSelectionKeys:()=>D(t),matcherType:"optional"})})}const Lc=(t,e)=>{for(const a of t)if(!e(a))return!1;return!0},Hc=(t,e)=>{for(const[a,r]of t.entries())if(!e(r,a))return!1;return!0};function x(...t){return P({[T]:()=>({match:e=>{let a={};const r=(o,i)=>{a[o]=i};return{matched:t.every(o=>C(o,e,r)),selections:a}},getSelectionKeys:()=>Pt(t,D),matcherType:"and"})})}function jr(...t){return P({[T]:()=>({match:e=>{let a={};const r=(o,i)=>{a[o]=i};return Pt(t,D).forEach(o=>r(o,void 0)),{matched:t.some(o=>C(o,e,r)),selections:a}},getSelectionKeys:()=>Pt(t,D),matcherType:"or"})})}function _(t){return{[T]:()=>({match:e=>({matched:!!t(e)})})}}function Ot(...t){const e=typeof t[0]=="string"?t[0]:void 0,a=t.length===2?t[1]:typeof t[0]=="string"?void 0:t[0];return P({[T]:()=>({match:r=>{let o={[e??Ut]:r};return{matched:a===void 0||C(a,r,(i,n)=>{o[i]=n}),selections:o}},getSelectionKeys:()=>[e??Ut].concat(a===void 0?[]:D(a))})})}function H(t){return typeof t=="number"}function it(t){return typeof t=="string"}function W(t){return typeof t=="bigint"}const zr=P(_(function(t){return!0})),Bc=zr,ot=t=>Object.assign(P(t),{startsWith:e=>{return ot(x(t,(a=e,_(r=>it(r)&&r.startsWith(a)))));var a},endsWith:e=>{return ot(x(t,(a=e,_(r=>it(r)&&r.endsWith(a)))));var a},minLength:e=>ot(x(t,(a=>_(r=>it(r)&&r.length>=a))(e))),maxLength:e=>ot(x(t,(a=>_(r=>it(r)&&r.length<=a))(e))),includes:e=>{return ot(x(t,(a=e,_(r=>it(r)&&r.includes(a)))));var a},regex:e=>{return ot(x(t,(a=e,_(r=>it(r)&&!!r.match(a)))));var a}}),Rc=ot(_(it)),B=t=>Object.assign(P(t),{between:(e,a)=>B(x(t,((r,o)=>_(i=>H(i)&&r<=i&&o>=i))(e,a))),lt:e=>B(x(t,(a=>_(r=>H(r)&&r<a))(e))),gt:e=>B(x(t,(a=>_(r=>H(r)&&r>a))(e))),lte:e=>B(x(t,(a=>_(r=>H(r)&&r<=a))(e))),gte:e=>B(x(t,(a=>_(r=>H(r)&&r>=a))(e))),int:()=>B(x(t,_(e=>H(e)&&Number.isInteger(e)))),finite:()=>B(x(t,_(e=>H(e)&&Number.isFinite(e)))),positive:()=>B(x(t,_(e=>H(e)&&e>0))),negative:()=>B(x(t,_(e=>H(e)&&e<0)))}),Uc=B(_(H)),G=t=>Object.assign(P(t),{between:(e,a)=>G(x(t,((r,o)=>_(i=>W(i)&&r<=i&&o>=i))(e,a))),lt:e=>G(x(t,(a=>_(r=>W(r)&&r<a))(e))),gt:e=>G(x(t,(a=>_(r=>W(r)&&r>a))(e))),lte:e=>G(x(t,(a=>_(r=>W(r)&&r<=a))(e))),gte:e=>G(x(t,(a=>_(r=>W(r)&&r>=a))(e))),positive:()=>G(x(t,_(e=>W(e)&&e>0))),negative:()=>G(x(t,_(e=>W(e)&&e<0)))}),Vc=G(_(W)),qc=P(_(function(t){return typeof t=="boolean"})),Kc=P(_(function(t){return typeof t=="symbol"})),Wc=P(_(function(t){return t==null}));var st={__proto__:null,matcher:T,optional:Ke,array:function(...t){return $e({[T]:()=>({match:e=>{if(!Array.isArray(e))return{matched:!1};if(t.length===0)return{matched:!0};const a=t[0];let r={};if(e.length===0)return D(a).forEach(i=>{r[i]=[]}),{matched:!0,selections:r};const o=(i,n)=>{r[i]=(r[i]||[]).concat([n])};return{matched:e.every(i=>C(a,i,o)),selections:r}},getSelectionKeys:()=>t.length===0?[]:D(t[0])})})},set:function(...t){return P({[T]:()=>({match:e=>{if(!(e instanceof Set))return{matched:!1};let a={};if(e.size===0)return{matched:!0,selections:a};if(t.length===0)return{matched:!0};const r=(i,n)=>{a[i]=(a[i]||[]).concat([n])},o=t[0];return{matched:Lc(e,i=>C(o,i,r)),selections:a}},getSelectionKeys:()=>t.length===0?[]:D(t[0])})})},map:function(...t){return P({[T]:()=>({match:e=>{if(!(e instanceof Map))return{matched:!1};let a={};if(e.size===0)return{matched:!0,selections:a};const r=(c,l)=>{a[c]=(a[c]||[]).concat([l])};if(t.length===0)return{matched:!0};var o;if(t.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o=t[0])==null?void 0:o.toString()}`);const[i,n]=t;return{matched:Hc(e,(c,l)=>{const d=C(i,l,r),u=C(n,c,r);return d&&u}),selections:a}},getSelectionKeys:()=>t.length===0?[]:[...D(t[0]),...D(t[1])]})})},intersection:x,union:jr,not:function(t){return P({[T]:()=>({match:e=>({matched:!C(t,e,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:_,select:Ot,any:zr,_:Bc,string:Rc,number:Uc,bigint:Vc,boolean:qc,symbol:Kc,nullish:Wc,instanceOf:function(t){return P(_(function(e){return a=>a instanceof e}(t)))},shape:function(t){return P(_(Fc(t)))}};const Se={matched:!1,value:void 0};function ae(t){return new Vt(t,Se)}class Vt{constructor(e,a){this.input=void 0,this.state=void 0,this.input=e,this.state=a}with(...e){if(this.state.matched)return this;const a=e[e.length-1],r=[e[0]];let o;e.length===3&&typeof e[1]=="function"?o=e[1]:e.length>2&&r.push(...e.slice(1,e.length-1));let i=!1,n={};const c=(d,u)=>{i=!0,n[d]=u},l=!r.some(d=>C(d,this.input,c))||o&&!o(this.input)?Se:{matched:!0,value:a(i?Ut in n?n[Ut]:n:this.input,this.input)};return new Vt(this.input,l)}when(e,a){if(this.state.matched)return this;const r=!!e(this.input);return new Vt(this.input,r?{matched:!0,value:a(this.input,this.input)}:Se)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(){if(this.state.matched)return this.state.value;let e;try{e=JSON.stringify(this.input)}catch{e=this.input}throw new Error(`Pattern matching error: no pattern matches value ${e}`)}run(){return this.exhaustive()}returnType(){return this}}var Gc=["other","few","many","two","one","zero"],Oa=({terms:t,overrides:e,locale:a})=>{const r=new Intl.PluralRules(a);function o(i,n){const c=(e==null?void 0:e[i])??t[i];switch(typeof c){case"string":return c.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 “${i.toString()}”`);let l=r.select(n.count);if(!(l in c)){const d=Gc.find(u=>u in c);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);l=d}return c[l].replace(/{{(\w+)}}/g,(d,u)=>{var s;return((s=n==null?void 0:n[u])==null?void 0:s.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},Yc=0;function p(t,e,a,r,o,i){var n,c,l={};for(c in e)c=="ref"?n=e[c]:l[c]=e[c];var d={type:t,props:l,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Yc,__source:o,__self:i};if(typeof t=="function"&&(n=t.defaultProps))for(c in n)l[c]===void 0&&(l[c]=n[c]);return w.vnode&&w.vnode(d),d}var Ia=dr(null),Xc=t=>({TranslationProvider:({terms:e,children:a,locale:r})=>{const o=lt(()=>Oa({locale:r,terms:t,overrides:e}),[e,r]);return p(Ia.Provider,{value:{t:o,locale:r},children:a})},useTranslation:()=>{const e=mr(Ia);if(e===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:e.t,locale:e.locale}},createTFunction:({overrides:e,locale:a})=>Oa({terms:t,overrides:e,locale:a})});const{TranslationProvider:Zc,useTranslation:re,createTFunction:Jc}=Xc({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 We(t,e){if(!t)throw new Error(e)}function ie(){throw new Error("Cycle detected")}var Qc=Symbol.for("preact-signals");function Ge(){if(ut>1)ut--;else{for(var t,e=!1;Et!==void 0;){var a=Et;for(Et=void 0,Ce++;a!==void 0;){var r=a.o;if(a.o=void 0,a.f&=-3,!(8&a.f)&&Ar(a))try{a.c()}catch(o){e||(t=o,e=!0)}a=r}}if(Ce=0,ut--,e)throw t}}var k=void 0,Et=void 0,ut=0,Ce=0,qt=0;function Dr(t){if(k!==void 0){var e=t.n;if(e===void 0||e.t!==k)return e={i:0,S:t,p:k.s,n:void 0,t:k,e:void 0,x:void 0,r:e},k.s!==void 0&&(k.s.n=e),k.s=e,t.n=e,32&k.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=k.s,e.n=void 0,k.s.n=e,k.s=e),e}}function E(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}E.prototype.brand=Qc;E.prototype.h=function(){return!0};E.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)};E.prototype.U=function(t){if(this.t!==void 0){var e=t.e,a=t.x;e!==void 0&&(e.x=a,t.e=void 0),a!==void 0&&(a.e=e,t.x=void 0),t===this.t&&(this.t=a)}};E.prototype.subscribe=function(t){var e=this;return Xe(function(){var a=e.value,r=32&this.f;this.f&=-33;try{t(a)}finally{this.f|=r}})};E.prototype.valueOf=function(){return this.value};E.prototype.toString=function(){return this.value+""};E.prototype.toJSON=function(){return this.value};E.prototype.peek=function(){return this.v};Object.defineProperty(E.prototype,"value",{get:function(){var t=Dr(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(k instanceof et&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Ce>100&&ie(),this.v=t,this.i++,qt++,ut++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Ge()}}}});function ft(t){return new E(t)}function Ar(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 Nr(t){for(var e=t.s;e!==void 0;e=e.n){var a=e.S.n;if(a!==void 0&&(e.r=a),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Mr(t){for(var e=t.s,a=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)):a=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=a}function et(t){E.call(this,void 0),this.x=t,this.s=void 0,this.g=qt-1,this.f=4}(et.prototype=new E).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===qt))return!0;if(this.g=qt,this.f|=1,this.i>0&&!Ar(this))return this.f&=-2,!0;var t=k;try{Nr(this),k=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(a){this.v=a,this.f|=16,this.i++}return k=t,Mr(this),this.f&=-2,!0};et.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)}E.prototype.S.call(this,t)};et.prototype.U=function(t){if(this.t!==void 0&&(E.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)}};et.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};et.prototype.peek=function(){if(this.h()||ie(),16&this.f)throw this.v;return this.v};Object.defineProperty(et.prototype,"value",{get:function(){1&this.f&&ie();var t=Dr(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function tl(t){return new et(t)}function Fr(t){var e=t.u;if(t.u=void 0,typeof e=="function"){ut++;var a=k;k=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,Ye(t),r}finally{k=a,Ge()}}}function Ye(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Fr(t)}function el(t){if(k!==this)throw new Error("Out-of-order effect");Mr(this),k=t,this.f&=-2,8&this.f&&Ye(this),Ge()}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(){1&this.f&&ie(),this.f|=1,this.f&=-9,Fr(this),Nr(this),ut++;var t=k;return k=this,el.bind(this,t)};jt.prototype.N=function(){2&this.f||(this.f|=2,this.o=Et,Et=this)};jt.prototype.d=function(){this.f|=8,1&this.f||Ye(this)};function Xe(t){var e=new jt(t);try{e.c()}catch(a){throw e.d(),a}return e.d.bind(e)}var le;function mt(t,e){w[t]=e.bind(null,w[t]||function(){})}function Kt(t){le&&le(),le=t&&t.S()}function Lr(t){var e=this,a=t.data,r=rl(a);r.value=a;var o=lt(function(){for(var i=e.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return e.__$u.c=function(){var n;!Ja(o.peek())&&((n=e.base)==null?void 0:n.nodeType)===3?e.base.data=o.peek():(e.__$f|=1,e.setState({}))},tl(function(){var n=r.value.value;return n===0?0:n===!0?"":n||""})},[]);return o.value}Lr.displayName="_st";Object.defineProperties(E.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Lr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});mt("__b",function(t,e){if(typeof e.type=="string"){var a,r=e.props;for(var o in r)if(o!=="children"){var i=r[o];i instanceof E&&(a||(e.__np=a={}),a[o]=i,r[o]=i.peek())}}t(e)});mt("__r",function(t,e){Kt();var a,r=e.__c;r&&(r.__$f&=-2,(a=r.__$u)===void 0&&(r.__$u=a=function(o){var i;return Xe(function(){i=this}),i.c=function(){r.__$f|=1,r.setState({})},i}())),Kt(a),t(e)});mt("__e",function(t,e,a,r){Kt(),t(e,a,r)});mt("diffed",function(t,e){Kt();var a;if(typeof e.type=="string"&&(a=e.__e)){var r=e.__np,o=e.props;if(r){var i=a.U;if(i)for(var n in i){var c=i[n];c!==void 0&&!(n in r)&&(c.d(),i[n]=void 0)}else a.U=i={};for(var l in r){var d=i[l],u=r[l];d===void 0?(d=al(a,l,u,o),i[l]=d):d.o(u,o)}}}t(e)});function al(t,e,a,r){var o=e in t&&t.ownerSVGElement===void 0,i=ft(a);return{o:function(n,c){i.value=n,r=c},d:Xe(function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))})}}mt("unmount",function(t,e){if(typeof e.type=="string"){var a=e.__e;if(a){var r=a.U;if(r){a.U=void 0;for(var o in r){var i=r[o];i&&i.d()}}}}else{var n=e.__c;if(n){var c=n.__$u;c&&(n.__$u=void 0,c.d())}}t(e)});mt("__h",function(t,e,a,r){(r<3||r===9)&&(e.__$f|=2),t(e,a,r)});F.prototype.shouldComponentUpdate=function(t,e){var a=this.__$u;if(!(a&&a.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in e)return!0;for(var o in t)if(o!=="__source"&&t[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in t))return!0;return!1};function rl(t){return lt(function(){return ft(t)},[])}const Ee=(t,e)=>e.some(a=>t instanceof a);let Ta,ja;function il(){return Ta||(Ta=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ol(){return ja||(ja=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Pe=new WeakMap,de=new WeakMap,oe=new WeakMap;function nl(t){const e=new Promise((a,r)=>{const o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",n)},i=()=>{a(ct(t.result)),o()},n=()=>{r(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",n)});return oe.set(e,t),e}function sl(t){if(Pe.has(t))return;const e=new Promise((a,r)=>{const o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",n),t.removeEventListener("abort",n)},i=()=>{a(),o()},n=()=>{r(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",n),t.addEventListener("abort",n)});Pe.set(t,e)}let Oe={get(t,e,a){if(t instanceof IDBTransaction){if(e==="done")return Pe.get(t);if(e==="store")return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return ct(t[e])},set(t,e,a){return t[e]=a,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Hr(t){Oe=t(Oe)}function cl(t){return ol().includes(t)?function(...e){return t.apply(Ie(this),e),ct(this.request)}:function(...e){return ct(t.apply(Ie(this),e))}}function ll(t){return typeof t=="function"?cl(t):(t instanceof IDBTransaction&&sl(t),Ee(t,il())?new Proxy(t,Oe):t)}function ct(t){if(t instanceof IDBRequest)return nl(t);if(de.has(t))return de.get(t);const e=ll(t);return e!==t&&(de.set(t,e),oe.set(e,t)),e}const Ie=t=>oe.get(t);function dl(t,e,{blocked:a,upgrade:r,blocking:o,terminated:i}={}){const n=indexedDB.open(t,e),c=ct(n);return r&&n.addEventListener("upgradeneeded",l=>{r(ct(n.result),l.oldVersion,l.newVersion,ct(n.transaction),l)}),a&&n.addEventListener("blocked",l=>a(l.oldVersion,l.newVersion,l)),c.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",d=>o(d.oldVersion,d.newVersion,d))}).catch(()=>{}),c}const ul=["get","getKey","getAll","getAllKeys","count"],hl=["put","add","delete","clear"],ue=new Map;function za(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(ue.get(e))return ue.get(e);const a=e.replace(/FromIndex$/,""),r=e!==a,o=hl.includes(a);if(!(a in(r?IDBIndex:IDBObjectStore).prototype)||!(o||ul.includes(a)))return;const i=async function(n,...c){const l=this.transaction(n,o?"readwrite":"readonly");let d=l.store;return r&&(d=d.index(c.shift())),(await Promise.all([d[a](...c),o&&l.done]))[0]};return ue.set(e,i),i}Hr(t=>({...t,get:(e,a,r)=>za(e,a)||t.get(e,a,r),has:(e,a)=>!!za(e,a)||t.has(e,a)}));const pl=["continue","continuePrimaryKey","advance"],Da={},Te=new WeakMap,Br=new WeakMap,fl={get(t,e){if(!pl.includes(e))return t[e];let a=Da[e];return a||(a=Da[e]=function(...r){Te.set(this,Br.get(this)[e](...r))}),a}};async function*wl(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const a=new Proxy(e,fl);for(Br.set(a,e),oe.set(a,Ie(e));e;)yield a,e=await(Te.get(a)||e.continue()),Te.delete(a)}function Aa(t,e){return e===Symbol.asyncIterator&&Ee(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&Ee(t,[IDBIndex,IDBObjectStore])}Hr(t=>({...t,get(e,a,r){return Aa(e,a)?wl:t.get(e,a,r)},has(e,a){return Aa(e,a)||t.has(e,a)}}));const gl=t=>ae(t).with(st.number.lte(1e3),()=>`${Math.round(t)}KB`).with(st.number.lt(1e3*10),()=>`${(t/1e3).toFixed(1)}MB`).otherwise(()=>`${Math.round(t/1e3)}MB`),bl=t=>{const e=t.find(a=>a.isHead);if(!e)throw new Error("No head node found");return e},vl=t=>Object.entries(t).reduce((a,[r,o])=>(a[r]=o.value,a),{}),_l=t=>e=>e?e.type===t:!1;class ml extends Error{constructor(){super("Aborted")}}function yl(t,e=300){let a;return(...r)=>{clearTimeout(a),a=setTimeout(()=>{t.apply(this,r)},e)}}const xl=t=>typeof t=="string",kl=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():Math.random().toString(36).slice(2),Na=()=>({messages:[],submissions:{},currentInput:null,nodeHistory:[],isFinished:!1,sequence:0,flowSessionId:kl()}),$l=t=>ae(t).with({nativeEvent:{submitter:st.select(st.union(st.instanceOf(HTMLButtonElement),st.instanceOf(HTMLInputElement)))}},e=>e).otherwise(()=>{throw new Error("invalid submitter")}),Ma=typeof window>"u"?void 0:dl("inploi-chatbot",3,{upgrade(t){try{t.deleteObjectStore("state")}catch{}t.createObjectStore("state")}}),$t={getStateData:async(t,e)=>{var r;const a=Fa({...t,flowKeys:e});return(r=await Ma)==null?void 0:r.get("state",a)},setStateData:yl(async t=>{var a;const e=Fa(t);return(a=await Ma)==null?void 0:a.put("state",t.data,e)},1e3)},Lt=(t,e,a,r=0)=>{if(!e.nextId)return a(e.id,{stepsMade:r,remainingSteps:0}),{stepsMade:r,remainingSteps:0};const o=t.find(d=>d.id===e.nextId);if(o===void 0)return{stepsMade:r,remainingSteps:0};const i=e.type==="if-block"?e.branchId:void 0,n=t.find(d=>d.id===i),c=e.type.includes("question")?1:0;if(n){const d=c+Math.max(Lt(t,o,a,r+c).remainingSteps,Lt(t,n,a,r+c).remainingSteps);return a(e.id,{stepsMade:r,remainingSteps:d}),{stepsMade:r,remainingSteps:d}}const l=c+Lt(t,o,a,r+c).remainingSteps;return a(e.id,{stepsMade:r,remainingSteps:l}),{stepsMade:r,remainingSteps:l}},Sl=t=>{const e={},a=t.find(r=>r.isHead);return a&&Lt(t,a,(r,o)=>{e[r]=o}),e},Fa=t=>[...t.flowKeys,t.id,t.version].join("/"),Y=ft({state:"idle"}),xt=t=>{const{state:e,flow:a}=Y.value;if(e!=="loaded")return;We(a,"No flow to update");const r=t(a.data);a.data=r,Y.value={state:e,flow:a},$t.setStateData(a)},$={current$:Y,viewState$:ft("closed"),inputHeight$:ft(53),startFlow:async({flow:t,context:e={},flowKeys:a,title:r,analytics:o,job:i,locationOrigin:n})=>{const l={data:await $t.getStateData(t,a)??Na(),startedAt:new Date,nodeIdToProgress:Sl(t.nodes),flowKeys:a,id:t.id,version:t.version,nodes:t.nodes,build:t.build,context:e,title:r,analytics:o,job:i,locationOrigin:n};Y.value={state:"loaded",flow:l},$t.setStateData(l)},cancelCurrentFlow:()=>{Y.value={state:"idle"},$.viewState$.value="closed"},markAsFinished:()=>xt(t=>({...t,isFinished:!0})),setCurrentNodeId:t=>xt(e=>(e.nodeHistory.push(t),e)),restart:()=>{const{state:t,flow:e}=Y.value;if(t!=="loaded")throw new Error("Flow cannot be restarted: not in valid state");const a=Na();Y.value={state:t,flow:{...e,data:a,startedAt:new Date}},$t.setStateData(e)},addMessage:(t,e)=>{const a={...t,groupId:e};return xt(r=>(r.messages.push(a),r))},removeMessagesSentByNodeIds:t=>{const{state:e,flow:a}=Y.value;We(e==="loaded","Application not loaded");const r=a.data.messages.filter(o=>!o.groupId||!t.includes(o.groupId));a.data.messages=r,$t.setStateData(a)},setSubmission:(t,e)=>xt(a=>(e===null?delete a.submissions[t]:a.submissions[t]=e,a)),setInput:t=>xt(e=>({...e,currentInput:t??null}))},Cl=({message:t})=>{const{t:e}=re();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})]})]})},Rr=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"})})})]}),La=()=>p("div",{class:"flex flex-grow flex-col items-center justify-center",children:p(Rr,{class:"text-neutral-6 h-8 w-8"})}),El=t=>{const a=t/100,r=1.3;return t<0?"0%":t>100?"100%":`${Math.round((1-(1-.1)*Math.pow(1-a,r))*100)}%`},Pl=te("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"}}),Wt=({class:t,children:e,variant:a,...r})=>p("div",{class:"flex flex-1 items-center justify-end px-1",children:p("button",{class:Qt(Pl({variant:a}),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})})}),Ol=()=>{if($.current$.value.state!=="loaded")return null;const t=$.current$.value.flow.nodeIdToProgress,e=$.current$.value.flow.data.nodeHistory.at(-1);if(e===void 0)return null;const a=t[e];if(a===void 0)return null;const r=100*(a.stepsMade/(a.remainingSteps+a.stepsMade));return p("div",{class:"bg-accent-3",children:p("div",{style:{width:El(r)},class:"bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"})})},Il=({children:t,params:e})=>{const{t:a}=re(),r=$.viewState$;return p(L,{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:je,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:Qt({hidden:$.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,$.current$.value.state==="loaded"&&p(Wt,{"aria-label":"Restart",onClick:()=>{$.restart()},children:[p("path",{d:"M12 8.5C12 9.29113 11.7654 10.0645 11.3259 10.7223C10.8864 11.3801 10.2616 11.8928 9.53073 12.1955C8.79983 12.4983 7.99556 12.5775 7.21964 12.4231C6.44371 12.2688 5.73098 11.8878 5.17157 11.3284C4.61216 10.769 4.2312 10.0563 4.07686 9.28036C3.92252 8.50444 4.00173 7.70017 4.30448 6.96927C4.60723 6.23836 5.11992 5.61365 5.77772 5.17412C6.43552 4.7346 7.20887 4.5 8 4.5H9"}),p("path",{d:"M8 7L10 4.5L8 2.5"})]},"restart"),p(Wt,{class:"view-switch",onTouchStart:je,"aria-label":a("minimize"),onClick:()=>r.value="minimised",children:p("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"minmax")]})]}),p(Ol,{})]})})};function je(){}const Tl=Er(()=>Promise.resolve().then(()=>require("./chatbot-body-b911ba6f.cjs")).then(t=>t.ChatbotBody)),Ur=te("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"}}}),Vr=te("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"}}}),jl=({open:t,...e})=>{const a=ee(null);return _t(()=>{const r=a.current;r&&(t?r.showModal():r.close())},[t]),p("dialog",{ref:a,...e})},zl=({logger:t,apiClient:e,analytics:a,params:r})=>{const{state:o,flow:i,error:n}=$.current$.value,c=$.viewState$.value,l=o!=="idle"&&c==="maximised",d=ee(null);return p(Zc,{terms:r.terms,locale:void 0,children:[p(jl,{open:l,onClose:()=>$.viewState$.value="minimised",children:p("div",{ref:d,"aria-modal":"true",role:"dialog","aria-labelledby":"chatbot-status-bar",class:Ur({view:"maximised"}),children:p("div",{class:Vr({view:"maximised"}),children:[p(Il,{params:r,children:i==null?void 0:i.title}),ae({state:o,view:c}).with({state:"idle"},()=>null).with({state:"loading"},()=>p(La,{},"loading")).with({state:"loaded"},()=>p(Ct,{fallback:p(La,{},"loading"),children:p(Tl,{analytics:a,apiClient:e,logger:t})})).with({state:"error"},()=>p(Cl,{message:n})).exhaustive()]})})}),c==="minimised"?p(Dl,{flow:i}):null]})},Dl=({flow:t})=>{const{t:e}=re();return p("div",{class:Ur({view:"minimised",class:"z-100 isolate"}),children:p("div",{class:Vr({view:"minimised"}),children:[p("button",{onClick:()=>{$.viewState$.value="maximised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",onTouchStart:je,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(Wt,{"aria-label":e("close_application"),onClick:$.cancelCurrentFlow,variant:"white",children:p("path",{d:"M12 12L4 4M12 4L4 12"})},"close")})]})})},qr=V({id:ur(R(),String),version:ve(),build:ve(),nodes:wr(Ns()),context_schema:X(Ms(gr(R(),V({required:Be(),type:Bs([ua("string"),ua("number")])}))))}),Al=V({flow:qr}),Nl=V({company:V({name:R()}),flow:qr,job:V({id:ur(R(),String),title:R()}),user:X(V({city:X(R()),country:X(R()),isEU:X(Be()),continent:X(R())}))}),Ml=`[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-moz-user-select:none;-webkit-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]{--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] *,[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: }[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: }[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-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] .h-1{height:.25rem}[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{width:.25rem}[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-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{-moz-user-select:none;-webkit-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-moz-user-select:text;-webkit-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{-moz-appearance:none;-webkit-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] .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] .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{padding-left:0;padding-right:0}[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-2\\.5{padding-left:.625rem;padding-right:.625rem}[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{padding-top:0;padding-bottom:0}[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] .py-\\[6px\\]{padding-top:6px;padding-bottom:6px}[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{padding-left:.25rem}[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{padding-right:.5rem}[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{padding-top:.5rem}[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))}[data-widget=inploi-chatbot] .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity))}[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))}[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-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))}[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] .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-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))}[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-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
|
+
`,Kr="inploi-chatbot",Wr=`[data-widget='${Kr}']`,Fl=()=>({getOrCreateChatbotElement:()=>{const t=document.querySelector(Wr);if(t)return document.body.appendChild(t),t;const e=document.createElement("div");return document.body.appendChild(e),e.dataset.widget=Kr,e}});var Ll=["1","2","3","4","5","6","7","8","9","10","11","12"],Hl={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]}},Bl=(t,e=1,a)=>r=>{const[o,i]=Hl[a][r];return"oklch("+o+"% "+i*e+" "+t+")"},he=t=>{const e=Bl(t.hue,t.chroma,t.mode);return Object.fromEntries(Ll.map(a=>[t.prefix+a,t.transform(e(a))]))},pe=t=>t,Rl=t=>{const e=Object.keys(t).flatMap(a=>{const r=t[a];return typeof r=="object"&&r!==null?Object.keys(r).map(o=>{const i=r[o];return[`${String(a)}.${o}`,i]}):[[a,r]]});return Object.fromEntries(e)},At=t=>!!t&&typeof t=="object"&&!Array.isArray(t),ze=(t,...e)=>{if(!e.length)return t;const a=e.shift();if(At(t)&&At(a))for(const r in a){const o=a[r];if(At(o)){t[r]||Object.assign(t,{[r]:{}});const i=t[r];At(i)&&ze(i,o)}else Object.assign(t,{[r]:a[r]})}return ze(t,...e)},Ul=t=>{function e(a,r){const o=[t.prefix,r.toString().replace(/\./g,"-")].join("");return a==="declaration"?`--${o}`:`var(--${o})`}return e},Vl=()=>({core:t=>({semantic:e=>({component:a=>({from:r=>{const{theme:o,getToken:i}=r,n=f=>i("reference",f.toString()),c=t({theme:o}),l=e({theme:o,core:n,raw:{core:c}}),d=a({theme:o,core:n,semantic:n,raw:{core:c,semantic:l}}),u=Rl(ze(c,l,d)),s=([f,g],h)=>{const b=[h,f].filter(Boolean).join(".");return typeof g=="object"?Object.entries(g).flatMap(m=>s(m,b)):[[r.getToken("declaration",b),g]]};return{values:u,declarations:Object.fromEntries(Object.entries(u).flatMap(f=>s(f))),ref:f=>i("reference",f.toString())}}})})})});const[fe,we,Ha]=["oklch(0% 0 0)","oklch(100% 0 0)","transparent"],ql=Vl().core(({theme:t})=>({color:{black:fe,white:we,lowest:t.mode==="light"?we:fe,highest:t.mode==="light"?fe:we,...he({prefix:"a-",hue:t.hue,chroma:t.chroma,mode:t.mode,transform:pe}),...he({prefix:"n-",hue:t.hue,chroma:.05,mode:t.mode,transform:pe}),...he({prefix:"e-",hue:20,chroma:t.chroma,mode:t.mode,transform:pe})},typography:{}})).semantic(({core:t,raw:e,theme:a})=>{const r=(o,i)=>e.core.color[o].replace(")",` / ${i})`);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",a.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:Ha,"bg-hover":r("n-10",.2),"bg-active":r("n-10",.3)}}}).component(({raw:t,theme:e,semantic:a,core:r})=>{const o=(i,n)=>t.core.color[i].replace(")",` / ${n})`);return{app:{bg:r(e.mode==="dark"?"color.n-1":"color.n-2")},overlay:{bg:o("black",.4)},bubble:{"weak-bg":r(e.mode==="dark"?"color.n-3":"color.lowest"),"weak-outline":a("color.divider"),"strong-shadow":o("a-9",.05)},"status-bar":{bg:o("n-2",.8),"bg-button":Ha,"bg-button-hover":o("n-10",.4),"bg-button-active":o("n-10",.5)},"submit-button":{"bg-active":r(e.mode==="dark"?"color.a-8":"color.a-11")}}}),Kl=Ul({prefix:"i-"}),Wl=t=>{const e=ql.from({theme:t,getToken:Kl}),a=Object.entries(e.declarations).map(([r,o])=>`${r}: ${o};`);return`${Wr} {
|
|
3
|
+
${a.concat(a).join(`
|
|
4
|
+
`)}
|
|
5
|
+
}`},Ba=({context:t,schema:e,logger:a})=>{if(e)for(const r in e){const o=e[r];if(!o)continue;const i=Xa(t,r,null);if(o.required&&i===null){const n=`Configuration error in context: ${r} is required`;throw a.error(n),new Error(n)}switch(o.type){case"number":if(typeof i!="number")throw new Error(`Configuration error in context: ${r} is not a number`);break;case"string":if(typeof i!="string")throw new Error(`Configuration error in context: ${r} is not a string`);break;default:o.type}}},Gl=({_internal_domManager:t=Fl(),theme:e,terms:a,feedback:r})=>Xr.createPlugin(({apiClient:o,logger:i,analytics:n})=>{let c=!1;const l=Jc({locale:void 0,overrides:a??{}}),d=()=>{var f;if(typeof window>"u")return;const u=[A("style",{id:"inploi-chatbot-styles"},Ml),A("style",{id:"inploi-chatbot-theme"},Wl(e))],s=t.getOrCreateChatbotElement();if(ht(A(L,{},[u,A(zl,{apiClient:o,logger:i,analytics:n,params:{theme:e,terms:a,feedback:r}})]),s),r){const g=s.querySelector("dialog");if(!g)throw new Error("Couldn't find feedback host");if(r.plugin instanceof Promise)r.plugin.then(({feedbackPlugin:h})=>{var m;const b=h()({apiClient:o,logger:i,analytics:n});Ra({instance:b,theme:e,terms:((m=r.params)==null?void 0:m.terms)??{},host:g})});else{const h=r.plugin({apiClient:o,logger:i,analytics:n});Ra({instance:h,theme:e,terms:((f=r.params)==null?void 0:f.terms)??{},host:g})}}c=!0};return{prepare:async()=>{if(!(typeof window>"u"))try{if(c)return;d(),i.info("Chatbot plugin prepared")}catch(u){i.error("Error preparing chatbot plugin",u)}},fetchFlowByJobId:async(u,s)=>{const f=new URLSearchParams({id_type:(s==null?void 0:s.idType)==="inploi"?"internal":"external"});return o.fetch([`/flow/job/${u}`,f.toString()].filter(Boolean).join("?")).then(g=>{const h=_e(Nl,g);return{flow:h.flow,title:h.job.title,flowKeys:[h.job.id,...(s==null?void 0:s.flowKeys)??[]],job:{id:h.job.id,id_type:"external"},...s,context:{user:h.user,...s==null?void 0:s.context}}})},fetchFlowById:async(u,s)=>o.fetch(`/flow/id/${u}`).then(f=>{var h;const g=_e(Al,f);return{flow:g.flow,title:"Chatbot",flowKeys:(s==null?void 0:s.flowKeys)??[],...s,analytics:{customProperties:{flow_id:g.flow.id,flow_version:g.flow.version,...(h=s==null?void 0:s.analytics)==null?void 0:h.customProperties}}}}),open:async u=>{if(!(typeof window>"u"))try{$.cancelCurrentFlow(),$.viewState$.value="maximised",c||d(),u instanceof Promise?($.current$.value={state:"loading"},u.then(async s=>{Ba({context:s.context||{},schema:s.flow.context_schema,logger:i}),$.startFlow(s)}).catch(s=>{const f=s instanceof Error?s.message:l("unknown_error");$.current$.value={state:"error",error:f}})):(Ba({context:u.context||{},schema:u.flow.context_schema,logger:i}),$.startFlow(u))}catch(s){i.error("Error starting flow",s)}},close:async()=>{typeof window>"u"||($.cancelCurrentFlow(),i.info("Closed flow from an external source"))}}});function Ra({instance:t,terms:e,theme:a,host:r}){t.render({key:"chatbot-header",size:"sm",theme:{accent:{chroma:a.chroma??1,hue:a.hue},positive:{hue:180,chroma:1},negative:{hue:33,chroma:1},mode:a.mode,corners:"rounded",highlights:"stroke"},terms:e,host:r})}exports.AbortedError=ml;exports.Cn=Mc;exports.F=lt;exports.LoadingIndicator=Rr;exports.N=ae;exports.SvgIconButton=Wt;exports.ValiError=Jt;exports._=st;exports._$1=ee;exports.a=ft;exports.array=wr;exports.boolean=Be;exports.chatbotPlugin=Gl;exports.clsx=Qt;exports.custom=Ws;exports.cva=te;exports.email=Gs;exports.get=Xa;exports.getDefaultExportFromCjs=Ua;exports.getFlowSubmissionsPayload=vl;exports.getFormSubmitter=$l;exports.getHeadOrThrow=bl;exports.h=Re;exports.invariant=We;exports.isString=xl;exports.isSubmissionOfType=_l;exports.k=L;exports.k$1=kr;exports.kbToReadableSize=gl;exports.maxLength=Ys;exports.maxValue=Xs;exports.minLength=Zs;exports.minValue=Js;exports.number=ve;exports.o=p;exports.object=V;exports.optional=X;exports.p=Ue;exports.parse=_e;exports.parseAsync=Rs;exports.partial=Us;exports.picklist=Fs;exports.record=gr;exports.regex=Qs;exports.safeParse=Vs;exports.store=$;exports.string=R;exports.transform=qs;exports.url=tc;exports.useTranslation=re;exports.y=_t;
|