@liip/liipgpt 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/liipgpt-button.iife.js +186 -174
- package/chat/liipgpt-chat.iife.js +222 -210
- package/config/index.cjs +36 -6
- package/config/index.d.ts +3024 -538
- package/config/index.js +36 -6
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/BnCAkRMw.js +1 -0
- package/configurator/_app/immutable/chunks/C1CVfDcA.js +209 -0
- package/configurator/_app/immutable/chunks/C7ucs8kz.js +1 -0
- package/configurator/_app/immutable/chunks/CfQtRUjK.js +1 -0
- package/configurator/_app/immutable/chunks/Cgm2UlUC.js +1 -0
- package/configurator/_app/immutable/chunks/DNNNN9KC.js +3 -0
- package/configurator/_app/immutable/chunks/DuQTZe3l.js +1 -0
- package/configurator/_app/immutable/chunks/DvEdoyY3.js +1 -0
- package/configurator/_app/immutable/chunks/{BzVylwd7.js → DwsPRhVz.js} +1 -1
- package/configurator/_app/immutable/chunks/PdZf4Jij.js +1 -0
- package/configurator/_app/immutable/chunks/TMezqz9A.js +1 -0
- package/configurator/_app/immutable/chunks/dZVw-Q0d.js +228 -0
- package/configurator/_app/immutable/chunks/lMON6K8G.js +15 -0
- package/configurator/_app/immutable/entry/app.CdFUjOEM.js +2 -0
- package/configurator/_app/immutable/entry/start.CnM-eUb6.js +1 -0
- package/configurator/_app/immutable/nodes/{0.C1WA-Sd0.js → 0.-WsI4DHZ.js} +1 -1
- package/configurator/_app/immutable/nodes/1.CbwRpfkr.js +1 -0
- package/configurator/_app/immutable/nodes/2.DbP2H5Hu.js +30 -0
- package/configurator/_app/immutable/nodes/3.CrU_53hy.js +897 -0
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +10 -10
- package/configurator/sidebar.html +10 -10
- package/index.cjs +1329 -864
- package/index.d.ts +4770 -726
- package/index.js +1329 -864
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/BiXZbQqO.js +0 -1
- package/configurator/_app/immutable/chunks/BmumJykv.js +0 -3
- package/configurator/_app/immutable/chunks/BynrE7QB.js +0 -4
- package/configurator/_app/immutable/chunks/CXbcLk5j.js +0 -1
- package/configurator/_app/immutable/chunks/CaDmIJkP.js +0 -28
- package/configurator/_app/immutable/chunks/D5wkZK_2.js +0 -1
- package/configurator/_app/immutable/chunks/DCtHJYgu.js +0 -1
- package/configurator/_app/immutable/chunks/DH3truD-.js +0 -364
- package/configurator/_app/immutable/chunks/DTGU2mqM.js +0 -1
- package/configurator/_app/immutable/chunks/DUt8zN7X.js +0 -1
- package/configurator/_app/immutable/chunks/DkXqbGhE.js +0 -58
- package/configurator/_app/immutable/chunks/Dq6jck_i.js +0 -1
- package/configurator/_app/immutable/chunks/DqybDqwy.js +0 -15
- package/configurator/_app/immutable/entry/app.0vDWmuRN.js +0 -2
- package/configurator/_app/immutable/entry/start.DR9kqzeI.js +0 -1
- package/configurator/_app/immutable/nodes/1.D_clQXr4.js +0 -1
- package/configurator/_app/immutable/nodes/2.DVQmbfVp.js +0 -1
- package/configurator/_app/immutable/nodes/3.CVRgUIw6.js +0 -897
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{p as k,E as B,F as d,G as m,d as T,v as r,c as A}from"./DUt8zN7X.js";import{p as o,s as R}from"./BiXZbQqO.js";import{C as U}from"./BynrE7QB.js";import{E as _}from"./DqybDqwy.js";function E(S,t){k(t,!0);let a=o(t,"forceTheme",7),l=o(t,"apiUrl",7),i=o(t,"apiKey",7),u=o(t,"speechRecognitionApiKey",7),n=o(t,"lang",7),s=o(t,"features",7),y=o(t,"loaderBackground",7),g=o(t,"loaderColor",7),f=o(t,"flyout",7),c=o(t,"flyoutStyle",7),p=o(t,"flyoutClass",7),h=m(()=>({forceTheme:a(),apiUrl:l(),apiKey:i(),speechRecognitionApiKey:u(),lang:n(),features:s(),loaderBackground:y(),loaderColor:g(),flyout:f(),flyoutStyle:c(),flyoutClass:p()}));const b=m(()=>d(h).flyout??!1);return _(S,{get silent(){return d(b)},body:(C,K=B)=>{U(C,R({host:t.$$host,get onError(){return K()}},()=>d(h)))},$$slots:{body:!0}}),T({get forceTheme(){return a()},set forceTheme(e){a(e),r()},get apiUrl(){return l()},set apiUrl(e){l(e),r()},get apiKey(){return i()},set apiKey(e){i(e),r()},get speechRecognitionApiKey(){return u()},set speechRecognitionApiKey(e){u(e),r()},get lang(){return n()},set lang(e){n(e),r()},get features(){return s()},set features(e){s(e),r()},get loaderBackground(){return y()},set loaderBackground(e){y(e),r()},get loaderColor(){return g()},set loaderColor(e){g(e),r()},get flyout(){return f()},set flyout(e){f(e),r()},get flyoutStyle(){return c()},set flyoutStyle(e){c(e),r()},get flyoutClass(){return p()},set flyoutClass(e){p(e),r()}})}customElements.define("liipgpt-chat",A(E,{forceTheme:{attribute:"force-theme",type:"String"},apiUrl:{attribute:"api-url",type:"String"},apiKey:{attribute:"api-key",type:"String"},speechRecognitionApiKey:{attribute:"speech-recognition-api-key",type:"String"},lang:{attribute:"lang",type:"String"},features:{attribute:"features",type:"String"},loaderBackground:{attribute:"loader-background",type:"String"},loaderColor:{attribute:"loader-color",type:"String"},flyout:{attribute:"flyout",type:"Boolean"},flyoutStyle:{attribute:"flyout-style",type:"String"},flyoutClass:{attribute:"flyout-class",type:"String"}},[],[],!0));export{E as LiipGPTChat};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var fe=Array.isArray,en=Array.prototype.indexOf,nn=Array.from,mt=Object.keys,wt=Object.defineProperty,st=Object.getOwnPropertyDescriptor,rn=Object.getOwnPropertyDescriptors,sn=Object.prototype,an=Array.prototype,ce=Object.getPrototypeOf,ne=Object.isExtensible;function ar(t){return typeof t=="function"}const ft=()=>{};function ir(t){return typeof t?.then=="function"}function ur(t){return t()}function _e(t){for(var e=0;e<t.length;e++)t[e]()}function or(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const n=[];for(const r of t)if(n.push(r),n.length===e)break;return n}const A=2,Bt=4,$t=8,Ht=16,j=32,tt=64,Vt=128,T=256,Tt=512,m=1024,Y=2048,W=4096,it=8192,Yt=16384,de=32768,Ut=65536,re=1<<17,he=1<<18,ve=1<<19,Dt=1<<20,Gt=1<<21,z=Symbol("$state"),un=Symbol("legacy props"),lr=Symbol(""),pe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},cr=1,Wt=3,_t=8,on=11;function $e(t){return t===this.v}function be(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function _r(t,e){return t!==e}function ye(t){return!be(t,this.v)}function ln(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function cn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function _n(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function dr(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function dn(){throw new Error("https://svelte.dev/e/hydration_failed")}function hr(t){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function vr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function vn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Nt=!1;function pr(){Nt=!0}const $r=1,br=2,yr=4,gr=8,Er=16,mr=1,wr=2,Tr=4,Ar=8,xr=16,Nr=1,Sr=2,Cr=4,$n=1,bn=2,Kt="[",yn="[!",ge="]",at={},g=Symbol(),Or="http://www.w3.org/1999/xhtml",Rr="http://www.w3.org/2000/svg",kr="@attach";function gn(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let b=null;function se(t){b=t}function Ir(t){return Ct().get(t)}function Dr(t,e){return Ct().set(t,e),e}function Pr(t){return Ct().has(t)}function Lr(){return Ct()}function En(t,e=!1,n){b={p:b,c:null,e:null,s:t,x:null,l:null},Nt&&!e&&(b.l={s:null,u:null,r1:[],r2:Jt(!1)})}function mn(t){var e=b,n=e.e;if(n!==null){e.e=null;for(var r of n)Oe(r)}return t!==void 0&&(e.x=t),b=e.p,t??{}}function St(){return!Nt||b!==null&&b.l===null}function Ct(t){return b===null&&gn(),b.c??=new Map(wn(b)||void 0)}function wn(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}function ot(t){if(typeof t!="object"||t===null||z in t)return t;const e=ce(t);if(e!==sn&&e!==an)return t;var n=new Map,r=fe(t),s=H(0),a=Z,i=u=>{if(Z===a)return u();var o=v,l=Z;G(null),oe(a);var c=u();return G(o),oe(l),c};return r&&n.set("length",H(t.length)),new Proxy(t,{defineProperty(u,o,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&hn();var c=n.get(o);return c===void 0?c=i(()=>{var d=H(l.value);return n.set(o,d),d}):S(c,l.value,!0),!0},deleteProperty(u,o){var l=n.get(o);if(l===void 0){if(o in u){const f=i(()=>H(g));n.set(o,f),It(s)}}else{if(r&&typeof o=="string"){var c=n.get("length"),d=Number(o);Number.isInteger(d)&&d<c.v&&S(c,d)}S(l,g),It(s)}return!0},get(u,o,l){if(o===z)return t;var c=n.get(o),d=o in u;if(c===void 0&&(!d||st(u,o)?.writable)&&(c=i(()=>{var _=ot(d?u[o]:g),y=H(_);return y}),n.set(o,c)),c!==void 0){var f=L(c);return f===g?void 0:f}return Reflect.get(u,o,l)},getOwnPropertyDescriptor(u,o){var l=Reflect.getOwnPropertyDescriptor(u,o);if(l&&"value"in l){var c=n.get(o);c&&(l.value=L(c))}else if(l===void 0){var d=n.get(o),f=d?.v;if(d!==void 0&&f!==g)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return l},has(u,o){if(o===z)return!0;var l=n.get(o),c=l!==void 0&&l.v!==g||Reflect.has(u,o);if(l!==void 0||p!==null&&(!c||st(u,o)?.writable)){l===void 0&&(l=i(()=>{var f=c?ot(u[o]):g,_=H(f);return _}),n.set(o,l));var d=L(l);if(d===g)return!1}return c},set(u,o,l,c){var d=n.get(o),f=o in u;if(r&&o==="length")for(var _=l;_<d.v;_+=1){var y=n.get(_+"");y!==void 0?S(y,g):_ in u&&(y=i(()=>H(g)),n.set(_+"",y))}if(d===void 0)(!f||st(u,o)?.writable)&&(d=i(()=>H(void 0)),S(d,ot(l)),n.set(o,d));else{f=d.v!==g;var P=i(()=>ot(l));S(d,P)}var yt=Reflect.getOwnPropertyDescriptor(u,o);if(yt?.set&&yt.set.call(c,l),!f){if(r&&typeof o=="string"){var gt=n.get("length"),B=Number(o);Number.isInteger(B)&&B>=gt.v&&S(gt,B+1)}It(s)}return!0},ownKeys(u){L(s);var o=Reflect.ownKeys(u).filter(d=>{var f=n.get(d);return f===void 0||f.v!==g});for(var[l,c]of n)c.v!==g&&!(l in u)&&o.push(l);return o},setPrototypeOf(){vn()}})}function ae(t){try{if(t!==null&&typeof t=="object"&&z in t)return t[z]}catch{}return t}function Mr(t,e){return Object.is(ae(t),ae(e))}function zt(t){var e=A|Y,n=v!==null&&(v.f&A)!==0?v:null;return p===null||n!==null&&(n.f&T)!==0?e|=T:p.f|=ve,{ctx:b,deps:null,effects:null,equals:$e,f:e,fn:t,reactions:null,rv:0,v:g,wv:0,parent:n??p,ac:null}}function Fr(t){const e=zt(t);return Be(e),e}function jr(t){const e=zt(t);return e.equals=ye,e}function Ee(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)F(e[n])}}function Tn(t){for(var e=t.parent;e!==null;){if((e.f&A)===0)return e;e=e.parent}return null}function Xt(t){var e,n=p;ut(Tn(t));try{Ee(t),e=Ye(t)}finally{ut(n)}return e}function me(t){var e=Xt(t);if(t.equals(e)||(t.v=e,t.wv=He()),!Q){var n=(V||(t.f&T)!==0)&&t.deps!==null?W:m;k(t,n)}}const X=new Map;function Jt(t,e){var n={f:0,v:t,reactions:null,equals:$e,rv:0,wv:0};return n}function H(t,e){const n=Jt(t);return Be(n),n}function An(t,e=!1,n=!0){const r=Jt(t);return e||(r.equals=ye),Nt&&n&&b!==null&&b.l!==null&&(b.l.s??=[]).push(r),r}function S(t,e,n=!1){v!==null&&(!C||(v.f&re)!==0)&&St()&&(v.f&(A|Ht|re))!==0&&!M?.includes(t)&&pn();let r=n?ot(e):e;return xn(t,r)}function xn(t,e){if(!t.equals(e)){var n=t.v;Q?X.set(t,e):X.set(t,n),t.v=e,(t.f&A)!==0&&((t.f&Y)!==0&&Xt(t),k(t,(t.f&T)===0?m:W)),t.wv=He(),we(t,Y),St()&&p!==null&&(p.f&m)!==0&&(p.f&(j|tt))===0&&(N===null?Fn([t]):N.push(t))}return e}function qr(t,e=1){var n=L(t),r=e===1?n++:n--;return S(t,n),r}function It(t){S(t,t.v+1)}function we(t,e){var n=t.reactions;if(n!==null)for(var r=St(),s=n.length,a=0;a<s;a++){var i=n[a],u=i.f;(u&Y)===0&&(!r&&i===p||(k(i,e),(u&(m|T))!==0&&((u&A)!==0?we(i,W):kt(i))))}}function Ot(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Br(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let $=!1;function rt(t){$=t}let h;function I(t){if(t===null)throw Ot(),at;return h=t}function Zt(){return I(D(h))}function Hr(t){if($){if(D(h)!==null)throw Ot(),at;h=t}}function Vr(t=1){if($){for(var e=t,n=h;e--;)n=D(n);h=n}}function Yr(){for(var t=0,e=h;;){if(e.nodeType===_t){var n=e.data;if(n===ge){if(t===0)return e;t-=1}else(n===Kt||n===yn)&&(t+=1)}var r=D(e);e.remove(),e=r}}function Ur(t){if(!t||t.nodeType!==_t)throw Ot(),at;return t.data}var ie,Nn,Te,Ae,xe;function Pt(){if(ie===void 0){ie=window,Nn=document,Te=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Ae=st(e,"firstChild").get,xe=st(e,"nextSibling").get,ne(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ne(n)&&(n.__t=void 0)}}function U(t=""){return document.createTextNode(t)}function R(t){return Ae.call(t)}function D(t){return xe.call(t)}function Gr(t,e){if(!$)return R(t);var n=R(h);if(n===null)n=h.appendChild(U());else if(e&&n.nodeType!==Wt){var r=U();return n?.before(r),I(r),r}return I(n),n}function Wr(t,e){if(!$){var n=R(t);return n instanceof Comment&&n.data===""?D(n):n}return h}function Kr(t,e=1,n=!1){let r=$?h:t;for(var s;e--;)s=r,r=D(r);if(!$)return r;if(n&&r?.nodeType!==Wt){var a=U();return r===null?s?.after(a):r.before(a),I(a),a}return I(r),r}function Ne(t){t.textContent=""}function Se(t){p===null&&v===null&&cn(),v!==null&&(v.f&T)!==0&&p===null&&fn(),Q&&ln()}function Sn(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function q(t,e,n,r=!0){var s=p,a={ctx:b,deps:null,nodes_start:null,nodes_end:null,f:t|Y,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Rt(a),a.f|=de}catch(o){throw F(a),o}else e!==null&&kt(a);var i=n&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(ve|Vt))===0;if(!i&&r&&(s!==null&&Sn(a,s),v!==null&&(v.f&A)!==0)){var u=v;(u.effects??=[]).push(a)}return a}function zr(){return v!==null&&!C}function Ce(t){const e=q($t,null,!1);return k(e,m),e.teardown=t,e}function Xr(t){if(Se(),!v&&p&&(p.f&j)!==0){var e=b;(e.e??=[]).push(t)}else return Oe(t)}function Oe(t){return q(Bt|Gt,t,!1)}function Jr(t){return Se(),q($t|Gt,t,!0)}function Cn(t){const e=q(tt,t,!0);return()=>{F(e)}}function On(t){const e=q(tt,t,!0);return(n={})=>new Promise(r=>{n.outro?In(e,()=>{F(e),r(void 0)}):(F(e),r(void 0))})}function Zr(t){return q(Bt,t,!1)}function Qr(t,e){var n=b,r={effect:null,ran:!1};n.l.r1.push(r),r.effect=Qt(()=>{t(),!r.ran&&(r.ran=!0,S(n.l.r2,!0),We(e))})}function ts(){var t=b;Qt(()=>{if(L(t.l.r2)){for(var e of t.l.r1){var n=e.effect;(n.f&m)!==0&&k(n,W),bt(n)&&Rt(n),e.ran=!1}t.l.r2.v=!1}})}function Qt(t){return q($t,t,!0)}function es(t,e=[],n=zt){const r=e.map(n);return te(()=>t(...r.map(L)))}function te(t,e=0){var n=q($t|Ht|e,t,!0);return n}function Re(t,e=!0){return q($t|j,t,!0,e)}function ke(t){var e=t.teardown;if(e!==null){const n=Q,r=v;ue(!0),G(null);try{e.call(null)}finally{ue(n),G(r)}}}function Ie(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){n.ac?.abort(pe);var r=n.next;(n.f&tt)!==0?n.parent=null:F(n,e),n=r}}function Rn(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&j)===0&&F(e),e=n}}function F(t,e=!0){var n=!1;(e||(t.f&he)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(kn(t.nodes_start,t.nodes_end),n=!0),Ie(t,e&&!n),xt(t,0),k(t,Yt);var r=t.transitions;if(r!==null)for(const a of r)a.stop();ke(t);var s=t.parent;s!==null&&s.first!==null&&De(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function kn(t,e){for(;t!==null;){var n=t===e?null:D(t);t.remove(),t=n}}function De(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function In(t,e){var n=[];Pe(t,n,!0),Dn(n,()=>{F(t),e&&e()})}function Dn(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function Pe(t,e,n){if((t.f&it)===0){if(t.f^=it,t.transitions!==null)for(const i of t.transitions)(i.is_global||n)&&e.push(i);for(var r=t.first;r!==null;){var s=r.next,a=(r.f&Ut)!==0||(r.f&j)!==0;Pe(r,e,a?n:!1),r=s}}}function ns(t){Le(t,!0)}function Le(t,e){if((t.f&it)!==0){t.f^=it;for(var n=t.first;n!==null;){var r=n.next,s=(n.f&Ut)!==0||(n.f&j)!==0;Le(n,s?e:!1),n=r}if(t.transitions!==null)for(const a of t.transitions)(a.is_global||e)&&a.in()}}const Pn=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let dt=[],ht=[];function Me(){var t=dt;dt=[],_e(t)}function Fe(){var t=ht;ht=[],_e(t)}function je(t){dt.length===0&&queueMicrotask(Me),dt.push(t)}function rs(t){ht.length===0&&Pn(Fe),ht.push(t)}function Ln(){dt.length>0&&Me(),ht.length>0&&Fe()}function Mn(t){var e=p;if((e.f&de)===0){if((e.f&Vt)===0)throw t;e.fn(t)}else qe(t,e)}function qe(t,e){for(;e!==null;){if((e.f&Vt)!==0)try{e.b.error(t);return}catch{}e=e.parent}throw t}let K=!1,vt=null,J=!1,Q=!1;function ue(t){Q=t}let ct=[];let v=null,C=!1;function G(t){v=t}let p=null;function ut(t){p=t}let M=null;function Be(t){v!==null&&v.f&Dt&&(M===null?M=[t]:M.push(t))}let E=null,w=0,N=null;function Fn(t){N=t}let At=1,pt=0,Z=pt;function oe(t){Z=t}let V=!1;function He(){return++At}function bt(t){var e=t.f;if((e&Y)!==0)return!0;if((e&W)!==0){var n=t.deps,r=(e&T)!==0;if(n!==null){var s,a,i=(e&Tt)!==0,u=r&&p!==null&&!V,o=n.length;if(i||u){var l=t,c=l.parent;for(s=0;s<o;s++)a=n[s],(i||!a?.reactions?.includes(l))&&(a.reactions??=[]).push(l);i&&(l.f^=Tt),u&&c!==null&&(c.f&T)===0&&(l.f^=T)}for(s=0;s<o;s++)if(a=n[s],bt(a)&&me(a),a.wv>t.wv)return!0}(!r||p!==null&&!V)&&k(t,m)}return!1}function Ve(t,e,n=!0){var r=t.reactions;if(r!==null&&!M?.includes(t))for(var s=0;s<r.length;s++){var a=r[s];(a.f&A)!==0?Ve(a,e,!1):e===a&&(n?k(a,Y):(a.f&m)!==0&&k(a,W),kt(a))}}function Ye(t){var e=E,n=w,r=N,s=v,a=V,i=M,u=b,o=C,l=Z,c=t.f;E=null,w=0,N=null,V=(c&T)!==0&&(C||!J||v===null),v=(c&(j|tt))===0?t:null,M=null,se(t.ctx),C=!1,Z=++pt,t.f|=Dt,t.ac!==null&&(t.ac.abort(pe),t.ac=null);try{var d=(0,t.fn)(),f=t.deps;if(E!==null){var _;if(xt(t,w),f!==null&&w>0)for(f.length=w+E.length,_=0;_<E.length;_++)f[w+_]=E[_];else t.deps=f=E;if(!V||(c&A)!==0&&t.reactions!==null)for(_=w;_<f.length;_++)(f[_].reactions??=[]).push(t)}else f!==null&&w<f.length&&(xt(t,w),f.length=w);if(St()&&N!==null&&!C&&f!==null&&(t.f&(A|W|Y))===0)for(_=0;_<N.length;_++)Ve(N[_],t);return s!==null&&s!==t&&(pt++,N!==null&&(r===null?r=N:r.push(...N))),d}catch(y){Mn(y)}finally{E=e,w=n,N=r,v=s,V=a,M=i,se(u),C=o,Z=l,t.f^=Dt}}function jn(t,e){let n=e.reactions;if(n!==null){var r=en.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(e.f&A)!==0&&(E===null||!E.includes(e))&&(k(e,W),(e.f&(T|Tt))===0&&(e.f^=Tt),Ee(e),xt(e,0))}function xt(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)jn(t,n[r])}function Rt(t){var e=t.f;if((e&Yt)===0){k(t,m);var n=p,r=J;p=t,J=!0;try{(e&Ht)!==0?Rn(t):Ie(t),ke(t);var s=Ye(t);t.teardown=typeof s=="function"?s:null,t.wv=At;var a}finally{J=r,p=n}}}function qn(){try{_n()}catch(t){if(vt!==null)qe(t,vt);else throw t}}function Lt(){var t=J;try{var e=0;for(J=!0;ct.length>0;){e++>1e3&&qn();var n=ct,r=n.length;ct=[];for(var s=0;s<r;s++){var a=Hn(n[s]);Bn(a)}X.clear()}}finally{K=!1,J=t,vt=null}}function Bn(t){var e=t.length;if(e!==0){for(var n=0;n<e;n++){var r=t[n];if((r.f&(Yt|it))===0&&bt(r)){var s=At;if(Rt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?De(r):r.fn=null),At>s&&(r.f&Gt)!==0)break}}for(;n<e;n+=1)kt(t[n])}}function kt(t){K||(K=!0,queueMicrotask(Lt));for(var e=vt=t;e.parent!==null;){e=e.parent;var n=e.f;if((n&(tt|j))!==0){if((n&m)===0)return;e.f^=m}}ct.push(e)}function Hn(t){for(var e=[],n=t;n!==null;){var r=n.f,s=(r&(j|tt))!==0,a=s&&(r&m)!==0;if(!a&&(r&it)===0){(r&Bt)!==0?e.push(n):s?n.f^=m:bt(n)&&Rt(n);var i=n.first;if(i!==null){n=i;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}return e}function Ue(t){var e;for(t&&(K=!0,Lt(),K=!0,e=t());;){if(Ln(),ct.length===0)return K=!1,vt=null,e;K=!0,Lt()}}async function ss(){await Promise.resolve(),Ue()}function L(t){var e=t.f,n=(e&A)!==0;if(v!==null&&!C){if(!M?.includes(t)){var r=v.deps;t.rv<pt&&(t.rv=pt,E===null&&r!==null&&r[w]===t?w++:E===null?E=[t]:(!V||!E.includes(t))&&E.push(t))}}else if(n&&t.deps===null&&t.effects===null){var s=t,a=s.parent;a!==null&&(a.f&T)===0&&(s.f^=T)}if(n&&!Q&&(s=t,bt(s)&&me(s)),Q){if(X.has(t))return X.get(t);if(n){s=t;var i=s.v;return((s.f&m)!==0||Ge(s))&&(i=Xt(s)),X.set(s,i),i}}return t.v}function Ge(t){if(t.v===g)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(X.has(e)||(e.f&A)!==0&&Ge(e))return!0;return!1}function We(t){var e=C;try{return C=!0,t()}finally{C=e}}const Vn=-7169;function k(t,e){t.f=t.f&Vn|e}function as(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(z in t)Mt(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&z in n&&Mt(n)}}}function Mt(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let r in t)try{Mt(t[r],e)}catch{}const n=ce(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=rn(n);for(let s in r){const a=r[s].get;if(a)try{a.call(t)}catch{}}}}}function is(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Yn=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function us(t){return Yn.includes(t)}const Un={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function os(t){return t=t.toLowerCase(),Un[t]??t}const Gn=["touchstart","touchmove"];function Wn(t){return Gn.includes(t)}const Kn=["textarea","script","style","title"];function ls(t){return Kn.includes(t)}function fs(t,e){if(e){const n=document.body;t.autofocus=!0,je(()=>{document.activeElement===n&&t.focus()})}}function cs(t){$&&R(t)!==null&&Ne(t)}let le=!1;function zn(){le||(le=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Ke(t){var e=v,n=p;G(null),ut(null);try{return t()}finally{G(e),ut(n)}}function _s(t,e,n,r=n){t.addEventListener(e,()=>Ke(n));const s=t.__on_r;s?t.__on_r=()=>{s(),r(!0)}:t.__on_r=()=>r(!0),zn()}const ze=new Set,Ft=new Set;function Xe(t,e,n,r={}){function s(a){if(r.capture||lt.call(e,a),!a.cancelBubble)return Ke(()=>n?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?je(()=>{e.addEventListener(t,s,r)}):e.addEventListener(t,s,r),s}function ds(t,e,n,r={}){var s=Xe(e,t,n,r);return()=>{t.removeEventListener(e,s,r)}}function hs(t,e,n,r,s){var a={capture:r,passive:s},i=Xe(t,e,n,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ce(()=>{e.removeEventListener(t,i,a)})}function vs(t){for(var e=0;e<t.length;e++)ze.add(t[e]);for(var n of Ft)n(t)}function lt(t){var e=this,n=e.ownerDocument,r=t.type,s=t.composedPath?.()||[],a=s[0]||t.target,i=0,u=t.__root;if(u){var o=s.indexOf(u);if(o!==-1&&(e===document||e===window)){t.__root=e;return}var l=s.indexOf(e);if(l===-1)return;o<=l&&(i=o)}if(a=s[i]||t.target,a!==e){wt(t,"currentTarget",{configurable:!0,get(){return a||n}});var c=v,d=p;G(null),ut(null);try{for(var f,_=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var P=a["__"+r];if(P!=null&&(!a.disabled||t.target===a))if(fe(P)){var[yt,...gt]=P;yt.apply(a,[t,...gt])}else P.call(a,t)}catch(B){f?_.push(B):f=B}if(t.cancelBubble||y===e||y===null)break;a=y}if(f){for(let B of _)queueMicrotask(()=>{throw B});throw f}}finally{t.__root=e,delete t.currentTarget,G(c),ut(d)}}}let x;function Xn(){x=void 0}function ps(t){let e=null,n=$;var r;if($){for(e=h,x===void 0&&(x=R(document.head));x!==null&&(x.nodeType!==_t||x.data!==Kt);)x=D(x);x===null?rt(!1):x=I(D(x))}$||(r=document.head.appendChild(U()));try{te(()=>t(r),he)}finally{n&&(rt(!0),x=h,I(e))}}function ee(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function O(t,e){var n=p;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function $s(t,e){var n=(e&$n)!==0,r=(e&bn)!==0,s,a=!t.startsWith("<!>");return()=>{if($)return O(h,null),h;s===void 0&&(s=ee(a?t:"<!>"+t),n||(s=R(s)));var i=r||Te?document.importNode(s,!0):s.cloneNode(!0);if(n){var u=R(i),o=i.lastChild;O(u,o)}else O(i,i);return i}}function Jn(t,e,n="svg"){var r=!t.startsWith("<!>"),s=`<${n}>${r?t:"<!>"+t}</${n}>`,a;return()=>{if($)return O(h,null),h;if(!a){var i=ee(s),u=R(i);a=R(u)}var o=a.cloneNode(!0);return O(o,o),o}}function bs(t,e){return Jn(t,e,"svg")}function ys(t){return()=>Zn(t())}function Zn(t){if($)return t;const e=t.nodeType===on,n=t.tagName==="SCRIPT"?[t]:t.querySelectorAll("script"),r=p;for(const a of n){const i=document.createElement("script");for(var s of a.attributes)i.setAttribute(s.name,s.value);i.textContent=a.textContent,(e?t.firstChild===a:t===a)&&(r.nodes_start=i),(e?t.lastChild===a:t===a)&&(r.nodes_end=i),a.replaceWith(i)}return t}function gs(t=""){if(!$){var e=U(t+"");return O(e,e),e}var n=h;return n.nodeType!==Wt&&(n.before(n=U()),I(n)),O(n,n),n}function Es(){if($)return O(h,null),h;var t=document.createDocumentFragment(),e=document.createComment(""),n=U();return t.append(e,n),O(e,n),t}function Qn(t,e){if($){p.nodes_end=h,Zt();return}t!==null&&t.before(e)}let jt=!0;function ms(t){jt=t}function ws(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function Je(t,e){return Ze(t,e)}function tr(t,e){Pt(),e.intro=e.intro??!1;const n=e.target,r=$,s=h;try{for(var a=R(n);a&&(a.nodeType!==_t||a.data!==Kt);)a=D(a);if(!a)throw at;rt(!0),I(a),Zt();const i=Ze(t,{...e,anchor:a});if(h===null||h.nodeType!==_t||h.data!==ge)throw Ot(),at;return rt(!1),i}catch(i){if(i===at)return e.recover===!1&&dn(),Pt(),Ne(n),rt(!1),Je(t,e);throw i}finally{rt(r),I(s),Xn()}}const et=new Map;function Ze(t,{target:e,anchor:n,props:r={},events:s,context:a,intro:i=!0}){Pt();var u=new Set,o=d=>{for(var f=0;f<d.length;f++){var _=d[f];if(!u.has(_)){u.add(_);var y=Wn(_);e.addEventListener(_,lt,{passive:y});var P=et.get(_);P===void 0?(document.addEventListener(_,lt,{passive:y}),et.set(_,1)):et.set(_,P+1)}}};o(nn(ze)),Ft.add(o);var l=void 0,c=On(()=>{var d=n??e.appendChild(U());return Re(()=>{if(a){En({});var f=b;f.c=a}s&&(r.$$events=s),$&&O(d,null),jt=i,l=t(d,r)||{},jt=!0,$&&(p.nodes_end=h),a&&mn()}),()=>{for(var f of u){e.removeEventListener(f,lt);var _=et.get(f);--_===0?(document.removeEventListener(f,lt),et.delete(f)):et.set(f,_)}Ft.delete(o),d!==n&&d.parentNode?.removeChild(d)}});return qt.set(l,c),l}let qt=new WeakMap;function er(t,e){const n=qt.get(t);return n?(qt.delete(t),n(e)):Promise.resolve()}function Ts(t,e,...n){var r=t,s=ft,a;te(()=>{s!==(s=e())&&(a&&(F(a),a=null),a=Re(()=>s(r,...n)))},Ut),$&&(r=h)}function As(t){return(e,...n)=>{var r=t(...n),s;if($)s=h,Zt();else{var a=r.render().trim(),i=ee(a);s=R(i),e.before(s)}const u=r.setup?.(s);O(s,s),typeof u=="function"&&Ce(u)}}function nr(t,e,n){if(t==null)return e(void 0),ft;const r=We(()=>t.subscribe(e,n));return r.unsubscribe?()=>r.unsubscribe():r}const nt=[];function xs(t,e=ft){let n=null;const r=new Set;function s(u){if(be(t,u)&&(t=u,n)){const o=!nt.length;for(const l of r)l[1](),nt.push(l,t);if(o){for(let l=0;l<nt.length;l+=2)nt[l][0](nt[l+1]);nt.length=0}}}function a(u){s(u(t))}function i(u,o=ft){const l=[u,o];return r.add(l),r.size===1&&(n=e(s,a)||ft),u(t),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:s,update:a,subscribe:i}}function Ns(t){let e;return nr(t,n=>e=n)(),e}function rr(t){return new Qe(t)}function Ss(t){return class extends Qe{constructor(e){super({component:t,...e})}}}class Qe{#e;#t;constructor(e){var n=new Map,r=(a,i)=>{var u=An(i,!1,!1);return n.set(a,u),u};const s=new Proxy({...e.props||{},$$events:{}},{get(a,i){return L(n.get(i)??r(i,Reflect.get(a,i)))},has(a,i){return i===un?!0:(L(n.get(i)??r(i,Reflect.get(a,i))),Reflect.has(a,i))},set(a,i,u){return S(n.get(i)??r(i,u),u),Reflect.set(a,i,u)}});this.#t=(e.hydrate?tr:Je)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Ue(),this.#e=s.$$events;for(const a of Object.keys(this.#t))a==="$set"||a==="$destroy"||a==="$on"||wt(this,a,{get(){return this.#t[a]},set(i){this.#t[a]=i},enumerable:!0});this.#t.$set=a=>{Object.assign(s,a)},this.#t.$destroy=()=>{er(this.#t)}}$set(e){this.#t.$set(e)}$on(e,n){this.#e[e]=this.#e[e]||[];const r=(...s)=>n.call(this,...s);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let tn;typeof HTMLElement=="function"&&(tn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return s=>{const a=document.createElement("slot");r!=="default"&&(a.name=r),Qn(s,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=sr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Et(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=rr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Cn(()=>{Qt(()=>{this.$$r=!0;for(const r of mt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Et(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Et(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return mt(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Et(t,e,n,r){const s=n[t]?.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function sr(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Cs(t,e,n,r,s,a){let i=class extends tn{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return mt(e).map(u=>(e[u].attribute||u).toLowerCase())}};return mt(e).forEach(u=>{wt(i.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){o=Et(u,o,e),this.$$d[u]=o;var l=this.$$c;if(l){var c=st(l,u)?.get;c?l[u]=o:l.$set({[u]:o})}}})}),r.forEach(u=>{wt(i.prototype,u,{get(){return this.$$c?.[u]}})}),t.element=i,i}export{Tr as $,Je as A,Dr as B,ss as C,er as D,ft as E,L as F,Fr as G,Es as H,H as I,Ts as J,Vr as K,S as L,vs as M,An as N,nr as O,Ns as P,Ce as Q,wt as R,Q as S,p as T,Yt as U,zt as V,ot as W,jr as X,Jt as Y,qr as Z,ut as _,Wr as a,Dn as a$,ar as a0,z as a1,un as a2,st as a3,vr as a4,mr as a5,Ar as a6,wr as a7,xr as a8,Jr as a9,xn as aA,G as aB,se as aC,hs as aD,ps as aE,F as aF,qe as aG,ve as aH,Vt as aI,or as aJ,Nn as aK,cs as aL,ys as aM,Z as aN,It as aO,ds as aP,Cn as aQ,ie as aR,ce as aS,sn as aT,_r as aU,be as aV,U as aW,nn as aX,it as aY,Pe as aZ,Ne as a_,gs as aa,Ss as ab,te as ac,Ut as ad,ns as ae,Re as af,In as ag,g as ah,$ as ai,Zt as aj,Ur as ak,Kt as al,yn as am,Yr as an,I as ao,rt as ap,h as aq,Zr as ar,Qt as as,je as at,_e as au,ur as av,as as aw,pr as ax,St as ay,ir as az,Qn as b,br as b0,$r as b1,Er as b2,R as b3,_t as b4,ge as b5,D as b6,yr as b7,gr as b8,kn as b9,Nr as bA,Sr as bB,_s as bC,zr as bD,xs as bE,bs as bF,Qr as bG,ts as bH,ee as ba,O as bb,Ot as bc,at as bd,Rr as be,cr as bf,ls as bg,ms as bh,Br as bi,Mr as bj,Or as bk,kr as bl,is as bm,Xe as bn,fs as bo,os as bp,lr as bq,us as br,rn as bs,rs as bt,zn as bu,Ht as bv,de as bw,Cr as bx,Ke as by,jt as bz,Cs as c,mn as d,ws as e,$s as f,Gr as g,b as h,v as i,dr as j,fe as k,gn as l,hr as m,Nt as n,We as o,En as p,As as q,Hr as r,Kr as s,es as t,Xr as u,Ue as v,Lr as w,Ir as x,Pr as y,tr as z};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
const Vt="https://liipgpt.api.dev.genai.liip.ch/liipgpt",Pt="1.0.0";function Je(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var oe,xe;function Qe(){if(xe)return oe;xe=1;var a=function(k){return e(k)&&!t(k)};function e(g){return!!g&&typeof g=="object"}function t(g){var k=Object.prototype.toString.call(g);return k==="[object RegExp]"||k==="[object Date]"||o(g)}var r=typeof Symbol=="function"&&Symbol.for,n=r?Symbol.for("react.element"):60103;function o(g){return g.$$typeof===n}function s(g){return Array.isArray(g)?[]:{}}function i(g,k){return k.clone!==!1&&k.isMergeableObject(g)?z(s(g),g,k):g}function h(g,k,w){return g.concat(k).map(function(R){return i(R,w)})}function f(g,k){if(!k.customMerge)return z;var w=k.customMerge(g);return typeof w=="function"?w:z}function b(g){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(g).filter(function(k){return Object.propertyIsEnumerable.call(g,k)}):[]}function I(g){return Object.keys(g).concat(b(g))}function G(g,k){try{return k in g}catch{return!1}}function qe(g,k){return G(g,k)&&!(Object.hasOwnProperty.call(g,k)&&Object.propertyIsEnumerable.call(g,k))}function He(g,k,w){var R={};return w.isMergeableObject(g)&&I(g).forEach(function(j){R[j]=i(g[j],w)}),I(k).forEach(function(j){qe(g,j)||(G(g,j)&&w.isMergeableObject(k[j])?R[j]=f(j,w)(g[j],k[j],w):R[j]=i(k[j],w))}),R}function z(g,k,w){w=w||{},w.arrayMerge=w.arrayMerge||h,w.isMergeableObject=w.isMergeableObject||a,w.cloneUnlessOtherwiseSpecified=i;var R=Array.isArray(k),j=Array.isArray(g),Ge=R===j;return Ge?R?w.arrayMerge(g,k,w):He(g,k,w):i(k,w)}z.all=function(k,w){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(R,j){return z(R,j,w)},{})};var Ye=z;return oe=Ye,oe}var Xe=Qe();const Ke=Je(Xe),Le={tokens:{font:{family:"-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif"},colors:{brand:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},highlight:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}},components:{body:{background:"var(--color-grey-0)",color:"var(--color-grey-900)",focus:{color:"var(--color-highlight-500)"},custom:{selectionColor:"var(--color-grey-0)",selectionBackground:"var(--color-brand-700)"}},header:{background:"transparent"},container:{custom:{maxWidth:"1024px"}},avatar:{color:"var(--color-brand-400)",background:"var(--color-grey-100)"},box:{custom:{shadow:"0px 0px 2px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"}},anchor:{color:"var(--color-brand-600)",hover:{color:"var(--color-brand-950)"}},line:{color:"color-mix(in srgb, var(--color-brand-950) 20%, transparent)"},btnPrimary:{color:"var(--color-grey-0)",background:"var(--color-brand-700)",borderRadius:{minRem:.5,maxRem:.75},hover:{background:"var(--color-brand-900)"}},btnSecondary:{color:"var(--color-brand-700)",background:"var(--color-brand-100)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--color-grey-600)",background:"var(--color-grey-100)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},card:{color:"inherit",background:"var(--color-grey-100)",borderRadius:{minRem:.5,maxRem:.75},boxShadow:"none",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-100)"},custom:{iconColor:"var(--anchor-color)",iconHoverColor:"var(--anchor-hover-color)"}},pillDefault:{color:"var(--color-grey-700)",background:"var(--color-grey-200)",borderRadius:{minRem:.75,maxRem:1},boxShadow:"var(--card-box-shadow)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},input:{background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:{minRem:.25,maxRem:.5},custom:{padding:"var(--spacer-r-16) var(--spacer-r-20)",placeholderColor:"var(--color-grey-500)"}},label:{color:"var(--color-grey-600)"},hr:{color:"var(--line-color)"},contextBox:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",boxShadow:"var(--box-shadow)",custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:"var(--color-grey-1000)",titleFontWeight:"var(--font-weight-bold)",separatorColor:"var(--line-color)"}},contextBoxMenuItem:{background:"transparent",color:"var(--body-color)",borderRadius:{minRem:.25,maxRem:.5},hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{activeColor:"var(--btn-secondary-hover-color)",activeBackground:"var(--btn-secondary-hover-background)"}},chatFooter:{color:"var(--color-grey-400)",background:"var(--body-background)",borderRadius:{minRem:.75,maxRem:1},boxShadow:"0px -10px 20px 5px color-mix(in srgb, var(--body-background) 90%, transparent)"},chatInput:{color:"var(--color-grey-700)",background:"var(--card-background)",borderRadius:{minRem:.75,maxRem:1},borderColor:"transparent",borderWidth:"3px",hover:{background:"var(--card-hover-background)"},focus:{borderColor:"var(--body-focus-color)"}},chatInputSubmit:{color:"var(--btn-primary-color)",background:"var(--btn-primary-background)",borderRadius:{minRem:.5,maxRem:.75},hover:{color:"var(--btn-primary-hover-color)",background:"var(--btn-primary-hover-background)"},custom:{strokeWidth:"2",deactivatedBackground:"var(--color-grey-500)",deactivatedOpacity:"0.25",deactivatedScale:"0.8",deactivatedBorderColor:"var(--color-grey-500)"}},chatInputNotification:{background:"#dd1313",color:"var(--color-grey-0)",borderColor:"#dd1313",borderWidth:"1px",borderRadius:{minRem:.25,maxRem:.5}},dialog:{background:"var(--card-background)",color:"var(--body-color)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",boxShadow:"var(--box-shadow)",custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:"rgba(0, 0, 0, 0.25)",headerBorderBottomColor:"var(--line-color)"}},message:{color:"var(--body-color)",custom:{errorColor:"#C91658",transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:"var(--line-color)",borderWidth:"1px",custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageUser:{color:"var(--card-color)",background:"var(--card-background)",boxShadow:"var(--card-box-shadow)",borderRadius:{minRem:.5,maxRem:.75}},openButton:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-background)",borderWidth:"0",borderRadius:{minRem:.25,maxRem:.5},hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)"}},referencesTrigger:{color:"var(--anchor-color)",background:"transparent",borderRadius:{minRem:.5,maxRem:.75},hover:{color:"var(--anchor-hover-color)"}},reference:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"}},referenceNumeral:{color:"var(--anchor-color)"},referenceDomain:{color:"var(--pill-default-color)",background:"var(--pill-default-background)",hover:{color:"var(--pill-default-hover-color)",background:"var(--pill-default-hover-background)"}},referenceNumberTrigger:{color:"var(--btn-secondary-color)",background:"var(--btn-secondary-background)",borderRadius:{minRem:.25,maxRem:.25},hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"}},referenceNumberContent:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"},boxShadow:"var(--box-shadow)",custom:{width:"95cqi",maxWidth:"450px",transitionDuration:200,transitionDelay:200,transitionY:8}},referenceNumberDomain:{color:"var(--pill-default-color)",background:"var(--pill-default-background)",hover:{color:"var(--pill-default-hover-color)",background:"var(--pill-default-hover-background)"}},toast:{background:"var(--card-background)",color:"var(--body-color)",boxShadow:"var(--box-shadow)",custom:{iconSuccessColor:"#22c55e",iconErrorColor:"#ef4444",iconWarningColor:"#f97316",iconInfoColor:"#3b82f6"}},tooltip:{background:"var(--color-grey-200)",color:"var(--body-color)",borderRadius:{minRem:.2,maxRem:.3}}},svgs:{predefinedQuestion:'<svg viewBox="0 0 24 24" ><path d="M11 3.5A10.5 10.5 0 0 0 0.5 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M0.5 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M23.5 3.5A10.5 10.5 0 0 0 13 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',edit:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m15.9 4.7 3.5 3.5-10.8 10.8-3.5-3.5z"/><path d="m5.1 15.4-1.7 5.3 5.3-1.7-3.5-3.5z"/><path d="m19.3 8.1-3.5-3.5.6-.6c1-1 2.6-.9 3.5 0 .9 1 .9 2.5 0 3.5z"/></g></svg>',newConversation:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m12.6 15.3-4.7 1.6 1.5-4.8 7.6-7.6c.6-.6 1.5-.6 2.1 0l1.1 1.1c.6.6.6 1.5 0 2.1l-7.7 7.7z"/><path d="m12.8 15.1-3.3-3.3"/><path d="m20.2 12.1v7.4c0 .8-.7 1.5-1.5 1.5h-13.8c-.8 0-1.5-.7-1.5-1.5v-14.5c0-.8.7-1.5 1.5-1.5h8.4"/></g></svg>',voteUp:'<svg viewBox="0 0 24 24"><path d="M0.5 8.372h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M3.5 19.372c7.339 3.726 6.981 3.235 13.265 3.235 2.632 0 3.958 -1.715 4.732 -4.228l0 -0.016 1.907 -6.4 0 -0.012A2 2 0 0 0 21.5 9.372h-4.9a2 2 0 0 1 -1.934 -2.51l0.882 -3.344a1.713 1.713 0 0 0 -3.06 -1.418L7.6 9.025a2 2 0 0 1 -1.634 0.847H3.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',voteDown:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m.5 2.5h2c.6 0 1 .4 1 1v12c0 .6-.4 1-1 1h-2"/><path d="m3.5 15h2.5c.6 0 1.3.3 1.6.8l4.9 6.9c.4.6 1.1.9 1.8.7.9-.2 1.5-1.2 1.2-2.1l-.9-3.3c0-.2 0-.3 0-.5 0-1.1.9-2 2-2h4.9.6c1.1-.3 1.7-1.4 1.3-2.5s-1.9-6.4-1.9-6.4c-.8-2.5-2.1-4.2-4.7-4.2-6.3 0-5.9-.5-13.3 3.2"/></g></svg>',retry:'<svg viewBox="0 0 24 24"><path d="M5.5 18.928A9.5 9.5 0 0 1 17.061 3.956" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m18.5 9.498 0 -4.5 4.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m5.5 14.498 0 4.5 -4.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M18.5 5.071A9.5 9.5 0 0 1 6.883 20.006" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',message:'<svg viewBox="0 0 24 24"><path d="m12 1.6c-6 0-10.9 4-10.9 9 0 2.5 1.2 4.8 3.2 6.4l-2.3 5.4 6-3.4c1.3.4 2.6.6 3.9.6 6 0 10.9-4 10.9-9s-4.8-9-10.8-9z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',messageLoading:`<svg viewBox="0 0 24 24" width="24" height="24">
|
|
2
|
-
<circle cx="6" cy="23" r="1.75" fill="currentColor">
|
|
3
|
-
<animate attributeName="opacity" dur="1s" values="0.2;0.8;0.2" repeatCount="indefinite" begin="0s"/>
|
|
4
|
-
</circle>
|
|
5
|
-
<circle cx="12" cy="23" r="1.75" fill="currentColor">
|
|
6
|
-
<animate attributeName="opacity" dur="1s" values="0.2;0.8;0.2" repeatCount="indefinite" begin="0.3s"/>
|
|
7
|
-
</circle>
|
|
8
|
-
<circle cx="18" cy="23" r="1.75" fill="currentColor">
|
|
9
|
-
<animate attributeName="opacity" dur="1s" values="0.2;0.8;0.2" repeatCount="indefinite" begin="0.6s"/>
|
|
10
|
-
</circle>
|
|
11
|
-
</svg>`,thread:'<svg viewBox="0 0 24 24"><path d="M9.5 16.5c0 4.288 5 7.5 9.5 5.5l4 1.5 -1.5 -3a4.994 4.994 0 0 0 2 -4c0 -3.154 -3.134 -6 -7 -6s-7 2.846 -7 6Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.4 8.5a5.822 5.822 0 0 0 0.1 -1c0 -3.866 -3.8 -7 -8.5 -7S0.5 3.634 0.5 7.5a6.434 6.434 0 0 0 2.517 4.97L1 16l4.939 -1.976a9.993 9.993 0 0 0 1.561 0.361" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',submit:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"/><path d="m4 9 8-8 8 8"/></g></svg>',abort:'<svg viewBox="0 0 24 24"><g fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5h14v14H5z"/></g></svg>',expand:'<svg viewBox="0 0 24 24"><path d="m22 7-10 10-10-10" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',help:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="m9.75 15.63v-.33c0-1.13.11-2.03.3-2.7.2-.67.49-1.21.87-1.62s.84-.79 1.38-1.12c.4-.26.76-.52 1.08-.8s.57-.58.76-.92.28-.72.28-1.14c0-.44-.11-.83-.32-1.17-.21-.33-.5-.59-.86-.77s-.75-.27-1.19-.27-.82.09-1.2.28c-.38.18-.68.45-.92.81-.24.35-.37.8-.39 1.32h-3.96c.03-1.29.34-2.35.93-3.19s1.37-1.47 2.34-1.88c.97-.42 2.04-.63 3.22-.63 1.29 0 2.43.21 3.42.64.99.42 1.77 1.03 2.33 1.83s.85 1.76.85 2.89c0 .75-.13 1.42-.38 2.01-.25.58-.59 1.1-1.04 1.55-.45.44-.97.85-1.58 1.21-.51.3-.93.62-1.26.95-.32.33-.57.71-.73 1.14s-.24.96-.24 1.59v.33h-3.68zm1.92 6.18c-.65 0-1.2-.23-1.66-.68-.45-.68-1-.67-1.64 0-.63.22-1.17.67-1.62.46-.45 1.01-.68 1.66-.68s1.16.23 1.62.68c.47.45.7.99.71 1.62 0 .43-.12.81-.34 1.17-.21.35-.5.63-.85.84s-.73.31-1.15.31z"/></svg>',attach:'<svg viewBox="0 0 24 24"><path d="m7.618 15.345 8.666 -8.666a2.039 2.039 0 1 1 2.883 2.883L7.461 21.305a4.078 4.078 0 0 1 -5.767 -5.768L13.928 3.305a5.606 5.606 0 0 1 7.929 7.928L13.192 19.9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',record:'<svg viewBox="0 0 24 24"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z" fill="currentColor"/><path d="M19 10v2a7 7 0 0 1-14 0v-2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 19v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 23h8" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',reward:'<svg viewBox="0 0 24 24"><path d="M23.5 10.5a1 1 0 0 1 -1 1h-21a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h21a1 1 0 0 1 1 1Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M21.5 22.5a1 1 0 0 1 -1 1h-17a1 1 0 0 1 -1 -1v-11h19Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m8.5 7.5 0 16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m15.5 23.5 0 -16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.427 3.84C16.663 4.605 13 5.5 13 5.5s0.9 -3.663 1.66 -4.427a1.957 1.957 0 1 1 2.767 2.767Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M6.573 3.84C7.337 4.605 11 5.5 11 5.5s-0.9 -3.663 -1.66 -4.427A1.957 1.957 0 0 0 6.573 3.84Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',share:'<svg viewBox="0 0 24 24"><g><path d="M14.8 12.56a2.25 2.25 0 0 0 3.27 0.1l4.45 -4.45a3.37 3.37 0 0 0 0 -4.76l-2 -2a3.37 3.37 0 0 0 -4.76 0l-4.42 4.48a2.24 2.24 0 0 0 0.1 3.26" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M9.2 11.44a2.26 2.26 0 0 0 -3.27 -0.1l-4.45 4.45a3.37 3.37 0 0 0 0 4.76l2 2a3.37 3.37 0 0 0 4.76 0l4.45 -4.45a2.25 2.25 0 0 0 -0.1 -3.27" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m7.64 16.36 8.72 -8.72" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g></svg>',audio:'<svg viewBox="0 0 24 24"><path d="M5.5 9H2a1.5 1.5 0 0 0 -1.5 1.5v3A1.5 1.5 0 0 0 2 15h3.5l6.147 6.146a0.5 0.5 0 0 0 0.853 -0.353V3.207a0.5 0.5 0 0 0 -0.853 -0.353Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M20 4a10.893 10.893 0 0 1 0 16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.5 6a7.535 7.535 0 0 1 0 12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M15.5 8.5c2.677 1.947 2.669 5.06 0 7" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',copy:'<svg viewBox="0 0 24 24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M16.4999 5.5V1.50049c0 -0.552286 -0.4477 -1.000002 -1 -1.000002H1.49988C0.947593 0.500488 0.499878 0.948203 0.499878 1.50049V15.5005c0 0.5523 0.447715 1 1.000002 1H5.5" stroke-width="1.5"></path><path stroke="currentColor" stroke-linejoin="round" d="M7.4999 8.49951c0 -0.55228 0.44772 -1 1 -1h14c0.5523 0 1 0.44772 1 1V22.4995c0 0.5523 -0.4477 1 -1 1h-14c-0.55228 0 -1 -0.4477 -1 -1V8.49951Z" stroke-width="1.5"></path></svg>',dismiss:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="m5.743 5.742 12.514 12.514"/><path d="m18.257 5.742-12.514 12.514"/></g></svg>',menu:'<svg viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path d="m4 6h16"/><path d="m4 12h16"/><path d="m4 18h16"/></g></svg>',menuClose:'<svg viewBox="0 0 24 24"><path d="m20 16-8-8-8 8" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/></svg>',externalLink:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m18 6-12 12"/><path d="m18 17v-11h-11"/></g></svg>',internalLink:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"/><path d="m13 19 7-7-7-7"/></g></svg>',chevronDown:'<svg viewBox="0 0 24 24"><path d="m20 8-8 8-8-8" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/></svg>',liip:'<svg viewBox="0 0 199 72"><path d="m125.352941.70588235 14.588235 7.05882353-32.705882 63.29411762-14.5882352-7.0588235zm-37.6470586 0 14.3529416 7.05882353-32.7058828 63.29411762-14.5882353-7.0588235zm78.8235296 45.17647055v23.0588236h-16.235294v-64.9411765h26.117647c14.588235 0 22.588235 10.3529412 22.588235 20.9411765 0 10.8235294-7.764706 20.9411764-22.588235 20.9411764zm0-27.5294117v13.1764706h9.17647c4.470589 0 7.058824-3.2941177 7.058824-6.5882353 0-3.2941177-2.588235-6.5882353-7.058824-6.5882353zm-166.11764729-14.3529412h16.23529409v50.8235294h27.7647059v14.1176471h-43.99999999z" fill="currentColor" fill-rule="evenodd"/></svg>',avatar:`
|
|
12
|
-
<svg viewBox="0 0 24 24">
|
|
13
|
-
<circle cx="12" cy="12" r="11" fill="var(--avatar-background)"/>
|
|
14
|
-
<g fill="var(--avatar-color)" stroke="none" stroke-linecap="round" stroke-linejoin="round">
|
|
15
|
-
<path d="m14.1 12.5c-3.1 1-4.1 2.2-4.8 5-.7-2.9-1.8-4-4.8-5 3.1-1 4.1-2.2 4.8-5 .7 2.9 1.8 4 4.8 5z" vector-effect="non-scaling-stroke" />
|
|
16
|
-
<path d="m17.9 7.8c-1.7.6-2.3 1.2-2.7 2.8-.4-1.6-1-2.3-2.7-2.8 1.7-.6 2.3-1.2 2.7-2.8.4 1.6 1 2.3 2.7 2.8z" vector-effect="non-scaling-stroke" />
|
|
17
|
-
<path d="m18.2 16.1c-1.3.4-1.7.9-2 2.1-.3-1.2-.7-1.6-2-2.1 1.3-.4 1.7-.9 2-2.1.3 1.2.7 1.6 2 2.1z" vector-effect="non-scaling-stroke" />
|
|
18
|
-
</g>
|
|
19
|
-
</svg>
|
|
20
|
-
`,info:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="m6.7 8.5c-.1-4.2 5.1-6.6 8.2-4 3.3 2.5 2 8.1-2.1 8.9-.6.1-1.1.7-1.1 1.3v2.2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="11.8" cy="20.6" r=".4"/></g></svg>',openChat:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m12 4v17"/><path d="m19 11-7-7-7 7"/></g></svg>',speechInput:`
|
|
21
|
-
<svg width="0" height="0">
|
|
22
|
-
<defs>
|
|
23
|
-
<mask id="microphone-mask" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox">
|
|
24
|
-
<rect width="1" height="1" fill="black" />
|
|
25
|
-
<g
|
|
26
|
-
fill="none"
|
|
27
|
-
stroke="white"
|
|
28
|
-
stroke-width="2"
|
|
29
|
-
stroke-linecap="round"
|
|
30
|
-
stroke-linejoin="round"
|
|
31
|
-
transform="translate(0.1, 0.05) scale(0.035, 0.035)"
|
|
32
|
-
>
|
|
33
|
-
<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path>
|
|
34
|
-
<path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>
|
|
35
|
-
<path d="M12 19v4"></path>
|
|
36
|
-
<path d="M8 23h8"></path>
|
|
37
|
-
</g>
|
|
38
|
-
</mask>
|
|
39
|
-
</defs>
|
|
40
|
-
</svg>
|
|
41
|
-
`,lightMode:`
|
|
42
|
-
<svg viewBox="0 0 24 24" fill="none">
|
|
43
|
-
<path d="M18.5625 12C18.5625 10.2595 17.8711 8.59032 16.6404 7.35961C15.4097 6.1289 13.7405 5.4375 12 5.4375C10.2595 5.4375 8.59032 6.1289 7.35961 7.35961C6.1289 8.59032 5.4375 10.2595 5.4375 12C5.4375 13.7405 6.1289 15.4097 7.35961 16.6404C8.59032 17.8711 10.2595 18.5625 12 18.5625C13.7405 18.5625 15.4097 17.8711 16.6404 16.6404C17.8711 15.4097 18.5625 13.7405 18.5625 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
44
|
-
<path d="M12 20.4375V22.3125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
45
|
-
<path d="M20.4375 12H22.3125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
46
|
-
<path d="M12 3.5625V1.6875" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
47
|
-
<path d="M3.5625 12H1.6875" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
48
|
-
<path d="M6.03469 17.9663L4.70813 19.2929" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
49
|
-
<path d="M17.9662 17.9663L19.2919 19.2919" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
50
|
-
<path d="M17.9672 6.03461L19.2928 4.70898" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
51
|
-
<path d="M6.03375 6.03461L4.70813 4.70898" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
52
|
-
</svg>
|
|
53
|
-
|
|
54
|
-
`,darkMode:`
|
|
55
|
-
<svg viewBox="0 0 24 24" fill="none">
|
|
56
|
-
<path d="M17.4546 19.3866C19.2134 18.1336 20.4574 16.2846 20.9554 14.1833C20.27 14.9892 19.4098 15.6282 18.4403 16.0517C17.4708 16.4753 16.4176 16.6723 15.3605 16.6277C14.3035 16.5831 13.2706 16.2981 12.3402 15.7944C11.4098 15.2908 10.6065 14.5816 9.99136 13.7209C9.37618 12.8601 8.96532 11.8705 8.78999 10.8272C8.61467 9.78384 8.67951 8.71426 8.97957 7.69974C9.27963 6.68522 9.80703 5.75246 10.5217 4.97235C11.2363 4.19223 12.1194 3.5853 13.1038 3.19768C11.6649 3.0599 10.2141 3.2727 8.87542 3.81787C7.53673 4.36304 6.35002 5.22437 5.41679 6.32817C4.48357 7.43197 3.83159 8.7454 3.51665 10.1561C3.2017 11.5668 3.23314 13.0328 3.6083 14.4287C3.98345 15.8246 4.69115 17.1089 5.67085 18.1717C6.65055 19.2344 7.87311 20.0441 9.23394 20.5313C10.5948 21.0186 12.0534 21.169 13.485 20.9696C14.9166 20.7703 16.2787 20.2271 17.4546 19.3866Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
57
|
-
</svg>
|
|
58
|
-
`}}},et=Ke(Le,{tokens:{components:{body:{background:"var(--color-grey-900)",color:"var(--color-grey-100)",focus:{color:"var(--color-highlight-400)"},custom:{selectionColor:"var(--color-grey-1000)",selectionBackground:"var(--color-brand-400)"}},avatar:{color:"var(--color-brand-200)",background:"var(--color-grey-800)"},anchor:{color:"var(--color-brand-300)",hover:{color:"var(--color-brand-50)"}},line:{color:"color-mix(in srgb, var(--color-brand-100) 20%, transparent)"},btnPrimary:{color:"var(--color-grey-1000)",background:"var(--color-brand-300)",hover:{background:"var(--color-brand-100)"}},btnSecondary:{color:"var(--color-brand-100)",background:"var(--color-brand-900)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-800)"}},btnTertiary:{color:"var(--color-grey-0)",background:"var(--color-grey-800)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-800)"}},card:{color:"var(--body-color)",background:"var(--color-grey-800)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-900)"}},pillDefault:{color:"var(--color-grey-200)",background:"var(--color-grey-600)",boxShadow:"var(--card-box-shadow)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-700)"}},input:{background:"var(--color-grey-900)",borderColor:"var(--color-grey-700)",custom:{placeholderColor:"var(--color-grey-400)"}},label:{color:"var(--color-grey-50)"},contextBox:{custom:{titleColor:"var(--color-grey-50)"}},chatFooter:{color:"var(--color-grey-500)"},chatInput:{color:"var(--color-grey-100)"},chatInputSubmit:{custom:{deactivatedBackground:"var(--color-grey-400)",deactivatedBorderColor:"var(--color-grey-400)"}},dialog:{custom:{backgroundOverlay:"rgba(0, 0, 0, 0.5)"}},tooltip:{background:"var(--color-grey-1000)"}}}}),ne={fineGrained:{light:Le,dark:et}},tt=Object.freeze(Object.defineProperty({__proto__:null,theme:ne},Symbol.toStringTag,{value:"Module"})),ge=structuredClone(ne.fineGrained.light);ge.tokens.colors={brand:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},highlight:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}};const ze=structuredClone(ne.fineGrained.dark);ze.tokens.colors=ge.tokens.colors;const rt={fineGrained:{light:ge,dark:ze}},at=Object.freeze(Object.defineProperty({__proto__:null,theme:rt},Symbol.toStringTag,{value:"Module"}));var x;(function(a){a.assertEqual=n=>{};function e(n){}a.assertIs=e;function t(n){throw new Error}a.assertNever=t,a.arrayToEnum=n=>{const o={};for(const s of n)o[s]=s;return o},a.getValidEnumValues=n=>{const o=a.objectKeys(n).filter(i=>typeof n[n[i]]!="number"),s={};for(const i of o)s[i]=n[i];return a.objectValues(s)},a.objectValues=n=>a.objectKeys(n).map(function(o){return n[o]}),a.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const o=[];for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&o.push(s);return o},a.find=(n,o)=>{for(const s of n)if(o(s))return s},a.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function r(n,o=" | "){return n.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}a.joinValues=r,a.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(x||(x={}));var we;(function(a){a.mergeShapes=(e,t)=>({...e,...t})})(we||(we={}));const l=x.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),E=a=>{switch(typeof a){case"undefined":return l.undefined;case"string":return l.string;case"number":return Number.isNaN(a)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":return Array.isArray(a)?l.array:a===null?l.null:a.then&&typeof a.then=="function"&&a.catch&&typeof a.catch=="function"?l.promise:typeof Map<"u"&&a instanceof Map?l.map:typeof Set<"u"&&a instanceof Set?l.set:typeof Date<"u"&&a instanceof Date?l.date:l.object;default:return l.unknown}},c=x.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Z extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(o){return o.message},r={_errors:[]},n=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(n);else if(s.code==="invalid_return_type")n(s.returnTypeError);else if(s.code==="invalid_arguments")n(s.argumentsError);else if(s.path.length===0)r._errors.push(t(s));else{let i=r,h=0;for(;h<s.path.length;){const f=s.path[h];h===s.path.length-1?(i[f]=i[f]||{_errors:[]},i[f]._errors.push(t(s))):i[f]=i[f]||{_errors:[]},i=i[f],h++}}};return n(this),r}static assert(e){if(!(e instanceof Z))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,x.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},r=[];for(const n of this.issues)if(n.path.length>0){const o=n.path[0];t[o]=t[o]||[],t[o].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Z.create=a=>new Z(a);const ce=(a,e)=>{let t;switch(a.code){case c.invalid_type:a.received===l.undefined?t="Required":t=`Expected ${a.expected}, received ${a.received}`;break;case c.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(a.expected,x.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:t=`Unrecognized key(s) in object: ${x.joinValues(a.keys,", ")}`;break;case c.invalid_union:t="Invalid input";break;case c.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${x.joinValues(a.options)}`;break;case c.invalid_enum_value:t=`Invalid enum value. Expected ${x.joinValues(a.options)}, received '${a.received}'`;break;case c.invalid_arguments:t="Invalid function arguments";break;case c.invalid_return_type:t="Invalid function return type";break;case c.invalid_date:t="Invalid date";break;case c.invalid_string:typeof a.validation=="object"?"includes"in a.validation?(t=`Invalid input: must include "${a.validation.includes}"`,typeof a.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${a.validation.position}`)):"startsWith"in a.validation?t=`Invalid input: must start with "${a.validation.startsWith}"`:"endsWith"in a.validation?t=`Invalid input: must end with "${a.validation.endsWith}"`:x.assertNever(a.validation):a.validation!=="regex"?t=`Invalid ${a.validation}`:t="Invalid";break;case c.too_small:a.type==="array"?t=`Array must contain ${a.exact?"exactly":a.inclusive?"at least":"more than"} ${a.minimum} element(s)`:a.type==="string"?t=`String must contain ${a.exact?"exactly":a.inclusive?"at least":"over"} ${a.minimum} character(s)`:a.type==="number"?t=`Number must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${a.minimum}`:a.type==="bigint"?t=`Number must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${a.minimum}`:a.type==="date"?t=`Date must be ${a.exact?"exactly equal to ":a.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(a.minimum))}`:t="Invalid input";break;case c.too_big:a.type==="array"?t=`Array must contain ${a.exact?"exactly":a.inclusive?"at most":"less than"} ${a.maximum} element(s)`:a.type==="string"?t=`String must contain ${a.exact?"exactly":a.inclusive?"at most":"under"} ${a.maximum} character(s)`:a.type==="number"?t=`Number must be ${a.exact?"exactly":a.inclusive?"less than or equal to":"less than"} ${a.maximum}`:a.type==="bigint"?t=`BigInt must be ${a.exact?"exactly":a.inclusive?"less than or equal to":"less than"} ${a.maximum}`:a.type==="date"?t=`Date must be ${a.exact?"exactly":a.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(a.maximum))}`:t="Invalid input";break;case c.custom:t="Invalid input";break;case c.invalid_intersection_types:t="Intersection results could not be merged";break;case c.not_multiple_of:t=`Number must be a multiple of ${a.multipleOf}`;break;case c.not_finite:t="Number must be finite";break;default:t=e.defaultError,x.assertNever(a)}return{message:t}};let nt=ce;function ot(){return nt}const st=a=>{const{data:e,path:t,errorMaps:r,issueData:n}=a,o=[...t,...n.path||[]],s={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let i="";const h=r.filter(f=>!!f).slice().reverse();for(const f of h)i=f(s,{data:e,defaultError:i}).message;return{...n,path:o,message:i}};function d(a,e){const t=ot(),r=st({issueData:e,data:a.data,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,t,t===ce?void 0:ce].filter(n=>!!n)});a.common.issues.push(r)}class T{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if(n.status==="aborted")return v;n.status==="dirty"&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const n of t){const o=await n.key,s=await n.value;r.push({key:o,value:s})}return T.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:o,value:s}=n;if(o.status==="aborted"||s.status==="aborted")return v;o.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||n.alwaysSet)&&(r[o.value]=s.value)}return{status:e.value,value:r}}}const v=Object.freeze({status:"aborted"}),q=a=>({status:"dirty",value:a}),O=a=>({status:"valid",value:a}),Ce=a=>a.status==="aborted",je=a=>a.status==="dirty",P=a=>a.status==="valid",Q=a=>typeof Promise<"u"&&a instanceof Promise;var u;(function(a){a.errToObj=e=>typeof e=="string"?{message:e}:e||{},a.toString=e=>typeof e=="string"?e:e?.message})(u||(u={}));class N{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Se=(a,e)=>{if(P(e))return{success:!0,data:e.value};if(!a.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Z(a.common.issues);return this._error=t,this._error}}};function y(a){if(!a)return{};const{errorMap:e,invalid_type_error:t,required_error:r,description:n}=a;if(e&&(t||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(s,i)=>{const{message:h}=a;return s.code==="invalid_enum_value"?{message:h??i.defaultError}:typeof i.data>"u"?{message:h??r??i.defaultError}:s.code!=="invalid_type"?{message:i.defaultError}:{message:h??t??i.defaultError}},description:n}}class _{get description(){return this._def.description}_getType(e){return E(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:E(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new T,ctx:{common:e.parent.common,data:e.data,parsedType:E(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Q(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){const r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:E(e)},n=this._parseSync({data:e,path:r.path,parent:r});return Se(r,n)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:E(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:t});return P(r)?{value:r.value}:{issues:t.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(r=>P(r)?{value:r.value}:{issues:t.common.issues})}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:E(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await(Q(n)?n:Promise.resolve(n));return Se(r,o)}refine(e,t){const r=n=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(n):t;return this._refinement((n,o)=>{const s=e(n),i=()=>o.addIssue({code:c.custom,...r(n)});return typeof Promise<"u"&&s instanceof Promise?s.then(h=>h?!0:(i(),!1)):s?!0:(i(),!1)})}refinement(e,t){return this._refinement((r,n)=>e(r)?!0:(n.addIssue(typeof t=="function"?t(r,n):t),!1))}_refinement(e){return new W({schema:this,typeName:m.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return B.create(this,this._def)}nullable(){return F.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return A.create(this)}promise(){return re.create(this,this._def)}or(e){return K.create([this,e],this._def)}and(e){return ee.create(this,e,this._def)}transform(e){return new W({...y(this._def),schema:this,typeName:m.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new he({...y(this._def),innerType:this,defaultValue:t,typeName:m.ZodDefault})}brand(){return new Rt({typeName:m.ZodBranded,type:this,...y(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new fe({...y(this._def),innerType:this,catchValue:t,typeName:m.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return ye.create(this,e)}readonly(){return pe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const it=/^c[^\s-]{8,}$/i,ct=/^[0-9a-z]+$/,dt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,lt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ut=/^[a-z0-9_-]{21}$/i,ht=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ft=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,pt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let se;const vt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,gt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,yt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,kt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,_t=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,bt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ve="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",xt=new RegExp(`^${Ve}$`);function Pe(a){let e="[0-5]\\d";a.precision?e=`${e}\\.\\d{${a.precision}}`:a.precision==null&&(e=`${e}(\\.\\d+)?`);const t=a.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function wt(a){return new RegExp(`^${Pe(a)}$`)}function Ct(a){let e=`${Ve}T${Pe(a)}`;const t=[];return t.push(a.local?"Z?":"Z"),a.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function jt(a,e){return!!((e==="v4"||!e)&&vt.test(a)||(e==="v6"||!e)&&yt.test(a))}function St(a,e){if(!ht.test(a))return!1;try{const[t]=a.split(".");if(!t)return!1;const r=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),n=JSON.parse(atob(r));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||e&&n.alg!==e)}catch{return!1}}function Tt(a,e){return!!((e==="v4"||!e)&>.test(a)||(e==="v6"||!e)&&kt.test(a))}class M extends _{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.string){const o=this._getOrReturnCtx(e);return d(o,{code:c.invalid_type,expected:l.string,received:o.parsedType}),v}const r=new T;let n;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(n=this._getOrReturnCtx(e,n),d(n,{code:c.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")e.data.length>o.value&&(n=this._getOrReturnCtx(e,n),d(n,{code:c.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const s=e.data.length>o.value,i=e.data.length<o.value;(s||i)&&(n=this._getOrReturnCtx(e,n),s?d(n,{code:c.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):i&&d(n,{code:c.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")pt.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"email",code:c.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")se||(se=new RegExp(mt,"u")),se.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"emoji",code:c.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")lt.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"uuid",code:c.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")ut.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"nanoid",code:c.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")it.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"cuid",code:c.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")ct.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"cuid2",code:c.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")dt.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"ulid",code:c.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),d(n,{validation:"url",code:c.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"regex",code:c.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(e,n),d(n,{code:c.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(n=this._getOrReturnCtx(e,n),d(n,{code:c.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(n=this._getOrReturnCtx(e,n),d(n,{code:c.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Ct(o).test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{code:c.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?xt.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{code:c.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?wt(o).test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{code:c.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?ft.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"duration",code:c.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?jt(e.data,o.version)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"ip",code:c.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?St(e.data,o.alg)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"jwt",code:c.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?Tt(e.data,o.version)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"cidr",code:c.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?_t.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"base64",code:c.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?bt.test(e.data)||(n=this._getOrReturnCtx(e,n),d(n,{validation:"base64url",code:c.invalid_string,message:o.message}),r.dirty()):x.assertNever(o);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(n=>e.test(n),{validation:t,code:c.invalid_string,...u.errToObj(r)})}_addCheck(e){return new M({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...u.errToObj(e)})}url(e){return this._addCheck({kind:"url",...u.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...u.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...u.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...u.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...u.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...u.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...u.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...u.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...u.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...u.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...u.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...u.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...u.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...u.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...u.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...u.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...u.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...u.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...u.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...u.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...u.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...u.errToObj(t)})}nonempty(e){return this.min(1,u.errToObj(e))}trim(){return new M({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new M({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new M({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}M.create=a=>new M({checks:[],typeName:m.ZodString,coerce:a?.coerce??!1,...y(a)});function Ot(a,e){const t=(a.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,n=t>r?t:r,o=Number.parseInt(a.toFixed(n).replace(".","")),s=Number.parseInt(e.toFixed(n).replace(".",""));return o%s/10**n}class D extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==l.number){const o=this._getOrReturnCtx(e);return d(o,{code:c.invalid_type,expected:l.number,received:o.parsedType}),v}let r;const n=new T;for(const o of this._def.checks)o.kind==="int"?x.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{code:c.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?Ot(e.data,o.value)!==0&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{code:c.not_finite,message:o.message}),n.dirty()):x.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,u.toString(t))}gt(e,t){return this.setLimit("min",e,!1,u.toString(t))}lte(e,t){return this.setLimit("max",e,!0,u.toString(t))}lt(e,t){return this.setLimit("max",e,!1,u.toString(t))}setLimit(e,t,r,n){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:u.toString(n)}]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:u.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:u.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:u.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:u.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:u.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:u.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:u.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:u.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:u.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&x.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(t===null||r.value>t)&&(t=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}D.create=a=>new D({checks:[],typeName:m.ZodNumber,coerce:a?.coerce||!1,...y(a)});class H extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==l.bigint)return this._getInvalidInput(e);let r;const n=new T;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):x.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return d(t,{code:c.invalid_type,expected:l.bigint,received:t.parsedType}),v}gte(e,t){return this.setLimit("min",e,!0,u.toString(t))}gt(e,t){return this.setLimit("min",e,!1,u.toString(t))}lte(e,t){return this.setLimit("max",e,!0,u.toString(t))}lt(e,t){return this.setLimit("max",e,!1,u.toString(t))}setLimit(e,t,r,n){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:u.toString(n)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:u.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:u.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:u.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:u.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:u.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}H.create=a=>new H({checks:[],typeName:m.ZodBigInt,coerce:a?.coerce??!1,...y(a)});class de extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.boolean){const r=this._getOrReturnCtx(e);return d(r,{code:c.invalid_type,expected:l.boolean,received:r.parsedType}),v}return O(e.data)}}de.create=a=>new de({typeName:m.ZodBoolean,coerce:a?.coerce||!1,...y(a)});class X extends _{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.date){const o=this._getOrReturnCtx(e);return d(o,{code:c.invalid_type,expected:l.date,received:o.parsedType}),v}if(Number.isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return d(o,{code:c.invalid_date}),v}const r=new T;let n;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(n=this._getOrReturnCtx(e,n),d(n,{code:c.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(n=this._getOrReturnCtx(e,n),d(n,{code:c.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):x.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:u.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:u.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}X.create=a=>new X({checks:[],coerce:a?.coerce||!1,typeName:m.ZodDate,...y(a)});class Te extends _{_parse(e){if(this._getType(e)!==l.symbol){const r=this._getOrReturnCtx(e);return d(r,{code:c.invalid_type,expected:l.symbol,received:r.parsedType}),v}return O(e.data)}}Te.create=a=>new Te({typeName:m.ZodSymbol,...y(a)});class Oe extends _{_parse(e){if(this._getType(e)!==l.undefined){const r=this._getOrReturnCtx(e);return d(r,{code:c.invalid_type,expected:l.undefined,received:r.parsedType}),v}return O(e.data)}}Oe.create=a=>new Oe({typeName:m.ZodUndefined,...y(a)});class Re extends _{_parse(e){if(this._getType(e)!==l.null){const r=this._getOrReturnCtx(e);return d(r,{code:c.invalid_type,expected:l.null,received:r.parsedType}),v}return O(e.data)}}Re.create=a=>new Re({typeName:m.ZodNull,...y(a)});class Ae extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return O(e.data)}}Ae.create=a=>new Ae({typeName:m.ZodAny,...y(a)});class Ne extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return O(e.data)}}Ne.create=a=>new Ne({typeName:m.ZodUnknown,...y(a)});class $ extends _{_parse(e){const t=this._getOrReturnCtx(e);return d(t,{code:c.invalid_type,expected:l.never,received:t.parsedType}),v}}$.create=a=>new $({typeName:m.ZodNever,...y(a)});class Me extends _{_parse(e){if(this._getType(e)!==l.undefined){const r=this._getOrReturnCtx(e);return d(r,{code:c.invalid_type,expected:l.void,received:r.parsedType}),v}return O(e.data)}}Me.create=a=>new Me({typeName:m.ZodVoid,...y(a)});class A extends _{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==l.array)return d(t,{code:c.invalid_type,expected:l.array,received:t.parsedType}),v;if(n.exactLength!==null){const s=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(s||i)&&(d(t,{code:s?c.too_big:c.too_small,minimum:i?n.exactLength.value:void 0,maximum:s?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(n.minLength!==null&&t.data.length<n.minLength.value&&(d(t,{code:c.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),n.maxLength!==null&&t.data.length>n.maxLength.value&&(d(t,{code:c.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((s,i)=>n.type._parseAsync(new N(t,s,t.path,i)))).then(s=>T.mergeArray(r,s));const o=[...t.data].map((s,i)=>n.type._parseSync(new N(t,s,t.path,i)));return T.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new A({...this._def,minLength:{value:e,message:u.toString(t)}})}max(e,t){return new A({...this._def,maxLength:{value:e,message:u.toString(t)}})}length(e,t){return new A({...this._def,exactLength:{value:e,message:u.toString(t)}})}nonempty(e){return this.min(1,e)}}A.create=(a,e)=>new A({type:a,minLength:null,maxLength:null,exactLength:null,typeName:m.ZodArray,...y(e)});function V(a){if(a instanceof C){const e={};for(const t in a.shape){const r=a.shape[t];e[t]=B.create(V(r))}return new C({...a._def,shape:()=>e})}else return a instanceof A?new A({...a._def,type:V(a.element)}):a instanceof B?B.create(V(a.unwrap())):a instanceof F?F.create(V(a.unwrap())):a instanceof L?L.create(a.items.map(e=>V(e))):a}class C extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=x.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==l.object){const f=this._getOrReturnCtx(e);return d(f,{code:c.invalid_type,expected:l.object,received:f.parsedType}),v}const{status:r,ctx:n}=this._processInputParams(e),{shape:o,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof $&&this._def.unknownKeys==="strip"))for(const f in n.data)s.includes(f)||i.push(f);const h=[];for(const f of s){const b=o[f],I=n.data[f];h.push({key:{status:"valid",value:f},value:b._parse(new N(n,I,n.path,f)),alwaysSet:f in n.data})}if(this._def.catchall instanceof $){const f=this._def.unknownKeys;if(f==="passthrough")for(const b of i)h.push({key:{status:"valid",value:b},value:{status:"valid",value:n.data[b]}});else if(f==="strict")i.length>0&&(d(n,{code:c.unrecognized_keys,keys:i}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const b of i){const I=n.data[b];h.push({key:{status:"valid",value:b},value:f._parse(new N(n,I,n.path,b)),alwaysSet:b in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const f=[];for(const b of h){const I=await b.key,G=await b.value;f.push({key:I,value:G,alwaysSet:b.alwaysSet})}return f}).then(f=>T.mergeObjectSync(r,f)):T.mergeObjectSync(r,h)}get shape(){return this._def.shape()}strict(e){return u.errToObj,new C({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,r)=>{const n=this._def.errorMap?.(t,r).message??r.defaultError;return t.code==="unrecognized_keys"?{message:u.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new C({...this._def,unknownKeys:"strip"})}passthrough(){return new C({...this._def,unknownKeys:"passthrough"})}extend(e){return new C({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new C({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:m.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new C({...this._def,catchall:e})}pick(e){const t={};for(const r of x.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new C({...this._def,shape:()=>t})}omit(e){const t={};for(const r of x.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new C({...this._def,shape:()=>t})}deepPartial(){return V(this)}partial(e){const t={};for(const r of x.objectKeys(this.shape)){const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new C({...this._def,shape:()=>t})}required(e){const t={};for(const r of x.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof B;)o=o._def.innerType;t[r]=o}return new C({...this._def,shape:()=>t})}keyof(){return De(x.objectKeys(this.shape))}}C.create=(a,e)=>new C({shape:()=>a,unknownKeys:"strip",catchall:$.create(),typeName:m.ZodObject,...y(e)});C.strictCreate=(a,e)=>new C({shape:()=>a,unknownKeys:"strict",catchall:$.create(),typeName:m.ZodObject,...y(e)});C.lazycreate=(a,e)=>new C({shape:a,unknownKeys:"strip",catchall:$.create(),typeName:m.ZodObject,...y(e)});class K extends _{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;function n(o){for(const i of o)if(i.result.status==="valid")return i.result;for(const i of o)if(i.result.status==="dirty")return t.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(i=>new Z(i.ctx.common.issues));return d(t,{code:c.invalid_union,unionErrors:s}),v}if(t.common.async)return Promise.all(r.map(async o=>{const s={...t,common:{...t.common,issues:[]},parent:null};return{result:await o._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}})).then(n);{let o;const s=[];for(const h of r){const f={...t,common:{...t.common,issues:[]},parent:null},b=h._parseSync({data:t.data,path:t.path,parent:f});if(b.status==="valid")return b;b.status==="dirty"&&!o&&(o={result:b,ctx:f}),f.common.issues.length&&s.push(f.common.issues)}if(o)return t.common.issues.push(...o.ctx.common.issues),o.result;const i=s.map(h=>new Z(h));return d(t,{code:c.invalid_union,unionErrors:i}),v}}get options(){return this._def.options}}K.create=(a,e)=>new K({options:a,typeName:m.ZodUnion,...y(e)});function le(a,e){const t=E(a),r=E(e);if(a===e)return{valid:!0,data:a};if(t===l.object&&r===l.object){const n=x.objectKeys(e),o=x.objectKeys(a).filter(i=>n.indexOf(i)!==-1),s={...a,...e};for(const i of o){const h=le(a[i],e[i]);if(!h.valid)return{valid:!1};s[i]=h.data}return{valid:!0,data:s}}else if(t===l.array&&r===l.array){if(a.length!==e.length)return{valid:!1};const n=[];for(let o=0;o<a.length;o++){const s=a[o],i=e[o],h=le(s,i);if(!h.valid)return{valid:!1};n.push(h.data)}return{valid:!0,data:n}}else return t===l.date&&r===l.date&&+a==+e?{valid:!0,data:a}:{valid:!1}}class ee extends _{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=(o,s)=>{if(Ce(o)||Ce(s))return v;const i=le(o.value,s.value);return i.valid?((je(o)||je(s))&&t.dirty(),{status:t.value,value:i.data}):(d(r,{code:c.invalid_intersection_types}),v)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,s])=>n(o,s)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ee.create=(a,e,t)=>new ee({left:a,right:e,typeName:m.ZodIntersection,...y(t)});class L extends _{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.array)return d(r,{code:c.invalid_type,expected:l.array,received:r.parsedType}),v;if(r.data.length<this._def.items.length)return d(r,{code:c.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),v;!this._def.rest&&r.data.length>this._def.items.length&&(d(r,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const o=[...r.data].map((s,i)=>{const h=this._def.items[i]||this._def.rest;return h?h._parse(new N(r,s,r.path,i)):null}).filter(s=>!!s);return r.common.async?Promise.all(o).then(s=>T.mergeArray(t,s)):T.mergeArray(t,o)}get items(){return this._def.items}rest(e){return new L({...this._def,rest:e})}}L.create=(a,e)=>{if(!Array.isArray(a))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new L({items:a,typeName:m.ZodTuple,rest:null,...y(e)})};class te extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.object)return d(r,{code:c.invalid_type,expected:l.object,received:r.parsedType}),v;const n=[],o=this._def.keyType,s=this._def.valueType;for(const i in r.data)n.push({key:o._parse(new N(r,i,r.path,i)),value:s._parse(new N(r,r.data[i],r.path,i)),alwaysSet:i in r.data});return r.common.async?T.mergeObjectAsync(t,n):T.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return t instanceof _?new te({keyType:e,valueType:t,typeName:m.ZodRecord,...y(r)}):new te({keyType:M.create(),valueType:e,typeName:m.ZodRecord,...y(t)})}}class Ze extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.map)return d(r,{code:c.invalid_type,expected:l.map,received:r.parsedType}),v;const n=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([i,h],f)=>({key:n._parse(new N(r,i,r.path,[f,"key"])),value:o._parse(new N(r,h,r.path,[f,"value"]))}));if(r.common.async){const i=new Map;return Promise.resolve().then(async()=>{for(const h of s){const f=await h.key,b=await h.value;if(f.status==="aborted"||b.status==="aborted")return v;(f.status==="dirty"||b.status==="dirty")&&t.dirty(),i.set(f.value,b.value)}return{status:t.value,value:i}})}else{const i=new Map;for(const h of s){const f=h.key,b=h.value;if(f.status==="aborted"||b.status==="aborted")return v;(f.status==="dirty"||b.status==="dirty")&&t.dirty(),i.set(f.value,b.value)}return{status:t.value,value:i}}}}Ze.create=(a,e,t)=>new Ze({valueType:e,keyType:a,typeName:m.ZodMap,...y(t)});class Y extends _{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.set)return d(r,{code:c.invalid_type,expected:l.set,received:r.parsedType}),v;const n=this._def;n.minSize!==null&&r.data.size<n.minSize.value&&(d(r,{code:c.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),n.maxSize!==null&&r.data.size>n.maxSize.value&&(d(r,{code:c.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const o=this._def.valueType;function s(h){const f=new Set;for(const b of h){if(b.status==="aborted")return v;b.status==="dirty"&&t.dirty(),f.add(b.value)}return{status:t.value,value:f}}const i=[...r.data.values()].map((h,f)=>o._parse(new N(r,h,r.path,f)));return r.common.async?Promise.all(i).then(h=>s(h)):s(i)}min(e,t){return new Y({...this._def,minSize:{value:e,message:u.toString(t)}})}max(e,t){return new Y({...this._def,maxSize:{value:e,message:u.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Y.create=(a,e)=>new Y({valueType:a,minSize:null,maxSize:null,typeName:m.ZodSet,...y(e)});class Ie extends _{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ie.create=(a,e)=>new Ie({getter:a,typeName:m.ZodLazy,...y(e)});class ue extends _{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return d(t,{received:t.data,code:c.invalid_literal,expected:this._def.value}),v}return{status:"valid",value:e.data}}get value(){return this._def.value}}ue.create=(a,e)=>new ue({value:a,typeName:m.ZodLiteral,...y(e)});function De(a,e){return new U({values:a,typeName:m.ZodEnum,...y(e)})}class U extends _{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{expected:x.joinValues(r),received:t.parsedType,code:c.invalid_type}),v}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{received:t.data,code:c.invalid_enum_value,options:r}),v}return O(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return U.create(e,{...this._def,...t})}exclude(e,t=this._def){return U.create(this.options.filter(r=>!e.includes(r)),{...this._def,...t})}}U.create=De;class Ee extends _{_parse(e){const t=x.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==l.string&&r.parsedType!==l.number){const n=x.objectValues(t);return d(r,{expected:x.joinValues(n),received:r.parsedType,code:c.invalid_type}),v}if(this._cache||(this._cache=new Set(x.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const n=x.objectValues(t);return d(r,{received:r.data,code:c.invalid_enum_value,options:n}),v}return O(e.data)}get enum(){return this._def.values}}Ee.create=(a,e)=>new Ee({values:a,typeName:m.ZodNativeEnum,...y(e)});class re extends _{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.promise&&t.common.async===!1)return d(t,{code:c.invalid_type,expected:l.promise,received:t.parsedType}),v;const r=t.parsedType===l.promise?t.data:Promise.resolve(t.data);return O(r.then(n=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}}re.create=(a,e)=>new re({type:a,typeName:m.ZodPromise,...y(e)});class W extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===m.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:s=>{d(r,s),s.fatal?t.abort():t.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){const s=n.transform(r.data,o);if(r.common.async)return Promise.resolve(s).then(async i=>{if(t.value==="aborted")return v;const h=await this._def.schema._parseAsync({data:i,path:r.path,parent:r});return h.status==="aborted"?v:h.status==="dirty"||t.value==="dirty"?q(h.value):h});{if(t.value==="aborted")return v;const i=this._def.schema._parseSync({data:s,path:r.path,parent:r});return i.status==="aborted"?v:i.status==="dirty"||t.value==="dirty"?q(i.value):i}}if(n.type==="refinement"){const s=i=>{const h=n.refinement(i,o);if(r.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?v:(i.status==="dirty"&&t.dirty(),s(i.value),{status:t.value,value:i.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>i.status==="aborted"?v:(i.status==="dirty"&&t.dirty(),s(i.value).then(()=>({status:t.value,value:i.value}))))}if(n.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!P(s))return v;const i=n.transform(s.value,o);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>P(s)?Promise.resolve(n.transform(s.value,o)).then(i=>({status:t.value,value:i})):v);x.assertNever(n)}}W.create=(a,e,t)=>new W({schema:a,typeName:m.ZodEffects,effect:e,...y(t)});W.createWithPreprocess=(a,e,t)=>new W({schema:e,effect:{type:"preprocess",transform:a},typeName:m.ZodEffects,...y(t)});class B extends _{_parse(e){return this._getType(e)===l.undefined?O(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}B.create=(a,e)=>new B({innerType:a,typeName:m.ZodOptional,...y(e)});class F extends _{_parse(e){return this._getType(e)===l.null?O(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}F.create=(a,e)=>new F({innerType:a,typeName:m.ZodNullable,...y(e)});class he extends _{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===l.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}he.create=(a,e)=>new he({innerType:a,typeName:m.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...y(e)});class fe extends _{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Q(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Z(r.common.issues)},input:r.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Z(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}fe.create=(a,e)=>new fe({innerType:a,typeName:m.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...y(e)});class Be extends _{_parse(e){if(this._getType(e)!==l.nan){const r=this._getOrReturnCtx(e);return d(r,{code:c.invalid_type,expected:l.nan,received:r.parsedType}),v}return{status:"valid",value:e.data}}}Be.create=a=>new Be({typeName:m.ZodNaN,...y(a)});class Rt extends _{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ye extends _{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?v:o.status==="dirty"?(t.dirty(),q(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const n=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return n.status==="aborted"?v:n.status==="dirty"?(t.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:r.path,parent:r})}}static create(e,t){return new ye({in:e,out:t,typeName:m.ZodPipeline})}}class pe extends _{_parse(e){const t=this._def.innerType._parse(e),r=n=>(P(n)&&(n.value=Object.freeze(n.value)),n);return Q(t)?t.then(n=>r(n)):r(t)}unwrap(){return this._def.innerType}}pe.create=(a,e)=>new pe({innerType:a,typeName:m.ZodReadonly,...y(e)});var m;(function(a){a.ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly"})(m||(m={}));const p=M.create,me=D.create,Dt=de.create;$.create;const At=A.create,S=C.create,ke=K.create;ee.create;L.create;const _e=te.create,Ut=ue.create,Ue=U.create;re.create;B.create;F.create;const ve=S({minRem:me(),maxRem:me()}),J=S({0:p().optional(),50:p(),100:p(),200:p(),300:p(),400:p(),500:p(),600:p(),700:p(),800:p(),900:p(),950:p(),1e3:p().optional()}),ie=S({color:p().optional(),background:p().optional(),borderWidth:p().optional(),borderColor:p().optional(),boxShadow:p().optional()}),Nt=S({borderRadius:ve.optional(),custom:_e(p(),ke([p(),me()])).optional(),hover:ie.optional(),focus:ie.optional()}).and(ie),Mt=S({family:p()}),Zt=_e(Ue(["predefinedQuestion","edit","newConversation","voteUp","voteDown","retry","message","messageLoading","thread","submit","abort","expand","help","attach","record","reward","share","audio","copy","dismiss","menu","info","menuClose","chevronDown","internalLink","externalLink","liip","avatar","openChat","speechInput","lightMode","darkMode"]),p()),It=S({font:Mt,colors:S({brand:J,accent:J.optional(),highlight:J,grey:J}),components:_e(p(),Nt),svgs:Zt}),ae=S({customCSS:p().optional(),fontCSS:p().optional(),fontURLs:p().array().optional(),tokens:It});S({light:ae,dark:ae});const Et=S({light:ae,dark:ae}).deepPartial(),We=S({50:p(),100:p(),200:p(),300:p(),400:p(),500:p(),600:p(),700:p(),800:p(),900:p(),950:p()}),Fe=Ue(["slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"]),$e=ke([We,Fe]),Bt=ke([We.and(S({0:p(),1e3:p()})),Fe]),$t=S({avatarImageUrl:p().optional(),colors:S({brand:$e.optional(),highlight:$e.optional(),grey:Bt.optional(),background:p().optional(),text:p().optional(),anchor:S({default:p().optional(),hover:p().optional()}).optional()}).optional(),font:S({size:ve.optional(),family:p().optional(),urls:At(p()).optional()}).optional(),borderRadius:ve.optional(),fineGrained:Et.optional()}),Lt=a=>a.split("/").pop().split(".")[0],zt=Object.assign({"./default/fallback-dev.theme.ts":at,"./default/fallback.theme.ts":tt}),be=new Map;Object.entries(zt).forEach(([a,e])=>{const{error:t,data:r}=$t.safeParse(e?.theme);if(t){console.error(`Invalid theme in ${a}:`,t);return}be.set(Lt(a),r)});const Wt=a=>{const e=be.get(a);return e||(console.error(`Theme ${a} not found`),ne)};Array.from(be.keys());export{Vt as P,At as a,Dt as b,ne as c,Ke as d,Ue as e,Lt as f,Je as g,Wt as h,Pt as i,Ut as l,me as n,S as o,_e as r,p as s,$t as t,ke as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ac as A,ad as I,ae as k,af as T,ag as S,ah as w,ai as d,aj as N,ak as y,al as L,am as _,an as q,ao as $,ap as p,aq as P,ar as B,as as C,o as O,at as j,a1 as D}from"./DUt8zN7X.js";function H(a,i,[n,s]=[0,0]){d&&n===0&&N();var t=a,e=null,c=null,r=w,b=n>0?I:0,E=!1;const l=(u,v=!0)=>{E=!0,o(v,u)},o=(u,v)=>{if(r===(r=u))return;let f=!1;if(d&&s!==-1){if(n===0){const h=y(t);h===L?s=0:h===_?s=1/0:(s=parseInt(h.substring(1)),s!==s&&(s=r?1/0:-1))}const m=s>n;!!r===m&&(t=q(),$(t),p(!1),f=!0,s=-1)}r?(e?k(e):v&&(e=T(()=>v(t))),c&&S(c,()=>{c=null})):(c?k(c):v&&(c=T(()=>v(t,[n+1,s]))),e&&S(e,()=>{e=null})),f&&p(!0)};A(()=>{E=!1,i(l),E||o(null,null)},b),d&&(t=P)}function M(a,i,n){d&&N();var s=a,t,e;A(()=>{t!==(t=i())&&(e&&(S(e),e=null),t&&(e=T(()=>n(s,t))))},I),d&&(s=P)}function R(a,i){return a===i||a?.[D]===i}function W(a={},i,n,s){return B(()=>{var t,e;return C(()=>{t=e,e=[],O(()=>{a!==n(...e)&&(i(a,...e),t&&R(n(...t),a)&&i(null,...t))})}),()=>{j(()=>{e&&R(n(...e),a)&&i(null,...e)})}}),a}const U="modulepreload",Y=function(a,i){return new URL(a,i).href},g={},Z=function(i,n,s){let t=Promise.resolve();if(n&&n.length>0){let E=function(l){return Promise.all(l.map(o=>Promise.resolve(o).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};const c=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),b=r?.nonce||r?.getAttribute("nonce");t=E(n.map(l=>{if(l=Y(l,s),l in g)return;g[l]=!0;const o=l.endsWith(".css"),u=o?'[rel="stylesheet"]':"";if(!!s)for(let m=c.length-1;m>=0;m--){const h=c[m];if(h.href===l&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=o?"stylesheet":U,o||(f.as="script"),f.crossOrigin="",f.href=l,b&&f.setAttribute("nonce",b),document.head.appendChild(f),o)return new Promise((m,h)=>{f.addEventListener("load",m),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function e(c){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=c,window.dispatchEvent(r),!r.defaultPrevented)throw c}return t.then(c=>{for(const r of c||[])r.status==="rejected"&&e(r.reason);return i().catch(e)})};export{Z as _,W as b,M as c,H as i};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{p as J,H as b,a as d,F as k,I as K,b as n,E as x,J as L,d as P,v as q,K as R,f as B,s as E,t as T,e as U,L as S,g as w,r as z,M as j,c as A}from"./DUt8zN7X.js";import{i as F}from"./Dq6jck_i.js";import{a as D}from"./DH3truD-.js";import{p as M}from"./BiXZbQqO.js";import{b as G}from"./CaDmIJkP.js";var N=(u,a)=>a()(),O=B('<div class="chat-app__container"><div class="error-message svelte-4thrqu">Server is unreachable, please try later... <button class="error-message__retry-button svelte-4thrqu">Retry</button></div></div>'),Q=B(" <!>",1);const V={hash:"svelte-4thrqu",code:`
|
|
2
|
-
/* These styles are inline, because at this point theme loading has failed. */.error-message.svelte-4thrqu {display:table;z-index:1000;width:auto;margin:2rem auto;padding:2rem;border-radius:2px;background:white;color:oklch(27.8% 0.033 256.848);font-family:-apple-system,
|
|
3
|
-
BlinkMacSystemFont,
|
|
4
|
-
avenir next,
|
|
5
|
-
avenir,
|
|
6
|
-
segoe ui,
|
|
7
|
-
helvetica neue,
|
|
8
|
-
helvetica,
|
|
9
|
-
Cantarell,
|
|
10
|
-
Ubuntu,
|
|
11
|
-
roboto,
|
|
12
|
-
noto,
|
|
13
|
-
arial,
|
|
14
|
-
sans-serif;}.error-message__retry-button.svelte-4thrqu {border:none;outline:none;background:none;font-size:1rem;text-decoration:underline;&:active {outline:none;}}`};function W(u,a){J(a,!0),D(u,V);const h=(e,o=x,f=x)=>{R();var i=Q(),l=d(i),r=E(l);{var c=t=>{},_=t=>{var p=O(),y=w(p),I=E(w(y));I.__click=[N,f],z(y),z(p),n(t,p)};F(r,t=>{m()?t(c):t(_,!1)})}T(t=>U(l,`${t??""} `),[()=>console.error(`Panic, uncaught error:
|
|
15
|
-
`,o())??""]),n(e,i)};let v=M(a,"body",7),m=M(a,"silent",7),s=K(void 0);const C=e=>{S(s,{error:e},!0)};var g=b(),H=d(g);return G(H,{get failed(){return h}},e=>{var o=b(),f=d(o);{var i=r=>{h(r,()=>k(s).error,()=>()=>{S(s,void 0)})},l=r=>{var c=b(),_=d(c);L(_,v,()=>C),n(r,c)};F(f,r=>{k(s)?r(i):r(l,!1)})}n(e,o)}),n(u,g),P({get body(){return v()},set body(e){v(e),q()},get silent(){return m()},set silent(e){m(e),q()}})}j(["click"]);A(W,{body:{},silent:{}},[],[],!0);export{W as E};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C1WA-Sd0.js","../chunks/DkXqbGhE.js","../chunks/NZTpNUN0.js","../chunks/DUt8zN7X.js","../chunks/BiXZbQqO.js","../nodes/1.D_clQXr4.js","../chunks/DCtHJYgu.js","../chunks/BmumJykv.js","../chunks/D5wkZK_2.js","../nodes/2.DVQmbfVp.js","../chunks/CaDmIJkP.js","../chunks/Dq6jck_i.js","../chunks/DH3truD-.js","../nodes/3.CVRgUIw6.js","../chunks/BynrE7QB.js","../chunks/CXbcLk5j.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{i as x,c as O,b as I,_ as E}from"../chunks/Dq6jck_i.js";import{c as N,p as Q,a9 as U,u as W,F as i,I as L,L as R,C as X,f as j,a as P,s as Y,b as l,d as Z,v as c,H as w,G as A,g as $,r as tt,aa as et,t as rt,e as at,ab as ot}from"../chunks/DUt8zN7X.js";import"../chunks/NZTpNUN0.js";import{o as st}from"../chunks/D5wkZK_2.js";import{p as u}from"../chunks/BiXZbQqO.js";const vt={};var nt=j('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),it=j("<!> <!>",1);function F(o,e){Q(e,!0);let _=u(e,"stores",7),h=u(e,"page",7),s=u(e,"constructors",7),r=u(e,"components",23,()=>[]),d=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>_().page.set(h())),W(()=>{_(),h(),s(),r(),d(),f(),b(),_().page.notify()});let y=L(!1),D=L(!1),T=L(null);st(()=>{const t=_().page.subscribe(()=>{i(y)&&(R(D,!0),X().then(()=>{R(T,document.title||"untitled page",!0)}))});return R(y,!0),t});const G=A(()=>s()[1]);var V=it(),k=P(V);{var H=t=>{var a=w();const p=A(()=>s()[0]);var v=P(a);O(v,()=>i(p),(n,m)=>{I(m(n,{get data(){return f()},get form(){return d()},children:(g,_t)=>{var C=w(),z=P(C);O(z,()=>i(G),(B,J)=>{I(J(B,{get data(){return b()},get form(){return d()}}),K=>r()[1]=K,()=>r()?.[1])}),l(g,C)},$$slots:{default:!0}}),g=>r()[0]=g,()=>r()?.[0])}),l(t,a)},M=t=>{var a=w();const p=A(()=>s()[0]);var v=P(a);O(v,()=>i(p),(n,m)=>{I(m(n,{get data(){return f()},get form(){return d()}}),g=>r()[0]=g,()=>r()?.[0])}),l(t,a)};x(k,t=>{s()[1]?t(H):t(M,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),p=$(a);{var v=n=>{var m=et();rt(()=>at(m,i(T))),l(n,m)};x(p,n=>{i(D)&&n(v)})}tt(a),l(t,a)};x(S,t=>{i(y)&&t(q)})}return l(o,V),Z({get stores(){return _()},set stores(t){_(t),c()},get page(){return h()},set page(t){h(t),c()},get constructors(){return s()},set constructors(t){s(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return d()},set form(t){d(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}N(F,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=ot(F),ht=[()=>E(()=>import("../nodes/0.C1WA-Sd0.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.D_clQXr4.js"),__vite__mapDeps([5,2,6,3,7,8]),import.meta.url),()=>E(()=>import("../nodes/2.DVQmbfVp.js"),__vite__mapDeps([9,10,11,3,2,12,4,6,7,8,1]),import.meta.url),()=>E(()=>import("../nodes/3.CVRgUIw6.js"),__vite__mapDeps([13,2,4,3,12,11,6,7,8,1,14,15]),import.meta.url)],bt=[],Et={"/":[2],"/sidebar":[3]},ct={handleError:({error:o})=>{console.error(o)},reroute:()=>{},transport:{}},ut=Object.fromEntries(Object.entries(ct.transport).map(([o,e])=>[o,e.decode])),Pt=!1,yt=(o,e)=>ut[o](e);export{yt as decode,ut as decoders,Et as dictionary,Pt as hash,ct as hooks,vt as matchers,ht as nodes,gt as root,bt as server_loads};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/BmumJykv.js";export{o as load_css,r as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunks/NZTpNUN0.js";import{i as c,p as r}from"../chunks/DCtHJYgu.js";import{c as h,p as l,f as u,a as _,t as v,b as g,d,s as x,e as s,g as p,r as o}from"../chunks/DUt8zN7X.js";var b=u("<h1> </h1> <p> </p>",1);function E(m,i){l(i,!1),c();var a=b(),t=_(a),f=p(t,!0);o(t);var e=x(t,2),n=p(e,!0);o(e),v(()=>{s(f,r.status),s(n,r.error?.message)}),g(m,a),d()}h(E,{},[],[],!0);export{E as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as m}from"../chunks/CaDmIJkP.js";export{m as component};
|