@liip/liipgpt 3.3.3 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/liipgpt-button.iife.js +107 -68
- package/chat/liipgpt-chat.iife.js +109 -73
- package/config/index.cjs +13292 -3693
- package/config/index.d.ts +5252 -26814
- package/config/index.js +13256 -3657
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/6gGOJNBB.js +1 -0
- package/configurator/_app/immutable/chunks/7rClRQom.js +1 -0
- package/configurator/_app/immutable/chunks/BB-Kufbf.js +1 -0
- package/configurator/_app/immutable/chunks/BVNSySP_.js +1 -0
- package/configurator/_app/immutable/chunks/B_s1y-uB.js +113 -0
- package/configurator/_app/immutable/chunks/Bg7q39r6.js +1 -0
- package/configurator/_app/immutable/chunks/{CUA2mQrz.js → CR5-hwU3.js} +1 -1
- package/configurator/_app/immutable/chunks/CZYj352c.js +324 -0
- package/configurator/_app/immutable/chunks/CfJtR48A.js +2 -0
- package/configurator/_app/immutable/chunks/CtL9aWNb.js +1 -0
- package/configurator/_app/immutable/chunks/D9XVZ84R.js +143 -0
- package/configurator/_app/immutable/chunks/DD0FEaHW.js +15 -0
- package/configurator/_app/immutable/chunks/DsnmJJEf.js +1 -0
- package/configurator/_app/immutable/chunks/hMUFqo62.js +1 -0
- package/configurator/_app/immutable/chunks/hrZ0qwUL.js +1 -0
- package/configurator/_app/immutable/entry/app.BbbnkAQt.js +2 -0
- package/configurator/_app/immutable/entry/start.DAHFfzFY.js +1 -0
- package/configurator/_app/immutable/nodes/{0.DMFk0iPH.js → 0.Dw_qwOKi.js} +3 -3
- package/configurator/_app/immutable/nodes/1.C3OuXBnY.js +1 -0
- package/configurator/_app/immutable/nodes/2.BbDw7GOs.js +31 -0
- package/configurator/_app/immutable/nodes/3.B6eXMvOe.js +954 -0
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +12 -12
- package/configurator/sidebar.html +12 -12
- package/index.cjs +16236 -6041
- package/index.d.ts +6964 -70037
- package/index.js +16236 -6041
- package/package.json +4 -4
- package/configurator/_app/immutable/chunks/3Jx_2Hd6.js +0 -1
- package/configurator/_app/immutable/chunks/B6FwuxF-.js +0 -286
- package/configurator/_app/immutable/chunks/BXEdQL9F.js +0 -3
- package/configurator/_app/immutable/chunks/Bjule0iI.js +0 -1
- package/configurator/_app/immutable/chunks/C7PQ7vvk.js +0 -1
- package/configurator/_app/immutable/chunks/CCVb_64a.js +0 -15
- package/configurator/_app/immutable/chunks/CKh0DCID.js +0 -116
- package/configurator/_app/immutable/chunks/Cg1M8nhR.js +0 -1
- package/configurator/_app/immutable/chunks/CjlIFGQR.js +0 -1
- package/configurator/_app/immutable/chunks/DzvSdHYT.js +0 -1
- package/configurator/_app/immutable/chunks/NZTpNUN0.js +0 -1
- package/configurator/_app/immutable/chunks/PaGpozZ3.js +0 -1
- package/configurator/_app/immutable/chunks/UUVzZ2eQ.js +0 -1
- package/configurator/_app/immutable/chunks/w58EqJ4L.js +0 -143
- package/configurator/_app/immutable/entry/app.DaWMcPqV.js +0 -2
- package/configurator/_app/immutable/entry/start.B28NnTz6.js +0 -1
- package/configurator/_app/immutable/nodes/1.Dc_xA0Gn.js +0 -1
- package/configurator/_app/immutable/nodes/2.DlerhEWH.js +0 -31
- package/configurator/_app/immutable/nodes/3.BMx6bP8s.js +0 -897
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liip/liipgpt",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "LiipGPT Chat and Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"index.d.ts",
|
|
28
28
|
"index.js",
|
|
29
29
|
"index.cjs",
|
|
30
|
-
"config",
|
|
31
|
-
"button",
|
|
32
|
-
"chat",
|
|
30
|
+
"config/**/*.{js,cjs,d.ts}",
|
|
31
|
+
"button/**/*.{js,cjs,d.ts}",
|
|
32
|
+
"chat/**/*.{js,cjs,d.ts}",
|
|
33
33
|
"configurator"
|
|
34
34
|
],
|
|
35
35
|
"keywords": [],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{p as B,F as L,G as h,H as S,d as T,v as r,c as A}from"./PaGpozZ3.js";import{p as o,s as R}from"./UUVzZ2eQ.js";import{C as U}from"./w58EqJ4L.js";import{E as _}from"./CCVb_64a.js";function E(b,t){B(t,!0);let a=o(t,"forceTheme",7),l=o(t,"apiUrl",7),i=o(t,"apiKey",7),n=o(t,"speechRecognitionApiKey",7),u=o(t,"lang",7),y=o(t,"features",7),s=o(t,"loaderBackground",7),g=o(t,"loaderColor",7),f=o(t,"flyout",7),c=o(t,"flyoutStyle",7),p=o(t,"flyoutClass",7),d=o(t,"inlineLayout",7),m=S(()=>({forceTheme:a(),apiUrl:l(),apiKey:i(),speechRecognitionApiKey:n(),lang:u(),features:y(),loaderBackground:s(),loaderColor:g(),flyout:f(),flyoutStyle:c(),flyoutClass:p(),inlineLayout:d()}));{const e=(K,k=L)=>{U(K,R({host:t.$$host,get onError(){return k()}},()=>h(m)))};let C=S(()=>h(m).flyout??!1);_(b,{get silent(){return h(C)},body:e,$$slots:{body:!0}})}return 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 n()},set speechRecognitionApiKey(e){n(e),r()},get lang(){return u()},set lang(e){u(e),r()},get features(){return y()},set features(e){y(e),r()},get loaderBackground(){return s()},set loaderBackground(e){s(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()},get inlineLayout(){return d()},set inlineLayout(e){d(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"},inlineLayout:{attribute:"inline-layout",type:"Boolean"}},[],[],!0));export{E as LiipGPTChat};
|
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
const Hr="https://liipgpt.api.dev.genai.liip.ch/liipgpt",Gr="3.3.3";function er(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ue,Me;function rr(){if(Me)return ue;Me=1;var t=function(b){return e(b)&&!r(b)};function e(v){return!!v&&typeof v=="object"}function r(v){var b=Object.prototype.toString.call(v);return b==="[object RegExp]"||b==="[object Date]"||n(v)}var a=typeof Symbol=="function"&&Symbol.for,o=a?Symbol.for("react.element"):60103;function n(v){return v.$$typeof===o}function s(v){return Array.isArray(v)?[]:{}}function i(v,b){return b.clone!==!1&&b.isMergeableObject(v)?W(s(v),v,b):v}function f(v,b,w){return v.concat(b).map(function(R){return i(R,w)})}function p(v,b){if(!b.customMerge)return W;var w=b.customMerge(v);return typeof w=="function"?w:W}function _(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(b){return Object.propertyIsEnumerable.call(v,b)}):[]}function D(v){return Object.keys(v).concat(_(v))}function X(v,b){try{return b in v}catch{return!1}}function Je(v,b){return X(v,b)&&!(Object.hasOwnProperty.call(v,b)&&Object.propertyIsEnumerable.call(v,b))}function Xe(v,b,w){var R={};return w.isMergeableObject(v)&&D(v).forEach(function(j){R[j]=i(v[j],w)}),D(b).forEach(function(j){Je(v,j)||(X(v,j)&&w.isMergeableObject(b[j])?R[j]=p(j,w)(v[j],b[j],w):R[j]=i(b[j],w))}),R}function W(v,b,w){w=w||{},w.arrayMerge=w.arrayMerge||f,w.isMergeableObject=w.isMergeableObject||t,w.cloneUnlessOtherwiseSpecified=i;var R=Array.isArray(b),j=Array.isArray(v),Ke=R===j;return Ke?R?w.arrayMerge(v,b,w):Xe(v,b,w):i(b,w)}W.all=function(b,w){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(R,j){return W(R,j,w)},{})};var Qe=W;return ue=Qe,ue}var tr=rr();const ar=er(tr),or=t=>t===null||typeof t!="object",pe=t=>{if(or(t))return t;if(Array.isArray(t))return t.map(pe);const e=Object.entries(t).filter(([r,a])=>a!==void 0).map(([r,a])=>[r,pe(a)]);return Object.fromEntries(e)},nr=(t,e)=>{const r=pe(e);return ar(t,r)},Ve={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"}},base:{fontSizeXs:{minRem:.75,maxRem:.875},fontSizeSm:{minRem:1,maxRem:1},fontSizeBody:{minRem:1,maxRem:1.25},fontSizeH3:{minRem:1.125,maxRem:1.5},fontSizeH2:{minRem:1.25,maxRem:1.75},fontSizeH1:{minRem:1.5,maxRem:2},fontWeightNormal:"400",fontWeightBold:"700",fontWeightTitle:"700",lineHeightDefault:"1.5",lineHeightSnug:"1.375",lineHeightTight:"1.25",borderRadius:{minRem:.5,maxRem:.75},lineColor:"color-mix(in srgb, var(--color-brand-950) 20%, transparent)",boxShadow:"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)"},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)",focusWidth:"var(--spacer-3)",focusOffset:"var(--spacer-2)",focusStyle:"solid"}},container:{custom:{maxWidth:"1024px"}},avatar:{color:"var(--color-brand-400)",background:"var(--color-grey-100)"},anchor:{color:"var(--color-brand-700)",hover:{color:"var(--color-brand-950)"}},btnPrimary:{color:"var(--color-grey-0)",background:"var(--color-brand-700)",borderRadius:"var(--base-border-radius)",hover:{background:"var(--color-brand-900)"}},btnSecondary:{color:"var(--color-brand-700)",background:"var(--color-brand-100)",borderRadius:"var(--base-border-radius)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},card:{color:"var(--color-grey-900)",background:"var(--color-grey-100)",borderRadius:"var(--base-border-radius)",boxShadow:"none",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-100)"},custom:{iconColor:"var(--anchor-color)",iconHoverColor:"var(--anchor-hover-color)"}},input:{background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"var(--base-border-radius)",custom:{padding:"var(--spacer-r-16) var(--spacer-r-20)",placeholderColor:"var(--color-grey-500)",placeholderOpacity:"1"}},label:{color:"var(--color-grey-600)"},hr:{color:"var(--base-line-color)"},checkbox:{color:"transparent",background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"0.2em",custom:{checkedColor:"var(--btn-primary-color)",checkedBorderColor:"var(--color-brand-700)",checkedBackground:"var(--color-brand-700)"}},radio:{color:"transparent",background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",custom:{checkedColor:"var(--btn-primary-color)",checkedBorderColor:"var(--color-brand-700)",checkedBackground:"var(--color-brand-700)"}},contextBox:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:"var(--color-grey-1000)",titleFontWeight:"var(--base-font-weight-bold)",separatorColor:"var(--base-line-color)",errorColor:"var(--message-error-color)"}},contextBoxMenuItem:{background:"transparent",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)",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:"var(--base-border-radius)",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:"var(--base-border-radius)",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:"calc(var(--base-border-radius) / 1.25)",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:"#DD135A",color:"var(--color-grey-0)",borderColor:"#DD135A",borderWidth:"1px",borderRadius:"var(--chat-input-border-radius)"},dialog:{background:"var(--card-background)",color:"var(--body-color)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:"rgba(0, 0, 0, 0.25)",headerBorderBottomColor:"var(--base-line-color)"}},aside:{background:"var(--card-background)",custom:{width:"400px",containerWidthForMobileLayout:1024,backgroundOverlay:"rgba(0, 0, 0, 0.4)",headerColor:"var(--card-color)",headerBorderColor:"var(--base-line-color)",headerBorderWidth:"1px"}},message:{color:"var(--body-color)",custom:{errorColor:"#C91658",transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:"var(--base-line-color)",borderWidth:"1px",custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageUser:{color:"var(--body-color)",background:"var(--card-background)",boxShadow:"var(--card-box-shadow)",borderRadius:"var(--card-border-radius)"},openButton:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-background)",borderWidth:"0",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)"},custom:{hideTitleWhenCollapsed:0,autoExpandScrollThreshold:0,autoCollapseDelay:0,autoExpandOnce:0}},referencesToggle:{color:"var(--color-brand-700)",hover:{color:"var(--anchor-hover-color)"}},referenceNumberTrigger:{color:"var(--btn-secondary-color)",background:"var(--btn-secondary-background)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{padding:"0.25em"}},referenceDomain:{color:"var(--color-brand-700)",hover:{color:"var(--color-brand-800)"},custom:{padding:"0px"}},referenceNumberContent:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",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(--base-box-shadow)",custom:{width:"95cqi",maxWidth:"450px",transitionDuration:200,transitionDelay:200,transitionY:8}},reference:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--body-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"}},referenceDescription:{color:"var(--reference-color)",hover:{color:"var(--reference-hover-color)"}},referenceNumber:{color:"var(--reference-number-trigger-color)",background:"var(--body-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)",borderRadius:"var(--reference-number-trigger-border-radius)",hover:{color:"var(--reference-number-trigger-color)",background:"var(--reference-number-trigger-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)"},custom:{padding:"var(--reference-number-trigger-padding)"}},toast:{background:"var(--card-background)",color:"var(--body-color)",boxShadow:"var(--base-box-shadow)",borderRadius:"var(--card-border-radius)",custom:{iconSuccessColor:"#22c55e",iconErrorColor:"#ef4444",iconWarningColor:"#f97316",iconInfoColor:"#3b82f6"}},tooltip:{background:"var(--color-grey-200)",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)"},flyout:{custom:{backdropColor:"var(--color-brand-800)",backdropOpacity:"0.4",backdropDelayIn:"0",backdropDurationIn:"200",backdropDelayOut:"0",backdropDurationOut:"150",backdropBaseScaleIn:"1",backdropBaseScaleOut:"1",backdropTransformOrigin:"center",backdropScaleDirection:"scale"}}},svgs:{predefinedQuestion:`
|
|
2
|
-
<svg viewBox="0 0 24 24" >
|
|
3
|
-
<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>
|
|
4
|
-
<path d="M0.5 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
5
|
-
<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>
|
|
6
|
-
<path d="M13 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
7
|
-
</svg>
|
|
8
|
-
`,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:`
|
|
9
|
-
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
10
|
-
<g stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
11
|
-
<path d="M19.701 5.488a10.063 10.063 0 0 0-7.7-3.573C6.43 1.915 1.914 6.43 1.914 12c0 1.17.2 2.293.565 3.338m1.84 3.199A10.063 10.063 0 0 0 12 22.085c5.57 0 10.085-4.515 10.085-10.085 0-1.224-.218-2.397-.617-3.482" stroke-miterlimit="10"/>
|
|
12
|
-
<path d="M16.802 5.784h3.16v-3.16M7.198 18.216h-3.16v3.16"/>
|
|
13
|
-
</g>
|
|
14
|
-
</svg>
|
|
15
|
-
`,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">
|
|
16
|
-
<circle cx="6" cy="23" r="1.75" fill="currentColor">
|
|
17
|
-
<animate attributeName="opacity" dur="1s" values="0.2;0.8;0.2" repeatCount="indefinite" begin="0s"/>
|
|
18
|
-
</circle>
|
|
19
|
-
<circle cx="12" cy="23" r="1.75" fill="currentColor">
|
|
20
|
-
<animate attributeName="opacity" dur="1s" values="0.2;0.8;0.2" repeatCount="indefinite" begin="0.3s"/>
|
|
21
|
-
</circle>
|
|
22
|
-
<circle cx="18" cy="23" r="1.75" fill="currentColor">
|
|
23
|
-
<animate attributeName="opacity" dur="1s" values="0.2;0.8;0.2" repeatCount="indefinite" begin="0.6s"/>
|
|
24
|
-
</circle>
|
|
25
|
-
</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 fill="none" viewBox="0 0 12 12"><path d="M5.04 7.955v-.161c.004-.555.053-.998.148-1.328.099-.33.241-.596.429-.799.187-.203.412-.387.675-.552.197-.127.373-.258.528-.395a1.71 1.71 0 0 0 .371-.452 1.15 1.15 0 0 0 .138-.561c0-.219-.052-.41-.157-.576a1.045 1.045 0 0 0-.423-.38 1.26 1.26 0 0 0-.58-.133c-.207 0-.402.046-.586.138a1.117 1.117 0 0 0-.452.4c-.117.174-.18.39-.19.65H3c.016-.633.168-1.157.457-1.569.288-.416.67-.725 1.146-.928.476-.206 1-.309 1.575-.309.631 0 1.19.105 1.675.314.485.206.865.506 1.141.9.276.392.414.867.414 1.422 0 .37-.062.7-.185.99-.12.285-.29.538-.51.76a3.943 3.943 0 0 1-.775.595c-.25.15-.457.304-.618.466a1.584 1.584 0 0 0-.357.562 2.42 2.42 0 0 0-.119.785v.161H5.041ZM5.984 11c-.317 0-.588-.111-.814-.333a1.095 1.095 0 0 1-.328-.809c-.003-.31.106-.577.328-.799.226-.222.497-.333.814-.333.301 0 .566.111.794.333a1.092 1.092 0 0 1 .181 1.375 1.23 1.23 0 0 1-.414.414 1.081 1.081 0 0 1-.561.152Z" fill="currentColor"/></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"><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>',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>',chevronUp:'<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>',chevronTopDown:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m19 9-7-7-7 7"/><path d="m19 15-7 7-7-7"/></g></svg>',chevronDownSmall:'<svg viewBox="0 0 10 10" fill="none"><path d="M8.75 3.75C7.25 5.25 5 7.5 5 7.50L1.25 3.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></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:`
|
|
26
|
-
<div style="border-radius: 9999px; overflow: hidden;">
|
|
27
|
-
<svg viewBox="0 0 100 100" width="100" height="100" shape-rendering="geometricPrecision" text-rendering="geometricPrecision">
|
|
28
|
-
<style>
|
|
29
|
-
.svg--avatar {
|
|
30
|
-
--logo-color1: var(--color-brand-500);
|
|
31
|
-
--logo-color1-transparent: var(--color-brand-400);
|
|
32
|
-
|
|
33
|
-
--logo-color2: var(--color-highlight-400);
|
|
34
|
-
--logo-color2-transparent: var(--color-highlight-500);
|
|
35
|
-
|
|
36
|
-
--logo-color3: var(--color-brand-400);
|
|
37
|
-
--logo-color3-transparent: var(--color-highlight-500);
|
|
38
|
-
|
|
39
|
-
--logo-color4: var(--color-highlight-400);
|
|
40
|
-
--logo-color4-transparent: var(--color-brand-500);
|
|
41
|
-
|
|
42
|
-
--logo-glass-color: oklch(1 0 0 / 0.2); /* Soft white glass effect */
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
#group1 {
|
|
46
|
-
animation: group1_anim 8000ms ease-in-out infinite normal forwards;
|
|
47
|
-
/* Delay animation after fly-in animation */
|
|
48
|
-
transform: translate(30px, 30px);
|
|
49
|
-
animation-delay: 0.8s;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes group1_anim {
|
|
53
|
-
0% { transform: translate(30px, 30px); }
|
|
54
|
-
25% { transform: translate(50px, 100px); }
|
|
55
|
-
50% { transform: translate(90px, 30px); }
|
|
56
|
-
75% { transform: translate(50px, 50px); }
|
|
57
|
-
100% { transform: translate(30px, 30px); }
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
#group2 {
|
|
61
|
-
animation: group2_anim 8000ms ease-in-out infinite normal forwards;
|
|
62
|
-
/* Delay animation after fly-in animation */
|
|
63
|
-
transform: translate(-35px, -35px);
|
|
64
|
-
animation-delay: 0.8s;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@keyframes group2_anim {
|
|
68
|
-
0% { transform: translate(-35px, -35px); }
|
|
69
|
-
25% { transform: translate(25px, 40px); }
|
|
70
|
-
50% { transform: translate(100px, 35px); }
|
|
71
|
-
75% { transform: translate(25px, 25px); }
|
|
72
|
-
100% { transform: translate(-35px, -35px); }
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
#group3 {
|
|
76
|
-
overflow: visible;
|
|
77
|
-
animation: group3_anim 8000ms ease-in-out infinite normal forwards;
|
|
78
|
-
/* Delay animation after fly-in animation */
|
|
79
|
-
transform: translate(120px, 20px);
|
|
80
|
-
animation-delay: 0.8s;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@keyframes group3_anim {
|
|
84
|
-
0% { transform: translate(120px, 20px); }
|
|
85
|
-
25% { transform: translate(30px, 17px); }
|
|
86
|
-
50% { transform: translate(35px, 20px); }
|
|
87
|
-
75% { transform: translate(30px, 120px); }
|
|
88
|
-
100% { transform: translate(120px, 20px); }
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
#group4 {
|
|
92
|
-
animation: group4_anim 12000ms ease-in-out infinite normal forwards;
|
|
93
|
-
/* Delay animation after fly-in animation */
|
|
94
|
-
transform: translate(40px, -40px);
|
|
95
|
-
animation-delay: 0.8s;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@keyframes group4_anim {
|
|
99
|
-
0% { transform: translate(40px, -40px); }
|
|
100
|
-
25% { transform: translate(25px, 45px); }
|
|
101
|
-
50% { transform: translate(-20px, 120px); }
|
|
102
|
-
75% { transform: translate(50px, 0px); }
|
|
103
|
-
100% { transform: translate(40px, -40px); }
|
|
104
|
-
}
|
|
105
|
-
</style>
|
|
106
|
-
<defs>
|
|
107
|
-
<!-- Define the circular masks -->
|
|
108
|
-
<mask id="circleMask1">
|
|
109
|
-
<rect width="100" height="100" fill="black" />
|
|
110
|
-
<circle cx="50" cy="50" r="50" fill="white" />
|
|
111
|
-
</mask>
|
|
112
|
-
<mask id="circleMask2">
|
|
113
|
-
<rect width="100" height="100" fill="black" />
|
|
114
|
-
<circle cx="50" cy="50" r="46" fill="white" />
|
|
115
|
-
</mask>
|
|
116
|
-
|
|
117
|
-
<!-- Radial Gradients for Animations -->
|
|
118
|
-
<radialGradient id="gradient1" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
119
|
-
<stop offset="0%" stop-color="var(--logo-color1)" />
|
|
120
|
-
<stop offset="80%" stop-color="var(--logo-color1-transparent)" />
|
|
121
|
-
</radialGradient>
|
|
122
|
-
<radialGradient id="gradient2" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
123
|
-
<stop offset="0%" stop-color="var(--logo-color2)" />
|
|
124
|
-
<stop offset="80%" stop-color="var(--logo-color2-transparent)" />
|
|
125
|
-
</radialGradient>
|
|
126
|
-
<radialGradient id="gradient3" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
127
|
-
<stop offset="0%" stop-color="var(--logo-color3)" />
|
|
128
|
-
<stop offset="50%" stop-color="var(--logo-color3-transparent)" />
|
|
129
|
-
</radialGradient>
|
|
130
|
-
<radialGradient id="gradient4" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
131
|
-
<stop offset="0%" stop-color="var(--logo-color4)" />
|
|
132
|
-
<stop offset="80%" stop-color="var(--logo-color4-transparent)" />
|
|
133
|
-
</radialGradient>
|
|
134
|
-
|
|
135
|
-
<!-- Radial Gradient for Centered Disc -->
|
|
136
|
-
<radialGradient id="centerGradient" cx="0.5" cy="0.5" r="0.5" spreadMethod="pad">
|
|
137
|
-
<stop offset="0%" stop-color="rgba(255, 255, 255, 0)" />
|
|
138
|
-
<stop offset="75%" stop-color="rgba(255, 255, 255, 0)" />
|
|
139
|
-
<stop offset="100%" stop-color="var(--logo-glass-color)" />
|
|
140
|
-
</radialGradient>
|
|
141
|
-
|
|
142
|
-
<!-- Gaussian blur filter -->
|
|
143
|
-
<filter id="blurFilter" x="-150%" y="-150%" width="400%" height="400%">
|
|
144
|
-
<feGaussianBlur stdDeviation="8" />
|
|
145
|
-
</filter>
|
|
146
|
-
|
|
147
|
-
</defs>
|
|
148
|
-
|
|
149
|
-
<!-- Larger Disc (border) -->
|
|
150
|
-
<g mask="url(#circleMask1)">
|
|
151
|
-
<circle cx="50" cy="50" r="50" fill="var(--logo-color2)" />
|
|
152
|
-
<g id="group1">
|
|
153
|
-
<ellipse x="50" rx="500" ry="80" fill="url(#gradient3)" filter="url(#blurFilter)" />
|
|
154
|
-
</g>
|
|
155
|
-
<g id="group2">
|
|
156
|
-
<ellipse rx="100" ry="100" fill="url(#gradient2)" filter="url(#blurFilter)" />
|
|
157
|
-
</g>
|
|
158
|
-
<g id="group3">
|
|
159
|
-
<ellipse rx="100" ry="100" fill="url(#gradient1)" filter="url(#blurFilter)" />
|
|
160
|
-
</g>
|
|
161
|
-
</g>
|
|
162
|
-
|
|
163
|
-
<!-- Smaller Disc -->
|
|
164
|
-
<g mask="url(#circleMask2)">
|
|
165
|
-
<circle cx="50" cy="50" r="46" fill="var(--logo-color1)" />
|
|
166
|
-
<g id="group1">
|
|
167
|
-
<ellipse x="50" rx="100" ry="80" fill="url(#gradient1)" filter="url(#blurFilter)" />
|
|
168
|
-
</g>
|
|
169
|
-
<g id="group2">
|
|
170
|
-
<ellipse rx="80" ry="50" fill="url(#gradient2)" filter="url(#blurFilter)" />
|
|
171
|
-
</g>
|
|
172
|
-
<g id="group3">
|
|
173
|
-
<ellipse rx="60" ry="40" fill="url(#gradient3)" filter="url(#blurFilter)" />
|
|
174
|
-
</g>
|
|
175
|
-
<g id="group4">
|
|
176
|
-
<ellipse rx="30" ry="40" fill="url(#gradient4)" filter="url(#blurFilter)" />
|
|
177
|
-
</g>
|
|
178
|
-
|
|
179
|
-
<!-- Grain -->
|
|
180
|
-
<circle cx="50" cy="50" r="46" fill="url(#centerGradient)" filter='url(#grainFilter)' style="mix-blend-mode: soft-light;" />
|
|
181
|
-
</g>
|
|
182
|
-
|
|
183
|
-
<!-- Grain -->
|
|
184
|
-
<circle cx="50" cy="50" r="46" fill="url(#centerGradient)" />
|
|
185
|
-
</svg>
|
|
186
|
-
</div>
|
|
187
|
-
`,avatarLarge:"",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:`
|
|
188
|
-
<svg width="0" height="0">
|
|
189
|
-
<defs>
|
|
190
|
-
<mask id="microphone-mask" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox">
|
|
191
|
-
<rect width="1" height="1" fill="black" />
|
|
192
|
-
<g
|
|
193
|
-
fill="none"
|
|
194
|
-
stroke="white"
|
|
195
|
-
stroke-width="2"
|
|
196
|
-
stroke-linecap="round"
|
|
197
|
-
stroke-linejoin="round"
|
|
198
|
-
transform="translate(0.1, 0.05) scale(0.035, 0.035)"
|
|
199
|
-
>
|
|
200
|
-
<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path>
|
|
201
|
-
<path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>
|
|
202
|
-
<path d="M12 19v4"></path>
|
|
203
|
-
<path d="M8 23h8"></path>
|
|
204
|
-
</g>
|
|
205
|
-
</mask>
|
|
206
|
-
</defs>
|
|
207
|
-
</svg>
|
|
208
|
-
`,listUnordered:`
|
|
209
|
-
<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>
|
|
210
|
-
<path d='M8 6H21' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
211
|
-
<path d='M8 12H21' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
212
|
-
<path d='M8 18H21' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
213
|
-
<path d='M3 6H3.01' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
214
|
-
<path d='M3 12H3.01' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
215
|
-
<path d='M3 18H3.01' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
216
|
-
</svg>
|
|
217
|
-
`,lightMode:`
|
|
218
|
-
<svg viewBox="0 0 24 24" fill="none">
|
|
219
|
-
<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"/>
|
|
220
|
-
<path d="M12 20.4375V22.3125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
221
|
-
<path d="M20.4375 12H22.3125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
222
|
-
<path d="M12 3.5625V1.6875" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
223
|
-
<path d="M3.5625 12H1.6875" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
224
|
-
<path d="M6.03469 17.9663L4.70813 19.2929" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
225
|
-
<path d="M17.9662 17.9663L19.2919 19.2919" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
226
|
-
<path d="M17.9672 6.03461L19.2928 4.70898" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
227
|
-
<path d="M6.03375 6.03461L4.70813 4.70898" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
228
|
-
</svg>
|
|
229
|
-
|
|
230
|
-
`,darkMode:`
|
|
231
|
-
<svg viewBox="0 0 24 24" fill="none">
|
|
232
|
-
<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"/>
|
|
233
|
-
</svg>
|
|
234
|
-
`,settings:`
|
|
235
|
-
<svg fill="none" viewBox="0 0 24 24">
|
|
236
|
-
<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
237
|
-
<path d="M5.08008 12H1.26074"></path>
|
|
238
|
-
<path d="M22.7383 12H10.0059"></path>
|
|
239
|
-
<path d="M13.9941 20.1172H1.26074"></path>
|
|
240
|
-
<path d="M22.7383 20.1172h-3.8184"></path>
|
|
241
|
-
<path d="m13.9941 4.02344 -12.73336 0"></path>
|
|
242
|
-
<path d="M22.7383 4.02344h-3.8184"></path>
|
|
243
|
-
<path d="M5.08 12.002a2.463 2.463 0 1 0 4.926 0 2.463 2.463 0 1 0 -4.926 0"></path>
|
|
244
|
-
<path d="M13.994 20.119a2.463 2.463 0 1 0 4.926 0 2.463 2.463 0 1 0 -4.926 0"></path>
|
|
245
|
-
<path d="M13.994 3.885a2.463 2.463 0 1 0 4.926 0 2.463 2.463 0 1 0 -4.926 0"></path>
|
|
246
|
-
</g>
|
|
247
|
-
</svg>
|
|
248
|
-
`,settingsClose:`
|
|
249
|
-
<svg fill="none" viewBox="0 0 24 24">
|
|
250
|
-
<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
251
|
-
<path d="m6 18 12-12"/>
|
|
252
|
-
<path d="m18 18-12-12"/>
|
|
253
|
-
</g>
|
|
254
|
-
</svg>
|
|
255
|
-
`,sources:`
|
|
256
|
-
<svg fill="none" viewBox="0 0 24 24" width="24">
|
|
257
|
-
<g fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
258
|
-
<path d="m20.3713 11.9655c.0006 1.0543-.2065 2.0983-.6093 3.0726-.4029.9742-.9936 1.8595-1.7386 2.6054-.7449.7458-1.6294 1.3376-2.603 1.7416s-2.0172.6122-3.0712.6127c-2.1389-.0355-4.17716-.9146-5.67123-2.4459-1.49408-1.5313-2.32301-3.5908-2.30639-5.7304.00172-2.04515.80385-4.00834 2.23469-5.46928s3.37664-2.30352 5.42083-2.34734c.1155-.00487.231-.00696.3478-.00696 1.0491-.00569 2.089.19629 3.0598.5943.9707.39801 1.8531.9842 2.5964 1.72479s1.3327 1.62095 1.7343 2.59038c.4017.96942.6076 2.00871.6059 3.05811z"/>
|
|
259
|
-
<path d="m12.3713 3.9978c-3.99996 4.52568-3.99996 10.4299 0 16"/>
|
|
260
|
-
<path d="m12.3713 3.9978c4 4.52627 4 10.4292 0 16"/>
|
|
261
|
-
<path d="m4.37134 11.9978h15.99996"/>
|
|
262
|
-
</g>
|
|
263
|
-
</svg>
|
|
264
|
-
`,model:`
|
|
265
|
-
<svg fill="none" viewBox="0 0 24 24">
|
|
266
|
-
<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
267
|
-
<path d="m2.63867 10.0059c3.35563-.67463 6.05732-3.40917 6.73292-6.8516.67571 3.44243 3.37671 6.17697 6.73231 6.8516m0 .0039c-3.3556.6746-6.0573 3.4091-6.73291 6.8516-.6756-3.4425-3.37669-6.177-6.73232-6.8516"/>
|
|
268
|
-
<path d="m13.6367 17.3983c2.0766-.4174 3.7486-2.1097 4.1668-4.2401.4181 2.1304 2.0896 3.8227 4.1663 4.2401m0 .0024c-2.0767.4176-3.7487 2.1098-4.1667 4.2402-.4181-2.1304-2.0898-3.8226-4.1664-4.2402"/>
|
|
269
|
-
</g>
|
|
270
|
-
</svg>
|
|
271
|
-
`,checkbox:`
|
|
272
|
-
<svg viewBox="0 0 24 24" fill="none">
|
|
273
|
-
<path d="M18 6L10 16L5 11" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
274
|
-
</svg>
|
|
275
|
-
`,warning:`
|
|
276
|
-
<svg fill="none" viewBox="0 0 24 24">
|
|
277
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M20 11.8499c0.0058 2.1364 -0.8308 4.1889 -2.3284 5.7125C16.174 19.086 14.1362 19.9579 12 19.9889c-1.0431 0.0158 -2.07902 -0.1757 -3.04759 -0.5634 -0.96857 -0.3877 -1.85052 -0.9638 -2.59471 -1.695 -0.74419 -0.7312 -1.3358 -1.6028 -1.74052 -2.5644 -0.40472 -0.9616 -0.61449 -1.9939 -0.61715 -3.0372 -0.00576 -2.13645 0.83084 -4.18908 2.32839 -5.71284C7.82597 4.8923 9.86379 4.02023 12 3.98892c1.0432 -0.01562 2.0792 0.17602 3.0477 0.56381 0.9686 0.38779 1.8505 0.96402 2.5947 1.69526 0.7442 0.73125 1.3358 1.60296 1.7405 2.56458 0.4047 0.96163 0.6145 1.99403 0.6171 3.03733v0Z" stroke-width="2"></path>
|
|
278
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12 12.989V7.98804" stroke-width="2"></path>
|
|
279
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12 15.512h-0.004" stroke-width="2"></path>
|
|
280
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.001 15.512H12" stroke-width="2"></path>
|
|
281
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.50003 20.0341c-1.10018 -1.0257 -1.97829 -2.2662 -2.58007 -3.6447 -0.60179 -1.3786 -0.91445 -2.8659 -0.91867 -4.37 -0.004213 -1.5042 0.3001 -2.99325 0.89415 -4.37514 0.59404 -1.38189 1.46518 -2.62726 2.55959 -3.65915" stroke-width="2"></path>
|
|
282
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M19.523 3.96411c1.0995 1.03065 1.9754 2.27621 2.5736 3.65943 0.5981 1.38321 0.9056 2.87456 0.9034 4.38156 -0.0021 1.507 -0.3139 2.9975 -0.916 4.379 -0.6021 1.3815 -1.4816 2.6245 -2.584 3.652" stroke-width="2"></path>
|
|
283
|
-
<path stroke="currentColor" d="M11.998 16.0161c-0.138 0 -0.25 -0.1119 -0.25 -0.25s0.112 -0.25 0.25 -0.25" stroke-width="2"></path>
|
|
284
|
-
<path stroke="currentColor" d="M11.998 16.0161c0.1381 0 0.25 -0.1119 0.25 -0.25s-0.1119 -0.25 -0.25 -0.25" stroke-width="2"></path>
|
|
285
|
-
</svg>
|
|
286
|
-
`,embedAvatar:""}}},sr=nr(Ve,{tokens:{base:{lineColor:"color-mix(in srgb, var(--color-brand-100) 20%, transparent)"},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)"}},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(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},card:{color:"var(--body-color)",background:"var(--color-grey-800)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-900)"}},input:{background:"var(--color-grey-900)",borderColor:"var(--color-grey-700)",custom:{placeholderColor:"var(--color-grey-400)"}},label:{color:"var(--color-grey-50)"},checkbox:{background:"var(--color-grey-700)",borderColor:"var(--color-grey-500)",custom:{checkedColor:"var(--color-grey-900)",checkedBorderColor:"var(--color-brand-300)",checkedBackground:"var(--color-brand-300)"}},radio:{background:"var(--color-grey-700)",borderColor:"var(--color-grey-500)",custom:{checkedColor:"var(--color-grey-900)",checkedBorderColor:"var(--color-brand-300)",checkedBackground:"var(--color-brand-300)"}},contextBox:{custom:{titleColor:"var(--color-grey-50)"}},referenceDescription:{color:"var(--color-grey-300)",hover:{color:"var(--color-grey-300)"}},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)"}}}}),le={fineGrained:{light:Ve,dark:sr}},ir=Object.freeze(Object.defineProperty({__proto__:null,theme:le},Symbol.toStringTag,{value:"Module"})),we=structuredClone(le.fineGrained.light);we.tokens.colors={brand:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#037ABA",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 Pe=structuredClone(le.fineGrained.dark);Pe.tokens.colors=we.tokens.colors;const dr={fineGrained:{light:we,dark:Pe}},cr=Object.freeze(Object.defineProperty({__proto__:null,theme:dr},Symbol.toStringTag,{value:"Module"}));var x;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function r(o){throw new Error}t.assertNever=r,t.arrayToEnum=o=>{const n={};for(const s of o)n[s]=s;return n},t.getValidEnumValues=o=>{const n=t.objectKeys(o).filter(i=>typeof o[o[i]]!="number"),s={};for(const i of n)s[i]=o[i];return t.objectValues(s)},t.objectValues=o=>t.objectKeys(o).map(function(n){return o[n]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const n=[];for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&n.push(s);return n},t.find=(o,n)=>{for(const s of o)if(n(s))return s},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function a(o,n=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(n)}t.joinValues=a,t.jsonStringifyReplacer=(o,n)=>typeof n=="bigint"?n.toString():n})(x||(x={}));var Re;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Re||(Re={}));const l=x.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),z=t=>{switch(typeof t){case"undefined":return l.undefined;case"string":return l.string;case"number":return Number.isNaN(t)?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(t)?l.array:t===null?l.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?l.promise:typeof Map<"u"&&t instanceof Map?l.map:typeof Set<"u"&&t instanceof Set?l.set:typeof Date<"u"&&t instanceof Date?l.date:l.object;default:return l.unknown}},d=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 E extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(n){return n.message},a={_errors:[]},o=n=>{for(const s of n.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)a._errors.push(r(s));else{let i=a,f=0;for(;f<s.path.length;){const p=s.path[f];f===s.path.length-1?(i[p]=i[p]||{_errors:[]},i[p]._errors.push(r(s))):i[p]=i[p]||{_errors:[]},i=i[p],f++}}};return o(this),a}static assert(e){if(!(e instanceof E))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=r=>r.message){const r={},a=[];for(const o of this.issues)if(o.path.length>0){const n=o.path[0];r[n]=r[n]||[],r[n].push(e(o))}else a.push(e(o));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}}E.create=t=>new E(t);const me=(t,e)=>{let r;switch(t.code){case d.invalid_type:t.received===l.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case d.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,x.jsonStringifyReplacer)}`;break;case d.unrecognized_keys:r=`Unrecognized key(s) in object: ${x.joinValues(t.keys,", ")}`;break;case d.invalid_union:r="Invalid input";break;case d.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${x.joinValues(t.options)}`;break;case d.invalid_enum_value:r=`Invalid enum value. Expected ${x.joinValues(t.options)}, received '${t.received}'`;break;case d.invalid_arguments:r="Invalid function arguments";break;case d.invalid_return_type:r="Invalid function return type";break;case d.invalid_date:r="Invalid date";break;case d.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:x.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case d.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case d.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case d.custom:r="Invalid input";break;case d.invalid_intersection_types:r="Intersection results could not be merged";break;case d.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case d.not_finite:r="Number must be finite";break;default:r=e.defaultError,x.assertNever(t)}return{message:r}};let lr=me;function ur(){return lr}const hr=t=>{const{data:e,path:r,errorMaps:a,issueData:o}=t,n=[...r,...o.path||[]],s={...o,path:n};if(o.message!==void 0)return{...o,path:n,message:o.message};let i="";const f=a.filter(p=>!!p).slice().reverse();for(const p of f)i=p(s,{data:e,defaultError:i}).message;return{...o,path:n,message:i}};function c(t,e){const r=ur(),a=hr({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===me?void 0:me].filter(o=>!!o)});t.common.issues.push(a)}class O{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const a=[];for(const o of r){if(o.status==="aborted")return m;o.status==="dirty"&&e.dirty(),a.push(o.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,r){const a=[];for(const o of r){const n=await o.key,s=await o.value;a.push({key:n,value:s})}return O.mergeObjectSync(e,a)}static mergeObjectSync(e,r){const a={};for(const o of r){const{key:n,value:s}=o;if(n.status==="aborted"||s.status==="aborted")return m;n.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(a[n.value]=s.value)}return{status:e.value,value:a}}}const m=Object.freeze({status:"aborted"}),q=t=>({status:"dirty",value:t}),M=t=>({status:"valid",value:t}),Ae=t=>t.status==="aborted",Ne=t=>t.status==="dirty",H=t=>t.status==="valid",K=t=>typeof Promise<"u"&&t instanceof Promise;var u;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(u||(u={}));class N{constructor(e,r,a,o){this._cachedPath=[],this.parent=e,this.data=r,this._path=a,this._key=o}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 Ze=(t,e)=>{if(H(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new E(t.common.issues);return this._error=r,this._error}}};function y(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:a,description:o}=t;if(e&&(r||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(s,i)=>{const{message:f}=t;return s.code==="invalid_enum_value"?{message:f??i.defaultError}:typeof i.data>"u"?{message:f??a??i.defaultError}:s.code!=="invalid_type"?{message:i.defaultError}:{message:f??r??i.defaultError}},description:o}}class k{get description(){return this._def.description}_getType(e){return z(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:z(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new O,ctx:{common:e.parent.common,data:e.data,parsedType:z(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(K(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const a=this.safeParse(e,r);if(a.success)return a.data;throw a.error}safeParse(e,r){const a={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:z(e)},o=this._parseSync({data:e,path:a.path,parent:a});return Ze(a,o)}"~validate"(e){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:z(e)};if(!this["~standard"].async)try{const a=this._parseSync({data:e,path:[],parent:r});return H(a)?{value:a.value}:{issues:r.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(a=>H(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(e,r){const a=await this.safeParseAsync(e,r);if(a.success)return a.data;throw a.error}async safeParseAsync(e,r){const a={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:z(e)},o=this._parse({data:e,path:a.path,parent:a}),n=await(K(o)?o:Promise.resolve(o));return Ze(a,n)}refine(e,r){const a=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,n)=>{const s=e(o),i=()=>n.addIssue({code:d.custom,...a(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(f=>f?!0:(i(),!1)):s?!0:(i(),!1)})}refinement(e,r){return this._refinement((a,o)=>e(a)?!0:(o.addIssue(typeof r=="function"?r(a,o):r),!1))}_refinement(e){return new P({schema:this,typeName:g.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:r=>this["~validate"](r)}}optional(){return B.create(this,this._def)}nullable(){return U.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return A.create(this)}promise(){return ne.create(this,this._def)}or(e){return re.create([this,e],this._def)}and(e){return te.create(this,e,this._def)}transform(e){return new P({...y(this._def),schema:this,typeName:g.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new se({...y(this._def),innerType:this,defaultValue:r,typeName:g.ZodDefault})}brand(){return new He({typeName:g.ZodBranded,type:this,...y(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new ie({...y(this._def),innerType:this,catchValue:r,typeName:g.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Se.create(this,e)}readonly(){return de.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const fr=/^c[^\s-]{8,}$/i,pr=/^[0-9a-z]+$/,mr=/^[0-9A-HJKMNP-TV-Z]{26}$/i,gr=/^[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,vr=/^[a-z0-9_-]{21}$/i,yr=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,kr=/^[-+]?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)?)??$/,br=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_r="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let he;const xr=/^(?:(?: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])$/,wr=/^(?:(?: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])$/,Cr=/^(([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]))$/,Sr=/^(([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])$/,jr=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Tr=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ue="((\\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])))",Or=new RegExp(`^${Ue}$`);function We(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function Mr(t){return new RegExp(`^${We(t)}$`)}function Rr(t){let e=`${Ue}T${We(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Ar(t,e){return!!((e==="v4"||!e)&&xr.test(t)||(e==="v6"||!e)&&Cr.test(t))}function Nr(t,e){if(!yr.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const a=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(a));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function Zr(t,e){return!!((e==="v4"||!e)&&wr.test(t)||(e==="v6"||!e)&&Sr.test(t))}class I extends k{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.string){const n=this._getOrReturnCtx(e);return c(n,{code:d.invalid_type,expected:l.string,received:n.parsedType}),m}const a=new O;let o;for(const n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(o=this._getOrReturnCtx(e,o),c(o,{code:d.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),a.dirty());else if(n.kind==="max")e.data.length>n.value&&(o=this._getOrReturnCtx(e,o),c(o,{code:d.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),a.dirty());else if(n.kind==="length"){const s=e.data.length>n.value,i=e.data.length<n.value;(s||i)&&(o=this._getOrReturnCtx(e,o),s?c(o,{code:d.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&c(o,{code:d.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),a.dirty())}else if(n.kind==="email")br.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"email",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="emoji")he||(he=new RegExp(_r,"u")),he.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"emoji",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="uuid")gr.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"uuid",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="nanoid")vr.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"nanoid",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="cuid")fr.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"cuid",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="cuid2")pr.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"cuid2",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="ulid")mr.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"ulid",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),c(o,{validation:"url",code:d.invalid_string,message:n.message}),a.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"regex",code:d.invalid_string,message:n.message}),a.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,n.position)||(o=this._getOrReturnCtx(e,o),c(o,{code:d.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),a.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(o=this._getOrReturnCtx(e,o),c(o,{code:d.invalid_string,validation:{startsWith:n.value},message:n.message}),a.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(o=this._getOrReturnCtx(e,o),c(o,{code:d.invalid_string,validation:{endsWith:n.value},message:n.message}),a.dirty()):n.kind==="datetime"?Rr(n).test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{code:d.invalid_string,validation:"datetime",message:n.message}),a.dirty()):n.kind==="date"?Or.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{code:d.invalid_string,validation:"date",message:n.message}),a.dirty()):n.kind==="time"?Mr(n).test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{code:d.invalid_string,validation:"time",message:n.message}),a.dirty()):n.kind==="duration"?kr.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"duration",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="ip"?Ar(e.data,n.version)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"ip",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="jwt"?Nr(e.data,n.alg)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"jwt",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="cidr"?Zr(e.data,n.version)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"cidr",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="base64"?jr.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"base64",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="base64url"?Tr.test(e.data)||(o=this._getOrReturnCtx(e,o),c(o,{validation:"base64url",code:d.invalid_string,message:n.message}),a.dirty()):x.assertNever(n);return{status:a.value,value:e.data}}_regex(e,r,a){return this.refinement(o=>e.test(o),{validation:r,code:d.invalid_string,...u.errToObj(a)})}_addCheck(e){return new I({...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,r){return this._addCheck({kind:"regex",regex:e,...u.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...u.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...u.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...u.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...u.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...u.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...u.errToObj(r)})}nonempty(e){return this.min(1,u.errToObj(e))}trim(){return new I({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new I({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new I({...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 r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}I.create=t=>new I({checks:[],typeName:g.ZodString,coerce:t?.coerce??!1,...y(t)});function Ir(t,e){const r=(t.toString().split(".")[1]||"").length,a=(e.toString().split(".")[1]||"").length,o=r>a?r:a,n=Number.parseInt(t.toFixed(o).replace(".","")),s=Number.parseInt(e.toFixed(o).replace(".",""));return n%s/10**o}class G extends k{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 n=this._getOrReturnCtx(e);return c(n,{code:d.invalid_type,expected:l.number,received:n.parsedType}),m}let a;const o=new O;for(const n of this._def.checks)n.kind==="int"?x.isInteger(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{code:d.invalid_type,expected:"integer",received:"float",message:n.message}),o.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="multipleOf"?Ir(e.data,n.value)!==0&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{code:d.not_finite,message:n.message}),o.dirty()):x.assertNever(n);return{status:o.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,u.toString(r))}gt(e,r){return this.setLimit("min",e,!1,u.toString(r))}lte(e,r){return this.setLimit("max",e,!0,u.toString(r))}lt(e,r){return this.setLimit("max",e,!1,u.toString(r))}setLimit(e,r,a,o){return new G({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:a,message:u.toString(o)}]})}_addCheck(e){return new G({...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,r){return this._addCheck({kind:"multipleOf",value:e,message:u.toString(r)})}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 r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.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,r=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(e===null||a.value<e)&&(e=a.value)}return Number.isFinite(r)&&Number.isFinite(e)}}G.create=t=>new G({checks:[],typeName:g.ZodNumber,coerce:t?.coerce||!1,...y(t)});class Y extends k{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 a;const o=new O;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):x.assertNever(n);return{status:o.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return c(r,{code:d.invalid_type,expected:l.bigint,received:r.parsedType}),m}gte(e,r){return this.setLimit("min",e,!0,u.toString(r))}gt(e,r){return this.setLimit("min",e,!1,u.toString(r))}lte(e,r){return this.setLimit("max",e,!0,u.toString(r))}lt(e,r){return this.setLimit("max",e,!1,u.toString(r))}setLimit(e,r,a,o){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:a,message:u.toString(o)}]})}_addCheck(e){return new Y({...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,r){return this._addCheck({kind:"multipleOf",value:e,message:u.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Y.create=t=>new Y({checks:[],typeName:g.ZodBigInt,coerce:t?.coerce??!1,...y(t)});class ge extends k{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.boolean){const a=this._getOrReturnCtx(e);return c(a,{code:d.invalid_type,expected:l.boolean,received:a.parsedType}),m}return M(e.data)}}ge.create=t=>new ge({typeName:g.ZodBoolean,coerce:t?.coerce||!1,...y(t)});class ee extends k{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.date){const n=this._getOrReturnCtx(e);return c(n,{code:d.invalid_type,expected:l.date,received:n.parsedType}),m}if(Number.isNaN(e.data.getTime())){const n=this._getOrReturnCtx(e);return c(n,{code:d.invalid_date}),m}const a=new O;let o;for(const n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(o=this._getOrReturnCtx(e,o),c(o,{code:d.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),a.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(o=this._getOrReturnCtx(e,o),c(o,{code:d.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),a.dirty()):x.assertNever(n);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:u.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:u.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}ee.create=t=>new ee({checks:[],coerce:t?.coerce||!1,typeName:g.ZodDate,...y(t)});class Ie extends k{_parse(e){if(this._getType(e)!==l.symbol){const a=this._getOrReturnCtx(e);return c(a,{code:d.invalid_type,expected:l.symbol,received:a.parsedType}),m}return M(e.data)}}Ie.create=t=>new Ie({typeName:g.ZodSymbol,...y(t)});class ve extends k{_parse(e){if(this._getType(e)!==l.undefined){const a=this._getOrReturnCtx(e);return c(a,{code:d.invalid_type,expected:l.undefined,received:a.parsedType}),m}return M(e.data)}}ve.create=t=>new ve({typeName:g.ZodUndefined,...y(t)});class ye extends k{_parse(e){if(this._getType(e)!==l.null){const a=this._getOrReturnCtx(e);return c(a,{code:d.invalid_type,expected:l.null,received:a.parsedType}),m}return M(e.data)}}ye.create=t=>new ye({typeName:g.ZodNull,...y(t)});class Be extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return M(e.data)}}Be.create=t=>new Be({typeName:g.ZodAny,...y(t)});class Ee extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return M(e.data)}}Ee.create=t=>new Ee({typeName:g.ZodUnknown,...y(t)});class $ extends k{_parse(e){const r=this._getOrReturnCtx(e);return c(r,{code:d.invalid_type,expected:l.never,received:r.parsedType}),m}}$.create=t=>new $({typeName:g.ZodNever,...y(t)});class De extends k{_parse(e){if(this._getType(e)!==l.undefined){const a=this._getOrReturnCtx(e);return c(a,{code:d.invalid_type,expected:l.void,received:a.parsedType}),m}return M(e.data)}}De.create=t=>new De({typeName:g.ZodVoid,...y(t)});class A extends k{_parse(e){const{ctx:r,status:a}=this._processInputParams(e),o=this._def;if(r.parsedType!==l.array)return c(r,{code:d.invalid_type,expected:l.array,received:r.parsedType}),m;if(o.exactLength!==null){const s=r.data.length>o.exactLength.value,i=r.data.length<o.exactLength.value;(s||i)&&(c(r,{code:s?d.too_big:d.too_small,minimum:i?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),a.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(c(r,{code:d.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),a.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(c(r,{code:d.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((s,i)=>o.type._parseAsync(new N(r,s,r.path,i)))).then(s=>O.mergeArray(a,s));const n=[...r.data].map((s,i)=>o.type._parseSync(new N(r,s,r.path,i)));return O.mergeArray(a,n)}get element(){return this._def.type}min(e,r){return new A({...this._def,minLength:{value:e,message:u.toString(r)}})}max(e,r){return new A({...this._def,maxLength:{value:e,message:u.toString(r)}})}length(e,r){return new A({...this._def,exactLength:{value:e,message:u.toString(r)}})}nonempty(e){return this.min(1,e)}}A.create=(t,e)=>new A({type:t,minLength:null,maxLength:null,exactLength:null,typeName:g.ZodArray,...y(e)});function F(t){if(t instanceof C){const e={};for(const r in t.shape){const a=t.shape[r];e[r]=B.create(F(a))}return new C({...t._def,shape:()=>e})}else return t instanceof A?new A({...t._def,type:F(t.element)}):t instanceof B?B.create(F(t.unwrap())):t instanceof U?U.create(F(t.unwrap())):t instanceof L?L.create(t.items.map(e=>F(e))):t}class C extends k{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(),r=x.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==l.object){const p=this._getOrReturnCtx(e);return c(p,{code:d.invalid_type,expected:l.object,received:p.parsedType}),m}const{status:a,ctx:o}=this._processInputParams(e),{shape:n,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof $&&this._def.unknownKeys==="strip"))for(const p in o.data)s.includes(p)||i.push(p);const f=[];for(const p of s){const _=n[p],D=o.data[p];f.push({key:{status:"valid",value:p},value:_._parse(new N(o,D,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof $){const p=this._def.unknownKeys;if(p==="passthrough")for(const _ of i)f.push({key:{status:"valid",value:_},value:{status:"valid",value:o.data[_]}});else if(p==="strict")i.length>0&&(c(o,{code:d.unrecognized_keys,keys:i}),a.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const _ of i){const D=o.data[_];f.push({key:{status:"valid",value:_},value:p._parse(new N(o,D,o.path,_)),alwaysSet:_ in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const p=[];for(const _ of f){const D=await _.key,X=await _.value;p.push({key:D,value:X,alwaysSet:_.alwaysSet})}return p}).then(p=>O.mergeObjectSync(a,p)):O.mergeObjectSync(a,f)}get shape(){return this._def.shape()}strict(e){return u.errToObj,new C({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,a)=>{const o=this._def.errorMap?.(r,a).message??a.defaultError;return r.code==="unrecognized_keys"?{message:u.errToObj(e).message??o}:{message:o}}}:{}})}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:g.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new C({...this._def,catchall:e})}pick(e){const r={};for(const a of x.objectKeys(e))e[a]&&this.shape[a]&&(r[a]=this.shape[a]);return new C({...this._def,shape:()=>r})}omit(e){const r={};for(const a of x.objectKeys(this.shape))e[a]||(r[a]=this.shape[a]);return new C({...this._def,shape:()=>r})}deepPartial(){return F(this)}partial(e){const r={};for(const a of x.objectKeys(this.shape)){const o=this.shape[a];e&&!e[a]?r[a]=o:r[a]=o.optional()}return new C({...this._def,shape:()=>r})}required(e){const r={};for(const a of x.objectKeys(this.shape))if(e&&!e[a])r[a]=this.shape[a];else{let n=this.shape[a];for(;n instanceof B;)n=n._def.innerType;r[a]=n}return new C({...this._def,shape:()=>r})}keyof(){return Fe(x.objectKeys(this.shape))}}C.create=(t,e)=>new C({shape:()=>t,unknownKeys:"strip",catchall:$.create(),typeName:g.ZodObject,...y(e)});C.strictCreate=(t,e)=>new C({shape:()=>t,unknownKeys:"strict",catchall:$.create(),typeName:g.ZodObject,...y(e)});C.lazycreate=(t,e)=>new C({shape:t,unknownKeys:"strip",catchall:$.create(),typeName:g.ZodObject,...y(e)});class re extends k{_parse(e){const{ctx:r}=this._processInputParams(e),a=this._def.options;function o(n){for(const i of n)if(i.result.status==="valid")return i.result;for(const i of n)if(i.result.status==="dirty")return r.common.issues.push(...i.ctx.common.issues),i.result;const s=n.map(i=>new E(i.ctx.common.issues));return c(r,{code:d.invalid_union,unionErrors:s}),m}if(r.common.async)return Promise.all(a.map(async n=>{const s={...r,common:{...r.common,issues:[]},parent:null};return{result:await n._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(o);{let n;const s=[];for(const f of a){const p={...r,common:{...r.common,issues:[]},parent:null},_=f._parseSync({data:r.data,path:r.path,parent:p});if(_.status==="valid")return _;_.status==="dirty"&&!n&&(n={result:_,ctx:p}),p.common.issues.length&&s.push(p.common.issues)}if(n)return r.common.issues.push(...n.ctx.common.issues),n.result;const i=s.map(f=>new E(f));return c(r,{code:d.invalid_union,unionErrors:i}),m}}get options(){return this._def.options}}re.create=(t,e)=>new re({options:t,typeName:g.ZodUnion,...y(e)});const Z=t=>t instanceof be?Z(t.schema):t instanceof P?Z(t.innerType()):t instanceof oe?[t.value]:t instanceof V?t.options:t instanceof _e?x.objectValues(t.enum):t instanceof se?Z(t._def.innerType):t instanceof ve?[void 0]:t instanceof ye?[null]:t instanceof B?[void 0,...Z(t.unwrap())]:t instanceof U?[null,...Z(t.unwrap())]:t instanceof He||t instanceof de?Z(t.unwrap()):t instanceof ie?Z(t._def.innerType):[];class Ce extends k{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==l.object)return c(r,{code:d.invalid_type,expected:l.object,received:r.parsedType}),m;const a=this.discriminator,o=r.data[a],n=this.optionsMap.get(o);return n?r.common.async?n._parseAsync({data:r.data,path:r.path,parent:r}):n._parseSync({data:r.data,path:r.path,parent:r}):(c(r,{code:d.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,a){const o=new Map;for(const n of r){const s=Z(n.shape[e]);if(!s.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const i of s){if(o.has(i))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);o.set(i,n)}}return new Ce({typeName:g.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:o,...y(a)})}}function ke(t,e){const r=z(t),a=z(e);if(t===e)return{valid:!0,data:t};if(r===l.object&&a===l.object){const o=x.objectKeys(e),n=x.objectKeys(t).filter(i=>o.indexOf(i)!==-1),s={...t,...e};for(const i of n){const f=ke(t[i],e[i]);if(!f.valid)return{valid:!1};s[i]=f.data}return{valid:!0,data:s}}else if(r===l.array&&a===l.array){if(t.length!==e.length)return{valid:!1};const o=[];for(let n=0;n<t.length;n++){const s=t[n],i=e[n],f=ke(s,i);if(!f.valid)return{valid:!1};o.push(f.data)}return{valid:!0,data:o}}else return r===l.date&&a===l.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class te extends k{_parse(e){const{status:r,ctx:a}=this._processInputParams(e),o=(n,s)=>{if(Ae(n)||Ae(s))return m;const i=ke(n.value,s.value);return i.valid?((Ne(n)||Ne(s))&&r.dirty(),{status:r.value,value:i.data}):(c(a,{code:d.invalid_intersection_types}),m)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([n,s])=>o(n,s)):o(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}te.create=(t,e,r)=>new te({left:t,right:e,typeName:g.ZodIntersection,...y(r)});class L extends k{_parse(e){const{status:r,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.array)return c(a,{code:d.invalid_type,expected:l.array,received:a.parsedType}),m;if(a.data.length<this._def.items.length)return c(a,{code:d.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&a.data.length>this._def.items.length&&(c(a,{code:d.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const n=[...a.data].map((s,i)=>{const f=this._def.items[i]||this._def.rest;return f?f._parse(new N(a,s,a.path,i)):null}).filter(s=>!!s);return a.common.async?Promise.all(n).then(s=>O.mergeArray(r,s)):O.mergeArray(r,n)}get items(){return this._def.items}rest(e){return new L({...this._def,rest:e})}}L.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new L({items:t,typeName:g.ZodTuple,rest:null,...y(e)})};class ae extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.object)return c(a,{code:d.invalid_type,expected:l.object,received:a.parsedType}),m;const o=[],n=this._def.keyType,s=this._def.valueType;for(const i in a.data)o.push({key:n._parse(new N(a,i,a.path,i)),value:s._parse(new N(a,a.data[i],a.path,i)),alwaysSet:i in a.data});return a.common.async?O.mergeObjectAsync(r,o):O.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(e,r,a){return r instanceof k?new ae({keyType:e,valueType:r,typeName:g.ZodRecord,...y(a)}):new ae({keyType:I.create(),valueType:e,typeName:g.ZodRecord,...y(r)})}}class ze extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.map)return c(a,{code:d.invalid_type,expected:l.map,received:a.parsedType}),m;const o=this._def.keyType,n=this._def.valueType,s=[...a.data.entries()].map(([i,f],p)=>({key:o._parse(new N(a,i,a.path,[p,"key"])),value:n._parse(new N(a,f,a.path,[p,"value"]))}));if(a.common.async){const i=new Map;return Promise.resolve().then(async()=>{for(const f of s){const p=await f.key,_=await f.value;if(p.status==="aborted"||_.status==="aborted")return m;(p.status==="dirty"||_.status==="dirty")&&r.dirty(),i.set(p.value,_.value)}return{status:r.value,value:i}})}else{const i=new Map;for(const f of s){const p=f.key,_=f.value;if(p.status==="aborted"||_.status==="aborted")return m;(p.status==="dirty"||_.status==="dirty")&&r.dirty(),i.set(p.value,_.value)}return{status:r.value,value:i}}}}ze.create=(t,e,r)=>new ze({valueType:e,keyType:t,typeName:g.ZodMap,...y(r)});class J extends k{_parse(e){const{status:r,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.set)return c(a,{code:d.invalid_type,expected:l.set,received:a.parsedType}),m;const o=this._def;o.minSize!==null&&a.data.size<o.minSize.value&&(c(a,{code:d.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&a.data.size>o.maxSize.value&&(c(a,{code:d.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const n=this._def.valueType;function s(f){const p=new Set;for(const _ of f){if(_.status==="aborted")return m;_.status==="dirty"&&r.dirty(),p.add(_.value)}return{status:r.value,value:p}}const i=[...a.data.values()].map((f,p)=>n._parse(new N(a,f,a.path,p)));return a.common.async?Promise.all(i).then(f=>s(f)):s(i)}min(e,r){return new J({...this._def,minSize:{value:e,message:u.toString(r)}})}max(e,r){return new J({...this._def,maxSize:{value:e,message:u.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}J.create=(t,e)=>new J({valueType:t,minSize:null,maxSize:null,typeName:g.ZodSet,...y(e)});class be extends k{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}be.create=(t,e)=>new be({getter:t,typeName:g.ZodLazy,...y(e)});class oe extends k{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return c(r,{received:r.data,code:d.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}oe.create=(t,e)=>new oe({value:t,typeName:g.ZodLiteral,...y(e)});function Fe(t,e){return new V({values:t,typeName:g.ZodEnum,...y(e)})}class V extends k{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),a=this._def.values;return c(r,{expected:x.joinValues(a),received:r.parsedType,code:d.invalid_type}),m}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),a=this._def.values;return c(r,{received:r.data,code:d.invalid_enum_value,options:a}),m}return M(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return V.create(e,{...this._def,...r})}exclude(e,r=this._def){return V.create(this.options.filter(a=>!e.includes(a)),{...this._def,...r})}}V.create=Fe;class _e extends k{_parse(e){const r=x.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==l.string&&a.parsedType!==l.number){const o=x.objectValues(r);return c(a,{expected:x.joinValues(o),received:a.parsedType,code:d.invalid_type}),m}if(this._cache||(this._cache=new Set(x.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const o=x.objectValues(r);return c(a,{received:a.data,code:d.invalid_enum_value,options:o}),m}return M(e.data)}get enum(){return this._def.values}}_e.create=(t,e)=>new _e({values:t,typeName:g.ZodNativeEnum,...y(e)});class ne extends k{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==l.promise&&r.common.async===!1)return c(r,{code:d.invalid_type,expected:l.promise,received:r.parsedType}),m;const a=r.parsedType===l.promise?r.data:Promise.resolve(r.data);return M(a.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}ne.create=(t,e)=>new ne({type:t,typeName:g.ZodPromise,...y(e)});class P extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===g.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:a}=this._processInputParams(e),o=this._def.effect||null,n={addIssue:s=>{c(a,s),s.fatal?r.abort():r.dirty()},get path(){return a.path}};if(n.addIssue=n.addIssue.bind(n),o.type==="preprocess"){const s=o.transform(a.data,n);if(a.common.async)return Promise.resolve(s).then(async i=>{if(r.value==="aborted")return m;const f=await this._def.schema._parseAsync({data:i,path:a.path,parent:a});return f.status==="aborted"?m:f.status==="dirty"||r.value==="dirty"?q(f.value):f});{if(r.value==="aborted")return m;const i=this._def.schema._parseSync({data:s,path:a.path,parent:a});return i.status==="aborted"?m:i.status==="dirty"||r.value==="dirty"?q(i.value):i}}if(o.type==="refinement"){const s=i=>{const f=o.refinement(i,n);if(a.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(a.common.async===!1){const i=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return i.status==="aborted"?m:(i.status==="dirty"&&r.dirty(),s(i.value),{status:r.value,value:i.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(i=>i.status==="aborted"?m:(i.status==="dirty"&&r.dirty(),s(i.value).then(()=>({status:r.value,value:i.value}))))}if(o.type==="transform")if(a.common.async===!1){const s=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!H(s))return m;const i=o.transform(s.value,n);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:i}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(s=>H(s)?Promise.resolve(o.transform(s.value,n)).then(i=>({status:r.value,value:i})):m);x.assertNever(o)}}P.create=(t,e,r)=>new P({schema:t,typeName:g.ZodEffects,effect:e,...y(r)});P.createWithPreprocess=(t,e,r)=>new P({schema:e,effect:{type:"preprocess",transform:t},typeName:g.ZodEffects,...y(r)});class B extends k{_parse(e){return this._getType(e)===l.undefined?M(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}B.create=(t,e)=>new B({innerType:t,typeName:g.ZodOptional,...y(e)});class U extends k{_parse(e){return this._getType(e)===l.null?M(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}U.create=(t,e)=>new U({innerType:t,typeName:g.ZodNullable,...y(e)});class se extends k{_parse(e){const{ctx:r}=this._processInputParams(e);let a=r.data;return r.parsedType===l.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}se.create=(t,e)=>new se({innerType:t,typeName:g.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...y(e)});class ie extends k{_parse(e){const{ctx:r}=this._processInputParams(e),a={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return K(o)?o.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new E(a.common.issues)},input:a.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new E(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}ie.create=(t,e)=>new ie({innerType:t,typeName:g.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...y(e)});class $e extends k{_parse(e){if(this._getType(e)!==l.nan){const a=this._getOrReturnCtx(e);return c(a,{code:d.invalid_type,expected:l.nan,received:a.parsedType}),m}return{status:"valid",value:e.data}}}$e.create=t=>new $e({typeName:g.ZodNaN,...y(t)});class He extends k{_parse(e){const{ctx:r}=this._processInputParams(e),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}}class Se extends k{_parse(e){const{status:r,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return n.status==="aborted"?m:n.status==="dirty"?(r.dirty(),q(n.value)):this._def.out._parseAsync({data:n.value,path:a.path,parent:a})})();{const o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?m:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}static create(e,r){return new Se({in:e,out:r,typeName:g.ZodPipeline})}}class de extends k{_parse(e){const r=this._def.innerType._parse(e),a=o=>(H(o)&&(o.value=Object.freeze(o.value)),o);return K(r)?r.then(o=>a(o)):a(r)}unwrap(){return this._def.innerType}}de.create=(t,e)=>new de({innerType:t,typeName:g.ZodReadonly,...y(e)});var g;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(g||(g={}));const h=I.create,xe=G.create,qr=ge.create;$.create;const Br=A.create,S=C.create,je=re.create,Yr=Ce.create;te.create;L.create;const Te=ae.create,Jr=oe.create,Ge=V.create;ne.create;B.create;U.create;const Er=S({minRem:xe(),maxRem:xe()}),T=Er.or(h()),Q=S({0:h().optional(),50:h(),100:h(),200:h(),300:h(),400:h(),500:h(),600:h(),700:h(),800:h(),900:h(),950:h(),1e3:h().optional()}),fe=S({color:h().optional(),background:h().optional(),borderWidth:h().optional(),borderColor:h().optional(),boxShadow:h().optional()}),Dr=S({borderRadius:T.optional(),custom:Te(h(),je([h(),xe()])).optional(),hover:fe.optional(),focus:fe.optional()}).and(fe),zr=S({family:h().optional()}),$r=Te(Ge(["predefinedQuestion","edit","newConversation","voteUp","voteDown","retry","message","messageLoading","thread","submit","abort","expand","help","attach","record","reward","share","audio","copy","dismiss","menu","info","menuClose","chevronDown","chevronUp","chevronTopDown","chevronDownSmall","internalLink","externalLink","liip","avatar","avatarLarge","openChat","speechInput","listUnordered","lightMode","darkMode","avatarLarge","settings","settingsClose","sources","model","checkbox","warning","headerLogo","embedAvatar"]),h()),Lr=S({font:zr.optional(),colors:S({brand:Q,accent:Q.optional(),highlight:Q,grey:Q}),base:S({fontSizeXs:T.optional(),fontSizeSm:T.optional(),fontSizeBody:T.optional(),fontSizeH3:T.optional(),fontSizeH2:T.optional(),fontSizeH1:T.optional(),fontWeightNormal:h().optional(),fontWeightBold:h().optional(),fontWeightTitle:h().optional(),lineHeightDefault:h().optional(),lineHeightSnug:h().optional(),lineHeightTight:h().optional(),borderRadius:T.optional(),lineColor:h().optional(),boxShadow:h().optional()}),components:Te(h(),Dr),svgs:$r}),ce=S({customCSS:h().optional(),fontCSS:h().optional(),fontURLs:h().array().optional(),tokens:Lr});S({light:ce,dark:ce});const Vr=S({light:ce,dark:ce}).deepPartial(),qe=S({50:h(),100:h(),200:h(),300:h(),400:h(),500:h(),600:h(),700:h(),800:h(),900:h(),950:h()}),Ye=Ge(["slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"]),Le=je([qe,Ye]),Pr=je([qe.and(S({0:h(),1e3:h()})),Ye]),Ur=S({avatarImageUrl:h().optional(),colors:S({brand:Le.optional(),highlight:Le.optional(),grey:Pr.optional(),background:h().optional(),text:h().optional(),anchor:S({default:h().optional(),hover:h().optional()}).optional()}).optional(),font:S({family:h().optional(),urls:Br(h()).optional(),sizeXs:T.optional(),sizeSm:T.optional(),sizeBody:T.optional(),sizeH3:T.optional(),sizeH2:T.optional(),sizeH1:T.optional(),weightNormal:h().optional(),weightBold:h().optional(),weightTitle:h().optional()}).optional(),borderRadius:T.optional(),fineGrained:Vr.optional()}),Wr=t=>t.split("/").pop().split(".")[0],Fr=Object.assign({"./default/fallback-dev.theme.ts":cr,"./default/fallback.theme.ts":ir}),Oe=new Map;Object.entries(Fr).forEach(([t,e])=>{const{error:r,data:a}=Ur.safeParse(e?.theme);if(r){console.error(`Invalid theme in ${t}:`,r);return}Oe.set(Wr(t),a)});const Xr=t=>{const e=Oe.get(t);return e||(console.error(`Theme ${t} not found`),le)};Array.from(Oe.keys());export{Hr as P,Br as a,qr as b,Ur as c,Yr as d,Ge as e,ar as f,Wr as g,er as h,Xr as i,Gr as j,Jr as l,nr as m,xe as n,S as o,Te as r,h as s,le as t,je as u};
|