@inploi/plugin-chatbot 2.1.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cdn/index.js +1 -1
  2. package/package.json +1 -1
package/cdn/index.js CHANGED
@@ -46,7 +46,7 @@ var v1=Object.defineProperty;var g1=(Pt,Pe,V)=>Pe in Pt?v1(Pt,Pe,{enumerable:!0,
46
46
  top: ${a}px !important;
47
47
  left: ${c}px !important;
48
48
  }
49
- `),()=>{document.head.removeChild(u)}},[t]),N(nv,{isPresent:t,childRef:r,sizeRef:o},ft(e,{ref:r}))}const Ii=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Uc(ov),c=gr(),u=de(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:d=>{a.set(d,!0);for(const l of a.values())if(!l)return;r&&r()},register:d=>(a.set(d,!1),()=>a.delete(d))}),i?void 0:[n]);return de(()=>{a.forEach((d,l)=>a.set(l,!1))},[n]),G(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=N(rv,{isPresent:n},e)),N(ii.Provider,{value:u},e)};function ov(){return new Map}function iv(e){return G(()=>()=>e(),[])}const Bt=e=>e.key||"";function sv(e,t){e.forEach(n=>{const r=Bt(n);t.set(r,n)})}function av(e){const t=[];return He.forEach(e,n=>{dt(n)&&t.push(n)}),t}const Yr=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{Xe(!o,"Replace exitBeforeEnter with mode='wait'");const a=we(Cc).forceRender||tv()[0],c=tu(),u=av(e);let d=u;const l=U(new Map).current,f=U(d),h=U(new Map).current,p=U(!0);if(si(()=>{p.current=!1,sv(u,h),f.current=d}),iv(()=>{p.current=!0,h.clear(),l.clear()}),p.current)return N(ue,null,d.map(g=>N(Ii,{key:Bt(g),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},g)));d=[...d];const m=f.current.map(Bt),b=u.map(Bt),_=m.length;for(let g=0;g<_;g++){const w=m[g];b.indexOf(w)===-1&&!l.has(w)&&l.set(w,void 0)}return s==="wait"&&l.size&&(d=[]),l.forEach((g,w)=>{if(b.indexOf(w)!==-1)return;const M=h.get(w);if(!M)return;const S=m.indexOf(w);let F=g;if(!F){const L=()=>{l.delete(w);const C=Array.from(h.keys()).filter(E=>!b.includes(E));if(C.forEach(E=>h.delete(E)),f.current=u.filter(E=>{const W=Bt(E);return W===w||C.includes(W)}),!l.size){if(c.current===!1)return;a(),r&&r()}};F=N(Ii,{key:Bt(M),isPresent:!1,onExitComplete:L,custom:t,presenceAffectsLayout:i,mode:s},M),l.set(w,F)}d.splice(S,0,F)}),d=d.map(g=>{const w=g.key;return l.has(w)?g:N(Ii,{key:Bt(g),isPresent:!0,presenceAffectsLayout:i,mode:s},g)}),process.env.NODE_ENV!=="production"&&s==="wait"&&d.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),N(ue,null,l.size?d:d.map(g=>ft(g)))};function cv({children:e,features:t,strict:n=!1}){const[,r]=ae(!zi(t)),o=U(void 0);if(!zi(t)){const{renderer:i,...s}=t;o.current=i,ui(s)}return G(()=>{zi(t)&&t().then(({renderer:i,...s})=>{ui(s),o.current=i,r(!0)})},[]),N(ai.Provider,{value:{renderer:o.current,strict:n}},e)}function zi(e){return typeof e=="function"}const lv={renderer:ev,...Am,...Gp},Ce=Symbol.for("@ts-pattern/matcher"),nu=Symbol.for("@ts-pattern/isVariadic"),Gr="@ts-pattern/anonymous-select-key",Bi=e=>!!(e&&typeof e=="object"),Zr=e=>e&&!!e[Ce],ve=(e,t,n)=>{if(Zr(e)){const r=e[Ce](),{matched:o,selections:i}=r.match(t);return o&&i&&Object.keys(i).forEach(s=>n(s,i[s])),o}if(Bi(e)){if(!Bi(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],o=[],i=[];for(const s of e.keys()){const a=e[s];Zr(a)&&a[nu]?i.push(a):i.length?o.push(a):r.push(a)}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(t.length<r.length+o.length)return!1;const s=t.slice(0,r.length),a=o.length===0?[]:t.slice(-o.length),c=t.slice(r.length,o.length===0?1/0:-o.length);return r.every((u,d)=>ve(u,s[d],n))&&o.every((u,d)=>ve(u,a[d],n))&&(i.length===0||ve(i[0],c,n))}return e.length===t.length&&e.every((s,a)=>ve(s,t[a],n))}return Object.keys(e).every(r=>{const o=e[r];return(r in t||Zr(i=o)&&i[Ce]().matcherType==="optional")&&ve(o,t[r],n);var i})}return Object.is(t,e)},Oe=e=>{var t,n,r;return Bi(e)?Zr(e)?(t=(n=(r=e[Ce]()).getSelectionKeys)==null?void 0:n.call(r))!=null?t:[]:Array.isArray(e)?Un(e,Oe):Un(Object.values(e),Oe):[]},Un=(e,t)=>e.reduce((n,r)=>n.concat(t(r)),[]);function uv(...e){if(e.length===1){const[t]=e;return n=>ve(t,n,()=>{})}if(e.length===2){const[t,n]=e;return ve(t,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function $e(e){return Object.assign(e,{optional:()=>Hi(e),and:t=>te(e,t),or:t=>ru(e,t),select:t=>t===void 0?Xn(e):Xn(t,e)})}function ji(e){return Object.assign((t=>Object.assign(t,{*[Symbol.iterator](){yield Object.assign(t,{[nu]:!0})}}))(e),{optional:()=>ji(Hi(e)),select:t=>ji(t===void 0?Xn(e):Xn(t,e))})}function Hi(e){return $e({[Ce]:()=>({match:t=>{let n={};const r=(o,i)=>{n[o]=i};return t===void 0?(Oe(e).forEach(o=>r(o,void 0)),{matched:!0,selections:n}):{matched:ve(e,t,r),selections:n}},getSelectionKeys:()=>Oe(e),matcherType:"optional"})})}const dv=(e,t)=>{for(const n of e)if(!t(n))return!1;return!0},fv=(e,t)=>{for(const[n,r]of e.entries())if(!t(r,n))return!1;return!0};function te(...e){return $e({[Ce]:()=>({match:t=>{let n={};const r=(o,i)=>{n[o]=i};return{matched:e.every(o=>ve(o,t,r)),selections:n}},getSelectionKeys:()=>Un(e,Oe),matcherType:"and"})})}function ru(...e){return $e({[Ce]:()=>({match:t=>{let n={};const r=(o,i)=>{n[o]=i};return Un(e,Oe).forEach(o=>r(o,void 0)),{matched:e.some(o=>ve(o,t,r)),selections:n}},getSelectionKeys:()=>Un(e,Oe),matcherType:"or"})})}function q(e){return{[Ce]:()=>({match:t=>({matched:!!e(t)})})}}function Xn(...e){const t=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return $e({[Ce]:()=>({match:r=>{let o={[t??Gr]:r};return{matched:n===void 0||ve(n,r,(i,s)=>{o[i]=s}),selections:o}},getSelectionKeys:()=>[t??Gr].concat(n===void 0?[]:Oe(n))})})}function We(e){return typeof e=="number"}function jt(e){return typeof e=="string"}function vt(e){return typeof e=="bigint"}const ou=$e(q(function(e){return!0})),hv=ou,Ht=e=>Object.assign($e(e),{startsWith:t=>{return Ht(te(e,(n=t,q(r=>jt(r)&&r.startsWith(n)))));var n},endsWith:t=>{return Ht(te(e,(n=t,q(r=>jt(r)&&r.endsWith(n)))));var n},minLength:t=>Ht(te(e,(n=>q(r=>jt(r)&&r.length>=n))(t))),maxLength:t=>Ht(te(e,(n=>q(r=>jt(r)&&r.length<=n))(t))),includes:t=>{return Ht(te(e,(n=t,q(r=>jt(r)&&r.includes(n)))));var n},regex:t=>{return Ht(te(e,(n=t,q(r=>jt(r)&&!!r.match(n)))));var n}}),pv=Ht(q(jt)),qe=e=>Object.assign($e(e),{between:(t,n)=>qe(te(e,((r,o)=>q(i=>We(i)&&r<=i&&o>=i))(t,n))),lt:t=>qe(te(e,(n=>q(r=>We(r)&&r<n))(t))),gt:t=>qe(te(e,(n=>q(r=>We(r)&&r>n))(t))),lte:t=>qe(te(e,(n=>q(r=>We(r)&&r<=n))(t))),gte:t=>qe(te(e,(n=>q(r=>We(r)&&r>=n))(t))),int:()=>qe(te(e,q(t=>We(t)&&Number.isInteger(t)))),finite:()=>qe(te(e,q(t=>We(t)&&Number.isFinite(t)))),positive:()=>qe(te(e,q(t=>We(t)&&t>0))),negative:()=>qe(te(e,q(t=>We(t)&&t<0)))}),mv=qe(q(We)),gt=e=>Object.assign($e(e),{between:(t,n)=>gt(te(e,((r,o)=>q(i=>vt(i)&&r<=i&&o>=i))(t,n))),lt:t=>gt(te(e,(n=>q(r=>vt(r)&&r<n))(t))),gt:t=>gt(te(e,(n=>q(r=>vt(r)&&r>n))(t))),lte:t=>gt(te(e,(n=>q(r=>vt(r)&&r<=n))(t))),gte:t=>gt(te(e,(n=>q(r=>vt(r)&&r>=n))(t))),positive:()=>gt(te(e,q(t=>vt(t)&&t>0))),negative:()=>gt(te(e,q(t=>vt(t)&&t<0)))}),vv=gt(q(vt)),gv=$e(q(function(e){return typeof e=="boolean"})),bv=$e(q(function(e){return typeof e=="symbol"})),yv=$e(q(function(e){return e==null}));var Ae={__proto__:null,matcher:Ce,optional:Hi,array:function(...e){return ji({[Ce]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(e.length===0)return{matched:!0};const n=e[0];let r={};if(t.length===0)return Oe(n).forEach(i=>{r[i]=[]}),{matched:!0,selections:r};const o=(i,s)=>{r[i]=(r[i]||[]).concat([s])};return{matched:t.every(i=>ve(n,i,o)),selections:r}},getSelectionKeys:()=>e.length===0?[]:Oe(e[0])})})},set:function(...e){return $e({[Ce]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};const r=(i,s)=>{n[i]=(n[i]||[]).concat([s])},o=e[0];return{matched:dv(t,i=>ve(o,i,r)),selections:n}},getSelectionKeys:()=>e.length===0?[]:Oe(e[0])})})},map:function(...e){return $e({[Ce]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};const r=(a,c)=>{n[a]=(n[a]||[]).concat([c])};if(e.length===0)return{matched:!0};var o;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o=e[0])==null?void 0:o.toString()}`);const[i,s]=e;return{matched:fv(t,(a,c)=>{const u=ve(i,c,r),d=ve(s,a,r);return u&&d}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...Oe(e[0]),...Oe(e[1])]})})},intersection:te,union:ru,not:function(e){return $e({[Ce]:()=>({match:t=>({matched:!ve(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:q,select:Xn,any:ou,_:hv,string:pv,number:mv,bigint:vv,boolean:gv,symbol:bv,nullish:yv,instanceOf:function(e){return $e(q(function(t){return n=>n instanceof t}(e)))},shape:function(e){return $e(q(uv(e)))}};const Ui={matched:!1,value:void 0};function ze(e){return new Jr(e,Ui)}class Jr{constructor(t,n){this.input=void 0,this.state=void 0,this.input=t,this.state=n}with(...t){if(this.state.matched)return this;const n=t[t.length-1],r=[t[0]];let o;t.length===3&&typeof t[1]=="function"?(r.push(t[0]),o=t[1]):t.length>2&&r.push(...t.slice(1,t.length-1));let i=!1,s={};const a=(u,d)=>{i=!0,s[u]=d},c=!r.some(u=>ve(u,this.input,a))||o&&!o(this.input)?Ui:{matched:!0,value:n(i?Gr in s?s[Gr]:s:this.input,this.input)};return new Jr(this.input,c)}when(t,n){if(this.state.matched)return this;const r=!!t(this.input);return new Jr(this.input,r?{matched:!0,value:n(this.input,this.input)}:Ui)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){return this.run()}run(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input)}catch{t=this.input}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}returnType(){return this}}const wv="isdk",Xi=44,iu={not_in_local_storage:"Application not found in local storage",invalid_end_node:"Unexpected node type to finish flow",no_submissions:"Application ended without any fields submitted"};function su(e,t){if(!e)throw new Error(t)}function Qr(){throw new Error("Cycle detected")}var _v=Symbol.for("preact-signals");function eo(){if(bt>1)bt--;else{for(var e,t=!1;Wn!==void 0;){var n=Wn;for(Wn=void 0,Wi++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&cu(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Wi=0,bt--,t)throw e}}function xv(e){if(bt>0)return e();bt++;try{return e()}finally{eo()}}var re=void 0,Wn=void 0,bt=0,Wi=0,to=0;function au(e){if(re!==void 0){var t=e.n;if(t===void 0||t.t!==re)return t={i:0,S:e,p:re.s,n:void 0,t:re,e:void 0,x:void 0,r:t},re.s!==void 0&&(re.s.n=t),re.s=t,e.n=t,32&re.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=re.s,t.n=void 0,re.s.n=t,re.s=t),t}}function ge(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}ge.prototype.brand=_v,ge.prototype.h=function(){return!0},ge.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)},ge.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},ge.prototype.subscribe=function(e){var t=this;return Ki(function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}})},ge.prototype.valueOf=function(){return this.value},ge.prototype.toString=function(){return this.value+""},ge.prototype.toJSON=function(){return this.value},ge.prototype.peek=function(){return this.v},Object.defineProperty(ge.prototype,"value",{get:function(){var e=au(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(re instanceof yt&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Wi>100&&Qr(),this.v=e,this.i++,to++,bt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{eo()}}}});function qn(e){return new ge(e)}function cu(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function lu(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function uu(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function yt(e){ge.call(this,void 0),this.x=e,this.s=void 0,this.g=to-1,this.f=4}(yt.prototype=new ge).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===to))return!0;if(this.g=to,this.f|=1,this.i>0&&!cu(this))return this.f&=-2,!0;var e=re;try{lu(this),re=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return re=e,uu(this),this.f&=-2,!0},yt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}ge.prototype.S.call(this,e)},yt.prototype.U=function(e){if(this.t!==void 0&&(ge.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},yt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},yt.prototype.peek=function(){if(this.h()||Qr(),16&this.f)throw this.v;return this.v},Object.defineProperty(yt.prototype,"value",{get:function(){1&this.f&&Qr();var e=au(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function kv(e){return new yt(e)}function du(e){var t=e.u;if(e.u=void 0,typeof t=="function"){bt++;var n=re;re=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,qi(e),r}finally{re=n,eo()}}}function qi(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,du(e)}function $v(e){if(re!==this)throw new Error("Out-of-order effect");uu(this),re=e,this.f&=-2,8&this.f&&qi(this),eo()}function Kn(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Kn.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Kn.prototype.S=function(){1&this.f&&Qr(),this.f|=1,this.f&=-9,du(this),lu(this),bt++;var e=re;return re=this,$v.bind(this,e)},Kn.prototype.N=function(){2&this.f||(this.f|=2,this.o=Wn,Wn=this)},Kn.prototype.d=function(){this.f|=8,1&this.f||qi(this)};function Ki(e){var t=new Kn(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Yi;function pn(e,t){V[e]=t.bind(null,V[e]||function(){})}function no(e){Yi&&Yi(),Yi=e&&e.S()}function fu(e){var t=this,n=e.data,r=Mv(n);r.value=n;var o=de(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var s;!Ys(o.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},kv(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return o.value}fu.displayName="_st",Object.defineProperties(ge.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:fu},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),pn("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var o in r)if(o!=="children"){var i=r[o];i instanceof ge&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)}),pn("__r",function(e,t){no();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(o){var i;return Ki(function(){i=this}),i.c=function(){r.__$f|=1,r.setState({})},i}())),no(n),e(t)}),pn("__e",function(e,t,n,r){no(),e(t,n,r)}),pn("diffed",function(e,t){no();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var a=i[s];a!==void 0&&!(s in r)&&(a.d(),i[s]=void 0)}else n.U=i={};for(var c in r){var u=i[c],d=r[c];u===void 0?(u=Sv(n,c,d,o),i[c]=u):u.o(d,o)}}}e(t)});function Sv(e,t,n,r){var o=t in e&&e.ownerSVGElement===void 0,i=qn(n);return{o:function(s,a){i.value=s,r=a},d:Ki(function(){var s=i.value.value;r[t]!==s&&(r[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}pn("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var o in r){var i=r[o];i&&i.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)}),pn("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),Ee.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};function Mv(e){return de(function(){return qn(e)},[])}function Gi(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function hu(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Gi(n);return(o,i)=>r.then(s=>i(s.transaction(t,o).objectStore(t)))}let Zi;function pu(){return Zi||(Zi=hu("keyval-store","keyval")),Zi}function Tv(e,t=pu()){return t("readonly",n=>Gi(n.get(e)))}function Cv(e,t,n=pu()){return n("readwrite",r=>(r.put(t,e),Gi(r.transaction)))}const mu=hu("inploi","applications"),Yn={getApplicationData:async e=>{const t=gu(e);return await Tv(t,mu)},setApplicationData:async e=>{const t=gu(e.application);return await Cv(t,e.data,mu)}},vu=e=>{const t=e.find(n=>n.isHead);if(!t)throw new Error("No head node found");return t},Av=({application:e,submissions:t})=>({flowId:e.flow.id,jobId:e.job.id,submissions:Object.entries(t).reduce((r,[o,i])=>(r[o]=i.value,r),{})}),Ji=e=>t=>t?t.type===e:!1;class Gn extends Error{constructor(){super("Aborted")}}const gu=e=>[e.job.id,e.flow.id,e.flow.version].join("/"),rt=qn("maximised"),Qi=qn(53),wt=qn({state:"idle"}),Zn=async e=>{const{state:t,application:n}=wt.value;if(t!=="loaded")return;su(n,"No application to update");const r=e(n.data),o={...n,data:r};wt.value={state:t,application:o},await Yn.setApplicationData({application:n,data:r})},oe={current$:wt,start:async e=>{const t=await Yn.getApplicationData(e)??bu(e);xv(()=>{rt.value="maximised",wt.value={state:"loaded",application:{...e,data:t}}}),t.isFinished=!1,Yn.setApplicationData({application:e,data:t})},cancel:()=>{wt.value={state:"idle"}},markAsFinished:()=>Zn(e=>({...e,isFinished:!0})),setCurrentNodeId:e=>Zn(t=>({...t,currentNodeId:e})),restart:()=>{const{state:e,application:t}=wt.value;if(e!=="loaded")throw new Error("Application cannot be restarted: not in valid state");const n=bu(t);wt.value={state:e,application:{...t,data:n}},Yn.setApplicationData({application:t,data:n})},addMessage:(e,t)=>{const n={...e,groupId:t};return Zn(r=>({...r,messages:[...r.messages,n]}))},removeLastGroupMessagesById:e=>{var i;const{state:t,application:n}=wt.value;if(t!=="loaded")throw new Error("Application cannot be restarted: not in valid state");const r=[...n.data.messages];let o=r.length-1;for(;o>=0&&r[o]&&((i=r[o])==null?void 0:i.groupId)===e;)r.pop(),o--;n.data.messages=r,Yn.setApplicationData({application:n,data:n.data})},setSubmission:(e,t)=>Zn(n=>({...n,submissions:{...n.submissions,[e]:t}})),setInput:e=>Zn(t=>({...t,currentInput:e}))},bu=e=>({messages:[],submissions:{},currentNodeId:vu(e.flow.nodes).id,isFinished:!1});function yu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=yu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=yu(e))&&(r&&(r+=" "),r+=t);return r}var Pv=0;function x(e,t,n,r,o,i){var s,a,c={};for(a in t)a=="ref"?s=t[a]:c[a]=t[a];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Pv,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return V.vnode&&V.vnode(u),u}const ro=({class:e,children:t,...n})=>x("button",{class:mn("p-2 transition-all touch-hitbox relative rounded-full text-neutral-11 hover:text-neutral-12 active:text-neutral-12 hover:bg-neutral-12/5 active:bg-neutral-12/10 focus:outline-none ring-offset-2 focus-visible:ring-4 focus-visible:ring-neutral-7",e),...n,children:x("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:t})}),Ev=({children:e})=>{const t=rt.value;return x("header",{class:"z-20 flex gap-2 h-[var(--header-height)] rounded-t-2xl left-0 outline outline-1 outline-neutral-5 right-0 mx-auto items-center absolute top-0 bg-neutral-1/90 backdrop-blur-md backdrop-saturate-150",children:[x("p",{id:"chatbot-header",class:"sr-only",children:e}),x("button",{tabIndex:-1,"aria-hidden":!0,onClick:()=>{t==="minimised"?rt.value="maximised":rt.value="minimised"},class:"flex-grow h-full overflow-hidden py-1 px-4",children:x("p",{"aria-hidden":!0,class:"font-bold text-sm tracking-tight text-neutral-12 truncate",children:e})}),x("div",{class:"flex-shrink-0 flex items-center gap-3 p-1.5",children:rt.value==="minimised"?x(ue,{children:[x(ro,{"aria-label":"Maximise job application",onClick:()=>rt.value="maximised",children:x("path",{d:"M12.5 9.5L8 5L3.5 9.5"})},"minmax"),x(ro,{"aria-label":"Close application",onClick:oe.cancel,children:x("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"close")]}):x(ue,{children:[x(ro,{"aria-label":"Restart",onClick:()=>{oe.restart()},children:[x("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"}),x("path",{d:"M8 7L10 4.5L8 2.5"})]},"restart"),x(ro,{"aria-label":"Minimise application",onClick:()=>rt.value="minimised",children:x("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"minmax")]})})]})},Vv=Bo(()=>Promise.resolve().then(()=>f1).then(e=>e.JobApplicationContent)),Ov=({children:e})=>x(cv,{features:lv,children:e}),Rv={closed:{y:"calc(100% + 1rem)",height:Xi},maximised:{y:0,height:"75vh"},minimised:{y:0,height:Xi}},Lv=({logger:e,apiClient:t,analytics:n})=>{const{state:r,application:o}=oe.current$.value,i=rt.value,s=r==="loaded"&&i==="maximised",a=U(null);return x(Ov,{children:x(Xh,{open:s,modal:s,children:x(Yr,{children:[x(Wh,{forceMount:!0,asChild:!0,children:s&&x(Hn.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},class:"bg-neutral-12/60 fixed inset-0"})},"bg"),x(qh,{forceMount:!0,asChild:!0,children:x(Hn.div,{ref:a,"aria-modal":"true",role:"dialog","aria-labelledby":"chatbot-header",variants:Rv,initial:"closed",animate:ze({state:r,view:i}).with({state:"idle"},()=>"closed").with({state:"error"},()=>"minimised").with({state:Ae.union("loaded","loading")},({view:c})=>c).exhaustive(),exit:"closed",style:{"--header-height":`${Xi}px`},class:"isolate fixed left-2 right-2 mx-auto max-w-[450px] bottom-2 max-h-full focus:outline-none",children:x("div",{class:"outline outline-1 h-full outline-neutral-5 relative flex flex-col bg-neutral-2 rounded-3xl overflow-hidden",children:[x(Ev,{children:o?`Applying for “${o.job.title}” at ${o.company.name}`:"inploi chatbot"}),x(en,{fallback:x("div",{children:"loading…"}),children:i==="maximised"&&r==="loaded"&&x(Vv,{analytics:n,currentApplication:o,apiClient:t,logger:e})})]})},"content")})]})})})};var es=class extends Error{constructor(t){super(t[0].message);Jd(this,"issues");this.name="ValiError",this.issues=t}};function wu(e,t){return{...e,_parse(n,r){return e._parse(t(n),r)}}}function Jn(e){return{issues:e}}function ot(e){return{output:e}}function Nv(e,t){return{reason:e==null?void 0:e.reason,validation:t.validation,origin:(e==null?void 0:e.origin)||"value",message:t.message,input:t.input,path:t.path,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function Fv(e,t){return{reason:t,origin:e==null?void 0:e.origin,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function _t(e,t,n,r){if(!t||!t.length||n!=null&&n.skipPipe)return ot(e);let o,i,s=e;for(const a of t){const c=a._parse(s);if(c.issues){o=o||Fv(n,r);for(const u of c.issues){const d=Nv(o,u);i?i.push(d):i=[d]}if(o.abortEarly||o.abortPipeEarly)break}else s=c.output}return i?Jn(i):ot(s)}function xt(e,t){return Array.isArray(e)?[void 0,e]:[e,t]}function _u(e){return typeof e=="function"?e():e}function Qn(e,t,n,r){return Jn([{validation:e,message:_u(t),input:n,requirement:r}])}function Dv(e,t,n){if(!e||typeof e=="object"&&!Array.isArray(e)){const[i,s]=xt(t,n);return[e,i,s]}const[r,o]=xt(e,t);return[void 0,r,o]}function Ut(e,t,n,r,o,i){return{issues:[{reason:t,validation:n,origin:(e==null?void 0:e.origin)||"value",message:_u(r),input:o,issues:i,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}]}}function Iv(e){return typeof e.default=="function"?e.default():e.default}function zv(e){return{type:"any",async:!1,pipe:e,_parse(t,n){return _t(t,this.pipe,n,"any")}}}function Bv(e,t,n){const[r="Invalid type",o]=xt(t,n);return{type:"array",async:!1,item:e,message:r,pipe:o,_parse(i,s){if(!Array.isArray(i))return Ut(s,"type","array",this.message,i);let a;const c=[];for(let u=0;u<i.length;u++){const d=i[u],l=this.item._parse(d,s);if(l.issues){const f={type:"array",input:i,key:u,value:d};for(const h of l.issues)h.path?h.path.unshift(f):h.path=[f],a==null||a.push(h);if(a||(a=l.issues),s!=null&&s.abortEarly)break}else c.push(l.output)}return a?Jn(a):_t(c,this.pipe,s,"array")}}}function jv(e,t){const[n="Invalid type",r]=xt(e,t);return{type:"boolean",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="boolean"?Ut(i,"type","boolean",this.message,o):_t(o,this.pipe,i,"boolean")}}}function Hv(e,t){const[n="Invalid type",r]=xt(e,t);return{type:"number",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="number"||isNaN(o)?Ut(i,"type","number",this.message,o):_t(o,this.pipe,i,"number")}}}function vn(e,t,n,r){const[o,i="Invalid type",s]=Dv(t,n,r);let a;return{type:"object",async:!1,entries:e,rest:o,message:i,pipe:s,_parse(c,u){if(!c||typeof c!="object")return Ut(u,"type","object",this.message,c);a=a||Object.entries(this.entries);let d;const l={};for(const[f,h]of a){const p=c[f],m=h._parse(p,u);if(m.issues){const b={type:"object",input:c,key:f,value:p};for(const _ of m.issues)_.path?_.path.unshift(b):_.path=[b],d==null||d.push(_);if(d||(d=m.issues),u!=null&&u.abortEarly)break}else(m.output!==void 0||f in c)&&(l[f]=m.output)}if(this.rest&&!(u!=null&&u.abortEarly&&d)){for(const f in c)if(!(f in this.entries)){const h=c[f],p=this.rest._parse(h,u);if(p.issues){const m={type:"object",input:c,key:f,value:h};for(const b of p.issues)b.path?b.path.unshift(m):b.path=[m],d==null||d.push(b);if(d||(d=p.issues),u!=null&&u.abortEarly)break}else l[f]=p.output}}return d?Jn(d):_t(l,this.pipe,u,"object")}}}function Uv(e,t){return{type:"optional",async:!1,wrapped:e,default:t,_parse(n,r){if(n===void 0){const o=Iv(this);if(o===void 0)return ot(n);n=o}return this.wrapped._parse(n,r)}}}function Xv(e,t="Invalid type"){return{type:"picklist",async:!1,options:e,message:t,_parse(n,r){return this.options.includes(n)?ot(n):Ut(r,"type","picklist",this.message,n)}}}function Ke(e,t){const[n="Invalid type",r]=xt(e,t);return{type:"string",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="string"?Ut(i,"type","string",this.message,o):_t(o,this.pipe,i,"string")}}}function Wv(e,t,n,r){if(typeof t=="object"&&!Array.isArray(t)){const[s,a]=xt(n,r);return[e,t,s,a]}const[o,i]=xt(t,n);return[Ke(),e,o,i]}var qv=["__proto__","prototype","constructor"];function Kv(e,t,n,r){const[o,i,s="Invalid type",a]=Wv(e,t,n,r);return{type:"record",async:!1,key:o,value:i,message:s,pipe:a,_parse(c,u){if(!c||typeof c!="object")return Ut(u,"type","record",this.message,c);let d;const l={};for(const[f,h]of Object.entries(c))if(!qv.includes(f)){let p;const m=this.key._parse(f,{origin:"key",abortEarly:u==null?void 0:u.abortEarly,abortPipeEarly:u==null?void 0:u.abortPipeEarly,skipPipe:u==null?void 0:u.skipPipe});if(m.issues){p={type:"record",input:c,key:f,value:h};for(const _ of m.issues)_.path=[p],d==null||d.push(_);if(d||(d=m.issues),u!=null&&u.abortEarly)break}const b=this.value._parse(h,u);if(b.issues){p=p||{type:"record",input:c,key:f,value:h};for(const _ of b.issues)_.path?_.path.unshift(p):_.path=[p],d==null||d.push(_);if(d||(d=b.issues),u!=null&&u.abortEarly)break}!m.issues&&!b.issues&&(l[m.output]=b.output)}return d?Jn(d):_t(l,this.pipe,u,"record")}}}function ts(e,t,n){const r=e._parse(t,n);if(r.issues)throw new es(r.issues);return r.output}async function Yv(e,t,n){const r=await e._parse(t,n);if(r.issues)throw new es(r.issues);return r.output}function xu(e,t,n){return{...e,_parse(r,o){const i=e._parse(r,o);if(i.issues)return i;const s=t(i.output);return n&&!Array.isArray(n)?n._parse(s,o):_t(s,n,o,typeof s)}}}var Gv=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function Zv(e="Invalid email"){return{type:"email",async:!1,message:e,requirement:Gv,_parse(t){return this.requirement.test(t)?ot(t):Qn(this.type,this.message,t,this.requirement)}}}function Jv(e,t="Invalid length"){return{type:"max_length",async:!1,message:t,requirement:e,_parse(n){return n.length>this.requirement?Qn(this.type,this.message,n,this.requirement):ot(n)}}}function ku(e,t="Invalid length"){return{type:"min_length",async:!1,message:t,requirement:e,_parse(n){return n.length<this.requirement?Qn(this.type,this.message,n,this.requirement):ot(n)}}}function Qv(e,t="Invalid regex"){return{type:"regex",async:!1,message:t,requirement:e,_parse(n){return this.requirement.test(n)?ot(n):Qn(this.type,this.message,n,this.requirement)}}}function eg(e="Invalid URL"){return{type:"url",async:!1,message:e,requirement(t){try{return new URL(t),!0}catch{return!1}},_parse(t){return this.requirement(t)?ot(t):Qn(this.type,this.message,t,this.requirement)}}}const tg=vn({job:vn({id:wu(Ke(),String),title:Ke()}),company:vn({name:Ke(),logo:Uv(Ke())}),flow:vn({id:wu(Ke(),String),nodes:Bv(zv()),version:Hv()})});async function ng({jobId:e,apiClient:t}){const n=await t.fetch(`/flow/job/${e}`);return ts(tg,n)}const rg=`#isdk{position:relative;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-n-1: 206 30% 98.8%;--i-n-2: 210 16.7% 97.6%;--i-n-3: 209 13.3% 95.3%;--i-n-4: 209 12.2% 93.2%;--i-n-5: 208 11.7% 91.1%;--i-n-6: 208 11.3% 88.9%;--i-n-7: 207 11.1% 85.9%;--i-n-8: 205 10.7% 78%;--i-n-9: 206 6% 56.1%;--i-n-10: 206 5.8% 52.3%;--i-n-11: 206 6% 43.5%;--i-n-12: 206 24% 9%;--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%;--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}#isdk *{box-sizing:border-box;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}#isdk :before,#isdk :after{box-sizing:border-box}#isdk :is(ul,ol){list-style:none;padding:0;margin:0}#isdk :is(p){margin:0;padding:0}#isdk :is(li){margin:0;padding:0;list-style:none}#isdk :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}#isdk *,#isdk :before,#isdk :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: }#isdk ::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: }#isdk .container{width:100%}@media (min-width: 640px){#isdk .container{max-width:640px}}@media (min-width: 768px){#isdk .container{max-width:768px}}@media (min-width: 1024px){#isdk .container{max-width:1024px}}@media (min-width: 1280px){#isdk .container{max-width:1280px}}@media (min-width: 1536px){#isdk .container{max-width:1536px}}#isdk .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}#isdk .visible{visibility:visible}#isdk .invisible{visibility:hidden}#isdk .collapse{visibility:collapse}#isdk .static{position:static}#isdk .fixed{position:fixed}#isdk .absolute{position:absolute}#isdk .relative{position:relative}#isdk .sticky{position:sticky}#isdk .inset-0{top:0;right:0;bottom:0;left:0}#isdk .bottom-0{bottom:0}#isdk .bottom-2{bottom:.5rem}#isdk .left-0{left:0}#isdk .left-2{left:.5rem}#isdk .right-0{right:0}#isdk .right-2{right:.5rem}#isdk .top-0{top:0}#isdk .isolate{isolation:isolate}#isdk .z-20{z-index:20}#isdk .mx-auto{margin-left:auto;margin-right:auto}#isdk .mb-1{margin-bottom:.25rem}#isdk .ml-auto{margin-left:auto}#isdk .block{display:block}#isdk .inline-block{display:inline-block}#isdk .inline{display:inline}#isdk .flex{display:flex}#isdk .inline-flex{display:inline-flex}#isdk .table{display:table}#isdk .table-row{display:table-row}#isdk .flow-root{display:flow-root}#isdk .grid{display:grid}#isdk .inline-grid{display:inline-grid}#isdk .contents{display:contents}#isdk .list-item{display:list-item}#isdk .\\!hidden{display:none!important}#isdk .hidden{display:none}#isdk .h-1{height:.25rem}#isdk .h-1\\.5{height:.375rem}#isdk .h-48{height:12rem}#isdk .h-8{height:2rem}#isdk .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}#isdk .h-full{height:100%}#isdk .max-h-full{max-height:100%}#isdk .min-h-\\[36px\\]{min-height:36px}#isdk .w-1{width:.25rem}#isdk .w-1\\.5{width:.375rem}#isdk .w-8{width:2rem}#isdk .w-full{width:100%}#isdk .min-w-\\[2rem\\]{min-width:2rem}#isdk .max-w-\\[450px\\]{max-width:450px}#isdk .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,24rem)}#isdk .max-w-full{max-width:100%}#isdk .flex-1{flex:1 1 0%}#isdk .flex-shrink{flex-shrink:1}#isdk .flex-shrink-0{flex-shrink:0}#isdk .shrink{flex-shrink:1}#isdk .flex-grow,#isdk .grow{flex-grow:1}#isdk .border-collapse{border-collapse:collapse}#isdk .translate-y-0{--tw-translate-y: 0px;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))}#isdk .translate-y-8{--tw-translate-y: 2rem;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))}#isdk .scale-0{--tw-scale-x: 0;--tw-scale-y: 0;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))}#isdk .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)}}#isdk .animate-bounce{animation:bounce 1s infinite}#isdk .cursor-pointer{cursor:pointer}#isdk .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}#isdk .resize{resize:both}#isdk .flex-col{flex-direction:column}#isdk .flex-wrap{flex-wrap:wrap}#isdk .items-center{align-items:center}#isdk .justify-end{justify-content:flex-end}#isdk .justify-center{justify-content:center}#isdk .gap-0{gap:0px}#isdk .gap-1{gap:.25rem}#isdk .gap-2{gap:.5rem}#isdk .gap-3{gap:.75rem}#isdk .gap-4{gap:1rem}#isdk .overflow-hidden{overflow:hidden}#isdk .overflow-y-scroll{overflow-y:scroll}#isdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#isdk .break-words{overflow-wrap:break-word}#isdk .rounded{border-radius:.25rem}#isdk .rounded-2xl{border-radius:1rem}#isdk .rounded-3xl{border-radius:1.5rem}#isdk .rounded-\\[18px\\]{border-radius:18px}#isdk .rounded-full{border-radius:9999px}#isdk .rounded-lg{border-radius:.5rem}#isdk .rounded-md{border-radius:.375rem}#isdk .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}#isdk .rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}#isdk .rounded-bl-md{border-bottom-left-radius:.375rem}#isdk .rounded-br-md{border-bottom-right-radius:.375rem}#isdk .border{border-width:1px}#isdk .border-t{border-top-width:1px}#isdk .border-dashed{border-style:dashed}#isdk .border-neutral-5{--tw-border-opacity: 1;border-color:hsl(var(--i-n-5) / var(--tw-border-opacity))}#isdk .border-neutral-8{--tw-border-opacity: 1;border-color:hsl(var(--i-n-8) / var(--tw-border-opacity))}#isdk .bg-accent-1{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-1) / var(--tw-bg-opacity))}#isdk .bg-accent-7{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-7) / var(--tw-bg-opacity))}#isdk .bg-lowest{--tw-bg-opacity: 1;background-color:hsl(var(--i-lowest) / var(--tw-bg-opacity))}#isdk .bg-neutral-1{--tw-bg-opacity: 1;background-color:hsl(var(--i-n-1) / var(--tw-bg-opacity))}#isdk .bg-neutral-1\\/90{background-color:hsl(var(--i-n-1) / .9)}#isdk .bg-neutral-12\\/60{background-color:hsl(var(--i-n-12) / .6)}#isdk .bg-neutral-2{--tw-bg-opacity: 1;background-color:hsl(var(--i-n-2) / var(--tw-bg-opacity))}#isdk .bg-neutral-4\\/80{background-color:hsl(var(--i-n-4) / .8)}#isdk .p-0{padding:0}#isdk .p-0\\.5{padding:.125rem}#isdk .p-1{padding:.25rem}#isdk .p-1\\.5{padding:.375rem}#isdk .p-2{padding:.5rem}#isdk .p-2\\.5{padding:.625rem}#isdk .p-4{padding:1rem}#isdk .px-1{padding-left:.25rem;padding-right:.25rem}#isdk .px-2{padding-left:.5rem;padding-right:.5rem}#isdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#isdk .px-3{padding-left:.75rem;padding-right:.75rem}#isdk .px-4{padding-left:1rem;padding-right:1rem}#isdk .py-0{padding-top:0;padding-bottom:0}#isdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}#isdk .py-1{padding-top:.25rem;padding-bottom:.25rem}#isdk .py-2{padding-top:.5rem;padding-bottom:.5rem}#isdk .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}#isdk .pb-6{padding-bottom:1.5rem}#isdk .pr-1{padding-right:.25rem}#isdk .pt-5{padding-top:1.25rem}#isdk .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 1rem)}#isdk .text-center{text-align:center}#isdk .text-justify{text-align:justify}#isdk .text-\\[10px\\]{font-size:10px}#isdk .text-\\[11px\\]{font-size:11px}#isdk .text-base{font-size:1rem;line-height:1.5rem}#isdk .text-sm{font-size:.875rem;line-height:1.25rem}#isdk .text-xs{font-size:.75rem;line-height:1rem}#isdk .font-bold{font-weight:700}#isdk .uppercase{text-transform:uppercase}#isdk .lowercase{text-transform:lowercase}#isdk .capitalize{text-transform:capitalize}#isdk .italic{font-style:italic}#isdk .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)}#isdk .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}#isdk .tracking-tight{letter-spacing:-.025em}#isdk .tracking-wide{letter-spacing:.025em}#isdk .tracking-widest{letter-spacing:.1em}#isdk .text-accent-12{--tw-text-opacity: 1;color:hsl(var(--i-a-12) / var(--tw-text-opacity))}#isdk .text-error-10{--tw-text-opacity: 1;color:hsl(var(--i-e-10) / var(--tw-text-opacity))}#isdk .text-error-11{--tw-text-opacity: 1;color:hsl(var(--i-e-11) / var(--tw-text-opacity))}#isdk .text-lowest{--tw-text-opacity: 1;color:hsl(var(--i-lowest) / var(--tw-text-opacity))}#isdk .text-neutral-10{--tw-text-opacity: 1;color:hsl(var(--i-n-10) / var(--tw-text-opacity))}#isdk .text-neutral-11{--tw-text-opacity: 1;color:hsl(var(--i-n-11) / var(--tw-text-opacity))}#isdk .text-neutral-12{--tw-text-opacity: 1;color:hsl(var(--i-n-12) / var(--tw-text-opacity))}#isdk .text-neutral-8{--tw-text-opacity: 1;color:hsl(var(--i-n-8) / var(--tw-text-opacity))}#isdk .text-neutral-9{--tw-text-opacity: 1;color:hsl(var(--i-n-9) / var(--tw-text-opacity))}#isdk .underline{text-decoration-line:underline}#isdk .caret-accent-9{caret-color:hsl(var(--i-a-9) / 1)}#isdk .opacity-0{opacity:0}#isdk .opacity-100{opacity:1}#isdk .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)}#isdk .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px hsl(var(--i-a-12) / .03), 0px 6px 4px 0px hsl(var(--i-a-12) / .02), 0px 6px 4px 0px hsl(var(--i-a-12) / .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)}#isdk .outline{outline-style:solid}#isdk .outline-1{outline-width:1px}#isdk .outline-2{outline-width:2px}#isdk .outline-accent-11\\/\\[\\.08\\]{outline-color:hsl(var(--i-a-11) / .08)}#isdk .outline-neutral-12\\/5{outline-color:hsl(var(--i-n-12) / .05)}#isdk .outline-neutral-4{outline-color:hsl(var(--i-n-4) / 1)}#isdk .outline-neutral-5{outline-color:hsl(var(--i-n-5) / 1)}#isdk .outline-neutral-6{outline-color:hsl(var(--i-n-6) / 1)}#isdk .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)}#isdk .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)}#isdk .ring-lowest{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--i-lowest) / var(--tw-ring-opacity))}#isdk .ring-transparent{--tw-ring-color: transparent}#isdk .ring-offset-2{--tw-ring-offset-width: 2px}#isdk .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)}#isdk .drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));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)}#isdk .drop-shadow-\\[0_1\\.5px_white\\]{--tw-drop-shadow: drop-shadow(0 1.5px white);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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#isdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#isdk .duration-300{transition-duration:.3s}#isdk .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}#isdk .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}#isdk .gutter-stable{scrollbar-gutter:stable}#isdk .hide-scrollbars::-webkit-scrollbar{display:none}#isdk .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}#isdk .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}#isdk .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}#isdk .selection\\:bg-transparent *::-moz-selection{background-color:transparent}#isdk .selection\\:bg-transparent *::selection{background-color:transparent}#isdk .selection\\:bg-transparent::-moz-selection{background-color:transparent}#isdk .selection\\:bg-transparent::selection{background-color:transparent}#isdk .placeholder\\:text-neutral-10::-moz-placeholder{--tw-text-opacity: 1;color:hsl(var(--i-n-10) / var(--tw-text-opacity))}#isdk .placeholder\\:text-neutral-10::placeholder{--tw-text-opacity: 1;color:hsl(var(--i-n-10) / var(--tw-text-opacity))}#isdk .placeholder\\:text-neutral-8::-moz-placeholder{--tw-text-opacity: 1;color:hsl(var(--i-n-8) / var(--tw-text-opacity))}#isdk .placeholder\\:text-neutral-8::placeholder{--tw-text-opacity: 1;color:hsl(var(--i-n-8) / var(--tw-text-opacity))}#isdk .hover\\:bg-neutral-12\\/5:hover{background-color:hsl(var(--i-n-12) / .05)}#isdk .hover\\:text-neutral-12:hover{--tw-text-opacity: 1;color:hsl(var(--i-n-12) / var(--tw-text-opacity))}#isdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#isdk .focus-visible\\:outline-accent-7:focus-visible{outline-color:hsl(var(--i-a-7) / 1)}#isdk .focus-visible\\:outline-accent-9:focus-visible{outline-color:hsl(var(--i-a-9) / 1)}#isdk .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)}#isdk .focus-visible\\:ring-accent-7:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--i-a-7) / var(--tw-ring-opacity))}#isdk .focus-visible\\:ring-accent-7\\/50:focus-visible{--tw-ring-color: hsl(var(--i-a-7) / .5)}#isdk .focus-visible\\:ring-neutral-7:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--i-n-7) / var(--tw-ring-opacity))}#isdk .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}#isdk .active\\:bg-accent-10:active{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-10) / var(--tw-bg-opacity))}#isdk .active\\:bg-accent-4:active{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-4) / var(--tw-bg-opacity))}#isdk .active\\:bg-neutral-12\\/10:active{background-color:hsl(var(--i-n-12) / .1)}#isdk .active\\:text-accent-11:active{--tw-text-opacity: 1;color:hsl(var(--i-a-11) / var(--tw-text-opacity))}#isdk .active\\:text-accent-4:active{--tw-text-opacity: 1;color:hsl(var(--i-a-4) / var(--tw-text-opacity))}#isdk .active\\:text-neutral-12:active{--tw-text-opacity: 1;color:hsl(var(--i-n-12) / var(--tw-text-opacity))}#isdk .active\\:outline-accent-9:active{outline-color:hsl(var(--i-a-9) / 1)}#isdk .active\\:outline-neutral-10:active{outline-color:hsl(var(--i-n-10) / 1)}#isdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#isdk .disabled\\:opacity-50:disabled{opacity:.5}#isdk .peer:checked~.peer-checked\\:bg-accent-4{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-4) / var(--tw-bg-opacity))}#isdk .peer:checked~.peer-checked\\:text-accent-11{--tw-text-opacity: 1;color:hsl(var(--i-a-11) / var(--tw-text-opacity))}#isdk .peer:checked~.peer-checked\\:outline-accent-9{outline-color:hsl(var(--i-a-9) / 1)}#isdk .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)}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-accent-7{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--i-a-7) / var(--tw-ring-opacity))}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-offset-2{--tw-ring-offset-width: 2px}@media (pointer: coarse){#isdk .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}}
49
+ `),()=>{document.head.removeChild(u)}},[t]),N(nv,{isPresent:t,childRef:r,sizeRef:o},ft(e,{ref:r}))}const Ii=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Uc(ov),c=gr(),u=de(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:d=>{a.set(d,!0);for(const l of a.values())if(!l)return;r&&r()},register:d=>(a.set(d,!1),()=>a.delete(d))}),i?void 0:[n]);return de(()=>{a.forEach((d,l)=>a.set(l,!1))},[n]),G(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=N(rv,{isPresent:n},e)),N(ii.Provider,{value:u},e)};function ov(){return new Map}function iv(e){return G(()=>()=>e(),[])}const Bt=e=>e.key||"";function sv(e,t){e.forEach(n=>{const r=Bt(n);t.set(r,n)})}function av(e){const t=[];return He.forEach(e,n=>{dt(n)&&t.push(n)}),t}const Yr=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{Xe(!o,"Replace exitBeforeEnter with mode='wait'");const a=we(Cc).forceRender||tv()[0],c=tu(),u=av(e);let d=u;const l=U(new Map).current,f=U(d),h=U(new Map).current,p=U(!0);if(si(()=>{p.current=!1,sv(u,h),f.current=d}),iv(()=>{p.current=!0,h.clear(),l.clear()}),p.current)return N(ue,null,d.map(g=>N(Ii,{key:Bt(g),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},g)));d=[...d];const m=f.current.map(Bt),b=u.map(Bt),_=m.length;for(let g=0;g<_;g++){const w=m[g];b.indexOf(w)===-1&&!l.has(w)&&l.set(w,void 0)}return s==="wait"&&l.size&&(d=[]),l.forEach((g,w)=>{if(b.indexOf(w)!==-1)return;const M=h.get(w);if(!M)return;const S=m.indexOf(w);let F=g;if(!F){const L=()=>{l.delete(w);const C=Array.from(h.keys()).filter(E=>!b.includes(E));if(C.forEach(E=>h.delete(E)),f.current=u.filter(E=>{const W=Bt(E);return W===w||C.includes(W)}),!l.size){if(c.current===!1)return;a(),r&&r()}};F=N(Ii,{key:Bt(M),isPresent:!1,onExitComplete:L,custom:t,presenceAffectsLayout:i,mode:s},M),l.set(w,F)}d.splice(S,0,F)}),d=d.map(g=>{const w=g.key;return l.has(w)?g:N(Ii,{key:Bt(g),isPresent:!0,presenceAffectsLayout:i,mode:s},g)}),process.env.NODE_ENV!=="production"&&s==="wait"&&d.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),N(ue,null,l.size?d:d.map(g=>ft(g)))};function cv({children:e,features:t,strict:n=!1}){const[,r]=ae(!zi(t)),o=U(void 0);if(!zi(t)){const{renderer:i,...s}=t;o.current=i,ui(s)}return G(()=>{zi(t)&&t().then(({renderer:i,...s})=>{ui(s),o.current=i,r(!0)})},[]),N(ai.Provider,{value:{renderer:o.current,strict:n}},e)}function zi(e){return typeof e=="function"}const lv={renderer:ev,...Am,...Gp},Ce=Symbol.for("@ts-pattern/matcher"),nu=Symbol.for("@ts-pattern/isVariadic"),Gr="@ts-pattern/anonymous-select-key",Bi=e=>!!(e&&typeof e=="object"),Zr=e=>e&&!!e[Ce],ve=(e,t,n)=>{if(Zr(e)){const r=e[Ce](),{matched:o,selections:i}=r.match(t);return o&&i&&Object.keys(i).forEach(s=>n(s,i[s])),o}if(Bi(e)){if(!Bi(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],o=[],i=[];for(const s of e.keys()){const a=e[s];Zr(a)&&a[nu]?i.push(a):i.length?o.push(a):r.push(a)}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(t.length<r.length+o.length)return!1;const s=t.slice(0,r.length),a=o.length===0?[]:t.slice(-o.length),c=t.slice(r.length,o.length===0?1/0:-o.length);return r.every((u,d)=>ve(u,s[d],n))&&o.every((u,d)=>ve(u,a[d],n))&&(i.length===0||ve(i[0],c,n))}return e.length===t.length&&e.every((s,a)=>ve(s,t[a],n))}return Object.keys(e).every(r=>{const o=e[r];return(r in t||Zr(i=o)&&i[Ce]().matcherType==="optional")&&ve(o,t[r],n);var i})}return Object.is(t,e)},Oe=e=>{var t,n,r;return Bi(e)?Zr(e)?(t=(n=(r=e[Ce]()).getSelectionKeys)==null?void 0:n.call(r))!=null?t:[]:Array.isArray(e)?Un(e,Oe):Un(Object.values(e),Oe):[]},Un=(e,t)=>e.reduce((n,r)=>n.concat(t(r)),[]);function uv(...e){if(e.length===1){const[t]=e;return n=>ve(t,n,()=>{})}if(e.length===2){const[t,n]=e;return ve(t,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function $e(e){return Object.assign(e,{optional:()=>Hi(e),and:t=>te(e,t),or:t=>ru(e,t),select:t=>t===void 0?Xn(e):Xn(t,e)})}function ji(e){return Object.assign((t=>Object.assign(t,{*[Symbol.iterator](){yield Object.assign(t,{[nu]:!0})}}))(e),{optional:()=>ji(Hi(e)),select:t=>ji(t===void 0?Xn(e):Xn(t,e))})}function Hi(e){return $e({[Ce]:()=>({match:t=>{let n={};const r=(o,i)=>{n[o]=i};return t===void 0?(Oe(e).forEach(o=>r(o,void 0)),{matched:!0,selections:n}):{matched:ve(e,t,r),selections:n}},getSelectionKeys:()=>Oe(e),matcherType:"optional"})})}const dv=(e,t)=>{for(const n of e)if(!t(n))return!1;return!0},fv=(e,t)=>{for(const[n,r]of e.entries())if(!t(r,n))return!1;return!0};function te(...e){return $e({[Ce]:()=>({match:t=>{let n={};const r=(o,i)=>{n[o]=i};return{matched:e.every(o=>ve(o,t,r)),selections:n}},getSelectionKeys:()=>Un(e,Oe),matcherType:"and"})})}function ru(...e){return $e({[Ce]:()=>({match:t=>{let n={};const r=(o,i)=>{n[o]=i};return Un(e,Oe).forEach(o=>r(o,void 0)),{matched:e.some(o=>ve(o,t,r)),selections:n}},getSelectionKeys:()=>Un(e,Oe),matcherType:"or"})})}function q(e){return{[Ce]:()=>({match:t=>({matched:!!e(t)})})}}function Xn(...e){const t=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return $e({[Ce]:()=>({match:r=>{let o={[t??Gr]:r};return{matched:n===void 0||ve(n,r,(i,s)=>{o[i]=s}),selections:o}},getSelectionKeys:()=>[t??Gr].concat(n===void 0?[]:Oe(n))})})}function We(e){return typeof e=="number"}function jt(e){return typeof e=="string"}function vt(e){return typeof e=="bigint"}const ou=$e(q(function(e){return!0})),hv=ou,Ht=e=>Object.assign($e(e),{startsWith:t=>{return Ht(te(e,(n=t,q(r=>jt(r)&&r.startsWith(n)))));var n},endsWith:t=>{return Ht(te(e,(n=t,q(r=>jt(r)&&r.endsWith(n)))));var n},minLength:t=>Ht(te(e,(n=>q(r=>jt(r)&&r.length>=n))(t))),maxLength:t=>Ht(te(e,(n=>q(r=>jt(r)&&r.length<=n))(t))),includes:t=>{return Ht(te(e,(n=t,q(r=>jt(r)&&r.includes(n)))));var n},regex:t=>{return Ht(te(e,(n=t,q(r=>jt(r)&&!!r.match(n)))));var n}}),pv=Ht(q(jt)),qe=e=>Object.assign($e(e),{between:(t,n)=>qe(te(e,((r,o)=>q(i=>We(i)&&r<=i&&o>=i))(t,n))),lt:t=>qe(te(e,(n=>q(r=>We(r)&&r<n))(t))),gt:t=>qe(te(e,(n=>q(r=>We(r)&&r>n))(t))),lte:t=>qe(te(e,(n=>q(r=>We(r)&&r<=n))(t))),gte:t=>qe(te(e,(n=>q(r=>We(r)&&r>=n))(t))),int:()=>qe(te(e,q(t=>We(t)&&Number.isInteger(t)))),finite:()=>qe(te(e,q(t=>We(t)&&Number.isFinite(t)))),positive:()=>qe(te(e,q(t=>We(t)&&t>0))),negative:()=>qe(te(e,q(t=>We(t)&&t<0)))}),mv=qe(q(We)),gt=e=>Object.assign($e(e),{between:(t,n)=>gt(te(e,((r,o)=>q(i=>vt(i)&&r<=i&&o>=i))(t,n))),lt:t=>gt(te(e,(n=>q(r=>vt(r)&&r<n))(t))),gt:t=>gt(te(e,(n=>q(r=>vt(r)&&r>n))(t))),lte:t=>gt(te(e,(n=>q(r=>vt(r)&&r<=n))(t))),gte:t=>gt(te(e,(n=>q(r=>vt(r)&&r>=n))(t))),positive:()=>gt(te(e,q(t=>vt(t)&&t>0))),negative:()=>gt(te(e,q(t=>vt(t)&&t<0)))}),vv=gt(q(vt)),gv=$e(q(function(e){return typeof e=="boolean"})),bv=$e(q(function(e){return typeof e=="symbol"})),yv=$e(q(function(e){return e==null}));var Ae={__proto__:null,matcher:Ce,optional:Hi,array:function(...e){return ji({[Ce]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(e.length===0)return{matched:!0};const n=e[0];let r={};if(t.length===0)return Oe(n).forEach(i=>{r[i]=[]}),{matched:!0,selections:r};const o=(i,s)=>{r[i]=(r[i]||[]).concat([s])};return{matched:t.every(i=>ve(n,i,o)),selections:r}},getSelectionKeys:()=>e.length===0?[]:Oe(e[0])})})},set:function(...e){return $e({[Ce]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};const r=(i,s)=>{n[i]=(n[i]||[]).concat([s])},o=e[0];return{matched:dv(t,i=>ve(o,i,r)),selections:n}},getSelectionKeys:()=>e.length===0?[]:Oe(e[0])})})},map:function(...e){return $e({[Ce]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};const r=(a,c)=>{n[a]=(n[a]||[]).concat([c])};if(e.length===0)return{matched:!0};var o;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o=e[0])==null?void 0:o.toString()}`);const[i,s]=e;return{matched:fv(t,(a,c)=>{const u=ve(i,c,r),d=ve(s,a,r);return u&&d}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...Oe(e[0]),...Oe(e[1])]})})},intersection:te,union:ru,not:function(e){return $e({[Ce]:()=>({match:t=>({matched:!ve(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:q,select:Xn,any:ou,_:hv,string:pv,number:mv,bigint:vv,boolean:gv,symbol:bv,nullish:yv,instanceOf:function(e){return $e(q(function(t){return n=>n instanceof t}(e)))},shape:function(e){return $e(q(uv(e)))}};const Ui={matched:!1,value:void 0};function ze(e){return new Jr(e,Ui)}class Jr{constructor(t,n){this.input=void 0,this.state=void 0,this.input=t,this.state=n}with(...t){if(this.state.matched)return this;const n=t[t.length-1],r=[t[0]];let o;t.length===3&&typeof t[1]=="function"?(r.push(t[0]),o=t[1]):t.length>2&&r.push(...t.slice(1,t.length-1));let i=!1,s={};const a=(u,d)=>{i=!0,s[u]=d},c=!r.some(u=>ve(u,this.input,a))||o&&!o(this.input)?Ui:{matched:!0,value:n(i?Gr in s?s[Gr]:s:this.input,this.input)};return new Jr(this.input,c)}when(t,n){if(this.state.matched)return this;const r=!!t(this.input);return new Jr(this.input,r?{matched:!0,value:n(this.input,this.input)}:Ui)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){return this.run()}run(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input)}catch{t=this.input}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}returnType(){return this}}const wv="isdk",Xi=44,iu={not_in_local_storage:"Application not found in local storage",invalid_end_node:"Unexpected node type to finish flow",no_submissions:"Application ended without any fields submitted"};function su(e,t){if(!e)throw new Error(t)}function Qr(){throw new Error("Cycle detected")}var _v=Symbol.for("preact-signals");function eo(){if(bt>1)bt--;else{for(var e,t=!1;Wn!==void 0;){var n=Wn;for(Wn=void 0,Wi++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&cu(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Wi=0,bt--,t)throw e}}function xv(e){if(bt>0)return e();bt++;try{return e()}finally{eo()}}var re=void 0,Wn=void 0,bt=0,Wi=0,to=0;function au(e){if(re!==void 0){var t=e.n;if(t===void 0||t.t!==re)return t={i:0,S:e,p:re.s,n:void 0,t:re,e:void 0,x:void 0,r:t},re.s!==void 0&&(re.s.n=t),re.s=t,e.n=t,32&re.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=re.s,t.n=void 0,re.s.n=t,re.s=t),t}}function ge(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}ge.prototype.brand=_v,ge.prototype.h=function(){return!0},ge.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)},ge.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},ge.prototype.subscribe=function(e){var t=this;return Ki(function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}})},ge.prototype.valueOf=function(){return this.value},ge.prototype.toString=function(){return this.value+""},ge.prototype.toJSON=function(){return this.value},ge.prototype.peek=function(){return this.v},Object.defineProperty(ge.prototype,"value",{get:function(){var e=au(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(re instanceof yt&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Wi>100&&Qr(),this.v=e,this.i++,to++,bt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{eo()}}}});function qn(e){return new ge(e)}function cu(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function lu(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function uu(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function yt(e){ge.call(this,void 0),this.x=e,this.s=void 0,this.g=to-1,this.f=4}(yt.prototype=new ge).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===to))return!0;if(this.g=to,this.f|=1,this.i>0&&!cu(this))return this.f&=-2,!0;var e=re;try{lu(this),re=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return re=e,uu(this),this.f&=-2,!0},yt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}ge.prototype.S.call(this,e)},yt.prototype.U=function(e){if(this.t!==void 0&&(ge.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},yt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},yt.prototype.peek=function(){if(this.h()||Qr(),16&this.f)throw this.v;return this.v},Object.defineProperty(yt.prototype,"value",{get:function(){1&this.f&&Qr();var e=au(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function kv(e){return new yt(e)}function du(e){var t=e.u;if(e.u=void 0,typeof t=="function"){bt++;var n=re;re=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,qi(e),r}finally{re=n,eo()}}}function qi(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,du(e)}function $v(e){if(re!==this)throw new Error("Out-of-order effect");uu(this),re=e,this.f&=-2,8&this.f&&qi(this),eo()}function Kn(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Kn.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Kn.prototype.S=function(){1&this.f&&Qr(),this.f|=1,this.f&=-9,du(this),lu(this),bt++;var e=re;return re=this,$v.bind(this,e)},Kn.prototype.N=function(){2&this.f||(this.f|=2,this.o=Wn,Wn=this)},Kn.prototype.d=function(){this.f|=8,1&this.f||qi(this)};function Ki(e){var t=new Kn(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Yi;function pn(e,t){V[e]=t.bind(null,V[e]||function(){})}function no(e){Yi&&Yi(),Yi=e&&e.S()}function fu(e){var t=this,n=e.data,r=Mv(n);r.value=n;var o=de(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var s;!Ys(o.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},kv(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return o.value}fu.displayName="_st",Object.defineProperties(ge.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:fu},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),pn("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var o in r)if(o!=="children"){var i=r[o];i instanceof ge&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)}),pn("__r",function(e,t){no();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(o){var i;return Ki(function(){i=this}),i.c=function(){r.__$f|=1,r.setState({})},i}())),no(n),e(t)}),pn("__e",function(e,t,n,r){no(),e(t,n,r)}),pn("diffed",function(e,t){no();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var a=i[s];a!==void 0&&!(s in r)&&(a.d(),i[s]=void 0)}else n.U=i={};for(var c in r){var u=i[c],d=r[c];u===void 0?(u=Sv(n,c,d,o),i[c]=u):u.o(d,o)}}}e(t)});function Sv(e,t,n,r){var o=t in e&&e.ownerSVGElement===void 0,i=qn(n);return{o:function(s,a){i.value=s,r=a},d:Ki(function(){var s=i.value.value;r[t]!==s&&(r[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}pn("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var o in r){var i=r[o];i&&i.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)}),pn("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),Ee.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};function Mv(e){return de(function(){return qn(e)},[])}function Gi(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function hu(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Gi(n);return(o,i)=>r.then(s=>i(s.transaction(t,o).objectStore(t)))}let Zi;function pu(){return Zi||(Zi=hu("keyval-store","keyval")),Zi}function Tv(e,t=pu()){return t("readonly",n=>Gi(n.get(e)))}function Cv(e,t,n=pu()){return n("readwrite",r=>(r.put(t,e),Gi(r.transaction)))}const mu=hu("inploi","applications"),Yn={getApplicationData:async e=>{const t=gu(e);return await Tv(t,mu)},setApplicationData:async e=>{const t=gu(e.application);return await Cv(t,e.data,mu)}},vu=e=>{const t=e.find(n=>n.isHead);if(!t)throw new Error("No head node found");return t},Av=({application:e,submissions:t})=>({flowId:e.flow.id,jobId:e.job.id,submissions:Object.entries(t).reduce((r,[o,i])=>(r[o]=i.value,r),{})}),Ji=e=>t=>t?t.type===e:!1;class Gn extends Error{constructor(){super("Aborted")}}const gu=e=>[e.job.id,e.flow.id,e.flow.version].join("/"),rt=qn("maximised"),Qi=qn(53),wt=qn({state:"idle"}),Zn=async e=>{const{state:t,application:n}=wt.value;if(t!=="loaded")return;su(n,"No application to update");const r=e(n.data),o={...n,data:r};wt.value={state:t,application:o},await Yn.setApplicationData({application:n,data:r})},oe={current$:wt,start:async e=>{const t=await Yn.getApplicationData(e)??bu(e);xv(()=>{rt.value="maximised",wt.value={state:"loaded",application:{...e,data:t}}}),t.isFinished=!1,Yn.setApplicationData({application:e,data:t})},cancel:()=>{wt.value={state:"idle"}},markAsFinished:()=>Zn(e=>({...e,isFinished:!0})),setCurrentNodeId:e=>Zn(t=>({...t,currentNodeId:e})),restart:()=>{const{state:e,application:t}=wt.value;if(e!=="loaded")throw new Error("Application cannot be restarted: not in valid state");const n=bu(t);wt.value={state:e,application:{...t,data:n}},Yn.setApplicationData({application:t,data:n})},addMessage:(e,t)=>{const n={...e,groupId:t};return Zn(r=>({...r,messages:[...r.messages,n]}))},removeLastGroupMessagesById:e=>{var i;const{state:t,application:n}=wt.value;if(t!=="loaded")throw new Error("Application cannot be restarted: not in valid state");const r=[...n.data.messages];let o=r.length-1;for(;o>=0&&r[o]&&((i=r[o])==null?void 0:i.groupId)===e;)r.pop(),o--;n.data.messages=r,Yn.setApplicationData({application:n,data:n.data})},setSubmission:(e,t)=>Zn(n=>({...n,submissions:{...n.submissions,[e]:t}})),setInput:e=>Zn(t=>({...t,currentInput:e}))},bu=e=>({messages:[],submissions:{},currentNodeId:vu(e.flow.nodes).id,isFinished:!1});function yu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=yu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=yu(e))&&(r&&(r+=" "),r+=t);return r}var Pv=0;function x(e,t,n,r,o,i){var s,a,c={};for(a in t)a=="ref"?s=t[a]:c[a]=t[a];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Pv,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return V.vnode&&V.vnode(u),u}const ro=({class:e,children:t,...n})=>x("button",{class:mn("p-2 transition-all touch-hitbox relative rounded-full text-neutral-11 hover:text-neutral-12 active:text-neutral-12 hover:bg-neutral-12/5 active:bg-neutral-12/10 focus:outline-none ring-offset-2 focus-visible:ring-4 focus-visible:ring-neutral-7",e),...n,children:x("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:t})}),Ev=({children:e})=>{const t=rt.value;return x("header",{class:"z-20 flex gap-2 h-[var(--header-height)] rounded-t-2xl left-0 outline outline-1 outline-neutral-5 right-0 mx-auto items-center absolute top-0 bg-neutral-1/90 backdrop-blur-md backdrop-saturate-150",children:[x("p",{id:"chatbot-header",class:"sr-only",children:e}),x("button",{tabIndex:-1,"aria-hidden":!0,onClick:()=>{t==="minimised"?rt.value="maximised":rt.value="minimised"},class:"flex-grow h-full overflow-hidden py-1 px-4",children:x("p",{"aria-hidden":!0,class:"font-bold text-sm tracking-tight text-neutral-12 truncate",children:e})}),x("div",{class:"flex-shrink-0 flex items-center gap-3 p-1.5",children:rt.value==="minimised"?x(ue,{children:[x(ro,{"aria-label":"Maximise job application",onClick:()=>rt.value="maximised",children:x("path",{d:"M12.5 9.5L8 5L3.5 9.5"})},"minmax"),x(ro,{"aria-label":"Close application",onClick:oe.cancel,children:x("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"close")]}):x(ue,{children:[x(ro,{"aria-label":"Restart",onClick:()=>{oe.restart()},children:[x("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"}),x("path",{d:"M8 7L10 4.5L8 2.5"})]},"restart"),x(ro,{"aria-label":"Minimise application",onClick:()=>rt.value="minimised",children:x("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"minmax")]})})]})},Vv=Bo(()=>Promise.resolve().then(()=>f1).then(e=>e.JobApplicationContent)),Ov=({children:e})=>x(cv,{features:lv,children:e}),Rv={closed:{y:"calc(100% + 1rem)",height:Xi},maximised:{y:0,height:"75vh"},minimised:{y:0,height:Xi}},Lv=({logger:e,apiClient:t,analytics:n})=>{const{state:r,application:o}=oe.current$.value,i=rt.value,s=r==="loaded"&&i==="maximised",a=U(null);return x(Ov,{children:x(Xh,{open:s,modal:s,children:x(Yr,{children:[x(Wh,{forceMount:!0,asChild:!0,children:s&&x(Hn.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},class:"bg-neutral-12/60 fixed inset-0"})},"bg"),x(qh,{forceMount:!0,asChild:!0,children:x(Hn.div,{ref:a,"aria-modal":"true",role:"dialog","aria-labelledby":"chatbot-header",variants:Rv,initial:"closed",animate:ze({state:r,view:i}).with({state:"idle"},()=>"closed").with({state:"error"},()=>"minimised").with({state:Ae.union("loaded","loading")},({view:c})=>c).exhaustive(),exit:"closed",style:{"--header-height":`${Xi}px`},class:"isolate fixed left-2 right-2 mx-auto max-w-[450px] bottom-2 max-h-full focus:outline-none",children:x("div",{class:"outline outline-1 h-full outline-neutral-5 relative flex flex-col bg-neutral-2 rounded-3xl overflow-hidden",children:[x(Ev,{children:o?`Applying for “${o.job.title}” at ${o.company.name}`:"inploi chatbot"}),x(en,{fallback:x("div",{children:"loading…"}),children:i==="maximised"&&r==="loaded"&&x(Vv,{analytics:n,currentApplication:o,apiClient:t,logger:e})})]})},"content")})]})})})};var es=class extends Error{constructor(t){super(t[0].message);Jd(this,"issues");this.name="ValiError",this.issues=t}};function wu(e,t){return{...e,_parse(n,r){return e._parse(t(n),r)}}}function Jn(e){return{issues:e}}function ot(e){return{output:e}}function Nv(e,t){return{reason:e==null?void 0:e.reason,validation:t.validation,origin:(e==null?void 0:e.origin)||"value",message:t.message,input:t.input,path:t.path,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function Fv(e,t){return{reason:t,origin:e==null?void 0:e.origin,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function _t(e,t,n,r){if(!t||!t.length||n!=null&&n.skipPipe)return ot(e);let o,i,s=e;for(const a of t){const c=a._parse(s);if(c.issues){o=o||Fv(n,r);for(const u of c.issues){const d=Nv(o,u);i?i.push(d):i=[d]}if(o.abortEarly||o.abortPipeEarly)break}else s=c.output}return i?Jn(i):ot(s)}function xt(e,t){return Array.isArray(e)?[void 0,e]:[e,t]}function _u(e){return typeof e=="function"?e():e}function Qn(e,t,n,r){return Jn([{validation:e,message:_u(t),input:n,requirement:r}])}function Dv(e,t,n){if(!e||typeof e=="object"&&!Array.isArray(e)){const[i,s]=xt(t,n);return[e,i,s]}const[r,o]=xt(e,t);return[void 0,r,o]}function Ut(e,t,n,r,o,i){return{issues:[{reason:t,validation:n,origin:(e==null?void 0:e.origin)||"value",message:_u(r),input:o,issues:i,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}]}}function Iv(e){return typeof e.default=="function"?e.default():e.default}function zv(e){return{type:"any",async:!1,pipe:e,_parse(t,n){return _t(t,this.pipe,n,"any")}}}function Bv(e,t,n){const[r="Invalid type",o]=xt(t,n);return{type:"array",async:!1,item:e,message:r,pipe:o,_parse(i,s){if(!Array.isArray(i))return Ut(s,"type","array",this.message,i);let a;const c=[];for(let u=0;u<i.length;u++){const d=i[u],l=this.item._parse(d,s);if(l.issues){const f={type:"array",input:i,key:u,value:d};for(const h of l.issues)h.path?h.path.unshift(f):h.path=[f],a==null||a.push(h);if(a||(a=l.issues),s!=null&&s.abortEarly)break}else c.push(l.output)}return a?Jn(a):_t(c,this.pipe,s,"array")}}}function jv(e,t){const[n="Invalid type",r]=xt(e,t);return{type:"boolean",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="boolean"?Ut(i,"type","boolean",this.message,o):_t(o,this.pipe,i,"boolean")}}}function Hv(e,t){const[n="Invalid type",r]=xt(e,t);return{type:"number",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="number"||isNaN(o)?Ut(i,"type","number",this.message,o):_t(o,this.pipe,i,"number")}}}function vn(e,t,n,r){const[o,i="Invalid type",s]=Dv(t,n,r);let a;return{type:"object",async:!1,entries:e,rest:o,message:i,pipe:s,_parse(c,u){if(!c||typeof c!="object")return Ut(u,"type","object",this.message,c);a=a||Object.entries(this.entries);let d;const l={};for(const[f,h]of a){const p=c[f],m=h._parse(p,u);if(m.issues){const b={type:"object",input:c,key:f,value:p};for(const _ of m.issues)_.path?_.path.unshift(b):_.path=[b],d==null||d.push(_);if(d||(d=m.issues),u!=null&&u.abortEarly)break}else(m.output!==void 0||f in c)&&(l[f]=m.output)}if(this.rest&&!(u!=null&&u.abortEarly&&d)){for(const f in c)if(!(f in this.entries)){const h=c[f],p=this.rest._parse(h,u);if(p.issues){const m={type:"object",input:c,key:f,value:h};for(const b of p.issues)b.path?b.path.unshift(m):b.path=[m],d==null||d.push(b);if(d||(d=p.issues),u!=null&&u.abortEarly)break}else l[f]=p.output}}return d?Jn(d):_t(l,this.pipe,u,"object")}}}function Uv(e,t){return{type:"optional",async:!1,wrapped:e,default:t,_parse(n,r){if(n===void 0){const o=Iv(this);if(o===void 0)return ot(n);n=o}return this.wrapped._parse(n,r)}}}function Xv(e,t="Invalid type"){return{type:"picklist",async:!1,options:e,message:t,_parse(n,r){return this.options.includes(n)?ot(n):Ut(r,"type","picklist",this.message,n)}}}function Ke(e,t){const[n="Invalid type",r]=xt(e,t);return{type:"string",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="string"?Ut(i,"type","string",this.message,o):_t(o,this.pipe,i,"string")}}}function Wv(e,t,n,r){if(typeof t=="object"&&!Array.isArray(t)){const[s,a]=xt(n,r);return[e,t,s,a]}const[o,i]=xt(t,n);return[Ke(),e,o,i]}var qv=["__proto__","prototype","constructor"];function Kv(e,t,n,r){const[o,i,s="Invalid type",a]=Wv(e,t,n,r);return{type:"record",async:!1,key:o,value:i,message:s,pipe:a,_parse(c,u){if(!c||typeof c!="object")return Ut(u,"type","record",this.message,c);let d;const l={};for(const[f,h]of Object.entries(c))if(!qv.includes(f)){let p;const m=this.key._parse(f,{origin:"key",abortEarly:u==null?void 0:u.abortEarly,abortPipeEarly:u==null?void 0:u.abortPipeEarly,skipPipe:u==null?void 0:u.skipPipe});if(m.issues){p={type:"record",input:c,key:f,value:h};for(const _ of m.issues)_.path=[p],d==null||d.push(_);if(d||(d=m.issues),u!=null&&u.abortEarly)break}const b=this.value._parse(h,u);if(b.issues){p=p||{type:"record",input:c,key:f,value:h};for(const _ of b.issues)_.path?_.path.unshift(p):_.path=[p],d==null||d.push(_);if(d||(d=b.issues),u!=null&&u.abortEarly)break}!m.issues&&!b.issues&&(l[m.output]=b.output)}return d?Jn(d):_t(l,this.pipe,u,"record")}}}function ts(e,t,n){const r=e._parse(t,n);if(r.issues)throw new es(r.issues);return r.output}async function Yv(e,t,n){const r=await e._parse(t,n);if(r.issues)throw new es(r.issues);return r.output}function xu(e,t,n){return{...e,_parse(r,o){const i=e._parse(r,o);if(i.issues)return i;const s=t(i.output);return n&&!Array.isArray(n)?n._parse(s,o):_t(s,n,o,typeof s)}}}var Gv=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function Zv(e="Invalid email"){return{type:"email",async:!1,message:e,requirement:Gv,_parse(t){return this.requirement.test(t)?ot(t):Qn(this.type,this.message,t,this.requirement)}}}function Jv(e,t="Invalid length"){return{type:"max_length",async:!1,message:t,requirement:e,_parse(n){return n.length>this.requirement?Qn(this.type,this.message,n,this.requirement):ot(n)}}}function ku(e,t="Invalid length"){return{type:"min_length",async:!1,message:t,requirement:e,_parse(n){return n.length<this.requirement?Qn(this.type,this.message,n,this.requirement):ot(n)}}}function Qv(e,t="Invalid regex"){return{type:"regex",async:!1,message:t,requirement:e,_parse(n){return this.requirement.test(n)?ot(n):Qn(this.type,this.message,n,this.requirement)}}}function eg(e="Invalid URL"){return{type:"url",async:!1,message:e,requirement(t){try{return new URL(t),!0}catch{return!1}},_parse(t){return this.requirement(t)?ot(t):Qn(this.type,this.message,t,this.requirement)}}}const tg=vn({job:vn({id:wu(Ke(),String),title:Ke()}),company:vn({name:Ke(),logo:Uv(Ke())}),flow:vn({id:wu(Ke(),String),nodes:Bv(zv()),version:Hv()})});async function ng({jobId:e,apiClient:t}){const n=await t.fetch(`/flow/job/${e}`);return ts(tg,n)}const rg=`#isdk{position:relative;z-index:99999;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-n-1: 206 30% 98.8%;--i-n-2: 210 16.7% 97.6%;--i-n-3: 209 13.3% 95.3%;--i-n-4: 209 12.2% 93.2%;--i-n-5: 208 11.7% 91.1%;--i-n-6: 208 11.3% 88.9%;--i-n-7: 207 11.1% 85.9%;--i-n-8: 205 10.7% 78%;--i-n-9: 206 6% 56.1%;--i-n-10: 206 5.8% 52.3%;--i-n-11: 206 6% 43.5%;--i-n-12: 206 24% 9%;--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%;--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}#isdk *{box-sizing:border-box;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}#isdk :before,#isdk :after{box-sizing:border-box}#isdk :is(ul,ol){list-style:none;padding:0;margin:0}#isdk :is(p){margin:0;padding:0}#isdk :is(li){margin:0;padding:0;list-style:none}#isdk :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}#isdk *,#isdk :before,#isdk :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: }#isdk ::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: }#isdk .container{width:100%}@media (min-width: 640px){#isdk .container{max-width:640px}}@media (min-width: 768px){#isdk .container{max-width:768px}}@media (min-width: 1024px){#isdk .container{max-width:1024px}}@media (min-width: 1280px){#isdk .container{max-width:1280px}}@media (min-width: 1536px){#isdk .container{max-width:1536px}}#isdk .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}#isdk .visible{visibility:visible}#isdk .invisible{visibility:hidden}#isdk .collapse{visibility:collapse}#isdk .static{position:static}#isdk .fixed{position:fixed}#isdk .absolute{position:absolute}#isdk .relative{position:relative}#isdk .sticky{position:sticky}#isdk .inset-0{top:0;right:0;bottom:0;left:0}#isdk .bottom-0{bottom:0}#isdk .bottom-2{bottom:.5rem}#isdk .left-0{left:0}#isdk .left-2{left:.5rem}#isdk .right-0{right:0}#isdk .right-2{right:.5rem}#isdk .top-0{top:0}#isdk .isolate{isolation:isolate}#isdk .z-20{z-index:20}#isdk .mx-auto{margin-left:auto;margin-right:auto}#isdk .mb-1{margin-bottom:.25rem}#isdk .ml-auto{margin-left:auto}#isdk .block{display:block}#isdk .inline-block{display:inline-block}#isdk .inline{display:inline}#isdk .flex{display:flex}#isdk .inline-flex{display:inline-flex}#isdk .table{display:table}#isdk .table-row{display:table-row}#isdk .flow-root{display:flow-root}#isdk .grid{display:grid}#isdk .inline-grid{display:inline-grid}#isdk .contents{display:contents}#isdk .list-item{display:list-item}#isdk .\\!hidden{display:none!important}#isdk .hidden{display:none}#isdk .h-1{height:.25rem}#isdk .h-1\\.5{height:.375rem}#isdk .h-48{height:12rem}#isdk .h-8{height:2rem}#isdk .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}#isdk .h-full{height:100%}#isdk .max-h-full{max-height:100%}#isdk .min-h-\\[36px\\]{min-height:36px}#isdk .w-1{width:.25rem}#isdk .w-1\\.5{width:.375rem}#isdk .w-8{width:2rem}#isdk .w-full{width:100%}#isdk .min-w-\\[2rem\\]{min-width:2rem}#isdk .max-w-\\[450px\\]{max-width:450px}#isdk .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,24rem)}#isdk .max-w-full{max-width:100%}#isdk .flex-1{flex:1 1 0%}#isdk .flex-shrink{flex-shrink:1}#isdk .flex-shrink-0{flex-shrink:0}#isdk .shrink{flex-shrink:1}#isdk .flex-grow,#isdk .grow{flex-grow:1}#isdk .border-collapse{border-collapse:collapse}#isdk .translate-y-0{--tw-translate-y: 0px;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))}#isdk .translate-y-8{--tw-translate-y: 2rem;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))}#isdk .scale-0{--tw-scale-x: 0;--tw-scale-y: 0;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))}#isdk .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)}}#isdk .animate-bounce{animation:bounce 1s infinite}#isdk .cursor-pointer{cursor:pointer}#isdk .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}#isdk .resize{resize:both}#isdk .flex-col{flex-direction:column}#isdk .flex-wrap{flex-wrap:wrap}#isdk .items-center{align-items:center}#isdk .justify-end{justify-content:flex-end}#isdk .justify-center{justify-content:center}#isdk .gap-0{gap:0px}#isdk .gap-1{gap:.25rem}#isdk .gap-2{gap:.5rem}#isdk .gap-3{gap:.75rem}#isdk .gap-4{gap:1rem}#isdk .overflow-hidden{overflow:hidden}#isdk .overflow-y-scroll{overflow-y:scroll}#isdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#isdk .break-words{overflow-wrap:break-word}#isdk .rounded{border-radius:.25rem}#isdk .rounded-2xl{border-radius:1rem}#isdk .rounded-3xl{border-radius:1.5rem}#isdk .rounded-\\[18px\\]{border-radius:18px}#isdk .rounded-full{border-radius:9999px}#isdk .rounded-lg{border-radius:.5rem}#isdk .rounded-md{border-radius:.375rem}#isdk .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}#isdk .rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}#isdk .rounded-bl-md{border-bottom-left-radius:.375rem}#isdk .rounded-br-md{border-bottom-right-radius:.375rem}#isdk .border{border-width:1px}#isdk .border-t{border-top-width:1px}#isdk .border-dashed{border-style:dashed}#isdk .border-neutral-5{--tw-border-opacity: 1;border-color:hsl(var(--i-n-5) / var(--tw-border-opacity))}#isdk .border-neutral-8{--tw-border-opacity: 1;border-color:hsl(var(--i-n-8) / var(--tw-border-opacity))}#isdk .bg-accent-1{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-1) / var(--tw-bg-opacity))}#isdk .bg-accent-7{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-7) / var(--tw-bg-opacity))}#isdk .bg-lowest{--tw-bg-opacity: 1;background-color:hsl(var(--i-lowest) / var(--tw-bg-opacity))}#isdk .bg-neutral-1{--tw-bg-opacity: 1;background-color:hsl(var(--i-n-1) / var(--tw-bg-opacity))}#isdk .bg-neutral-1\\/90{background-color:hsl(var(--i-n-1) / .9)}#isdk .bg-neutral-12\\/60{background-color:hsl(var(--i-n-12) / .6)}#isdk .bg-neutral-2{--tw-bg-opacity: 1;background-color:hsl(var(--i-n-2) / var(--tw-bg-opacity))}#isdk .bg-neutral-4\\/80{background-color:hsl(var(--i-n-4) / .8)}#isdk .p-0{padding:0}#isdk .p-0\\.5{padding:.125rem}#isdk .p-1{padding:.25rem}#isdk .p-1\\.5{padding:.375rem}#isdk .p-2{padding:.5rem}#isdk .p-2\\.5{padding:.625rem}#isdk .p-4{padding:1rem}#isdk .px-1{padding-left:.25rem;padding-right:.25rem}#isdk .px-2{padding-left:.5rem;padding-right:.5rem}#isdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#isdk .px-3{padding-left:.75rem;padding-right:.75rem}#isdk .px-4{padding-left:1rem;padding-right:1rem}#isdk .py-0{padding-top:0;padding-bottom:0}#isdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}#isdk .py-1{padding-top:.25rem;padding-bottom:.25rem}#isdk .py-2{padding-top:.5rem;padding-bottom:.5rem}#isdk .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}#isdk .pb-6{padding-bottom:1.5rem}#isdk .pr-1{padding-right:.25rem}#isdk .pt-5{padding-top:1.25rem}#isdk .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 1rem)}#isdk .text-center{text-align:center}#isdk .text-justify{text-align:justify}#isdk .text-\\[10px\\]{font-size:10px}#isdk .text-\\[11px\\]{font-size:11px}#isdk .text-base{font-size:1rem;line-height:1.5rem}#isdk .text-sm{font-size:.875rem;line-height:1.25rem}#isdk .text-xs{font-size:.75rem;line-height:1rem}#isdk .font-bold{font-weight:700}#isdk .uppercase{text-transform:uppercase}#isdk .lowercase{text-transform:lowercase}#isdk .capitalize{text-transform:capitalize}#isdk .italic{font-style:italic}#isdk .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)}#isdk .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}#isdk .tracking-tight{letter-spacing:-.025em}#isdk .tracking-wide{letter-spacing:.025em}#isdk .tracking-widest{letter-spacing:.1em}#isdk .text-accent-12{--tw-text-opacity: 1;color:hsl(var(--i-a-12) / var(--tw-text-opacity))}#isdk .text-error-10{--tw-text-opacity: 1;color:hsl(var(--i-e-10) / var(--tw-text-opacity))}#isdk .text-error-11{--tw-text-opacity: 1;color:hsl(var(--i-e-11) / var(--tw-text-opacity))}#isdk .text-lowest{--tw-text-opacity: 1;color:hsl(var(--i-lowest) / var(--tw-text-opacity))}#isdk .text-neutral-10{--tw-text-opacity: 1;color:hsl(var(--i-n-10) / var(--tw-text-opacity))}#isdk .text-neutral-11{--tw-text-opacity: 1;color:hsl(var(--i-n-11) / var(--tw-text-opacity))}#isdk .text-neutral-12{--tw-text-opacity: 1;color:hsl(var(--i-n-12) / var(--tw-text-opacity))}#isdk .text-neutral-8{--tw-text-opacity: 1;color:hsl(var(--i-n-8) / var(--tw-text-opacity))}#isdk .text-neutral-9{--tw-text-opacity: 1;color:hsl(var(--i-n-9) / var(--tw-text-opacity))}#isdk .underline{text-decoration-line:underline}#isdk .caret-accent-9{caret-color:hsl(var(--i-a-9) / 1)}#isdk .opacity-0{opacity:0}#isdk .opacity-100{opacity:1}#isdk .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)}#isdk .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px hsl(var(--i-a-12) / .03), 0px 6px 4px 0px hsl(var(--i-a-12) / .02), 0px 6px 4px 0px hsl(var(--i-a-12) / .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)}#isdk .outline{outline-style:solid}#isdk .outline-1{outline-width:1px}#isdk .outline-2{outline-width:2px}#isdk .outline-accent-11\\/\\[\\.08\\]{outline-color:hsl(var(--i-a-11) / .08)}#isdk .outline-neutral-12\\/5{outline-color:hsl(var(--i-n-12) / .05)}#isdk .outline-neutral-4{outline-color:hsl(var(--i-n-4) / 1)}#isdk .outline-neutral-5{outline-color:hsl(var(--i-n-5) / 1)}#isdk .outline-neutral-6{outline-color:hsl(var(--i-n-6) / 1)}#isdk .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)}#isdk .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)}#isdk .ring-lowest{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--i-lowest) / var(--tw-ring-opacity))}#isdk .ring-transparent{--tw-ring-color: transparent}#isdk .ring-offset-2{--tw-ring-offset-width: 2px}#isdk .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)}#isdk .drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));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)}#isdk .drop-shadow-\\[0_1\\.5px_white\\]{--tw-drop-shadow: drop-shadow(0 1.5px white);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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .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)}#isdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#isdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#isdk .duration-300{transition-duration:.3s}#isdk .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}#isdk .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}#isdk .gutter-stable{scrollbar-gutter:stable}#isdk .hide-scrollbars::-webkit-scrollbar{display:none}#isdk .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}#isdk .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}#isdk .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}#isdk .selection\\:bg-transparent *::-moz-selection{background-color:transparent}#isdk .selection\\:bg-transparent *::selection{background-color:transparent}#isdk .selection\\:bg-transparent::-moz-selection{background-color:transparent}#isdk .selection\\:bg-transparent::selection{background-color:transparent}#isdk .placeholder\\:text-neutral-10::-moz-placeholder{--tw-text-opacity: 1;color:hsl(var(--i-n-10) / var(--tw-text-opacity))}#isdk .placeholder\\:text-neutral-10::placeholder{--tw-text-opacity: 1;color:hsl(var(--i-n-10) / var(--tw-text-opacity))}#isdk .placeholder\\:text-neutral-8::-moz-placeholder{--tw-text-opacity: 1;color:hsl(var(--i-n-8) / var(--tw-text-opacity))}#isdk .placeholder\\:text-neutral-8::placeholder{--tw-text-opacity: 1;color:hsl(var(--i-n-8) / var(--tw-text-opacity))}#isdk .hover\\:bg-neutral-12\\/5:hover{background-color:hsl(var(--i-n-12) / .05)}#isdk .hover\\:text-neutral-12:hover{--tw-text-opacity: 1;color:hsl(var(--i-n-12) / var(--tw-text-opacity))}#isdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#isdk .focus-visible\\:outline-accent-7:focus-visible{outline-color:hsl(var(--i-a-7) / 1)}#isdk .focus-visible\\:outline-accent-9:focus-visible{outline-color:hsl(var(--i-a-9) / 1)}#isdk .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)}#isdk .focus-visible\\:ring-accent-7:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--i-a-7) / var(--tw-ring-opacity))}#isdk .focus-visible\\:ring-accent-7\\/50:focus-visible{--tw-ring-color: hsl(var(--i-a-7) / .5)}#isdk .focus-visible\\:ring-neutral-7:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--i-n-7) / var(--tw-ring-opacity))}#isdk .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}#isdk .active\\:bg-accent-10:active{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-10) / var(--tw-bg-opacity))}#isdk .active\\:bg-accent-4:active{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-4) / var(--tw-bg-opacity))}#isdk .active\\:bg-neutral-12\\/10:active{background-color:hsl(var(--i-n-12) / .1)}#isdk .active\\:text-accent-11:active{--tw-text-opacity: 1;color:hsl(var(--i-a-11) / var(--tw-text-opacity))}#isdk .active\\:text-accent-4:active{--tw-text-opacity: 1;color:hsl(var(--i-a-4) / var(--tw-text-opacity))}#isdk .active\\:text-neutral-12:active{--tw-text-opacity: 1;color:hsl(var(--i-n-12) / var(--tw-text-opacity))}#isdk .active\\:outline-accent-9:active{outline-color:hsl(var(--i-a-9) / 1)}#isdk .active\\:outline-neutral-10:active{outline-color:hsl(var(--i-n-10) / 1)}#isdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#isdk .disabled\\:opacity-50:disabled{opacity:.5}#isdk .peer:checked~.peer-checked\\:bg-accent-4{--tw-bg-opacity: 1;background-color:hsl(var(--i-a-4) / var(--tw-bg-opacity))}#isdk .peer:checked~.peer-checked\\:text-accent-11{--tw-text-opacity: 1;color:hsl(var(--i-a-11) / var(--tw-text-opacity))}#isdk .peer:checked~.peer-checked\\:outline-accent-9{outline-color:hsl(var(--i-a-9) / 1)}#isdk .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)}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-accent-7{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--i-a-7) / var(--tw-ring-opacity))}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-offset-2{--tw-ring-offset-width: 2px}@media (pointer: coarse){#isdk .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}}
50
50
  `,og=()=>{let e=null;return{getOrCreateChatbotElement:()=>{if(e)return e;const t=document.createElement("div");return document.body.appendChild(t),t.id=wv,e=t,t},addStyle:(t,n)=>{const r=document.head,o=document.createElement("style");o.id=n,o.innerHTML=t,r.appendChild(o)}}},$u=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},ig={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},sg=e=>$u(ig[e.toLowerCase()],6),ag=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,cg=e=>{let t;return(t=e.match(ag))?$u(parseInt(t[1],16),t[1].length):void 0},kt="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",er=`${kt}%`,ns=`(?:${kt}%|${kt})`,lg=`(?:${kt}(deg|grad|rad|turn)|${kt})`,gn="\\s*,\\s*",ug=new RegExp(`^rgba?\\(\\s*${kt}${gn}${kt}${gn}${kt}\\s*(?:,\\s*${ns}\\s*)?\\)$`),dg=new RegExp(`^rgba?\\(\\s*${er}${gn}${er}${gn}${er}\\s*(?:,\\s*${ns}\\s*)?\\)$`),fg=e=>{let t={mode:"rgb"},n;if(n=e.match(ug))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(dg))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]!==void 0?t.alpha=n[4]/100:n[5]!==void 0&&(t.alpha=+n[5]),t},tr=(e,t)=>e===void 0?void 0:typeof e!="object"?_g(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,Ye=(e="rgb")=>t=>(t=tr(t,e))!==void 0?t.mode===e?t:Ge[t.mode][e]?Ge[t.mode][e](t):e==="rgb"?Ge[t.mode].rgb(t):Ge.rgb[e](Ge[t.mode].rgb(t)):void 0,Ge={},Su={},oo=[],Mu={},hg=e=>e,Z=e=>(Ge[e.mode]={...Ge[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{Ge[t]||(Ge[t]={}),Ge[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=hg)}),Su[e.mode]=e,(e.parse||[]).forEach(t=>{pg(t,e.mode)}),Ye(e.mode)),Xt=e=>Su[e],pg=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");Mu[e]=t}else typeof e=="function"&&oo.indexOf(e)<0&&oo.push(e)},rs=/[^\x00-\x7F]|[a-zA-Z_]/,mg=/[^\x00-\x7F]|[-\w]/,$={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let I=0;function io(e){let t=e[I],n=e[I+1];return t==="-"||t==="+"?/\d/.test(n)||n==="."&&/\d/.test(e[I+2]):t==="."?/\d/.test(n):/\d/.test(t)}function os(e){if(I>=e.length)return!1;let t=e[I];if(rs.test(t))return!0;if(t==="-"){if(e.length-I<2)return!1;let n=e[I+1];return!!(n==="-"||rs.test(n))}return!1}const vg={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function nr(e){let t="";if((e[I]==="-"||e[I]==="+")&&(t+=e[I++]),t+=so(e),e[I]==="."&&/\d/.test(e[I+1])&&(t+=e[I++]+so(e)),(e[I]==="e"||e[I]==="E")&&((e[I+1]==="-"||e[I+1]==="+")&&/\d/.test(e[I+2])?t+=e[I++]+e[I++]+so(e):/\d/.test(e[I+1])&&(t+=e[I++]+so(e))),os(e)){let n=ao(e);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:$.Hue,value:t*vg[n]}:void 0}return e[I]==="%"?(I++,{type:$.Percentage,value:+t}):{type:$.Number,value:+t}}function so(e){let t="";for(;/\d/.test(e[I]);)t+=e[I++];return t}function ao(e){let t="";for(;I<e.length&&mg.test(e[I]);)t+=e[I++];return t}function gg(e){let t=ao(e);return e[I]==="("?(I++,{type:$.Function,value:t}):t==="none"?{type:$.None,value:void 0}:{type:$.Ident,value:t}}function bg(e=""){let t=e.trim(),n=[],r;for(I=0;I<t.length;){if(r=t[I++],r===`
51
51
  `||r===" "||r===" "){for(;I<t.length&&(t[I]===`
52
52
  `||t[I]===" "||t[I]===" ");)I++;continue}if(r===",")return;if(r===")"){n.push({type:$.ParenClose});continue}if(r==="+"){if(I--,io(t)){n.push(nr(t));continue}return}if(r==="-"){if(I--,io(t)){n.push(nr(t));continue}if(os(t)){n.push({type:$.Ident,value:ao(t)});continue}return}if(r==="."){if(I--,io(t)){n.push(nr(t));continue}return}if(r==="/"){for(;I<t.length&&(t[I]===`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inploi/plugin-chatbot",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "/dist",