@encatch/ws-react 0.0.16 → 0.0.18
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/dist/EncatchPreview.d.ts +23 -0
- package/dist/index.d.ts +3 -0
- package/dist/types.d.ts +87 -0
- package/dist/useEncatchFormEvent.d.ts +50 -0
- package/dist/{web-form-engine-core.umd-CRoRxNVp.js → web-form-engine-core.umd-C-N-KDM0.js} +6492 -6426
- package/dist/ws-react.es.js +363 -159
- package/dist/ws-react.umd.js +22 -22
- package/package.json +3 -2
package/dist/ws-react.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(tn,rr){typeof exports=="object"&&typeof module<"u"?rr(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],rr):(tn=typeof globalThis<"u"?globalThis:tn||self,rr(tn.WsReact={},tn.React))})(this,(function(tn,rr){"use strict";function Db(e,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const t in s)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(s,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>s[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Lb(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var o=function s(){var t=!1;try{t=this instanceof s}catch{}return t?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var t=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,t.get?t:{enumerable:!0,get:function(){return e[s]}})}),o}var jo={exports:{}},Mi={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var sl;function Ab(){if(sl)return Mi;sl=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,t,a){var f=null;if(a!==void 0&&(f=""+a),t.key!==void 0&&(f=""+t.key),"key"in t){a={};for(var _ in t)_!=="key"&&(a[_]=t[_])}else a=t;return t=a.ref,{$$typeof:e,type:s,key:f,ref:t!==void 0?t:null,props:a}}return Mi.Fragment=r,Mi.jsx=o,Mi.jsxs=o,Mi}var Di={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var ul;function Zb(){return ul||(ul=1,process.env.NODE_ENV!=="production"&&(function(){function e(pe){if(pe==null)return null;if(typeof pe=="function")return pe.$$typeof===ya?null:pe.displayName||pe.name||null;if(typeof pe=="string")return pe;switch(pe){case ye:return"Fragment";case pt:return"Profiler";case Me:return"StrictMode";case lr:return"Suspense";case Br:return"SuspenseList";case ic:return"Activity"}if(typeof pe=="object")switch(typeof pe.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),pe.$$typeof){case A:return"Portal";case dt:return(pe.displayName||"Context")+".Provider";case ct:return(pe._context.displayName||"Context")+".Consumer";case bt:var Ve=pe.render;return pe=pe.displayName,pe||(pe=Ve.displayName||Ve.name||"",pe=pe!==""?"ForwardRef("+pe+")":"ForwardRef"),pe;case Qt:return Ve=pe.displayName||null,Ve!==null?Ve:e(pe.type)||"Memo";case ba:Ve=pe._payload,pe=pe._init;try{return e(pe(Ve))}catch{}}return null}function r(pe){return""+pe}function o(pe){try{r(pe);var Ve=!1}catch{Ve=!0}if(Ve){Ve=console;var Nt=Ve.error,Lt=typeof Symbol=="function"&&Symbol.toStringTag&&pe[Symbol.toStringTag]||pe.constructor.name||"Object";return Nt.call(Ve,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Lt),r(pe)}}function s(pe){if(pe===ye)return"<>";if(typeof pe=="object"&&pe!==null&&pe.$$typeof===ba)return"<...>";try{var Ve=e(pe);return Ve?"<"+Ve+">":"<...>"}catch{return"<...>"}}function t(){var pe=oo.A;return pe===null?null:pe.getOwner()}function a(){return Error("react-stack-top-frame")}function f(pe){if(_n.call(pe,"key")){var Ve=Object.getOwnPropertyDescriptor(pe,"key").get;if(Ve&&Ve.isReactWarning)return!1}return pe.key!==void 0}function _(pe,Ve){function Nt(){Gn||(Gn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Ve))}Nt.isReactWarning=!0,Object.defineProperty(pe,"key",{get:Nt,configurable:!0})}function q(){var pe=e(this.type);return Yr[pe]||(Yr[pe]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),pe=this.props.ref,pe!==void 0?pe:null}function X(pe,Ve,Nt,Lt,gt,Tr,Vn,bi){return Nt=Tr.ref,pe={$$typeof:ge,type:pe,key:Ve,props:Tr,_owner:gt},(Nt!==void 0?Nt:null)!==null?Object.defineProperty(pe,"ref",{enumerable:!1,get:q}):Object.defineProperty(pe,"ref",{enumerable:!1,value:null}),pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(pe,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(pe,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Vn}),Object.defineProperty(pe,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:bi}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe}function ce(pe,Ve,Nt,Lt,gt,Tr,Vn,bi){var Yt=Ve.children;if(Yt!==void 0)if(Lt)if(oc(Yt)){for(Lt=0;Lt<Yt.length;Lt++)ue(Yt[Lt]);Object.freeze&&Object.freeze(Yt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ue(Yt);if(_n.call(Ve,"key")){Yt=e(pe);var Zt=Object.keys(Ve).filter(function(yi){return yi!=="key"});Lt=0<Zt.length?"{key: someKey, "+Zt.join(": ..., ")+": ...}":"{key: someKey}",so[Yt+Lt]||(Zt=0<Zt.length?"{"+Zt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,Lt,Yt,Zt,Yt),io[Yt+Lt]=!0)}if(Yt=null,jt!==void 0&&(o(jt),Yt=""+jt),f(Ve)&&(o(Ve.key),Yt=""+Ve.key),"key"in Ve){jt={};for(var Qn in Ve)Qn!=="key"&&(jt[Qn]=Ve[Qn])}else jt=Ve;return Yt&&k(jt,typeof ve=="function"?ve.displayName||ve.name||"Unknown":ve),B(ve,Yt,Tr,gt,t(),jt,Gn,vi)}function K(ve){typeof ve=="object"&&ve!==null&&ve.$$typeof===ye&&ve._store&&(ve._store.validated=1)}var Re=zr,ye=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),De=Symbol.for("react.strict_mode"),pt=Symbol.for("react.profiler"),ut=Symbol.for("react.consumer"),dt=Symbol.for("react.context"),bt=Symbol.for("react.forward_ref"),lr=Symbol.for("react.suspense"),Br=Symbol.for("react.suspense_list"),Ft=Symbol.for("react.memo"),va=Symbol.for("react.lazy"),rl=Symbol.for("react.activity"),ha=Symbol.for("react.client.reference"),ro=Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yn=Object.prototype.hasOwnProperty,nl=Array.isArray,Fn=console.createTask?console.createTask:function(){return null};Re={react_stack_bottom_frame:function(ve){return ve()}};var Wn,Yr={},jr=Re.react_stack_bottom_frame.bind(Re,a)(),no=Fn(s(a)),io={};Ci.Fragment=Ne,Ci.jsx=function(ve,Ve,jt,Lt,gt){var Tr=1e4>ro.recentlyCreatedOwnerStacks++;return me(ve,Ve,jt,!1,Lt,gt,Tr?Error("react-stack-top-frame"):jr,Tr?Fn(s(ve)):no)},Ci.jsxs=function(ve,Ve,jt,Lt,gt){var Tr=1e4>ro.recentlyCreatedOwnerStacks++;return me(ve,Ve,jt,!0,Lt,gt,Tr?Error("react-stack-top-frame"):jr,Tr?Fn(s(ve)):no)}})()),Ci}var sc;function Ab(){return sc||(sc=1,process.env.NODE_ENV==="production"?zo.exports=Ub():zo.exports=Lb()),zo.exports}var Zb=Ab();typeof window<"u"&&Promise.resolve().then(()=>jk).then(({EncatchAppElement:e})=>{try{customElements.get("encatch-app")||customElements.define("encatch-app",e)}catch(r){console.debug("Custom element registration:",r)}});const Rb=({formData:e,cssLink:r,scale:o=100,persistMode:s="none"})=>{const[t,a]=zr.useState(!1),[f,k]=zr.useState(!0),R=zr.useRef(null),B=zr.useRef(null);zr.useEffect(()=>{(()=>{try{return e?!0:(console.warn("[EncatchPreview] formData is not defined"),!1)}catch(Re){return console.error("[EncatchPreview] Error during data validation:",Re),!1}})()?a(!0):console.warn("[EncatchPreview] Data validation failed, retrying in 100ms...")},[e]);const me=zr.useCallback(()=>{e.onClose&&e.onClose(),k(!1)},[e.onClose]);return zr.useEffect(()=>{if(!t||!R.current)return;const K=document.createElement("encatch-app");return K.theme=e.theme,K.currentMode=e.currentMode,K.currentLanguage=e.currentLanguage,K.questions=e.questions,K.questionLanguages=e.questionLanguages,K.otherConfigurationProperties=e.otherConfigurationProperties,K.welcomeScreenProperties=e.welcomeScreenProperties,K.endScreenProperties=e.endScreenProperties,K.translations=e.translations,K.sections=e.sections,K.themeSettings=e.themeSettings,K.onClose=me,K.onSectionChange=e.onSectionChange,K.apiKey=e.apiKey,K.hostUrl=e.hostUrl,K.feedbackConfigId=e.feedbackConfigId,K.identifier=e.identifier,K.cssLink=r,K.scale=o,K.persistMode=s,B.current=K,R.current.appendChild(K),()=>{R.current&&B.current&&R.current.removeChild(B.current),B.current=null}},[t,e,r,o,me,s]),f?Zb.jsx("div",{ref:R}):null};var Mi={exports:{}};const uc=Object.freeze({status:"aborted"});function M(e,r,o){function s(k,R){var B;Object.defineProperty(k,"_zod",{value:k._zod??{},enumerable:!1}),(B=k._zod).traits??(B.traits=new Set),k._zod.traits.add(e),r(k,R);for(const me in f.prototype)me in k||Object.defineProperty(k,me,{value:f.prototype[me].bind(k)});k._zod.constr=f,k._zod.def=R}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:e});function f(k){var R;const B=o?.Parent?new a:this;s(B,k),(R=B._zod).deferred??(R.deferred=[]);for(const me of B._zod.deferred)me();return B}return Object.defineProperty(f,"init",{value:s}),Object.defineProperty(f,Symbol.hasInstance,{value:k=>o?.Parent&&k instanceof o.Parent?!0:k?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}const lc=Symbol("zod_brand");class Cn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class No extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const jo={};function ur(e){return e&&Object.assign(jo,e),jo}function qb(e){return e}function Fb(e){return e}function Wb(e){}function Gb(e){throw new Error}function Qb(e){}function Ja(e){const r=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,t])=>r.indexOf(+s)===-1).map(([s,t])=>t)}function he(e,r="|"){return e.map(o=>We(o)).join(r)}function To(e,r){return typeof r=="bigint"?r.toString():r}function Di(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function Mn(e){return e==null}function Oo(e){const r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}function cc(e,r){const o=(e.toString().split(".")[1]||"").length,s=r.toString();let t=(s.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(s)){const R=s.match(/\d?e-(\d?)/);R?.[1]&&(t=Number.parseInt(R[1]))}const a=o>t?o:t,f=Number.parseInt(e.toFixed(a).replace(".","")),k=Number.parseInt(r.toFixed(a).replace(".",""));return f%k/10**a}const dc=Symbol("evaluating");function ot(e,r,o){let s;Object.defineProperty(e,r,{get(){if(s!==dc)return s===void 0&&(s=dc,s=o()),s},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function Eo(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ur(e,r,o){Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function hn(...e){const r={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(r,s)}return Object.defineProperties({},r)}function Jb(e){return hn(e._zod.def)}function Vb(e,r){return r?r.reduce((o,s)=>o?.[s],e):e}function Bb(e){const r=Object.keys(e),o=r.map(s=>e[s]);return Promise.all(o).then(s=>{const t={};for(let a=0;a<r.length;a++)t[r[a]]=s[a];return t})}function Yb(e=10){const r="abcdefghijklmnopqrstuvwxyz";let o="";for(let s=0;s<e;s++)o+=r[Math.floor(Math.random()*r.length)];return o}function Va(e){return JSON.stringify(e)}const Ba="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ci(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const fc=Di(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Dn(e){if(ci(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(ci(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Po(e){return Dn(e)?{...e}:Array.isArray(e)?[...e]:e}function Kb(e){let r=0;for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}const Hb=e=>{const r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Co=new Set(["string","number","symbol"]),mc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function bn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nr(e,r,o){const s=new e._zod.constr(r??e._zod.def);return(!r||o?.parent)&&(s._zod.parent=e),s}function ue(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Xb(e){let r;return new Proxy({},{get(o,s,t){return r??(r=e()),Reflect.get(r,s,t)},set(o,s,t,a){return r??(r=e()),Reflect.set(r,s,t,a)},has(o,s){return r??(r=e()),Reflect.has(r,s)},deleteProperty(o,s){return r??(r=e()),Reflect.deleteProperty(r,s)},ownKeys(o){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,s){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,s)},defineProperty(o,s,t){return r??(r=e()),Reflect.defineProperty(r,s,t)}})}function We(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function pc(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const gc={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},vc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function hc(e,r){const o=e._zod.def,s=hn(e._zod.def,{get shape(){const t={};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(t[a]=o.shape[a])}return Ur(this,"shape",t),t},checks:[]});return Nr(e,s)}function bc(e,r){const o=e._zod.def,s=hn(e._zod.def,{get shape(){const t={...e._zod.def.shape};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete t[a]}return Ur(this,"shape",t),t},checks:[]});return Nr(e,s)}function yc(e,r){if(!Dn(r))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const t=hn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...r};return Ur(this,"shape",a),a},checks:[]});return Nr(e,t)}function $c(e,r){if(!Dn(r))throw new Error("Invalid input to safeExtend: expected a plain object");const o={...e._zod.def,get shape(){const s={...e._zod.def.shape,...r};return Ur(this,"shape",s),s},checks:e._zod.def.checks};return Nr(e,o)}function wc(e,r){const o=hn(e._zod.def,{get shape(){const s={...e._zod.def.shape,...r._zod.def.shape};return Ur(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:[]});return Nr(e,o)}function _c(e,r,o){const s=hn(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in t))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=e?new e({type:"optional",innerType:t[f]}):t[f])}else for(const f in t)a[f]=e?new e({type:"optional",innerType:t[f]}):t[f];return Ur(this,"shape",a),a},checks:[]});return Nr(r,s)}function kc(e,r,o){const s=hn(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in a))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=new e({type:"nonoptional",innerType:t[f]}))}else for(const f in t)a[f]=new e({type:"nonoptional",innerType:t[f]});return Ur(this,"shape",a),a},checks:[]});return Nr(r,s)}function Un(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function Lr(e,r){return r.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(e),o})}function Ui(e){return typeof e=="string"?e:e?.message}function Ar(e,r,o){const s={...e,path:e.path??[]};if(!e.message){const t=Ui(e.inst?._zod.def?.error?.(e))??Ui(r?.error?.(e))??Ui(o.customError?.(e))??Ui(o.localeError?.(e))??"Invalid input";s.message=t}return delete s.inst,delete s.continue,r?.reportInput||delete s.input,s}function Mo(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Do(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function di(...e){const[r,o,s]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:s}:{...r}}function ey(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function xc(e){const r=atob(e),o=new Uint8Array(r.length);for(let s=0;s<r.length;s++)o[s]=r.charCodeAt(s);return o}function Sc(e){let r="";for(let o=0;o<e.length;o++)r+=String.fromCharCode(e[o]);return btoa(r)}function ty(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return xc(r+o)}function ry(e){return Sc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ny(e){const r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2)o[s/2]=Number.parseInt(r.slice(s,s+2),16);return o}function iy(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class oy{constructor(...r){}}const Ic=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:vc,Class:oy,NUMBER_FORMAT_RANGES:gc,aborted:Un,allowsEval:fc,assert:Qb,assertEqual:qb,assertIs:Wb,assertNever:Gb,assertNotEqual:Fb,assignProp:Ur,base64ToUint8Array:xc,base64urlToUint8Array:ty,cached:Di,captureStackTrace:Ba,cleanEnum:ey,cleanRegex:Oo,clone:Nr,cloneDef:Jb,createTransparentProxy:Xb,defineLazy:ot,esc:Va,escapeRegex:bn,extend:yc,finalizeIssue:Ar,floatSafeRemainder:cc,getElementAtPath:Vb,getEnumValues:Ja,getLengthableOrigin:Do,getParsedType:Hb,getSizableOrigin:Mo,hexToUint8Array:ny,isObject:ci,isPlainObject:Dn,issue:di,joinValues:he,jsonStringifyReplacer:To,merge:wc,mergeDefs:hn,normalizeParams:ue,nullish:Mn,numKeys:Kb,objectClone:Eo,omit:bc,optionalKeys:pc,partial:_c,pick:hc,prefixIssues:Lr,primitiveTypes:mc,promiseAllObject:Bb,propertyKeyTypes:Co,randomString:Yb,required:kc,safeExtend:$c,shallowClone:Po,stringifyPrimitive:We,uint8ArrayToBase64:Sc,uint8ArrayToBase64url:ry,uint8ArrayToHex:iy,unwrapMessage:Ui},Symbol.toStringTag,{value:"Module"})),zc=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,To,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ya=M("$ZodError",zc),hr=M("$ZodError",zc,{Parent:Error});function Ka(e,r=o=>o.message){const o={},s=[];for(const t of e.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):s.push(r(t));return{formErrors:s,fieldErrors:o}}function Ha(e,r){const o=r||function(a){return a.message},s={_errors:[]},t=a=>{for(const f of a.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(k=>t({issues:k}));else if(f.code==="invalid_key")t({issues:f.issues});else if(f.code==="invalid_element")t({issues:f.issues});else if(f.path.length===0)s._errors.push(o(f));else{let k=s,R=0;for(;R<f.path.length;){const B=f.path[R];R===f.path.length-1?(k[B]=k[B]||{_errors:[]},k[B]._errors.push(o(f))):k[B]=k[B]||{_errors:[]},k=k[B],R++}}};return t(e),s}function Nc(e,r){const o=r||function(a){return a.message},s={errors:[]},t=(a,f=[])=>{var k,R;for(const B of a.issues)if(B.code==="invalid_union"&&B.errors.length)B.errors.map(me=>t({issues:me},B.path));else if(B.code==="invalid_key")t({issues:B.issues},B.path);else if(B.code==="invalid_element")t({issues:B.issues},B.path);else{const me=[...f,...B.path];if(me.length===0){s.errors.push(o(B));continue}let K=s,Re=0;for(;Re<me.length;){const ye=me[Re],H=Re===me.length-1;typeof ye=="string"?(K.properties??(K.properties={}),(k=K.properties)[ye]??(k[ye]={errors:[]}),K=K.properties[ye]):(K.items??(K.items=[]),(R=K.items)[ye]??(R[ye]={errors:[]}),K=K.items[ye]),H&&K.errors.push(o(B)),Re++}}};return t(e),s}function jc(e){const r=[],o=e.map(s=>typeof s=="object"?s.key:s);for(const s of o)typeof s=="number"?r.push(`[${s}]`):typeof s=="symbol"?r.push(`[${JSON.stringify(String(s))}]`):/[^\w$]/.test(s)?r.push(`[${JSON.stringify(s)}]`):(r.length&&r.push("."),r.push(s));return r.join("")}function Tc(e){const r=[],o=[...e.issues].sort((s,t)=>(s.path??[]).length-(t.path??[]).length);for(const s of o)r.push(`✖ ${s.message}`),s.path?.length&&r.push(` → at ${jc(s.path)}`);return r.join(`
|
|
23
|
-
`)}const Li=e=>(r,o,s,t)=>{const a=s?Object.assign(s,{async:!1}):{async:!1},f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise)throw new Cn;if(f.issues.length){const k=new(t?.Err??e)(f.issues.map(R=>Ar(R,a,ur())));throw Ba(k,t?.callee),k}return f.value},Xa=Li(hr),Ai=e=>async(r,o,s,t)=>{const a=s?Object.assign(s,{async:!0}):{async:!0};let f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise&&(f=await f),f.issues.length){const k=new(t?.Err??e)(f.issues.map(R=>Ar(R,a,ur())));throw Ba(k,t?.callee),k}return f.value},es=Ai(hr),Zi=e=>(r,o,s)=>{const t=s?{...s,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new Cn;return a.issues.length?{success:!1,error:new(e??Ya)(a.issues.map(f=>Ar(f,t,ur())))}:{success:!0,data:a.value}},Oc=Zi(hr),Ri=e=>async(r,o,s)=>{const t=s?Object.assign(s,{async:!0}):{async:!0};let a=r._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(f=>Ar(f,t,ur())))}:{success:!0,data:a.value}},Ec=Ri(hr),ts=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Li(e)(r,o,t)},ay=ts(hr),rs=e=>(r,o,s)=>Li(e)(r,o,s),sy=rs(hr),ns=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ai(e)(r,o,t)},uy=ns(hr),is=e=>async(r,o,s)=>Ai(e)(r,o,s),ly=is(hr),os=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Zi(e)(r,o,t)},cy=os(hr),as=e=>(r,o,s)=>Zi(e)(r,o,s),dy=as(hr),ss=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ri(e)(r,o,t)},fy=ss(hr),us=e=>async(r,o,s)=>Ri(e)(r,o,s),my=us(hr),Pc=/^[cC][^\s-]{8,}$/,Cc=/^[0-9a-z]+$/,Mc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Dc=/^[0-9a-vA-V]{20}$/,Uc=/^[A-Za-z0-9]{27}$/,Lc=/^[a-zA-Z0-9_-]{21}$/,Ac=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,py=/^[-+]?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)?)??$/,Zc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,fi=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,gy=fi(4),vy=fi(6),hy=fi(7),Rc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,by=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yy=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,qc=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,$y=qc,wy=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_y="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Fc(){return new RegExp(_y,"u")}const Wc=/^(?:(?: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])$/,Gc=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,Qc=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Jc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Vc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ls=/^[A-Za-z0-9_-]*$/,cs=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Bc=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Yc=/^\+(?:[0-9]){6,14}[0-9]$/,Kc="(?:(?:\\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])))",Hc=new RegExp(`^${Kc}$`);function Xc(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ed(e){return new RegExp(`^${Xc(e)}$`)}function td(e){const r=Xc({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${r}(?:${o.join("|")})`;return new RegExp(`^${Kc}T(?:${s})$`)}const rd=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},nd=/^-?\d+n?$/,id=/^-?\d+$/,od=/^-?\d+(?:\.\d+)?/,ad=/^(?:true|false)$/i,sd=/^null$/i,ud=/^undefined$/i,ld=/^[^A-Z]*$/,cd=/^[^a-z]*$/,dd=/^[0-9a-fA-F]*$/;function qi(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Fi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const ds=Object.freeze(Object.defineProperty({__proto__:null,base64:Vc,base64url:ls,bigint:nd,boolean:ad,browserEmail:wy,cidrv4:Qc,cidrv6:Jc,cuid:Pc,cuid2:Cc,date:Hc,datetime:td,domain:Bc,duration:Ac,e164:Yc,email:Rc,emoji:Fc,extendedDuration:py,guid:Zc,hex:dd,hostname:cs,html5Email:by,idnEmail:$y,integer:id,ipv4:Wc,ipv6:Gc,ksuid:Uc,lowercase:ld,md5_base64:qi(22,"=="),md5_base64url:Fi(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:Lc,null:sd,number:od,rfc5322Email:yy,sha1_base64:qi(27,"="),sha1_base64url:Fi(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:qi(43,"="),sha256_base64url:Fi(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:qi(64,""),sha384_base64url:Fi(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:qi(86,"=="),sha512_base64url:Fi(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:rd,time:ed,ulid:Mc,undefined:ud,unicodeEmail:qc,uppercase:cd,uuid:fi,uuid4:gy,uuid6:vy,uuid7:hy,xid:Dc},Symbol.toStringTag,{value:"Module"})),Dt=M("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),fd={number:"number",bigint:"bigint",object:"date"},fs=M("$ZodCheckLessThan",(e,r)=>{Dt.init(e,r);const o=fd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<a&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value<=r.value:s.value<r.value)||s.issues.push({origin:o,code:"too_big",maximum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),ms=M("$ZodCheckGreaterThan",(e,r)=>{Dt.init(e,r);const o=fd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value>=r.value:s.value>r.value)||s.issues.push({origin:o,code:"too_small",minimum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),md=M("$ZodCheckMultipleOf",(e,r)=>{Dt.init(e,r),e._zod.onattach.push(o=>{var s;(s=o._zod.bag).multipleOf??(s.multipleOf=r.value)}),e._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):cc(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:e,continue:!r.abort})}}),pd=M("$ZodCheckNumberFormat",(e,r)=>{Dt.init(e,r),r.format=r.format||"float64";const o=r.format?.includes("int"),s=o?"int":"number",[t,a]=gc[r.format];e._zod.onattach.push(f=>{const k=f._zod.bag;k.format=r.format,k.minimum=t,k.maximum=a,o&&(k.pattern=id)}),e._zod.check=f=>{const k=f.value;if(o){if(!Number.isInteger(k)){f.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:k,inst:e});return}if(!Number.isSafeInteger(k)){k>0?f.issues.push({input:k,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort}):f.issues.push({input:k,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort});return}}k<t&&f.issues.push({origin:"number",input:k,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),k>a&&f.issues.push({origin:"number",input:k,code:"too_big",maximum:a,inst:e})}}),gd=M("$ZodCheckBigIntFormat",(e,r)=>{Dt.init(e,r);const[o,s]=vc[r.format];e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,a.minimum=o,a.maximum=s}),e._zod.check=t=>{const a=t.value;a<o&&t.issues.push({origin:"bigint",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!r.abort}),a>s&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:s,inst:e})}}),vd=M("$ZodCheckMaxSize",(e,r)=>{var o;Dt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Mn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;t.size<=r.maximum||s.issues.push({origin:Mo(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),hd=M("$ZodCheckMinSize",(e,r)=>{var o;Dt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Mn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;t.size>=r.minimum||s.issues.push({origin:Mo(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),bd=M("$ZodCheckSizeEquals",(e,r)=>{var o;Dt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Mn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=s=>{const t=s.value,a=t.size;if(a===r.size)return;const f=a>r.size;s.issues.push({origin:Mo(t),...f?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),yd=M("$ZodCheckMaxLength",(e,r)=>{var o;Dt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Mn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;if(t.length<=r.maximum)return;const f=Do(t);s.issues.push({origin:f,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),$d=M("$ZodCheckMinLength",(e,r)=>{var o;Dt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Mn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;if(t.length>=r.minimum)return;const f=Do(t);s.issues.push({origin:f,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),wd=M("$ZodCheckLengthEquals",(e,r)=>{var o;Dt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Mn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=s=>{const t=s.value,a=t.length;if(a===r.length)return;const f=Do(t),k=a>r.length;s.issues.push({origin:f,...k?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),Wi=M("$ZodCheckStringFormat",(e,r)=>{var o,s;Dt.init(e,r),e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=e._zod).check??(o.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(s=e._zod).check??(s.check=()=>{})}),_d=M("$ZodCheckRegex",(e,r)=>{Wi.init(e,r),e._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),kd=M("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=ld),Wi.init(e,r)}),xd=M("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=cd),Wi.init(e,r)}),Sd=M("$ZodCheckIncludes",(e,r)=>{Dt.init(e,r);const o=bn(r.includes),s=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=s,e._zod.onattach.push(t=>{const a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(s)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Id=M("$ZodCheckStartsWith",(e,r)=>{Dt.init(e,r);const o=new RegExp(`^${bn(r.prefix)}.*`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.startsWith(r.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:s.value,inst:e,continue:!r.abort})}}),zd=M("$ZodCheckEndsWith",(e,r)=>{Dt.init(e,r);const o=new RegExp(`.*${bn(r.suffix)}$`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.endsWith(r.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:s.value,inst:e,continue:!r.abort})}});function Nd(e,r,o){e.issues.length&&r.issues.push(...Lr(o,e.issues))}const jd=M("$ZodCheckProperty",(e,r)=>{Dt.init(e,r),e._zod.check=o=>{const s=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(s instanceof Promise)return s.then(t=>Nd(t,o,r.property));Nd(s,o,r.property)}}),Td=M("$ZodCheckMimeType",(e,r)=>{Dt.init(e,r);const o=new Set(r.mime);e._zod.onattach.push(s=>{s._zod.bag.mime=r.mime}),e._zod.check=s=>{o.has(s.value.type)||s.issues.push({code:"invalid_value",values:r.mime,input:s.value.type,inst:e,continue:!r.abort})}}),Od=M("$ZodCheckOverwrite",(e,r)=>{Dt.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});class Ed{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const s=r.split(`
|
|
22
|
+
<%s key={someKey} {...props} />`,Lt,Yt,Zt,Yt),so[Yt+Lt]=!0)}if(Yt=null,Nt!==void 0&&(o(Nt),Yt=""+Nt),f(Ve)&&(o(Ve.key),Yt=""+Ve.key),"key"in Ve){Nt={};for(var Jn in Ve)Jn!=="key"&&(Nt[Jn]=Ve[Jn])}else Nt=Ve;return Yt&&_(Nt,typeof pe=="function"?pe.displayName||pe.name||"Unknown":pe),X(pe,Yt,Tr,gt,t(),Nt,Vn,bi)}function ue(pe){typeof pe=="object"&&pe!==null&&pe.$$typeof===ge&&pe._store&&(pe._store.validated=1)}var ze=rr,ge=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),Me=Symbol.for("react.strict_mode"),pt=Symbol.for("react.profiler"),ct=Symbol.for("react.consumer"),dt=Symbol.for("react.context"),bt=Symbol.for("react.forward_ref"),lr=Symbol.for("react.suspense"),Br=Symbol.for("react.suspense_list"),Qt=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"),ic=Symbol.for("react.activity"),ya=Symbol.for("react.client.reference"),oo=ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_n=Object.prototype.hasOwnProperty,oc=Array.isArray,Qn=console.createTask?console.createTask:function(){return null};ze={react_stack_bottom_frame:function(pe){return pe()}};var Gn,Yr={},jr=ze.react_stack_bottom_frame.bind(ze,a)(),ao=Qn(s(a)),so={};Di.Fragment=ye,Di.jsx=function(pe,Ve,Nt,Lt,gt){var Tr=1e4>oo.recentlyCreatedOwnerStacks++;return ce(pe,Ve,Nt,!1,Lt,gt,Tr?Error("react-stack-top-frame"):jr,Tr?Qn(s(pe)):ao)},Di.jsxs=function(pe,Ve,Nt,Lt,gt){var Tr=1e4>oo.recentlyCreatedOwnerStacks++;return ce(pe,Ve,Nt,!0,Lt,gt,Tr?Error("react-stack-top-frame"):jr,Tr?Qn(s(pe)):ao)}})()),Di}var cl;function Rb(){return cl||(cl=1,process.env.NODE_ENV==="production"?jo.exports=Ab():jo.exports=Zb()),jo.exports}var Fb=Rb();class qb extends EventTarget{subscriptions=new Map;targetOrigin="*";matchesFilter(r,o){return!o||o==="*"||o===null||o===void 0?!0:typeof o=="string"?r===o:Array.isArray(o)?o.includes(r||""):typeof o=="function"?o(r||""):!1}getFormIdFromPayload(r){return r?.feedbackConfigurationId}publish(r,o,s){const t=this.getFormIdFromPayload(o);console.log(`[FormEventPublisher] 📢 Publishing "${r}"`,{formId:t,payload:o}),typeof window<"u"&&(window.dispatchEvent(new CustomEvent(r,{detail:o,bubbles:!0})),console.log("[FormEventPublisher] ✅ Event dispatched on window")),s?.usePostMessage!==!1&&this.sendPostMessage(r,o)}subscribe(r,o,s){const t=Symbol("subscription"),a={eventType:r,handler:o,filter:s?.formId,id:t,once:s?.once};this.subscriptions.has(r)||this.subscriptions.set(r,[]),this.subscriptions.get(r).push(a),console.log(`[FormEventPublisher] Subscribed to "${r}"`,{formId:s?.formId,once:s?.once,totalSubscriptions:this.subscriptions.get(r).length});const f=_=>{const q=_,X=this.getFormIdFromPayload(q.detail);this.matchesFilter(X,s?.formId)&&(o(q.detail),s?.once&&typeof window<"u"&&window.removeEventListener(r,f))};return typeof window<"u"&&window.addEventListener(r,f),()=>{console.log(`[FormEventPublisher] Unsubscribed from "${r}"`,{formId:s?.formId,remainingSubscriptions:(this.subscriptions.get(r)?.length||1)-1}),this.unsubscribe(t),typeof window<"u"&&window.removeEventListener(r,f)}}unsubscribe(r){for(const[o,s]of this.subscriptions.entries()){const t=s.findIndex(a=>a.id===r);if(t!==-1){s.splice(t,1),s.length===0&&this.subscriptions.delete(o);break}}}subscribeAll(r,o){console.log("[FormEventPublisher] Subscribing to ALL events",{formId:o?.formId,once:o?.once});const s=["form:view","form:submit","form:close","form:section:change","form:question:answered","form:error"],t=[];return s.forEach(a=>{const f=this.subscribe(a,_=>r(a,_),o);t.push(f)}),()=>{console.log("[FormEventPublisher] Unsubscribing from ALL events",{formId:o?.formId}),t.forEach(a=>a())}}getSubscriptionCount(r){return r?this.subscriptions.get(r)?.length||0:Array.from(this.subscriptions.values()).reduce((o,s)=>o+s.length,0)}clearSubscriptions(r){r?this.subscriptions.delete(r):this.subscriptions.clear()}sendPostMessage(r,o){const s={type:`encatch:${r}`,payload:o,source:"encatch-form-engine"};window.parent&&window.parent!==window&&window.parent.postMessage(s,this.targetOrigin),document.querySelectorAll("iframe").forEach(t=>{t.contentWindow&&t.contentWindow.postMessage(s,this.targetOrigin)}),typeof window.ReactNativeWebView<"u"&&window.ReactNativeWebView.postMessage(JSON.stringify({action:r.replace("form:",""),data:JSON.stringify(o)}))}}console.log("[FormEventPublisher] Creating singleton instance");const yn=new qb;typeof window<"u"&&Promise.resolve().then(()=>Ck).then(({EncatchAppElement:e})=>{try{customElements.get("encatch-app")||customElements.define("encatch-app",e)}catch(r){console.debug("Custom element registration:",r)}});const Wb=({formData:e,cssLink:r,scale:o=100,persistMode:s="none",instanceId:t,onFormEvent:a})=>{const[f,_]=rr.useState(!1),[q,X]=rr.useState(!0),ce=rr.useRef(null),ue=rr.useRef(null),ze=rr.useRef({});rr.useEffect(()=>{if(!a)return;a({onSubmit:ye=>{ze.current.onSubmit=ye},onView:ye=>{ze.current.onView=ye},onClose:ye=>{ze.current.onClose=ye},onSectionChange:ye=>{ze.current.onSectionChange=ye},onQuestionAnswered:ye=>{ze.current.onQuestionAnswered=ye},onError:ye=>{ze.current.onError=ye}})},[a]),rr.useEffect(()=>{if(!t)return;const A=[];return ze.current.onSubmit&&A.push(yn.subscribe("form:submit",ze.current.onSubmit,{formId:t})),ze.current.onView&&A.push(yn.subscribe("form:view",ze.current.onView,{formId:t})),ze.current.onClose&&A.push(yn.subscribe("form:close",ze.current.onClose,{formId:t})),ze.current.onSectionChange&&A.push(yn.subscribe("form:section:change",ze.current.onSectionChange,{formId:t})),ze.current.onQuestionAnswered&&A.push(yn.subscribe("form:question:answered",ze.current.onQuestionAnswered,{formId:t})),ze.current.onError&&A.push(yn.subscribe("form:error",ze.current.onError,{formId:t})),()=>{A.forEach(ye=>ye())}},[t]),rr.useEffect(()=>{(()=>{try{return e?!0:(console.warn("[EncatchPreview] formData is not defined"),!1)}catch(ye){return console.error("[EncatchPreview] Error during data validation:",ye),!1}})()?_(!0):console.warn("[EncatchPreview] Data validation failed, retrying in 100ms...")},[e]);const ge=rr.useCallback(()=>{e.onClose&&e.onClose(),X(!1)},[e.onClose]);return rr.useEffect(()=>{if(!f||!ce.current)return;const A=document.createElement("encatch-app");return A.theme=e.theme,A.currentMode=e.currentMode,A.currentLanguage=e.currentLanguage,A.questions=e.questions,A.questionLanguages=e.questionLanguages,A.otherConfigurationProperties=e.otherConfigurationProperties,A.welcomeScreenProperties=e.welcomeScreenProperties,A.endScreenProperties=e.endScreenProperties,A.translations=e.translations,A.sections=e.sections,A.themeSettings=e.themeSettings,A.onClose=ge,A.onSectionChange=e.onSectionChange,A.apiKey=e.apiKey,A.hostUrl=e.hostUrl,A.feedbackConfigId=e.feedbackConfigId,A.identifier=e.identifier,A.cssLink=r,A.scale=o,A.persistMode=s,t&&(A.instanceId=t),ue.current=A,ce.current.appendChild(A),()=>{ce.current&&ue.current&&ce.current.removeChild(ue.current),ue.current=null}},[f,e,r,o,ge,s,t]),q?Fb.jsx("div",{ref:ce}):null};function Qb(e,r,o){rr.useEffect(()=>yn.subscribe(e,r,o),[e,o?.formId,r])}function Gb(e,r){rr.useEffect(()=>yn.subscribeAll(e,r),[r?.formId,e])}var Li={exports:{}};const ll=Object.freeze({status:"aborted"});function D(e,r,o){function s(_,q){var X;Object.defineProperty(_,"_zod",{value:_._zod??{},enumerable:!1}),(X=_._zod).traits??(X.traits=new Set),_._zod.traits.add(e),r(_,q);for(const ce in f.prototype)ce in _||Object.defineProperty(_,ce,{value:f.prototype[ce].bind(_)});_._zod.constr=f,_._zod.def=q}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:e});function f(_){var q;const X=o?.Parent?new a:this;s(X,_),(q=X._zod).deferred??(q.deferred=[]);for(const ce of X._zod.deferred)ce();return X}return Object.defineProperty(f,"init",{value:s}),Object.defineProperty(f,Symbol.hasInstance,{value:_=>o?.Parent&&_ instanceof o.Parent?!0:_?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}const dl=Symbol("zod_brand");class Mn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class To extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const Oo={};function cr(e){return e&&Object.assign(Oo,e),Oo}function Vb(e){return e}function Jb(e){return e}function Bb(e){}function Yb(e){throw new Error}function Kb(e){}function Ba(e){const r=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,t])=>r.indexOf(+s)===-1).map(([s,t])=>t)}function he(e,r="|"){return e.map(o=>Fe(o)).join(r)}function Eo(e,r){return typeof r=="bigint"?r.toString():r}function Ai(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function Dn(e){return e==null}function Po(e){const r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}function fl(e,r){const o=(e.toString().split(".")[1]||"").length,s=r.toString();let t=(s.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(s)){const q=s.match(/\d?e-(\d?)/);q?.[1]&&(t=Number.parseInt(q[1]))}const a=o>t?o:t,f=Number.parseInt(e.toFixed(a).replace(".","")),_=Number.parseInt(r.toFixed(a).replace(".",""));return f%_/10**a}const ml=Symbol("evaluating");function ot(e,r,o){let s;Object.defineProperty(e,r,{get(){if(s!==ml)return s===void 0&&(s=ml,s=o()),s},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function Co(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Dr(e,r,o){Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function $n(...e){const r={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(r,s)}return Object.defineProperties({},r)}function Hb(e){return $n(e._zod.def)}function Xb(e,r){return r?r.reduce((o,s)=>o?.[s],e):e}function ey(e){const r=Object.keys(e),o=r.map(s=>e[s]);return Promise.all(o).then(s=>{const t={};for(let a=0;a<r.length;a++)t[r[a]]=s[a];return t})}function ty(e=10){const r="abcdefghijklmnopqrstuvwxyz";let o="";for(let s=0;s<e;s++)o+=r[Math.floor(Math.random()*r.length)];return o}function Ya(e){return JSON.stringify(e)}const Ka="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function fi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const pl=Ai(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ln(e){if(fi(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(fi(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Uo(e){return Ln(e)?{...e}:Array.isArray(e)?[...e]:e}function ry(e){let r=0;for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}const ny=e=>{const r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Mo=new Set(["string","number","symbol"]),gl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function wn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nr(e,r,o){const s=new e._zod.constr(r??e._zod.def);return(!r||o?.parent)&&(s._zod.parent=e),s}function se(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function iy(e){let r;return new Proxy({},{get(o,s,t){return r??(r=e()),Reflect.get(r,s,t)},set(o,s,t,a){return r??(r=e()),Reflect.set(r,s,t,a)},has(o,s){return r??(r=e()),Reflect.has(r,s)},deleteProperty(o,s){return r??(r=e()),Reflect.deleteProperty(r,s)},ownKeys(o){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,s){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,s)},defineProperty(o,s,t){return r??(r=e()),Reflect.defineProperty(r,s,t)}})}function Fe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function hl(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const vl={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},bl={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function yl(e,r){const o=e._zod.def,s=$n(e._zod.def,{get shape(){const t={};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(t[a]=o.shape[a])}return Dr(this,"shape",t),t},checks:[]});return Nr(e,s)}function $l(e,r){const o=e._zod.def,s=$n(e._zod.def,{get shape(){const t={...e._zod.def.shape};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete t[a]}return Dr(this,"shape",t),t},checks:[]});return Nr(e,s)}function wl(e,r){if(!Ln(r))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const t=$n(e._zod.def,{get shape(){const a={...e._zod.def.shape,...r};return Dr(this,"shape",a),a},checks:[]});return Nr(e,t)}function _l(e,r){if(!Ln(r))throw new Error("Invalid input to safeExtend: expected a plain object");const o={...e._zod.def,get shape(){const s={...e._zod.def.shape,...r};return Dr(this,"shape",s),s},checks:e._zod.def.checks};return Nr(e,o)}function kl(e,r){const o=$n(e._zod.def,{get shape(){const s={...e._zod.def.shape,...r._zod.def.shape};return Dr(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:[]});return Nr(e,o)}function xl(e,r,o){const s=$n(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in t))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=e?new e({type:"optional",innerType:t[f]}):t[f])}else for(const f in t)a[f]=e?new e({type:"optional",innerType:t[f]}):t[f];return Dr(this,"shape",a),a},checks:[]});return Nr(r,s)}function Sl(e,r,o){const s=$n(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in a))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=new e({type:"nonoptional",innerType:t[f]}))}else for(const f in t)a[f]=new e({type:"nonoptional",innerType:t[f]});return Dr(this,"shape",a),a},checks:[]});return Nr(r,s)}function An(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function Lr(e,r){return r.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(e),o})}function Zi(e){return typeof e=="string"?e:e?.message}function Ar(e,r,o){const s={...e,path:e.path??[]};if(!e.message){const t=Zi(e.inst?._zod.def?.error?.(e))??Zi(r?.error?.(e))??Zi(o.customError?.(e))??Zi(o.localeError?.(e))??"Invalid input";s.message=t}return delete s.inst,delete s.continue,r?.reportInput||delete s.input,s}function Do(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Lo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function mi(...e){const[r,o,s]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:s}:{...r}}function oy(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function Il(e){const r=atob(e),o=new Uint8Array(r.length);for(let s=0;s<r.length;s++)o[s]=r.charCodeAt(s);return o}function zl(e){let r="";for(let o=0;o<e.length;o++)r+=String.fromCharCode(e[o]);return btoa(r)}function ay(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return Il(r+o)}function sy(e){return zl(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function uy(e){const r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2)o[s/2]=Number.parseInt(r.slice(s,s+2),16);return o}function cy(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class ly{constructor(...r){}}const Nl=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:bl,Class:ly,NUMBER_FORMAT_RANGES:vl,aborted:An,allowsEval:pl,assert:Kb,assertEqual:Vb,assertIs:Bb,assertNever:Yb,assertNotEqual:Jb,assignProp:Dr,base64ToUint8Array:Il,base64urlToUint8Array:ay,cached:Ai,captureStackTrace:Ka,cleanEnum:oy,cleanRegex:Po,clone:Nr,cloneDef:Hb,createTransparentProxy:iy,defineLazy:ot,esc:Ya,escapeRegex:wn,extend:wl,finalizeIssue:Ar,floatSafeRemainder:fl,getElementAtPath:Xb,getEnumValues:Ba,getLengthableOrigin:Lo,getParsedType:ny,getSizableOrigin:Do,hexToUint8Array:uy,isObject:fi,isPlainObject:Ln,issue:mi,joinValues:he,jsonStringifyReplacer:Eo,merge:kl,mergeDefs:$n,normalizeParams:se,nullish:Dn,numKeys:ry,objectClone:Co,omit:$l,optionalKeys:hl,partial:xl,pick:yl,prefixIssues:Lr,primitiveTypes:gl,promiseAllObject:ey,propertyKeyTypes:Mo,randomString:ty,required:Sl,safeExtend:_l,shallowClone:Uo,stringifyPrimitive:Fe,uint8ArrayToBase64:zl,uint8ArrayToBase64url:sy,uint8ArrayToHex:cy,unwrapMessage:Zi},Symbol.toStringTag,{value:"Module"})),jl=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Eo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ha=D("$ZodError",jl),br=D("$ZodError",jl,{Parent:Error});function Xa(e,r=o=>o.message){const o={},s=[];for(const t of e.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):s.push(r(t));return{formErrors:s,fieldErrors:o}}function es(e,r){const o=r||function(a){return a.message},s={_errors:[]},t=a=>{for(const f of a.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(_=>t({issues:_}));else if(f.code==="invalid_key")t({issues:f.issues});else if(f.code==="invalid_element")t({issues:f.issues});else if(f.path.length===0)s._errors.push(o(f));else{let _=s,q=0;for(;q<f.path.length;){const X=f.path[q];q===f.path.length-1?(_[X]=_[X]||{_errors:[]},_[X]._errors.push(o(f))):_[X]=_[X]||{_errors:[]},_=_[X],q++}}};return t(e),s}function Tl(e,r){const o=r||function(a){return a.message},s={errors:[]},t=(a,f=[])=>{var _,q;for(const X of a.issues)if(X.code==="invalid_union"&&X.errors.length)X.errors.map(ce=>t({issues:ce},X.path));else if(X.code==="invalid_key")t({issues:X.issues},X.path);else if(X.code==="invalid_element")t({issues:X.issues},X.path);else{const ce=[...f,...X.path];if(ce.length===0){s.errors.push(o(X));continue}let ue=s,ze=0;for(;ze<ce.length;){const ge=ce[ze],A=ze===ce.length-1;typeof ge=="string"?(ue.properties??(ue.properties={}),(_=ue.properties)[ge]??(_[ge]={errors:[]}),ue=ue.properties[ge]):(ue.items??(ue.items=[]),(q=ue.items)[ge]??(q[ge]={errors:[]}),ue=ue.items[ge]),A&&ue.errors.push(o(X)),ze++}}};return t(e),s}function Ol(e){const r=[],o=e.map(s=>typeof s=="object"?s.key:s);for(const s of o)typeof s=="number"?r.push(`[${s}]`):typeof s=="symbol"?r.push(`[${JSON.stringify(String(s))}]`):/[^\w$]/.test(s)?r.push(`[${JSON.stringify(s)}]`):(r.length&&r.push("."),r.push(s));return r.join("")}function El(e){const r=[],o=[...e.issues].sort((s,t)=>(s.path??[]).length-(t.path??[]).length);for(const s of o)r.push(`✖ ${s.message}`),s.path?.length&&r.push(` → at ${Ol(s.path)}`);return r.join(`
|
|
23
|
+
`)}const Ri=e=>(r,o,s,t)=>{const a=s?Object.assign(s,{async:!1}):{async:!1},f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise)throw new Mn;if(f.issues.length){const _=new(t?.Err??e)(f.issues.map(q=>Ar(q,a,cr())));throw Ka(_,t?.callee),_}return f.value},ts=Ri(br),Fi=e=>async(r,o,s,t)=>{const a=s?Object.assign(s,{async:!0}):{async:!0};let f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise&&(f=await f),f.issues.length){const _=new(t?.Err??e)(f.issues.map(q=>Ar(q,a,cr())));throw Ka(_,t?.callee),_}return f.value},rs=Fi(br),qi=e=>(r,o,s)=>{const t=s?{...s,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new Mn;return a.issues.length?{success:!1,error:new(e??Ha)(a.issues.map(f=>Ar(f,t,cr())))}:{success:!0,data:a.value}},Pl=qi(br),Wi=e=>async(r,o,s)=>{const t=s?Object.assign(s,{async:!0}):{async:!0};let a=r._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(f=>Ar(f,t,cr())))}:{success:!0,data:a.value}},Cl=Wi(br),ns=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ri(e)(r,o,t)},dy=ns(br),is=e=>(r,o,s)=>Ri(e)(r,o,s),fy=is(br),os=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Fi(e)(r,o,t)},my=os(br),as=e=>async(r,o,s)=>Fi(e)(r,o,s),py=as(br),ss=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return qi(e)(r,o,t)},gy=ss(br),us=e=>(r,o,s)=>qi(e)(r,o,s),hy=us(br),cs=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Wi(e)(r,o,t)},vy=cs(br),ls=e=>async(r,o,s)=>Wi(e)(r,o,s),by=ls(br),Ul=/^[cC][^\s-]{8,}$/,Ml=/^[0-9a-z]+$/,Dl=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ll=/^[0-9a-vA-V]{20}$/,Al=/^[A-Za-z0-9]{27}$/,Zl=/^[a-zA-Z0-9_-]{21}$/,Rl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yy=/^[-+]?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)?)??$/,Fl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,pi=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,$y=pi(4),wy=pi(6),_y=pi(7),ql=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ky=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xy=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Wl=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Sy=Wl,Iy=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,zy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ql(){return new RegExp(zy,"u")}const Gl=/^(?:(?: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])$/,Vl=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,Jl=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Bl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Yl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ds=/^[A-Za-z0-9_-]*$/,fs=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Kl=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Hl=/^\+(?:[0-9]){6,14}[0-9]$/,Xl="(?:(?:\\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])))",ed=new RegExp(`^${Xl}$`);function td(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function rd(e){return new RegExp(`^${td(e)}$`)}function nd(e){const r=td({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${r}(?:${o.join("|")})`;return new RegExp(`^${Xl}T(?:${s})$`)}const id=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},od=/^-?\d+n?$/,ad=/^-?\d+$/,sd=/^-?\d+(?:\.\d+)?/,ud=/^(?:true|false)$/i,cd=/^null$/i,ld=/^undefined$/i,dd=/^[^A-Z]*$/,fd=/^[^a-z]*$/,md=/^[0-9a-fA-F]*$/;function Qi(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Gi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const ms=Object.freeze(Object.defineProperty({__proto__:null,base64:Yl,base64url:ds,bigint:od,boolean:ud,browserEmail:Iy,cidrv4:Jl,cidrv6:Bl,cuid:Ul,cuid2:Ml,date:ed,datetime:nd,domain:Kl,duration:Rl,e164:Hl,email:ql,emoji:Ql,extendedDuration:yy,guid:Fl,hex:md,hostname:fs,html5Email:ky,idnEmail:Sy,integer:ad,ipv4:Gl,ipv6:Vl,ksuid:Al,lowercase:dd,md5_base64:Qi(22,"=="),md5_base64url:Gi(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:Zl,null:cd,number:sd,rfc5322Email:xy,sha1_base64:Qi(27,"="),sha1_base64url:Gi(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:Qi(43,"="),sha256_base64url:Gi(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:Qi(64,""),sha384_base64url:Gi(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:Qi(86,"=="),sha512_base64url:Gi(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:id,time:rd,ulid:Dl,undefined:ld,unicodeEmail:Wl,uppercase:fd,uuid:pi,uuid4:$y,uuid6:wy,uuid7:_y,xid:Ll},Symbol.toStringTag,{value:"Module"})),Mt=D("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),pd={number:"number",bigint:"bigint",object:"date"},ps=D("$ZodCheckLessThan",(e,r)=>{Mt.init(e,r);const o=pd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<a&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value<=r.value:s.value<r.value)||s.issues.push({origin:o,code:"too_big",maximum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),gs=D("$ZodCheckGreaterThan",(e,r)=>{Mt.init(e,r);const o=pd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value>=r.value:s.value>r.value)||s.issues.push({origin:o,code:"too_small",minimum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),gd=D("$ZodCheckMultipleOf",(e,r)=>{Mt.init(e,r),e._zod.onattach.push(o=>{var s;(s=o._zod.bag).multipleOf??(s.multipleOf=r.value)}),e._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):fl(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:e,continue:!r.abort})}}),hd=D("$ZodCheckNumberFormat",(e,r)=>{Mt.init(e,r),r.format=r.format||"float64";const o=r.format?.includes("int"),s=o?"int":"number",[t,a]=vl[r.format];e._zod.onattach.push(f=>{const _=f._zod.bag;_.format=r.format,_.minimum=t,_.maximum=a,o&&(_.pattern=ad)}),e._zod.check=f=>{const _=f.value;if(o){if(!Number.isInteger(_)){f.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:_,inst:e});return}if(!Number.isSafeInteger(_)){_>0?f.issues.push({input:_,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort}):f.issues.push({input:_,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort});return}}_<t&&f.issues.push({origin:"number",input:_,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),_>a&&f.issues.push({origin:"number",input:_,code:"too_big",maximum:a,inst:e})}}),vd=D("$ZodCheckBigIntFormat",(e,r)=>{Mt.init(e,r);const[o,s]=bl[r.format];e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,a.minimum=o,a.maximum=s}),e._zod.check=t=>{const a=t.value;a<o&&t.issues.push({origin:"bigint",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!r.abort}),a>s&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:s,inst:e})}}),bd=D("$ZodCheckMaxSize",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;t.size<=r.maximum||s.issues.push({origin:Do(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),yd=D("$ZodCheckMinSize",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;t.size>=r.minimum||s.issues.push({origin:Do(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),$d=D("$ZodCheckSizeEquals",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=s=>{const t=s.value,a=t.size;if(a===r.size)return;const f=a>r.size;s.issues.push({origin:Do(t),...f?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),wd=D("$ZodCheckMaxLength",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;if(t.length<=r.maximum)return;const f=Lo(t);s.issues.push({origin:f,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),_d=D("$ZodCheckMinLength",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;if(t.length>=r.minimum)return;const f=Lo(t);s.issues.push({origin:f,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),kd=D("$ZodCheckLengthEquals",(e,r)=>{var o;Mt.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Dn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=s=>{const t=s.value,a=t.length;if(a===r.length)return;const f=Lo(t),_=a>r.length;s.issues.push({origin:f,..._?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),Vi=D("$ZodCheckStringFormat",(e,r)=>{var o,s;Mt.init(e,r),e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=e._zod).check??(o.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(s=e._zod).check??(s.check=()=>{})}),xd=D("$ZodCheckRegex",(e,r)=>{Vi.init(e,r),e._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Sd=D("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=dd),Vi.init(e,r)}),Id=D("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=fd),Vi.init(e,r)}),zd=D("$ZodCheckIncludes",(e,r)=>{Mt.init(e,r);const o=wn(r.includes),s=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=s,e._zod.onattach.push(t=>{const a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(s)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Nd=D("$ZodCheckStartsWith",(e,r)=>{Mt.init(e,r);const o=new RegExp(`^${wn(r.prefix)}.*`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.startsWith(r.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:s.value,inst:e,continue:!r.abort})}}),jd=D("$ZodCheckEndsWith",(e,r)=>{Mt.init(e,r);const o=new RegExp(`.*${wn(r.suffix)}$`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.endsWith(r.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:s.value,inst:e,continue:!r.abort})}});function Td(e,r,o){e.issues.length&&r.issues.push(...Lr(o,e.issues))}const Od=D("$ZodCheckProperty",(e,r)=>{Mt.init(e,r),e._zod.check=o=>{const s=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(s instanceof Promise)return s.then(t=>Td(t,o,r.property));Td(s,o,r.property)}}),Ed=D("$ZodCheckMimeType",(e,r)=>{Mt.init(e,r);const o=new Set(r.mime);e._zod.onattach.push(s=>{s._zod.bag.mime=r.mime}),e._zod.check=s=>{o.has(s.value.type)||s.issues.push({code:"invalid_value",values:r.mime,input:s.value.type,inst:e,continue:!r.abort})}}),Pd=D("$ZodCheckOverwrite",(e,r)=>{Mt.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});class Cd{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const s=r.split(`
|
|
24
24
|
`).filter(f=>f),t=Math.min(...s.map(f=>f.length-f.trimStart().length)),a=s.map(f=>f.slice(t)).map(f=>" ".repeat(this.indent*2)+f);for(const f of a)this.content.push(f)}compile(){const r=Function,o=this?.args,t=[...(this?.content??[""]).map(a=>` ${a}`)];return new r(...o,t.join(`
|
|
25
|
-
`))}}const Pd={major:4,minor:1,patch:8},Qe=M("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Pd;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const t of s)for(const a of t._zod.onattach)a(e);if(s.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(f,k,R)=>{let B=Un(f),me;for(const K of k){if(K._zod.def.when){if(!K._zod.def.when(f))continue}else if(B)continue;const Re=f.issues.length,ye=K._zod.check(f);if(ye instanceof Promise&&R?.async===!1)throw new Cn;if(me||ye instanceof Promise)me=(me??Promise.resolve()).then(async()=>{await ye,f.issues.length!==Re&&(B||(B=Un(f,Re)))});else{if(f.issues.length===Re)continue;B||(B=Un(f,Re))}}return me?me.then(()=>f):f},a=(f,k,R)=>{if(Un(f))return f.aborted=!0,f;const B=t(k,s,R);if(B instanceof Promise){if(R.async===!1)throw new Cn;return B.then(me=>e._zod.parse(me,R))}return e._zod.parse(B,R)};e._zod.run=(f,k)=>{if(k.skipChecks)return e._zod.parse(f,k);if(k.direction==="backward"){const B=e._zod.parse({value:f.value,issues:[]},{...k,skipChecks:!0});return B instanceof Promise?B.then(me=>a(me,f,k)):a(B,f,k)}const R=e._zod.parse(f,k);if(R instanceof Promise){if(k.async===!1)throw new Cn;return R.then(B=>t(B,s,k))}return t(R,s,k)}}e["~standard"]={validate:t=>{try{const a=Oc(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Ec(e,t).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),Gi=M("$ZodString",(e,r)=>{Qe.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??rd(e._zod.bag),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),Nt=M("$ZodStringFormat",(e,r)=>{Wi.init(e,r),Gi.init(e,r)}),Cd=M("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Zc),Nt.init(e,r)}),Md=M("$ZodUUID",(e,r)=>{if(r.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(s===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=fi(s))}else r.pattern??(r.pattern=fi());Nt.init(e,r)}),Dd=M("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Rc),Nt.init(e,r)}),Ud=M("$ZodURL",(e,r)=>{Nt.init(e,r),e._zod.check=o=>{try{const s=o.value.trim(),t=new URL(s);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:cs.source,input:o.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:e,continue:!r.abort})),r.normalize?o.value=t.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!r.abort})}}}),Ld=M("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Fc()),Nt.init(e,r)}),Ad=M("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Lc),Nt.init(e,r)}),Zd=M("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Pc),Nt.init(e,r)}),Rd=M("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Cc),Nt.init(e,r)}),qd=M("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Mc),Nt.init(e,r)}),Fd=M("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Dc),Nt.init(e,r)}),Wd=M("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Uc),Nt.init(e,r)}),Gd=M("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=td(r)),Nt.init(e,r)}),Qd=M("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Hc),Nt.init(e,r)}),Jd=M("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=ed(r)),Nt.init(e,r)}),Vd=M("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Ac),Nt.init(e,r)}),Bd=M("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Wc),Nt.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv4"})}),Yd=M("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Gc),Nt.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv6"}),e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!r.abort})}}}),Kd=M("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Qc),Nt.init(e,r)}),Hd=M("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Jc),Nt.init(e,r),e._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[t,a]=s;if(!a)throw new Error;const f=Number(a);if(`${f}`!==a)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!r.abort})}}});function ps(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Xd=M("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Vc),Nt.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64"}),e._zod.check=o=>{ps(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!r.abort})}});function ef(e){if(!ls.test(e))return!1;const r=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return ps(o)}const tf=M("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=ls),Nt.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64url"}),e._zod.check=o=>{ef(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),rf=M("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Yc),Nt.init(e,r)});function nf(e,r=null){try{const o=e.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const t=JSON.parse(atob(s));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}const of=M("$ZodJWT",(e,r)=>{Nt.init(e,r),e._zod.check=o=>{nf(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),af=M("$ZodCustomStringFormat",(e,r)=>{Nt.init(e,r),e._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:e,continue:!r.abort})}}),gs=M("$ZodNumber",(e,r)=>{Qe.init(e,r),e._zod.pattern=e._zod.bag.pattern??od,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}const t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;const a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...a?{received:a}:{}}),o}}),sf=M("$ZodNumber",(e,r)=>{pd.init(e,r),gs.init(e,r)}),vs=M("$ZodBoolean",(e,r)=>{Qe.init(e,r),e._zod.pattern=ad,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=!!o.value}catch{}const t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),o}}),hs=M("$ZodBigInt",(e,r)=>{Qe.init(e,r),e._zod.pattern=nd,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),uf=M("$ZodBigInt",(e,r)=>{gd.init(e,r),hs.init(e,r)}),lf=M("$ZodSymbol",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),o}}),cf=M("$ZodUndefined",(e,r)=>{Qe.init(e,r),e._zod.pattern=ud,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),o}}),df=M("$ZodNull",(e,r)=>{Qe.init(e,r),e._zod.pattern=sd,e._zod.values=new Set([null]),e._zod.parse=(o,s)=>{const t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),o}}),ff=M("$ZodAny",(e,r)=>{Qe.init(e,r),e._zod.parse=o=>o}),mf=M("$ZodUnknown",(e,r)=>{Qe.init(e,r),e._zod.parse=o=>o}),pf=M("$ZodNever",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),gf=M("$ZodVoid",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),o}}),vf=M("$ZodDate",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}const t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:e}),o}});function hf(e,r,o){e.issues.length&&r.issues.push(...Lr(o,e.issues)),r.value[o]=e.value}const bf=M("$ZodArray",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),o;o.value=Array(t.length);const a=[];for(let f=0;f<t.length;f++){const k=t[f],R=r.element._zod.run({value:k,issues:[]},s);R instanceof Promise?a.push(R.then(B=>hf(B,o,f))):hf(R,o,f)}return a.length?Promise.all(a).then(()=>o):o}});function Uo(e,r,o,s){e.issues.length&&r.issues.push(...Lr(o,e.issues)),e.value===void 0?o in s&&(r.value[o]=void 0):r.value[o]=e.value}function yf(e){const r=Object.keys(e.shape);for(const s of r)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=pc(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function $f(e,r,o,s,t,a){const f=[],k=t.keySet,R=t.catchall._zod,B=R.def.type;for(const me of Object.keys(r)){if(k.has(me))continue;if(B==="never"){f.push(me);continue}const K=R.run({value:r[me],issues:[]},s);K instanceof Promise?e.push(K.then(Re=>Uo(Re,o,me,r))):Uo(K,o,me,r)}return f.length&&o.issues.push({code:"unrecognized_keys",keys:f,input:r,inst:a}),e.length?Promise.all(e).then(()=>o):o}const wf=M("$ZodObject",(e,r)=>{Qe.init(e,r);const o=Di(()=>yf(r));ot(e._zod,"propValues",()=>{const f=r.shape,k={};for(const R in f){const B=f[R]._zod;if(B.values){k[R]??(k[R]=new Set);for(const me of B.values)k[R].add(me)}}return k});const s=ci,t=r.catchall;let a;e._zod.parse=(f,k)=>{a??(a=o.value);const R=f.value;if(!s(R))return f.issues.push({expected:"object",code:"invalid_type",input:R,inst:e}),f;f.value={};const B=[],me=a.shape;for(const K of a.keys){const ye=me[K]._zod.run({value:R[K],issues:[]},k);ye instanceof Promise?B.push(ye.then(H=>Uo(H,f,K,R))):Uo(ye,f,K,R)}return t?$f(B,R,f,k,o.value,e):B.length?Promise.all(B).then(()=>f):f}}),_f=M("$ZodObjectJIT",(e,r)=>{wf.init(e,r);const o=e._zod.parse,s=Di(()=>yf(r)),t=Re=>{const ye=new Ed(["shape","payload","ctx"]),H=s.value,Ne=dt=>{const bt=Va(dt);return`shape[${bt}]._zod.run({ value: input[${bt}], issues: [] }, ctx)`};ye.write("const input = payload.value;");const De=Object.create(null);let pt=0;for(const dt of H.keys)De[dt]=`key_${pt++}`;ye.write("const newResult = {};");for(const dt of H.keys){const bt=De[dt],lr=Va(dt);ye.write(`const ${bt} = ${Ne(dt)};`),ye.write(`
|
|
25
|
+
`))}}const Ud={major:4,minor:1,patch:8},Qe=D("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Ud;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const t of s)for(const a of t._zod.onattach)a(e);if(s.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(f,_,q)=>{let X=An(f),ce;for(const ue of _){if(ue._zod.def.when){if(!ue._zod.def.when(f))continue}else if(X)continue;const ze=f.issues.length,ge=ue._zod.check(f);if(ge instanceof Promise&&q?.async===!1)throw new Mn;if(ce||ge instanceof Promise)ce=(ce??Promise.resolve()).then(async()=>{await ge,f.issues.length!==ze&&(X||(X=An(f,ze)))});else{if(f.issues.length===ze)continue;X||(X=An(f,ze))}}return ce?ce.then(()=>f):f},a=(f,_,q)=>{if(An(f))return f.aborted=!0,f;const X=t(_,s,q);if(X instanceof Promise){if(q.async===!1)throw new Mn;return X.then(ce=>e._zod.parse(ce,q))}return e._zod.parse(X,q)};e._zod.run=(f,_)=>{if(_.skipChecks)return e._zod.parse(f,_);if(_.direction==="backward"){const X=e._zod.parse({value:f.value,issues:[]},{..._,skipChecks:!0});return X instanceof Promise?X.then(ce=>a(ce,f,_)):a(X,f,_)}const q=e._zod.parse(f,_);if(q instanceof Promise){if(_.async===!1)throw new Mn;return q.then(X=>t(X,s,_))}return t(q,s,_)}}e["~standard"]={validate:t=>{try{const a=Pl(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Cl(e,t).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),Ji=D("$ZodString",(e,r)=>{Qe.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??id(e._zod.bag),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),zt=D("$ZodStringFormat",(e,r)=>{Vi.init(e,r),Ji.init(e,r)}),Md=D("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Fl),zt.init(e,r)}),Dd=D("$ZodUUID",(e,r)=>{if(r.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(s===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=pi(s))}else r.pattern??(r.pattern=pi());zt.init(e,r)}),Ld=D("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=ql),zt.init(e,r)}),Ad=D("$ZodURL",(e,r)=>{zt.init(e,r),e._zod.check=o=>{try{const s=o.value.trim(),t=new URL(s);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:fs.source,input:o.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:e,continue:!r.abort})),r.normalize?o.value=t.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!r.abort})}}}),Zd=D("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Ql()),zt.init(e,r)}),Rd=D("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Zl),zt.init(e,r)}),Fd=D("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Ul),zt.init(e,r)}),qd=D("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Ml),zt.init(e,r)}),Wd=D("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Dl),zt.init(e,r)}),Qd=D("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Ll),zt.init(e,r)}),Gd=D("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Al),zt.init(e,r)}),Vd=D("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=nd(r)),zt.init(e,r)}),Jd=D("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=ed),zt.init(e,r)}),Bd=D("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=rd(r)),zt.init(e,r)}),Yd=D("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Rl),zt.init(e,r)}),Kd=D("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Gl),zt.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv4"})}),Hd=D("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Vl),zt.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv6"}),e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!r.abort})}}}),Xd=D("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Jl),zt.init(e,r)}),ef=D("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Bl),zt.init(e,r),e._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[t,a]=s;if(!a)throw new Error;const f=Number(a);if(`${f}`!==a)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!r.abort})}}});function hs(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const tf=D("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Yl),zt.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64"}),e._zod.check=o=>{hs(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!r.abort})}});function rf(e){if(!ds.test(e))return!1;const r=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return hs(o)}const nf=D("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=ds),zt.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64url"}),e._zod.check=o=>{rf(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),of=D("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Hl),zt.init(e,r)});function af(e,r=null){try{const o=e.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const t=JSON.parse(atob(s));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}const sf=D("$ZodJWT",(e,r)=>{zt.init(e,r),e._zod.check=o=>{af(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),uf=D("$ZodCustomStringFormat",(e,r)=>{zt.init(e,r),e._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:e,continue:!r.abort})}}),vs=D("$ZodNumber",(e,r)=>{Qe.init(e,r),e._zod.pattern=e._zod.bag.pattern??sd,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}const t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;const a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...a?{received:a}:{}}),o}}),cf=D("$ZodNumber",(e,r)=>{hd.init(e,r),vs.init(e,r)}),bs=D("$ZodBoolean",(e,r)=>{Qe.init(e,r),e._zod.pattern=ud,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=!!o.value}catch{}const t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),o}}),ys=D("$ZodBigInt",(e,r)=>{Qe.init(e,r),e._zod.pattern=od,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),lf=D("$ZodBigInt",(e,r)=>{vd.init(e,r),ys.init(e,r)}),df=D("$ZodSymbol",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),o}}),ff=D("$ZodUndefined",(e,r)=>{Qe.init(e,r),e._zod.pattern=ld,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),o}}),mf=D("$ZodNull",(e,r)=>{Qe.init(e,r),e._zod.pattern=cd,e._zod.values=new Set([null]),e._zod.parse=(o,s)=>{const t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),o}}),pf=D("$ZodAny",(e,r)=>{Qe.init(e,r),e._zod.parse=o=>o}),gf=D("$ZodUnknown",(e,r)=>{Qe.init(e,r),e._zod.parse=o=>o}),hf=D("$ZodNever",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),vf=D("$ZodVoid",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),o}}),bf=D("$ZodDate",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}const t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:e}),o}});function yf(e,r,o){e.issues.length&&r.issues.push(...Lr(o,e.issues)),r.value[o]=e.value}const $f=D("$ZodArray",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),o;o.value=Array(t.length);const a=[];for(let f=0;f<t.length;f++){const _=t[f],q=r.element._zod.run({value:_,issues:[]},s);q instanceof Promise?a.push(q.then(X=>yf(X,o,f))):yf(q,o,f)}return a.length?Promise.all(a).then(()=>o):o}});function Ao(e,r,o,s){e.issues.length&&r.issues.push(...Lr(o,e.issues)),e.value===void 0?o in s&&(r.value[o]=void 0):r.value[o]=e.value}function wf(e){const r=Object.keys(e.shape);for(const s of r)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=hl(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function _f(e,r,o,s,t,a){const f=[],_=t.keySet,q=t.catchall._zod,X=q.def.type;for(const ce of Object.keys(r)){if(_.has(ce))continue;if(X==="never"){f.push(ce);continue}const ue=q.run({value:r[ce],issues:[]},s);ue instanceof Promise?e.push(ue.then(ze=>Ao(ze,o,ce,r))):Ao(ue,o,ce,r)}return f.length&&o.issues.push({code:"unrecognized_keys",keys:f,input:r,inst:a}),e.length?Promise.all(e).then(()=>o):o}const kf=D("$ZodObject",(e,r)=>{Qe.init(e,r);const o=Ai(()=>wf(r));ot(e._zod,"propValues",()=>{const f=r.shape,_={};for(const q in f){const X=f[q]._zod;if(X.values){_[q]??(_[q]=new Set);for(const ce of X.values)_[q].add(ce)}}return _});const s=fi,t=r.catchall;let a;e._zod.parse=(f,_)=>{a??(a=o.value);const q=f.value;if(!s(q))return f.issues.push({expected:"object",code:"invalid_type",input:q,inst:e}),f;f.value={};const X=[],ce=a.shape;for(const ue of a.keys){const ge=ce[ue]._zod.run({value:q[ue],issues:[]},_);ge instanceof Promise?X.push(ge.then(A=>Ao(A,f,ue,q))):Ao(ge,f,ue,q)}return t?_f(X,q,f,_,o.value,e):X.length?Promise.all(X).then(()=>f):f}}),xf=D("$ZodObjectJIT",(e,r)=>{kf.init(e,r);const o=e._zod.parse,s=Ai(()=>wf(r)),t=ze=>{const ge=new Cd(["shape","payload","ctx"]),A=s.value,ye=dt=>{const bt=Ya(dt);return`shape[${bt}]._zod.run({ value: input[${bt}], issues: [] }, ctx)`};ge.write("const input = payload.value;");const Me=Object.create(null);let pt=0;for(const dt of A.keys)Me[dt]=`key_${pt++}`;ge.write("const newResult = {};");for(const dt of A.keys){const bt=Me[dt],lr=Ya(dt);ge.write(`const ${bt} = ${ye(dt)};`),ge.write(`
|
|
26
26
|
if (${bt}.issues.length) {
|
|
27
27
|
payload.issues = payload.issues.concat(${bt}.issues.map(iss => ({
|
|
28
28
|
...iss,
|
|
@@ -39,11 +39,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
39
39
|
newResult[${lr}] = ${bt}.value;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
`)}ye.write("payload.value = newResult;"),ye.write("return payload;");const ut=ye.compile();return(dt,bt)=>ut(Re,dt,bt)};let a;const f=ci,k=!jo.jitless,B=k&&fc.value,me=r.catchall;let K;e._zod.parse=(Re,ye)=>{K??(K=s.value);const H=Re.value;return f(H)?k&&B&&ye?.async===!1&&ye.jitless!==!0?(a||(a=t(r.shape)),Re=a(Re,ye),me?$f([],H,Re,ye,K,e):Re):o(Re,ye):(Re.issues.push({expected:"object",code:"invalid_type",input:H,inst:e}),Re)}});function kf(e,r,o,s){for(const a of e)if(a.issues.length===0)return r.value=a.value,r;const t=e.filter(a=>!Un(a));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(f=>Ar(f,s,ur())))}),r)}const bs=M("$ZodUnion",(e,r)=>{Qe.init(e,r),ot(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),ot(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),ot(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),ot(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){const t=r.options.map(a=>a._zod.pattern);return new RegExp(`^(${t.map(a=>Oo(a.source)).join("|")})$`)}});const o=r.options.length===1,s=r.options[0]._zod.run;e._zod.parse=(t,a)=>{if(o)return s(t,a);let f=!1;const k=[];for(const R of r.options){const B=R._zod.run({value:t.value,issues:[]},a);if(B instanceof Promise)k.push(B),f=!0;else{if(B.issues.length===0)return B;k.push(B)}}return f?Promise.all(k).then(R=>kf(R,t,e,a)):kf(k,t,e,a)}}),xf=M("$ZodDiscriminatedUnion",(e,r)=>{bs.init(e,r);const o=e._zod.parse;ot(e._zod,"propValues",()=>{const t={};for(const a of r.options){const f=a._zod.propValues;if(!f||Object.keys(f).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(const[k,R]of Object.entries(f)){t[k]||(t[k]=new Set);for(const B of R)t[k].add(B)}}return t});const s=Di(()=>{const t=r.options,a=new Map;for(const f of t){const k=f._zod.propValues?.[r.discriminator];if(!k||k.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(f)}"`);for(const R of k){if(a.has(R))throw new Error(`Duplicate discriminator value "${String(R)}"`);a.set(R,f)}}return a});e._zod.parse=(t,a)=>{const f=t.value;if(!ci(f))return t.issues.push({code:"invalid_type",expected:"object",input:f,inst:e}),t;const k=s.value.get(f?.[r.discriminator]);return k?k._zod.run(t,a):r.unionFallback?o(t,a):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:f,path:[r.discriminator],inst:e}),t)}}),Sf=M("$ZodIntersection",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value,a=r.left._zod.run({value:t,issues:[]},s),f=r.right._zod.run({value:t,issues:[]},s);return a instanceof Promise||f instanceof Promise?Promise.all([a,f]).then(([R,B])=>If(o,R,B)):If(o,a,f)}});function ys(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(Dn(e)&&Dn(r)){const o=Object.keys(r),s=Object.keys(e).filter(a=>o.indexOf(a)!==-1),t={...e,...r};for(const a of s){const f=ys(e[a],r[a]);if(!f.valid)return{valid:!1,mergeErrorPath:[a,...f.mergeErrorPath]};t[a]=f.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let s=0;s<e.length;s++){const t=e[s],a=r[s],f=ys(t,a);if(!f.valid)return{valid:!1,mergeErrorPath:[s,...f.mergeErrorPath]};o.push(f.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function If(e,r,o){if(r.issues.length&&e.issues.push(...r.issues),o.issues.length&&e.issues.push(...o.issues),Un(e))return e;const s=ys(r.value,o.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const $s=M("$ZodTuple",(e,r)=>{Qe.init(e,r);const o=r.items,s=o.length-[...o].reverse().findIndex(t=>t._zod.optin!=="optional");e._zod.parse=(t,a)=>{const f=t.value;if(!Array.isArray(f))return t.issues.push({input:f,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];const k=[];if(!r.rest){const B=f.length>o.length,me=f.length<s-1;if(B||me)return t.issues.push({...B?{code:"too_big",maximum:o.length}:{code:"too_small",minimum:o.length},input:f,inst:e,origin:"array"}),t}let R=-1;for(const B of o){if(R++,R>=f.length&&R>=s)continue;const me=B._zod.run({value:f[R],issues:[]},a);me instanceof Promise?k.push(me.then(K=>Lo(K,t,R))):Lo(me,t,R)}if(r.rest){const B=f.slice(o.length);for(const me of B){R++;const K=r.rest._zod.run({value:me,issues:[]},a);K instanceof Promise?k.push(K.then(Re=>Lo(Re,t,R))):Lo(K,t,R)}}return k.length?Promise.all(k).then(()=>t):t}});function Lo(e,r,o){e.issues.length&&r.issues.push(...Lr(o,e.issues)),r.value[o]=e.value}const zf=M("$ZodRecord",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!Dn(t))return o.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),o;const a=[];if(r.keyType._zod.values){const f=r.keyType._zod.values;o.value={};for(const R of f)if(typeof R=="string"||typeof R=="number"||typeof R=="symbol"){const B=r.valueType._zod.run({value:t[R],issues:[]},s);B instanceof Promise?a.push(B.then(me=>{me.issues.length&&o.issues.push(...Lr(R,me.issues)),o.value[R]=me.value})):(B.issues.length&&o.issues.push(...Lr(R,B.issues)),o.value[R]=B.value)}let k;for(const R in t)f.has(R)||(k=k??[],k.push(R));k&&k.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:k})}else{o.value={};for(const f of Reflect.ownKeys(t)){if(f==="__proto__")continue;const k=r.keyType._zod.run({value:f,issues:[]},s);if(k instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(k.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:k.issues.map(B=>Ar(B,s,ur())),input:f,path:[f],inst:e}),o.value[k.value]=k.value;continue}const R=r.valueType._zod.run({value:t[f],issues:[]},s);R instanceof Promise?a.push(R.then(B=>{B.issues.length&&o.issues.push(...Lr(f,B.issues)),o.value[k.value]=B.value})):(R.issues.length&&o.issues.push(...Lr(f,R.issues)),o.value[k.value]=R.value)}}return a.length?Promise.all(a).then(()=>o):o}}),Nf=M("$ZodMap",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),o;const a=[];o.value=new Map;for(const[f,k]of t){const R=r.keyType._zod.run({value:f,issues:[]},s),B=r.valueType._zod.run({value:k,issues:[]},s);R instanceof Promise||B instanceof Promise?a.push(Promise.all([R,B]).then(([me,K])=>{jf(me,K,o,f,t,e,s)})):jf(R,B,o,f,t,e,s)}return a.length?Promise.all(a).then(()=>o):o}});function jf(e,r,o,s,t,a,f){e.issues.length&&(Co.has(typeof s)?o.issues.push(...Lr(s,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(k=>Ar(k,f,ur()))})),r.issues.length&&(Co.has(typeof s)?o.issues.push(...Lr(s,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:s,issues:r.issues.map(k=>Ar(k,f,ur()))})),o.value.set(e.value,r.value)}const Tf=M("$ZodSet",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),o;const a=[];o.value=new Set;for(const f of t){const k=r.valueType._zod.run({value:f,issues:[]},s);k instanceof Promise?a.push(k.then(R=>Of(R,o))):Of(k,o)}return a.length?Promise.all(a).then(()=>o):o}});function Of(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}const Ef=M("$ZodEnum",(e,r)=>{Qe.init(e,r);const o=Ja(r.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(t=>Co.has(typeof t)).map(t=>typeof t=="string"?bn(t):t.toString()).join("|")})$`),e._zod.parse=(t,a)=>{const f=t.value;return s.has(f)||t.issues.push({code:"invalid_value",values:o,input:f,inst:e}),t}}),Pf=M("$ZodLiteral",(e,r)=>{if(Qe.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?bn(o):o?bn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const t=o.value;return e._zod.values.has(t)||o.issues.push({code:"invalid_value",values:r.values,input:t,inst:e}),o}}),Cf=M("$ZodFile",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return t instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),o}}),Mf=M("$ZodTransform",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new No(e.constructor.name);const t=r.transform(o.value,o);if(s.async)return(t instanceof Promise?t:Promise.resolve(t)).then(f=>(o.value=f,o));if(t instanceof Promise)throw new Cn;return o.value=t,o}});function Df(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const Uf=M("$ZodOptional",(e,r)=>{Qe.init(e,r),e._zod.optin="optional",e._zod.optout="optional",ot(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),ot(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${Oo(o.source)})?$`):void 0}),e._zod.parse=(o,s)=>{if(r.innerType._zod.optin==="optional"){const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Df(a,o.value)):Df(t,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,s)}}),Lf=M("$ZodNullable",(e,r)=>{Qe.init(e,r),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),ot(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${Oo(o.source)}|null)$`):void 0}),ot(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(o,s)=>o.value===null?o:r.innerType._zod.run(o,s)}),Af=M("$ZodDefault",(e,r)=>{Qe.init(e,r),e._zod.optin="optional",ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);if(o.value===void 0)return o.value=r.defaultValue,o;const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Zf(a,r)):Zf(t,r)}});function Zf(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const Rf=M("$ZodPrefault",(e,r)=>{Qe.init(e,r),e._zod.optin="optional",ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>(s.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,s))}),qf=M("$ZodNonOptional",(e,r)=>{Qe.init(e,r),ot(e._zod,"values",()=>{const o=r.innerType._zod.values;return o?new Set([...o].filter(s=>s!==void 0)):void 0}),e._zod.parse=(o,s)=>{const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Ff(a,e)):Ff(t,e)}});function Ff(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const Wf=M("$ZodSuccess",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new No("ZodSuccess");const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.issues.length===0,o)):(o.value=t.issues.length===0,o)}}),Gf=M("$ZodCatch",(e,r)=>{Qe.init(e,r),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.value,a.issues.length&&(o.value=r.catchValue({...o,error:{issues:a.issues.map(f=>Ar(f,s,ur()))},input:o.value}),o.issues=[]),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>Ar(a,s,ur()))},input:o.value}),o.issues=[]),o)}}),Qf=M("$ZodNaN",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),Jf=M("$ZodPipe",(e,r)=>{Qe.init(e,r),ot(e._zod,"values",()=>r.in._zod.values),ot(e._zod,"optin",()=>r.in._zod.optin),ot(e._zod,"optout",()=>r.out._zod.optout),ot(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if(s.direction==="backward"){const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Ao(f,r.in,s)):Ao(a,r.in,s)}const t=r.in._zod.run(o,s);return t instanceof Promise?t.then(a=>Ao(a,r.out,s)):Ao(t,r.out,s)}});function Ao(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},o)}const ws=M("$ZodCodec",(e,r)=>{Qe.init(e,r),ot(e._zod,"values",()=>r.in._zod.values),ot(e._zod,"optin",()=>r.in._zod.optin),ot(e._zod,"optout",()=>r.out._zod.optout),ot(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if((s.direction||"forward")==="forward"){const a=r.in._zod.run(o,s);return a instanceof Promise?a.then(f=>Zo(f,r,s)):Zo(a,r,s)}else{const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Zo(f,r,s)):Zo(a,r,s)}}});function Zo(e,r,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){const t=r.transform(e.value,e);return t instanceof Promise?t.then(a=>Ro(e,a,r.out,o)):Ro(e,t,r.out,o)}else{const t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>Ro(e,a,r.in,o)):Ro(e,t,r.in,o)}}function Ro(e,r,o,s){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},s)}const Vf=M("$ZodReadonly",(e,r)=>{Qe.init(e,r),ot(e._zod,"propValues",()=>r.innerType._zod.propValues),ot(e._zod,"values",()=>r.innerType._zod.values),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(Bf):Bf(t)}});function Bf(e){return e.value=Object.freeze(e.value),e}const Yf=M("$ZodTemplateLiteral",(e,r)=>{Qe.init(e,r);const o=[];for(const s of r.parts)if(typeof s=="object"&&s!==null){if(!s._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...s._zod.traits].shift()}`);const t=s._zod.pattern instanceof RegExp?s._zod.pattern.source:s._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${s._zod.traits}`);const a=t.startsWith("^")?1:0,f=t.endsWith("$")?t.length-1:t.length;o.push(t.slice(a,f))}else if(s===null||mc.has(typeof s))o.push(bn(`${s}`));else throw new Error(`Invalid template literal part: ${s}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(s,t)=>typeof s.value!="string"?(s.issues.push({input:s.value,inst:e,expected:"template_literal",code:"invalid_type"}),s):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(s.value)||s.issues.push({input:s.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),s)}),Kf=M("$ZodFunction",(e,r)=>(Qe.init(e,r),e._def=r,e._zod.def=r,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...s){const t=e._def.input?Xa(e._def.input,s):s,a=Reflect.apply(o,this,t);return e._def.output?Xa(e._def.output,a):a}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...s){const t=e._def.input?await es(e._def.input,s):s,a=await Reflect.apply(o,this,t);return e._def.output?await es(e._def.output,a):a}},e._zod.parse=(o,s)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{const s=e.constructor;return Array.isArray(o[0])?new s({type:"function",input:new $s({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new s({type:"function",input:o[0],output:e._def.output})},e.output=o=>{const s=e.constructor;return new s({type:"function",input:e._def.input,output:o})},e)),Hf=M("$ZodPromise",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},s))}),Xf=M("$ZodLazy",(e,r)=>{Qe.init(e,r),ot(e._zod,"innerType",()=>r.getter()),ot(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ot(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ot(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),ot(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(o,s)=>e._zod.innerType._zod.run(o,s)}),em=M("$ZodCustom",(e,r)=>{Dt.init(e,r),Qe.init(e,r),e._zod.parse=(o,s)=>o,e._zod.check=o=>{const s=o.value,t=r.fn(s);if(t instanceof Promise)return t.then(a=>tm(a,o,s,e));tm(t,o,s,e)}});function tm(e,r,o,s){if(!e){const t={code:"custom",input:o,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(t.params=s._zod.def.params),r.issues.push(di(t))}}const ky=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return t=>{switch(t.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${t.expected}، ولكن تم إدخال ${o(t.input)}`;case"invalid_value":return t.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${We(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()} ${f.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()} ${f.unit}`:`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${s[a.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${he(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function xy(){return{localeError:ky()}}const Sy=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${t.expected}, daxil olan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Yanlış dəyər: gözlənilən ${We(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()} ${f.unit??"element"}`:`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${s[a.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Iy(){return{localeError:Sy()}}function rm(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const zy=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"лік";case"object":{if(Array.isArray(t))return"масіў";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return t=>{switch(t.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${t.expected}, атрымана ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Няправільны ўвод: чакалася ${We(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const k=Number(t.maximum),R=rm(k,f.unit.one,f.unit.few,f.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${f.verb} ${a}${t.maximum.toString()} ${R}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const k=Number(t.minimum),R=rm(k,f.unit.one,f.unit.few,f.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${f.verb} ${a}${t.minimum.toString()} ${R}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${s[a.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${he(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function Ny(){return{localeError:zy()}}const jy=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipus invàlid: s'esperava ${t.expected}, s'ha rebut ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Valor invàlid: s'esperava ${We(t.values[0])}`:`Opció invàlida: s'esperava una de ${he(t.values," o ")}`;case"too_big":{const a=t.inclusive?"com a màxim":"menys de",f=r(t.origin);return f?`Massa gran: s'esperava que ${t.origin??"el valor"} contingués ${a} ${t.maximum.toString()} ${f.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"com a mínim":"més de",f=r(t.origin);return f?`Massa petit: s'esperava que ${t.origin} contingués ${a} ${t.minimum.toString()} ${f.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${s[a.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function Ty(){return{localeError:jy()}}const Oy=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{switch(t.code){case"invalid_type":return`Neplatný vstup: očekáváno ${t.expected}, obdrženo ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neplatný vstup: očekáváno ${We(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${a}${t.maximum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${a}${t.minimum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${s[a.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${he(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function Ey(){return{localeError:Oy()}}const Py=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},r={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const k=typeof f;switch(k){case"number":return Number.isNaN(f)?"NaN":"tal";case"object":return Array.isArray(f)?"liste":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype&&f.constructor?f.constructor.name:"objekt"}return k},a={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return f=>{switch(f.code){case"invalid_type":return`Ugyldigt input: forventede ${s(f.expected)}, fik ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Ugyldig værdi: forventede ${We(f.values[0])}`:`Ugyldigt valg: forventede en af følgende ${he(f.values,"|")}`;case"too_big":{const k=f.inclusive?"<=":"<",R=o(f.origin),B=s(f.origin);return R?`For stor: forventede ${B??"value"} ${R.verb} ${k} ${f.maximum.toString()} ${R.unit??"elementer"}`:`For stor: forventede ${B??"value"} havde ${k} ${f.maximum.toString()}`}case"too_small":{const k=f.inclusive?">=":">",R=o(f.origin),B=s(f.origin);return R?`For lille: forventede ${B} ${R.verb} ${k} ${f.minimum.toString()} ${R.unit}`:`For lille: forventede ${B} havde ${k} ${f.minimum.toString()}`}case"invalid_format":{const k=f;return k.format==="starts_with"?`Ugyldig streng: skal starte med "${k.prefix}"`:k.format==="ends_with"?`Ugyldig streng: skal ende med "${k.suffix}"`:k.format==="includes"?`Ugyldig streng: skal indeholde "${k.includes}"`:k.format==="regex"?`Ugyldig streng: skal matche mønsteret ${k.pattern}`:`Ugyldig ${a[k.format]??f.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${f.divisor}`;case"unrecognized_keys":return`${f.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${he(f.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${f.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${f.origin}`;default:return"Ugyldigt input"}}};function Cy(){return{localeError:Py()}}const My=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return t=>{switch(t.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${t.expected}, erhalten ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ungültige Eingabe: erwartet ${We(t.values[0])}`:`Ungültige Option: erwartet eine von ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ${f.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ist`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ${f.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ist`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function Dy(){return{localeError:My()}}const Uy=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Ly=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function r(s){return e[s]??null}const o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return s=>{switch(s.code){case"invalid_type":return`Invalid input: expected ${s.expected}, received ${Uy(s.input)}`;case"invalid_value":return s.values.length===1?`Invalid input: expected ${We(s.values[0])}`:`Invalid option: expected one of ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Too big: expected ${s.origin??"value"} to have ${t}${s.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Too small: expected ${s.origin} to have ${t}${s.minimum.toString()} ${a.unit}`:`Too small: expected ${s.origin} to be ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Invalid string: must start with "${t.prefix}"`:t.format==="ends_with"?`Invalid string: must end with "${t.suffix}"`:t.format==="includes"?`Invalid string: must include "${t.includes}"`:t.format==="regex"?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${o[t.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${he(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function nm(){return{localeError:Ly()}}const Ay=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Zy=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(s){return e[s]??null}const o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return s=>{switch(s.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${s.expected}, riceviĝis ${Ay(s.input)}`;case"invalid_value":return s.values.length===1?`Nevalida enigo: atendiĝis ${We(s.values[0])}`:`Nevalida opcio: atendiĝis unu el ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Tro malgranda: atendiĝis ke ${s.origin} havu ${t}${s.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${s.origin} estu ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${o[t.format]??s.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${s.divisor}`;case"unrecognized_keys":return`Nekonata${s.keys.length>1?"j":""} ŝlosilo${s.keys.length>1?"j":""}: ${he(s.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${s.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${s.origin}`;default:return"Nevalida enigo"}}};function Ry(){return{localeError:Zy()}}const qy=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},r={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const k=typeof f;switch(k){case"number":return Number.isNaN(f)?"NaN":"number";case"object":return Array.isArray(f)?"array":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype?f.constructor.name:"object"}return k},a={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return f=>{switch(f.code){case"invalid_type":return`Entrada inválida: se esperaba ${s(f.expected)}, recibido ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Entrada inválida: se esperaba ${We(f.values[0])}`:`Opción inválida: se esperaba una de ${he(f.values,"|")}`;case"too_big":{const k=f.inclusive?"<=":"<",R=o(f.origin),B=s(f.origin);return R?`Demasiado grande: se esperaba que ${B??"valor"} tuviera ${k}${f.maximum.toString()} ${R.unit??"elementos"}`:`Demasiado grande: se esperaba que ${B??"valor"} fuera ${k}${f.maximum.toString()}`}case"too_small":{const k=f.inclusive?">=":">",R=o(f.origin),B=s(f.origin);return R?`Demasiado pequeño: se esperaba que ${B} tuviera ${k}${f.minimum.toString()} ${R.unit}`:`Demasiado pequeño: se esperaba que ${B} fuera ${k}${f.minimum.toString()}`}case"invalid_format":{const k=f;return k.format==="starts_with"?`Cadena inválida: debe comenzar con "${k.prefix}"`:k.format==="ends_with"?`Cadena inválida: debe terminar en "${k.suffix}"`:k.format==="includes"?`Cadena inválida: debe incluir "${k.includes}"`:k.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${k.pattern}`:`Inválido ${a[k.format]??f.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${f.divisor}`;case"unrecognized_keys":return`Llave${f.keys.length>1?"s":""} desconocida${f.keys.length>1?"s":""}: ${he(f.keys,", ")}`;case"invalid_key":return`Llave inválida en ${s(f.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${s(f.origin)}`;default:return"Entrada inválida"}}};function Fy(){return{localeError:qy()}}const Wy=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"آرایه";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return t=>{switch(t.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${t.expected} میبود، ${o(t.input)} دریافت شد`;case"invalid_value":return t.values.length===1?`ورودی نامعتبر: میبایست ${We(t.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${he(t.values,"|")} میبود`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصر"} باشد`:`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} باشد`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} باشد`:`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} باشد`}case"invalid_format":{const a=t;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${s[a.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${he(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function Gy(){return{localeError:Wy()}}const Qy=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return t=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Virheellinen syöte: täytyy olla ${We(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Liian suuri: ${f.subject} täytyy olla ${a}${t.maximum.toString()} ${f.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Liian pieni: ${f.subject} täytyy olla ${a}${t.minimum.toString()} ${f.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${s[a.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${he(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function Jy(){return{localeError:Qy()}}const Vy=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : ${t.expected} attendu, ${o(t.input)} reçu`;case"invalid_value":return t.values.length===1?`Entrée invalide : ${We(t.values[0])} attendu`:`Option invalide : une valeur parmi ${he(t.values,"|")} attendue`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Trop grand : ${t.origin??"valeur"} doit ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"élément(s)"}`:`Trop grand : ${t.origin??"valeur"} doit être ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Trop petit : ${t.origin} doit ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : ${t.origin} doit être ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${he(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function By(){return{localeError:Vy()}}const Yy=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : attendu ${t.expected}, reçu ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrée invalide : attendu ${We(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"≤":"<",f=r(t.origin);return f?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${a}${t.maximum.toString()} ${f.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"≥":">",f=r(t.origin);return f?`Trop petit : attendu que ${t.origin} ait ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : attendu que ${t.origin} soit ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${he(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function Ky(){return{localeError:Yy()}}const Hy=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return t=>{switch(t.code){case"invalid_type":return`קלט לא תקין: צריך ${t.expected}, התקבל ${o(t.input)}`;case"invalid_value":return t.values.length===1?`קלט לא תקין: צריך ${We(t.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()} ${f.unit??"elements"}`:`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()} ${f.unit}`:`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${s[a.format]??t.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${he(t.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${t.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t.origin}`;default:return"קלט לא תקין"}}};function Xy(){return{localeError:Hy()}}const e$=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"szám";case"object":{if(Array.isArray(t))return"tömb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return t=>{switch(t.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${t.expected}, a kapott érték ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Érvénytelen bemenet: a várt érték ${We(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${a}${t.maximum.toString()} ${f.unit??"elem"}`:`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${a}${t.minimum.toString()} ${f.unit}`:`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${s[a.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function t$(){return{localeError:e$()}}const r$=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${We(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: diharapkan ${t.origin} memiliki ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${s[a.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function n$(){return{localeError:r$()}}const i$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},o$=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function r(s){return e[s]??null}const o={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return s=>{switch(s.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${i$(s.input)} þar sem á að vera ${s.expected}`;case"invalid_value":return s.values.length===1?`Rangt gildi: gert ráð fyrir ${We(s.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} hafi ${t}${s.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} sé ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Of lítið: gert er ráð fyrir að ${s.origin} hafi ${t}${s.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${s.origin} sé ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format==="ends_with"?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format==="includes"?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${o[t.format]??s.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${s.divisor}`;case"unrecognized_keys":return`Óþekkt ${s.keys.length>1?"ir lyklar":"ur lykill"}: ${he(s.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${s.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${s.origin}`;default:return"Rangt gildi"}}};function a$(){return{localeError:o$()}}const s$=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input non valido: atteso ${We(t.values[0])}`:`Opzione non valida: atteso uno tra ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Troppo grande: ${t.origin??"valore"} deve avere ${a}${t.maximum.toString()} ${f.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Troppo piccolo: ${t.origin} deve avere ${a}${t.minimum.toString()} ${f.unit}`:`Troppo piccolo: ${t.origin} deve essere ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${he(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function u$(){return{localeError:s$()}}const l$=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"数値";case"object":{if(Array.isArray(t))return"配列";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return t=>{switch(t.code){case"invalid_type":return`無効な入力: ${t.expected}が期待されましたが、${o(t.input)}が入力されました`;case"invalid_value":return t.values.length===1?`無効な入力: ${We(t.values[0])}が期待されました`:`無効な選択: ${he(t.values,"、")}のいずれかである必要があります`;case"too_big":{const a=t.inclusive?"以下である":"より小さい",f=r(t.origin);return f?`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${f.unit??"要素"}${a}必要があります`:`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${a}必要があります`}case"too_small":{const a=t.inclusive?"以上である":"より大きい",f=r(t.origin);return f?`小さすぎる値: ${t.origin}は${t.minimum.toString()}${f.unit}${a}必要があります`:`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${s[a.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${he(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function c$(){return{localeError:l$()}}const d$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[r]??r},f$=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function r(s){return e[s]??null}const o={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return s=>{switch(s.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${s.expected}, მიღებული ${d$(s.input)}`;case"invalid_value":return s.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${We(s.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${he(s.values,"|")}-დან`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} ${a.verb} ${t}${s.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} იყოს ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${s.origin} ${a.verb} ${t}${s.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${s.origin} იყოს ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${o[t.format]??s.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${s.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${s.keys.length>1?"ები":"ი"}: ${he(s.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${s.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${s.origin}-ში`;default:return"არასწორი შეყვანა"}}};function m$(){return{localeError:f$()}}const p$=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(t))return"អារេ (Array)";if(t===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return t=>{switch(t.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t.expected} ប៉ុន្តែទទួលបាន ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${We(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()} ${f.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()} ${f.unit}`:`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${s[a.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${he(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function im(){return{localeError:p$()}}function g$(){return im()}const v$=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return t=>{switch(t.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${t.expected}, 받은 타입은 ${o(t.input)}입니다`;case"invalid_value":return t.values.length===1?`잘못된 입력: 값은 ${We(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${he(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=t.inclusive?"이하":"미만",f=a==="미만"?"이어야 합니다":"여야 합니다",k=r(t.origin),R=k?.unit??"요소";return k?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${R} ${a}${f}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${a}${f}`}case"too_small":{const a=t.inclusive?"이상":"초과",f=a==="이상"?"이어야 합니다":"여야 합니다",k=r(t.origin),R=k?.unit??"요소";return k?`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${R} ${a}${f}`:`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${a}${f}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${s[a.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${he(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function h$(){return{localeError:v$()}}const b$=e=>Qi(typeof e,e),Qi=(e,r=void 0)=>{switch(e){case"number":return Number.isNaN(r)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return r===void 0?"nežinomas objektas":r===null?"nulinė reikšmė":Array.isArray(r)?"masyvas":Object.getPrototypeOf(r)!==Object.prototype&&r.constructor?r.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Ji=e=>e.charAt(0).toUpperCase()+e.slice(1);function om(e){const r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19||o===0?"many":o===1?"one":"few"}const y$=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function r(s,t,a,f){const k=e[s]??null;return k===null?k:{unit:k.unit[t],verb:k.verb[f][a?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return s=>{switch(s.code){case"invalid_type":return`Gautas tipas ${b$(s.input)}, o tikėtasi - ${Qi(s.expected)}`;case"invalid_value":return s.values.length===1?`Privalo būti ${We(s.values[0])}`:`Privalo būti vienas iš ${he(s.values,"|")} pasirinkimų`;case"too_big":{const t=Qi(s.origin),a=r(s.origin,om(Number(s.maximum)),s.inclusive??!1,"smaller");if(a?.verb)return`${Ji(t??s.origin??"reikšmė")} ${a.verb} ${s.maximum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Ji(t??s.origin??"reikšmė")} turi būti ${f} ${s.maximum.toString()} ${a?.unit}`}case"too_small":{const t=Qi(s.origin),a=r(s.origin,om(Number(s.minimum)),s.inclusive??!1,"bigger");if(a?.verb)return`${Ji(t??s.origin??"reikšmė")} ${a.verb} ${s.minimum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Ji(t??s.origin??"reikšmė")} turi būti ${f} ${s.minimum.toString()} ${a?.unit}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Eilutė privalo prasidėti "${t.prefix}"`:t.format==="ends_with"?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format==="includes"?`Eilutė privalo įtraukti "${t.includes}"`:t.format==="regex"?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${o[t.format]??s.format}`}case"not_multiple_of":return`Skaičius privalo būti ${s.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${s.keys.length>1?"i":"as"} rakt${s.keys.length>1?"ai":"as"}: ${he(s.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const t=Qi(s.origin);return`${Ji(t??s.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function $$(){return{localeError:y$()}}const w$=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"број";case"object":{if(Array.isArray(t))return"низа";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return t=>{switch(t.code){case"invalid_type":return`Грешен внес: се очекува ${t.expected}, примено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Invalid input: expected ${We(t.values[0])}`:`Грешана опција: се очекува една ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${a}${t.maximum.toString()} ${f.unit??"елементи"}`:`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Премногу мал: се очекува ${t.origin} да има ${a}${t.minimum.toString()} ${f.unit}`:`Премногу мал: се очекува ${t.origin} да биде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${he(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function _$(){return{localeError:w$()}}const k$=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${We(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: dijangka ${t.origin??"nilai"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: dijangka ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${s[a.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${he(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function x$(){return{localeError:k$()}}const S$=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return t=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${We(t.values[0])}`:`Ongeldige optie: verwacht één van ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} ${f.unit??"elementen"} bevat`:`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} is`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} ${f.unit} bevat`:`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} is`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function I$(){return{localeError:S$()}}const z$=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${We(t.values[0])}`:`Ugyldig valg: forventet en av ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()} ${f.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()} ${f.unit}`:`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${s[a.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function N$(){return{localeError:z$()}}const j$=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return t=>{switch(t.code){case"invalid_type":return`Fâsit giren: umulan ${t.expected}, alınan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Fâsit giren: umulan ${We(t.values[0])}`:`Fâsit tercih: mûteberler ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} ${f.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} olmalıydı.`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} ${f.unit} sahip olmalıydı.`:`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${s[a.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function T$(){return{localeError:j$()}}const O$=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"ارې";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return t=>{switch(t.code){case"invalid_type":return`ناسم ورودي: باید ${t.expected} وای, مګر ${o(t.input)} ترلاسه شو`;case"invalid_value":return t.values.length===1?`ناسم ورودي: باید ${We(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${he(t.values,"|")} څخه وای`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصرونه"} ولري`:`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} وي`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} ولري`:`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} وي`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${s[a.format]??t.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${t.keys.length>1?"کلیډونه":"کلیډ"}: ${he(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function E$(){return{localeError:O$()}}const P$=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return t=>{switch(t.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${t.expected}, otrzymano ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${We(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.maximum.toString()} ${f.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.minimum.toString()} ${f.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${s[a.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function C$(){return{localeError:P$()}}const M$=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"número";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipo inválido: esperado ${t.expected}, recebido ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inválida: esperado ${We(t.values[0])}`:`Opção inválida: esperada uma das ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${a}${t.maximum.toString()} ${f.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Muito pequeno: esperado que ${t.origin} tivesse ${a}${t.minimum.toString()} ${f.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${s[a.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function D$(){return{localeError:M$()}}function am(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const U$=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"массив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return t=>{switch(t.code){case"invalid_type":return`Неверный ввод: ожидалось ${t.expected}, получено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неверный ввод: ожидалось ${We(t.values[0])}`:`Неверный вариант: ожидалось одно из ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const k=Number(t.maximum),R=am(k,f.unit.one,f.unit.few,f.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${a}${t.maximum.toString()} ${R}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const k=Number(t.minimum),R=am(k,f.unit.one,f.unit.few,f.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${a}${t.minimum.toString()} ${R}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${s[a.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function L$(){return{localeError:U$()}}const A$=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"število";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return t=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${t.expected}, prejeto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neveljaven vnos: pričakovano ${We(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${a}${t.maximum.toString()} ${f.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Premajhno: pričakovano, da bo ${t.origin} imelo ${a}${t.minimum.toString()} ${f.unit}`:`Premajhno: pričakovano, da bo ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${s[a.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${he(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function Z$(){return{localeError:A$()}}const R$=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${t.expected}, fick ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ogiltig inmatning: förväntat ${We(t.values[0])}`:`Ogiltigt val: förväntade en av ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`För stor(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()} ${f.unit??"element"}`:`För stor(t): förväntat ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()} ${f.unit}`:`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${s[a.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function q$(){return{localeError:R$()}}const F$=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(t))return"அணி";if(t===null)return"வெறுமை";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t.expected}, பெறப்பட்டது ${o(t.input)}`;case"invalid_value":return t.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${We(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${he(t.values,"|")} இல் ஒன்று`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ${f.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ${f.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=t;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${s[a.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function W$(){return{localeError:F$()}}const G$=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(t))return"อาร์เรย์ (Array)";if(t===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return t=>{switch(t.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t.expected} แต่ได้รับ ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${We(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"ไม่เกิน":"น้อยกว่า",f=r(t.origin);return f?`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()} ${f.unit??"รายการ"}`:`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"อย่างน้อย":"มากกว่า",f=r(t.origin);return f?`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()} ${f.unit}`:`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${s[a.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${he(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Q$(){return{localeError:G$()}}const J$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},V$=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function r(s){return e[s]??null}const o={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return s=>{switch(s.code){case"invalid_type":return`Geçersiz değer: beklenen ${s.expected}, alınan ${J$(s.input)}`;case"invalid_value":return s.values.length===1?`Geçersiz değer: beklenen ${We(s.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format==="ends_with"?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format==="includes"?`Geçersiz metin: "${t.includes}" içermeli`:t.format==="regex"?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${o[t.format]??s.format}`}case"not_multiple_of":return`Geçersiz sayı: ${s.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${s.keys.length>1?"lar":""}: ${he(s.keys,", ")}`;case"invalid_key":return`${s.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${s.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function B$(){return{localeError:V$()}}const Y$=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"масив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return t=>{switch(t.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${t.expected}, отримано ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неправильні вхідні дані: очікується ${We(t.values[0])}`:`Неправильна опція: очікується одне з ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Занадто велике: очікується, що ${t.origin??"значення"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"елементів"}`:`Занадто велике: очікується, що ${t.origin??"значення"} буде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Занадто мале: очікується, що ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Занадто мале: очікується, що ${t.origin} буде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${s[a.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function sm(){return{localeError:Y$()}}function K$(){return sm()}const H$=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"نمبر";case"object":{if(Array.isArray(t))return"آرے";if(t===null)return"نل";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return t=>{switch(t.code){case"invalid_type":return`غلط ان پٹ: ${t.expected} متوقع تھا، ${o(t.input)} موصول ہوا`;case"invalid_value":return t.values.length===1?`غلط ان پٹ: ${We(t.values[0])} متوقع تھا`:`غلط آپشن: ${he(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`بہت بڑا: ${t.origin??"ویلیو"} کے ${a}${t.maximum.toString()} ${f.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${t.origin??"ویلیو"} کا ${a}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`بہت چھوٹا: ${t.origin} کے ${a}${t.minimum.toString()} ${f.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${t.origin} کا ${a}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=t;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${s[a.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${he(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function X$(){return{localeError:H$()}}const ew=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"số";case"object":{if(Array.isArray(t))return"mảng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return t=>{switch(t.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${t.expected}, nhận được ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Đầu vào không hợp lệ: mong đợi ${We(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Quá lớn: mong đợi ${t.origin??"giá trị"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"phần tử"}`:`Quá lớn: mong đợi ${t.origin??"giá trị"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Quá nhỏ: mong đợi ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Quá nhỏ: mong đợi ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${s[a.format]??t.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${he(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function tw(){return{localeError:ew()}}const rw=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(t))return"数组";if(t===null)return"空值(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return t=>{switch(t.code){case"invalid_type":return`无效输入:期望 ${t.expected},实际接收 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`无效输入:期望 ${We(t.values[0])}`:`无效选项:期望以下之一 ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()} ${f.unit??"个元素"}`:`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${s[a.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function nw(){return{localeError:rw()}}const iw=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return t=>{switch(t.code){case"invalid_type":return`無效的輸入值:預期為 ${t.expected},但收到 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`無效的輸入值:預期為 ${We(t.values[0])}`:`無效的選項:預期為以下其中之一 ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()} ${f.unit??"個元素"}`:`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()} ${f.unit}`:`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${s[a.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${he(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function ow(){return{localeError:iw()}}const aw=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(t))return"akopọ";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return t=>{switch(t.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${t.expected}, àmọ̀ a rí ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${We(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??"iye"} ${f.verb} ${a}${t.maximum} ${f.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${t.maximum}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${f.verb} ${a}${t.minimum} ${f.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${t.minimum}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${s[a.format]??t.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${he(t.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${t.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function sw(){return{localeError:aw()}}const um=Object.freeze(Object.defineProperty({__proto__:null,ar:xy,az:Iy,be:Ny,ca:Ty,cs:Ey,da:Cy,de:Dy,en:nm,eo:Ry,es:Fy,fa:Gy,fi:Jy,fr:By,frCA:Ky,he:Xy,hu:t$,id:n$,is:a$,it:u$,ja:c$,ka:m$,kh:g$,km:im,ko:h$,lt:$$,mk:_$,ms:x$,nl:I$,no:N$,ota:T$,pl:C$,ps:E$,pt:D$,ru:L$,sl:Z$,sv:q$,ta:W$,th:Q$,tr:B$,ua:K$,uk:sm,ur:X$,vi:tw,yo:sw,zhCN:nw,zhTW:ow},Symbol.toStringTag,{value:"Module"})),lm=Symbol("ZodOutput"),cm=Symbol("ZodInput");class _s{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){const s=o[0];if(this._map.set(r,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){const o=r._zod.parent;if(o){const s={...this.get(o)??{}};delete s.id;const t={...s,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function ks(){return new _s}const Ln=ks();function dm(e,r){return new e({type:"string",...ue(r)})}function fm(e,r){return new e({type:"string",coerce:!0,...ue(r)})}function xs(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ue(r)})}function qo(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ue(r)})}function Ss(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ue(r)})}function Is(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ue(r)})}function zs(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ue(r)})}function Ns(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ue(r)})}function Fo(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ue(r)})}function js(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ue(r)})}function Ts(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ue(r)})}function Os(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ue(r)})}function Es(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ue(r)})}function Ps(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ue(r)})}function Cs(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ue(r)})}function Ms(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ue(r)})}function Ds(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ue(r)})}function Us(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ue(r)})}function Ls(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ue(r)})}function As(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ue(r)})}function Zs(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ue(r)})}function Rs(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ue(r)})}function qs(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ue(r)})}function Fs(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ue(r)})}const mm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function pm(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ue(r)})}function gm(e,r){return new e({type:"string",format:"date",check:"string_format",...ue(r)})}function vm(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...ue(r)})}function hm(e,r){return new e({type:"string",format:"duration",check:"string_format",...ue(r)})}function bm(e,r){return new e({type:"number",checks:[],...ue(r)})}function ym(e,r){return new e({type:"number",coerce:!0,checks:[],...ue(r)})}function $m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ue(r)})}function wm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ue(r)})}function _m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ue(r)})}function km(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ue(r)})}function xm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ue(r)})}function Sm(e,r){return new e({type:"boolean",...ue(r)})}function Im(e,r){return new e({type:"boolean",coerce:!0,...ue(r)})}function zm(e,r){return new e({type:"bigint",...ue(r)})}function Nm(e,r){return new e({type:"bigint",coerce:!0,...ue(r)})}function jm(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ue(r)})}function Tm(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ue(r)})}function Om(e,r){return new e({type:"symbol",...ue(r)})}function Em(e,r){return new e({type:"undefined",...ue(r)})}function Pm(e,r){return new e({type:"null",...ue(r)})}function Cm(e){return new e({type:"any"})}function Mm(e){return new e({type:"unknown"})}function Dm(e,r){return new e({type:"never",...ue(r)})}function Um(e,r){return new e({type:"void",...ue(r)})}function Lm(e,r){return new e({type:"date",...ue(r)})}function Am(e,r){return new e({type:"date",coerce:!0,...ue(r)})}function Zm(e,r){return new e({type:"nan",...ue(r)})}function An(e,r){return new fs({check:"less_than",...ue(r),value:e,inclusive:!1})}function Zr(e,r){return new fs({check:"less_than",...ue(r),value:e,inclusive:!0})}function Zn(e,r){return new ms({check:"greater_than",...ue(r),value:e,inclusive:!1})}function br(e,r){return new ms({check:"greater_than",...ue(r),value:e,inclusive:!0})}function Rm(e){return Zn(0,e)}function qm(e){return An(0,e)}function Fm(e){return Zr(0,e)}function Wm(e){return br(0,e)}function Vi(e,r){return new md({check:"multiple_of",...ue(r),value:e})}function Wo(e,r){return new vd({check:"max_size",...ue(r),maximum:e})}function Bi(e,r){return new hd({check:"min_size",...ue(r),minimum:e})}function Ws(e,r){return new bd({check:"size_equals",...ue(r),size:e})}function Go(e,r){return new yd({check:"max_length",...ue(r),maximum:e})}function mi(e,r){return new $d({check:"min_length",...ue(r),minimum:e})}function Qo(e,r){return new wd({check:"length_equals",...ue(r),length:e})}function Gs(e,r){return new _d({check:"string_format",format:"regex",...ue(r),pattern:e})}function Qs(e){return new kd({check:"string_format",format:"lowercase",...ue(e)})}function Js(e){return new xd({check:"string_format",format:"uppercase",...ue(e)})}function Vs(e,r){return new Sd({check:"string_format",format:"includes",...ue(r),includes:e})}function Bs(e,r){return new Id({check:"string_format",format:"starts_with",...ue(r),prefix:e})}function Ys(e,r){return new zd({check:"string_format",format:"ends_with",...ue(r),suffix:e})}function Gm(e,r,o){return new jd({check:"property",property:e,schema:r,...ue(o)})}function Ks(e,r){return new Td({check:"mime_type",mime:e,...ue(r)})}function Rn(e){return new Od({check:"overwrite",tx:e})}function Hs(e){return Rn(r=>r.normalize(e))}function Xs(){return Rn(e=>e.trim())}function eu(){return Rn(e=>e.toLowerCase())}function tu(){return Rn(e=>e.toUpperCase())}function Qm(e,r,o){return new e({type:"array",element:r,...ue(o)})}function uw(e,r,o){return new e({type:"union",options:r,...ue(o)})}function lw(e,r,o,s){return new e({type:"union",options:o,discriminator:r,...ue(s)})}function cw(e,r,o){return new e({type:"intersection",left:r,right:o})}function dw(e,r,o,s){const t=o instanceof Qe,a=t?s:o,f=t?o:null;return new e({type:"tuple",items:r,rest:f,...ue(a)})}function fw(e,r,o,s){return new e({type:"record",keyType:r,valueType:o,...ue(s)})}function mw(e,r,o,s){return new e({type:"map",keyType:r,valueType:o,...ue(s)})}function pw(e,r,o){return new e({type:"set",valueType:r,...ue(o)})}function gw(e,r,o){const s=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:s,...ue(o)})}function vw(e,r,o){return new e({type:"enum",entries:r,...ue(o)})}function hw(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...ue(o)})}function Jm(e,r){return new e({type:"file",...ue(r)})}function bw(e,r){return new e({type:"transform",transform:r})}function yw(e,r){return new e({type:"optional",innerType:r})}function $w(e,r){return new e({type:"nullable",innerType:r})}function ww(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():Po(o)}})}function _w(e,r,o){return new e({type:"nonoptional",innerType:r,...ue(o)})}function kw(e,r){return new e({type:"success",innerType:r})}function xw(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function Sw(e,r,o){return new e({type:"pipe",in:r,out:o})}function Iw(e,r){return new e({type:"readonly",innerType:r})}function zw(e,r,o){return new e({type:"template_literal",parts:r,...ue(o)})}function Nw(e,r){return new e({type:"lazy",getter:r})}function jw(e,r){return new e({type:"promise",innerType:r})}function Vm(e,r,o){const s=ue(o);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:r,...s})}function Bm(e,r,o){return new e({type:"custom",check:"custom",fn:r,...ue(o)})}function Ym(e){const r=Km(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(di(s,o.value,r._zod.def));else{const t=s;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=o.value),t.inst??(t.inst=r),t.continue??(t.continue=!r._zod.def.abort),o.issues.push(di(t))}},e(o.value,o)));return r}function Km(e,r){const o=new Dt({check:"custom",...ue(r)});return o._zod.check=e,o}function Hm(e,r){const o=ue(r);let s=o.truthy??["true","1","yes","on","y","enabled"],t=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(s=s.map(ye=>typeof ye=="string"?ye.toLowerCase():ye),t=t.map(ye=>typeof ye=="string"?ye.toLowerCase():ye));const a=new Set(s),f=new Set(t),k=e.Codec??ws,R=e.Boolean??vs,B=e.String??Gi,me=new B({type:"string",error:o.error}),K=new R({type:"boolean",error:o.error}),Re=new k({type:"pipe",in:me,out:K,transform:((ye,H)=>{let Ne=ye;return o.case!=="sensitive"&&(Ne=Ne.toLowerCase()),a.has(Ne)?!0:f.has(Ne)?!1:(H.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...f],input:H.value,inst:Re,continue:!1}),{})}),reverseTransform:((ye,H)=>ye===!0?s[0]||"true":t[0]||"false"),error:o.error});return Re}function Yi(e,r,o,s={}){const t=ue(s),a={...ue(s),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:k=>o.test(k),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}class ru{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??Ln,this.target=r?.target??"draft-2020-12",this.unrepresentable=r?.unrepresentable??"throw",this.override=r?.override??(()=>{}),this.io=r?.io??"output",this.seen=new Map}process(r,o={path:[],schemaPath:[]}){var s;const t=r._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},f=this.seen.get(r);if(f)return f.count++,o.schemaPath.includes(r)&&(f.cycle=o.path),f.schema;const k={schema:{},count:1,cycle:void 0,path:o.path};this.seen.set(r,k);const R=r._zod.toJSONSchema?.();if(R)k.schema=R;else{const K={...o,schemaPath:[...o.schemaPath,r],path:o.path},Re=r._zod.parent;if(Re)k.ref=Re,this.process(Re,K),this.seen.get(Re).isParent=!0;else{const ye=k.schema;switch(t.type){case"string":{const H=ye;H.type="string";const{minimum:Ne,maximum:De,format:pt,patterns:ut,contentEncoding:dt}=r._zod.bag;if(typeof Ne=="number"&&(H.minLength=Ne),typeof De=="number"&&(H.maxLength=De),pt&&(H.format=a[pt]??pt,H.format===""&&delete H.format),dt&&(H.contentEncoding=dt),ut&&ut.size>0){const bt=[...ut];bt.length===1?H.pattern=bt[0].source:bt.length>1&&(k.schema.allOf=[...bt.map(lr=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:lr.source}))])}break}case"number":{const H=ye,{minimum:Ne,maximum:De,format:pt,multipleOf:ut,exclusiveMaximum:dt,exclusiveMinimum:bt}=r._zod.bag;typeof pt=="string"&&pt.includes("int")?H.type="integer":H.type="number",typeof bt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(H.minimum=bt,H.exclusiveMinimum=!0):H.exclusiveMinimum=bt),typeof Ne=="number"&&(H.minimum=Ne,typeof bt=="number"&&this.target!=="draft-4"&&(bt>=Ne?delete H.minimum:delete H.exclusiveMinimum)),typeof dt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(H.maximum=dt,H.exclusiveMaximum=!0):H.exclusiveMaximum=dt),typeof De=="number"&&(H.maximum=De,typeof dt=="number"&&this.target!=="draft-4"&&(dt<=De?delete H.maximum:delete H.exclusiveMaximum)),typeof ut=="number"&&(H.multipleOf=ut);break}case"boolean":{const H=ye;H.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(ye.type="string",ye.nullable=!0,ye.enum=[null]):ye.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{ye.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const H=ye,{minimum:Ne,maximum:De}=r._zod.bag;typeof Ne=="number"&&(H.minItems=Ne),typeof De=="number"&&(H.maxItems=De),H.type="array",H.items=this.process(t.element,{...K,path:[...K.path,"items"]});break}case"object":{const H=ye;H.type="object",H.properties={};const Ne=t.shape;for(const ut in Ne)H.properties[ut]=this.process(Ne[ut],{...K,path:[...K.path,"properties",ut]});const De=new Set(Object.keys(Ne)),pt=new Set([...De].filter(ut=>{const dt=t.shape[ut]._zod;return this.io==="input"?dt.optin===void 0:dt.optout===void 0}));pt.size>0&&(H.required=Array.from(pt)),t.catchall?._zod.def.type==="never"?H.additionalProperties=!1:t.catchall?t.catchall&&(H.additionalProperties=this.process(t.catchall,{...K,path:[...K.path,"additionalProperties"]})):this.io==="output"&&(H.additionalProperties=!1);break}case"union":{const H=ye,Ne=t.options.map((De,pt)=>this.process(De,{...K,path:[...K.path,"anyOf",pt]}));H.anyOf=Ne;break}case"intersection":{const H=ye,Ne=this.process(t.left,{...K,path:[...K.path,"allOf",0]}),De=this.process(t.right,{...K,path:[...K.path,"allOf",1]}),pt=dt=>"allOf"in dt&&Object.keys(dt).length===1,ut=[...pt(Ne)?Ne.allOf:[Ne],...pt(De)?De.allOf:[De]];H.allOf=ut;break}case"tuple":{const H=ye;H.type="array";const Ne=this.target==="draft-2020-12"?"prefixItems":"items",De=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",pt=t.items.map((lr,Br)=>this.process(lr,{...K,path:[...K.path,Ne,Br]})),ut=t.rest?this.process(t.rest,{...K,path:[...K.path,De,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(H.prefixItems=pt,ut&&(H.items=ut)):this.target==="openapi-3.0"?(H.items={anyOf:pt},ut&&H.items.anyOf.push(ut),H.minItems=pt.length,ut||(H.maxItems=pt.length)):(H.items=pt,ut&&(H.additionalItems=ut));const{minimum:dt,maximum:bt}=r._zod.bag;typeof dt=="number"&&(H.minItems=dt),typeof bt=="number"&&(H.maxItems=bt);break}case"record":{const H=ye;H.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(H.propertyNames=this.process(t.keyType,{...K,path:[...K.path,"propertyNames"]})),H.additionalProperties=this.process(t.valueType,{...K,path:[...K.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const H=ye,Ne=Ja(t.entries);Ne.every(De=>typeof De=="number")&&(H.type="number"),Ne.every(De=>typeof De=="string")&&(H.type="string"),H.enum=Ne;break}case"literal":{const H=ye,Ne=[];for(const De of t.values)if(De===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof De=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");Ne.push(Number(De))}else Ne.push(De);if(Ne.length!==0)if(Ne.length===1){const De=Ne[0];H.type=De===null?"null":typeof De,this.target==="draft-4"||this.target==="openapi-3.0"?H.enum=[De]:H.const=De}else Ne.every(De=>typeof De=="number")&&(H.type="number"),Ne.every(De=>typeof De=="string")&&(H.type="string"),Ne.every(De=>typeof De=="boolean")&&(H.type="string"),Ne.every(De=>De===null)&&(H.type="null"),H.enum=Ne;break}case"file":{const H=ye,Ne={type:"string",format:"binary",contentEncoding:"binary"},{minimum:De,maximum:pt,mime:ut}=r._zod.bag;De!==void 0&&(Ne.minLength=De),pt!==void 0&&(Ne.maxLength=pt),ut?ut.length===1?(Ne.contentMediaType=ut[0],Object.assign(H,Ne)):H.anyOf=ut.map(dt=>({...Ne,contentMediaType:dt})):Object.assign(H,Ne);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const H=this.process(t.innerType,K);this.target==="openapi-3.0"?(k.ref=t.innerType,ye.nullable=!0):ye.anyOf=[H,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,K),k.ref=t.innerType;break}case"success":{const H=ye;H.type="boolean";break}case"default":{this.process(t.innerType,K),k.ref=t.innerType,ye.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,K),k.ref=t.innerType,this.io==="input"&&(ye._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,K),k.ref=t.innerType;let H;try{H=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}ye.default=H;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const H=ye,Ne=r._zod.pattern;if(!Ne)throw new Error("Pattern not found in template literal");H.type="string",H.pattern=Ne.source;break}case"pipe":{const H=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(H,K),k.ref=H;break}case"readonly":{this.process(t.innerType,K),k.ref=t.innerType,ye.readOnly=!0;break}case"promise":{this.process(t.innerType,K),k.ref=t.innerType;break}case"optional":{this.process(t.innerType,K),k.ref=t.innerType;break}case"lazy":{const H=r._zod.innerType;this.process(H,K),k.ref=H;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const B=this.metadataRegistry.get(r);return B&&Object.assign(k.schema,B),this.io==="input"&&Vt(r)&&(delete k.schema.examples,delete k.schema.default),this.io==="input"&&k.schema._prefault&&((s=k.schema).default??(s.default=k.schema._prefault)),delete k.schema._prefault,this.seen.get(r).schema}emit(r,o){const s={cycles:o?.cycles??"ref",reused:o?.reused??"inline",external:o?.external??void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=me=>{const K=this.target==="draft-2020-12"?"$defs":"definitions";if(s.external){const Ne=s.external.registry.get(me[0])?.id,De=s.external.uri??(ut=>ut);if(Ne)return{ref:De(Ne)};const pt=me[1].defId??me[1].schema.id??`schema${this.counter++}`;return me[1].defId=pt,{defId:pt,ref:`${De("__shared")}#/${K}/${pt}`}}if(me[1]===t)return{ref:"#"};const ye=`#/${K}/`,H=me[1].schema.id??`__schema${this.counter++}`;return{defId:H,ref:ye+H}},f=me=>{if(me[1].schema.$ref)return;const K=me[1],{ref:Re,defId:ye}=a(me);K.def={...K.schema},ye&&(K.defId=ye);const H=K.schema;for(const Ne in H)delete H[Ne];H.$ref=Re};if(s.cycles==="throw")for(const me of this.seen.entries()){const K=me[1];if(K.cycle)throw new Error(`Cycle detected: #/${K.cycle?.join("/")}/<root>
|
|
42
|
+
`)}ge.write("payload.value = newResult;"),ge.write("return payload;");const ct=ge.compile();return(dt,bt)=>ct(ze,dt,bt)};let a;const f=fi,_=!Oo.jitless,X=_&&pl.value,ce=r.catchall;let ue;e._zod.parse=(ze,ge)=>{ue??(ue=s.value);const A=ze.value;return f(A)?_&&X&&ge?.async===!1&&ge.jitless!==!0?(a||(a=t(r.shape)),ze=a(ze,ge),ce?_f([],A,ze,ge,ue,e):ze):o(ze,ge):(ze.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),ze)}});function Sf(e,r,o,s){for(const a of e)if(a.issues.length===0)return r.value=a.value,r;const t=e.filter(a=>!An(a));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(f=>Ar(f,s,cr())))}),r)}const $s=D("$ZodUnion",(e,r)=>{Qe.init(e,r),ot(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),ot(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),ot(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),ot(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){const t=r.options.map(a=>a._zod.pattern);return new RegExp(`^(${t.map(a=>Po(a.source)).join("|")})$`)}});const o=r.options.length===1,s=r.options[0]._zod.run;e._zod.parse=(t,a)=>{if(o)return s(t,a);let f=!1;const _=[];for(const q of r.options){const X=q._zod.run({value:t.value,issues:[]},a);if(X instanceof Promise)_.push(X),f=!0;else{if(X.issues.length===0)return X;_.push(X)}}return f?Promise.all(_).then(q=>Sf(q,t,e,a)):Sf(_,t,e,a)}}),If=D("$ZodDiscriminatedUnion",(e,r)=>{$s.init(e,r);const o=e._zod.parse;ot(e._zod,"propValues",()=>{const t={};for(const a of r.options){const f=a._zod.propValues;if(!f||Object.keys(f).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(const[_,q]of Object.entries(f)){t[_]||(t[_]=new Set);for(const X of q)t[_].add(X)}}return t});const s=Ai(()=>{const t=r.options,a=new Map;for(const f of t){const _=f._zod.propValues?.[r.discriminator];if(!_||_.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(f)}"`);for(const q of _){if(a.has(q))throw new Error(`Duplicate discriminator value "${String(q)}"`);a.set(q,f)}}return a});e._zod.parse=(t,a)=>{const f=t.value;if(!fi(f))return t.issues.push({code:"invalid_type",expected:"object",input:f,inst:e}),t;const _=s.value.get(f?.[r.discriminator]);return _?_._zod.run(t,a):r.unionFallback?o(t,a):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:f,path:[r.discriminator],inst:e}),t)}}),zf=D("$ZodIntersection",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value,a=r.left._zod.run({value:t,issues:[]},s),f=r.right._zod.run({value:t,issues:[]},s);return a instanceof Promise||f instanceof Promise?Promise.all([a,f]).then(([q,X])=>Nf(o,q,X)):Nf(o,a,f)}});function ws(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(Ln(e)&&Ln(r)){const o=Object.keys(r),s=Object.keys(e).filter(a=>o.indexOf(a)!==-1),t={...e,...r};for(const a of s){const f=ws(e[a],r[a]);if(!f.valid)return{valid:!1,mergeErrorPath:[a,...f.mergeErrorPath]};t[a]=f.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let s=0;s<e.length;s++){const t=e[s],a=r[s],f=ws(t,a);if(!f.valid)return{valid:!1,mergeErrorPath:[s,...f.mergeErrorPath]};o.push(f.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function Nf(e,r,o){if(r.issues.length&&e.issues.push(...r.issues),o.issues.length&&e.issues.push(...o.issues),An(e))return e;const s=ws(r.value,o.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const _s=D("$ZodTuple",(e,r)=>{Qe.init(e,r);const o=r.items,s=o.length-[...o].reverse().findIndex(t=>t._zod.optin!=="optional");e._zod.parse=(t,a)=>{const f=t.value;if(!Array.isArray(f))return t.issues.push({input:f,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];const _=[];if(!r.rest){const X=f.length>o.length,ce=f.length<s-1;if(X||ce)return t.issues.push({...X?{code:"too_big",maximum:o.length}:{code:"too_small",minimum:o.length},input:f,inst:e,origin:"array"}),t}let q=-1;for(const X of o){if(q++,q>=f.length&&q>=s)continue;const ce=X._zod.run({value:f[q],issues:[]},a);ce instanceof Promise?_.push(ce.then(ue=>Zo(ue,t,q))):Zo(ce,t,q)}if(r.rest){const X=f.slice(o.length);for(const ce of X){q++;const ue=r.rest._zod.run({value:ce,issues:[]},a);ue instanceof Promise?_.push(ue.then(ze=>Zo(ze,t,q))):Zo(ue,t,q)}}return _.length?Promise.all(_).then(()=>t):t}});function Zo(e,r,o){e.issues.length&&r.issues.push(...Lr(o,e.issues)),r.value[o]=e.value}const jf=D("$ZodRecord",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!Ln(t))return o.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),o;const a=[];if(r.keyType._zod.values){const f=r.keyType._zod.values;o.value={};for(const q of f)if(typeof q=="string"||typeof q=="number"||typeof q=="symbol"){const X=r.valueType._zod.run({value:t[q],issues:[]},s);X instanceof Promise?a.push(X.then(ce=>{ce.issues.length&&o.issues.push(...Lr(q,ce.issues)),o.value[q]=ce.value})):(X.issues.length&&o.issues.push(...Lr(q,X.issues)),o.value[q]=X.value)}let _;for(const q in t)f.has(q)||(_=_??[],_.push(q));_&&_.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:_})}else{o.value={};for(const f of Reflect.ownKeys(t)){if(f==="__proto__")continue;const _=r.keyType._zod.run({value:f,issues:[]},s);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(_.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:_.issues.map(X=>Ar(X,s,cr())),input:f,path:[f],inst:e}),o.value[_.value]=_.value;continue}const q=r.valueType._zod.run({value:t[f],issues:[]},s);q instanceof Promise?a.push(q.then(X=>{X.issues.length&&o.issues.push(...Lr(f,X.issues)),o.value[_.value]=X.value})):(q.issues.length&&o.issues.push(...Lr(f,q.issues)),o.value[_.value]=q.value)}}return a.length?Promise.all(a).then(()=>o):o}}),Tf=D("$ZodMap",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),o;const a=[];o.value=new Map;for(const[f,_]of t){const q=r.keyType._zod.run({value:f,issues:[]},s),X=r.valueType._zod.run({value:_,issues:[]},s);q instanceof Promise||X instanceof Promise?a.push(Promise.all([q,X]).then(([ce,ue])=>{Of(ce,ue,o,f,t,e,s)})):Of(q,X,o,f,t,e,s)}return a.length?Promise.all(a).then(()=>o):o}});function Of(e,r,o,s,t,a,f){e.issues.length&&(Mo.has(typeof s)?o.issues.push(...Lr(s,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(_=>Ar(_,f,cr()))})),r.issues.length&&(Mo.has(typeof s)?o.issues.push(...Lr(s,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:s,issues:r.issues.map(_=>Ar(_,f,cr()))})),o.value.set(e.value,r.value)}const Ef=D("$ZodSet",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),o;const a=[];o.value=new Set;for(const f of t){const _=r.valueType._zod.run({value:f,issues:[]},s);_ instanceof Promise?a.push(_.then(q=>Pf(q,o))):Pf(_,o)}return a.length?Promise.all(a).then(()=>o):o}});function Pf(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}const Cf=D("$ZodEnum",(e,r)=>{Qe.init(e,r);const o=Ba(r.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(t=>Mo.has(typeof t)).map(t=>typeof t=="string"?wn(t):t.toString()).join("|")})$`),e._zod.parse=(t,a)=>{const f=t.value;return s.has(f)||t.issues.push({code:"invalid_value",values:o,input:f,inst:e}),t}}),Uf=D("$ZodLiteral",(e,r)=>{if(Qe.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?wn(o):o?wn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const t=o.value;return e._zod.values.has(t)||o.issues.push({code:"invalid_value",values:r.values,input:t,inst:e}),o}}),Mf=D("$ZodFile",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return t instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),o}}),Df=D("$ZodTransform",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new To(e.constructor.name);const t=r.transform(o.value,o);if(s.async)return(t instanceof Promise?t:Promise.resolve(t)).then(f=>(o.value=f,o));if(t instanceof Promise)throw new Mn;return o.value=t,o}});function Lf(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const Af=D("$ZodOptional",(e,r)=>{Qe.init(e,r),e._zod.optin="optional",e._zod.optout="optional",ot(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),ot(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${Po(o.source)})?$`):void 0}),e._zod.parse=(o,s)=>{if(r.innerType._zod.optin==="optional"){const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Lf(a,o.value)):Lf(t,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,s)}}),Zf=D("$ZodNullable",(e,r)=>{Qe.init(e,r),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),ot(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${Po(o.source)}|null)$`):void 0}),ot(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(o,s)=>o.value===null?o:r.innerType._zod.run(o,s)}),Rf=D("$ZodDefault",(e,r)=>{Qe.init(e,r),e._zod.optin="optional",ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);if(o.value===void 0)return o.value=r.defaultValue,o;const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Ff(a,r)):Ff(t,r)}});function Ff(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const qf=D("$ZodPrefault",(e,r)=>{Qe.init(e,r),e._zod.optin="optional",ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>(s.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,s))}),Wf=D("$ZodNonOptional",(e,r)=>{Qe.init(e,r),ot(e._zod,"values",()=>{const o=r.innerType._zod.values;return o?new Set([...o].filter(s=>s!==void 0)):void 0}),e._zod.parse=(o,s)=>{const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Qf(a,e)):Qf(t,e)}});function Qf(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const Gf=D("$ZodSuccess",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new To("ZodSuccess");const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.issues.length===0,o)):(o.value=t.issues.length===0,o)}}),Vf=D("$ZodCatch",(e,r)=>{Qe.init(e,r),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),ot(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.value,a.issues.length&&(o.value=r.catchValue({...o,error:{issues:a.issues.map(f=>Ar(f,s,cr()))},input:o.value}),o.issues=[]),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>Ar(a,s,cr()))},input:o.value}),o.issues=[]),o)}}),Jf=D("$ZodNaN",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),Bf=D("$ZodPipe",(e,r)=>{Qe.init(e,r),ot(e._zod,"values",()=>r.in._zod.values),ot(e._zod,"optin",()=>r.in._zod.optin),ot(e._zod,"optout",()=>r.out._zod.optout),ot(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if(s.direction==="backward"){const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Ro(f,r.in,s)):Ro(a,r.in,s)}const t=r.in._zod.run(o,s);return t instanceof Promise?t.then(a=>Ro(a,r.out,s)):Ro(t,r.out,s)}});function Ro(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},o)}const ks=D("$ZodCodec",(e,r)=>{Qe.init(e,r),ot(e._zod,"values",()=>r.in._zod.values),ot(e._zod,"optin",()=>r.in._zod.optin),ot(e._zod,"optout",()=>r.out._zod.optout),ot(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if((s.direction||"forward")==="forward"){const a=r.in._zod.run(o,s);return a instanceof Promise?a.then(f=>Fo(f,r,s)):Fo(a,r,s)}else{const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Fo(f,r,s)):Fo(a,r,s)}}});function Fo(e,r,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){const t=r.transform(e.value,e);return t instanceof Promise?t.then(a=>qo(e,a,r.out,o)):qo(e,t,r.out,o)}else{const t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>qo(e,a,r.in,o)):qo(e,t,r.in,o)}}function qo(e,r,o,s){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},s)}const Yf=D("$ZodReadonly",(e,r)=>{Qe.init(e,r),ot(e._zod,"propValues",()=>r.innerType._zod.propValues),ot(e._zod,"values",()=>r.innerType._zod.values),ot(e._zod,"optin",()=>r.innerType._zod.optin),ot(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(Kf):Kf(t)}});function Kf(e){return e.value=Object.freeze(e.value),e}const Hf=D("$ZodTemplateLiteral",(e,r)=>{Qe.init(e,r);const o=[];for(const s of r.parts)if(typeof s=="object"&&s!==null){if(!s._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...s._zod.traits].shift()}`);const t=s._zod.pattern instanceof RegExp?s._zod.pattern.source:s._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${s._zod.traits}`);const a=t.startsWith("^")?1:0,f=t.endsWith("$")?t.length-1:t.length;o.push(t.slice(a,f))}else if(s===null||gl.has(typeof s))o.push(wn(`${s}`));else throw new Error(`Invalid template literal part: ${s}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(s,t)=>typeof s.value!="string"?(s.issues.push({input:s.value,inst:e,expected:"template_literal",code:"invalid_type"}),s):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(s.value)||s.issues.push({input:s.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),s)}),Xf=D("$ZodFunction",(e,r)=>(Qe.init(e,r),e._def=r,e._zod.def=r,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...s){const t=e._def.input?ts(e._def.input,s):s,a=Reflect.apply(o,this,t);return e._def.output?ts(e._def.output,a):a}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...s){const t=e._def.input?await rs(e._def.input,s):s,a=await Reflect.apply(o,this,t);return e._def.output?await rs(e._def.output,a):a}},e._zod.parse=(o,s)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{const s=e.constructor;return Array.isArray(o[0])?new s({type:"function",input:new _s({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new s({type:"function",input:o[0],output:e._def.output})},e.output=o=>{const s=e.constructor;return new s({type:"function",input:e._def.input,output:o})},e)),em=D("$ZodPromise",(e,r)=>{Qe.init(e,r),e._zod.parse=(o,s)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},s))}),tm=D("$ZodLazy",(e,r)=>{Qe.init(e,r),ot(e._zod,"innerType",()=>r.getter()),ot(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ot(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ot(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),ot(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(o,s)=>e._zod.innerType._zod.run(o,s)}),rm=D("$ZodCustom",(e,r)=>{Mt.init(e,r),Qe.init(e,r),e._zod.parse=(o,s)=>o,e._zod.check=o=>{const s=o.value,t=r.fn(s);if(t instanceof Promise)return t.then(a=>nm(a,o,s,e));nm(t,o,s,e)}});function nm(e,r,o,s){if(!e){const t={code:"custom",input:o,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(t.params=s._zod.def.params),r.issues.push(mi(t))}}const Ny=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return t=>{switch(t.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${t.expected}، ولكن تم إدخال ${o(t.input)}`;case"invalid_value":return t.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Fe(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()} ${f.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()} ${f.unit}`:`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${s[a.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${he(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function jy(){return{localeError:Ny()}}const Ty=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${t.expected}, daxil olan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Yanlış dəyər: gözlənilən ${Fe(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()} ${f.unit??"element"}`:`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${s[a.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Oy(){return{localeError:Ty()}}function im(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const Ey=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"лік";case"object":{if(Array.isArray(t))return"масіў";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return t=>{switch(t.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${t.expected}, атрымана ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Няправільны ўвод: чакалася ${Fe(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const _=Number(t.maximum),q=im(_,f.unit.one,f.unit.few,f.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${f.verb} ${a}${t.maximum.toString()} ${q}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const _=Number(t.minimum),q=im(_,f.unit.one,f.unit.few,f.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${f.verb} ${a}${t.minimum.toString()} ${q}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${s[a.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${he(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function Py(){return{localeError:Ey()}}const Cy=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipus invàlid: s'esperava ${t.expected}, s'ha rebut ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Valor invàlid: s'esperava ${Fe(t.values[0])}`:`Opció invàlida: s'esperava una de ${he(t.values," o ")}`;case"too_big":{const a=t.inclusive?"com a màxim":"menys de",f=r(t.origin);return f?`Massa gran: s'esperava que ${t.origin??"el valor"} contingués ${a} ${t.maximum.toString()} ${f.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"com a mínim":"més de",f=r(t.origin);return f?`Massa petit: s'esperava que ${t.origin} contingués ${a} ${t.minimum.toString()} ${f.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${s[a.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function Uy(){return{localeError:Cy()}}const My=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{switch(t.code){case"invalid_type":return`Neplatný vstup: očekáváno ${t.expected}, obdrženo ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neplatný vstup: očekáváno ${Fe(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${a}${t.maximum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${a}${t.minimum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${s[a.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${he(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function Dy(){return{localeError:My()}}const Ly=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},r={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const _=typeof f;switch(_){case"number":return Number.isNaN(f)?"NaN":"tal";case"object":return Array.isArray(f)?"liste":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype&&f.constructor?f.constructor.name:"objekt"}return _},a={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return f=>{switch(f.code){case"invalid_type":return`Ugyldigt input: forventede ${s(f.expected)}, fik ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Ugyldig værdi: forventede ${Fe(f.values[0])}`:`Ugyldigt valg: forventede en af følgende ${he(f.values,"|")}`;case"too_big":{const _=f.inclusive?"<=":"<",q=o(f.origin),X=s(f.origin);return q?`For stor: forventede ${X??"value"} ${q.verb} ${_} ${f.maximum.toString()} ${q.unit??"elementer"}`:`For stor: forventede ${X??"value"} havde ${_} ${f.maximum.toString()}`}case"too_small":{const _=f.inclusive?">=":">",q=o(f.origin),X=s(f.origin);return q?`For lille: forventede ${X} ${q.verb} ${_} ${f.minimum.toString()} ${q.unit}`:`For lille: forventede ${X} havde ${_} ${f.minimum.toString()}`}case"invalid_format":{const _=f;return _.format==="starts_with"?`Ugyldig streng: skal starte med "${_.prefix}"`:_.format==="ends_with"?`Ugyldig streng: skal ende med "${_.suffix}"`:_.format==="includes"?`Ugyldig streng: skal indeholde "${_.includes}"`:_.format==="regex"?`Ugyldig streng: skal matche mønsteret ${_.pattern}`:`Ugyldig ${a[_.format]??f.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${f.divisor}`;case"unrecognized_keys":return`${f.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${he(f.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${f.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${f.origin}`;default:return"Ugyldigt input"}}};function Ay(){return{localeError:Ly()}}const Zy=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return t=>{switch(t.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${t.expected}, erhalten ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ungültige Eingabe: erwartet ${Fe(t.values[0])}`:`Ungültige Option: erwartet eine von ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ${f.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ist`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ${f.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ist`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function Ry(){return{localeError:Zy()}}const Fy=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},qy=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function r(s){return e[s]??null}const o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return s=>{switch(s.code){case"invalid_type":return`Invalid input: expected ${s.expected}, received ${Fy(s.input)}`;case"invalid_value":return s.values.length===1?`Invalid input: expected ${Fe(s.values[0])}`:`Invalid option: expected one of ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Too big: expected ${s.origin??"value"} to have ${t}${s.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Too small: expected ${s.origin} to have ${t}${s.minimum.toString()} ${a.unit}`:`Too small: expected ${s.origin} to be ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Invalid string: must start with "${t.prefix}"`:t.format==="ends_with"?`Invalid string: must end with "${t.suffix}"`:t.format==="includes"?`Invalid string: must include "${t.includes}"`:t.format==="regex"?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${o[t.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${he(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function om(){return{localeError:qy()}}const Wy=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Qy=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(s){return e[s]??null}const o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return s=>{switch(s.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${s.expected}, riceviĝis ${Wy(s.input)}`;case"invalid_value":return s.values.length===1?`Nevalida enigo: atendiĝis ${Fe(s.values[0])}`:`Nevalida opcio: atendiĝis unu el ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Tro malgranda: atendiĝis ke ${s.origin} havu ${t}${s.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${s.origin} estu ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${o[t.format]??s.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${s.divisor}`;case"unrecognized_keys":return`Nekonata${s.keys.length>1?"j":""} ŝlosilo${s.keys.length>1?"j":""}: ${he(s.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${s.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${s.origin}`;default:return"Nevalida enigo"}}};function Gy(){return{localeError:Qy()}}const Vy=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},r={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const _=typeof f;switch(_){case"number":return Number.isNaN(f)?"NaN":"number";case"object":return Array.isArray(f)?"array":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype?f.constructor.name:"object"}return _},a={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return f=>{switch(f.code){case"invalid_type":return`Entrada inválida: se esperaba ${s(f.expected)}, recibido ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Entrada inválida: se esperaba ${Fe(f.values[0])}`:`Opción inválida: se esperaba una de ${he(f.values,"|")}`;case"too_big":{const _=f.inclusive?"<=":"<",q=o(f.origin),X=s(f.origin);return q?`Demasiado grande: se esperaba que ${X??"valor"} tuviera ${_}${f.maximum.toString()} ${q.unit??"elementos"}`:`Demasiado grande: se esperaba que ${X??"valor"} fuera ${_}${f.maximum.toString()}`}case"too_small":{const _=f.inclusive?">=":">",q=o(f.origin),X=s(f.origin);return q?`Demasiado pequeño: se esperaba que ${X} tuviera ${_}${f.minimum.toString()} ${q.unit}`:`Demasiado pequeño: se esperaba que ${X} fuera ${_}${f.minimum.toString()}`}case"invalid_format":{const _=f;return _.format==="starts_with"?`Cadena inválida: debe comenzar con "${_.prefix}"`:_.format==="ends_with"?`Cadena inválida: debe terminar en "${_.suffix}"`:_.format==="includes"?`Cadena inválida: debe incluir "${_.includes}"`:_.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${_.pattern}`:`Inválido ${a[_.format]??f.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${f.divisor}`;case"unrecognized_keys":return`Llave${f.keys.length>1?"s":""} desconocida${f.keys.length>1?"s":""}: ${he(f.keys,", ")}`;case"invalid_key":return`Llave inválida en ${s(f.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${s(f.origin)}`;default:return"Entrada inválida"}}};function Jy(){return{localeError:Vy()}}const By=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"آرایه";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return t=>{switch(t.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${t.expected} میبود، ${o(t.input)} دریافت شد`;case"invalid_value":return t.values.length===1?`ورودی نامعتبر: میبایست ${Fe(t.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${he(t.values,"|")} میبود`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصر"} باشد`:`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} باشد`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} باشد`:`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} باشد`}case"invalid_format":{const a=t;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${s[a.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${he(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function Yy(){return{localeError:By()}}const Ky=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return t=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Virheellinen syöte: täytyy olla ${Fe(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Liian suuri: ${f.subject} täytyy olla ${a}${t.maximum.toString()} ${f.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Liian pieni: ${f.subject} täytyy olla ${a}${t.minimum.toString()} ${f.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${s[a.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${he(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function Hy(){return{localeError:Ky()}}const Xy=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : ${t.expected} attendu, ${o(t.input)} reçu`;case"invalid_value":return t.values.length===1?`Entrée invalide : ${Fe(t.values[0])} attendu`:`Option invalide : une valeur parmi ${he(t.values,"|")} attendue`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Trop grand : ${t.origin??"valeur"} doit ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"élément(s)"}`:`Trop grand : ${t.origin??"valeur"} doit être ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Trop petit : ${t.origin} doit ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : ${t.origin} doit être ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${he(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function e$(){return{localeError:Xy()}}const t$=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : attendu ${t.expected}, reçu ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrée invalide : attendu ${Fe(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"≤":"<",f=r(t.origin);return f?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${a}${t.maximum.toString()} ${f.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"≥":">",f=r(t.origin);return f?`Trop petit : attendu que ${t.origin} ait ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : attendu que ${t.origin} soit ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${he(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function r$(){return{localeError:t$()}}const n$=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return t=>{switch(t.code){case"invalid_type":return`קלט לא תקין: צריך ${t.expected}, התקבל ${o(t.input)}`;case"invalid_value":return t.values.length===1?`קלט לא תקין: צריך ${Fe(t.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()} ${f.unit??"elements"}`:`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()} ${f.unit}`:`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${s[a.format]??t.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${he(t.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${t.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t.origin}`;default:return"קלט לא תקין"}}};function i$(){return{localeError:n$()}}const o$=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"szám";case"object":{if(Array.isArray(t))return"tömb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return t=>{switch(t.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${t.expected}, a kapott érték ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Érvénytelen bemenet: a várt érték ${Fe(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${a}${t.maximum.toString()} ${f.unit??"elem"}`:`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${a}${t.minimum.toString()} ${f.unit}`:`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${s[a.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function a$(){return{localeError:o$()}}const s$=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${Fe(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: diharapkan ${t.origin} memiliki ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${s[a.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function u$(){return{localeError:s$()}}const c$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},l$=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function r(s){return e[s]??null}const o={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return s=>{switch(s.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${c$(s.input)} þar sem á að vera ${s.expected}`;case"invalid_value":return s.values.length===1?`Rangt gildi: gert ráð fyrir ${Fe(s.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} hafi ${t}${s.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} sé ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Of lítið: gert er ráð fyrir að ${s.origin} hafi ${t}${s.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${s.origin} sé ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format==="ends_with"?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format==="includes"?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${o[t.format]??s.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${s.divisor}`;case"unrecognized_keys":return`Óþekkt ${s.keys.length>1?"ir lyklar":"ur lykill"}: ${he(s.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${s.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${s.origin}`;default:return"Rangt gildi"}}};function d$(){return{localeError:l$()}}const f$=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input non valido: atteso ${Fe(t.values[0])}`:`Opzione non valida: atteso uno tra ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Troppo grande: ${t.origin??"valore"} deve avere ${a}${t.maximum.toString()} ${f.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Troppo piccolo: ${t.origin} deve avere ${a}${t.minimum.toString()} ${f.unit}`:`Troppo piccolo: ${t.origin} deve essere ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${he(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function m$(){return{localeError:f$()}}const p$=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"数値";case"object":{if(Array.isArray(t))return"配列";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return t=>{switch(t.code){case"invalid_type":return`無効な入力: ${t.expected}が期待されましたが、${o(t.input)}が入力されました`;case"invalid_value":return t.values.length===1?`無効な入力: ${Fe(t.values[0])}が期待されました`:`無効な選択: ${he(t.values,"、")}のいずれかである必要があります`;case"too_big":{const a=t.inclusive?"以下である":"より小さい",f=r(t.origin);return f?`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${f.unit??"要素"}${a}必要があります`:`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${a}必要があります`}case"too_small":{const a=t.inclusive?"以上である":"より大きい",f=r(t.origin);return f?`小さすぎる値: ${t.origin}は${t.minimum.toString()}${f.unit}${a}必要があります`:`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${s[a.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${he(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function g$(){return{localeError:p$()}}const h$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[r]??r},v$=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function r(s){return e[s]??null}const o={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return s=>{switch(s.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${s.expected}, მიღებული ${h$(s.input)}`;case"invalid_value":return s.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Fe(s.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${he(s.values,"|")}-დან`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} ${a.verb} ${t}${s.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} იყოს ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${s.origin} ${a.verb} ${t}${s.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${s.origin} იყოს ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${o[t.format]??s.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${s.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${s.keys.length>1?"ები":"ი"}: ${he(s.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${s.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${s.origin}-ში`;default:return"არასწორი შეყვანა"}}};function b$(){return{localeError:v$()}}const y$=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(t))return"អារេ (Array)";if(t===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return t=>{switch(t.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t.expected} ប៉ុន្តែទទួលបាន ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Fe(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()} ${f.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()} ${f.unit}`:`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${s[a.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${he(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function am(){return{localeError:y$()}}function $$(){return am()}const w$=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return t=>{switch(t.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${t.expected}, 받은 타입은 ${o(t.input)}입니다`;case"invalid_value":return t.values.length===1?`잘못된 입력: 값은 ${Fe(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${he(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=t.inclusive?"이하":"미만",f=a==="미만"?"이어야 합니다":"여야 합니다",_=r(t.origin),q=_?.unit??"요소";return _?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${q} ${a}${f}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${a}${f}`}case"too_small":{const a=t.inclusive?"이상":"초과",f=a==="이상"?"이어야 합니다":"여야 합니다",_=r(t.origin),q=_?.unit??"요소";return _?`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${q} ${a}${f}`:`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${a}${f}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${s[a.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${he(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function _$(){return{localeError:w$()}}const k$=e=>Bi(typeof e,e),Bi=(e,r=void 0)=>{switch(e){case"number":return Number.isNaN(r)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return r===void 0?"nežinomas objektas":r===null?"nulinė reikšmė":Array.isArray(r)?"masyvas":Object.getPrototypeOf(r)!==Object.prototype&&r.constructor?r.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Yi=e=>e.charAt(0).toUpperCase()+e.slice(1);function sm(e){const r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19||o===0?"many":o===1?"one":"few"}const x$=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function r(s,t,a,f){const _=e[s]??null;return _===null?_:{unit:_.unit[t],verb:_.verb[f][a?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return s=>{switch(s.code){case"invalid_type":return`Gautas tipas ${k$(s.input)}, o tikėtasi - ${Bi(s.expected)}`;case"invalid_value":return s.values.length===1?`Privalo būti ${Fe(s.values[0])}`:`Privalo būti vienas iš ${he(s.values,"|")} pasirinkimų`;case"too_big":{const t=Bi(s.origin),a=r(s.origin,sm(Number(s.maximum)),s.inclusive??!1,"smaller");if(a?.verb)return`${Yi(t??s.origin??"reikšmė")} ${a.verb} ${s.maximum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Yi(t??s.origin??"reikšmė")} turi būti ${f} ${s.maximum.toString()} ${a?.unit}`}case"too_small":{const t=Bi(s.origin),a=r(s.origin,sm(Number(s.minimum)),s.inclusive??!1,"bigger");if(a?.verb)return`${Yi(t??s.origin??"reikšmė")} ${a.verb} ${s.minimum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Yi(t??s.origin??"reikšmė")} turi būti ${f} ${s.minimum.toString()} ${a?.unit}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Eilutė privalo prasidėti "${t.prefix}"`:t.format==="ends_with"?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format==="includes"?`Eilutė privalo įtraukti "${t.includes}"`:t.format==="regex"?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${o[t.format]??s.format}`}case"not_multiple_of":return`Skaičius privalo būti ${s.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${s.keys.length>1?"i":"as"} rakt${s.keys.length>1?"ai":"as"}: ${he(s.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const t=Bi(s.origin);return`${Yi(t??s.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function S$(){return{localeError:x$()}}const I$=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"број";case"object":{if(Array.isArray(t))return"низа";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return t=>{switch(t.code){case"invalid_type":return`Грешен внес: се очекува ${t.expected}, примено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Invalid input: expected ${Fe(t.values[0])}`:`Грешана опција: се очекува една ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${a}${t.maximum.toString()} ${f.unit??"елементи"}`:`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Премногу мал: се очекува ${t.origin} да има ${a}${t.minimum.toString()} ${f.unit}`:`Премногу мал: се очекува ${t.origin} да биде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${he(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function z$(){return{localeError:I$()}}const N$=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${Fe(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: dijangka ${t.origin??"nilai"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: dijangka ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${s[a.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${he(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function j$(){return{localeError:N$()}}const T$=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return t=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${Fe(t.values[0])}`:`Ongeldige optie: verwacht één van ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} ${f.unit??"elementen"} bevat`:`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} is`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} ${f.unit} bevat`:`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} is`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function O$(){return{localeError:T$()}}const E$=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${Fe(t.values[0])}`:`Ugyldig valg: forventet en av ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()} ${f.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()} ${f.unit}`:`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${s[a.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function P$(){return{localeError:E$()}}const C$=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return t=>{switch(t.code){case"invalid_type":return`Fâsit giren: umulan ${t.expected}, alınan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Fâsit giren: umulan ${Fe(t.values[0])}`:`Fâsit tercih: mûteberler ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} ${f.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} olmalıydı.`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} ${f.unit} sahip olmalıydı.`:`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${s[a.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function U$(){return{localeError:C$()}}const M$=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"ارې";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return t=>{switch(t.code){case"invalid_type":return`ناسم ورودي: باید ${t.expected} وای, مګر ${o(t.input)} ترلاسه شو`;case"invalid_value":return t.values.length===1?`ناسم ورودي: باید ${Fe(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${he(t.values,"|")} څخه وای`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصرونه"} ولري`:`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} وي`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} ولري`:`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} وي`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${s[a.format]??t.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${t.keys.length>1?"کلیډونه":"کلیډ"}: ${he(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function D$(){return{localeError:M$()}}const L$=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return t=>{switch(t.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${t.expected}, otrzymano ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Fe(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.maximum.toString()} ${f.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.minimum.toString()} ${f.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${s[a.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function A$(){return{localeError:L$()}}const Z$=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"número";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipo inválido: esperado ${t.expected}, recebido ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inválida: esperado ${Fe(t.values[0])}`:`Opção inválida: esperada uma das ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${a}${t.maximum.toString()} ${f.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Muito pequeno: esperado que ${t.origin} tivesse ${a}${t.minimum.toString()} ${f.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${s[a.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function R$(){return{localeError:Z$()}}function um(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const F$=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"массив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return t=>{switch(t.code){case"invalid_type":return`Неверный ввод: ожидалось ${t.expected}, получено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неверный ввод: ожидалось ${Fe(t.values[0])}`:`Неверный вариант: ожидалось одно из ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const _=Number(t.maximum),q=um(_,f.unit.one,f.unit.few,f.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${a}${t.maximum.toString()} ${q}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const _=Number(t.minimum),q=um(_,f.unit.one,f.unit.few,f.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${a}${t.minimum.toString()} ${q}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${s[a.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function q$(){return{localeError:F$()}}const W$=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"število";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return t=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${t.expected}, prejeto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neveljaven vnos: pričakovano ${Fe(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${a}${t.maximum.toString()} ${f.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Premajhno: pričakovano, da bo ${t.origin} imelo ${a}${t.minimum.toString()} ${f.unit}`:`Premajhno: pričakovano, da bo ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${s[a.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${he(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function Q$(){return{localeError:W$()}}const G$=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${t.expected}, fick ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ogiltig inmatning: förväntat ${Fe(t.values[0])}`:`Ogiltigt val: förväntade en av ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`För stor(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()} ${f.unit??"element"}`:`För stor(t): förväntat ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()} ${f.unit}`:`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${s[a.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${he(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function V$(){return{localeError:G$()}}const J$=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(t))return"அணி";if(t===null)return"வெறுமை";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t.expected}, பெறப்பட்டது ${o(t.input)}`;case"invalid_value":return t.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Fe(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${he(t.values,"|")} இல் ஒன்று`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ${f.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ${f.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=t;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${s[a.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function B$(){return{localeError:J$()}}const Y$=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(t))return"อาร์เรย์ (Array)";if(t===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return t=>{switch(t.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t.expected} แต่ได้รับ ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Fe(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"ไม่เกิน":"น้อยกว่า",f=r(t.origin);return f?`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()} ${f.unit??"รายการ"}`:`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"อย่างน้อย":"มากกว่า",f=r(t.origin);return f?`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()} ${f.unit}`:`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${s[a.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${he(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function K$(){return{localeError:Y$()}}const H$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},X$=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function r(s){return e[s]??null}const o={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return s=>{switch(s.code){case"invalid_type":return`Geçersiz değer: beklenen ${s.expected}, alınan ${H$(s.input)}`;case"invalid_value":return s.values.length===1?`Geçersiz değer: beklenen ${Fe(s.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${he(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format==="ends_with"?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format==="includes"?`Geçersiz metin: "${t.includes}" içermeli`:t.format==="regex"?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${o[t.format]??s.format}`}case"not_multiple_of":return`Geçersiz sayı: ${s.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${s.keys.length>1?"lar":""}: ${he(s.keys,", ")}`;case"invalid_key":return`${s.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${s.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function ew(){return{localeError:X$()}}const tw=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"масив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return t=>{switch(t.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${t.expected}, отримано ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неправильні вхідні дані: очікується ${Fe(t.values[0])}`:`Неправильна опція: очікується одне з ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Занадто велике: очікується, що ${t.origin??"значення"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"елементів"}`:`Занадто велике: очікується, що ${t.origin??"значення"} буде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Занадто мале: очікується, що ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Занадто мале: очікується, що ${t.origin} буде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${s[a.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${he(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function cm(){return{localeError:tw()}}function rw(){return cm()}const nw=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"نمبر";case"object":{if(Array.isArray(t))return"آرے";if(t===null)return"نل";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return t=>{switch(t.code){case"invalid_type":return`غلط ان پٹ: ${t.expected} متوقع تھا، ${o(t.input)} موصول ہوا`;case"invalid_value":return t.values.length===1?`غلط ان پٹ: ${Fe(t.values[0])} متوقع تھا`:`غلط آپشن: ${he(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`بہت بڑا: ${t.origin??"ویلیو"} کے ${a}${t.maximum.toString()} ${f.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${t.origin??"ویلیو"} کا ${a}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`بہت چھوٹا: ${t.origin} کے ${a}${t.minimum.toString()} ${f.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${t.origin} کا ${a}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=t;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${s[a.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${he(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function iw(){return{localeError:nw()}}const ow=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"số";case"object":{if(Array.isArray(t))return"mảng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return t=>{switch(t.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${t.expected}, nhận được ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Fe(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Quá lớn: mong đợi ${t.origin??"giá trị"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"phần tử"}`:`Quá lớn: mong đợi ${t.origin??"giá trị"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Quá nhỏ: mong đợi ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Quá nhỏ: mong đợi ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${s[a.format]??t.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${he(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function aw(){return{localeError:ow()}}const sw=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(t))return"数组";if(t===null)return"空值(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return t=>{switch(t.code){case"invalid_type":return`无效输入:期望 ${t.expected},实际接收 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`无效输入:期望 ${Fe(t.values[0])}`:`无效选项:期望以下之一 ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()} ${f.unit??"个元素"}`:`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${s[a.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${he(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function uw(){return{localeError:sw()}}const cw=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return t=>{switch(t.code){case"invalid_type":return`無效的輸入值:預期為 ${t.expected},但收到 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`無效的輸入值:預期為 ${Fe(t.values[0])}`:`無效的選項:預期為以下其中之一 ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()} ${f.unit??"個元素"}`:`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()} ${f.unit}`:`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${s[a.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${he(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function lw(){return{localeError:cw()}}const dw=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(t))return"akopọ";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return t=>{switch(t.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${t.expected}, àmọ̀ a rí ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Fe(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${he(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??"iye"} ${f.verb} ${a}${t.maximum} ${f.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${t.maximum}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${f.verb} ${a}${t.minimum} ${f.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${t.minimum}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${s[a.format]??t.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${he(t.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${t.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function fw(){return{localeError:dw()}}const lm=Object.freeze(Object.defineProperty({__proto__:null,ar:jy,az:Oy,be:Py,ca:Uy,cs:Dy,da:Ay,de:Ry,en:om,eo:Gy,es:Jy,fa:Yy,fi:Hy,fr:e$,frCA:r$,he:i$,hu:a$,id:u$,is:d$,it:m$,ja:g$,ka:b$,kh:$$,km:am,ko:_$,lt:S$,mk:z$,ms:j$,nl:O$,no:P$,ota:U$,pl:A$,ps:D$,pt:R$,ru:q$,sl:Q$,sv:V$,ta:B$,th:K$,tr:ew,ua:rw,uk:cm,ur:iw,vi:aw,yo:fw,zhCN:uw,zhTW:lw},Symbol.toStringTag,{value:"Module"})),dm=Symbol("ZodOutput"),fm=Symbol("ZodInput");class xs{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){const s=o[0];if(this._map.set(r,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){const o=r._zod.parent;if(o){const s={...this.get(o)??{}};delete s.id;const t={...s,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function Ss(){return new xs}const Zn=Ss();function mm(e,r){return new e({type:"string",...se(r)})}function pm(e,r){return new e({type:"string",coerce:!0,...se(r)})}function Is(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...se(r)})}function Wo(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...se(r)})}function zs(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...se(r)})}function Ns(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...se(r)})}function js(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...se(r)})}function Ts(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...se(r)})}function Qo(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...se(r)})}function Os(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...se(r)})}function Es(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...se(r)})}function Ps(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...se(r)})}function Cs(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...se(r)})}function Us(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...se(r)})}function Ms(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...se(r)})}function Ds(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...se(r)})}function Ls(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...se(r)})}function As(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...se(r)})}function Zs(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...se(r)})}function Rs(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...se(r)})}function Fs(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...se(r)})}function qs(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...se(r)})}function Ws(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...se(r)})}function Qs(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...se(r)})}const gm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function hm(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...se(r)})}function vm(e,r){return new e({type:"string",format:"date",check:"string_format",...se(r)})}function bm(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...se(r)})}function ym(e,r){return new e({type:"string",format:"duration",check:"string_format",...se(r)})}function $m(e,r){return new e({type:"number",checks:[],...se(r)})}function wm(e,r){return new e({type:"number",coerce:!0,checks:[],...se(r)})}function _m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...se(r)})}function km(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...se(r)})}function xm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...se(r)})}function Sm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...se(r)})}function Im(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...se(r)})}function zm(e,r){return new e({type:"boolean",...se(r)})}function Nm(e,r){return new e({type:"boolean",coerce:!0,...se(r)})}function jm(e,r){return new e({type:"bigint",...se(r)})}function Tm(e,r){return new e({type:"bigint",coerce:!0,...se(r)})}function Om(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...se(r)})}function Em(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...se(r)})}function Pm(e,r){return new e({type:"symbol",...se(r)})}function Cm(e,r){return new e({type:"undefined",...se(r)})}function Um(e,r){return new e({type:"null",...se(r)})}function Mm(e){return new e({type:"any"})}function Dm(e){return new e({type:"unknown"})}function Lm(e,r){return new e({type:"never",...se(r)})}function Am(e,r){return new e({type:"void",...se(r)})}function Zm(e,r){return new e({type:"date",...se(r)})}function Rm(e,r){return new e({type:"date",coerce:!0,...se(r)})}function Fm(e,r){return new e({type:"nan",...se(r)})}function Rn(e,r){return new ps({check:"less_than",...se(r),value:e,inclusive:!1})}function Zr(e,r){return new ps({check:"less_than",...se(r),value:e,inclusive:!0})}function Fn(e,r){return new gs({check:"greater_than",...se(r),value:e,inclusive:!1})}function yr(e,r){return new gs({check:"greater_than",...se(r),value:e,inclusive:!0})}function qm(e){return Fn(0,e)}function Wm(e){return Rn(0,e)}function Qm(e){return Zr(0,e)}function Gm(e){return yr(0,e)}function Ki(e,r){return new gd({check:"multiple_of",...se(r),value:e})}function Go(e,r){return new bd({check:"max_size",...se(r),maximum:e})}function Hi(e,r){return new yd({check:"min_size",...se(r),minimum:e})}function Gs(e,r){return new $d({check:"size_equals",...se(r),size:e})}function Vo(e,r){return new wd({check:"max_length",...se(r),maximum:e})}function gi(e,r){return new _d({check:"min_length",...se(r),minimum:e})}function Jo(e,r){return new kd({check:"length_equals",...se(r),length:e})}function Vs(e,r){return new xd({check:"string_format",format:"regex",...se(r),pattern:e})}function Js(e){return new Sd({check:"string_format",format:"lowercase",...se(e)})}function Bs(e){return new Id({check:"string_format",format:"uppercase",...se(e)})}function Ys(e,r){return new zd({check:"string_format",format:"includes",...se(r),includes:e})}function Ks(e,r){return new Nd({check:"string_format",format:"starts_with",...se(r),prefix:e})}function Hs(e,r){return new jd({check:"string_format",format:"ends_with",...se(r),suffix:e})}function Vm(e,r,o){return new Od({check:"property",property:e,schema:r,...se(o)})}function Xs(e,r){return new Ed({check:"mime_type",mime:e,...se(r)})}function qn(e){return new Pd({check:"overwrite",tx:e})}function eu(e){return qn(r=>r.normalize(e))}function tu(){return qn(e=>e.trim())}function ru(){return qn(e=>e.toLowerCase())}function nu(){return qn(e=>e.toUpperCase())}function Jm(e,r,o){return new e({type:"array",element:r,...se(o)})}function mw(e,r,o){return new e({type:"union",options:r,...se(o)})}function pw(e,r,o,s){return new e({type:"union",options:o,discriminator:r,...se(s)})}function gw(e,r,o){return new e({type:"intersection",left:r,right:o})}function hw(e,r,o,s){const t=o instanceof Qe,a=t?s:o,f=t?o:null;return new e({type:"tuple",items:r,rest:f,...se(a)})}function vw(e,r,o,s){return new e({type:"record",keyType:r,valueType:o,...se(s)})}function bw(e,r,o,s){return new e({type:"map",keyType:r,valueType:o,...se(s)})}function yw(e,r,o){return new e({type:"set",valueType:r,...se(o)})}function $w(e,r,o){const s=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:s,...se(o)})}function ww(e,r,o){return new e({type:"enum",entries:r,...se(o)})}function _w(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...se(o)})}function Bm(e,r){return new e({type:"file",...se(r)})}function kw(e,r){return new e({type:"transform",transform:r})}function xw(e,r){return new e({type:"optional",innerType:r})}function Sw(e,r){return new e({type:"nullable",innerType:r})}function Iw(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():Uo(o)}})}function zw(e,r,o){return new e({type:"nonoptional",innerType:r,...se(o)})}function Nw(e,r){return new e({type:"success",innerType:r})}function jw(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function Tw(e,r,o){return new e({type:"pipe",in:r,out:o})}function Ow(e,r){return new e({type:"readonly",innerType:r})}function Ew(e,r,o){return new e({type:"template_literal",parts:r,...se(o)})}function Pw(e,r){return new e({type:"lazy",getter:r})}function Cw(e,r){return new e({type:"promise",innerType:r})}function Ym(e,r,o){const s=se(o);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:r,...s})}function Km(e,r,o){return new e({type:"custom",check:"custom",fn:r,...se(o)})}function Hm(e){const r=Xm(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(mi(s,o.value,r._zod.def));else{const t=s;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=o.value),t.inst??(t.inst=r),t.continue??(t.continue=!r._zod.def.abort),o.issues.push(mi(t))}},e(o.value,o)));return r}function Xm(e,r){const o=new Mt({check:"custom",...se(r)});return o._zod.check=e,o}function ep(e,r){const o=se(r);let s=o.truthy??["true","1","yes","on","y","enabled"],t=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(s=s.map(ge=>typeof ge=="string"?ge.toLowerCase():ge),t=t.map(ge=>typeof ge=="string"?ge.toLowerCase():ge));const a=new Set(s),f=new Set(t),_=e.Codec??ks,q=e.Boolean??bs,X=e.String??Ji,ce=new X({type:"string",error:o.error}),ue=new q({type:"boolean",error:o.error}),ze=new _({type:"pipe",in:ce,out:ue,transform:((ge,A)=>{let ye=ge;return o.case!=="sensitive"&&(ye=ye.toLowerCase()),a.has(ye)?!0:f.has(ye)?!1:(A.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...f],input:A.value,inst:ze,continue:!1}),{})}),reverseTransform:((ge,A)=>ge===!0?s[0]||"true":t[0]||"false"),error:o.error});return ze}function Xi(e,r,o,s={}){const t=se(s),a={...se(s),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:_=>o.test(_),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}class iu{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??Zn,this.target=r?.target??"draft-2020-12",this.unrepresentable=r?.unrepresentable??"throw",this.override=r?.override??(()=>{}),this.io=r?.io??"output",this.seen=new Map}process(r,o={path:[],schemaPath:[]}){var s;const t=r._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},f=this.seen.get(r);if(f)return f.count++,o.schemaPath.includes(r)&&(f.cycle=o.path),f.schema;const _={schema:{},count:1,cycle:void 0,path:o.path};this.seen.set(r,_);const q=r._zod.toJSONSchema?.();if(q)_.schema=q;else{const ue={...o,schemaPath:[...o.schemaPath,r],path:o.path},ze=r._zod.parent;if(ze)_.ref=ze,this.process(ze,ue),this.seen.get(ze).isParent=!0;else{const ge=_.schema;switch(t.type){case"string":{const A=ge;A.type="string";const{minimum:ye,maximum:Me,format:pt,patterns:ct,contentEncoding:dt}=r._zod.bag;if(typeof ye=="number"&&(A.minLength=ye),typeof Me=="number"&&(A.maxLength=Me),pt&&(A.format=a[pt]??pt,A.format===""&&delete A.format),dt&&(A.contentEncoding=dt),ct&&ct.size>0){const bt=[...ct];bt.length===1?A.pattern=bt[0].source:bt.length>1&&(_.schema.allOf=[...bt.map(lr=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:lr.source}))])}break}case"number":{const A=ge,{minimum:ye,maximum:Me,format:pt,multipleOf:ct,exclusiveMaximum:dt,exclusiveMinimum:bt}=r._zod.bag;typeof pt=="string"&&pt.includes("int")?A.type="integer":A.type="number",typeof bt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(A.minimum=bt,A.exclusiveMinimum=!0):A.exclusiveMinimum=bt),typeof ye=="number"&&(A.minimum=ye,typeof bt=="number"&&this.target!=="draft-4"&&(bt>=ye?delete A.minimum:delete A.exclusiveMinimum)),typeof dt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(A.maximum=dt,A.exclusiveMaximum=!0):A.exclusiveMaximum=dt),typeof Me=="number"&&(A.maximum=Me,typeof dt=="number"&&this.target!=="draft-4"&&(dt<=Me?delete A.maximum:delete A.exclusiveMaximum)),typeof ct=="number"&&(A.multipleOf=ct);break}case"boolean":{const A=ge;A.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(ge.type="string",ge.nullable=!0,ge.enum=[null]):ge.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{ge.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const A=ge,{minimum:ye,maximum:Me}=r._zod.bag;typeof ye=="number"&&(A.minItems=ye),typeof Me=="number"&&(A.maxItems=Me),A.type="array",A.items=this.process(t.element,{...ue,path:[...ue.path,"items"]});break}case"object":{const A=ge;A.type="object",A.properties={};const ye=t.shape;for(const ct in ye)A.properties[ct]=this.process(ye[ct],{...ue,path:[...ue.path,"properties",ct]});const Me=new Set(Object.keys(ye)),pt=new Set([...Me].filter(ct=>{const dt=t.shape[ct]._zod;return this.io==="input"?dt.optin===void 0:dt.optout===void 0}));pt.size>0&&(A.required=Array.from(pt)),t.catchall?._zod.def.type==="never"?A.additionalProperties=!1:t.catchall?t.catchall&&(A.additionalProperties=this.process(t.catchall,{...ue,path:[...ue.path,"additionalProperties"]})):this.io==="output"&&(A.additionalProperties=!1);break}case"union":{const A=ge,ye=t.options.map((Me,pt)=>this.process(Me,{...ue,path:[...ue.path,"anyOf",pt]}));A.anyOf=ye;break}case"intersection":{const A=ge,ye=this.process(t.left,{...ue,path:[...ue.path,"allOf",0]}),Me=this.process(t.right,{...ue,path:[...ue.path,"allOf",1]}),pt=dt=>"allOf"in dt&&Object.keys(dt).length===1,ct=[...pt(ye)?ye.allOf:[ye],...pt(Me)?Me.allOf:[Me]];A.allOf=ct;break}case"tuple":{const A=ge;A.type="array";const ye=this.target==="draft-2020-12"?"prefixItems":"items",Me=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",pt=t.items.map((lr,Br)=>this.process(lr,{...ue,path:[...ue.path,ye,Br]})),ct=t.rest?this.process(t.rest,{...ue,path:[...ue.path,Me,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(A.prefixItems=pt,ct&&(A.items=ct)):this.target==="openapi-3.0"?(A.items={anyOf:pt},ct&&A.items.anyOf.push(ct),A.minItems=pt.length,ct||(A.maxItems=pt.length)):(A.items=pt,ct&&(A.additionalItems=ct));const{minimum:dt,maximum:bt}=r._zod.bag;typeof dt=="number"&&(A.minItems=dt),typeof bt=="number"&&(A.maxItems=bt);break}case"record":{const A=ge;A.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(A.propertyNames=this.process(t.keyType,{...ue,path:[...ue.path,"propertyNames"]})),A.additionalProperties=this.process(t.valueType,{...ue,path:[...ue.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const A=ge,ye=Ba(t.entries);ye.every(Me=>typeof Me=="number")&&(A.type="number"),ye.every(Me=>typeof Me=="string")&&(A.type="string"),A.enum=ye;break}case"literal":{const A=ge,ye=[];for(const Me of t.values)if(Me===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Me=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");ye.push(Number(Me))}else ye.push(Me);if(ye.length!==0)if(ye.length===1){const Me=ye[0];A.type=Me===null?"null":typeof Me,this.target==="draft-4"||this.target==="openapi-3.0"?A.enum=[Me]:A.const=Me}else ye.every(Me=>typeof Me=="number")&&(A.type="number"),ye.every(Me=>typeof Me=="string")&&(A.type="string"),ye.every(Me=>typeof Me=="boolean")&&(A.type="string"),ye.every(Me=>Me===null)&&(A.type="null"),A.enum=ye;break}case"file":{const A=ge,ye={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Me,maximum:pt,mime:ct}=r._zod.bag;Me!==void 0&&(ye.minLength=Me),pt!==void 0&&(ye.maxLength=pt),ct?ct.length===1?(ye.contentMediaType=ct[0],Object.assign(A,ye)):A.anyOf=ct.map(dt=>({...ye,contentMediaType:dt})):Object.assign(A,ye);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const A=this.process(t.innerType,ue);this.target==="openapi-3.0"?(_.ref=t.innerType,ge.nullable=!0):ge.anyOf=[A,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,ue),_.ref=t.innerType;break}case"success":{const A=ge;A.type="boolean";break}case"default":{this.process(t.innerType,ue),_.ref=t.innerType,ge.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,ue),_.ref=t.innerType,this.io==="input"&&(ge._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,ue),_.ref=t.innerType;let A;try{A=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}ge.default=A;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const A=ge,ye=r._zod.pattern;if(!ye)throw new Error("Pattern not found in template literal");A.type="string",A.pattern=ye.source;break}case"pipe":{const A=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(A,ue),_.ref=A;break}case"readonly":{this.process(t.innerType,ue),_.ref=t.innerType,ge.readOnly=!0;break}case"promise":{this.process(t.innerType,ue),_.ref=t.innerType;break}case"optional":{this.process(t.innerType,ue),_.ref=t.innerType;break}case"lazy":{const A=r._zod.innerType;this.process(A,ue),_.ref=A;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const X=this.metadataRegistry.get(r);return X&&Object.assign(_.schema,X),this.io==="input"&&Jt(r)&&(delete _.schema.examples,delete _.schema.default),this.io==="input"&&_.schema._prefault&&((s=_.schema).default??(s.default=_.schema._prefault)),delete _.schema._prefault,this.seen.get(r).schema}emit(r,o){const s={cycles:o?.cycles??"ref",reused:o?.reused??"inline",external:o?.external??void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=ce=>{const ue=this.target==="draft-2020-12"?"$defs":"definitions";if(s.external){const ye=s.external.registry.get(ce[0])?.id,Me=s.external.uri??(ct=>ct);if(ye)return{ref:Me(ye)};const pt=ce[1].defId??ce[1].schema.id??`schema${this.counter++}`;return ce[1].defId=pt,{defId:pt,ref:`${Me("__shared")}#/${ue}/${pt}`}}if(ce[1]===t)return{ref:"#"};const ge=`#/${ue}/`,A=ce[1].schema.id??`__schema${this.counter++}`;return{defId:A,ref:ge+A}},f=ce=>{if(ce[1].schema.$ref)return;const ue=ce[1],{ref:ze,defId:ge}=a(ce);ue.def={...ue.schema},ge&&(ue.defId=ge);const A=ue.schema;for(const ye in A)delete A[ye];A.$ref=ze};if(s.cycles==="throw")for(const ce of this.seen.entries()){const ue=ce[1];if(ue.cycle)throw new Error(`Cycle detected: #/${ue.cycle?.join("/")}/<root>
|
|
43
43
|
|
|
44
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const me of this.seen.entries()){const K=me[1];if(r===me[0]){f(me);continue}if(s.external){const ye=s.external.registry.get(me[0])?.id;if(r!==me[0]&&ye){f(me);continue}}if(this.metadataRegistry.get(me[0])?.id){f(me);continue}if(K.cycle){f(me);continue}if(K.count>1&&s.reused==="ref"){f(me);continue}}const k=(me,K)=>{const Re=this.seen.get(me),ye=Re.def??Re.schema,H={...ye};if(Re.ref===null)return;const Ne=Re.ref;if(Re.ref=null,Ne){k(Ne,K);const De=this.seen.get(Ne).schema;De.$ref&&(K.target==="draft-7"||K.target==="draft-4"||K.target==="openapi-3.0")?(ye.allOf=ye.allOf??[],ye.allOf.push(De)):(Object.assign(ye,De),Object.assign(ye,H))}Re.isParent||this.override({zodSchema:me,jsonSchema:ye,path:Re.path??[]})};for(const me of[...this.seen.entries()].reverse())k(me[0],{target:this.target});const R={};if(this.target==="draft-2020-12"?R.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?R.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?R.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),s.external?.uri){const me=s.external.registry.get(r)?.id;if(!me)throw new Error("Schema is missing an `id` property");R.$id=s.external.uri(me)}Object.assign(R,t.def);const B=s.external?.defs??{};for(const me of this.seen.entries()){const K=me[1];K.def&&K.defId&&(B[K.defId]=K.def)}s.external||Object.keys(B).length>0&&(this.target==="draft-2020-12"?R.$defs=B:R.definitions=B);try{return JSON.parse(JSON.stringify(R))}catch{throw new Error("Error converting schema to JSON.")}}}function Xm(e,r){if(e instanceof _s){const s=new ru(r),t={};for(const k of e._idmap.entries()){const[R,B]=k;s.process(B)}const a={},f={registry:e,uri:r?.uri,defs:t};for(const k of e._idmap.entries()){const[R,B]=k;a[R]=s.emit(B,{...r,external:f})}if(Object.keys(t).length>0){const k=s.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[k]:t}}return{schemas:a}}const o=new ru(r);return o.process(e),o.emit(e,r)}function Vt(e,r){const o=r??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const t=e._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Vt(t.element,o);case"object":{for(const a in t.shape)if(Vt(t.shape[a],o))return!0;return!1}case"union":{for(const a of t.options)if(Vt(a,o))return!0;return!1}case"intersection":return Vt(t.left,o)||Vt(t.right,o);case"tuple":{for(const a of t.items)if(Vt(a,o))return!0;return!!(t.rest&&Vt(t.rest,o))}case"record":return Vt(t.keyType,o)||Vt(t.valueType,o);case"map":return Vt(t.keyType,o)||Vt(t.valueType,o);case"set":return Vt(t.valueType,o);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Vt(t.innerType,o);case"lazy":return Vt(t.getter(),o);case"default":return Vt(t.innerType,o);case"prefault":return Vt(t.innerType,o);case"custom":return!1;case"transform":return!0;case"pipe":return Vt(t.in,o)||Vt(t.out,o);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${t.type}`)}const Tw=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:ff,$ZodArray:bf,$ZodAsyncError:Cn,$ZodBase64:Xd,$ZodBase64URL:tf,$ZodBigInt:hs,$ZodBigIntFormat:uf,$ZodBoolean:vs,$ZodCIDRv4:Kd,$ZodCIDRv6:Hd,$ZodCUID:Zd,$ZodCUID2:Rd,$ZodCatch:Gf,$ZodCheck:Dt,$ZodCheckBigIntFormat:gd,$ZodCheckEndsWith:zd,$ZodCheckGreaterThan:ms,$ZodCheckIncludes:Sd,$ZodCheckLengthEquals:wd,$ZodCheckLessThan:fs,$ZodCheckLowerCase:kd,$ZodCheckMaxLength:yd,$ZodCheckMaxSize:vd,$ZodCheckMimeType:Td,$ZodCheckMinLength:$d,$ZodCheckMinSize:hd,$ZodCheckMultipleOf:md,$ZodCheckNumberFormat:pd,$ZodCheckOverwrite:Od,$ZodCheckProperty:jd,$ZodCheckRegex:_d,$ZodCheckSizeEquals:bd,$ZodCheckStartsWith:Id,$ZodCheckStringFormat:Wi,$ZodCheckUpperCase:xd,$ZodCodec:ws,$ZodCustom:em,$ZodCustomStringFormat:af,$ZodDate:vf,$ZodDefault:Af,$ZodDiscriminatedUnion:xf,$ZodE164:rf,$ZodEmail:Dd,$ZodEmoji:Ld,$ZodEncodeError:No,$ZodEnum:Ef,$ZodError:Ya,$ZodFile:Cf,$ZodFunction:Kf,$ZodGUID:Cd,$ZodIPv4:Bd,$ZodIPv6:Yd,$ZodISODate:Qd,$ZodISODateTime:Gd,$ZodISODuration:Vd,$ZodISOTime:Jd,$ZodIntersection:Sf,$ZodJWT:of,$ZodKSUID:Wd,$ZodLazy:Xf,$ZodLiteral:Pf,$ZodMap:Nf,$ZodNaN:Qf,$ZodNanoID:Ad,$ZodNever:pf,$ZodNonOptional:qf,$ZodNull:df,$ZodNullable:Lf,$ZodNumber:gs,$ZodNumberFormat:sf,$ZodObject:wf,$ZodObjectJIT:_f,$ZodOptional:Uf,$ZodPipe:Jf,$ZodPrefault:Rf,$ZodPromise:Hf,$ZodReadonly:Vf,$ZodRealError:hr,$ZodRecord:zf,$ZodRegistry:_s,$ZodSet:Tf,$ZodString:Gi,$ZodStringFormat:Nt,$ZodSuccess:Wf,$ZodSymbol:lf,$ZodTemplateLiteral:Yf,$ZodTransform:Mf,$ZodTuple:$s,$ZodType:Qe,$ZodULID:qd,$ZodURL:Ud,$ZodUUID:Md,$ZodUndefined:cf,$ZodUnion:bs,$ZodUnknown:mf,$ZodVoid:gf,$ZodXID:Fd,$brand:lc,$constructor:M,$input:cm,$output:lm,Doc:Ed,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:ru,NEVER:uc,TimePrecision:mm,_any:Cm,_array:Qm,_base64:Zs,_base64url:Rs,_bigint:zm,_boolean:Sm,_catch:xw,_check:Km,_cidrv4:Ls,_cidrv6:As,_coercedBigint:Nm,_coercedBoolean:Im,_coercedDate:Am,_coercedNumber:ym,_coercedString:fm,_cuid:Os,_cuid2:Es,_custom:Vm,_date:Lm,_decode:rs,_decodeAsync:is,_default:ww,_discriminatedUnion:lw,_e164:qs,_email:xs,_emoji:js,_encode:ts,_encodeAsync:ns,_endsWith:Ys,_enum:gw,_file:Jm,_float32:wm,_float64:_m,_gt:Zn,_gte:br,_guid:qo,_includes:Vs,_int:$m,_int32:km,_int64:jm,_intersection:cw,_ipv4:Ds,_ipv6:Us,_isoDate:gm,_isoDateTime:pm,_isoDuration:hm,_isoTime:vm,_jwt:Fs,_ksuid:Ms,_lazy:Nw,_length:Qo,_literal:hw,_lowercase:Qs,_lt:An,_lte:Zr,_map:mw,_max:Zr,_maxLength:Go,_maxSize:Wo,_mime:Ks,_min:br,_minLength:mi,_minSize:Bi,_multipleOf:Vi,_nan:Zm,_nanoid:Ts,_nativeEnum:vw,_negative:qm,_never:Dm,_nonnegative:Wm,_nonoptional:_w,_nonpositive:Fm,_normalize:Hs,_null:Pm,_nullable:$w,_number:bm,_optional:yw,_overwrite:Rn,_parse:Li,_parseAsync:Ai,_pipe:Sw,_positive:Rm,_promise:jw,_property:Gm,_readonly:Iw,_record:fw,_refine:Bm,_regex:Gs,_safeDecode:as,_safeDecodeAsync:us,_safeEncode:os,_safeEncodeAsync:ss,_safeParse:Zi,_safeParseAsync:Ri,_set:pw,_size:Ws,_startsWith:Bs,_string:dm,_stringFormat:Yi,_stringbool:Hm,_success:kw,_superRefine:Ym,_symbol:Om,_templateLiteral:zw,_toLowerCase:eu,_toUpperCase:tu,_transform:bw,_trim:Xs,_tuple:dw,_uint32:xm,_uint64:Tm,_ulid:Ps,_undefined:Em,_union:uw,_unknown:Mm,_uppercase:Js,_url:Fo,_uuid:Ss,_uuidv4:Is,_uuidv6:zs,_uuidv7:Ns,_void:Um,_xid:Cs,clone:Nr,config:ur,decode:sy,decodeAsync:ly,encode:ay,encodeAsync:uy,flattenError:Ka,formatError:Ha,globalConfig:jo,globalRegistry:Ln,isValidBase64:ps,isValidBase64URL:ef,isValidJWT:nf,locales:um,parse:Xa,parseAsync:es,prettifyError:Tc,regexes:ds,registry:ks,safeDecode:dy,safeDecodeAsync:my,safeEncode:cy,safeEncodeAsync:fy,safeParse:Oc,safeParseAsync:Ec,toDotPath:jc,toJSONSchema:Xm,treeifyError:Nc,util:Ic,version:Pd},Symbol.toStringTag,{value:"Module"})),nu=M("ZodISODateTime",(e,r)=>{Gd.init(e,r),Tt.init(e,r)});function ep(e){return pm(nu,e)}const iu=M("ZodISODate",(e,r)=>{Qd.init(e,r),Tt.init(e,r)});function tp(e){return gm(iu,e)}const ou=M("ZodISOTime",(e,r)=>{Jd.init(e,r),Tt.init(e,r)});function rp(e){return vm(ou,e)}const au=M("ZodISODuration",(e,r)=>{Vd.init(e,r),Tt.init(e,r)});function np(e){return hm(au,e)}const Ow=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:iu,ZodISODateTime:nu,ZodISODuration:au,ZodISOTime:ou,date:tp,datetime:ep,duration:np,time:rp},Symbol.toStringTag,{value:"Module"})),ip=(e,r)=>{Ya.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>Ha(e,o)},flatten:{value:o=>Ka(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,To,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,To,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ew=M("ZodError",ip),yr=M("ZodError",ip,{Parent:Error}),op=Li(yr),ap=Ai(yr),sp=Zi(yr),up=Ri(yr),lp=ts(yr),cp=rs(yr),dp=ns(yr),fp=is(yr),mp=os(yr),pp=as(yr),gp=ss(yr),vp=us(yr),Xe=M("ZodType",(e,r)=>(Qe.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...o)=>e.clone({...r,checks:[...r.checks??[],...o.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(o,s)=>Nr(e,o,s),e.brand=()=>e,e.register=((o,s)=>(o.add(e,s),e)),e.parse=(o,s)=>op(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>sp(e,o,s),e.parseAsync=async(o,s)=>ap(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>up(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>lp(e,o,s),e.decode=(o,s)=>cp(e,o,s),e.encodeAsync=async(o,s)=>dp(e,o,s),e.decodeAsync=async(o,s)=>fp(e,o,s),e.safeEncode=(o,s)=>mp(e,o,s),e.safeDecode=(o,s)=>pp(e,o,s),e.safeEncodeAsync=async(o,s)=>gp(e,o,s),e.safeDecodeAsync=async(o,s)=>vp(e,o,s),e.refine=(o,s)=>e.check(Xp(o,s)),e.superRefine=o=>e.check(eg(o)),e.overwrite=o=>e.check(Rn(o)),e.optional=()=>ta(e),e.nullable=()=>ra(e),e.nullish=()=>ta(ra(e)),e.nonoptional=o=>qp(e,o),e.array=()=>yt(e),e.or=o=>rn([e,o]),e.and=o=>jp(e,o),e.transform=o=>na(e,Ou(o)),e.default=o=>Ap(e,o),e.prefault=o=>Rp(e,o),e.catch=o=>Gp(e,o),e.pipe=o=>na(e,o),e.readonly=()=>Vp(e),e.describe=o=>{const s=e.clone();return Ln.add(s,{description:o}),s},Object.defineProperty(e,"description",{get(){return Ln.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Ln.get(e);const s=e.clone();return Ln.add(s,o[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),su=M("_ZodString",(e,r)=>{Gi.init(e,r),Xe.init(e,r);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...s)=>e.check(Gs(...s)),e.includes=(...s)=>e.check(Vs(...s)),e.startsWith=(...s)=>e.check(Bs(...s)),e.endsWith=(...s)=>e.check(Ys(...s)),e.min=(...s)=>e.check(mi(...s)),e.max=(...s)=>e.check(Go(...s)),e.length=(...s)=>e.check(Qo(...s)),e.nonempty=(...s)=>e.check(mi(1,...s)),e.lowercase=s=>e.check(Qs(s)),e.uppercase=s=>e.check(Js(s)),e.trim=()=>e.check(Xs()),e.normalize=(...s)=>e.check(Hs(...s)),e.toLowerCase=()=>e.check(eu()),e.toUpperCase=()=>e.check(tu())}),Jo=M("ZodString",(e,r)=>{Gi.init(e,r),su.init(e,r),e.email=o=>e.check(xs(uu,o)),e.url=o=>e.check(Fo(Bo,o)),e.jwt=o=>e.check(Fs(ku,o)),e.emoji=o=>e.check(js(lu,o)),e.guid=o=>e.check(qo(Vo,o)),e.uuid=o=>e.check(Ss(tn,o)),e.uuidv4=o=>e.check(Is(tn,o)),e.uuidv6=o=>e.check(zs(tn,o)),e.uuidv7=o=>e.check(Ns(tn,o)),e.nanoid=o=>e.check(Ts(cu,o)),e.guid=o=>e.check(qo(Vo,o)),e.cuid=o=>e.check(Os(du,o)),e.cuid2=o=>e.check(Es(fu,o)),e.ulid=o=>e.check(Ps(mu,o)),e.base64=o=>e.check(Zs($u,o)),e.base64url=o=>e.check(Rs(wu,o)),e.xid=o=>e.check(Cs(pu,o)),e.ksuid=o=>e.check(Ms(gu,o)),e.ipv4=o=>e.check(Ds(vu,o)),e.ipv6=o=>e.check(Us(hu,o)),e.cidrv4=o=>e.check(Ls(bu,o)),e.cidrv6=o=>e.check(As(yu,o)),e.e164=o=>e.check(qs(_u,o)),e.datetime=o=>e.check(ep(o)),e.date=o=>e.check(tp(o)),e.time=o=>e.check(rp(o)),e.duration=o=>e.check(np(o))});function O(e){return dm(Jo,e)}const Tt=M("ZodStringFormat",(e,r)=>{Nt.init(e,r),su.init(e,r)}),uu=M("ZodEmail",(e,r)=>{Dd.init(e,r),Tt.init(e,r)});function Pw(e){return xs(uu,e)}const Vo=M("ZodGUID",(e,r)=>{Cd.init(e,r),Tt.init(e,r)});function Cw(e){return qo(Vo,e)}const tn=M("ZodUUID",(e,r)=>{Md.init(e,r),Tt.init(e,r)});function hp(e){return Ss(tn,e)}function Mw(e){return Is(tn,e)}function Dw(e){return zs(tn,e)}function Uw(e){return Ns(tn,e)}const Bo=M("ZodURL",(e,r)=>{Ud.init(e,r),Tt.init(e,r)});function Lw(e){return Fo(Bo,e)}function Aw(e){return Fo(Bo,{protocol:/^https?$/,hostname:Bc,...ue(e)})}const lu=M("ZodEmoji",(e,r)=>{Ld.init(e,r),Tt.init(e,r)});function Zw(e){return js(lu,e)}const cu=M("ZodNanoID",(e,r)=>{Ad.init(e,r),Tt.init(e,r)});function Rw(e){return Ts(cu,e)}const du=M("ZodCUID",(e,r)=>{Zd.init(e,r),Tt.init(e,r)});function qw(e){return Os(du,e)}const fu=M("ZodCUID2",(e,r)=>{Rd.init(e,r),Tt.init(e,r)});function Fw(e){return Es(fu,e)}const mu=M("ZodULID",(e,r)=>{qd.init(e,r),Tt.init(e,r)});function Ww(e){return Ps(mu,e)}const pu=M("ZodXID",(e,r)=>{Fd.init(e,r),Tt.init(e,r)});function Gw(e){return Cs(pu,e)}const gu=M("ZodKSUID",(e,r)=>{Wd.init(e,r),Tt.init(e,r)});function Qw(e){return Ms(gu,e)}const vu=M("ZodIPv4",(e,r)=>{Bd.init(e,r),Tt.init(e,r)});function Jw(e){return Ds(vu,e)}const hu=M("ZodIPv6",(e,r)=>{Yd.init(e,r),Tt.init(e,r)});function Vw(e){return Us(hu,e)}const bu=M("ZodCIDRv4",(e,r)=>{Kd.init(e,r),Tt.init(e,r)});function Bw(e){return Ls(bu,e)}const yu=M("ZodCIDRv6",(e,r)=>{Hd.init(e,r),Tt.init(e,r)});function Yw(e){return As(yu,e)}const $u=M("ZodBase64",(e,r)=>{Xd.init(e,r),Tt.init(e,r)});function Kw(e){return Zs($u,e)}const wu=M("ZodBase64URL",(e,r)=>{tf.init(e,r),Tt.init(e,r)});function Hw(e){return Rs(wu,e)}const _u=M("ZodE164",(e,r)=>{rf.init(e,r),Tt.init(e,r)});function Xw(e){return qs(_u,e)}const ku=M("ZodJWT",(e,r)=>{of.init(e,r),Tt.init(e,r)});function e_(e){return Fs(ku,e)}const Ki=M("ZodCustomStringFormat",(e,r)=>{af.init(e,r),Tt.init(e,r)});function t_(e,r,o={}){return Yi(Ki,e,r,o)}function r_(e){return Yi(Ki,"hostname",cs,e)}function n_(e){return Yi(Ki,"hex",dd,e)}function i_(e,r){const o=r?.enc??"hex",s=`${e}_${o}`,t=ds[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return Yi(Ki,s,t,r)}const Yo=M("ZodNumber",(e,r)=>{gs.init(e,r),Xe.init(e,r),e.gt=(s,t)=>e.check(Zn(s,t)),e.gte=(s,t)=>e.check(br(s,t)),e.min=(s,t)=>e.check(br(s,t)),e.lt=(s,t)=>e.check(An(s,t)),e.lte=(s,t)=>e.check(Zr(s,t)),e.max=(s,t)=>e.check(Zr(s,t)),e.int=s=>e.check(xu(s)),e.safe=s=>e.check(xu(s)),e.positive=s=>e.check(Zn(0,s)),e.nonnegative=s=>e.check(br(0,s)),e.negative=s=>e.check(An(0,s)),e.nonpositive=s=>e.check(Zr(0,s)),e.multipleOf=(s,t)=>e.check(Vi(s,t)),e.step=(s,t)=>e.check(Vi(s,t)),e.finite=()=>e;const o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function mt(e){return bm(Yo,e)}const pi=M("ZodNumberFormat",(e,r)=>{sf.init(e,r),Yo.init(e,r)});function xu(e){return $m(pi,e)}function o_(e){return wm(pi,e)}function a_(e){return _m(pi,e)}function s_(e){return km(pi,e)}function u_(e){return xm(pi,e)}const Ko=M("ZodBoolean",(e,r)=>{vs.init(e,r),Xe.init(e,r)});function rt(e){return Sm(Ko,e)}const Ho=M("ZodBigInt",(e,r)=>{hs.init(e,r),Xe.init(e,r),e.gte=(s,t)=>e.check(br(s,t)),e.min=(s,t)=>e.check(br(s,t)),e.gt=(s,t)=>e.check(Zn(s,t)),e.gte=(s,t)=>e.check(br(s,t)),e.min=(s,t)=>e.check(br(s,t)),e.lt=(s,t)=>e.check(An(s,t)),e.lte=(s,t)=>e.check(Zr(s,t)),e.max=(s,t)=>e.check(Zr(s,t)),e.positive=s=>e.check(Zn(BigInt(0),s)),e.negative=s=>e.check(An(BigInt(0),s)),e.nonpositive=s=>e.check(Zr(BigInt(0),s)),e.nonnegative=s=>e.check(br(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(Vi(s,t));const o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function l_(e){return zm(Ho,e)}const Su=M("ZodBigIntFormat",(e,r)=>{uf.init(e,r),Ho.init(e,r)});function c_(e){return jm(Su,e)}function d_(e){return Tm(Su,e)}const bp=M("ZodSymbol",(e,r)=>{lf.init(e,r),Xe.init(e,r)});function f_(e){return Om(bp,e)}const yp=M("ZodUndefined",(e,r)=>{cf.init(e,r),Xe.init(e,r)});function m_(e){return Em(yp,e)}const $p=M("ZodNull",(e,r)=>{df.init(e,r),Xe.init(e,r)});function wp(e){return Pm($p,e)}const _p=M("ZodAny",(e,r)=>{ff.init(e,r),Xe.init(e,r)});function Xo(){return Cm(_p)}const kp=M("ZodUnknown",(e,r)=>{mf.init(e,r),Xe.init(e,r)});function qn(){return Mm(kp)}const xp=M("ZodNever",(e,r)=>{pf.init(e,r),Xe.init(e,r)});function Iu(e){return Dm(xp,e)}const Sp=M("ZodVoid",(e,r)=>{gf.init(e,r),Xe.init(e,r)});function zu(e){return Um(Sp,e)}const Nu=M("ZodDate",(e,r)=>{vf.init(e,r),Xe.init(e,r),e.min=(s,t)=>e.check(br(s,t)),e.max=(s,t)=>e.check(Zr(s,t));const o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function p_(e){return Lm(Nu,e)}const Ip=M("ZodArray",(e,r)=>{bf.init(e,r),Xe.init(e,r),e.element=r.element,e.min=(o,s)=>e.check(mi(o,s)),e.nonempty=o=>e.check(mi(1,o)),e.max=(o,s)=>e.check(Go(o,s)),e.length=(o,s)=>e.check(Qo(o,s)),e.unwrap=()=>e.element});function yt(e,r){return Qm(Ip,e,r)}function g_(e){const r=e._zod.def.shape;return Ut(Object.keys(r))}const ea=M("ZodObject",(e,r)=>{_f.init(e,r),Xe.init(e,r),ot(e,"shape",()=>r.shape),e.keyof=()=>Ut(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:qn()}),e.loose=()=>e.clone({...e._zod.def,catchall:qn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Iu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>yc(e,o),e.safeExtend=o=>$c(e,o),e.merge=o=>wc(e,o),e.pick=o=>hc(e,o),e.omit=o=>bc(e,o),e.partial=(...o)=>_c(Eu,e,o[0]),e.required=(...o)=>kc(Pu,e,o[0])});function _e(e,r){const o={type:"object",get shape(){return Ur(this,"shape",e?Eo(e):{}),this.shape},...ue(r)};return new ea(o)}function v_(e,r){return new ea({type:"object",get shape(){return Ur(this,"shape",Eo(e)),this.shape},catchall:Iu(),...ue(r)})}function h_(e,r){return new ea({type:"object",get shape(){return Ur(this,"shape",Eo(e)),this.shape},catchall:qn(),...ue(r)})}const ju=M("ZodUnion",(e,r)=>{bs.init(e,r),Xe.init(e,r),e.options=r.options});function rn(e,r){return new ju({type:"union",options:e,...ue(r)})}const zp=M("ZodDiscriminatedUnion",(e,r)=>{ju.init(e,r),xf.init(e,r)});function Hi(e,r,o){return new zp({type:"union",options:r,discriminator:e,...ue(o)})}const Np=M("ZodIntersection",(e,r)=>{Sf.init(e,r),Xe.init(e,r)});function jp(e,r){return new Np({type:"intersection",left:e,right:r})}const Tp=M("ZodTuple",(e,r)=>{$s.init(e,r),Xe.init(e,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Op(e,r,o){const s=r instanceof Qe,t=s?o:r,a=s?r:null;return new Tp({type:"tuple",items:e,rest:a,...ue(t)})}const Tu=M("ZodRecord",(e,r)=>{zf.init(e,r),Xe.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Bt(e,r,o){return new Tu({type:"record",keyType:e,valueType:r,...ue(o)})}function b_(e,r,o){const s=Nr(e);return s._zod.values=void 0,new Tu({type:"record",keyType:s,valueType:r,...ue(o)})}const Ep=M("ZodMap",(e,r)=>{Nf.init(e,r),Xe.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function y_(e,r,o){return new Ep({type:"map",keyType:e,valueType:r,...ue(o)})}const Pp=M("ZodSet",(e,r)=>{Tf.init(e,r),Xe.init(e,r),e.min=(...o)=>e.check(Bi(...o)),e.nonempty=o=>e.check(Bi(1,o)),e.max=(...o)=>e.check(Wo(...o)),e.size=(...o)=>e.check(Ws(...o))});function $_(e,r){return new Pp({type:"set",valueType:e,...ue(r)})}const Xi=M("ZodEnum",(e,r)=>{Ef.init(e,r),Xe.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const o=new Set(Object.keys(r.entries));e.extract=(s,t)=>{const a={};for(const f of s)if(o.has(f))a[f]=r.entries[f];else throw new Error(`Key ${f} not found in enum`);return new Xi({...r,checks:[],...ue(t),entries:a})},e.exclude=(s,t)=>{const a={...r.entries};for(const f of s)if(o.has(f))delete a[f];else throw new Error(`Key ${f} not found in enum`);return new Xi({...r,checks:[],...ue(t),entries:a})}});function Ut(e,r){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new Xi({type:"enum",entries:o,...ue(r)})}function w_(e,r){return new Xi({type:"enum",entries:e,...ue(r)})}const Cp=M("ZodLiteral",(e,r)=>{Pf.init(e,r),Xe.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function xt(e,r){return new Cp({type:"literal",values:Array.isArray(e)?e:[e],...ue(r)})}const Mp=M("ZodFile",(e,r)=>{Cf.init(e,r),Xe.init(e,r),e.min=(o,s)=>e.check(Bi(o,s)),e.max=(o,s)=>e.check(Wo(o,s)),e.mime=(o,s)=>e.check(Ks(Array.isArray(o)?o:[o],s))});function __(e){return Jm(Mp,e)}const Dp=M("ZodTransform",(e,r)=>{Mf.init(e,r),Xe.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new No(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(di(a,o.value,r));else{const f=a;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=o.value),f.inst??(f.inst=e),o.issues.push(di(f))}};const t=r.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o)):(o.value=t,o)}});function Ou(e){return new Dp({type:"transform",transform:e})}const Eu=M("ZodOptional",(e,r)=>{Uf.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ta(e){return new Eu({type:"optional",innerType:e})}const Up=M("ZodNullable",(e,r)=>{Lf.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ra(e){return new Up({type:"nullable",innerType:e})}function k_(e){return ta(ra(e))}const Lp=M("ZodDefault",(e,r)=>{Af.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ap(e,r){return new Lp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Po(r)}})}const Zp=M("ZodPrefault",(e,r)=>{Rf.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Rp(e,r){return new Zp({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():Po(r)}})}const Pu=M("ZodNonOptional",(e,r)=>{qf.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.innerType});function qp(e,r){return new Pu({type:"nonoptional",innerType:e,...ue(r)})}const Fp=M("ZodSuccess",(e,r)=>{Wf.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.innerType});function x_(e){return new Fp({type:"success",innerType:e})}const Wp=M("ZodCatch",(e,r)=>{Gf.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Gp(e,r){return new Wp({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const Qp=M("ZodNaN",(e,r)=>{Qf.init(e,r),Xe.init(e,r)});function S_(e){return Zm(Qp,e)}const Cu=M("ZodPipe",(e,r)=>{Jf.init(e,r),Xe.init(e,r),e.in=r.in,e.out=r.out});function na(e,r){return new Cu({type:"pipe",in:e,out:r})}const Mu=M("ZodCodec",(e,r)=>{Cu.init(e,r),ws.init(e,r)});function I_(e,r,o){return new Mu({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}const Jp=M("ZodReadonly",(e,r)=>{Vf.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Vp(e){return new Jp({type:"readonly",innerType:e})}const Bp=M("ZodTemplateLiteral",(e,r)=>{Yf.init(e,r),Xe.init(e,r)});function z_(e,r){return new Bp({type:"template_literal",parts:e,...ue(r)})}const Yp=M("ZodLazy",(e,r)=>{Xf.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.getter()});function Du(e){return new Yp({type:"lazy",getter:e})}const Kp=M("ZodPromise",(e,r)=>{Hf.init(e,r),Xe.init(e,r),e.unwrap=()=>e._zod.def.innerType});function N_(e){return new Kp({type:"promise",innerType:e})}const Hp=M("ZodFunction",(e,r)=>{Kf.init(e,r),Xe.init(e,r)});function ia(e){return new Hp({type:"function",input:Array.isArray(e?.input)?Op(e?.input):e?.input??yt(qn()),output:e?.output??qn()})}const oa=M("ZodCustom",(e,r)=>{em.init(e,r),Xe.init(e,r)});function j_(e){const r=new Dt({check:"custom"});return r._zod.check=e,r}function T_(e,r){return Vm(oa,e??(()=>!0),r)}function Xp(e,r={}){return Bm(oa,e,r)}function eg(e){return Ym(e)}function O_(e,r={error:`Input not instance of ${e.name}`}){const o=new oa({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...ue(r)});return o._zod.bag.Class=e,o}const E_=(...e)=>Hm({Codec:Mu,Boolean:Ko,String:Jo},...e);function P_(e){const r=Du(()=>rn([O(e),mt(),rt(),wp(),yt(r),Bt(O(),r)]));return r}function C_(e,r){return na(Ou(e),r)}const M_={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function D_(e){ur({customError:e})}function U_(){return ur().customError}var Uu;Uu||(Uu={});function L_(e){return fm(Jo,e)}function A_(e){return ym(Yo,e)}function Z_(e){return Im(Ko,e)}function R_(e){return Nm(Ho,e)}function q_(e){return Am(Nu,e)}const F_=Object.freeze(Object.defineProperty({__proto__:null,bigint:R_,boolean:Z_,date:q_,number:A_,string:L_},Symbol.toStringTag,{value:"Module"}));ur(nm());const W_=Object.freeze(Object.defineProperty({__proto__:null,$brand:lc,$input:cm,$output:lm,NEVER:uc,TimePrecision:mm,ZodAny:_p,ZodArray:Ip,ZodBase64:$u,ZodBase64URL:wu,ZodBigInt:Ho,ZodBigIntFormat:Su,ZodBoolean:Ko,ZodCIDRv4:bu,ZodCIDRv6:yu,ZodCUID:du,ZodCUID2:fu,ZodCatch:Wp,ZodCodec:Mu,ZodCustom:oa,ZodCustomStringFormat:Ki,ZodDate:Nu,ZodDefault:Lp,ZodDiscriminatedUnion:zp,ZodE164:_u,ZodEmail:uu,ZodEmoji:lu,ZodEnum:Xi,ZodError:Ew,ZodFile:Mp,get ZodFirstPartyTypeKind(){return Uu},ZodFunction:Hp,ZodGUID:Vo,ZodIPv4:vu,ZodIPv6:hu,ZodISODate:iu,ZodISODateTime:nu,ZodISODuration:au,ZodISOTime:ou,ZodIntersection:Np,ZodIssueCode:M_,ZodJWT:ku,ZodKSUID:gu,ZodLazy:Yp,ZodLiteral:Cp,ZodMap:Ep,ZodNaN:Qp,ZodNanoID:cu,ZodNever:xp,ZodNonOptional:Pu,ZodNull:$p,ZodNullable:Up,ZodNumber:Yo,ZodNumberFormat:pi,ZodObject:ea,ZodOptional:Eu,ZodPipe:Cu,ZodPrefault:Zp,ZodPromise:Kp,ZodReadonly:Jp,ZodRealError:yr,ZodRecord:Tu,ZodSet:Pp,ZodString:Jo,ZodStringFormat:Tt,ZodSuccess:Fp,ZodSymbol:bp,ZodTemplateLiteral:Bp,ZodTransform:Dp,ZodTuple:Tp,ZodType:Xe,ZodULID:mu,ZodURL:Bo,ZodUUID:tn,ZodUndefined:yp,ZodUnion:ju,ZodUnknown:kp,ZodVoid:Sp,ZodXID:pu,_ZodString:su,_default:Ap,_function:ia,any:Xo,array:yt,base64:Kw,base64url:Hw,bigint:l_,boolean:rt,catch:Gp,check:j_,cidrv4:Bw,cidrv6:Yw,clone:Nr,codec:I_,coerce:F_,config:ur,core:Tw,cuid:qw,cuid2:Fw,custom:T_,date:p_,decode:cp,decodeAsync:fp,discriminatedUnion:Hi,e164:Xw,email:Pw,emoji:Zw,encode:lp,encodeAsync:dp,endsWith:Ys,enum:Ut,file:__,flattenError:Ka,float32:o_,float64:a_,formatError:Ha,function:ia,getErrorMap:U_,globalRegistry:Ln,gt:Zn,gte:br,guid:Cw,hash:i_,hex:n_,hostname:r_,httpUrl:Aw,includes:Vs,instanceof:O_,int:xu,int32:s_,int64:c_,intersection:jp,ipv4:Jw,ipv6:Vw,iso:Ow,json:P_,jwt:e_,keyof:g_,ksuid:Qw,lazy:Du,length:Qo,literal:xt,locales:um,looseObject:h_,lowercase:Qs,lt:An,lte:Zr,map:y_,maxLength:Go,maxSize:Wo,mime:Ks,minLength:mi,minSize:Bi,multipleOf:Vi,nan:S_,nanoid:Rw,nativeEnum:w_,negative:qm,never:Iu,nonnegative:Wm,nonoptional:qp,nonpositive:Fm,normalize:Hs,null:wp,nullable:ra,nullish:k_,number:mt,object:_e,optional:ta,overwrite:Rn,parse:op,parseAsync:ap,partialRecord:b_,pipe:na,positive:Rm,prefault:Rp,preprocess:C_,prettifyError:Tc,promise:N_,property:Gm,readonly:Vp,record:Bt,refine:Xp,regex:Gs,regexes:ds,registry:ks,safeDecode:pp,safeDecodeAsync:vp,safeEncode:mp,safeEncodeAsync:gp,safeParse:sp,safeParseAsync:up,set:$_,setErrorMap:D_,size:Ws,startsWith:Bs,strictObject:v_,string:O,stringFormat:t_,stringbool:E_,success:x_,superRefine:eg,symbol:f_,templateLiteral:z_,toJSONSchema:Xm,toLowerCase:eu,toUpperCase:tu,transform:Ou,treeifyError:Nc,trim:Xs,tuple:Op,uint32:u_,uint64:d_,ulid:Ww,undefined:m_,union:rn,unknown:qn,uppercase:Js,url:Lw,util:Ic,uuid:hp,uuidv4:Mw,uuidv6:Dw,uuidv7:Uw,void:zu,xid:Gw},Symbol.toStringTag,{value:"Module"}));var G_=Object.defineProperty,nn=(e,r)=>G_(e,"name",{value:r,configurable:!0}),tg=Ut(["rating","single_choice","nps","nested_selection","multiple_choice_multiple","short_answer","long_text","annotation"]).describe("Enumeration of all supported question types for form fields"),Q_={RATING:"rating",SINGLE_CHOICE:"single_choice",NPS:"nps",NESTED_SELECTION:"nested_selection",MULTIPLE_CHOICE_MULTIPLE:"multiple_choice_multiple",SHORT_ANSWER:"short_answer",LONG_TEXT:"long_text",ANNOTATION:"annotation"},rg=Ut(["required","min","max","minLength","maxLength","pattern","email","url","custom"]).describe("Enumeration of all supported validation rule types"),J_={REQUIRED:"required",MIN:"min",MAX:"max",MIN_LENGTH:"minLength",MAX_LENGTH:"maxLength",PATTERN:"pattern",EMAIL:"email",URL:"url",CUSTOM:"custom"},ng=_e({type:rg.describe("Type of validation rule to apply"),value:rn([O(),mt(),rt()]).optional().describe("Value for the validation rule (string, number, or boolean)"),message:O().optional().describe("Custom error message when validation fails"),describe:O().max(500).optional().describe("LLM tool call description for this validation rule")}).describe("Schema defining validation rules for question responses"),V_=Ut(["equals","not_equals","contains","not_contains","greater_than","less_than","is_empty","is_not_empty"]).describe("Enumeration of all supported visibility condition operators"),B_={EQUALS:"equals",NOT_EQUALS:"not_equals",CONTAINS:"contains",NOT_CONTAINS:"not_contains",GREATER_THAN:"greater_than",LESS_THAN:"less_than",IS_EMPTY:"is_empty",IS_NOT_EMPTY:"is_not_empty"},ig=_e({field:O().describe("ID of the field to check against"),operator:V_.describe("Comparison operator for the condition"),value:rn([O(),mt(),rt()]).optional().describe("Value to compare against (string, number, or boolean)"),describe:O().max(500).optional().describe("LLM tool call description for this visibility condition")}).describe("Schema defining conditions that control when questions are visible"),aa=_e({id:O().describe("Unique identifier for the section"),title:O().min(1).max(200).describe("Display title for the section"),questionIds:yt(O()).min(1).describe("Array of question IDs that belong to this section")}).describe("Schema defining sections that organize questions into logical groups"),og=Ut(["D","P","A","S"]),Y_={DRAFT:"D",PUBLISHED:"P",ARCHIVED:"A",SUSPENDED:"S"},ag=Ut(["star","heart","thumbs-up","diamond","emoji","emoji-exp"]),K_={STAR:"star",HEART:"heart",THUMBS_UP:"thumbs_up",DIAMOND:"diamond",EMOJI:"emoji",EMOJI_EXP:"emoji_exp"},sg=Ut(["small","medium","large"]),H_={SMALL:"small",MEDIUM:"medium",LARGE:"large"},ug=Ut(["radio","list","chip","dropdown"]),X_={RADIO:"radio",LIST:"list",CHIP:"chip",DROPDOWN:"dropdown"},lg=Ut(["checkbox","list","chip"]),ek={CHECKBOX:"checkbox",LIST:"list",CHIP:"chip"},cg=Ut(["randomize","flip","rotate","ascending","none"]),tk={RANDOMIZE:"randomize",FLIP:"flip",ROTATE:"rotate",ASCENDING:"ascending",NONE:"none"},on=_e({id:O().describe("Unique identifier for the question"),type:tg.describe("The type of question (rating, single_choice, etc.)"),title:O().min(1).max(200).describe("The main title/question text displayed to users"),description:O().max(1e3).optional().describe("Optional detailed description or help text"),describe:O().max(2e3).optional().describe("LLM tool call description for better AI understanding and context"),required:rt().default(!1).describe("Whether this question must be answered"),errorMessage:O().max(500).optional().describe("Custom error message when validation fails"),validations:yt(ng).optional().default([]).describe("Array of validation rules to apply"),visibility:yt(ig).optional().default([]).describe("Conditions that control when this question is shown"),isFixed:rt().describe("Whether this question position is fixed or can be reordered"),sectionId:O().optional().describe("ID of the section this question belongs to"),status:og.describe("Current status of the question (Draft, Published, etc.)")}).describe("Base schema for all question types with common properties"),dg=on.extend({type:xt("rating").describe("Must be exactly 'rating'"),showLabels:rt().optional().describe("Whether to show min/max labels"),minLabel:O().max(100).optional().describe("Label for the minimum rating value"),maxLabel:O().max(100).optional().describe("Label for the maximum rating value"),displayStyle:ag.optional().describe("Visual style for rating display"),numberOfRatings:mt().int().min(1).max(10).describe("Number of rating options (1-10)"),representationSize:sg.optional().describe("Size of rating visual elements"),color:O().regex(/^#[0-9A-F]{6}$/i,"Must be a valid hex color").optional().describe("Hex color for rating elements")}).describe("Schema for rating questions with customizable display options"),fg=on.extend({type:xt("annotation").describe("Must be exactly 'annotation'"),annotationText:O().max(1e3).optional().describe("Text to display when annotation is provided"),noAnnotationText:O().max(500).optional().describe("Text to display when no annotation is provided")}).describe("Schema for annotation questions that provide additional context or instructions"),Lu=_e({id:O().describe("Unique identifier for this option (system time milliseconds)"),value:O().min(1).max(100).describe("The internal value used for this option"),label:O().min(1).max(200).describe("The display text shown to users for this option"),describe:O().max(500).optional().describe("LLM tool call description providing context about this option"),imageUrl:O().url().optional().describe("Optional image URL to display with this option")}).describe("Schema for individual options in choice-based questions"),Au=Du(()=>_e({id:O().describe("Unique identifier for this nested option (system time milliseconds)"),value:O().min(1).max(100).describe("The internal value used for this nested option"),label:O().min(1).max(200).describe("The display text shown for this nested option"),describe:O().max(500).optional().describe("LLM tool call description for this nested option context"),imageUrl:O().url().optional().describe("Optional image URL for this nested option"),hint:O().max(500).optional().describe("Optional hint text to help users understand this nested option"),children:yt(Au).optional().default([]).describe("Array of child options for hierarchical structure")}).describe("Schema for nested options with hierarchical structure support")),mg=on.extend({type:xt("single_choice").describe("Must be exactly 'single_choice'"),displayStyle:ug.optional().describe("Visual style for displaying options"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:yt(Lu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).describe("Schema for single-choice multiple selection questions"),pg=on.extend({type:xt("multiple_choice_multiple").describe("Must be exactly 'multiple_choice_multiple'"),displayStyle:lg.optional().describe("Visual style for displaying multiple options"),minSelections:mt().int().min(0).optional().describe("Minimum number of options that must be selected"),maxSelections:mt().int().min(1).optional().describe("Maximum number of options that can be selected"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:yt(Lu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).refine(e=>e.minSelections!==void 0&&e.maxSelections!==void 0?e.minSelections<=e.maxSelections:!0,{message:"minSelections cannot be greater than maxSelections",path:["minSelections"]}).describe("Schema for multiple-choice questions allowing multiple selections"),gg=on.extend({type:xt("nps").describe("Must be exactly 'nps'"),min:xt(0).describe("NPS always starts at 0"),max:xt(10).describe("NPS always ends at 10"),minLabel:O().max(100).optional().describe("Label for the minimum NPS value (0)"),maxLabel:O().max(100).optional().describe("Label for the maximum NPS value (10)"),scaleLabels:Bt(O().regex(/^\d+$/),O().max(50)).optional().describe("Custom labels for specific NPS values (0-10)"),prepopulatedValue:mt().int().min(0).max(10).optional().describe("Default value to pre-select (0-10)")}).refine(e=>e.scaleLabels?Object.keys(e.scaleLabels).every(o=>{const s=Number(o);return!isNaN(s)&&s>=0&&s<=10}):!0,{message:"scaleLabels keys must be between 0 and 10 (inclusive)",path:["scaleLabels"]}).describe("Schema for Net Promoter Score questions with 0-10 scale"),vg=on.extend({type:xt("short_answer").describe("Must be exactly 'short_answer'"),maxCharacters:mt().int().min(1).max(1e4).optional().describe("Maximum number of characters allowed"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),placeholder:O().max(200).optional().describe("Placeholder text shown in the input field"),enableRegexValidation:rt().optional().default(!1).describe("Whether to enable regex pattern validation"),regexPattern:O().optional().describe("Regular expression pattern for validation"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:O().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(1e4).optional().describe("Maximum tokens allowed for AI processing"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableRegexValidation&&!e.regexPattern),{message:"regexPattern is required when enableRegexValidation is true",path:["regexPattern"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for short answer questions with optional AI enhancement"),hg=on.extend({type:xt("long_text").describe("Must be exactly 'long_text'"),maxCharacters:mt().int().min(1).max(5e4).optional().describe("Maximum number of characters allowed (higher limit for long text)"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),rows:mt().int().min(1).max(20).optional().describe("Number of textarea rows to display (1-20)"),placeholder:O().max(500).optional().describe("Placeholder text for the textarea (longer for long text)"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:O().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(25e3).optional().describe("Maximum tokens allowed for AI processing (higher for long text)"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for long answer questions with rich text support and AI enhancement"),bg=on.extend({type:xt("nested_selection").describe("Must be exactly 'nested_selection'"),placeholder:O().max(200).optional().describe("Placeholder text for the nested dropdown"),options:yt(Au).min(1).max(100).describe("Array of nested options for hierarchical selection (1-100 options)"),displayStyle:xt("list").describe("Fixed display style for nested dropdowns"),choiceOrderOption:cg.optional().default("none").describe("How to order the nested choices"),preserveLastChoices:mt().int().min(0).max(10).optional().describe("Number of choice levels to preserve (0-10)"),prepopulatedValue:O().max(1e3).optional().describe("Default value to pre-populate"),allowOther:rt().optional().default(!1).describe('Whether to allow custom "other" options'),otherColumnName:O().max(100).optional().describe('Column name for storing custom "other" values'),maxDepth:mt().int().min(1).max(10).optional().describe("Maximum nesting depth allowed (1-10)"),cascadeLabels:rt().optional().default(!1).describe("Whether to cascade labels from parent options")}).refine(e=>!(e.allowOther&&!e.otherColumnName),{message:"otherColumnName is required when allowOther is true",path:["otherColumnName"]}).describe("Schema for nested dropdown questions with hierarchical option structure"),sa=Hi("type",[dg,fg,mg,pg,gg,vg,hg,bg]),yg=_e({markerNo:O(),timeline:O(),comment:O()}),$g=_e({fileType:O(),fileName:O(),markers:yt(yg)}),wg=_e({nps:mt().optional().describe("Net Promoter Score value (e.g., 0-10)"),nestedSelection:yt(O()).optional().describe("Array of selected nested option IDs"),longText:O().optional().describe("Long text answer, e.g., paragraph or essay"),shortAnswer:O().optional().describe("Short text answer, e.g., single sentence or word"),singleChoice:O().optional().describe("single selected option ID (for single choice questions)"),rating:mt().optional().describe("Star rating value (e.g., 1-5)"),multipleChoiceMultiple:yt(O()).optional().describe("Array of selected option IDs for multiple choice questions"),annotation:$g.optional().describe("Annotation object containing file and marker details"),others:O().optional().describe("For multiple choice questions and single choice questions, this is the value of the other option")}).describe("Flexible answer item supporting various question types and custom fields"),_g=wg,kg=Ut(["R","S"]).describe("Enumeration of feedback types: R=Recurring, O=One-time"),rk={RECURRING:"R",ONE_TIME:"S"},xg=Ut(["Y","N"]).describe("Yes/No enumeration using Y/N values"),nk={YES:"Y",NO:"N"},Sg=Ut(["minutes","hours","days","weeks","months","years"]).describe("Time units for recurring feedback schedules"),ik={MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",YEARS:"years"},Ig=_e({surveyType:kg.describe("Type of feedback: R for recurring, O for one-time"),showOnce:xg.describe("Whether the feedback should be shown only once per user"),stopWhenResponsesCount:O().regex(/^\d+$/,"Must be a valid number string").describe("Stop feedback when this number of responses is reached (as string)"),recurringValue:O().regex(/^\d+$/,"Must be a valid number string").describe("Value for recurring schedule (e.g., every 15 days)"),recurringUnit:Sg.describe("Time unit for recurring schedule"),startDate:O().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Start date and time for the feedback in ISO format"),stopDate:O().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Stop date and time for the feedback in ISO format")}).refine(e=>!(e.surveyType==="S"&&e.showOnce==="N"),{message:"One-time feedback must have showOnce set to 'Y'",path:["showOnce"]}).refine(e=>e.surveyType==="R"?parseInt(e.recurringValue)>0:!0,{message:"Recurring feedback must have a positive recurring value",path:["recurringValue"]}).refine(e=>{const r=new Date(e.startDate);return new Date(e.stopDate)>r},{message:"Stop date must be after start date",path:["stopDate"]}).describe("Schema defining frequency and scheduling properties for feedback"),zg=_e({isShareable:rt().describe("Whether the feedback results can be shared externally"),isEmailShareable:rt().describe("Whether the feedback can be shared via email")}).describe("Schema defining external publishing and sharing properties for feedback"),Ng=Ut(["P","D","A","S"]).describe("Publication status: P=Published, D=Draft, A=Archived, S=Stopped"),ok={PUBLISHED:"P",DRAFT:"D",ARCHIVED:"A",STOPPED:"S"},jg=_e({formTitle:O().describe("Title of the feedback form"),formDescription:O().describe("Description of the feedback form"),isPublished:Ng.describe("Publication status of the feedback form")}).describe("Schema defining feedback configuration properties"),et=O().min(1).describe("Translated text content"),Tg=_e({type:xt("rating").describe("Question type identifier"),title:et.describe("Question title translation"),description:et.optional().describe("Question description translation"),errorMessage:et.optional().describe("Error message translation"),minLabel:et.optional().describe("Minimum rating label translation"),maxLabel:et.optional().describe("Maximum rating label translation")}).describe("Translation schema for rating questions"),Og=_e({type:xt("single_choice").describe("Question type identifier"),title:et.describe("Question title translation"),description:et.optional().describe("Question description translation"),errorMessage:et.optional().describe("Error message translation"),placeholder:et.optional().describe("Input placeholder translation")}).catchall(et).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for single choice questions"),Eg=_e({type:xt("multiple_choice_multiple").describe("Question type identifier"),title:et.describe("Question title translation"),description:et.optional().describe("Question description translation"),errorMessage:et.optional().describe("Error message translation"),placeholder:et.optional().describe("Input placeholder translation")}).catchall(et).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for multiple choice questions"),Pg=_e({type:xt("nps").describe("Question type identifier"),title:et.describe("Question title translation"),description:et.optional().describe("Question description translation"),errorMessage:et.optional().describe("Error message translation"),minLabel:et.optional().describe("Minimum NPS label (0) translation"),maxLabel:et.optional().describe("Maximum NPS label (10) translation")}).catchall(et).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","minLabel","maxLabel"].includes(o)).every(o=>/^scaleLabel\.\d+$/.test(o)),{message:"Additional keys must follow the pattern 'scaleLabel.{number}'"}).describe("Translation schema for NPS questions"),Cg=_e({type:xt("short_answer").describe("Question type identifier"),title:et.describe("Question title translation"),description:et.optional().describe("Question description translation"),errorMessage:et.optional().describe("Error message translation"),placeholder:et.optional().describe("Input placeholder translation")}).describe("Translation schema for short answer questions"),Mg=_e({type:xt("long_text").describe("Question type identifier"),title:et.describe("Question title translation"),description:et.optional().describe("Question description translation"),errorMessage:et.optional().describe("Error message translation"),placeholder:et.optional().describe("Textarea placeholder translation")}).describe("Translation schema for long answer questions"),Dg=_e({type:xt("nested_selection").describe("Question type identifier"),title:et.describe("Question title translation"),description:et.optional().describe("Question description translation"),errorMessage:et.optional().describe("Error message translation"),placeholder:et.optional().describe("Dropdown placeholder translation")}).catchall(et).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^nestedOption\..+\.(label|hint)$/.test(o)),{message:"Additional keys must follow the pattern 'nestedOption.{id}.{label|hint}'"}).describe("Translation schema for nested selection questions"),Ug=_e({type:xt("annotation").describe("Question type identifier"),title:et.describe("Question title translation"),description:et.optional().describe("Question description translation"),errorMessage:et.optional().describe("Error message translation"),annotationText:et.optional().describe("Annotation display text translation"),noAnnotationText:et.optional().describe("No annotation display text translation")}).describe("Translation schema for annotation questions"),Lg=rn([Tg,Og,Eg,Pg,Cg,Mg,Dg,Ug]).describe("Union of all question type translation schemas"),ak=O().min(2).max(10).describe("Language code (e.g., 'en', 'es', 'hi')"),sk=Bt(ak,Lg).describe("Question translations keyed by language code"),Ag=Bt(O().uuid(),sk).describe("Question-centric translations keyed by question ID, then by language code"),Zu=Ag.describe("Question-centric translations at root level"),Zg=class{constructor(r,o="en"){this.translations=r,this.defaultLanguage=o}getQuestionTranslations(r,o){const s=this.translations[r];if(!s)return null;let t=s[o];return t||(t=s[this.defaultLanguage]),t||null}getTranslationText(r,o,s){const t=this.getQuestionTranslations(r,o);if(!t)return null;if(s in t){const a=t[s];return typeof a=="string"?a:null}return null}getQuestionLanguages(r){const o=this.translations[r];return o?Object.keys(o):[]}getAvailableLanguages(){const r=new Set;return Object.values(this.translations).forEach(o=>{Object.keys(o).forEach(s=>{r.add(s)})}),Array.from(r)}isLanguageSupportedForQuestion(r,o){const s=this.translations[r];return s?o in s:!1}isLanguageSupported(r){return this.getAvailableLanguages().includes(r)}getDefaultLanguage(){return this.defaultLanguage}getQuestionIds(){return Object.keys(this.translations)}getQuestionType(r,o){const s=o||this.defaultLanguage;return this.getQuestionTranslations(r,s)?.type||null}};nn(Zg,"TranslationProvider");var Rg=Zg;function qg(e,r="en"){return new Rg(e,r)}nn(qg,"createTranslationProvider");var Fg=Ut(["fade","manual"]).describe("How the end screen should be dismissed (fade out or manual dismissal)"),uk={FADE:"fade",MANUAL:"manual"},Ru=_e({title:O().min(1).max(200).describe("The main title displayed on the welcome screen"),description:O().min(1).max(1e3).describe("Description text shown on the welcome screen"),buttonLabel:O().min(1).max(50).describe("Text displayed on the welcome screen button")}).describe("Schema for welcome screen configuration fields"),qu=_e({title:O().min(1).max(200).describe("The main title displayed on the end screen"),message:O().min(1).max(1e3).describe("Message text shown on the end screen"),buttonLabel:O().min(1).max(50).describe("Text displayed on the end screen button"),dismissBehavior:Fg.describe("How the end screen should be dismissed (fade out or manual dismissal)"),fadeDuration:mt().int().min(0).max(1e4).describe("Duration in milliseconds for fade dismissal (0-10000)")}).describe("Schema for end screen configuration fields"),Fu=_e({title:O().min(1).max(200).describe("Translated title text for welcome screen"),description:O().min(1).max(1e3).describe("Translated description text for welcome screen"),buttonLabel:O().min(1).max(50).describe("Translated text for the welcome button label")}).describe("Schema for welcome screen translation fields"),Wu=_e({buttonLabel:O().min(1).max(50).describe("Translated text for the end button label"),title:O().min(1).max(200).describe("Translated title text for end screen"),message:O().min(1).max(1e3).describe("Translated message text for end screen")}).describe("Schema for end screen translation fields"),Gu=_e({pagination:rt().describe("Whether to show pagination for multi-page forms"),questionNumber:rt().describe("Whether to display question numbers"),pageTitle:rt().describe("Whether to show page titles in multi-page forms"),blockerFeedback:rt().describe("Whether to show blocker feedback for validation errors"),submitButtonLabel:O().min(1).max(50).describe("Text for the submit button"),previousButtonLabel:O().min(1).max(50).describe("Text for the previous button in pagination"),nextButtonLabel:O().min(1).max(50).describe("Text for the next button in pagination"),aiEnhancementSuccessMessage:O().min(1).max(100).describe("Message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:O().min(1).max(100).describe("Message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:O().min(1).max(100).describe("Message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration fields"),Qu=_e({value:O().min(1).max(10).describe("Language code (e.g., 'en', 'es', 'fr')"),label:O().min(1).max(50).describe("Display name for the language (e.g., 'English', 'Spanish', 'French')"),isFixed:rt().default(!1).describe("Whether this language is fixed and cannot be deleted by users")}).describe("Schema for individual language field with value, label, and fixed status"),ua=yt(Qu).describe("Schema for array of available languages"),Ju=_e({submitButtonLabel:O().min(1).max(50).describe("Translated text for the submit button"),previousButtonLabel:O().min(1).max(50).describe("Translated text for the previous button in pagination"),nextButtonLabel:O().min(1).max(50).describe("Translated text for the next button in pagination"),aiEnhancementSuccessMessage:O().min(1).max(100).describe("Translated message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:O().min(1).max(100).describe("Translated message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:O().min(1).max(100).describe("Translated message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration field translations"),Vu=Ut(["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]).describe("Available positions for widget placement"),lk={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",MIDDLE_LEFT:"middle-left",MIDDLE_CENTER:"middle-center",MIDDLE_RIGHT:"middle-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},ck=Ut(["light","dark"]).describe("Available theme modes for the widget"),dk={LIGHT:"light",DARK:"dark"},Wg=_e({darkOverlay:rt().describe("Whether to show a dark overlay behind the widget"),closeButton:rt().describe("Whether to display a close button on the widget"),progressBar:rt().describe("Whether to show a progress bar indicating completion status"),showBranding:rt().describe("Whether to display branding elements on the widget"),customPosition:rt().describe("Whether custom positioning is enabled"),customIconPosition:rt().describe("Whether custom icon positioning is enabled"),customCss:O().optional().describe("Custom CSS link to apply for the feedback form")}).describe("Feature settings controlling widget UI behavior and appearance"),Bu=_e({brandColor:O().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #3366CC)").describe("Primary brand color in hex format"),overlayColor:O().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #FFFFFF)").describe("Overlay background color in hex format"),textColor:O().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #333333)").describe("Primary text color in hex format"),backgroundColor:rn([O().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i),O().regex(/^rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(?:,\s*[01](?:\.\d+)?)?\s*\)$/i)]).describe("Background color in hex format or rgba format (e.g., #1A1A1A or rgba(255,255,255, 1))")}).describe("Color scheme for a single theme"),Yu=_e({light:Bu,dark:Bu}).describe("Complete theme configuration with light and dark variants"),Ku=_e({themes:Yu.describe("Color themes for light and dark modes"),featureSettings:Wg.describe("UI feature settings controlling widget behavior"),selectedPosition:Vu.describe("Selected position for the main widget"),selectedIconPosition:Vu.describe("Selected position for the widget icon")}).describe("Complete theme and UI configuration including colors, features, and positioning"),Gg=_e({name:O().describe("The operator name (e.g., '=', '!=', 'contains', 'beginsWith', 'matches')"),label:O().describe("Human-readable label for the operator (e.g., 'equals', 'not equals', 'contains')")}).describe("Schema defining an operator for custom event fields"),Qg=_e({name:O().describe("The field name (e.g., 'event_name', 'add_to_cart', 'cart_item_number')"),label:O().describe("Human-readable label for the field"),placeholder:O().describe("Placeholder text for input fields"),operators:yt(Gg).min(1).describe("Array of available operators for this field")}).describe("Schema defining a custom event field with its operators"),Jg=_e({customEventFields:yt(Qg).optional().describe("Array of custom event fields with their operators and labels")}).describe("Schema defining metadata for conditional if clauses"),Vg=_e({query:O().describe("The structured query definition as a JSON string"),naturalLanguage:O().describe("Human-readable description of the query conditions"),jsonLogic:O().describe("JSON Logic representation of the query as a JSON string"),sqlQuery:O().describe("SQL representation of the query for database operations")}).describe("Schema defining query output structure with all fields as strings"),Bg=_e({id:O().describe("Unique identifier for this condition"),event:O().describe("The event that triggers evaluation of this condition (e.g., 'pageLoad', 'pageView', 'scroll', 'custom')"),queryOutput:Vg.describe("The query conditions to evaluate when the event occurs"),metadata:Jg.optional().describe("Optional metadata containing custom event fields and their configurations")}).describe("Schema defining the 'if' condition for auto-trigger logic"),Yg=_e({triggerType:O().describe("The type of action to perform (e.g., 'delay', 'scroll', 'immediately')"),delay:mt().int().min(0).optional().describe("Delay in seconds before performing the action"),scroll:rn([O(),mt()]).optional().describe("Scroll position (percentage as string like '75%' or pixel value as number)")}).describe("Schema defining the action to perform when conditions are met"),Kg=_e({if:Bg.describe("The condition that must be met"),then:Yg.describe("The action to perform when the condition is met")}).describe("Schema defining a conditional when clause with if-then logic"),la=_e({id:O().describe("Unique identifier for this filter condition"),category:O().describe("The category this filter belongs to (e.g., 'device', 'user', 'geo_location')"),property:O().describe("The property to filter on (e.g., 'device_type', 'age', 'country')"),operator:O().describe("The comparison operator (e.g., 'equals', 'greaterThan', 'lessThan')"),values:yt(O()).min(1).describe("Array of values to compare against"),tbl_key:O().describe("The database table key for this property")}).describe("Schema defining a single filter condition within a category"),Hg=_e({device:yt(la).optional().describe("Array of device-specific filter conditions"),user:yt(la).optional().describe("Array of user-specific filter conditions"),geo_location:yt(la).optional().describe("Array of geo-location specific filter conditions")}).describe("Schema defining category-specific filters for audience targeting"),Xg=_e({applications:yt(O()).min(1).describe("Array of application names this targeting applies to"),userType:O().describe("The type of user this targeting applies to (e.g., 'both', 'new', 'returning')"),categorySpecificFilters:Hg.optional().describe("Optional category-specific filters for more granular targeting")}).describe("Schema defining who the audience targeting applies to"),ev=_e({id:O().describe("Unique identifier for the audience segment"),name:O().min(1).max(200).describe("Display name for the audience segment"),isImportant:rt().describe("Whether this segment is marked as important for targeting"),when:yt(Kg).min(1).describe("Array of conditional when clauses with if-then logic"),who:Xg.describe("User criteria and conditions defining who belongs to this segment")}).describe("Schema defining an audience segment for targeting with conditional logic"),Hu=_e({isAuto:rt().describe("Whether automatic triggering is enabled for this audience"),isManual:rt().describe("Whether manual triggering is enabled for this audience"),segments:yt(ev).min(0).describe("Array of audience segments for targeting conditions")}).refine(e=>e.isAuto||e.isManual,{message:"At least one of isAuto or isManual must be true",path:["isAuto"]}).describe("Schema defining audience trigger properties for form targeting"),ca=Hi("isEnabled",[_e({isEnabled:xt(!1).describe("Whether other configuration properties are enabled"),otherFields:Gu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Bt(O(),Ju).optional().describe("Translations for other configuration field labels and buttons keyed by language code")}),_e({isEnabled:xt(!0).describe("Whether other configuration properties are enabled"),otherFields:Gu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Bt(O(),Ju).describe("Translations for other configuration field labels and buttons keyed by language code")})]).describe("Schema for other configuration properties including fields and translations"),da=Hi("isEnabled",[_e({isEnabled:xt(!1).describe("Whether welcome screen is enabled"),welcomeFields:Ru.optional().describe("Welcome screen configuration fields including title, description, and button label"),translations:Bt(O(),Fu).optional().describe("Translations for welcome screen content keyed by language code")}),_e({isEnabled:xt(!0).describe("Whether welcome screen is enabled"),welcomeFields:Ru.describe("Welcome screen configuration fields including title, description, and button label"),translations:Bt(O(),Fu).describe("Translations for welcome screen content keyed by language code")})]).describe("Schema for welcome screen properties including fields and translations"),fa=Hi("isEnabled",[_e({isEnabled:xt(!1).describe("Whether end screen is enabled"),endFields:qu.optional().describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Bt(O(),Wu).optional().describe("Translations for end screen content keyed by language code")}),_e({isEnabled:xt(!0).describe("Whether end screen is enabled"),endFields:qu.describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Bt(O(),Wu).describe("Translations for end screen content keyed by language code")})]).describe("Schema for end screen properties including fields and translations"),tv=_e({themeConfiguration:Ku.describe("Theme configuration including colors, features, and positioning")}).describe("Schema for appearance properties including theme configuration"),fk=_e({feedbackConfigurationId:hp().describe("Unique identifier for the feedback configuration"),feedbackConfiguration:jg.describe("Configuration properties for the feedback form"),questionnaireFields:_e({questions:Bt(O(),sa).describe("Collection of questions keyed by their string identifiers"),sections:yt(aa).describe("Array of sections that organize questions into logical groups"),selectedLanguages:ua.describe("Array of languages selected for this questionnaire"),translations:Zu.describe("Multi-language translations for questions and form content")}).describe("Fields defining the questionnaire structure, questions, sections, selected languages, and translations"),frequencyAndSchedulingProperties:Ig.describe("Properties controlling when and how often the feedback is shown"),externalPublishingProperties:zg.describe("Properties controlling external sharing and publishing of feedback results"),audienceTriggerProperties:Hu.describe("Properties defining audience targeting and trigger conditions for the feedback form"),otherConfigurationProperties:ca.describe("Additional configuration properties including form display options and translations"),welcomeScreenProperties:da.describe("Welcome screen configuration including content and translations"),endScreenProperties:fa.describe("End screen configuration including content, dismissal behavior, and translations"),appearanceProperties:tv.describe("Appearance configuration including themes, colors, and UI feature settings")}).describe("Complete schema for all feedback-level properties including scheduling, publishing, audience targeting, configuration, screens, and appearance"),rv=_e({mandatoryFetchConfigAtPaths:yt(O()).describe("Array of paths where configuration must be fetched from server when navigated by user"),configSyncIntervalSeconds:mt().int().positive().describe("Interval in seconds for configuration synchronization between client and server"),disableAllSurvey:rt().describe("Flag to disable all surveys globally"),feedbackIntervalDuration:mt().int().positive().describe("Duration in seconds for feedback interval between two auto triggered feedbacks")}).describe("Master properties configuration for global survey settings"),nv=Ut(["light","dark","system"]).describe("Enumeration of supported theme modes"),mk={LIGHT:"light",DARK:"dark",SYSTEM:"system"},eo=_e({$deviceType:O().describe("Type of device being used"),$timezone:O().describe("Device timezone (e.g., 'Asia/Calcutta')"),$theme:nv.describe("Current theme mode preference"),$os:O().describe("Operating system running on the device"),$osVersion:O().describe("Version of the operating system"),$appVersion:O().describe("Version of the application"),$app:O().describe("Browser or application being used"),$language:O().describe("Language preference (e.g., 'en-GB')")}).describe("Device information collected from the client"),to=_e({$sessionId:O().uuid().describe("Unique session identifier"),$timestamp:O().optional().describe("ISO timestamp of the session")}).describe("Session information for tracking user sessions"),pk=_e({deviceInfo:eo.describe("Device information"),sessionInfo:to.describe("Session information")}).describe("Combined device and session information"),iv=_e({$counter:Bt(O(),mt().int()).describe("Counter properties for user tracking (can be positive or negative)").optional(),$set:Bt(O(),Xo()).describe("Properties to set for the user").optional(),$setOnce:Bt(O(),Xo()).describe("Properties to set once for the user (won't overwrite existing values)").optional(),$unset:yt(O()).describe("Array of property names to unset/remove from the user").optional()}).loose().describe("User properties including counters, set operations, and other dynamic data"),ma=_e({userName:O().email().describe("User's email address as username"),properties:iv.describe("User properties and counters")}).describe("User information including identification and properties"),ov=Ut(["V","S"]).describe("User action: V for view, S for submit"),gk={VIEW:"V",SUBMIT:"S"},pa=_e({feedbackIdentifier:O().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:O().uuid().describe("Unique identifier for the feedback configuration"),completionTimeInSeconds:mt().int().min(0).describe("Time taken to complete the feedback in seconds"),userAction:ov.describe("Action performed by the user"),responseLanguageCode:O().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Configuration information for the feedback form"),av=_e({questionId:O().uuid().describe("Unique identifier for the question"),answer:_g.describe("The answer provided for this question"),type:O().describe("Type of the question (e.g., 'rating', 'single_choice')"),error:O().optional().describe("Error message if any validation failed")}).describe("Response to a specific question in the feedback form"),sv=_e({questions:yt(av).min(1).describe("Array of question responses")}).describe("User responses to feedback questions"),uv=_e({customEventName:O().nullable().describe("Custom event name that triggered the feedback"),currentPath:O().describe("Current page path where feedback was triggered"),eventType:O().describe("Type of event that triggered the feedback")}).passthrough().describe("Properties of the trigger that matched for this feedback"),Xu=_e({formConfig:pa.describe("Form configuration information"),deviceInfo:eo.describe("Device information"),sessionInfo:to.describe("Session information"),userInfo:ma.optional().describe("User information (optional)"),matchedTriggerProperties:uv.describe("Properties of the matched trigger"),customProperties:Bt(O(),qn()).optional().describe("Custom properties for advanced use cases")}).describe("Base submit feedback request schema"),lv=Xu.extend({formConfig:pa.extend({userAction:xt("V").describe("Action performed by the user (view)")})}).strict().describe("View feedback request schema (no response required)"),cv=Xu.extend({formConfig:pa.extend({userAction:xt("S").describe("Action performed by the user (submit)")}),response:sv.describe("User responses (required for submit)")}).strict().describe("Submit feedback request schema (response required)"),vk=rn([lv,cv]).describe("Union schema for both view and submit feedback requests"),dv=_e({feedbackConfigurationId:O().uuid().describe("Unique identifier for the feedback configuration"),feedbackTitle:O().describe("Title of the feedback configuration"),triggerProperties:Hu.describe("Trigger properties including auto/manual settings and audience segments"),appearanceProperties:_e({themes:_e({light:_e({brandColor:O().describe("Brand color for light theme"),overlayColor:O().describe("Overlay color for light theme"),textColor:O().describe("Text color for light theme"),backgroundColor:O().describe("Background color for light theme")}).describe("Light theme colors"),dark:_e({brandColor:O().describe("Brand color for dark theme"),overlayColor:O().describe("Overlay color for dark theme"),textColor:O().describe("Text color for dark theme"),backgroundColor:O().describe("Background color for dark theme")}).describe("Dark theme colors")}).nullable().optional().describe("Theme configuration (optional)"),featureSettings:_e({darkOverlay:rt().describe("Whether to show dark overlay"),closeButton:rt().describe("Whether to show close button"),progressBar:rt().describe("Whether to show progress bar"),showBranding:rt().describe("Whether to show branding"),customPosition:rt().describe("Whether custom position is enabled"),customIconPosition:rt().describe("Whether custom icon position is enabled"),customCss:O().nullable().optional().describe("Custom CSS link (optional)")}).describe("Feature settings for the feedback form"),selectedIconPosition:O().describe("Selected position for the feedback icon"),selectedPosition:O().describe("Selected position for the feedback form")}).describe("Appearance properties for the feedback form")}).describe("Individual feedback configuration item in the list"),fv=_e({feedbackConfigurationId:O().uuid().describe("Unique identifier for the feedback configuration"),responseLanguageCode:O().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Form configuration for fetching feedback details"),hk=_e({deviceInfo:eo.describe("Device information"),sessionInfo:to.describe("Session information"),userInfo:ma.optional().describe("User information (optional)"),force:rt().optional().describe("Forcefully fetch eligible feedback list (optional)")}).strict().describe("Request schema for fetching available feedback configurations"),bk=_e({formConfig:fv.describe("Form configuration for the specific feedback"),deviceInfo:eo.describe("Device information"),sessionInfo:to.describe("Session information"),userInfo:ma.optional().describe("User information (optional)")}).strict().describe("Request schema for fetching specific feedback form details"),mv=_e({formTitle:O().describe("Title of the feedback form"),formDescription:O().describe("Description of the feedback form")}).describe("Form configuration response with title and description"),pv=_e({questions:Bt(O(),sa).describe("Collection of questions keyed by their string identifiers"),sections:yt(aa).describe("Array of sections that organize questions into logical groups"),translations:Bt(O(),Xo()).describe("Translations object (can be empty or contain language-specific translations)"),selectedLanguages:ua.describe("Array of languages selected for this questionnaire")}).describe("Questionnaire fields response including questions, sections, translations, and selected languages"),yk=_e({feedbackConfigurationId:O().uuid().describe("Unique identifier for the feedback configuration"),feedbackIdentifier:O().uuid().describe("Unique identifier for this specific feedback instance"),formConfiguration:mv.describe("Form configuration with title and description"),questionnaireFields:pv.describe("Questionnaire structure including questions, sections, translations, and languages"),otherConfigurationProperties:ca.describe("Other configuration properties using existing schema"),welcomeScreenProperties:da.describe("Welcome screen properties using existing schema"),endScreenProperties:fa.describe("End screen properties using existing schema")}).strict().describe("Complete response schema for fetchFeedbackDetails API using existing field schemas"),$k=_e({masterProperties:rv.describe("Master properties for global survey settings"),feedbackConfiguration:yt(dv).describe("Array of available feedback configurations")}).strict().describe("Response schema for fetchConfigurationList API"),wk=_e({questionId:O().describe("Unique identifier for the question"),identifier:O().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:O().uuid().describe("Unique identifier for the feedback configuration"),userText:O().describe("Original text input from the user")}).strict().describe("Request schema for refining user text input"),gv=_e({userText:O().describe("Original text input from the user"),refinedText:O().describe("Refined/improved version of the user text")}).describe("Data containing original and refined text"),_k=_e({success:rt().describe("Indicates whether the operation was successful"),code:O().describe("Response code indicating the status"),message:O().describe("Human-readable message describing the result"),messageId:O().describe("Unique identifier for the response message"),data:gv.describe("Response data containing original and refined text"),error:O().optional().describe("Error message if the operation failed (optional)")}).strict().describe("Response schema for refine text API operation");function gi(e,r){if(e===null||typeof e>"u"||typeof e!="object")return e;const o=Array.isArray(e)?[]:{};for(const[s,t]of Object.entries(e)){let a=s;typeof s=="string"&&!s.includes("-")&&(a=r(s)),o[a]=Array.isArray(t)?t.map(f=>typeof f=="object"&&!(f instanceof Uint8Array)&&!(f instanceof Date)?gi(f,r):f):t instanceof Uint8Array||t instanceof Date?t:typeof t=="object"?gi(t,r):t}return o}nn(gi,"convertObject");function ga(e){return e.length===1?e.toLowerCase():e.replace(/^([A-Z])/,r=>r[0].toLowerCase()).replace(/[_-]([a-z0-9])/g,r=>r[1].toUpperCase())}nn(ga,"toCamel");function vv(e){return gi(e,ga)}nn(vv,"objectToCamel");function el(e){let r=e,o=0;for(;(/([a-z])([0-9])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/([a-z])([0-9])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;for(;(/(.+?)([A-Z])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/(.+?)([A-Z])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;return r.toLowerCase()}nn(el,"toSnake");function hv(e){return gi(e,el)}nn(hv,"objectToSnake");function tl(e){return ga(e).replace(/^([a-z])/,r=>r[0].toUpperCase())}nn(tl,"toPascal");function bv(e){return gi(e,tl)}nn(bv,"objectToPascal");var yv=Ut(["light","dark"]).describe("Current theme mode of the application"),kk={LIGHT:"light",DARK:"dark"},xk=_e({theme:Yu.describe("Theme configuration including light and dark theme colors"),currentMode:yv.describe("Current theme mode (light or dark)"),currentLanguage:Qu.describe("Currently selected language configuration"),questions:Bt(O(),sa).describe("Collection of questions keyed by their string identifiers"),questionLanguages:ua.describe("Available languages for questions"),otherConfigurationProperties:ca.describe("Other configuration properties including form display options and translations"),welcomeScreenProperties:da.optional().describe("Welcome screen configuration (optional)"),endScreenProperties:fa.optional().describe("End screen configuration (optional)"),translations:Zu.optional().describe("Multi-language translations for questions and form content (optional)"),onSectionChange:ia({input:[mt()],output:zu()}).optional().describe("Optional callback function triggered when section changes"),onClose:ia({input:[],output:zu()}).optional().describe("Optional callback function triggered when the form is closed"),sections:yt(aa).describe("Array of sections that organize questions into logical groups"),themeSettings:Ku.describe("Complete theme configuration including colors, features, and positioning")}).describe("Schema for application props interface containing all form configuration and state");const Sk=Db(Object.freeze(Object.defineProperty({__proto__:null,AnnotationMarkerSchema:yg,AnnotationSchema:$g,AnswerItemSchema:wg,AnswerSchema:_g,ChoiceOrderOptions:tk,CurrentModes:kk,DeviceThemes:mk,DismissBehaviors:uk,EndFieldsTranslationSchema:Wu,EndScreenFieldsSchema:qu,LanguageFieldSchema:Qu,LanguagesSchema:ua,MultipleChoiceDisplayStyles:X_,MultipleChoiceMultipleDisplayStyles:ek,OtherFieldsSchema:Gu,OtherFieldsTranslationSchema:Ju,Positions:lk,PublicationStatuses:ok,QuestionStatuses:Y_,QuestionTypes:Q_,RatingDisplayStyles:K_,RatingRepresentationSizes:H_,RecurringUnits:ik,SurveyTypes:rk,ThemeModes:dk,TranslationProvider:Rg,UserActions:gk,ValidationRuleTypes:J_,VisibilityConditionOperators:B_,WelcomeFieldsTranslationSchema:Fu,WelcomeScreenFieldsSchema:Ru,YesNoValues:nk,annotationQuestionSchema:fg,annotationQuestionTranslationSchema:Ug,appPropsSchema:xk,appearancePropertiesSchema:tv,audienceSegmentSchema:ev,audienceTriggerPropertiesSchema:Hu,baseSubmitFeedbackSchema:Xu,categorySpecificFiltersSchema:Hg,choiceOrderOptionSchema:cg,combinedQuestionSchema:sa,conditionalIfMetadataSchema:Jg,conditionalIfSchema:Bg,conditionalWhenSchema:Kg,createTranslationProvider:qg,currentModeSchema:yv,customEventFieldOperatorSchema:Gg,customEventFieldSchema:Qg,deviceInfoSchema:eo,deviceSessionInfoSchema:pk,deviceThemeSchema:nv,dismissBehaviorSchema:Fg,endScreenPropertiesSchema:fa,externalPublishingPropertiesSchema:zg,featureSettingsSchema:Wg,feedbackConfigurationItemSchema:dv,feedbackConfigurationSchema:jg,feedbackRequestSchema:vk,fetchConfigurationListResponseSchema:$k,fetchConfigurationListSchema:hk,fetchFeedbackDetailsResponseSchema:yk,fetchFeedbackDetailsSchema:bk,fetchFormConfigSchema:fv,filterConditionSchema:la,formConfigSchema:pa,formConfigurationResponseSchema:mv,formPropertiesSchema:fk,frequencyAndSchedulingPropertiesSchema:Ig,longAnswerQuestionSchema:hg,longAnswerQuestionTranslationSchema:Mg,masterPropertiesSchema:rv,matchedTriggerPropertiesSchema:uv,multipleChoiceDisplayStyleSchema:ug,multipleChoiceMultipleDisplayStyleSchema:lg,multipleChoiceMultipleQuestionSchema:pg,multipleChoiceQuestionTranslationSchema:Eg,multipleChoiceSingleQuestionSchema:mg,nestedDropdownQuestionSchema:bg,nestedOptionSchema:Au,nestedSelectionQuestionTranslationSchema:Dg,npsQuestionSchema:gg,npsQuestionTranslationSchema:Pg,objectToCamel:vv,objectToPascal:bv,objectToSnake:hv,otherConfigurationPropertiesSchema:ca,positionSchema:Vu,publicationStatusSchema:Ng,queryOutputSchema:Vg,questionCentricTranslationsSchema:Ag,questionOptionSchema:Lu,questionResponseSchema:av,questionSchema:on,questionStatusSchema:og,questionTranslationSchema:Lg,questionTypeSchema:tg,questionnaireFieldsResponseSchema:pv,ratingDisplayStyleSchema:ag,ratingQuestionSchema:dg,ratingQuestionTranslationSchema:Tg,ratingRepresentationSizeSchema:sg,recurringUnitSchema:Sg,refineTextDataSchema:gv,refineTextParamsSchema:wk,refineTextResponseSchema:_k,responseSchema:sv,sectionSchema:aa,sessionInfoSchema:to,shortAnswerQuestionSchema:vg,shortAnswerQuestionTranslationSchema:Cg,singleChoiceQuestionTranslationSchema:Og,submitFeedbackSchema:cv,surveyTypeSchema:kg,themeColorsSchema:Bu,themeConfigurationSchema:Ku,themeModeSchema:ck,themesSchema:Yu,toCamel:ga,toPascal:tl,toSnake:el,translationEntrySchema:et,translationsSchema:Zu,triggerActionSchema:Yg,userActionSchema:ov,userInfoSchema:ma,userPropertiesSchema:iv,validationRuleSchema:ng,validationRuleTypeSchema:rg,viewFeedbackSchema:lv,visibilityConditionSchema:ig,welcomeScreenPropertiesSchema:da,whoSchema:Xg,yesNoSchema:xg,z:W_},Symbol.toStringTag,{value:"Module"})));var Ik=Mi.exports,$v;function zk(){return $v||($v=1,(function(e,r){(function(o,s){s(r,Sk)})(Ik,(function(o,s){typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let t=!1,a=!1;function f(){t=!0}f();const k=1,R=2,B=4,me=8,K=16,Re=1,ye=2,H=4,Ne=8,De=16,pt=1,ut=2,dt="[",bt="[!",lr="]",Br={},Ft=Symbol(),va="http://www.w3.org/1999/xhtml",rl="http://www.w3.org/2000/svg",ha="@attach",ro=!1;var yn=Array.isArray,nl=Array.prototype.indexOf,Fn=Array.from,Wn=Object.keys,Yr=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,no=Object.getOwnPropertyDescriptors,io=Object.prototype,ve=Array.prototype,Ve=Object.getPrototypeOf,jt=Object.isExtensible;function Lt(i){return typeof i=="function"}const gt=()=>{};function Tr(i){return i()}function Gn(i){for(var n=0;n<i.length;n++)i[n]()}function vi(){var i,n,u=new Promise((l,d)=>{i=l,n=d});return{promise:u,resolve:i,reject:n}}function Yt(i,n){if(Array.isArray(i))return i;if(!(Symbol.iterator in i))return Array.from(i);const u=[];for(const l of i)if(u.push(l),u.length===n)break;return u}const Zt=2,Qn=4,hi=8,Jn=16,an=32,$n=64,il=128,Or=256,ba=512,nr=1024,$r=2048,sn=4096,Rr=8192,Vn=16384,ol=32768,Bn=65536,wv=1<<17,Tk=1<<18,Yn=1<<19,_v=1<<20,al=1<<21,ya=1<<22,Kn=1<<23,Kr=Symbol("$state"),sl=Symbol("legacy props"),Ok=Symbol(""),oo=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ek=1,$a=3,Hn=8;function ul(i){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Pk(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ck(i){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mk(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dk(i){throw new Error("https://svelte.dev/e/effect_orphan")}function Uk(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Lk(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ak(i){throw new Error("https://svelte.dev/e/props_invalid_value")}function Zk(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Rk(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qk(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Fk(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function wa(i){console.warn("https://svelte.dev/e/hydration_mismatch")}function Wk(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Gk(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Ue=!1;function cr(i){Ue=i}let Je;function Ht(i){if(i===null)throw wa(),Br;return Je=i}function un(){return Ht(Xr(Je))}function D(i){if(Ue){if(Xr(Je)!==null)throw wa(),Br;Je=i}}function wr(i=1){if(Ue){for(var n=i,u=Je;n--;)u=Xr(u);Je=u}}function _a(i=!0){for(var n=0,u=Je;;){if(u.nodeType===Hn){var l=u.data;if(l===lr){if(n===0)return u;n-=1}else(l===dt||l===bt)&&(n+=1)}var d=Xr(u);i&&u.remove(),u=d}}function kv(i){if(!i||i.nodeType!==Hn)throw wa(),Br;return i.data}function xv(i){return i===this.v}function Sv(i,n){return i!=i?n==n:i!==n||i!==null&&typeof i=="object"||typeof i=="function"}function Iv(i){return!Sv(i,this.v)}const Qk=[];function Jk(i,n=!1,u=!1){return ka(i,new Map,"",Qk,null,u)}function ka(i,n,u,l,d=null,m=!1){if(typeof i=="object"&&i!==null){var p=n.get(i);if(p!==void 0)return p;if(i instanceof Map)return new Map(i);if(i instanceof Set)return new Set(i);if(yn(i)){var g=Array(i.length);n.set(i,g),d!==null&&n.set(d,g);for(var v=0;v<i.length;v+=1){var b=i[v];v in i&&(g[v]=ka(b,n,u,l,null,m))}return g}if(Ve(i)===io){g={},n.set(i,g),d!==null&&n.set(d,g);for(var y in i)g[y]=ka(i[y],n,u,l,null,m);return g}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!m)return ka(i.toJSON(),n,u,l,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}let St=null;function bi(i){St=i}function ll(i){return cl().get(i)}function zv(i,n){return cl().set(i,n),n}function Vk(i){return cl().has(i)}function Be(i,n=!1,u){St={p:St,c:null,e:null,s:i,x:null,l:t&&!n?{s:null,u:null,$:[]}:null}}function Ye(i){var n=St,u=n.e;if(u!==null){n.e=null;for(var l of u)Hv(l)}return i!==void 0&&(n.x=i),St=n.p,i??{}}function ao(){return!t||St!==null&&St.l===null}function cl(i){return St===null&&ul(),St.c??=new Map(Bk(St)||void 0)}function Bk(i){let n=i.p;for(;n!==null;){const u=n.c;if(u!==null)return u;n=n.p}return null}let Xn=[];function Nv(){var i=Xn;Xn=[],Gn(i)}function ln(i){if(Xn.length===0&&!so){var n=Xn;queueMicrotask(()=>{n===Xn&&Nv()})}Xn.push(i)}function Yk(){for(;Xn.length>0;)Nv()}const Kk=new WeakMap;function jv(i){var n=He;if(n===null)return at.f|=Kn,i;if((n.f&ol)===0){if((n.f&il)===0)throw!n.parent&&i instanceof Error&&Tv(i),i;n.b.error(i)}else yi(i,n)}function yi(i,n){for(;n!==null;){if((n.f&il)!==0)try{n.b.error(i);return}catch(u){i=u}n=n.parent}throw i instanceof Error&&Tv(i),i}function Tv(i){const n=Kk.get(i);n&&(Yr(i,"message",{value:n.message}),Yr(i,"stack",{value:n.stack}))}const xa=new Set;let Et=null,Sa=null,dl=new Set,Hr=[],Ia=null,fl=!1,so=!1;class qr{current=new Map;#e=new Map;#t=new Set;#n=0;#o=null;#i=[];#a=[];#r=[];#s=[];#u=[];#c=[];skipped_effects=new Set;process(n){Hr=[],Sa=null;for(const d of n)this.#d(d);if(this.#n===0){this.#f();var u=this.#a,l=this.#r;this.#a=[],this.#r=[],this.#s=[],Sa=this,Et=null,Ev(u),Ev(l),Sa=null,this.#o?.resolve()}else this.#l(this.#a),this.#l(this.#r),this.#l(this.#s);for(const d of this.#i)_i(d);this.#i=[]}#d(n){n.f^=nr;for(var u=n.first;u!==null;){var l=u.f,d=(l&(an|$n))!==0,m=d&&(l&nr)!==0,p=m||(l&Rr)!==0||this.skipped_effects.has(u);if(!p&&u.fn!==null){d?u.f^=nr:(l&Qn)!==0?this.#r.push(u):(l&nr)===0&&((l&ya)!==0&&u.b?.is_pending()?this.#i.push(u):mo(u)&&((u.f&Jn)!==0&&this.#s.push(u),_i(u)));var g=u.first;if(g!==null){u=g;continue}}var v=u.parent;for(u=u.next;u===null&&v!==null;)u=v.next,v=v.parent}}#l(n){for(const u of n)((u.f&$r)!==0?this.#u:this.#c).push(u),ar(u,nr);n.length=0}capture(n,u){this.#e.has(n)||this.#e.set(n,u),this.current.set(n,n.v)}activate(){Et=this}deactivate(){Et=null}flush(){if(Hr.length>0){if(this.activate(),Ov(),Et!==null&&Et!==this)return}else this.#n===0&&this.#f();this.deactivate();for(const n of dl)if(dl.delete(n),n(),Et!==null)break}#f(){for(const n of this.#t)n();if(this.#t.clear(),xa.size>1){this.#e.clear();let n=!0;for(const u of xa){if(u===this){n=!1;continue}for(const[l,d]of this.current){if(u.current.has(l))if(n)u.current.set(l,d);else continue;Pv(l)}if(Hr.length>0){Et=u;for(const l of Hr)u.#d(l);Hr=[]}}Et=null}xa.delete(this)}increment(){this.#n+=1}decrement(){this.#n-=1;for(const n of this.#u)ar(n,$r),ti(n);for(const n of this.#c)ar(n,sn),ti(n);this.flush()}add_callback(n){this.#t.add(n)}settled(){return(this.#o??=vi()).promise}static ensure(){if(Et===null){const n=Et=new qr;xa.add(Et),so||qr.enqueue(()=>{Et===n&&n.flush()})}return Et}static enqueue(n){ln(n)}static apply(n){return gt}}function lt(i){var n=so;so=!0;try{for(var u;;){if(Yk(),Hr.length===0&&(Et?.flush(),Hr.length===0))return Ia=null,u;Ov()}}finally{so=n}}function Ov(){var i=wi;fl=!0;try{var n=0;for(oh(!0);Hr.length>0;){var u=qr.ensure();if(n++>1e3){var l,d;Hk()}u.process(Hr),wn.clear()}}finally{fl=!1,oh(i),Ia=null}}function Hk(){try{Uk()}catch(i){yi(i,Ia)}}let ei=null;function Ev(i){var n=i.length;if(n!==0){for(var u=0;u<n;){var l=i[u++];if((l.f&(Vn|Rr))===0&&mo(l)&&(ei=[],_i(l),l.deps===null&&l.first===null&&l.nodes_start===null&&(l.teardown===null&&l.ac===null?rh(l):l.fn=null),ei?.length>0)){wn.clear();for(const d of ei)_i(d);ei=[]}}ei=null}}function Pv(i){if(i.reactions!==null)for(const n of i.reactions){const u=n.f;(u&Zt)!==0?Pv(n):(u&(ya|Jn))!==0&&(ar(n,$r),ti(n))}}function ti(i){for(var n=Ia=i;n.parent!==null;){n=n.parent;var u=n.f;if(fl&&n===He&&(u&Jn)!==0)return;if((u&($n|an))!==0){if((u&nr)===0)return;n.f^=nr}}Hr.push(n)}function Cv(i){let n=0,u=_n(0),l;return()=>{c0()&&(c(u),ri(()=>(n===0&&(l=C(()=>i(()=>lo(u)))),n+=1,()=>{ln(()=>{n-=1,n===0&&(l?.(),l=void 0,lo(u))})})))}}var Xk=Bn|Yn|il;function e0(i,n,u){new t0(i,n,u)}class t0{parent;#e=!1;#t;#n=Ue?Je:null;#o;#i;#a;#r=null;#s=null;#u=null;#c=null;#d=0;#l=0;#f=!1;#m=null;#h=()=>{this.#m&&$i(this.#m,this.#d)};#b=Cv(()=>(this.#m=_n(this.#d),()=>{this.#m=null}));constructor(n,u,l){this.#t=n,this.#o=u,this.#i=l,this.parent=He.b,this.#e=!!this.#o.pending,this.#a=xn(()=>{if(He.b=this,Ue){const d=this.#n;un(),d.nodeType===Hn&&d.data===bt?this.#$():this.#y()}else{try{this.#r=ir(()=>l(this.#t))}catch(d){this.error(d)}this.#l>0?this.#g():this.#e=!1}},Xk),Ue&&(this.#t=Je)}#y(){try{this.#r=ir(()=>this.#i(this.#t))}catch(n){this.error(n)}this.#e=!1}#$(){const n=this.#o.pending;n&&(this.#s=ir(()=>n(this.#t)),qr.enqueue(()=>{this.#r=this.#p(()=>(qr.ensure(),ir(()=>this.#i(this.#t)))),this.#l>0?this.#g():(Sn(this.#s,()=>{this.#s=null}),this.#e=!1)}))}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#o.pending}#p(n){var u=He,l=at,d=St;Pr(this.#a),mr(this.#a),bi(this.#a.ctx);try{return n()}catch(m){return jv(m),null}finally{Pr(u),mr(l),bi(d)}}#g(){const n=this.#o.pending;this.#r!==null&&(this.#c=document.createDocumentFragment(),r0(this.#r,this.#c)),this.#s===null&&(this.#s=ir(()=>n(this.#t)))}#v(n){if(!this.has_pending_snippet()){this.parent&&this.parent.#v(n);return}this.#l+=n,this.#l===0&&(this.#e=!1,this.#s&&Sn(this.#s,()=>{this.#s=null}),this.#c&&(this.#t.before(this.#c),this.#c=null),ln(()=>{qr.ensure().flush()}))}update_pending_count(n){this.#v(n),this.#d+=n,dl.add(this.#h)}get_effect_pending(){return this.#b(),c(this.#m)}error(n){var u=this.#o.onerror;let l=this.#o.failed;if(this.#f||!u&&!l)throw n;this.#r&&(Xt(this.#r),this.#r=null),this.#s&&(Xt(this.#s),this.#s=null),this.#u&&(Xt(this.#u),this.#u=null),Ue&&(Ht(this.#n),wr(),Ht(_a()));var d=!1,m=!1;const p=()=>{if(d){Gk();return}d=!0,m&&Fk(),qr.ensure(),this.#d=0,this.#u!==null&&Sn(this.#u,()=>{this.#u=null}),this.#e=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#f=!1,ir(()=>this.#i(this.#t)))),this.#l>0?this.#g():this.#e=!1};var g=at;try{mr(null),m=!0,u?.(n,p),m=!1}catch(v){yi(v,this.#a&&this.#a.parent)}finally{mr(g)}l&&ln(()=>{this.#u=this.#p(()=>{this.#f=!0;try{return ir(()=>{l(this.#t,()=>n,()=>p)})}catch(v){return yi(v,this.#a.parent),null}finally{this.#f=!1}})})}}function r0(i,n){for(var u=i.nodes_start,l=i.nodes_end;u!==null;){var d=u===l?null:Xr(u);n.append(u),u=d}}function Mv(i,n,u){const l=ao()?uo:Le;if(n.length===0){u(i.map(l));return}var d=Et,m=He,p=n0(),g=Ue;Promise.all(n.map(v=>i0(v))).then(v=>{p();try{u([...i.map(l),...v])}catch(b){(m.f&Vn)===0&&yi(b,m)}g&&cr(!1),d?.deactivate(),Dv()}).catch(v=>{yi(v,m)})}function n0(){var i=He,n=at,u=St,l=Et,d=Ue;if(d)var m=Je;return function(){Pr(i),mr(n),bi(u),l?.activate(),d&&(cr(!0),Ht(m))}}function Dv(){Pr(null),mr(null),bi(null)}function uo(i){var n=Zt|$r,u=at!==null&&(at.f&Zt)!==0?at:null;return He===null||u!==null&&(u.f&Or)!==0?n|=Or:He.f|=Yn,{ctx:St,deps:null,effects:null,equals:xv,f:n,fn:i,reactions:null,rv:0,v:Ft,wv:0,parent:u??He,ac:null}}function i0(i,n){let u=He;u===null&&Pk();var l=u.b,d=void 0,m=_n(Ft),p=!at,g=new Map;return m0(()=>{var v=vi();d=v.promise;try{Promise.resolve(i()).then(v.resolve,v.reject)}catch(h){v.reject(h)}var b=Et,y=l.is_pending();p&&(l.update_pending_count(1),y||(b.increment(),g.get(b)?.reject(oo),g.set(b,v)));const _=(h,S=void 0)=>{y||b.activate(),S?S!==oo&&(m.f|=Kn,$i(m,S)):((m.f&Kn)!==0&&(m.f^=Kn),$i(m,h)),p&&(l.update_pending_count(-1),y||b.decrement()),Dv()};v.promise.then(_,h=>_(null,h||"unknown"))}),vl(()=>{for(const v of g.values())v.reject(oo)}),new Promise(v=>{function b(y){function _(){y===d?v(m):b(d)}y.then(_,_)}b(d)})}function ct(i){const n=uo(i);return sh(n),n}function Le(i){const n=uo(i);return n.equals=Iv,n}function Uv(i){var n=i.effects;if(n!==null){i.effects=null;for(var u=0;u<n.length;u+=1)Xt(n[u])}}function o0(i){for(var n=i.parent;n!==null;){if((n.f&Zt)===0)return n;n=n.parent}return null}function ml(i){var n,u=He;Pr(o0(i));try{Uv(i),n=fh(i)}finally{Pr(u)}return n}function Lv(i){var n=ml(i);if(i.equals(n)||(i.v=n,i.wv=ch()),!ni){var u=(In||(i.f&Or)!==0)&&i.deps!==null?sn:nr;ar(i,u)}}const wn=new Map;function _n(i,n){var u={f:0,v:i,reactions:null,equals:xv,rv:0,wv:0};return u}function Fr(i,n){const u=_n(i);return sh(u),u}function X(i,n=!1,u=!0){const l=_n(i);return n||(l.equals=Iv),t&&u&&St!==null&&St.l!==null&&(St.l.s??=[]).push(l),l}function Av(i,n){return $(i,C(()=>c(i))),n}function $(i,n,u=!1){at!==null&&(!Qr||(at.f&wv)!==0)&&ao()&&(at.f&(Zt|Jn|ya|wv))!==0&&!cn?.includes(i)&&qk();let l=u?kn(n):n;return $i(i,l)}function $i(i,n){if(!i.equals(n)){var u=i.v;ni?wn.set(i,n):wn.set(i,u),i.v=n;var l=qr.ensure();l.capture(i,u),(i.f&Zt)!==0&&((i.f&$r)!==0&&ml(i),ar(i,(i.f&Or)===0?nr:sn)),i.wv=ch(),Rv(i,$r),ao()&&He!==null&&(He.f&nr)!==0&&(He.f&(an|$n))===0&&(Cr===null?v0([i]):Cr.push(i))}return n}function Zv(i,n=1){var u=c(i),l=n===1?u++:u--;return $(i,u),l}function lo(i){$(i,i.v+1)}function Rv(i,n){var u=i.reactions;if(u!==null)for(var l=ao(),d=u.length,m=0;m<d;m++){var p=u[m],g=p.f;if(!(!l&&p===He)){var v=(g&$r)===0;v&&ar(p,n),(g&Zt)!==0?Rv(p,sn):v&&((g&Jn)!==0&&ei!==null&&ei.push(p),ti(p))}}}function kn(i){if(typeof i!="object"||i===null||Kr in i)return i;const n=Ve(i);if(n!==io&&n!==ve)return i;var u=new Map,l=yn(i),d=Fr(0),m=ii,p=g=>{if(ii===m)return g();var v=at,b=ii;mr(null),lh(m);var y=g();return mr(v),lh(b),y};return l&&u.set("length",Fr(i.length)),new Proxy(i,{defineProperty(g,v,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Zk();var y=u.get(v);return y===void 0?y=p(()=>{var _=Fr(b.value);return u.set(v,_),_}):$(y,b.value,!0),!0},deleteProperty(g,v){var b=u.get(v);if(b===void 0){if(v in g){const y=p(()=>Fr(Ft));u.set(v,y),lo(d)}}else $(b,Ft),lo(d);return!0},get(g,v,b){if(v===Kr)return i;var y=u.get(v),_=v in g;if(y===void 0&&(!_||jr(g,v)?.writable)&&(y=p(()=>{var S=kn(_?g[v]:Ft),x=Fr(S);return x}),u.set(v,y)),y!==void 0){var h=c(y);return h===Ft?void 0:h}return Reflect.get(g,v,b)},getOwnPropertyDescriptor(g,v){var b=Reflect.getOwnPropertyDescriptor(g,v);if(b&&"value"in b){var y=u.get(v);y&&(b.value=c(y))}else if(b===void 0){var _=u.get(v),h=_?.v;if(_!==void 0&&h!==Ft)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return b},has(g,v){if(v===Kr)return!0;var b=u.get(v),y=b!==void 0&&b.v!==Ft||Reflect.has(g,v);if(b!==void 0||He!==null&&(!y||jr(g,v)?.writable)){b===void 0&&(b=p(()=>{var h=y?kn(g[v]):Ft,S=Fr(h);return S}),u.set(v,b));var _=c(b);if(_===Ft)return!1}return y},set(g,v,b,y){var _=u.get(v),h=v in g;if(l&&v==="length")for(var S=b;S<_.v;S+=1){var x=u.get(S+"");x!==void 0?$(x,Ft):S in g&&(x=p(()=>Fr(Ft)),u.set(S+"",x))}if(_===void 0)(!h||jr(g,v)?.writable)&&(_=p(()=>Fr(void 0)),$(_,kn(b)),u.set(v,_));else{h=_.v!==Ft;var T=p(()=>kn(b));$(_,T)}var P=Reflect.getOwnPropertyDescriptor(g,v);if(P?.set&&P.set.call(y,b),!h){if(l&&typeof v=="string"){var J=u.get("length"),ie=Number(v);Number.isInteger(ie)&&ie>=J.v&&$(J,ie+1)}lo(d)}return!0},ownKeys(g){c(d);var v=Reflect.ownKeys(g).filter(_=>{var h=u.get(_);return h===void 0||h.v!==Ft});for(var[b,y]of u)y.v!==Ft&&!(b in g)&&v.push(b);return v},setPrototypeOf(){Rk()}})}function qv(i){try{if(i!==null&&typeof i=="object"&&Kr in i)return i[Kr]}catch{}return i}function a0(i,n){return Object.is(qv(i),qv(n))}var Fv,Wv,Gv,Qv;function pl(){if(Fv===void 0){Fv=window,Wv=/Firefox/.test(navigator.userAgent);var i=Element.prototype,n=Node.prototype,u=Text.prototype;Gv=jr(n,"firstChild").get,Qv=jr(n,"nextSibling").get,jt(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),jt(u)&&(u.__t=void 0)}}function Er(i=""){return document.createTextNode(i)}function Wr(i){return Gv.call(i)}function Xr(i){return Qv.call(i)}function Z(i,n){if(!Ue)return Wr(i);var u=Wr(Je);if(u===null)u=Je.appendChild(Er());else if(n&&u.nodeType!==$a){var l=Er();return u?.before(l),Ht(l),l}return Ht(u),u}function je(i,n=!1){if(!Ue){var u=Wr(i);return u instanceof Comment&&u.data===""?Xr(u):u}if(n&&Je?.nodeType!==$a){var l=Er();return Je?.before(l),Ht(l),l}return Je}function pe(i,n=1,u=!1){let l=Ue?Je:i;for(var d;n--;)d=l,l=Xr(l);if(!Ue)return l;if(u&&l?.nodeType!==$a){var m=Er();return l===null?d?.after(m):l.before(m),Ht(m),m}return Ht(l),l}function gl(i){i.textContent=""}function Jv(){return!1}function s0(i,n){if(n){const u=document.body;i.autofocus=!0,ln(()=>{document.activeElement===u&&i.focus()})}}function u0(i){Ue&&Wr(i)!==null&&gl(i)}let Vv=!1;function Bv(){Vv||(Vv=!0,document.addEventListener("reset",i=>{Promise.resolve().then(()=>{if(!i.defaultPrevented)for(const n of i.target.elements)n.__on_r?.()})},{capture:!0}))}function za(i){var n=at,u=He;mr(null),Pr(null);try{return i()}finally{mr(n),Pr(u)}}function Yv(i,n,u,l=u){i.addEventListener(n,()=>za(u));const d=i.__on_r;d?i.__on_r=()=>{d(),l(!0)}:i.__on_r=()=>l(!0),Bv()}function Kv(i){He===null&&at===null&&Dk(),at!==null&&(at.f&Or)!==0&&He===null&&Mk(),ni&&Ck()}function l0(i,n){var u=n.last;u===null?n.last=n.first=i:(u.next=i,i.prev=u,n.last=i)}function Gr(i,n,u,l=!0){var d=He;d!==null&&(d.f&Rr)!==0&&(i|=Rr);var m={ctx:St,deps:null,nodes_start:null,nodes_end:null,f:i|$r,first:null,fn:n,last:null,next:null,parent:d,b:d&&d.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(u)try{_i(m),m.f|=ol}catch(v){throw Xt(m),v}else n!==null&&ti(m);if(l){var p=m;if(u&&p.deps===null&&p.teardown===null&&p.nodes_start===null&&p.first===p.last&&(p.f&Yn)===0&&(p=p.first),p!==null&&(p.parent=d,d!==null&&l0(p,d),at!==null&&(at.f&Zt)!==0&&(i&$n)===0)){var g=at;(g.effects??=[]).push(p)}}return m}function c0(){return at!==null&&!Qr}function vl(i){const n=Gr(hi,null,!1);return ar(n,nr),n.teardown=i,n}function co(i){Kv();var n=He.f,u=!at&&(n&an)!==0&&(n&ol)===0;if(u){var l=St;(l.e??=[]).push(i)}else return Hv(i)}function Hv(i){return Gr(Qn|_v,i,!1)}function Xv(i){return Kv(),Gr(hi|_v,i,!0)}function d0(i){qr.ensure();const n=Gr($n|Yn,i,!0);return()=>{Xt(n)}}function f0(i){qr.ensure();const n=Gr($n|Yn,i,!0);return(u={})=>new Promise(l=>{u.outro?Sn(n,()=>{Xt(n),l(void 0)}):(Xt(n),l(void 0))})}function hl(i){return Gr(Qn,i,!1)}function be(i,n){var u=St,l={effect:null,ran:!1,deps:i};u.l.$.push(l),l.effect=ri(()=>{i(),!l.ran&&(l.ran=!0,C(n))})}function dr(){var i=St;ri(()=>{for(var n of i.l.$){n.deps();var u=n.effect;(u.f&nr)!==0&&ar(u,sn),mo(u)&&_i(u),n.ran=!1}})}function m0(i){return Gr(ya|Yn,i,!0)}function ri(i,n=0){return Gr(hi|n,i,!0)}function Ie(i,n=[],u=[]){Mv(n,u,l=>{Gr(hi,()=>i(...l.map(c)),!0)})}function xn(i,n=0){var u=Gr(Jn|n,i,!0);return u}function ir(i,n=!0){return Gr(an|Yn,i,!0,n)}function eh(i){var n=i.teardown;if(n!==null){const u=ni,l=at;ah(!0),mr(null);try{n.call(null)}finally{ah(u),mr(l)}}}function th(i,n=!1){var u=i.first;for(i.first=i.last=null;u!==null;){const d=u.ac;d!==null&&za(()=>{d.abort(oo)});var l=u.next;(u.f&$n)!==0?u.parent=null:Xt(u,n),u=l}}function p0(i){for(var n=i.first;n!==null;){var u=n.next;(n.f&an)===0&&Xt(n),n=u}}function Xt(i,n=!0){var u=!1;(n||(i.f&Tk)!==0)&&i.nodes_start!==null&&i.nodes_end!==null&&(g0(i.nodes_start,i.nodes_end),u=!0),th(i,n&&!u),ja(i,0),ar(i,Vn);var l=i.transitions;if(l!==null)for(const m of l)m.stop();eh(i);var d=i.parent;d!==null&&d.first!==null&&rh(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes_start=i.nodes_end=i.ac=null}function g0(i,n){for(;i!==null;){var u=i===n?null:Xr(i);i.remove(),i=u}}function rh(i){var n=i.parent,u=i.prev,l=i.next;u!==null&&(u.next=l),l!==null&&(l.prev=u),n!==null&&(n.first===i&&(n.first=l),n.last===i&&(n.last=u))}function Sn(i,n){var u=[];bl(i,u,!0),nh(u,()=>{Xt(i),n&&n()})}function nh(i,n){var u=i.length;if(u>0){var l=()=>--u||n();for(var d of i)d.out(l)}else n()}function bl(i,n,u){if((i.f&Rr)===0){if(i.f^=Rr,i.transitions!==null)for(const p of i.transitions)(p.is_global||u)&&n.push(p);for(var l=i.first;l!==null;){var d=l.next,m=(l.f&Bn)!==0||(l.f&an)!==0;bl(l,n,m?u:!1),l=d}}}function Na(i){ih(i,!0)}function ih(i,n){if((i.f&Rr)!==0){i.f^=Rr,(i.f&nr)===0&&(ar(i,$r),ti(i));for(var u=i.first;u!==null;){var l=u.next,d=(u.f&Bn)!==0||(u.f&an)!==0;ih(u,d?n:!1),u=l}if(i.transitions!==null)for(const m of i.transitions)(m.is_global||n)&&m.in()}}let wi=!1;function oh(i){wi=i}let ni=!1;function ah(i){ni=i}let at=null,Qr=!1;function mr(i){at=i}let He=null;function Pr(i){He=i}let cn=null;function sh(i){at!==null&&(cn===null?cn=[i]:cn.push(i))}let fr=null,_r=0,Cr=null;function v0(i){Cr=i}let uh=1,fo=0,ii=fo;function lh(i){ii=i}let In=!1;function ch(){return++uh}function mo(i){var n=i.f;if((n&$r)!==0)return!0;if((n&sn)!==0){var u=i.deps,l=(n&Or)!==0;if(u!==null){var d,m,p=(n&ba)!==0,g=l&&He!==null&&!In,v=u.length;if((p||g)&&(He===null||(He.f&Vn)===0)){var b=i,y=b.parent;for(d=0;d<v;d++)m=u[d],(p||!m?.reactions?.includes(b))&&(m.reactions??=[]).push(b);p&&(b.f^=ba),g&&y!==null&&(y.f&Or)===0&&(b.f^=Or)}for(d=0;d<v;d++)if(m=u[d],mo(m)&&Lv(m),m.wv>i.wv)return!0}(!l||He!==null&&!In)&&ar(i,nr)}return!1}function dh(i,n,u=!0){var l=i.reactions;if(l!==null&&!cn?.includes(i))for(var d=0;d<l.length;d++){var m=l[d];(m.f&Zt)!==0?dh(m,n,!1):n===m&&(u?ar(m,$r):(m.f&nr)!==0&&ar(m,sn),ti(m))}}function fh(i){var n=fr,u=_r,l=Cr,d=at,m=In,p=cn,g=St,v=Qr,b=ii,y=i.f;fr=null,_r=0,Cr=null,In=(y&Or)!==0&&(Qr||!wi||at===null),at=(y&(an|$n))===0?i:null,cn=null,bi(i.ctx),Qr=!1,ii=++fo,i.ac!==null&&(za(()=>{i.ac.abort(oo)}),i.ac=null);try{i.f|=al;var _=i.fn,h=_(),S=i.deps;if(fr!==null){var x;if(ja(i,_r),S!==null&&_r>0)for(S.length=_r+fr.length,x=0;x<fr.length;x++)S[_r+x]=fr[x];else i.deps=S=fr;if(!In||(y&Zt)!==0&&i.reactions!==null)for(x=_r;x<S.length;x++)(S[x].reactions??=[]).push(i)}else S!==null&&_r<S.length&&(ja(i,_r),S.length=_r);if(ao()&&Cr!==null&&!Qr&&S!==null&&(i.f&(Zt|sn|$r))===0)for(x=0;x<Cr.length;x++)dh(Cr[x],i);return d!==null&&d!==i&&(fo++,Cr!==null&&(l===null?l=Cr:l.push(...Cr))),(i.f&Kn)!==0&&(i.f^=Kn),h}catch(T){return jv(T)}finally{i.f^=al,fr=n,_r=u,Cr=l,at=d,In=m,cn=p,bi(g),Qr=v,ii=b}}function h0(i,n){let u=n.reactions;if(u!==null){var l=nl.call(u,i);if(l!==-1){var d=u.length-1;d===0?u=n.reactions=null:(u[l]=u[d],u.pop())}}u===null&&(n.f&Zt)!==0&&(fr===null||!fr.includes(n))&&(ar(n,sn),(n.f&(Or|ba))===0&&(n.f^=ba),Uv(n),ja(n,0))}function ja(i,n){var u=i.deps;if(u!==null)for(var l=n;l<u.length;l++)h0(i,u[l])}function _i(i){var n=i.f;if((n&Vn)===0){ar(i,nr);var u=He,l=wi;He=i,wi=!0;try{(n&Jn)!==0?p0(i):th(i),eh(i);var d=fh(i);i.teardown=typeof d=="function"?d:null,i.wv=uh;var m;ro&&a&&(i.f&$r)!==0&&i.deps}finally{wi=l,He=u}}}async function b0(){await Promise.resolve(),lt()}function c(i){var n=i.f,u=(n&Zt)!==0;if(at!==null&&!Qr){var l=He!==null&&(He.f&Vn)!==0;if(!l&&!cn?.includes(i)){var d=at.deps;if((at.f&al)!==0)i.rv<fo&&(i.rv=fo,fr===null&&d!==null&&d[_r]===i?_r++:fr===null?fr=[i]:(!In||!fr.includes(i))&&fr.push(i));else{(at.deps??=[]).push(i);var m=i.reactions;m===null?i.reactions=[at]:m.includes(at)||m.push(at)}}}else if(u&&i.deps===null&&i.effects===null){var p=i,g=p.parent;g!==null&&(g.f&Or)===0&&(p.f^=Or)}if(ni){if(wn.has(i))return wn.get(i);if(u){p=i;var v=p.v;return((p.f&nr)===0&&p.reactions!==null||mh(p))&&(v=ml(p)),wn.set(p,v),v}}else u&&(p=i,mo(p)&&Lv(p));if((i.f&Kn)!==0)throw i.v;return i.v}function mh(i){if(i.v===Ft)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(wn.has(n)||(n.f&Zt)!==0&&mh(n))return!0;return!1}function C(i){var n=Qr;try{return Qr=!0,i()}finally{Qr=n}}const y0=-7169;function ar(i,n){i.f=i.f&y0|n}function z(i){if(!(typeof i!="object"||!i||i instanceof EventTarget)){if(Kr in i)yl(i);else if(!Array.isArray(i))for(let n in i){const u=i[n];typeof u=="object"&&u&&Kr in u&&yl(u)}}}function yl(i,n=new Set){if(typeof i=="object"&&i!==null&&!(i instanceof EventTarget)&&!n.has(i)){n.add(i),i instanceof Date&&i.getTime();for(let l in i)try{yl(i[l],n)}catch{}const u=Ve(i);if(u!==Object.prototype&&u!==Array.prototype&&u!==Map.prototype&&u!==Set.prototype&&u!==Date.prototype){const l=no(u);for(let d in l){const m=l[d].get;if(m)try{m.call(i)}catch{}}}}}const ph=new Set,$l=new Set;function gh(i,n,u,l={}){function d(m){if(l.capture||po.call(n,m),!m.cancelBubble)return za(()=>u?.call(this,m))}return i.startsWith("pointer")||i.startsWith("touch")||i==="wheel"?ln(()=>{n.addEventListener(i,d,l)}):n.addEventListener(i,d,l),d}function vh(i,n,u,l={}){var d=gh(n,i,u,l);return()=>{i.removeEventListener(n,d,l)}}function wl(i){for(var n=0;n<i.length;n++)ph.add(i[n]);for(var u of $l)u(i)}let hh=null;function po(i){var n=this,u=n.ownerDocument,l=i.type,d=i.composedPath?.()||[],m=d[0]||i.target;hh=i;var p=0,g=hh===i&&i.__root;if(g){var v=d.indexOf(g);if(v!==-1&&(n===document||n===window)){i.__root=n;return}var b=d.indexOf(n);if(b===-1)return;v<=b&&(p=v)}if(m=d[p]||i.target,m!==n){Yr(i,"currentTarget",{configurable:!0,get(){return m||u}});var y=at,_=He;mr(null),Pr(null);try{for(var h,S=[];m!==null;){var x=m.assignedSlot||m.parentNode||m.host||null;try{var T=m["__"+l];if(T!=null&&(!m.disabled||i.target===m))if(yn(T)){var[P,...J]=T;P.apply(m,[i,...J])}else T.call(m,i)}catch(ie){h?S.push(ie):h=ie}if(i.cancelBubble||x===n||x===null)break;m=x}if(h){for(let ie of S)queueMicrotask(()=>{throw ie});throw h}}finally{i.__root=n,delete i.currentTarget,mr(y),Pr(_)}}}function bh(i){var n=document.createElement("template");return n.innerHTML=i.replaceAll("<!>","<!---->"),n.content}function Jr(i,n){var u=He;u.nodes_start===null&&(u.nodes_start=i,u.nodes_end=n)}function ee(i,n){var u=(n&pt)!==0,l=(n&ut)!==0,d,m=!i.startsWith("<!>");return()=>{if(Ue)return Jr(Je,null),Je;d===void 0&&(d=bh(m?i:"<!>"+i),u||(d=Wr(d)));var p=l||Wv?document.importNode(d,!0):d.cloneNode(!0);if(u){var g=Wr(p),v=p.lastChild;Jr(g,v)}else Jr(p,p);return p}}function $0(i,n,u="svg"){var l=!i.startsWith("<!>"),d=`<${u}>${l?i:"<!>"+i}</${u}>`,m;return()=>{if(Ue)return Jr(Je,null),Je;if(!m){var p=bh(d),g=Wr(p);m=Wr(g)}var v=m.cloneNode(!0);return Jr(v,v),v}}function zn(i,n){return $0(i,n,"svg")}function Nn(i=""){if(!Ue){var n=Er(i+"");return Jr(n,n),n}var u=Je;return u.nodeType!==$a&&(u.before(u=Er()),Ht(u)),Jr(u,u),u}function qe(){if(Ue)return Jr(Je,null),Je;var i=document.createDocumentFragment(),n=document.createComment(""),u=Er();return i.append(n,u),Jr(n,u),i}function j(i,n){if(Ue){He.nodes_end=Je,un();return}i!==null&&i.before(n)}function Ta(){if(Ue&&Je&&Je.nodeType===Hn&&Je.textContent?.startsWith("$")){const i=Je.textContent.substring(1);return un(),i}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function w0(i){return i.endsWith("capture")&&i!=="gotpointercapture"&&i!=="lostpointercapture"}const _0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function k0(i){return _0.includes(i)}const x0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function S0(i){return i=i.toLowerCase(),x0[i]??i}const I0=["touchstart","touchmove"];function z0(i){return I0.includes(i)}const N0=["textarea","script","style","title"];function j0(i){return N0.includes(i)}function Te(i,n){var u=n==null?"":typeof n=="object"?n+"":n;u!==(i.__t??=i.nodeValue)&&(i.__t=u,i.nodeValue=u+"")}function yh(i,n){return $h(i,n)}function T0(i,n){pl(),n.intro=n.intro??!1;const u=n.target,l=Ue,d=Je;try{for(var m=Wr(u);m&&(m.nodeType!==Hn||m.data!==dt);)m=Xr(m);if(!m)throw Br;cr(!0),Ht(m);const p=$h(i,{...n,anchor:m});return cr(!1),p}catch(p){if(p instanceof Error&&p.message.split(`
|
|
45
|
-
`).some(g=>g.startsWith("https://svelte.dev/e/")))throw p;return p!==Br&&console.warn("Failed to hydrate: ",p),n.recover===!1&&
|
|
46
|
-
\r\f \v\uFEFF`];function A0(i,n,u){var l=i==null?"":""+i;if(u){for(var d in u)if(u[d])l=l?l+" "+d:d;else if(l.length)for(var m=d.length,p=0;(p=l.indexOf(d,p))>=0;){var g=p+m;(p===0||xh.includes(l[p-1]))&&(g===l.length||xh.includes(l[g]))?l=(p===0?"":l.substring(0,p))+l.substring(g+1):p=g}}return l===""?null:l}function Sh(i,n=!1){var u=n?" !important;":";",l="";for(var d in i){var m=i[d];m!=null&&m!==""&&(l+=" "+d+": "+m+u)}return l}function xl(i){return i[0]!=="-"||i[1]!=="-"?i.toLowerCase():i}function Z0(i,n){if(n){var u="",l,d;if(Array.isArray(n)?(l=n[0],d=n[1]):l=n,i){i=String(i).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var m=!1,p=0,g=!1,v=[];l&&v.push(...Object.keys(l).map(xl)),d&&v.push(...Object.keys(d).map(xl));var b=0,y=-1;const T=i.length;for(var _=0;_<T;_++){var h=i[_];if(g?h==="/"&&i[_-1]==="*"&&(g=!1):m?m===h&&(m=!1):h==="/"&&i[_+1]==="*"?g=!0:h==='"'||h==="'"?m=h:h==="("?p++:h===")"&&p--,!g&&m===!1&&p===0){if(h===":"&&y===-1)y=_;else if(h===";"||_===T-1){if(y!==-1){var S=xl(i.substring(b,y).trim());if(!v.includes(S)){h!==";"&&_++;var x=i.substring(b,_).trim();u+=" "+x+";"}}b=_+1,y=-1}}}}return l&&(u+=Sh(l)),d&&(u+=Sh(d,!0)),u=u.trim(),u===""?null:u}return i==null?null:String(i)}function dn(i,n,u,l,d,m){var p=i.__className;if(Ue||p!==u||p===void 0){var g=A0(u,l,m);(!Ue||g!==i.getAttribute("class"))&&(g==null?i.removeAttribute("class"):n?i.className=g:i.setAttribute("class",g)),i.__className=u}else if(m&&d!==m)for(var v in m){var b=!!m[v];(d==null||b!==!!d[v])&&i.classList.toggle(v,b)}return m}function Sl(i,n={},u,l){for(var d in u){var m=u[d];n[d]!==m&&(u[d]==null?i.style.removeProperty(d):i.style.setProperty(d,m,l))}}function ho(i,n,u,l){var d=i.__style;if(Ue||d!==n){var m=Z0(n,l);(!Ue||m!==i.getAttribute("style"))&&(m==null?i.removeAttribute("style"):i.style.cssText=m),i.__style=n}else l&&(Array.isArray(l)?(Sl(i,u?.[0],l[0]),Sl(i,u?.[1],l[1],"important")):Sl(i,u,l));return l}function Il(i,n,u=!1){if(i.multiple){if(n==null)return;if(!yn(n))return Wk();for(var l of i.options)l.selected=n.includes(Ih(l));return}for(l of i.options){var d=Ih(l);if(a0(d,n)){l.selected=!0;return}}(!u||n!==void 0)&&(i.selectedIndex=-1)}function R0(i){var n=new MutationObserver(()=>{Il(i,i.__value)});n.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),vl(()=>{n.disconnect()})}function Ih(i){return"__value"in i?i.__value:i.value}const bo=Symbol("class"),yo=Symbol("style"),zh=Symbol("is custom element"),Nh=Symbol("is html");function q0(i){if(Ue){var n=!1,u=()=>{if(!n){if(n=!0,i.hasAttribute("value")){var l=i.value;oi(i,"value",null),i.value=l}if(i.hasAttribute("checked")){var d=i.checked;oi(i,"checked",null),i.checked=d}}};i.__on_r=u,ln(u),Bv()}}function F0(i,n){n?i.hasAttribute("selected")||i.setAttribute("selected",""):i.removeAttribute("selected")}function oi(i,n,u,l){var d=jh(i);Ue&&(d[n]=i.getAttribute(n),n==="src"||n==="srcset"||n==="href"&&i.nodeName==="LINK")||d[n]!==(d[n]=u)&&(n==="loading"&&(i[Ok]=u),u==null?i.removeAttribute(n):typeof u!="string"&&Oh(i).includes(n)?i[n]=u:i.setAttribute(n,u))}function W0(i,n,u,l,d=!1,m=!1){if(Ue&&d&&i.tagName==="INPUT"){var p=i,g=p.type==="checkbox"?"defaultChecked":"defaultValue";g in u||q0(p)}var v=jh(i),b=v[zh],y=!v[Nh];let _=Ue&&b;_&&cr(!1);var h=n||{},S=i.tagName==="OPTION";for(var x in n)x in u||(u[x]=null);u.class?u.class=L0(u.class):u[bo]&&(u.class=null),u[yo]&&(u.style??=null);var T=Oh(i);for(const q in u){let Q=u[q];if(S&&q==="value"&&Q==null){i.value=i.__value="",h[q]=Q;continue}if(q==="class"){var P=i.namespaceURI==="http://www.w3.org/1999/xhtml";dn(i,P,Q,l,n?.[bo],u[bo]),h[q]=Q,h[bo]=u[bo];continue}if(q==="style"){ho(i,Q,n?.[yo],u[yo]),h[q]=Q,h[yo]=u[yo];continue}var J=h[q];if(!(Q===J&&!(Q===void 0&&i.hasAttribute(q)))){h[q]=Q;var ie=q[0]+q[1];if(ie!=="$$")if(ie==="on"){const Y={},$e="$$"+q;let Oe=q.slice(2);var G=k0(Oe);if(w0(Oe)&&(Oe=Oe.slice(0,-7),Y.capture=!0),!G&&J){if(Q!=null)continue;i.removeEventListener(Oe,h[$e],Y),h[$e]=null}if(Q!=null)if(G)i[`__${Oe}`]=Q,wl([Oe]);else{let ke=function(de){h[q].call(this,de)};h[$e]=gh(Oe,i,ke,Y)}else G&&(i[`__${Oe}`]=void 0)}else if(q==="style")oi(i,q,Q);else if(q==="autofocus")s0(i,!!Q);else if(!b&&(q==="__value"||q==="value"&&Q!=null))i.value=i.__value=Q;else if(q==="selected"&&S)F0(i,Q);else{var V=q;y||(V=S0(V));var W=V==="defaultValue"||V==="defaultChecked";if(Q==null&&!b&&!W)if(v[q]=null,V==="value"||V==="checked"){let Y=i;const $e=n===void 0;if(V==="value"){let Oe=Y.defaultValue;Y.removeAttribute(V),Y.defaultValue=Oe,Y.value=Y.__value=$e?Oe:null}else{let Oe=Y.defaultChecked;Y.removeAttribute(V),Y.defaultChecked=Oe,Y.checked=$e?Oe:!1}}else i.removeAttribute(q);else W||T.includes(V)&&(b||typeof Q!="string")?(i[V]=Q,V in v&&(v[V]=Ft)):typeof Q!="function"&&oi(i,V,Q)}}}return _&&cr(!0),h}function Wt(i,n,u=[],l=[],d,m=!1,p=!1){Mv(u,l,g=>{var v=void 0,b={},y=i.nodeName==="SELECT",_=!1;if(xn(()=>{var S=n(...g.map(c)),x=W0(i,v,S,d,m,p);_&&y&&"value"in S&&Il(i,S.value);for(let P of Object.getOwnPropertySymbols(b))S[P]||Xt(b[P]);for(let P of Object.getOwnPropertySymbols(S)){var T=S[P];P.description===ha&&(!v||T!==v[P])&&(b[P]&&Xt(b[P]),b[P]=ir(()=>U0(i,()=>T))),x[P]=T}v=x}),y){var h=i;hl(()=>{Il(h,v.value,!0),R0(h)})}_=!0})}function jh(i){return i.__attributes??={[zh]:i.nodeName.includes("-"),[Nh]:i.namespaceURI===va}}var Th=new Map;function Oh(i){var n=i.getAttribute("is")||i.nodeName,u=Th.get(n);if(u)return u;Th.set(n,u=[]);for(var l,d=i,m=Element.prototype;m!==d;){l=no(d);for(var p in l)l[p].set&&u.push(p);d=Ve(d)}return u}function Ea(i,n,u=n){var l=new WeakSet;Yv(i,"input",async d=>{var m=d?i.defaultValue:i.value;if(m=zl(i)?Nl(m):m,u(m),Et!==null&&l.add(Et),await b0(),m!==(m=n())){var p=i.selectionStart,g=i.selectionEnd,v=i.value.length;if(i.value=m??"",g!==null){var b=i.value.length;p===g&&g===v&&b>v?(i.selectionStart=b,i.selectionEnd=b):(i.selectionStart=p,i.selectionEnd=Math.min(g,b))}}}),(Ue&&i.defaultValue!==i.value||C(n)==null&&i.value)&&(u(zl(i)?Nl(i.value):i.value),Et!==null&&l.add(Et)),ri(()=>{var d=n();if(i===document.activeElement){var m=Sa??Et;if(l.has(m))return}zl(i)&&d===Nl(i.value)||i.type==="date"&&!d&&!i.value||d!==i.value&&(i.value=d??"")})}function zl(i){var n=i.type;return n==="number"||n==="range"}function Nl(i){return i===""?null:+i}function G0(i,n,u=n){Yv(i,"change",()=>{u(i.files)}),Ue&&i.files&&u(i.files),ri(()=>{i.files=n()})}function Eh(i,n){return i===n||i?.[Kr]===n}function Mr(i={},n,u,l){return hl(()=>{var d,m;return ri(()=>{d=m,m=[],C(()=>{i!==u(...m)&&(n(i,...m),d&&Eh(u(...d),i)&&n(null,...d))})}),()=>{ln(()=>{m&&Eh(u(...m),i)&&n(null,...m)})}}),i}function er(i=!1){const n=St,u=n.l.u;if(!u)return;let l=()=>z(n.s);if(i){let d=0,m={};const p=uo(()=>{let g=!1;const v=n.s;for(const b in v)v[b]!==m[b]&&(m[b]=v[b],g=!0);return g&&d++,d});l=()=>c(p)}u.b.length&&Xv(()=>{Ph(n,l),Gn(u.b)}),co(()=>{const d=C(()=>u.m.map(Tr));return()=>{for(const m of d)typeof m=="function"&&m()}}),u.a.length&&co(()=>{Ph(n,l),Gn(u.a)})}function Ph(i,n){if(i.l.s)for(const u of i.l.s)c(u);n()}function Ch(i,n,u){if(i==null)return n(void 0),gt;const l=C(()=>i.subscribe(n,u));return l.unsubscribe?()=>l.unsubscribe():l}const xi=[];function Q0(i,n=gt){let u=null;const l=new Set;function d(g){if(Sv(i,g)&&(i=g,u)){const v=!xi.length;for(const b of l)b[1](),xi.push(b,i);if(v){for(let b=0;b<xi.length;b+=2)xi[b][0](xi[b+1]);xi.length=0}}}function m(g){d(g(i))}function p(g,v=gt){const b=[g,v];return l.add(b),l.size===1&&(u=n(d,m)||gt),g(i),()=>{l.delete(b),l.size===0&&u&&(u(),u=null)}}return{set:d,update:m,subscribe:p}}function $o(i){let n;return Ch(i,u=>n=u)(),n}let Pa=!1,jl=Symbol();function J0(i,n,u){const l=u[n]??={store:null,source:X(void 0),unsubscribe:gt};if(l.store!==i&&!(jl in u))if(l.unsubscribe(),l.store=i??null,i==null)l.source.v=void 0,l.unsubscribe=gt;else{var d=!0;l.unsubscribe=Ch(i,m=>{d?l.source.v=m:$(l.source,m)}),d=!1}return i&&jl in u?$o(i):c(l.source)}function V0(){const i={};function n(){vl(()=>{for(var u in i)i[u].unsubscribe();Yr(i,jl,{enumerable:!1,value:!0})})}return[i,n]}function B0(i){var n=Pa;try{return Pa=!1,[i(),Pa]}finally{Pa=n}}const Y0={get(i,n){if(!i.exclude.includes(n))return i.props[n]},set(i,n){return!1},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function At(i,n,u){return new Proxy({props:i,exclude:n},Y0)}const K0={get(i,n){if(!i.exclude.includes(n))return c(i.version),n in i.special?i.special[n]():i.props[n]},set(i,n,u){if(!(n in i.special)){var l=He;try{Pr(i.parent_effect),i.special[n]=w({get[n](){return i.props[n]}},n,H)}finally{Pr(l)}}return i.special[n](u),Zv(i.version),!0},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},deleteProperty(i,n){return i.exclude.includes(n)||(i.exclude.push(n),Zv(i.version)),!0},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function fn(i,n){return new Proxy({props:i,exclude:n,special:{},version:_n(0),parent_effect:He},K0)}const H0={get(i,n){let u=i.props.length;for(;u--;){let l=i.props[u];if(Lt(l)&&(l=l()),typeof l=="object"&&l!==null&&n in l)return l[n]}},set(i,n,u){let l=i.props.length;for(;l--;){let d=i.props[l];Lt(d)&&(d=d());const m=jr(d,n);if(m&&m.set)return m.set(u),!0}return!1},getOwnPropertyDescriptor(i,n){let u=i.props.length;for(;u--;){let l=i.props[u];if(Lt(l)&&(l=l()),typeof l=="object"&&l!==null&&n in l){const d=jr(l,n);return d&&!d.configurable&&(d.configurable=!0),d}}},has(i,n){if(n===Kr||n===sl)return!1;for(let u of i.props)if(Lt(u)&&(u=u()),u!=null&&n in u)return!0;return!1},ownKeys(i){const n=[];for(let u of i.props)if(Lt(u)&&(u=u()),!!u){for(const l in u)n.includes(l)||n.push(l);for(const l of Object.getOwnPropertySymbols(u))n.includes(l)||n.push(l)}return n}};function Ot(...i){return new Proxy({props:i},H0)}function w(i,n,u,l){var d=!t||(u&ye)!==0,m=(u&Ne)!==0,p=(u&De)!==0,g=l,v=!0,b=()=>(v&&(v=!1,g=p?C(l):l),g),y;if(m){var _=Kr in i||sl in i;y=jr(i,n)?.set??(_&&n in i?G=>i[n]=G:void 0)}var h,S=!1;m?[h,S]=B0(()=>i[n]):h=i[n],h===void 0&&l!==void 0&&(h=b(),y&&(d&&Ak(),y(h)));var x;if(d?x=()=>{var G=i[n];return G===void 0?b():(v=!0,G)}:x=()=>{var G=i[n];return G!==void 0&&(g=void 0),G===void 0?g:G},d&&(u&H)===0)return x;if(y){var T=i.$$legacy;return(function(G,V){return arguments.length>0?((!d||!V||T||S)&&y(V?x():G),G):x()})}var P=!1,J=((u&Re)!==0?uo:Le)(()=>(P=!1,x()));m&&c(J);var ie=He;return(function(G,V){if(arguments.length>0){const W=V?c(J):d&&m?kn(G):G;return $(J,W),P=!0,g!==void 0&&(g=W),G}return ni&&P||(ie.f&Vn)!==0?J.v:c(J)})}function X0(i){return new ex(i)}class ex{#e;#t;constructor(n){var u=new Map,l=(m,p)=>{var g=X(p,!1,!1);return u.set(m,g),g};const d=new Proxy({...n.props||{},$$events:{}},{get(m,p){return c(u.get(p)??l(p,Reflect.get(m,p)))},has(m,p){return p===sl?!0:(c(u.get(p)??l(p,Reflect.get(m,p))),Reflect.has(m,p))},set(m,p,g){return $(u.get(p)??l(p,g),g),Reflect.set(m,p,g)}});this.#t=(n.hydrate?T0:yh)(n.component,{target:n.target,anchor:n.anchor,props:d,context:n.context,intro:n.intro??!1,recover:n.recover}),(!n?.props?.$$host||n.sync===!1)&<(),this.#e=d.$$events;for(const m of Object.keys(this.#t))m==="$set"||m==="$destroy"||m==="$on"||Yr(this,m,{get(){return this.#t[m]},set(p){this.#t[m]=p},enumerable:!0});this.#t.$set=m=>{Object.assign(d,m)},this.#t.$destroy=()=>{O0(this.#t)}}$set(n){this.#t.$set(n)}$on(n,u){this.#e[n]=this.#e[n]||[];const l=(...d)=>u.call(this,...d);return this.#e[n].push(l),()=>{this.#e[n]=this.#e[n].filter(d=>d!==l)}}$destroy(){this.#t.$destroy()}}let Mh;typeof HTMLElement=="function"&&(Mh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(i,n,u){super(),this.$$ctor=i,this.$$s=n,u&&this.attachShadow({mode:"open"})}addEventListener(i,n,u){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(n),this.$$c){const l=this.$$c.$on(i,n);this.$$l_u.set(n,l)}super.addEventListener(i,n,u)}removeEventListener(i,n,u){if(super.removeEventListener(i,n,u),this.$$c){const l=this.$$l_u.get(n);l&&(l(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(l){return d=>{const m=document.createElement("slot");l!=="default"&&(m.name=l),j(d,m)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},u=tx(this);for(const l of this.$$s)l in u&&(l==="default"&&!this.$$d.children?(this.$$d.children=i(l),n.default=!0):n[l]=i(l));for(const l of this.attributes){const d=this.$$g_p(l.name);d in this.$$d||(this.$$d[d]=Ca(d,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=X0({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=d0(()=>{ri(()=>{this.$$r=!0;for(const l of Wn(this.$$c)){if(!this.$$p_d[l]?.reflect)continue;this.$$d[l]=this.$$c[l];const d=Ca(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(const l in this.$$l)for(const d of this.$$l[l]){const m=this.$$c.$on(l,d);this.$$l_u.set(d,m)}this.$$l={}}}attributeChangedCallback(i,n,u){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Ca(i,u,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(i){return Wn(this.$$p_d).find(n=>this.$$p_d[n].attribute===i||!this.$$p_d[n].attribute&&n.toLowerCase()===i)||i}});function Ca(i,n,u,l){const d=u[i]?.type;if(n=d==="Boolean"&&typeof n!="boolean"?n!=null:n,!l||!u[i])return n;if(l==="toAttribute")switch(d){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(d){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function tx(i){const n={};return i.childNodes.forEach(u=>{n[u.slot||"default"]=!0}),n}function Dh(i,n,u,l,d,m){let p=class extends Mh{constructor(){super(i,u,d),this.$$p_d=n}static get observedAttributes(){return Wn(n).map(g=>(n[g].attribute||g).toLowerCase())}};return Wn(n).forEach(g=>{Yr(p.prototype,g,{get(){return this.$$c&&g in this.$$c?this.$$c[g]:this.$$d[g]},set(v){v=Ca(g,v,n),this.$$d[g]=v;var b=this.$$c;if(b){var y=jr(b,g)?.get;y?b[g]=v:b.$set({[g]:v})}}})}),l.forEach(g=>{Yr(p.prototype,g,{get(){return this.$$c?.[g]}})}),i.element=p,p}const rx={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var nx=zn("<svg><!><!></svg>");function ai(i,n){const u=fn(n,["children","$$slots","$$events","$$legacy"]),l=fn(u,["type","name","color","size","stroke","iconNode"]);Be(n,!1);let d=w(n,"type",8),m=w(n,"name",8),p=w(n,"color",8,"currentColor"),g=w(n,"size",8,24),v=w(n,"stroke",8,2),b=w(n,"iconNode",8);er();var y=nx();Wt(y,()=>({...rx[d()],...l,width:g(),height:g(),class:(z(m()),z(u),C(()=>`tabler-icon tabler-icon-${m()} ${u.class??""}`)),...d()==="filled"?{fill:p()}:{"stroke-width":v(),stroke:p()}}));var _=Z(y);pr(_,1,b,kr,(S,x)=>{var T=ct(()=>Yt(c(x),2));let P=()=>c(T)[0],J=()=>c(T)[1];var ie=qe(),G=je(ie);_h(G,P,!0,(V,W)=>{Wt(V,()=>({...J()}))}),j(S,ie)});var h=pe(_);Tn(h,n,"default",{}),D(y),j(i,y),Ye()}function Uh(i,n){const u=fn(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M9 14l-4 -4l4 -4"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"}]];ai(i,Ot({type:"outline",name:"arrow-back-up"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=qe(),g=je(p);Tn(g,n,"default",{}),j(d,p)},$$slots:{default:!0}}))}function Lh(i,n){const u=fn(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M15 6l-6 6l6 6"}]];ai(i,Ot({type:"outline",name:"chevron-left"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=qe(),g=je(p);Tn(g,n,"default",{}),j(d,p)},$$slots:{default:!0}}))}function Ma(i,n){const u=fn(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M9 6l6 6l-6 6"}]];ai(i,Ot({type:"outline",name:"chevron-right"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=qe(),g=je(p);Tn(g,n,"default",{}),j(d,p)},$$slots:{default:!0}}))}function ix(i,n){const u=fn(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}],["path",{d:"M10 12h4v4h-4z"}]];ai(i,Ot({type:"outline",name:"home-2"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=qe(),g=je(p);Tn(g,n,"default",{}),j(d,p)},$$slots:{default:!0}}))}function Ah(i,n){const u=fn(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M15 8h.01"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"}]];ai(i,Ot({type:"outline",name:"photo"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=qe(),g=je(p);Tn(g,n,"default",{}),j(d,p)},$$slots:{default:!0}}))}function Zh(i,n){const u=fn(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}],["path",{d:"M15 6l3 3"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}]];ai(i,Ot({type:"outline",name:"wand"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=qe(),g=je(p);Tn(g,n,"default",{}),j(d,p)},$$slots:{default:!0}}))}function Rh(i,n){const u=fn(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M18 6l-12 12"}],["path",{d:"M6 6l12 12"}]];ai(i,Ot({type:"outline",name:"x"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=qe(),g=je(p);Tn(g,n,"default",{}),j(d,p)},$$slots:{default:!0}}))}const ox={questions:[],questionsData:{}},qh=Symbol("formResponses"),ax=()=>{const i=Q0(ox),n=(g,v,b,y)=>{if((v==null||v===""||Array.isArray(v)&&v.length===0)&&!y){m(g);return}let _;switch(b){case"rating":_={rating:v};break;case"nps":_={nps:v};break;case"long_text":_={longText:v};break;case"short_answer":_={shortAnswer:v};break;case"single_choice":_={singleChoice:v};break;case"multiple_choice_multiple":_={multipleChoiceMultiple:Array.isArray(v)?v:[v]};break;case"nested_selection":_={nestedSelection:Array.isArray(v)?v:[v]};break;case"annotation":_={annotation:v};break;default:_=v}i.update(h=>{const S=h.questions.findIndex(x=>x.questionId===g);return S!==-1?{...h,questions:h.questions.map((x,T)=>T===S?{...x,answer:_,type:b,error:y}:x)}:{...h,questions:[...h.questions,{questionId:g,answer:_,type:b,error:y}]}})},u=(g,v)=>{p(g)&&i.update(b=>({...b,questions:b.questions.map(y=>y.questionId===g?{...y,error:v}:y)}))},l=()=>{i.update(g=>({...g,questions:g.questions.map(v=>({...v,error:void 0}))}))},d=()=>$o(i).questions.some(g=>g.error!==void 0&&g.error!==null&&g.error!==""),m=g=>{i.update(v=>({...v,questions:v.questions.filter(b=>b.questionId!==g)}))},p=g=>$o(i).questions.find(v=>v.questionId===g);return{formResponses:i,updateQuestionResponse:n,getQuestionResponse:p,removeQuestionResponse:m,setQuestionError:u,hasValidationErrors:d,clearValidationErrors:l,clearResponses:()=>{i.update(g=>({...g,questions:[]}))},bulkUpdateResponses:g=>{i.update(v=>({...v,questions:g}))},storeQuestions:g=>{i.update(v=>({...v,questionsData:g}))},getQuestionData:g=>$o(i).questionsData[g]}},Fh=()=>{const i=ax();return zv(qh,i),i},mn=()=>ll(qh),Tl="-",sx=i=>{const n=lx(i),{conflictingClassGroups:u,conflictingClassGroupModifiers:l}=i;return{getClassGroupId:d=>{const m=d.split(Tl);return m[0]===""&&m.length!==1&&m.shift(),Wh(m,n)||ux(d)},getConflictingClassGroupIds:(d,m)=>{const p=u[d]||[];return m&&l[d]?[...p,...l[d]]:p}}},Wh=(i,n)=>{if(i.length===0)return n.classGroupId;const u=i[0],l=n.nextPart.get(u),d=l?Wh(i.slice(1),l):void 0;if(d)return d;if(n.validators.length===0)return;const m=i.join(Tl);return n.validators.find(({validator:p})=>p(m))?.classGroupId},Gh=/^\[(.+)\]$/,ux=i=>{if(Gh.test(i)){const n=Gh.exec(i)[1],u=n?.substring(0,n.indexOf(":"));if(u)return"arbitrary.."+u}},lx=i=>{const{theme:n,classGroups:u}=i,l={nextPart:new Map,validators:[]};for(const d in u)Ol(u[d],l,d,n);return l},Ol=(i,n,u,l)=>{i.forEach(d=>{if(typeof d=="string"){const m=d===""?n:Qh(n,d);m.classGroupId=u;return}if(typeof d=="function"){if(cx(d)){Ol(d(l),n,u,l);return}n.validators.push({validator:d,classGroupId:u});return}Object.entries(d).forEach(([m,p])=>{Ol(p,Qh(n,m),u,l)})})},Qh=(i,n)=>{let u=i;return n.split(Tl).forEach(l=>{u.nextPart.has(l)||u.nextPart.set(l,{nextPart:new Map,validators:[]}),u=u.nextPart.get(l)}),u},cx=i=>i.isThemeGetter,dx=i=>{if(i<1)return{get:()=>{},set:()=>{}};let n=0,u=new Map,l=new Map;const d=(m,p)=>{u.set(m,p),n++,n>i&&(n=0,l=u,u=new Map)};return{get(m){let p=u.get(m);if(p!==void 0)return p;if((p=l.get(m))!==void 0)return d(m,p),p},set(m,p){u.has(m)?u.set(m,p):d(m,p)}}},El="!",Pl=":",fx=Pl.length,mx=i=>{const{prefix:n,experimentalParseClassName:u}=i;let l=d=>{const m=[];let p=0,g=0,v=0,b;for(let x=0;x<d.length;x++){let T=d[x];if(p===0&&g===0){if(T===Pl){m.push(d.slice(v,x)),v=x+fx;continue}if(T==="/"){b=x;continue}}T==="["?p++:T==="]"?p--:T==="("?g++:T===")"&&g--}const y=m.length===0?d:d.substring(v),_=px(y),h=_!==y,S=b&&b>v?b-v:void 0;return{modifiers:m,hasImportantModifier:h,baseClassName:_,maybePostfixModifierPosition:S}};if(n){const d=n+Pl,m=l;l=p=>p.startsWith(d)?m(p.substring(d.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:p,maybePostfixModifierPosition:void 0}}if(u){const d=l;l=m=>u({className:m,parseClassName:d})}return l},px=i=>i.endsWith(El)?i.substring(0,i.length-1):i.startsWith(El)?i.substring(1):i,gx=i=>{const n=Object.fromEntries(i.orderSensitiveModifiers.map(u=>[u,!0]));return u=>{if(u.length<=1)return u;const l=[];let d=[];return u.forEach(m=>{m[0]==="["||n[m]?(l.push(...d.sort(),m),d=[]):d.push(m)}),l.push(...d.sort()),l}},vx=i=>({cache:dx(i.cacheSize),parseClassName:mx(i),sortModifiers:gx(i),...sx(i)}),hx=/\s+/,bx=(i,n)=>{const{parseClassName:u,getClassGroupId:l,getConflictingClassGroupIds:d,sortModifiers:m}=n,p=[],g=i.trim().split(hx);let v="";for(let b=g.length-1;b>=0;b-=1){const y=g[b],{isExternal:_,modifiers:h,hasImportantModifier:S,baseClassName:x,maybePostfixModifierPosition:T}=u(y);if(_){v=y+(v.length>0?" "+v:v);continue}let P=!!T,J=l(P?x.substring(0,T):x);if(!J){if(!P){v=y+(v.length>0?" "+v:v);continue}if(J=l(x),!J){v=y+(v.length>0?" "+v:v);continue}P=!1}const ie=m(h).join(":"),G=S?ie+El:ie,V=G+J;if(p.includes(V))continue;p.push(V);const W=d(J,P);for(let q=0;q<W.length;++q){const Q=W[q];p.push(G+Q)}v=y+(v.length>0?" "+v:v)}return v};function yx(){let i=0,n,u,l="";for(;i<arguments.length;)(n=arguments[i++])&&(u=Jh(n))&&(l&&(l+=" "),l+=u);return l}const Jh=i=>{if(typeof i=="string")return i;let n,u="";for(let l=0;l<i.length;l++)i[l]&&(n=Jh(i[l]))&&(u&&(u+=" "),u+=n);return u};function Cl(i,...n){let u,l,d,m=p;function p(v){const b=n.reduce((y,_)=>_(y),i());return u=vx(b),l=u.cache.get,d=u.cache.set,m=g,g(v)}function g(v){const b=l(v);if(b)return b;const y=bx(v,u);return d(v,y),y}return function(){return m(yx.apply(null,arguments))}}const Kt=i=>{const n=u=>u[i]||[];return n.isThemeGetter=!0,n},Vh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Bh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$x=/^\d+\/\d+$/,wx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_x=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Si=i=>$x.test(i),nt=i=>!!i&&!Number.isNaN(Number(i)),On=i=>!!i&&Number.isInteger(Number(i)),Ml=i=>i.endsWith("%")&&nt(i.slice(0,-1)),pn=i=>wx.test(i),Ix=()=>!0,zx=i=>_x.test(i)&&!kx.test(i),Yh=()=>!1,Nx=i=>xx.test(i),jx=i=>Sx.test(i),Tx=i=>!Ee(i)&&!Pe(i),Ox=i=>Ii(i,tb,Yh),Ee=i=>Vh.test(i),si=i=>Ii(i,rb,zx),Dl=i=>Ii(i,Dx,nt),Kh=i=>Ii(i,Xh,Yh),Ex=i=>Ii(i,eb,jx),Da=i=>Ii(i,nb,Nx),Pe=i=>Bh.test(i),wo=i=>zi(i,rb),Px=i=>zi(i,Ux),Hh=i=>zi(i,Xh),Cx=i=>zi(i,tb),Mx=i=>zi(i,eb),Ua=i=>zi(i,nb,!0),Ii=(i,n,u)=>{const l=Vh.exec(i);return l?l[1]?n(l[1]):u(l[2]):!1},zi=(i,n,u=!1)=>{const l=Bh.exec(i);return l?l[1]?n(l[1]):u:!1},Xh=i=>i==="position"||i==="percentage",eb=i=>i==="image"||i==="url",tb=i=>i==="length"||i==="size"||i==="bg-size",rb=i=>i==="length",Dx=i=>i==="number",Ux=i=>i==="family-name",nb=i=>i==="shadow",Ul=()=>{const i=Kt("color"),n=Kt("font"),u=Kt("text"),l=Kt("font-weight"),d=Kt("tracking"),m=Kt("leading"),p=Kt("breakpoint"),g=Kt("container"),v=Kt("spacing"),b=Kt("radius"),y=Kt("shadow"),_=Kt("inset-shadow"),h=Kt("text-shadow"),S=Kt("drop-shadow"),x=Kt("blur"),T=Kt("perspective"),P=Kt("aspect"),J=Kt("ease"),ie=Kt("animate"),G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...V(),Pe,Ee],q=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],Y=()=>[Pe,Ee,v],$e=()=>[Si,"full","auto",...Y()],Oe=()=>[On,"none","subgrid",Pe,Ee],ke=()=>["auto",{span:["full",On,Pe,Ee]},On,Pe,Ee],de=()=>[On,"auto",Pe,Ee],ze=()=>["auto","min","max","fr",Pe,Ee],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],te=()=>["auto",...Y()],N=()=>[Si,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],U=()=>[i,Pe,Ee],A=()=>[...V(),Hh,Kh,{position:[Pe,Ee]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Cx,Ox,{size:[Pe,Ee]}],F=()=>[Ml,wo,si],ae=()=>["","none","full",b,Pe,Ee],Ce=()=>["",nt,wo,si],ce=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>[nt,Ml,Hh,Kh],Se=()=>["","none",x,Pe,Ee],xe=()=>["none",nt,Pe,Ee],Fe=()=>["none",nt,Pe,Ee],tt=()=>[nt,Pe,Ee],st=()=>[Si,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[pn],breakpoint:[pn],color:[Ix],container:[pn],"drop-shadow":[pn],ease:["in","out","in-out"],font:[Tx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[pn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[pn],shadow:[pn],spacing:["px",nt],text:[pn],"text-shadow":[pn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Si,Ee,Pe,P]}],container:["container"],columns:[{columns:[nt,Ee,Pe,g]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:W()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$e()}],"inset-x":[{"inset-x":$e()}],"inset-y":[{"inset-y":$e()}],start:[{start:$e()}],end:[{end:$e()}],top:[{top:$e()}],right:[{right:$e()}],bottom:[{bottom:$e()}],left:[{left:$e()}],visibility:["visible","invisible","collapse"],z:[{z:[On,"auto",Pe,Ee]}],basis:[{basis:[Si,"full","auto",g,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[nt,Si,"auto","initial","none",Ee]}],grow:[{grow:["",nt,Pe,Ee]}],shrink:[{shrink:["",nt,Pe,Ee]}],order:[{order:[On,"first","last","none",Pe,Ee]}],"grid-cols":[{"grid-cols":Oe()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":Oe()}],"row-start-end":[{row:ke()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ze()}],"auto-rows":[{"auto-rows":ze()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[g,"screen",...N()]}],"min-w":[{"min-w":[g,"screen","none",...N()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",u,wo,si]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,Pe,Dl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ml,Ee]}],"font-family":[{font:[Px,Ee,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,Pe,Ee]}],"line-clamp":[{"line-clamp":[nt,"none",Pe,Dl]}],leading:[{leading:[m,...Y()]}],"list-image":[{"list-image":["none",Pe,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Pe,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[nt,"from-font","auto",Pe,si]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[nt,"auto",Pe,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe,Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},On,Pe,Ee],radial:["",Pe,Ee],conic:[On,Pe,Ee]},Mx,Ex]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:Ce()}],"border-w-x":[{"border-x":Ce()}],"border-w-y":[{"border-y":Ce()}],"border-w-s":[{"border-s":Ce()}],"border-w-e":[{"border-e":Ce()}],"border-w-t":[{"border-t":Ce()}],"border-w-r":[{"border-r":Ce()}],"border-w-b":[{"border-b":Ce()}],"border-w-l":[{"border-l":Ce()}],"divide-x":[{"divide-x":Ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[nt,Pe,Ee]}],"outline-w":[{outline:["",nt,wo,si]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",y,Ua,Da]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",_,Ua,Da]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:Ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[nt,si]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":Ce()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",h,Ua,Da]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[nt,Pe,Ee]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[nt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[Pe,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[nt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Pe,Ee]}],filter:[{filter:["","none",Pe,Ee]}],blur:[{blur:Se()}],brightness:[{brightness:[nt,Pe,Ee]}],contrast:[{contrast:[nt,Pe,Ee]}],"drop-shadow":[{"drop-shadow":["","none",S,Ua,Da]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",nt,Pe,Ee]}],"hue-rotate":[{"hue-rotate":[nt,Pe,Ee]}],invert:[{invert:["",nt,Pe,Ee]}],saturate:[{saturate:[nt,Pe,Ee]}],sepia:[{sepia:["",nt,Pe,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",Pe,Ee]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[nt,Pe,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[nt,Pe,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",nt,Pe,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[nt,Pe,Ee]}],"backdrop-invert":[{"backdrop-invert":["",nt,Pe,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[nt,Pe,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[nt,Pe,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",nt,Pe,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Pe,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[nt,"initial",Pe,Ee]}],ease:[{ease:["linear","initial",J,Pe,Ee]}],delay:[{delay:[nt,Pe,Ee]}],animate:[{animate:["none",ie,Pe,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,Pe,Ee]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Fe()}],"scale-x":[{"scale-x":Fe()}],"scale-y":[{"scale-y":Fe()}],"scale-z":[{"scale-z":Fe()}],"scale-3d":["scale-3d"],skew:[{skew:tt()}],"skew-x":[{"skew-x":tt()}],"skew-y":[{"skew-y":tt()}],transform:[{transform:[Pe,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pe,Ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pe,Ee]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[nt,wo,si,Dl]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Lx=(i,{cacheSize:n,prefix:u,experimentalParseClassName:l,extend:d={},override:m={}})=>(_o(i,"cacheSize",n),_o(i,"prefix",u),_o(i,"experimentalParseClassName",l),La(i.theme,m.theme),La(i.classGroups,m.classGroups),La(i.conflictingClassGroups,m.conflictingClassGroups),La(i.conflictingClassGroupModifiers,m.conflictingClassGroupModifiers),_o(i,"orderSensitiveModifiers",m.orderSensitiveModifiers),Aa(i.theme,d.theme),Aa(i.classGroups,d.classGroups),Aa(i.conflictingClassGroups,d.conflictingClassGroups),Aa(i.conflictingClassGroupModifiers,d.conflictingClassGroupModifiers),ib(i,d,"orderSensitiveModifiers"),i),_o=(i,n,u)=>{u!==void 0&&(i[n]=u)},La=(i,n)=>{if(n)for(const u in n)_o(i,u,n[u])},Aa=(i,n)=>{if(n)for(const u in n)ib(i,n,u)},ib=(i,n,u)=>{const l=n[u];l!==void 0&&(i[u]=i[u]?i[u].concat(l):l)},Ax=(i,...n)=>typeof i=="function"?Cl(Ul,i,...n):Cl(()=>Lx(Ul(),i),...n),ob=Cl(Ul);function xr(...i){return ob(vo(i))}var Zx=/\s+/g,Ll=i=>typeof i!="string"||!i?i:i.replace(Zx," ").trim(),Za=(...i)=>{let n=[],u=l=>{if(!l&&l!==0&&l!==0n)return;if(Array.isArray(l)){for(let m=0,p=l.length;m<p;m++)u(l[m]);return}let d=typeof l;if(d==="string"||d==="number"||d==="bigint"){if(d==="number"&&l!==l)return;n.push(String(l))}else if(d==="object"){let m=Object.keys(l);for(let p=0,g=m.length;p<g;p++){let v=m[p];l[v]&&n.push(v)}}};for(let l=0,d=i.length;l<d;l++){let m=i[l];m!=null&&u(m)}return n.length>0?Ll(n.join(" ")):void 0},ab=i=>i===!1?"false":i===!0?"true":i===0?"0":i,gr=i=>{if(!i||typeof i!="object")return!0;for(let n in i)return!1;return!0},Rx=(i,n)=>{if(i===n)return!0;if(!i||!n)return!1;let u=Object.keys(i),l=Object.keys(n);if(u.length!==l.length)return!1;for(let d=0;d<u.length;d++){let m=u[d];if(!l.includes(m)||i[m]!==n[m])return!1}return!0},sb=(i,n)=>{for(let u in n)if(Object.prototype.hasOwnProperty.call(n,u)){let l=n[u];u in i?i[u]=Za(i[u],l):i[u]=l}return i},ub=(i,n)=>{for(let u=0;u<i.length;u++){let l=i[u];Array.isArray(l)?ub(l,n):l&&n.push(l)}},lb=(...i)=>{let n=[];ub(i,n);let u=[];for(let l=0;l<n.length;l++)n[l]&&u.push(n[l]);return u},Al=(i,n)=>{let u={};for(let l in i){let d=i[l];if(l in n){let m=n[l];Array.isArray(d)||Array.isArray(m)?u[l]=lb(m,d):typeof d=="object"&&typeof m=="object"&&d&&m?u[l]=Al(d,m):u[l]=m+" "+d}else u[l]=d}for(let l in n)l in i||(u[l]=n[l]);return u},qx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function Fx(){let i=null,n={},u=!1;return{get cachedTwMerge(){return i},set cachedTwMerge(l){i=l},get cachedTwMergeConfig(){return n},set cachedTwMergeConfig(l){n=l},get didTwMergeConfigChange(){return u},set didTwMergeConfigChange(l){u=l},reset(){i=null,n={},u=!1}}}var gn=Fx(),Wx=i=>{let n=(u,l)=>{let{extend:d=null,slots:m={},variants:p={},compoundVariants:g=[],compoundSlots:v=[],defaultVariants:b={}}=u,y={...qx,...l},_=d?.base?Za(d.base,u?.base):u?.base,h=d?.variants&&!gr(d.variants)?Al(p,d.variants):p,S=d?.defaultVariants&&!gr(d.defaultVariants)?{...d.defaultVariants,...b}:b;!gr(y.twMergeConfig)&&!Rx(y.twMergeConfig,gn.cachedTwMergeConfig)&&(gn.didTwMergeConfigChange=!0,gn.cachedTwMergeConfig=y.twMergeConfig);let x=gr(d?.slots),T=gr(m)?{}:{base:Za(u?.base,x&&d?.base),...m},P=x?T:sb({...d?.slots},gr(T)?{base:u?.base}:T),J=gr(d?.compoundVariants)?g:lb(d?.compoundVariants,g),ie=V=>{if(gr(h)&&gr(m)&&x)return i(_,V?.class,V?.className)(y);if(J&&!Array.isArray(J))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof J}`);if(v&&!Array.isArray(v))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof v}`);let W=(fe,ne,te=[],N)=>{let U=te;if(typeof ne=="string"){let A=Ll(ne).split(" ");for(let E=0;E<A.length;E++)U.push(`${fe}:${A[E]}`)}else if(Array.isArray(ne))for(let A=0;A<ne.length;A++)U.push(`${fe}:${ne[A]}`);else if(typeof ne=="object"&&typeof N=="string"&&N in ne){let A=ne[N];if(A&&typeof A=="string"){let E=Ll(A).split(" "),L=[];for(let F=0;F<E.length;F++)L.push(`${fe}:${E[F]}`);U[N]=U[N]?U[N].concat(L):L}else if(Array.isArray(A)&&A.length>0){let E=[];for(let L=0;L<A.length;L++)E.push(`${fe}:${A[L]}`);U[N]=E}}return U},q=(fe,ne=h,te=null,N=null)=>{let U=ne[fe];if(!U||gr(U))return null;let A=N?.[fe]??V?.[fe];if(A===null)return null;let E=ab(A),L=Array.isArray(y.responsiveVariants)&&y.responsiveVariants.length>0||y.responsiveVariants===!0,F=S?.[fe],ae=[];if(typeof E=="object"&&L)for(let[oe,ge]of Object.entries(E)){let Se=U[ge];if(oe==="initial"){F=ge;continue}Array.isArray(y.responsiveVariants)&&!y.responsiveVariants.includes(oe)||(ae=W(oe,Se,ae,te))}let Ce=E!=null&&typeof E!="object"?E:ab(F),ce=U[Ce||"false"];return typeof ae=="object"&&typeof te=="string"&&ae[te]?sb(ae,ce):ae.length>0?(ae.push(ce),te==="base"?ae.join(" "):ae):ce},Q=()=>{if(!h)return null;let fe=Object.keys(h),ne=[];for(let te=0;te<fe.length;te++){let N=q(fe[te],h);N&&ne.push(N)}return ne},Y=(fe,ne)=>{if(!h||typeof h!="object")return null;let te=[];for(let N in h){let U=q(N,h,fe,ne),A=fe==="base"&&typeof U=="string"?U:U&&U[fe];A&&te.push(A)}return te},$e={};for(let fe in V){let ne=V[fe];ne!==void 0&&($e[fe]=ne)}let Oe=(fe,ne)=>{let te=typeof V?.[fe]=="object"?{[fe]:V[fe]?.initial}:{};return{...S,...$e,...te,...ne}},ke=(fe=[],ne)=>{let te=[],N=fe.length;for(let U=0;U<N;U++){let{class:A,className:E,...L}=fe[U],F=!0,ae=Oe(null,ne);for(let Ce in L){let ce=L[Ce],oe=ae[Ce];if(Array.isArray(ce)){if(!ce.includes(oe)){F=!1;break}}else{if((ce==null||ce===!1)&&(oe==null||oe===!1))continue;if(oe!==ce){F=!1;break}}}F&&(A&&te.push(A),E&&te.push(E))}return te},de=fe=>{let ne=ke(J,fe);if(!Array.isArray(ne))return ne;let te={},N=i;for(let U=0;U<ne.length;U++){let A=ne[U];if(typeof A=="string")te.base=N(te.base,A)(y);else if(typeof A=="object")for(let E in A)te[E]=N(te[E],A[E])(y)}return te},ze=fe=>{if(v.length<1)return null;let ne={},te=Oe(null,fe);for(let N=0;N<v.length;N++){let{slots:U=[],class:A,className:E,...L}=v[N];if(!gr(L)){let F=!0;for(let ae in L){let Ce=te[ae],ce=L[ae];if(Ce===void 0||(Array.isArray(ce)?!ce.includes(Ce):ce!==Ce)){F=!1;break}}if(!F)continue}for(let F=0;F<U.length;F++){let ae=U[F];ne[ae]||(ne[ae]=[]),ne[ae].push([A,E])}}return ne};if(!gr(m)||!x){let fe={};if(typeof P=="object"&&!gr(P)){let ne=i;for(let te in P)fe[te]=N=>{let U=de(N),A=ze(N);return ne(P[te],Y(te,N),U?U[te]:void 0,A?A[te]:void 0,N?.class,N?.className)(y)}}return fe}return i(_,Q(),ke(J),V?.class,V?.className)(y)},G=()=>{if(!(!h||typeof h!="object"))return Object.keys(h)};return ie.variantKeys=G(),ie.extend=d,ie.base=_,ie.slots=P,ie.variants=h,ie.defaultVariants=S,ie.compoundSlots=v,ie.compoundVariants=J,ie};return{tv:n,createTV:u=>(l,d)=>n(l,d?Al(u,d):u)}},Gx=i=>gr(i)?ob:Ax({...i,extend:{theme:i.theme,classGroups:i.classGroups,conflictingClassGroupModifiers:i.conflictingClassGroupModifiers,conflictingClassGroups:i.conflictingClassGroups,...i.extend}}),Qx=(...i)=>n=>{let u=Za(i);return!u||!n.twMerge?u:((!gn.cachedTwMerge||gn.didTwMergeConfigChange)&&(gn.didTwMergeConfigChange=!1,gn.cachedTwMerge=Gx(gn.cachedTwMergeConfig)),gn.cachedTwMerge(u)||void 0)},{tv:Jx}=Wx(Qx);const cb=Jx({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white",outline:"bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var Vx=ee("<a><!></a>"),Bx=ee("<button><!></button>");function qt(i,n){Be(n,!0);let u=w(n,"variant",3,"default"),l=w(n,"size",3,"default"),d=w(n,"ref",15,null),m=w(n,"href",3,void 0),p=w(n,"type",3,"button"),g=At(n,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children","onclick"]);var v=qe(),b=je(v);{var y=h=>{var S=Vx();Wt(S,T=>({"data-slot":"button",class:T,href:n.disabled?void 0:m(),"aria-disabled":n.disabled,role:n.disabled?"link":void 0,tabindex:n.disabled?-1:void 0,...g}),[()=>xr(cb({variant:u(),size:l()}),n.class)]);var x=Z(S);Rt(x,()=>n.children??gt),D(S),Mr(S,T=>d(T),()=>d()),j(h,S)},_=h=>{var S=Bx();Wt(S,T=>({"data-slot":"button",class:T,type:p(),disabled:n.disabled,onclick:n.onclick,...g}),[()=>xr(cb({variant:u(),size:l()}),n.class)]);var x=Z(S);Rt(x,()=>n.children??gt),D(S),Mr(S,T=>d(T),()=>d()),j(h,S)};se(b,h=>{m()?h(y):h(_,!1)})}j(i,v),Ye()}var Yx=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),Kx=ee('<span class="text-destructive ml-1">*</span>'),Hx=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),Xx=ee('<span class="text-xs xs:text-xs text-muted-foreground font-medium"> </span>'),eS=ee('<span class="text-xs xs:text-xs text-muted-foreground font-medium text-right"> </span>'),tS=ee('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),rS=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),nS=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="flex flex-col gap-3 pt-2"><div class="flex gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2 justify-center items-center w-full"></div> <!></div> <!></div>');function iS(i,n){Be(n,!1);const u=X(),l=X(),{updateQuestionResponse:d,removeQuestionResponse:m}=mn();let p=w(n,"question",8),g=w(n,"value",24,()=>-1),v=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),_=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let h=X(g()??-1);function S(ne){c(h)===ne?($(h,-1),v()(-1),m(p().id)):($(h,ne),v()(ne),d(p().id,ne,s.QuestionTypes.NPS))}be(()=>z(y()),()=>{$(u,y()==="dark")}),be(()=>z(g()),()=>{g()!==void 0&&$(h,g())}),be(()=>z(p()),()=>{$(l,Array.from({length:(p().max??10)-(p().min??0)+1},(ne,te)=>te+(p().min??0)))}),dr(),er();var x=nS(),T=Z(x),P=Z(T);{var J=ne=>{var te=Yx(),N=Z(te);D(te),Ie(()=>Te(N,`${_()??""}.`)),j(ne,te)};se(P,ne=>{_()!==void 0&&ne(J)})}var ie=pe(P,2),G=Z(ie),V=Z(G),W=pe(V);{var q=ne=>{var te=Kx();j(ne,te)};se(W,ne=>{z(p()),C(()=>p().required)&&ne(q)})}D(G);var Q=pe(G,2);{var Y=ne=>{var te=Hx(),N=Z(te,!0);D(te),Ie(()=>Te(N,(z(p()),C(()=>p().description)))),j(ne,te)};se(Q,ne=>{z(p()),C(()=>p().description)&&ne(Y)})}D(ie),D(T);var $e=pe(T,2),Oe=Z($e);pr(Oe,5,()=>c(l),kr,(ne,te)=>{{let N=Le(()=>`flex-1 min-w-0 h-8 xs:h-9 sm:h-10 text-xs xs:text-sm sm:text-base font-semibold transition-all ${c(h)===c(te)?"bg-primary text-primary-foreground border-primary shadow-md hover:bg-primary/90 scale-105 dark:border-primary/90 dark:bg-primary dark:hover:bg-primary dark:hover:text-primary-foreground hover:text-primary-foreground":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"}`);qt(ne,{type:"button",variant:"outline",size:"sm",get class(){return c(N)},onclick:()=>S(c(te)),children:(U,A)=>{wr();var E=Nn();Ie(()=>Te(E,c(te))),j(U,E)},$$slots:{default:!0}})}}),D(Oe);var ke=pe(Oe,2);{var de=ne=>{var te=tS(),N=Z(te);{var U=L=>{var F=Xx(),ae=Z(F,!0);D(F),Ie(()=>Te(ae,(z(p()),C(()=>p().minLabel)))),j(L,F)};se(N,L=>{z(p()),C(()=>p().minLabel)&&L(U)})}var A=pe(N,2);{var E=L=>{var F=eS(),ae=Z(F,!0);D(F),Ie(()=>Te(ae,(z(p()),C(()=>p().maxLabel)))),j(L,F)};se(A,L=>{z(p()),C(()=>p().maxLabel)&&L(E)})}D(te),j(ne,te)};se(ke,ne=>{z(p()),C(()=>p().minLabel||p().maxLabel)&&ne(de)})}D($e);var ze=pe($e,2);{var fe=ne=>{var te=rS(),N=Z(te),U=Z(N,!0);D(N),D(te),Ie(()=>Te(U,b())),j(ne,te)};se(ze,ne=>{b()&&ne(fe)})}D(x),Ie(()=>Te(V,`${z(p()),C(()=>p().title)??""} `)),j(i,x),Ye()}var oS=ee("<nav><!></nav>");function aS(i,n){Be(n,!0);let u=w(n,"ref",15,null),l=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=oS();Wt(d,()=>({"data-slot":"breadcrumb",class:n.class,"aria-label":"breadcrumb",...l}));var m=Z(d);Rt(m,()=>n.children??gt),D(d),Mr(d,p=>u(p),()=>u()),j(i,d),Ye()}/**
|
|
44
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const ce of this.seen.entries()){const ue=ce[1];if(r===ce[0]){f(ce);continue}if(s.external){const ge=s.external.registry.get(ce[0])?.id;if(r!==ce[0]&&ge){f(ce);continue}}if(this.metadataRegistry.get(ce[0])?.id){f(ce);continue}if(ue.cycle){f(ce);continue}if(ue.count>1&&s.reused==="ref"){f(ce);continue}}const _=(ce,ue)=>{const ze=this.seen.get(ce),ge=ze.def??ze.schema,A={...ge};if(ze.ref===null)return;const ye=ze.ref;if(ze.ref=null,ye){_(ye,ue);const Me=this.seen.get(ye).schema;Me.$ref&&(ue.target==="draft-7"||ue.target==="draft-4"||ue.target==="openapi-3.0")?(ge.allOf=ge.allOf??[],ge.allOf.push(Me)):(Object.assign(ge,Me),Object.assign(ge,A))}ze.isParent||this.override({zodSchema:ce,jsonSchema:ge,path:ze.path??[]})};for(const ce of[...this.seen.entries()].reverse())_(ce[0],{target:this.target});const q={};if(this.target==="draft-2020-12"?q.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?q.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?q.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),s.external?.uri){const ce=s.external.registry.get(r)?.id;if(!ce)throw new Error("Schema is missing an `id` property");q.$id=s.external.uri(ce)}Object.assign(q,t.def);const X=s.external?.defs??{};for(const ce of this.seen.entries()){const ue=ce[1];ue.def&&ue.defId&&(X[ue.defId]=ue.def)}s.external||Object.keys(X).length>0&&(this.target==="draft-2020-12"?q.$defs=X:q.definitions=X);try{return JSON.parse(JSON.stringify(q))}catch{throw new Error("Error converting schema to JSON.")}}}function tp(e,r){if(e instanceof xs){const s=new iu(r),t={};for(const _ of e._idmap.entries()){const[q,X]=_;s.process(X)}const a={},f={registry:e,uri:r?.uri,defs:t};for(const _ of e._idmap.entries()){const[q,X]=_;a[q]=s.emit(X,{...r,external:f})}if(Object.keys(t).length>0){const _=s.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[_]:t}}return{schemas:a}}const o=new iu(r);return o.process(e),o.emit(e,r)}function Jt(e,r){const o=r??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const t=e._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Jt(t.element,o);case"object":{for(const a in t.shape)if(Jt(t.shape[a],o))return!0;return!1}case"union":{for(const a of t.options)if(Jt(a,o))return!0;return!1}case"intersection":return Jt(t.left,o)||Jt(t.right,o);case"tuple":{for(const a of t.items)if(Jt(a,o))return!0;return!!(t.rest&&Jt(t.rest,o))}case"record":return Jt(t.keyType,o)||Jt(t.valueType,o);case"map":return Jt(t.keyType,o)||Jt(t.valueType,o);case"set":return Jt(t.valueType,o);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Jt(t.innerType,o);case"lazy":return Jt(t.getter(),o);case"default":return Jt(t.innerType,o);case"prefault":return Jt(t.innerType,o);case"custom":return!1;case"transform":return!0;case"pipe":return Jt(t.in,o)||Jt(t.out,o);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${t.type}`)}const Uw=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:pf,$ZodArray:$f,$ZodAsyncError:Mn,$ZodBase64:tf,$ZodBase64URL:nf,$ZodBigInt:ys,$ZodBigIntFormat:lf,$ZodBoolean:bs,$ZodCIDRv4:Xd,$ZodCIDRv6:ef,$ZodCUID:Fd,$ZodCUID2:qd,$ZodCatch:Vf,$ZodCheck:Mt,$ZodCheckBigIntFormat:vd,$ZodCheckEndsWith:jd,$ZodCheckGreaterThan:gs,$ZodCheckIncludes:zd,$ZodCheckLengthEquals:kd,$ZodCheckLessThan:ps,$ZodCheckLowerCase:Sd,$ZodCheckMaxLength:wd,$ZodCheckMaxSize:bd,$ZodCheckMimeType:Ed,$ZodCheckMinLength:_d,$ZodCheckMinSize:yd,$ZodCheckMultipleOf:gd,$ZodCheckNumberFormat:hd,$ZodCheckOverwrite:Pd,$ZodCheckProperty:Od,$ZodCheckRegex:xd,$ZodCheckSizeEquals:$d,$ZodCheckStartsWith:Nd,$ZodCheckStringFormat:Vi,$ZodCheckUpperCase:Id,$ZodCodec:ks,$ZodCustom:rm,$ZodCustomStringFormat:uf,$ZodDate:bf,$ZodDefault:Rf,$ZodDiscriminatedUnion:If,$ZodE164:of,$ZodEmail:Ld,$ZodEmoji:Zd,$ZodEncodeError:To,$ZodEnum:Cf,$ZodError:Ha,$ZodFile:Mf,$ZodFunction:Xf,$ZodGUID:Md,$ZodIPv4:Kd,$ZodIPv6:Hd,$ZodISODate:Jd,$ZodISODateTime:Vd,$ZodISODuration:Yd,$ZodISOTime:Bd,$ZodIntersection:zf,$ZodJWT:sf,$ZodKSUID:Gd,$ZodLazy:tm,$ZodLiteral:Uf,$ZodMap:Tf,$ZodNaN:Jf,$ZodNanoID:Rd,$ZodNever:hf,$ZodNonOptional:Wf,$ZodNull:mf,$ZodNullable:Zf,$ZodNumber:vs,$ZodNumberFormat:cf,$ZodObject:kf,$ZodObjectJIT:xf,$ZodOptional:Af,$ZodPipe:Bf,$ZodPrefault:qf,$ZodPromise:em,$ZodReadonly:Yf,$ZodRealError:br,$ZodRecord:jf,$ZodRegistry:xs,$ZodSet:Ef,$ZodString:Ji,$ZodStringFormat:zt,$ZodSuccess:Gf,$ZodSymbol:df,$ZodTemplateLiteral:Hf,$ZodTransform:Df,$ZodTuple:_s,$ZodType:Qe,$ZodULID:Wd,$ZodURL:Ad,$ZodUUID:Dd,$ZodUndefined:ff,$ZodUnion:$s,$ZodUnknown:gf,$ZodVoid:vf,$ZodXID:Qd,$brand:dl,$constructor:D,$input:fm,$output:dm,Doc:Cd,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:iu,NEVER:ll,TimePrecision:gm,_any:Mm,_array:Jm,_base64:Fs,_base64url:qs,_bigint:jm,_boolean:zm,_catch:jw,_check:Xm,_cidrv4:Zs,_cidrv6:Rs,_coercedBigint:Tm,_coercedBoolean:Nm,_coercedDate:Rm,_coercedNumber:wm,_coercedString:pm,_cuid:Ps,_cuid2:Cs,_custom:Ym,_date:Zm,_decode:is,_decodeAsync:as,_default:Iw,_discriminatedUnion:pw,_e164:Ws,_email:Is,_emoji:Os,_encode:ns,_encodeAsync:os,_endsWith:Hs,_enum:$w,_file:Bm,_float32:km,_float64:xm,_gt:Fn,_gte:yr,_guid:Wo,_includes:Ys,_int:_m,_int32:Sm,_int64:Om,_intersection:gw,_ipv4:Ls,_ipv6:As,_isoDate:vm,_isoDateTime:hm,_isoDuration:ym,_isoTime:bm,_jwt:Qs,_ksuid:Ds,_lazy:Pw,_length:Jo,_literal:_w,_lowercase:Js,_lt:Rn,_lte:Zr,_map:bw,_max:Zr,_maxLength:Vo,_maxSize:Go,_mime:Xs,_min:yr,_minLength:gi,_minSize:Hi,_multipleOf:Ki,_nan:Fm,_nanoid:Es,_nativeEnum:ww,_negative:Wm,_never:Lm,_nonnegative:Gm,_nonoptional:zw,_nonpositive:Qm,_normalize:eu,_null:Um,_nullable:Sw,_number:$m,_optional:xw,_overwrite:qn,_parse:Ri,_parseAsync:Fi,_pipe:Tw,_positive:qm,_promise:Cw,_property:Vm,_readonly:Ow,_record:vw,_refine:Km,_regex:Vs,_safeDecode:us,_safeDecodeAsync:ls,_safeEncode:ss,_safeEncodeAsync:cs,_safeParse:qi,_safeParseAsync:Wi,_set:yw,_size:Gs,_startsWith:Ks,_string:mm,_stringFormat:Xi,_stringbool:ep,_success:Nw,_superRefine:Hm,_symbol:Pm,_templateLiteral:Ew,_toLowerCase:ru,_toUpperCase:nu,_transform:kw,_trim:tu,_tuple:hw,_uint32:Im,_uint64:Em,_ulid:Us,_undefined:Cm,_union:mw,_unknown:Dm,_uppercase:Bs,_url:Qo,_uuid:zs,_uuidv4:Ns,_uuidv6:js,_uuidv7:Ts,_void:Am,_xid:Ms,clone:Nr,config:cr,decode:fy,decodeAsync:py,encode:dy,encodeAsync:my,flattenError:Xa,formatError:es,globalConfig:Oo,globalRegistry:Zn,isValidBase64:hs,isValidBase64URL:rf,isValidJWT:af,locales:lm,parse:ts,parseAsync:rs,prettifyError:El,regexes:ms,registry:Ss,safeDecode:hy,safeDecodeAsync:by,safeEncode:gy,safeEncodeAsync:vy,safeParse:Pl,safeParseAsync:Cl,toDotPath:Ol,toJSONSchema:tp,treeifyError:Tl,util:Nl,version:Ud},Symbol.toStringTag,{value:"Module"})),ou=D("ZodISODateTime",(e,r)=>{Vd.init(e,r),jt.init(e,r)});function rp(e){return hm(ou,e)}const au=D("ZodISODate",(e,r)=>{Jd.init(e,r),jt.init(e,r)});function np(e){return vm(au,e)}const su=D("ZodISOTime",(e,r)=>{Bd.init(e,r),jt.init(e,r)});function ip(e){return bm(su,e)}const uu=D("ZodISODuration",(e,r)=>{Yd.init(e,r),jt.init(e,r)});function op(e){return ym(uu,e)}const Mw=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:au,ZodISODateTime:ou,ZodISODuration:uu,ZodISOTime:su,date:np,datetime:rp,duration:op,time:ip},Symbol.toStringTag,{value:"Module"})),ap=(e,r)=>{Ha.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>es(e,o)},flatten:{value:o=>Xa(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Eo,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Eo,2)}},isEmpty:{get(){return e.issues.length===0}}})},Dw=D("ZodError",ap),$r=D("ZodError",ap,{Parent:Error}),sp=Ri($r),up=Fi($r),cp=qi($r),lp=Wi($r),dp=ns($r),fp=is($r),mp=os($r),pp=as($r),gp=ss($r),hp=us($r),vp=cs($r),bp=ls($r),et=D("ZodType",(e,r)=>(Qe.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...o)=>e.clone({...r,checks:[...r.checks??[],...o.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(o,s)=>Nr(e,o,s),e.brand=()=>e,e.register=((o,s)=>(o.add(e,s),e)),e.parse=(o,s)=>sp(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>cp(e,o,s),e.parseAsync=async(o,s)=>up(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>lp(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>dp(e,o,s),e.decode=(o,s)=>fp(e,o,s),e.encodeAsync=async(o,s)=>mp(e,o,s),e.decodeAsync=async(o,s)=>pp(e,o,s),e.safeEncode=(o,s)=>gp(e,o,s),e.safeDecode=(o,s)=>hp(e,o,s),e.safeEncodeAsync=async(o,s)=>vp(e,o,s),e.safeDecodeAsync=async(o,s)=>bp(e,o,s),e.refine=(o,s)=>e.check(tg(o,s)),e.superRefine=o=>e.check(rg(o)),e.overwrite=o=>e.check(qn(o)),e.optional=()=>na(e),e.nullable=()=>ia(e),e.nullish=()=>na(ia(e)),e.nonoptional=o=>Wp(e,o),e.array=()=>$t(e),e.or=o=>nn([e,o]),e.and=o=>Op(e,o),e.transform=o=>oa(e,Pu(o)),e.default=o=>Rp(e,o),e.prefault=o=>qp(e,o),e.catch=o=>Vp(e,o),e.pipe=o=>oa(e,o),e.readonly=()=>Yp(e),e.describe=o=>{const s=e.clone();return Zn.add(s,{description:o}),s},Object.defineProperty(e,"description",{get(){return Zn.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Zn.get(e);const s=e.clone();return Zn.add(s,o[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),cu=D("_ZodString",(e,r)=>{Ji.init(e,r),et.init(e,r);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...s)=>e.check(Vs(...s)),e.includes=(...s)=>e.check(Ys(...s)),e.startsWith=(...s)=>e.check(Ks(...s)),e.endsWith=(...s)=>e.check(Hs(...s)),e.min=(...s)=>e.check(gi(...s)),e.max=(...s)=>e.check(Vo(...s)),e.length=(...s)=>e.check(Jo(...s)),e.nonempty=(...s)=>e.check(gi(1,...s)),e.lowercase=s=>e.check(Js(s)),e.uppercase=s=>e.check(Bs(s)),e.trim=()=>e.check(tu()),e.normalize=(...s)=>e.check(eu(...s)),e.toLowerCase=()=>e.check(ru()),e.toUpperCase=()=>e.check(nu())}),Bo=D("ZodString",(e,r)=>{Ji.init(e,r),cu.init(e,r),e.email=o=>e.check(Is(lu,o)),e.url=o=>e.check(Qo(Ko,o)),e.jwt=o=>e.check(Qs(Su,o)),e.emoji=o=>e.check(Os(du,o)),e.guid=o=>e.check(Wo(Yo,o)),e.uuid=o=>e.check(zs(rn,o)),e.uuidv4=o=>e.check(Ns(rn,o)),e.uuidv6=o=>e.check(js(rn,o)),e.uuidv7=o=>e.check(Ts(rn,o)),e.nanoid=o=>e.check(Es(fu,o)),e.guid=o=>e.check(Wo(Yo,o)),e.cuid=o=>e.check(Ps(mu,o)),e.cuid2=o=>e.check(Cs(pu,o)),e.ulid=o=>e.check(Us(gu,o)),e.base64=o=>e.check(Fs(_u,o)),e.base64url=o=>e.check(qs(ku,o)),e.xid=o=>e.check(Ms(hu,o)),e.ksuid=o=>e.check(Ds(vu,o)),e.ipv4=o=>e.check(Ls(bu,o)),e.ipv6=o=>e.check(As(yu,o)),e.cidrv4=o=>e.check(Zs($u,o)),e.cidrv6=o=>e.check(Rs(wu,o)),e.e164=o=>e.check(Ws(xu,o)),e.datetime=o=>e.check(rp(o)),e.date=o=>e.check(np(o)),e.time=o=>e.check(ip(o)),e.duration=o=>e.check(op(o))});function P(e){return mm(Bo,e)}const jt=D("ZodStringFormat",(e,r)=>{zt.init(e,r),cu.init(e,r)}),lu=D("ZodEmail",(e,r)=>{Ld.init(e,r),jt.init(e,r)});function Lw(e){return Is(lu,e)}const Yo=D("ZodGUID",(e,r)=>{Md.init(e,r),jt.init(e,r)});function Aw(e){return Wo(Yo,e)}const rn=D("ZodUUID",(e,r)=>{Dd.init(e,r),jt.init(e,r)});function yp(e){return zs(rn,e)}function Zw(e){return Ns(rn,e)}function Rw(e){return js(rn,e)}function Fw(e){return Ts(rn,e)}const Ko=D("ZodURL",(e,r)=>{Ad.init(e,r),jt.init(e,r)});function qw(e){return Qo(Ko,e)}function Ww(e){return Qo(Ko,{protocol:/^https?$/,hostname:Kl,...se(e)})}const du=D("ZodEmoji",(e,r)=>{Zd.init(e,r),jt.init(e,r)});function Qw(e){return Os(du,e)}const fu=D("ZodNanoID",(e,r)=>{Rd.init(e,r),jt.init(e,r)});function Gw(e){return Es(fu,e)}const mu=D("ZodCUID",(e,r)=>{Fd.init(e,r),jt.init(e,r)});function Vw(e){return Ps(mu,e)}const pu=D("ZodCUID2",(e,r)=>{qd.init(e,r),jt.init(e,r)});function Jw(e){return Cs(pu,e)}const gu=D("ZodULID",(e,r)=>{Wd.init(e,r),jt.init(e,r)});function Bw(e){return Us(gu,e)}const hu=D("ZodXID",(e,r)=>{Qd.init(e,r),jt.init(e,r)});function Yw(e){return Ms(hu,e)}const vu=D("ZodKSUID",(e,r)=>{Gd.init(e,r),jt.init(e,r)});function Kw(e){return Ds(vu,e)}const bu=D("ZodIPv4",(e,r)=>{Kd.init(e,r),jt.init(e,r)});function Hw(e){return Ls(bu,e)}const yu=D("ZodIPv6",(e,r)=>{Hd.init(e,r),jt.init(e,r)});function Xw(e){return As(yu,e)}const $u=D("ZodCIDRv4",(e,r)=>{Xd.init(e,r),jt.init(e,r)});function e_(e){return Zs($u,e)}const wu=D("ZodCIDRv6",(e,r)=>{ef.init(e,r),jt.init(e,r)});function t_(e){return Rs(wu,e)}const _u=D("ZodBase64",(e,r)=>{tf.init(e,r),jt.init(e,r)});function r_(e){return Fs(_u,e)}const ku=D("ZodBase64URL",(e,r)=>{nf.init(e,r),jt.init(e,r)});function n_(e){return qs(ku,e)}const xu=D("ZodE164",(e,r)=>{of.init(e,r),jt.init(e,r)});function i_(e){return Ws(xu,e)}const Su=D("ZodJWT",(e,r)=>{sf.init(e,r),jt.init(e,r)});function o_(e){return Qs(Su,e)}const eo=D("ZodCustomStringFormat",(e,r)=>{uf.init(e,r),jt.init(e,r)});function a_(e,r,o={}){return Xi(eo,e,r,o)}function s_(e){return Xi(eo,"hostname",fs,e)}function u_(e){return Xi(eo,"hex",md,e)}function c_(e,r){const o=r?.enc??"hex",s=`${e}_${o}`,t=ms[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return Xi(eo,s,t,r)}const Ho=D("ZodNumber",(e,r)=>{vs.init(e,r),et.init(e,r),e.gt=(s,t)=>e.check(Fn(s,t)),e.gte=(s,t)=>e.check(yr(s,t)),e.min=(s,t)=>e.check(yr(s,t)),e.lt=(s,t)=>e.check(Rn(s,t)),e.lte=(s,t)=>e.check(Zr(s,t)),e.max=(s,t)=>e.check(Zr(s,t)),e.int=s=>e.check(Iu(s)),e.safe=s=>e.check(Iu(s)),e.positive=s=>e.check(Fn(0,s)),e.nonnegative=s=>e.check(yr(0,s)),e.negative=s=>e.check(Rn(0,s)),e.nonpositive=s=>e.check(Zr(0,s)),e.multipleOf=(s,t)=>e.check(Ki(s,t)),e.step=(s,t)=>e.check(Ki(s,t)),e.finite=()=>e;const o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function mt(e){return $m(Ho,e)}const hi=D("ZodNumberFormat",(e,r)=>{cf.init(e,r),Ho.init(e,r)});function Iu(e){return _m(hi,e)}function l_(e){return km(hi,e)}function d_(e){return xm(hi,e)}function f_(e){return Sm(hi,e)}function m_(e){return Im(hi,e)}const Xo=D("ZodBoolean",(e,r)=>{bs.init(e,r),et.init(e,r)});function rt(e){return zm(Xo,e)}const ea=D("ZodBigInt",(e,r)=>{ys.init(e,r),et.init(e,r),e.gte=(s,t)=>e.check(yr(s,t)),e.min=(s,t)=>e.check(yr(s,t)),e.gt=(s,t)=>e.check(Fn(s,t)),e.gte=(s,t)=>e.check(yr(s,t)),e.min=(s,t)=>e.check(yr(s,t)),e.lt=(s,t)=>e.check(Rn(s,t)),e.lte=(s,t)=>e.check(Zr(s,t)),e.max=(s,t)=>e.check(Zr(s,t)),e.positive=s=>e.check(Fn(BigInt(0),s)),e.negative=s=>e.check(Rn(BigInt(0),s)),e.nonpositive=s=>e.check(Zr(BigInt(0),s)),e.nonnegative=s=>e.check(yr(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(Ki(s,t));const o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function p_(e){return jm(ea,e)}const zu=D("ZodBigIntFormat",(e,r)=>{lf.init(e,r),ea.init(e,r)});function g_(e){return Om(zu,e)}function h_(e){return Em(zu,e)}const $p=D("ZodSymbol",(e,r)=>{df.init(e,r),et.init(e,r)});function v_(e){return Pm($p,e)}const wp=D("ZodUndefined",(e,r)=>{ff.init(e,r),et.init(e,r)});function b_(e){return Cm(wp,e)}const _p=D("ZodNull",(e,r)=>{mf.init(e,r),et.init(e,r)});function kp(e){return Um(_p,e)}const xp=D("ZodAny",(e,r)=>{pf.init(e,r),et.init(e,r)});function ta(){return Mm(xp)}const Sp=D("ZodUnknown",(e,r)=>{gf.init(e,r),et.init(e,r)});function Wn(){return Dm(Sp)}const Ip=D("ZodNever",(e,r)=>{hf.init(e,r),et.init(e,r)});function Nu(e){return Lm(Ip,e)}const zp=D("ZodVoid",(e,r)=>{vf.init(e,r),et.init(e,r)});function ju(e){return Am(zp,e)}const Tu=D("ZodDate",(e,r)=>{bf.init(e,r),et.init(e,r),e.min=(s,t)=>e.check(yr(s,t)),e.max=(s,t)=>e.check(Zr(s,t));const o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function y_(e){return Zm(Tu,e)}const Np=D("ZodArray",(e,r)=>{$f.init(e,r),et.init(e,r),e.element=r.element,e.min=(o,s)=>e.check(gi(o,s)),e.nonempty=o=>e.check(gi(1,o)),e.max=(o,s)=>e.check(Vo(o,s)),e.length=(o,s)=>e.check(Jo(o,s)),e.unwrap=()=>e.element});function $t(e,r){return Jm(Np,e,r)}function $_(e){const r=e._zod.def.shape;return Dt(Object.keys(r))}const ra=D("ZodObject",(e,r)=>{xf.init(e,r),et.init(e,r),ot(e,"shape",()=>r.shape),e.keyof=()=>Dt(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Wn()}),e.loose=()=>e.clone({...e._zod.def,catchall:Wn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Nu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>wl(e,o),e.safeExtend=o=>_l(e,o),e.merge=o=>kl(e,o),e.pick=o=>yl(e,o),e.omit=o=>$l(e,o),e.partial=(...o)=>xl(Cu,e,o[0]),e.required=(...o)=>Sl(Uu,e,o[0])});function we(e,r){const o={type:"object",get shape(){return Dr(this,"shape",e?Co(e):{}),this.shape},...se(r)};return new ra(o)}function w_(e,r){return new ra({type:"object",get shape(){return Dr(this,"shape",Co(e)),this.shape},catchall:Nu(),...se(r)})}function __(e,r){return new ra({type:"object",get shape(){return Dr(this,"shape",Co(e)),this.shape},catchall:Wn(),...se(r)})}const Ou=D("ZodUnion",(e,r)=>{$s.init(e,r),et.init(e,r),e.options=r.options});function nn(e,r){return new Ou({type:"union",options:e,...se(r)})}const jp=D("ZodDiscriminatedUnion",(e,r)=>{Ou.init(e,r),If.init(e,r)});function to(e,r,o){return new jp({type:"union",options:r,discriminator:e,...se(o)})}const Tp=D("ZodIntersection",(e,r)=>{zf.init(e,r),et.init(e,r)});function Op(e,r){return new Tp({type:"intersection",left:e,right:r})}const Ep=D("ZodTuple",(e,r)=>{_s.init(e,r),et.init(e,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Pp(e,r,o){const s=r instanceof Qe,t=s?o:r,a=s?r:null;return new Ep({type:"tuple",items:e,rest:a,...se(t)})}const Eu=D("ZodRecord",(e,r)=>{jf.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Bt(e,r,o){return new Eu({type:"record",keyType:e,valueType:r,...se(o)})}function k_(e,r,o){const s=Nr(e);return s._zod.values=void 0,new Eu({type:"record",keyType:s,valueType:r,...se(o)})}const Cp=D("ZodMap",(e,r)=>{Tf.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function x_(e,r,o){return new Cp({type:"map",keyType:e,valueType:r,...se(o)})}const Up=D("ZodSet",(e,r)=>{Ef.init(e,r),et.init(e,r),e.min=(...o)=>e.check(Hi(...o)),e.nonempty=o=>e.check(Hi(1,o)),e.max=(...o)=>e.check(Go(...o)),e.size=(...o)=>e.check(Gs(...o))});function S_(e,r){return new Up({type:"set",valueType:e,...se(r)})}const ro=D("ZodEnum",(e,r)=>{Cf.init(e,r),et.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const o=new Set(Object.keys(r.entries));e.extract=(s,t)=>{const a={};for(const f of s)if(o.has(f))a[f]=r.entries[f];else throw new Error(`Key ${f} not found in enum`);return new ro({...r,checks:[],...se(t),entries:a})},e.exclude=(s,t)=>{const a={...r.entries};for(const f of s)if(o.has(f))delete a[f];else throw new Error(`Key ${f} not found in enum`);return new ro({...r,checks:[],...se(t),entries:a})}});function Dt(e,r){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new ro({type:"enum",entries:o,...se(r)})}function I_(e,r){return new ro({type:"enum",entries:e,...se(r)})}const Mp=D("ZodLiteral",(e,r)=>{Uf.init(e,r),et.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function xt(e,r){return new Mp({type:"literal",values:Array.isArray(e)?e:[e],...se(r)})}const Dp=D("ZodFile",(e,r)=>{Mf.init(e,r),et.init(e,r),e.min=(o,s)=>e.check(Hi(o,s)),e.max=(o,s)=>e.check(Go(o,s)),e.mime=(o,s)=>e.check(Xs(Array.isArray(o)?o:[o],s))});function z_(e){return Bm(Dp,e)}const Lp=D("ZodTransform",(e,r)=>{Df.init(e,r),et.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new To(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(mi(a,o.value,r));else{const f=a;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=o.value),f.inst??(f.inst=e),o.issues.push(mi(f))}};const t=r.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o)):(o.value=t,o)}});function Pu(e){return new Lp({type:"transform",transform:e})}const Cu=D("ZodOptional",(e,r)=>{Af.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function na(e){return new Cu({type:"optional",innerType:e})}const Ap=D("ZodNullable",(e,r)=>{Zf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ia(e){return new Ap({type:"nullable",innerType:e})}function N_(e){return na(ia(e))}const Zp=D("ZodDefault",(e,r)=>{Rf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Rp(e,r){return new Zp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Uo(r)}})}const Fp=D("ZodPrefault",(e,r)=>{qf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function qp(e,r){return new Fp({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():Uo(r)}})}const Uu=D("ZodNonOptional",(e,r)=>{Wf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Wp(e,r){return new Uu({type:"nonoptional",innerType:e,...se(r)})}const Qp=D("ZodSuccess",(e,r)=>{Gf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function j_(e){return new Qp({type:"success",innerType:e})}const Gp=D("ZodCatch",(e,r)=>{Vf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vp(e,r){return new Gp({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const Jp=D("ZodNaN",(e,r)=>{Jf.init(e,r),et.init(e,r)});function T_(e){return Fm(Jp,e)}const Mu=D("ZodPipe",(e,r)=>{Bf.init(e,r),et.init(e,r),e.in=r.in,e.out=r.out});function oa(e,r){return new Mu({type:"pipe",in:e,out:r})}const Du=D("ZodCodec",(e,r)=>{Mu.init(e,r),ks.init(e,r)});function O_(e,r,o){return new Du({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}const Bp=D("ZodReadonly",(e,r)=>{Yf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Yp(e){return new Bp({type:"readonly",innerType:e})}const Kp=D("ZodTemplateLiteral",(e,r)=>{Hf.init(e,r),et.init(e,r)});function E_(e,r){return new Kp({type:"template_literal",parts:e,...se(r)})}const Hp=D("ZodLazy",(e,r)=>{tm.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.getter()});function Lu(e){return new Hp({type:"lazy",getter:e})}const Xp=D("ZodPromise",(e,r)=>{em.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function P_(e){return new Xp({type:"promise",innerType:e})}const eg=D("ZodFunction",(e,r)=>{Xf.init(e,r),et.init(e,r)});function aa(e){return new eg({type:"function",input:Array.isArray(e?.input)?Pp(e?.input):e?.input??$t(Wn()),output:e?.output??Wn()})}const sa=D("ZodCustom",(e,r)=>{rm.init(e,r),et.init(e,r)});function C_(e){const r=new Mt({check:"custom"});return r._zod.check=e,r}function U_(e,r){return Ym(sa,e??(()=>!0),r)}function tg(e,r={}){return Km(sa,e,r)}function rg(e){return Hm(e)}function M_(e,r={error:`Input not instance of ${e.name}`}){const o=new sa({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...se(r)});return o._zod.bag.Class=e,o}const D_=(...e)=>ep({Codec:Du,Boolean:Xo,String:Bo},...e);function L_(e){const r=Lu(()=>nn([P(e),mt(),rt(),kp(),$t(r),Bt(P(),r)]));return r}function A_(e,r){return oa(Pu(e),r)}const Z_={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function R_(e){cr({customError:e})}function F_(){return cr().customError}var Au;Au||(Au={});function q_(e){return pm(Bo,e)}function W_(e){return wm(Ho,e)}function Q_(e){return Nm(Xo,e)}function G_(e){return Tm(ea,e)}function V_(e){return Rm(Tu,e)}const J_=Object.freeze(Object.defineProperty({__proto__:null,bigint:G_,boolean:Q_,date:V_,number:W_,string:q_},Symbol.toStringTag,{value:"Module"}));cr(om());const B_=Object.freeze(Object.defineProperty({__proto__:null,$brand:dl,$input:fm,$output:dm,NEVER:ll,TimePrecision:gm,ZodAny:xp,ZodArray:Np,ZodBase64:_u,ZodBase64URL:ku,ZodBigInt:ea,ZodBigIntFormat:zu,ZodBoolean:Xo,ZodCIDRv4:$u,ZodCIDRv6:wu,ZodCUID:mu,ZodCUID2:pu,ZodCatch:Gp,ZodCodec:Du,ZodCustom:sa,ZodCustomStringFormat:eo,ZodDate:Tu,ZodDefault:Zp,ZodDiscriminatedUnion:jp,ZodE164:xu,ZodEmail:lu,ZodEmoji:du,ZodEnum:ro,ZodError:Dw,ZodFile:Dp,get ZodFirstPartyTypeKind(){return Au},ZodFunction:eg,ZodGUID:Yo,ZodIPv4:bu,ZodIPv6:yu,ZodISODate:au,ZodISODateTime:ou,ZodISODuration:uu,ZodISOTime:su,ZodIntersection:Tp,ZodIssueCode:Z_,ZodJWT:Su,ZodKSUID:vu,ZodLazy:Hp,ZodLiteral:Mp,ZodMap:Cp,ZodNaN:Jp,ZodNanoID:fu,ZodNever:Ip,ZodNonOptional:Uu,ZodNull:_p,ZodNullable:Ap,ZodNumber:Ho,ZodNumberFormat:hi,ZodObject:ra,ZodOptional:Cu,ZodPipe:Mu,ZodPrefault:Fp,ZodPromise:Xp,ZodReadonly:Bp,ZodRealError:$r,ZodRecord:Eu,ZodSet:Up,ZodString:Bo,ZodStringFormat:jt,ZodSuccess:Qp,ZodSymbol:$p,ZodTemplateLiteral:Kp,ZodTransform:Lp,ZodTuple:Ep,ZodType:et,ZodULID:gu,ZodURL:Ko,ZodUUID:rn,ZodUndefined:wp,ZodUnion:Ou,ZodUnknown:Sp,ZodVoid:zp,ZodXID:hu,_ZodString:cu,_default:Rp,_function:aa,any:ta,array:$t,base64:r_,base64url:n_,bigint:p_,boolean:rt,catch:Vp,check:C_,cidrv4:e_,cidrv6:t_,clone:Nr,codec:O_,coerce:J_,config:cr,core:Uw,cuid:Vw,cuid2:Jw,custom:U_,date:y_,decode:fp,decodeAsync:pp,discriminatedUnion:to,e164:i_,email:Lw,emoji:Qw,encode:dp,encodeAsync:mp,endsWith:Hs,enum:Dt,file:z_,flattenError:Xa,float32:l_,float64:d_,formatError:es,function:aa,getErrorMap:F_,globalRegistry:Zn,gt:Fn,gte:yr,guid:Aw,hash:c_,hex:u_,hostname:s_,httpUrl:Ww,includes:Ys,instanceof:M_,int:Iu,int32:f_,int64:g_,intersection:Op,ipv4:Hw,ipv6:Xw,iso:Mw,json:L_,jwt:o_,keyof:$_,ksuid:Kw,lazy:Lu,length:Jo,literal:xt,locales:lm,looseObject:__,lowercase:Js,lt:Rn,lte:Zr,map:x_,maxLength:Vo,maxSize:Go,mime:Xs,minLength:gi,minSize:Hi,multipleOf:Ki,nan:T_,nanoid:Gw,nativeEnum:I_,negative:Wm,never:Nu,nonnegative:Gm,nonoptional:Wp,nonpositive:Qm,normalize:eu,null:kp,nullable:ia,nullish:N_,number:mt,object:we,optional:na,overwrite:qn,parse:sp,parseAsync:up,partialRecord:k_,pipe:oa,positive:qm,prefault:qp,preprocess:A_,prettifyError:El,promise:P_,property:Vm,readonly:Yp,record:Bt,refine:tg,regex:Vs,regexes:ms,registry:Ss,safeDecode:hp,safeDecodeAsync:bp,safeEncode:gp,safeEncodeAsync:vp,safeParse:cp,safeParseAsync:lp,set:S_,setErrorMap:R_,size:Gs,startsWith:Ks,strictObject:w_,string:P,stringFormat:a_,stringbool:D_,success:j_,superRefine:rg,symbol:v_,templateLiteral:E_,toJSONSchema:tp,toLowerCase:ru,toUpperCase:nu,transform:Pu,treeifyError:Tl,trim:tu,tuple:Pp,uint32:m_,uint64:h_,ulid:Bw,undefined:b_,union:nn,unknown:Wn,uppercase:Bs,url:qw,util:Nl,uuid:yp,uuidv4:Zw,uuidv6:Rw,uuidv7:Fw,void:ju,xid:Yw},Symbol.toStringTag,{value:"Module"}));var Y_=Object.defineProperty,on=(e,r)=>Y_(e,"name",{value:r,configurable:!0}),ng=Dt(["rating","single_choice","nps","nested_selection","multiple_choice_multiple","short_answer","long_text","annotation"]).describe("Enumeration of all supported question types for form fields"),K_={RATING:"rating",SINGLE_CHOICE:"single_choice",NPS:"nps",NESTED_SELECTION:"nested_selection",MULTIPLE_CHOICE_MULTIPLE:"multiple_choice_multiple",SHORT_ANSWER:"short_answer",LONG_TEXT:"long_text",ANNOTATION:"annotation"},ig=Dt(["required","min","max","minLength","maxLength","pattern","email","url","custom"]).describe("Enumeration of all supported validation rule types"),H_={REQUIRED:"required",MIN:"min",MAX:"max",MIN_LENGTH:"minLength",MAX_LENGTH:"maxLength",PATTERN:"pattern",EMAIL:"email",URL:"url",CUSTOM:"custom"},og=we({type:ig.describe("Type of validation rule to apply"),value:nn([P(),mt(),rt()]).optional().describe("Value for the validation rule (string, number, or boolean)"),message:P().optional().describe("Custom error message when validation fails"),describe:P().max(500).optional().describe("LLM tool call description for this validation rule")}).describe("Schema defining validation rules for question responses"),X_=Dt(["equals","not_equals","contains","not_contains","greater_than","less_than","is_empty","is_not_empty"]).describe("Enumeration of all supported visibility condition operators"),ek={EQUALS:"equals",NOT_EQUALS:"not_equals",CONTAINS:"contains",NOT_CONTAINS:"not_contains",GREATER_THAN:"greater_than",LESS_THAN:"less_than",IS_EMPTY:"is_empty",IS_NOT_EMPTY:"is_not_empty"},ag=we({field:P().describe("ID of the field to check against"),operator:X_.describe("Comparison operator for the condition"),value:nn([P(),mt(),rt()]).optional().describe("Value to compare against (string, number, or boolean)"),describe:P().max(500).optional().describe("LLM tool call description for this visibility condition")}).describe("Schema defining conditions that control when questions are visible"),ua=we({id:P().describe("Unique identifier for the section"),title:P().min(1).max(200).describe("Display title for the section"),questionIds:$t(P()).min(1).describe("Array of question IDs that belong to this section")}).describe("Schema defining sections that organize questions into logical groups"),sg=Dt(["D","P","A","S"]),tk={DRAFT:"D",PUBLISHED:"P",ARCHIVED:"A",SUSPENDED:"S"},ug=Dt(["star","heart","thumbs-up","diamond","emoji","emoji-exp"]),rk={STAR:"star",HEART:"heart",THUMBS_UP:"thumbs_up",DIAMOND:"diamond",EMOJI:"emoji",EMOJI_EXP:"emoji_exp"},cg=Dt(["small","medium","large"]),nk={SMALL:"small",MEDIUM:"medium",LARGE:"large"},lg=Dt(["radio","list","chip","dropdown"]),ik={RADIO:"radio",LIST:"list",CHIP:"chip",DROPDOWN:"dropdown"},dg=Dt(["checkbox","list","chip"]),ok={CHECKBOX:"checkbox",LIST:"list",CHIP:"chip"},fg=Dt(["randomize","flip","rotate","ascending","none"]),ak={RANDOMIZE:"randomize",FLIP:"flip",ROTATE:"rotate",ASCENDING:"ascending",NONE:"none"},an=we({id:P().describe("Unique identifier for the question"),type:ng.describe("The type of question (rating, single_choice, etc.)"),title:P().min(1).max(200).describe("The main title/question text displayed to users"),description:P().max(1e3).optional().describe("Optional detailed description or help text"),describe:P().max(2e3).optional().describe("LLM tool call description for better AI understanding and context"),required:rt().default(!1).describe("Whether this question must be answered"),errorMessage:P().max(500).optional().describe("Custom error message when validation fails"),validations:$t(og).optional().default([]).describe("Array of validation rules to apply"),visibility:$t(ag).optional().default([]).describe("Conditions that control when this question is shown"),isFixed:rt().describe("Whether this question position is fixed or can be reordered"),sectionId:P().optional().describe("ID of the section this question belongs to"),status:sg.describe("Current status of the question (Draft, Published, etc.)")}).describe("Base schema for all question types with common properties"),mg=an.extend({type:xt("rating").describe("Must be exactly 'rating'"),showLabels:rt().optional().describe("Whether to show min/max labels"),minLabel:P().max(100).optional().describe("Label for the minimum rating value"),maxLabel:P().max(100).optional().describe("Label for the maximum rating value"),displayStyle:ug.optional().describe("Visual style for rating display"),numberOfRatings:mt().int().min(1).max(10).describe("Number of rating options (1-10)"),representationSize:cg.optional().describe("Size of rating visual elements"),color:P().regex(/^#[0-9A-F]{6}$/i,"Must be a valid hex color").optional().describe("Hex color for rating elements")}).describe("Schema for rating questions with customizable display options"),pg=an.extend({type:xt("annotation").describe("Must be exactly 'annotation'"),annotationText:P().max(1e3).optional().describe("Text to display when annotation is provided"),noAnnotationText:P().max(500).optional().describe("Text to display when no annotation is provided")}).describe("Schema for annotation questions that provide additional context or instructions"),Zu=we({id:P().describe("Unique identifier for this option (system time milliseconds)"),value:P().min(1).max(100).describe("The internal value used for this option"),label:P().min(1).max(200).describe("The display text shown to users for this option"),describe:P().max(500).optional().describe("LLM tool call description providing context about this option"),imageUrl:P().url().optional().describe("Optional image URL to display with this option")}).describe("Schema for individual options in choice-based questions"),Ru=Lu(()=>we({id:P().describe("Unique identifier for this nested option (system time milliseconds)"),value:P().min(1).max(100).describe("The internal value used for this nested option"),label:P().min(1).max(200).describe("The display text shown for this nested option"),describe:P().max(500).optional().describe("LLM tool call description for this nested option context"),imageUrl:P().url().optional().describe("Optional image URL for this nested option"),hint:P().max(500).optional().describe("Optional hint text to help users understand this nested option"),children:$t(Ru).optional().default([]).describe("Array of child options for hierarchical structure")}).describe("Schema for nested options with hierarchical structure support")),gg=an.extend({type:xt("single_choice").describe("Must be exactly 'single_choice'"),displayStyle:lg.optional().describe("Visual style for displaying options"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:$t(Zu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).describe("Schema for single-choice multiple selection questions"),hg=an.extend({type:xt("multiple_choice_multiple").describe("Must be exactly 'multiple_choice_multiple'"),displayStyle:dg.optional().describe("Visual style for displaying multiple options"),minSelections:mt().int().min(0).optional().describe("Minimum number of options that must be selected"),maxSelections:mt().int().min(1).optional().describe("Maximum number of options that can be selected"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:$t(Zu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).refine(e=>e.minSelections!==void 0&&e.maxSelections!==void 0?e.minSelections<=e.maxSelections:!0,{message:"minSelections cannot be greater than maxSelections",path:["minSelections"]}).describe("Schema for multiple-choice questions allowing multiple selections"),vg=an.extend({type:xt("nps").describe("Must be exactly 'nps'"),min:xt(0).describe("NPS always starts at 0"),max:xt(10).describe("NPS always ends at 10"),minLabel:P().max(100).optional().describe("Label for the minimum NPS value (0)"),maxLabel:P().max(100).optional().describe("Label for the maximum NPS value (10)"),scaleLabels:Bt(P().regex(/^\d+$/),P().max(50)).optional().describe("Custom labels for specific NPS values (0-10)"),prepopulatedValue:mt().int().min(0).max(10).optional().describe("Default value to pre-select (0-10)")}).refine(e=>e.scaleLabels?Object.keys(e.scaleLabels).every(o=>{const s=Number(o);return!isNaN(s)&&s>=0&&s<=10}):!0,{message:"scaleLabels keys must be between 0 and 10 (inclusive)",path:["scaleLabels"]}).describe("Schema for Net Promoter Score questions with 0-10 scale"),bg=an.extend({type:xt("short_answer").describe("Must be exactly 'short_answer'"),maxCharacters:mt().int().min(1).max(1e4).optional().describe("Maximum number of characters allowed"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),placeholder:P().max(200).optional().describe("Placeholder text shown in the input field"),enableRegexValidation:rt().optional().default(!1).describe("Whether to enable regex pattern validation"),regexPattern:P().optional().describe("Regular expression pattern for validation"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:P().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(1e4).optional().describe("Maximum tokens allowed for AI processing"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableRegexValidation&&!e.regexPattern),{message:"regexPattern is required when enableRegexValidation is true",path:["regexPattern"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for short answer questions with optional AI enhancement"),yg=an.extend({type:xt("long_text").describe("Must be exactly 'long_text'"),maxCharacters:mt().int().min(1).max(5e4).optional().describe("Maximum number of characters allowed (higher limit for long text)"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),rows:mt().int().min(1).max(20).optional().describe("Number of textarea rows to display (1-20)"),placeholder:P().max(500).optional().describe("Placeholder text for the textarea (longer for long text)"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:P().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(25e3).optional().describe("Maximum tokens allowed for AI processing (higher for long text)"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for long answer questions with rich text support and AI enhancement"),$g=an.extend({type:xt("nested_selection").describe("Must be exactly 'nested_selection'"),placeholder:P().max(200).optional().describe("Placeholder text for the nested dropdown"),options:$t(Ru).min(1).max(100).describe("Array of nested options for hierarchical selection (1-100 options)"),displayStyle:xt("list").describe("Fixed display style for nested dropdowns"),choiceOrderOption:fg.optional().default("none").describe("How to order the nested choices"),preserveLastChoices:mt().int().min(0).max(10).optional().describe("Number of choice levels to preserve (0-10)"),prepopulatedValue:P().max(1e3).optional().describe("Default value to pre-populate"),allowOther:rt().optional().default(!1).describe('Whether to allow custom "other" options'),otherColumnName:P().max(100).optional().describe('Column name for storing custom "other" values'),maxDepth:mt().int().min(1).max(10).optional().describe("Maximum nesting depth allowed (1-10)"),cascadeLabels:rt().optional().default(!1).describe("Whether to cascade labels from parent options")}).refine(e=>!(e.allowOther&&!e.otherColumnName),{message:"otherColumnName is required when allowOther is true",path:["otherColumnName"]}).describe("Schema for nested dropdown questions with hierarchical option structure"),ca=to("type",[mg,pg,gg,hg,vg,bg,yg,$g]),wg=we({markerNo:P(),timeline:P(),comment:P()}),_g=we({fileType:P(),fileName:P(),markers:$t(wg)}),kg=we({nps:mt().optional().describe("Net Promoter Score value (e.g., 0-10)"),nestedSelection:$t(P()).optional().describe("Array of selected nested option IDs"),longText:P().optional().describe("Long text answer, e.g., paragraph or essay"),shortAnswer:P().optional().describe("Short text answer, e.g., single sentence or word"),singleChoice:P().optional().describe("single selected option ID (for single choice questions)"),rating:mt().optional().describe("Star rating value (e.g., 1-5)"),multipleChoiceMultiple:$t(P()).optional().describe("Array of selected option IDs for multiple choice questions"),annotation:_g.optional().describe("Annotation object containing file and marker details"),others:P().optional().describe("For multiple choice questions and single choice questions, this is the value of the other option")}).describe("Flexible answer item supporting various question types and custom fields"),xg=kg,Sg=Dt(["R","S"]).describe("Enumeration of feedback types: R=Recurring, O=One-time"),sk={RECURRING:"R",ONE_TIME:"S"},Ig=Dt(["Y","N"]).describe("Yes/No enumeration using Y/N values"),uk={YES:"Y",NO:"N"},zg=Dt(["minutes","hours","days","weeks","months","years"]).describe("Time units for recurring feedback schedules"),ck={MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",YEARS:"years"},Ng=we({surveyType:Sg.describe("Type of feedback: R for recurring, O for one-time"),showOnce:Ig.describe("Whether the feedback should be shown only once per user"),stopWhenResponsesCount:P().regex(/^\d+$/,"Must be a valid number string").describe("Stop feedback when this number of responses is reached (as string)"),recurringValue:P().regex(/^\d+$/,"Must be a valid number string").describe("Value for recurring schedule (e.g., every 15 days)"),recurringUnit:zg.describe("Time unit for recurring schedule"),startDate:P().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Start date and time for the feedback in ISO format"),stopDate:P().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Stop date and time for the feedback in ISO format")}).refine(e=>!(e.surveyType==="S"&&e.showOnce==="N"),{message:"One-time feedback must have showOnce set to 'Y'",path:["showOnce"]}).refine(e=>e.surveyType==="R"?parseInt(e.recurringValue)>0:!0,{message:"Recurring feedback must have a positive recurring value",path:["recurringValue"]}).refine(e=>{const r=new Date(e.startDate);return new Date(e.stopDate)>r},{message:"Stop date must be after start date",path:["stopDate"]}).describe("Schema defining frequency and scheduling properties for feedback"),jg=we({isShareable:rt().describe("Whether the feedback results can be shared externally"),isEmailShareable:rt().describe("Whether the feedback can be shared via email")}).describe("Schema defining external publishing and sharing properties for feedback"),Tg=Dt(["P","D","A","S"]).describe("Publication status: P=Published, D=Draft, A=Archived, S=Stopped"),lk={PUBLISHED:"P",DRAFT:"D",ARCHIVED:"A",STOPPED:"S"},Og=we({formTitle:P().describe("Title of the feedback form"),formDescription:P().describe("Description of the feedback form"),isPublished:Tg.describe("Publication status of the feedback form")}).describe("Schema defining feedback configuration properties"),tt=P().min(1).describe("Translated text content"),Eg=we({type:xt("rating").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),minLabel:tt.optional().describe("Minimum rating label translation"),maxLabel:tt.optional().describe("Maximum rating label translation")}).describe("Translation schema for rating questions"),Pg=we({type:xt("single_choice").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for single choice questions"),Cg=we({type:xt("multiple_choice_multiple").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for multiple choice questions"),Ug=we({type:xt("nps").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),minLabel:tt.optional().describe("Minimum NPS label (0) translation"),maxLabel:tt.optional().describe("Maximum NPS label (10) translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","minLabel","maxLabel"].includes(o)).every(o=>/^scaleLabel\.\d+$/.test(o)),{message:"Additional keys must follow the pattern 'scaleLabel.{number}'"}).describe("Translation schema for NPS questions"),Mg=we({type:xt("short_answer").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).describe("Translation schema for short answer questions"),Dg=we({type:xt("long_text").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Textarea placeholder translation")}).describe("Translation schema for long answer questions"),Lg=we({type:xt("nested_selection").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Dropdown placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^nestedOption\..+\.(label|hint)$/.test(o)),{message:"Additional keys must follow the pattern 'nestedOption.{id}.{label|hint}'"}).describe("Translation schema for nested selection questions"),Ag=we({type:xt("annotation").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),annotationText:tt.optional().describe("Annotation display text translation"),noAnnotationText:tt.optional().describe("No annotation display text translation")}).describe("Translation schema for annotation questions"),Zg=nn([Eg,Pg,Cg,Ug,Mg,Dg,Lg,Ag]).describe("Union of all question type translation schemas"),dk=P().min(2).max(10).describe("Language code (e.g., 'en', 'es', 'hi')"),fk=Bt(dk,Zg).describe("Question translations keyed by language code"),Rg=Bt(P().uuid(),fk).describe("Question-centric translations keyed by question ID, then by language code"),Fu=Rg.describe("Question-centric translations at root level"),Fg=class{constructor(r,o="en"){this.translations=r,this.defaultLanguage=o}getQuestionTranslations(r,o){const s=this.translations[r];if(!s)return null;let t=s[o];return t||(t=s[this.defaultLanguage]),t||null}getTranslationText(r,o,s){const t=this.getQuestionTranslations(r,o);if(!t)return null;if(s in t){const a=t[s];return typeof a=="string"?a:null}return null}getQuestionLanguages(r){const o=this.translations[r];return o?Object.keys(o):[]}getAvailableLanguages(){const r=new Set;return Object.values(this.translations).forEach(o=>{Object.keys(o).forEach(s=>{r.add(s)})}),Array.from(r)}isLanguageSupportedForQuestion(r,o){const s=this.translations[r];return s?o in s:!1}isLanguageSupported(r){return this.getAvailableLanguages().includes(r)}getDefaultLanguage(){return this.defaultLanguage}getQuestionIds(){return Object.keys(this.translations)}getQuestionType(r,o){const s=o||this.defaultLanguage;return this.getQuestionTranslations(r,s)?.type||null}};on(Fg,"TranslationProvider");var qg=Fg;function Wg(e,r="en"){return new qg(e,r)}on(Wg,"createTranslationProvider");var Qg=Dt(["fade","manual"]).describe("How the end screen should be dismissed (fade out or manual dismissal)"),mk={FADE:"fade",MANUAL:"manual"},qu=we({title:P().min(1).max(200).describe("The main title displayed on the welcome screen"),description:P().min(1).max(1e3).describe("Description text shown on the welcome screen"),buttonLabel:P().min(1).max(50).describe("Text displayed on the welcome screen button")}).describe("Schema for welcome screen configuration fields"),Wu=we({title:P().min(1).max(200).describe("The main title displayed on the end screen"),message:P().min(1).max(1e3).describe("Message text shown on the end screen"),buttonLabel:P().min(1).max(50).describe("Text displayed on the end screen button"),dismissBehavior:Qg.describe("How the end screen should be dismissed (fade out or manual dismissal)"),fadeDuration:mt().int().min(0).max(1e4).describe("Duration in milliseconds for fade dismissal (0-10000)")}).describe("Schema for end screen configuration fields"),Qu=we({title:P().min(1).max(200).describe("Translated title text for welcome screen"),description:P().min(1).max(1e3).describe("Translated description text for welcome screen"),buttonLabel:P().min(1).max(50).describe("Translated text for the welcome button label")}).describe("Schema for welcome screen translation fields"),Gu=we({buttonLabel:P().min(1).max(50).describe("Translated text for the end button label"),title:P().min(1).max(200).describe("Translated title text for end screen"),message:P().min(1).max(1e3).describe("Translated message text for end screen")}).describe("Schema for end screen translation fields"),Vu=we({pagination:rt().describe("Whether to show pagination for multi-page forms"),questionNumber:rt().describe("Whether to display question numbers"),pageTitle:rt().describe("Whether to show page titles in multi-page forms"),blockerFeedback:rt().describe("Whether to show blocker feedback for validation errors"),submitButtonLabel:P().min(1).max(50).describe("Text for the submit button"),previousButtonLabel:P().min(1).max(50).describe("Text for the previous button in pagination"),nextButtonLabel:P().min(1).max(50).describe("Text for the next button in pagination"),aiEnhancementSuccessMessage:P().min(1).max(100).describe("Message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:P().min(1).max(100).describe("Message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:P().min(1).max(100).describe("Message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration fields"),Ju=we({value:P().min(1).max(10).describe("Language code (e.g., 'en', 'es', 'fr')"),label:P().min(1).max(50).describe("Display name for the language (e.g., 'English', 'Spanish', 'French')"),isFixed:rt().default(!1).describe("Whether this language is fixed and cannot be deleted by users")}).describe("Schema for individual language field with value, label, and fixed status"),la=$t(Ju).describe("Schema for array of available languages"),Bu=we({submitButtonLabel:P().min(1).max(50).describe("Translated text for the submit button"),previousButtonLabel:P().min(1).max(50).describe("Translated text for the previous button in pagination"),nextButtonLabel:P().min(1).max(50).describe("Translated text for the next button in pagination"),aiEnhancementSuccessMessage:P().min(1).max(100).describe("Translated message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:P().min(1).max(100).describe("Translated message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:P().min(1).max(100).describe("Translated message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration field translations"),Yu=Dt(["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]).describe("Available positions for widget placement"),pk={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",MIDDLE_LEFT:"middle-left",MIDDLE_CENTER:"middle-center",MIDDLE_RIGHT:"middle-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},gk=Dt(["light","dark"]).describe("Available theme modes for the widget"),hk={LIGHT:"light",DARK:"dark"},Gg=we({darkOverlay:rt().describe("Whether to show a dark overlay behind the widget"),closeButton:rt().describe("Whether to display a close button on the widget"),progressBar:rt().describe("Whether to show a progress bar indicating completion status"),showBranding:rt().describe("Whether to display branding elements on the widget"),customPosition:rt().describe("Whether custom positioning is enabled"),customIconPosition:rt().describe("Whether custom icon positioning is enabled"),customCss:P().optional().describe("Custom CSS link to apply for the feedback form")}).describe("Feature settings controlling widget UI behavior and appearance"),Ku=we({brandColor:P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #3366CC)").describe("Primary brand color in hex format"),overlayColor:P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #FFFFFF)").describe("Overlay background color in hex format"),textColor:P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #333333)").describe("Primary text color in hex format"),backgroundColor:nn([P().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i),P().regex(/^rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(?:,\s*[01](?:\.\d+)?)?\s*\)$/i)]).describe("Background color in hex format or rgba format (e.g., #1A1A1A or rgba(255,255,255, 1))")}).describe("Color scheme for a single theme"),Hu=we({light:Ku,dark:Ku}).describe("Complete theme configuration with light and dark variants"),Xu=we({themes:Hu.describe("Color themes for light and dark modes"),featureSettings:Gg.describe("UI feature settings controlling widget behavior"),selectedPosition:Yu.describe("Selected position for the main widget"),selectedIconPosition:Yu.describe("Selected position for the widget icon")}).describe("Complete theme and UI configuration including colors, features, and positioning"),Vg=we({name:P().describe("The operator name (e.g., '=', '!=', 'contains', 'beginsWith', 'matches')"),label:P().describe("Human-readable label for the operator (e.g., 'equals', 'not equals', 'contains')")}).describe("Schema defining an operator for custom event fields"),Jg=we({name:P().describe("The field name (e.g., 'event_name', 'add_to_cart', 'cart_item_number')"),label:P().describe("Human-readable label for the field"),placeholder:P().describe("Placeholder text for input fields"),operators:$t(Vg).min(1).describe("Array of available operators for this field")}).describe("Schema defining a custom event field with its operators"),Bg=we({customEventFields:$t(Jg).optional().describe("Array of custom event fields with their operators and labels")}).describe("Schema defining metadata for conditional if clauses"),Yg=we({query:P().describe("The structured query definition as a JSON string"),naturalLanguage:P().describe("Human-readable description of the query conditions"),jsonLogic:P().describe("JSON Logic representation of the query as a JSON string"),sqlQuery:P().describe("SQL representation of the query for database operations")}).describe("Schema defining query output structure with all fields as strings"),Kg=we({id:P().describe("Unique identifier for this condition"),event:P().describe("The event that triggers evaluation of this condition (e.g., 'pageLoad', 'pageView', 'scroll', 'custom')"),queryOutput:Yg.describe("The query conditions to evaluate when the event occurs"),metadata:Bg.optional().describe("Optional metadata containing custom event fields and their configurations")}).describe("Schema defining the 'if' condition for auto-trigger logic"),Hg=we({triggerType:P().describe("The type of action to perform (e.g., 'delay', 'scroll', 'immediately')"),delay:mt().int().min(0).optional().describe("Delay in seconds before performing the action"),scroll:nn([P(),mt()]).optional().describe("Scroll position (percentage as string like '75%' or pixel value as number)")}).describe("Schema defining the action to perform when conditions are met"),Xg=we({if:Kg.describe("The condition that must be met"),then:Hg.describe("The action to perform when the condition is met")}).describe("Schema defining a conditional when clause with if-then logic"),da=we({id:P().describe("Unique identifier for this filter condition"),category:P().describe("The category this filter belongs to (e.g., 'device', 'user', 'geo_location')"),property:P().describe("The property to filter on (e.g., 'device_type', 'age', 'country')"),operator:P().describe("The comparison operator (e.g., 'equals', 'greaterThan', 'lessThan')"),values:$t(P()).min(1).describe("Array of values to compare against"),tbl_key:P().describe("The database table key for this property")}).describe("Schema defining a single filter condition within a category"),eh=we({device:$t(da).optional().describe("Array of device-specific filter conditions"),user:$t(da).optional().describe("Array of user-specific filter conditions"),geo_location:$t(da).optional().describe("Array of geo-location specific filter conditions")}).describe("Schema defining category-specific filters for audience targeting"),th=we({applications:$t(P()).min(1).describe("Array of application names this targeting applies to"),userType:P().describe("The type of user this targeting applies to (e.g., 'both', 'new', 'returning')"),categorySpecificFilters:eh.optional().describe("Optional category-specific filters for more granular targeting")}).describe("Schema defining who the audience targeting applies to"),rh=we({id:P().describe("Unique identifier for the audience segment"),name:P().min(1).max(200).describe("Display name for the audience segment"),isImportant:rt().describe("Whether this segment is marked as important for targeting"),when:$t(Xg).min(1).describe("Array of conditional when clauses with if-then logic"),who:th.describe("User criteria and conditions defining who belongs to this segment")}).describe("Schema defining an audience segment for targeting with conditional logic"),ec=we({isAuto:rt().describe("Whether automatic triggering is enabled for this audience"),isManual:rt().describe("Whether manual triggering is enabled for this audience"),segments:$t(rh).min(0).describe("Array of audience segments for targeting conditions")}).refine(e=>e.isAuto||e.isManual,{message:"At least one of isAuto or isManual must be true",path:["isAuto"]}).describe("Schema defining audience trigger properties for form targeting"),fa=to("isEnabled",[we({isEnabled:xt(!1).describe("Whether other configuration properties are enabled"),otherFields:Vu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Bt(P(),Bu).optional().describe("Translations for other configuration field labels and buttons keyed by language code")}),we({isEnabled:xt(!0).describe("Whether other configuration properties are enabled"),otherFields:Vu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Bt(P(),Bu).describe("Translations for other configuration field labels and buttons keyed by language code")})]).describe("Schema for other configuration properties including fields and translations"),ma=to("isEnabled",[we({isEnabled:xt(!1).describe("Whether welcome screen is enabled"),welcomeFields:qu.optional().describe("Welcome screen configuration fields including title, description, and button label"),translations:Bt(P(),Qu).optional().describe("Translations for welcome screen content keyed by language code")}),we({isEnabled:xt(!0).describe("Whether welcome screen is enabled"),welcomeFields:qu.describe("Welcome screen configuration fields including title, description, and button label"),translations:Bt(P(),Qu).describe("Translations for welcome screen content keyed by language code")})]).describe("Schema for welcome screen properties including fields and translations"),pa=to("isEnabled",[we({isEnabled:xt(!1).describe("Whether end screen is enabled"),endFields:Wu.optional().describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Bt(P(),Gu).optional().describe("Translations for end screen content keyed by language code")}),we({isEnabled:xt(!0).describe("Whether end screen is enabled"),endFields:Wu.describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Bt(P(),Gu).describe("Translations for end screen content keyed by language code")})]).describe("Schema for end screen properties including fields and translations"),nh=we({themeConfiguration:Xu.describe("Theme configuration including colors, features, and positioning")}).describe("Schema for appearance properties including theme configuration"),vk=we({feedbackConfigurationId:yp().describe("Unique identifier for the feedback configuration"),feedbackConfiguration:Og.describe("Configuration properties for the feedback form"),questionnaireFields:we({questions:Bt(P(),ca).describe("Collection of questions keyed by their string identifiers"),sections:$t(ua).describe("Array of sections that organize questions into logical groups"),selectedLanguages:la.describe("Array of languages selected for this questionnaire"),translations:Fu.describe("Multi-language translations for questions and form content")}).describe("Fields defining the questionnaire structure, questions, sections, selected languages, and translations"),frequencyAndSchedulingProperties:Ng.describe("Properties controlling when and how often the feedback is shown"),externalPublishingProperties:jg.describe("Properties controlling external sharing and publishing of feedback results"),audienceTriggerProperties:ec.describe("Properties defining audience targeting and trigger conditions for the feedback form"),otherConfigurationProperties:fa.describe("Additional configuration properties including form display options and translations"),welcomeScreenProperties:ma.describe("Welcome screen configuration including content and translations"),endScreenProperties:pa.describe("End screen configuration including content, dismissal behavior, and translations"),appearanceProperties:nh.describe("Appearance configuration including themes, colors, and UI feature settings")}).describe("Complete schema for all feedback-level properties including scheduling, publishing, audience targeting, configuration, screens, and appearance"),ih=we({mandatoryFetchConfigAtPaths:$t(P()).describe("Array of paths where configuration must be fetched from server when navigated by user"),configSyncIntervalSeconds:mt().int().positive().describe("Interval in seconds for configuration synchronization between client and server"),disableAllSurvey:rt().describe("Flag to disable all surveys globally"),feedbackIntervalDuration:mt().int().positive().describe("Duration in seconds for feedback interval between two auto triggered feedbacks")}).describe("Master properties configuration for global survey settings"),oh=Dt(["light","dark","system"]).describe("Enumeration of supported theme modes"),bk={LIGHT:"light",DARK:"dark",SYSTEM:"system"},no=we({$deviceType:P().describe("Type of device being used"),$timezone:P().describe("Device timezone (e.g., 'Asia/Calcutta')"),$theme:oh.describe("Current theme mode preference"),$os:P().describe("Operating system running on the device"),$osVersion:P().describe("Version of the operating system"),$appVersion:P().describe("Version of the application"),$app:P().describe("Browser or application being used"),$language:P().describe("Language preference (e.g., 'en-GB')")}).describe("Device information collected from the client"),io=we({$sessionId:P().uuid().describe("Unique session identifier"),$timestamp:P().optional().describe("ISO timestamp of the session")}).describe("Session information for tracking user sessions"),yk=we({deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information")}).describe("Combined device and session information"),ah=we({$counter:Bt(P(),mt().int()).describe("Counter properties for user tracking (can be positive or negative)").optional(),$set:Bt(P(),ta()).describe("Properties to set for the user").optional(),$setOnce:Bt(P(),ta()).describe("Properties to set once for the user (won't overwrite existing values)").optional(),$unset:$t(P()).describe("Array of property names to unset/remove from the user").optional()}).loose().describe("User properties including counters, set operations, and other dynamic data"),ga=we({userName:P().email().describe("User's email address as username"),properties:ah.describe("User properties and counters")}).describe("User information including identification and properties"),sh=Dt(["V","S"]).describe("User action: V for view, S for submit"),$k={VIEW:"V",SUBMIT:"S"},ha=we({feedbackIdentifier:P().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),completionTimeInSeconds:mt().int().min(0).describe("Time taken to complete the feedback in seconds"),userAction:sh.describe("Action performed by the user"),responseLanguageCode:P().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Configuration information for the feedback form"),uh=we({questionId:P().uuid().describe("Unique identifier for the question"),answer:xg.describe("The answer provided for this question"),type:P().describe("Type of the question (e.g., 'rating', 'single_choice')"),error:P().optional().describe("Error message if any validation failed")}).describe("Response to a specific question in the feedback form"),ch=we({questions:$t(uh).min(1).describe("Array of question responses")}).describe("User responses to feedback questions"),lh=we({customEventName:P().nullable().describe("Custom event name that triggered the feedback"),currentPath:P().describe("Current page path where feedback was triggered"),eventType:P().describe("Type of event that triggered the feedback")}).passthrough().describe("Properties of the trigger that matched for this feedback"),tc=we({formConfig:ha.describe("Form configuration information"),deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information"),userInfo:ga.optional().describe("User information (optional)"),matchedTriggerProperties:lh.describe("Properties of the matched trigger"),customProperties:Bt(P(),Wn()).optional().describe("Custom properties for advanced use cases")}).describe("Base submit feedback request schema"),dh=tc.extend({formConfig:ha.extend({userAction:xt("V").describe("Action performed by the user (view)")})}).strict().describe("View feedback request schema (no response required)"),fh=tc.extend({formConfig:ha.extend({userAction:xt("S").describe("Action performed by the user (submit)")}),response:ch.describe("User responses (required for submit)")}).strict().describe("Submit feedback request schema (response required)"),wk=nn([dh,fh]).describe("Union schema for both view and submit feedback requests"),mh=we({feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),feedbackTitle:P().describe("Title of the feedback configuration"),triggerProperties:ec.describe("Trigger properties including auto/manual settings and audience segments"),appearanceProperties:we({themes:we({light:we({brandColor:P().describe("Brand color for light theme"),overlayColor:P().describe("Overlay color for light theme"),textColor:P().describe("Text color for light theme"),backgroundColor:P().describe("Background color for light theme")}).describe("Light theme colors"),dark:we({brandColor:P().describe("Brand color for dark theme"),overlayColor:P().describe("Overlay color for dark theme"),textColor:P().describe("Text color for dark theme"),backgroundColor:P().describe("Background color for dark theme")}).describe("Dark theme colors")}).nullable().optional().describe("Theme configuration (optional)"),featureSettings:we({darkOverlay:rt().describe("Whether to show dark overlay"),closeButton:rt().describe("Whether to show close button"),progressBar:rt().describe("Whether to show progress bar"),showBranding:rt().describe("Whether to show branding"),customPosition:rt().describe("Whether custom position is enabled"),customIconPosition:rt().describe("Whether custom icon position is enabled"),customCss:P().nullable().optional().describe("Custom CSS link (optional)")}).describe("Feature settings for the feedback form"),selectedIconPosition:P().describe("Selected position for the feedback icon"),selectedPosition:P().describe("Selected position for the feedback form")}).describe("Appearance properties for the feedback form")}).describe("Individual feedback configuration item in the list"),ph=we({feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),responseLanguageCode:P().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Form configuration for fetching feedback details"),_k=we({deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information"),userInfo:ga.optional().describe("User information (optional)"),force:rt().optional().describe("Forcefully fetch eligible feedback list (optional)")}).strict().describe("Request schema for fetching available feedback configurations"),kk=we({formConfig:ph.describe("Form configuration for the specific feedback"),deviceInfo:no.describe("Device information"),sessionInfo:io.describe("Session information"),userInfo:ga.optional().describe("User information (optional)")}).strict().describe("Request schema for fetching specific feedback form details"),gh=we({formTitle:P().describe("Title of the feedback form"),formDescription:P().describe("Description of the feedback form")}).describe("Form configuration response with title and description"),hh=we({questions:Bt(P(),ca).describe("Collection of questions keyed by their string identifiers"),sections:$t(ua).describe("Array of sections that organize questions into logical groups"),translations:Bt(P(),ta()).describe("Translations object (can be empty or contain language-specific translations)"),selectedLanguages:la.describe("Array of languages selected for this questionnaire")}).describe("Questionnaire fields response including questions, sections, translations, and selected languages"),xk=we({feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),feedbackIdentifier:P().uuid().describe("Unique identifier for this specific feedback instance"),formConfiguration:gh.describe("Form configuration with title and description"),questionnaireFields:hh.describe("Questionnaire structure including questions, sections, translations, and languages"),otherConfigurationProperties:fa.describe("Other configuration properties using existing schema"),welcomeScreenProperties:ma.describe("Welcome screen properties using existing schema"),endScreenProperties:pa.describe("End screen properties using existing schema")}).strict().describe("Complete response schema for fetchFeedbackDetails API using existing field schemas"),Sk=we({masterProperties:ih.describe("Master properties for global survey settings"),feedbackConfiguration:$t(mh).describe("Array of available feedback configurations")}).strict().describe("Response schema for fetchConfigurationList API"),Ik=we({questionId:P().describe("Unique identifier for the question"),identifier:P().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:P().uuid().describe("Unique identifier for the feedback configuration"),userText:P().describe("Original text input from the user")}).strict().describe("Request schema for refining user text input"),vh=we({userText:P().describe("Original text input from the user"),refinedText:P().describe("Refined/improved version of the user text")}).describe("Data containing original and refined text"),zk=we({success:rt().describe("Indicates whether the operation was successful"),code:P().describe("Response code indicating the status"),message:P().describe("Human-readable message describing the result"),messageId:P().describe("Unique identifier for the response message"),data:vh.describe("Response data containing original and refined text"),error:P().optional().describe("Error message if the operation failed (optional)")}).strict().describe("Response schema for refine text API operation");function vi(e,r){if(e===null||typeof e>"u"||typeof e!="object")return e;const o=Array.isArray(e)?[]:{};for(const[s,t]of Object.entries(e)){let a=s;typeof s=="string"&&!s.includes("-")&&(a=r(s)),o[a]=Array.isArray(t)?t.map(f=>typeof f=="object"&&!(f instanceof Uint8Array)&&!(f instanceof Date)?vi(f,r):f):t instanceof Uint8Array||t instanceof Date?t:typeof t=="object"?vi(t,r):t}return o}on(vi,"convertObject");function va(e){return e.length===1?e.toLowerCase():e.replace(/^([A-Z])/,r=>r[0].toLowerCase()).replace(/[_-]([a-z0-9])/g,r=>r[1].toUpperCase())}on(va,"toCamel");function bh(e){return vi(e,va)}on(bh,"objectToCamel");function rc(e){let r=e,o=0;for(;(/([a-z])([0-9])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/([a-z])([0-9])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;for(;(/(.+?)([A-Z])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/(.+?)([A-Z])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;return r.toLowerCase()}on(rc,"toSnake");function yh(e){return vi(e,rc)}on(yh,"objectToSnake");function nc(e){return va(e).replace(/^([a-z])/,r=>r[0].toUpperCase())}on(nc,"toPascal");function $h(e){return vi(e,nc)}on($h,"objectToPascal");var wh=Dt(["light","dark"]).describe("Current theme mode of the application"),Nk={LIGHT:"light",DARK:"dark"},jk=we({theme:Hu.describe("Theme configuration including light and dark theme colors"),currentMode:wh.describe("Current theme mode (light or dark)"),currentLanguage:Ju.describe("Currently selected language configuration"),questions:Bt(P(),ca).describe("Collection of questions keyed by their string identifiers"),questionLanguages:la.describe("Available languages for questions"),otherConfigurationProperties:fa.describe("Other configuration properties including form display options and translations"),welcomeScreenProperties:ma.optional().describe("Welcome screen configuration (optional)"),endScreenProperties:pa.optional().describe("End screen configuration (optional)"),translations:Fu.optional().describe("Multi-language translations for questions and form content (optional)"),onSectionChange:aa({input:[mt()],output:ju()}).optional().describe("Optional callback function triggered when section changes"),onClose:aa({input:[],output:ju()}).optional().describe("Optional callback function triggered when the form is closed"),sections:$t(ua).describe("Array of sections that organize questions into logical groups"),themeSettings:Xu.describe("Complete theme configuration including colors, features, and positioning")}).describe("Schema for application props interface containing all form configuration and state");const Tk=Lb(Object.freeze(Object.defineProperty({__proto__:null,AnnotationMarkerSchema:wg,AnnotationSchema:_g,AnswerItemSchema:kg,AnswerSchema:xg,ChoiceOrderOptions:ak,CurrentModes:Nk,DeviceThemes:bk,DismissBehaviors:mk,EndFieldsTranslationSchema:Gu,EndScreenFieldsSchema:Wu,LanguageFieldSchema:Ju,LanguagesSchema:la,MultipleChoiceDisplayStyles:ik,MultipleChoiceMultipleDisplayStyles:ok,OtherFieldsSchema:Vu,OtherFieldsTranslationSchema:Bu,Positions:pk,PublicationStatuses:lk,QuestionStatuses:tk,QuestionTypes:K_,RatingDisplayStyles:rk,RatingRepresentationSizes:nk,RecurringUnits:ck,SurveyTypes:sk,ThemeModes:hk,TranslationProvider:qg,UserActions:$k,ValidationRuleTypes:H_,VisibilityConditionOperators:ek,WelcomeFieldsTranslationSchema:Qu,WelcomeScreenFieldsSchema:qu,YesNoValues:uk,annotationQuestionSchema:pg,annotationQuestionTranslationSchema:Ag,appPropsSchema:jk,appearancePropertiesSchema:nh,audienceSegmentSchema:rh,audienceTriggerPropertiesSchema:ec,baseSubmitFeedbackSchema:tc,categorySpecificFiltersSchema:eh,choiceOrderOptionSchema:fg,combinedQuestionSchema:ca,conditionalIfMetadataSchema:Bg,conditionalIfSchema:Kg,conditionalWhenSchema:Xg,createTranslationProvider:Wg,currentModeSchema:wh,customEventFieldOperatorSchema:Vg,customEventFieldSchema:Jg,deviceInfoSchema:no,deviceSessionInfoSchema:yk,deviceThemeSchema:oh,dismissBehaviorSchema:Qg,endScreenPropertiesSchema:pa,externalPublishingPropertiesSchema:jg,featureSettingsSchema:Gg,feedbackConfigurationItemSchema:mh,feedbackConfigurationSchema:Og,feedbackRequestSchema:wk,fetchConfigurationListResponseSchema:Sk,fetchConfigurationListSchema:_k,fetchFeedbackDetailsResponseSchema:xk,fetchFeedbackDetailsSchema:kk,fetchFormConfigSchema:ph,filterConditionSchema:da,formConfigSchema:ha,formConfigurationResponseSchema:gh,formPropertiesSchema:vk,frequencyAndSchedulingPropertiesSchema:Ng,longAnswerQuestionSchema:yg,longAnswerQuestionTranslationSchema:Dg,masterPropertiesSchema:ih,matchedTriggerPropertiesSchema:lh,multipleChoiceDisplayStyleSchema:lg,multipleChoiceMultipleDisplayStyleSchema:dg,multipleChoiceMultipleQuestionSchema:hg,multipleChoiceQuestionTranslationSchema:Cg,multipleChoiceSingleQuestionSchema:gg,nestedDropdownQuestionSchema:$g,nestedOptionSchema:Ru,nestedSelectionQuestionTranslationSchema:Lg,npsQuestionSchema:vg,npsQuestionTranslationSchema:Ug,objectToCamel:bh,objectToPascal:$h,objectToSnake:yh,otherConfigurationPropertiesSchema:fa,positionSchema:Yu,publicationStatusSchema:Tg,queryOutputSchema:Yg,questionCentricTranslationsSchema:Rg,questionOptionSchema:Zu,questionResponseSchema:uh,questionSchema:an,questionStatusSchema:sg,questionTranslationSchema:Zg,questionTypeSchema:ng,questionnaireFieldsResponseSchema:hh,ratingDisplayStyleSchema:ug,ratingQuestionSchema:mg,ratingQuestionTranslationSchema:Eg,ratingRepresentationSizeSchema:cg,recurringUnitSchema:zg,refineTextDataSchema:vh,refineTextParamsSchema:Ik,refineTextResponseSchema:zk,responseSchema:ch,sectionSchema:ua,sessionInfoSchema:io,shortAnswerQuestionSchema:bg,shortAnswerQuestionTranslationSchema:Mg,singleChoiceQuestionTranslationSchema:Pg,submitFeedbackSchema:fh,surveyTypeSchema:Sg,themeColorsSchema:Ku,themeConfigurationSchema:Xu,themeModeSchema:gk,themesSchema:Hu,toCamel:va,toPascal:nc,toSnake:rc,translationEntrySchema:tt,translationsSchema:Fu,triggerActionSchema:Hg,userActionSchema:sh,userInfoSchema:ga,userPropertiesSchema:ah,validationRuleSchema:og,validationRuleTypeSchema:ig,viewFeedbackSchema:dh,visibilityConditionSchema:ag,welcomeScreenPropertiesSchema:ma,whoSchema:th,yesNoSchema:Ig,z:B_},Symbol.toStringTag,{value:"Module"})));var Ok=Li.exports,_h;function Ek(){return _h||(_h=1,(function(e,r){(function(o,s){s(r,Tk)})(Ok,(function(o,s){typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let t=!1,a=!1;function f(){t=!0}f();const _=1,q=2,X=4,ce=8,ue=16,ze=1,ge=2,A=4,ye=8,Me=16,pt=1,ct=2,dt="[",bt="[!",lr="]",Br={},Qt=Symbol(),ba="http://www.w3.org/1999/xhtml",ic="http://www.w3.org/2000/svg",ya="@attach",oo=!1;var _n=Array.isArray,oc=Array.prototype.indexOf,Qn=Array.from,Gn=Object.keys,Yr=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,ao=Object.getOwnPropertyDescriptors,so=Object.prototype,pe=Array.prototype,Ve=Object.getPrototypeOf,Nt=Object.isExtensible;function Lt(i){return typeof i=="function"}const gt=()=>{};function Tr(i){return i()}function Vn(i){for(var n=0;n<i.length;n++)i[n]()}function bi(){var i,n,u=new Promise((c,d)=>{i=c,n=d});return{promise:u,resolve:i,reject:n}}function Yt(i,n){if(Array.isArray(i))return i;if(!(Symbol.iterator in i))return Array.from(i);const u=[];for(const c of i)if(u.push(c),u.length===n)break;return u}const Zt=2,Jn=4,yi=8,Bn=16,sn=32,kn=64,ac=128,Or=256,$a=512,nr=1024,wr=2048,un=4096,Rr=8192,Yn=16384,sc=32768,Kn=65536,kh=1<<17,Uk=1<<18,Hn=1<<19,xh=1<<20,uc=1<<21,wa=1<<22,Xn=1<<23,Kr=Symbol("$state"),cc=Symbol("legacy props"),Mk=Symbol(""),uo=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dk=1,_a=3,ei=8;function lc(i){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Lk(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ak(i){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zk(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rk(i){throw new Error("https://svelte.dev/e/effect_orphan")}function Fk(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qk(){throw new Error("https://svelte.dev/e/hydration_failed")}function Wk(i){throw new Error("https://svelte.dev/e/props_invalid_value")}function Qk(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gk(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vk(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Jk(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ka(i){console.warn("https://svelte.dev/e/hydration_mismatch")}function Bk(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Yk(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Le=!1;function dr(i){Le=i}let Ge;function Ht(i){if(i===null)throw ka(),Br;return Ge=i}function cn(){return Ht(Xr(Ge))}function L(i){if(Le){if(Xr(Ge)!==null)throw ka(),Br;Ge=i}}function _r(i=1){if(Le){for(var n=i,u=Ge;n--;)u=Xr(u);Ge=u}}function xa(i=!0){for(var n=0,u=Ge;;){if(u.nodeType===ei){var c=u.data;if(c===lr){if(n===0)return u;n-=1}else(c===dt||c===bt)&&(n+=1)}var d=Xr(u);i&&u.remove(),u=d}}function Sh(i){if(!i||i.nodeType!==ei)throw ka(),Br;return i.data}function Ih(i){return i===this.v}function zh(i,n){return i!=i?n==n:i!==n||i!==null&&typeof i=="object"||typeof i=="function"}function Nh(i){return!zh(i,this.v)}const Kk=[];function Hk(i,n=!1,u=!1){return Sa(i,new Map,"",Kk,null,u)}function Sa(i,n,u,c,d=null,m=!1){if(typeof i=="object"&&i!==null){var p=n.get(i);if(p!==void 0)return p;if(i instanceof Map)return new Map(i);if(i instanceof Set)return new Set(i);if(_n(i)){var g=Array(i.length);n.set(i,g),d!==null&&n.set(d,g);for(var h=0;h<i.length;h+=1){var b=i[h];h in i&&(g[h]=Sa(b,n,u,c,null,m))}return g}if(Ve(i)===so){g={},n.set(i,g),d!==null&&n.set(d,g);for(var y in i)g[y]=Sa(i[y],n,u,c,null,m);return g}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!m)return Sa(i.toJSON(),n,u,c,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}let St=null;function $i(i){St=i}function dc(i){return fc().get(i)}function jh(i,n){return fc().set(i,n),n}function Xk(i){return fc().has(i)}function Je(i,n=!1,u){St={p:St,c:null,e:null,s:i,x:null,l:t&&!n?{s:null,u:null,$:[]}:null}}function Be(i){var n=St,u=n.e;if(u!==null){n.e=null;for(var c of u)ev(c)}return i!==void 0&&(n.x=i),St=n.p,i??{}}function co(){return!t||St!==null&&St.l===null}function fc(i){return St===null&&lc(),St.c??=new Map(e0(St)||void 0)}function e0(i){let n=i.p;for(;n!==null;){const u=n.c;if(u!==null)return u;n=n.p}return null}let ti=[];function Th(){var i=ti;ti=[],Vn(i)}function ln(i){if(ti.length===0&&!lo){var n=ti;queueMicrotask(()=>{n===ti&&Th()})}ti.push(i)}function t0(){for(;ti.length>0;)Th()}const r0=new WeakMap;function Oh(i){var n=Xe;if(n===null)return st.f|=Xn,i;if((n.f&sc)===0){if((n.f&ac)===0)throw!n.parent&&i instanceof Error&&Eh(i),i;n.b.error(i)}else wi(i,n)}function wi(i,n){for(;n!==null;){if((n.f&ac)!==0)try{n.b.error(i);return}catch(u){i=u}n=n.parent}throw i instanceof Error&&Eh(i),i}function Eh(i){const n=r0.get(i);n&&(Yr(i,"message",{value:n.message}),Yr(i,"stack",{value:n.stack}))}const Ia=new Set;let Ot=null,za=null,mc=new Set,Hr=[],Na=null,pc=!1,lo=!1;class Fr{current=new Map;#e=new Map;#t=new Set;#n=0;#o=null;#i=[];#a=[];#r=[];#s=[];#u=[];#l=[];skipped_effects=new Set;process(n){Hr=[],za=null;for(const d of n)this.#d(d);if(this.#n===0){this.#f();var u=this.#a,c=this.#r;this.#a=[],this.#r=[],this.#s=[],za=this,Ot=null,Ch(u),Ch(c),za=null,this.#o?.resolve()}else this.#c(this.#a),this.#c(this.#r),this.#c(this.#s);for(const d of this.#i)xi(d);this.#i=[]}#d(n){n.f^=nr;for(var u=n.first;u!==null;){var c=u.f,d=(c&(sn|kn))!==0,m=d&&(c&nr)!==0,p=m||(c&Rr)!==0||this.skipped_effects.has(u);if(!p&&u.fn!==null){d?u.f^=nr:(c&Jn)!==0?this.#r.push(u):(c&nr)===0&&((c&wa)!==0&&u.b?.is_pending()?this.#i.push(u):ho(u)&&((u.f&Bn)!==0&&this.#s.push(u),xi(u)));var g=u.first;if(g!==null){u=g;continue}}var h=u.parent;for(u=u.next;u===null&&h!==null;)u=h.next,h=h.parent}}#c(n){for(const u of n)((u.f&wr)!==0?this.#u:this.#l).push(u),sr(u,nr);n.length=0}capture(n,u){this.#e.has(n)||this.#e.set(n,u),this.current.set(n,n.v)}activate(){Ot=this}deactivate(){Ot=null}flush(){if(Hr.length>0){if(this.activate(),Ph(),Ot!==null&&Ot!==this)return}else this.#n===0&&this.#f();this.deactivate();for(const n of mc)if(mc.delete(n),n(),Ot!==null)break}#f(){for(const n of this.#t)n();if(this.#t.clear(),Ia.size>1){this.#e.clear();let n=!0;for(const u of Ia){if(u===this){n=!1;continue}for(const[c,d]of this.current){if(u.current.has(c))if(n)u.current.set(c,d);else continue;Uh(c)}if(Hr.length>0){Ot=u;for(const c of Hr)u.#d(c);Hr=[]}}Ot=null}Ia.delete(this)}increment(){this.#n+=1}decrement(){this.#n-=1;for(const n of this.#u)sr(n,wr),ni(n);for(const n of this.#l)sr(n,un),ni(n);this.flush()}add_callback(n){this.#t.add(n)}settled(){return(this.#o??=bi()).promise}static ensure(){if(Ot===null){const n=Ot=new Fr;Ia.add(Ot),lo||Fr.enqueue(()=>{Ot===n&&n.flush()})}return Ot}static enqueue(n){ln(n)}static apply(n){return gt}}function at(i){var n=lo;lo=!0;try{for(var u;;){if(t0(),Hr.length===0&&(Ot?.flush(),Hr.length===0))return Na=null,u;Ph()}}finally{lo=n}}function Ph(){var i=ki;pc=!0;try{var n=0;for(sv(!0);Hr.length>0;){var u=Fr.ensure();if(n++>1e3){var c,d;n0()}u.process(Hr),xn.clear()}}finally{pc=!1,sv(i),Na=null}}function n0(){try{Fk()}catch(i){wi(i,Na)}}let ri=null;function Ch(i){var n=i.length;if(n!==0){for(var u=0;u<n;){var c=i[u++];if((c.f&(Yn|Rr))===0&&ho(c)&&(ri=[],xi(c),c.deps===null&&c.first===null&&c.nodes_start===null&&(c.teardown===null&&c.ac===null?iv(c):c.fn=null),ri?.length>0)){xn.clear();for(const d of ri)xi(d);ri=[]}}ri=null}}function Uh(i){if(i.reactions!==null)for(const n of i.reactions){const u=n.f;(u&Zt)!==0?Uh(n):(u&(wa|Bn))!==0&&(sr(n,wr),ni(n))}}function ni(i){for(var n=Na=i;n.parent!==null;){n=n.parent;var u=n.f;if(pc&&n===Xe&&(u&Bn)!==0)return;if((u&(kn|sn))!==0){if((u&nr)===0)return;n.f^=nr}}Hr.push(n)}function Mh(i){let n=0,u=Sn(0),c;return()=>{g0()&&(l(u),ii(()=>(n===0&&(c=M(()=>i(()=>mo(u)))),n+=1,()=>{ln(()=>{n-=1,n===0&&(c?.(),c=void 0,mo(u))})})))}}var i0=Kn|Hn|ac;function o0(i,n,u){new a0(i,n,u)}class a0{parent;#e=!1;#t;#n=Le?Ge:null;#o;#i;#a;#r=null;#s=null;#u=null;#l=null;#d=0;#c=0;#f=!1;#m=null;#v=()=>{this.#m&&_i(this.#m,this.#d)};#b=Mh(()=>(this.#m=Sn(this.#d),()=>{this.#m=null}));constructor(n,u,c){this.#t=n,this.#o=u,this.#i=c,this.parent=Xe.b,this.#e=!!this.#o.pending,this.#a=zn(()=>{if(Xe.b=this,Le){const d=this.#n;cn(),d.nodeType===ei&&d.data===bt?this.#$():this.#y()}else{try{this.#r=ir(()=>c(this.#t))}catch(d){this.error(d)}this.#c>0?this.#g():this.#e=!1}},i0),Le&&(this.#t=Ge)}#y(){try{this.#r=ir(()=>this.#i(this.#t))}catch(n){this.error(n)}this.#e=!1}#$(){const n=this.#o.pending;n&&(this.#s=ir(()=>n(this.#t)),Fr.enqueue(()=>{this.#r=this.#p(()=>(Fr.ensure(),ir(()=>this.#i(this.#t)))),this.#c>0?this.#g():(Nn(this.#s,()=>{this.#s=null}),this.#e=!1)}))}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#o.pending}#p(n){var u=Xe,c=st,d=St;Pr(this.#a),pr(this.#a),$i(this.#a.ctx);try{return n()}catch(m){return Oh(m),null}finally{Pr(u),pr(c),$i(d)}}#g(){const n=this.#o.pending;this.#r!==null&&(this.#l=document.createDocumentFragment(),s0(this.#r,this.#l)),this.#s===null&&(this.#s=ir(()=>n(this.#t)))}#h(n){if(!this.has_pending_snippet()){this.parent&&this.parent.#h(n);return}this.#c+=n,this.#c===0&&(this.#e=!1,this.#s&&Nn(this.#s,()=>{this.#s=null}),this.#l&&(this.#t.before(this.#l),this.#l=null),ln(()=>{Fr.ensure().flush()}))}update_pending_count(n){this.#h(n),this.#d+=n,mc.add(this.#v)}get_effect_pending(){return this.#b(),l(this.#m)}error(n){var u=this.#o.onerror;let c=this.#o.failed;if(this.#f||!u&&!c)throw n;this.#r&&(Xt(this.#r),this.#r=null),this.#s&&(Xt(this.#s),this.#s=null),this.#u&&(Xt(this.#u),this.#u=null),Le&&(Ht(this.#n),_r(),Ht(xa()));var d=!1,m=!1;const p=()=>{if(d){Yk();return}d=!0,m&&Jk(),Fr.ensure(),this.#d=0,this.#u!==null&&Nn(this.#u,()=>{this.#u=null}),this.#e=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#f=!1,ir(()=>this.#i(this.#t)))),this.#c>0?this.#g():this.#e=!1};var g=st;try{pr(null),m=!0,u?.(n,p),m=!1}catch(h){wi(h,this.#a&&this.#a.parent)}finally{pr(g)}c&&ln(()=>{this.#u=this.#p(()=>{this.#f=!0;try{return ir(()=>{c(this.#t,()=>n,()=>p)})}catch(h){return wi(h,this.#a.parent),null}finally{this.#f=!1}})})}}function s0(i,n){for(var u=i.nodes_start,c=i.nodes_end;u!==null;){var d=u===c?null:Xr(u);n.append(u),u=d}}function Dh(i,n,u){const c=co()?fo:Ae;if(n.length===0){u(i.map(c));return}var d=Ot,m=Xe,p=u0(),g=Le;Promise.all(n.map(h=>c0(h))).then(h=>{p();try{u([...i.map(c),...h])}catch(b){(m.f&Yn)===0&&wi(b,m)}g&&dr(!1),d?.deactivate(),Lh()}).catch(h=>{wi(h,m)})}function u0(){var i=Xe,n=st,u=St,c=Ot,d=Le;if(d)var m=Ge;return function(){Pr(i),pr(n),$i(u),c?.activate(),d&&(dr(!0),Ht(m))}}function Lh(){Pr(null),pr(null),$i(null)}function fo(i){var n=Zt|wr,u=st!==null&&(st.f&Zt)!==0?st:null;return Xe===null||u!==null&&(u.f&Or)!==0?n|=Or:Xe.f|=Hn,{ctx:St,deps:null,effects:null,equals:Ih,f:n,fn:i,reactions:null,rv:0,v:Qt,wv:0,parent:u??Xe,ac:null}}function c0(i,n){let u=Xe;u===null&&Lk();var c=u.b,d=void 0,m=Sn(Qt),p=!st,g=new Map;return b0(()=>{var h=bi();d=h.promise;try{Promise.resolve(i()).then(h.resolve,h.reject)}catch(v){h.reject(v)}var b=Ot,y=c.is_pending();p&&(c.update_pending_count(1),y||(b.increment(),g.get(b)?.reject(uo),g.set(b,h)));const k=(v,x=void 0)=>{y||b.activate(),x?x!==uo&&(m.f|=Xn,_i(m,x)):((m.f&Xn)!==0&&(m.f^=Xn),_i(m,v)),p&&(c.update_pending_count(-1),y||b.decrement()),Lh()};h.promise.then(k,v=>k(null,v||"unknown"))}),bc(()=>{for(const h of g.values())h.reject(uo)}),new Promise(h=>{function b(y){function k(){y===d?h(m):b(d)}y.then(k,k)}b(d)})}function lt(i){const n=fo(i);return cv(n),n}function Ae(i){const n=fo(i);return n.equals=Nh,n}function Ah(i){var n=i.effects;if(n!==null){i.effects=null;for(var u=0;u<n.length;u+=1)Xt(n[u])}}function l0(i){for(var n=i.parent;n!==null;){if((n.f&Zt)===0)return n;n=n.parent}return null}function gc(i){var n,u=Xe;Pr(l0(i));try{Ah(i),n=pv(i)}finally{Pr(u)}return n}function Zh(i){var n=gc(i);if(i.equals(n)||(i.v=n,i.wv=fv()),!oi){var u=(jn||(i.f&Or)!==0)&&i.deps!==null?un:nr;sr(i,u)}}const xn=new Map;function Sn(i,n){var u={f:0,v:i,reactions:null,equals:Ih,rv:0,wv:0};return u}function qr(i,n){const u=Sn(i);return cv(u),u}function ee(i,n=!1,u=!0){const c=Sn(i);return n||(c.equals=Nh),t&&u&&St!==null&&St.l!==null&&(St.l.s??=[]).push(c),c}function Rh(i,n){return $(i,M(()=>l(i))),n}function $(i,n,u=!1){st!==null&&(!Gr||(st.f&kh)!==0)&&co()&&(st.f&(Zt|Bn|wa|kh))!==0&&!dn?.includes(i)&&Vk();let c=u?In(n):n;return _i(i,c)}function _i(i,n){if(!i.equals(n)){var u=i.v;oi?xn.set(i,n):xn.set(i,u),i.v=n;var c=Fr.ensure();c.capture(i,u),(i.f&Zt)!==0&&((i.f&wr)!==0&&gc(i),sr(i,(i.f&Or)===0?nr:un)),i.wv=fv(),qh(i,wr),co()&&Xe!==null&&(Xe.f&nr)!==0&&(Xe.f&(sn|kn))===0&&(Cr===null?w0([i]):Cr.push(i))}return n}function Fh(i,n=1){var u=l(i),c=n===1?u++:u--;return $(i,u),c}function mo(i){$(i,i.v+1)}function qh(i,n){var u=i.reactions;if(u!==null)for(var c=co(),d=u.length,m=0;m<d;m++){var p=u[m],g=p.f;if(!(!c&&p===Xe)){var h=(g&wr)===0;h&&sr(p,n),(g&Zt)!==0?qh(p,un):h&&((g&Bn)!==0&&ri!==null&&ri.push(p),ni(p))}}}function In(i){if(typeof i!="object"||i===null||Kr in i)return i;const n=Ve(i);if(n!==so&&n!==pe)return i;var u=new Map,c=_n(i),d=qr(0),m=ai,p=g=>{if(ai===m)return g();var h=st,b=ai;pr(null),dv(m);var y=g();return pr(h),dv(b),y};return c&&u.set("length",qr(i.length)),new Proxy(i,{defineProperty(g,h,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Qk();var y=u.get(h);return y===void 0?y=p(()=>{var k=qr(b.value);return u.set(h,k),k}):$(y,b.value,!0),!0},deleteProperty(g,h){var b=u.get(h);if(b===void 0){if(h in g){const y=p(()=>qr(Qt));u.set(h,y),mo(d)}}else $(b,Qt),mo(d);return!0},get(g,h,b){if(h===Kr)return i;var y=u.get(h),k=h in g;if(y===void 0&&(!k||jr(g,h)?.writable)&&(y=p(()=>{var x=In(k?g[h]:Qt),S=qr(x);return S}),u.set(h,y)),y!==void 0){var v=l(y);return v===Qt?void 0:v}return Reflect.get(g,h,b)},getOwnPropertyDescriptor(g,h){var b=Reflect.getOwnPropertyDescriptor(g,h);if(b&&"value"in b){var y=u.get(h);y&&(b.value=l(y))}else if(b===void 0){var k=u.get(h),v=k?.v;if(k!==void 0&&v!==Qt)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return b},has(g,h){if(h===Kr)return!0;var b=u.get(h),y=b!==void 0&&b.v!==Qt||Reflect.has(g,h);if(b!==void 0||Xe!==null&&(!y||jr(g,h)?.writable)){b===void 0&&(b=p(()=>{var v=y?In(g[h]):Qt,x=qr(v);return x}),u.set(h,b));var k=l(b);if(k===Qt)return!1}return y},set(g,h,b,y){var k=u.get(h),v=h in g;if(c&&h==="length")for(var x=b;x<k.v;x+=1){var S=u.get(x+"");S!==void 0?$(S,Qt):x in g&&(S=p(()=>qr(Qt)),u.set(x+"",S))}if(k===void 0)(!v||jr(g,h)?.writable)&&(k=p(()=>qr(void 0)),$(k,In(b)),u.set(h,k));else{v=k.v!==Qt;var O=p(()=>In(b));$(k,O)}var U=Reflect.getOwnPropertyDescriptor(g,h);if(U?.set&&U.set.call(y,b),!v){if(c&&typeof h=="string"){var B=u.get("length"),oe=Number(h);Number.isInteger(oe)&&oe>=B.v&&$(B,oe+1)}mo(d)}return!0},ownKeys(g){l(d);var h=Reflect.ownKeys(g).filter(k=>{var v=u.get(k);return v===void 0||v.v!==Qt});for(var[b,y]of u)y.v!==Qt&&!(b in g)&&h.push(b);return h},setPrototypeOf(){Gk()}})}function Wh(i){try{if(i!==null&&typeof i=="object"&&Kr in i)return i[Kr]}catch{}return i}function d0(i,n){return Object.is(Wh(i),Wh(n))}var Qh,Gh,Vh,Jh;function hc(){if(Qh===void 0){Qh=window,Gh=/Firefox/.test(navigator.userAgent);var i=Element.prototype,n=Node.prototype,u=Text.prototype;Vh=jr(n,"firstChild").get,Jh=jr(n,"nextSibling").get,Nt(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),Nt(u)&&(u.__t=void 0)}}function Er(i=""){return document.createTextNode(i)}function Wr(i){return Vh.call(i)}function Xr(i){return Jh.call(i)}function R(i,n){if(!Le)return Wr(i);var u=Wr(Ge);if(u===null)u=Ge.appendChild(Er());else if(n&&u.nodeType!==_a){var c=Er();return u?.before(c),Ht(c),c}return Ht(u),u}function Te(i,n=!1){if(!Le){var u=Wr(i);return u instanceof Comment&&u.data===""?Xr(u):u}if(n&&Ge?.nodeType!==_a){var c=Er();return Ge?.before(c),Ht(c),c}return Ge}function de(i,n=1,u=!1){let c=Le?Ge:i;for(var d;n--;)d=c,c=Xr(c);if(!Le)return c;if(u&&c?.nodeType!==_a){var m=Er();return c===null?d?.after(m):c.before(m),Ht(m),m}return Ht(c),c}function vc(i){i.textContent=""}function Bh(){return!1}function f0(i,n){if(n){const u=document.body;i.autofocus=!0,ln(()=>{document.activeElement===u&&i.focus()})}}function m0(i){Le&&Wr(i)!==null&&vc(i)}let Yh=!1;function Kh(){Yh||(Yh=!0,document.addEventListener("reset",i=>{Promise.resolve().then(()=>{if(!i.defaultPrevented)for(const n of i.target.elements)n.__on_r?.()})},{capture:!0}))}function ja(i){var n=st,u=Xe;pr(null),Pr(null);try{return i()}finally{pr(n),Pr(u)}}function Hh(i,n,u,c=u){i.addEventListener(n,()=>ja(u));const d=i.__on_r;d?i.__on_r=()=>{d(),c(!0)}:i.__on_r=()=>c(!0),Kh()}function Xh(i){Xe===null&&st===null&&Rk(),st!==null&&(st.f&Or)!==0&&Xe===null&&Zk(),oi&&Ak()}function p0(i,n){var u=n.last;u===null?n.last=n.first=i:(u.next=i,i.prev=u,n.last=i)}function Qr(i,n,u,c=!0){var d=Xe;d!==null&&(d.f&Rr)!==0&&(i|=Rr);var m={ctx:St,deps:null,nodes_start:null,nodes_end:null,f:i|wr,first:null,fn:n,last:null,next:null,parent:d,b:d&&d.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(u)try{xi(m),m.f|=sc}catch(h){throw Xt(m),h}else n!==null&&ni(m);if(c){var p=m;if(u&&p.deps===null&&p.teardown===null&&p.nodes_start===null&&p.first===p.last&&(p.f&Hn)===0&&(p=p.first),p!==null&&(p.parent=d,d!==null&&p0(p,d),st!==null&&(st.f&Zt)!==0&&(i&kn)===0)){var g=st;(g.effects??=[]).push(p)}}return m}function g0(){return st!==null&&!Gr}function bc(i){const n=Qr(yi,null,!1);return sr(n,nr),n.teardown=i,n}function po(i){Xh();var n=Xe.f,u=!st&&(n&sn)!==0&&(n&sc)===0;if(u){var c=St;(c.e??=[]).push(i)}else return ev(i)}function ev(i){return Qr(Jn|xh,i,!1)}function tv(i){return Xh(),Qr(yi|xh,i,!0)}function h0(i){Fr.ensure();const n=Qr(kn|Hn,i,!0);return()=>{Xt(n)}}function v0(i){Fr.ensure();const n=Qr(kn|Hn,i,!0);return(u={})=>new Promise(c=>{u.outro?Nn(n,()=>{Xt(n),c(void 0)}):(Xt(n),c(void 0))})}function yc(i){return Qr(Jn,i,!1)}function ve(i,n){var u=St,c={effect:null,ran:!1,deps:i};u.l.$.push(c),c.effect=ii(()=>{i(),!c.ran&&(c.ran=!0,M(n))})}function fr(){var i=St;ii(()=>{for(var n of i.l.$){n.deps();var u=n.effect;(u.f&nr)!==0&&sr(u,un),ho(u)&&xi(u),n.ran=!1}})}function b0(i){return Qr(wa|Hn,i,!0)}function ii(i,n=0){return Qr(yi|n,i,!0)}function je(i,n=[],u=[]){Dh(n,u,c=>{Qr(yi,()=>i(...c.map(l)),!0)})}function zn(i,n=0){var u=Qr(Bn|n,i,!0);return u}function ir(i,n=!0){return Qr(sn|Hn,i,!0,n)}function rv(i){var n=i.teardown;if(n!==null){const u=oi,c=st;uv(!0),pr(null);try{n.call(null)}finally{uv(u),pr(c)}}}function nv(i,n=!1){var u=i.first;for(i.first=i.last=null;u!==null;){const d=u.ac;d!==null&&ja(()=>{d.abort(uo)});var c=u.next;(u.f&kn)!==0?u.parent=null:Xt(u,n),u=c}}function y0(i){for(var n=i.first;n!==null;){var u=n.next;(n.f&sn)===0&&Xt(n),n=u}}function Xt(i,n=!0){var u=!1;(n||(i.f&Uk)!==0)&&i.nodes_start!==null&&i.nodes_end!==null&&($0(i.nodes_start,i.nodes_end),u=!0),nv(i,n&&!u),Oa(i,0),sr(i,Yn);var c=i.transitions;if(c!==null)for(const m of c)m.stop();rv(i);var d=i.parent;d!==null&&d.first!==null&&iv(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes_start=i.nodes_end=i.ac=null}function $0(i,n){for(;i!==null;){var u=i===n?null:Xr(i);i.remove(),i=u}}function iv(i){var n=i.parent,u=i.prev,c=i.next;u!==null&&(u.next=c),c!==null&&(c.prev=u),n!==null&&(n.first===i&&(n.first=c),n.last===i&&(n.last=u))}function Nn(i,n){var u=[];$c(i,u,!0),ov(u,()=>{Xt(i),n&&n()})}function ov(i,n){var u=i.length;if(u>0){var c=()=>--u||n();for(var d of i)d.out(c)}else n()}function $c(i,n,u){if((i.f&Rr)===0){if(i.f^=Rr,i.transitions!==null)for(const p of i.transitions)(p.is_global||u)&&n.push(p);for(var c=i.first;c!==null;){var d=c.next,m=(c.f&Kn)!==0||(c.f&sn)!==0;$c(c,n,m?u:!1),c=d}}}function Ta(i){av(i,!0)}function av(i,n){if((i.f&Rr)!==0){i.f^=Rr,(i.f&nr)===0&&(sr(i,wr),ni(i));for(var u=i.first;u!==null;){var c=u.next,d=(u.f&Kn)!==0||(u.f&sn)!==0;av(u,d?n:!1),u=c}if(i.transitions!==null)for(const m of i.transitions)(m.is_global||n)&&m.in()}}let ki=!1;function sv(i){ki=i}let oi=!1;function uv(i){oi=i}let st=null,Gr=!1;function pr(i){st=i}let Xe=null;function Pr(i){Xe=i}let dn=null;function cv(i){st!==null&&(dn===null?dn=[i]:dn.push(i))}let mr=null,kr=0,Cr=null;function w0(i){Cr=i}let lv=1,go=0,ai=go;function dv(i){ai=i}let jn=!1;function fv(){return++lv}function ho(i){var n=i.f;if((n&wr)!==0)return!0;if((n&un)!==0){var u=i.deps,c=(n&Or)!==0;if(u!==null){var d,m,p=(n&$a)!==0,g=c&&Xe!==null&&!jn,h=u.length;if((p||g)&&(Xe===null||(Xe.f&Yn)===0)){var b=i,y=b.parent;for(d=0;d<h;d++)m=u[d],(p||!m?.reactions?.includes(b))&&(m.reactions??=[]).push(b);p&&(b.f^=$a),g&&y!==null&&(y.f&Or)===0&&(b.f^=Or)}for(d=0;d<h;d++)if(m=u[d],ho(m)&&Zh(m),m.wv>i.wv)return!0}(!c||Xe!==null&&!jn)&&sr(i,nr)}return!1}function mv(i,n,u=!0){var c=i.reactions;if(c!==null&&!dn?.includes(i))for(var d=0;d<c.length;d++){var m=c[d];(m.f&Zt)!==0?mv(m,n,!1):n===m&&(u?sr(m,wr):(m.f&nr)!==0&&sr(m,un),ni(m))}}function pv(i){var n=mr,u=kr,c=Cr,d=st,m=jn,p=dn,g=St,h=Gr,b=ai,y=i.f;mr=null,kr=0,Cr=null,jn=(y&Or)!==0&&(Gr||!ki||st===null),st=(y&(sn|kn))===0?i:null,dn=null,$i(i.ctx),Gr=!1,ai=++go,i.ac!==null&&(ja(()=>{i.ac.abort(uo)}),i.ac=null);try{i.f|=uc;var k=i.fn,v=k(),x=i.deps;if(mr!==null){var S;if(Oa(i,kr),x!==null&&kr>0)for(x.length=kr+mr.length,S=0;S<mr.length;S++)x[kr+S]=mr[S];else i.deps=x=mr;if(!jn||(y&Zt)!==0&&i.reactions!==null)for(S=kr;S<x.length;S++)(x[S].reactions??=[]).push(i)}else x!==null&&kr<x.length&&(Oa(i,kr),x.length=kr);if(co()&&Cr!==null&&!Gr&&x!==null&&(i.f&(Zt|un|wr))===0)for(S=0;S<Cr.length;S++)mv(Cr[S],i);return d!==null&&d!==i&&(go++,Cr!==null&&(c===null?c=Cr:c.push(...Cr))),(i.f&Xn)!==0&&(i.f^=Xn),v}catch(O){return Oh(O)}finally{i.f^=uc,mr=n,kr=u,Cr=c,st=d,jn=m,dn=p,$i(g),Gr=h,ai=b}}function _0(i,n){let u=n.reactions;if(u!==null){var c=oc.call(u,i);if(c!==-1){var d=u.length-1;d===0?u=n.reactions=null:(u[c]=u[d],u.pop())}}u===null&&(n.f&Zt)!==0&&(mr===null||!mr.includes(n))&&(sr(n,un),(n.f&(Or|$a))===0&&(n.f^=$a),Ah(n),Oa(n,0))}function Oa(i,n){var u=i.deps;if(u!==null)for(var c=n;c<u.length;c++)_0(i,u[c])}function xi(i){var n=i.f;if((n&Yn)===0){sr(i,nr);var u=Xe,c=ki;Xe=i,ki=!0;try{(n&Bn)!==0?y0(i):nv(i),rv(i);var d=pv(i);i.teardown=typeof d=="function"?d:null,i.wv=lv;var m;oo&&a&&(i.f&wr)!==0&&i.deps}finally{ki=c,Xe=u}}}async function k0(){await Promise.resolve(),at()}function l(i){var n=i.f,u=(n&Zt)!==0;if(st!==null&&!Gr){var c=Xe!==null&&(Xe.f&Yn)!==0;if(!c&&!dn?.includes(i)){var d=st.deps;if((st.f&uc)!==0)i.rv<go&&(i.rv=go,mr===null&&d!==null&&d[kr]===i?kr++:mr===null?mr=[i]:(!jn||!mr.includes(i))&&mr.push(i));else{(st.deps??=[]).push(i);var m=i.reactions;m===null?i.reactions=[st]:m.includes(st)||m.push(st)}}}else if(u&&i.deps===null&&i.effects===null){var p=i,g=p.parent;g!==null&&(g.f&Or)===0&&(p.f^=Or)}if(oi){if(xn.has(i))return xn.get(i);if(u){p=i;var h=p.v;return((p.f&nr)===0&&p.reactions!==null||gv(p))&&(h=gc(p)),xn.set(p,h),h}}else u&&(p=i,ho(p)&&Zh(p));if((i.f&Xn)!==0)throw i.v;return i.v}function gv(i){if(i.v===Qt)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(xn.has(n)||(n.f&Zt)!==0&&gv(n))return!0;return!1}function M(i){var n=Gr;try{return Gr=!0,i()}finally{Gr=n}}const x0=-7169;function sr(i,n){i.f=i.f&x0|n}function z(i){if(!(typeof i!="object"||!i||i instanceof EventTarget)){if(Kr in i)wc(i);else if(!Array.isArray(i))for(let n in i){const u=i[n];typeof u=="object"&&u&&Kr in u&&wc(u)}}}function wc(i,n=new Set){if(typeof i=="object"&&i!==null&&!(i instanceof EventTarget)&&!n.has(i)){n.add(i),i instanceof Date&&i.getTime();for(let c in i)try{wc(i[c],n)}catch{}const u=Ve(i);if(u!==Object.prototype&&u!==Array.prototype&&u!==Map.prototype&&u!==Set.prototype&&u!==Date.prototype){const c=ao(u);for(let d in c){const m=c[d].get;if(m)try{m.call(i)}catch{}}}}}const hv=new Set,_c=new Set;function vv(i,n,u,c={}){function d(m){if(c.capture||vo.call(n,m),!m.cancelBubble)return ja(()=>u?.call(this,m))}return i.startsWith("pointer")||i.startsWith("touch")||i==="wheel"?ln(()=>{n.addEventListener(i,d,c)}):n.addEventListener(i,d,c),d}function bv(i,n,u,c={}){var d=vv(n,i,u,c);return()=>{i.removeEventListener(n,d,c)}}function kc(i){for(var n=0;n<i.length;n++)hv.add(i[n]);for(var u of _c)u(i)}let yv=null;function vo(i){var n=this,u=n.ownerDocument,c=i.type,d=i.composedPath?.()||[],m=d[0]||i.target;yv=i;var p=0,g=yv===i&&i.__root;if(g){var h=d.indexOf(g);if(h!==-1&&(n===document||n===window)){i.__root=n;return}var b=d.indexOf(n);if(b===-1)return;h<=b&&(p=h)}if(m=d[p]||i.target,m!==n){Yr(i,"currentTarget",{configurable:!0,get(){return m||u}});var y=st,k=Xe;pr(null),Pr(null);try{for(var v,x=[];m!==null;){var S=m.assignedSlot||m.parentNode||m.host||null;try{var O=m["__"+c];if(O!=null&&(!m.disabled||i.target===m))if(_n(O)){var[U,...B]=O;U.apply(m,[i,...B])}else O.call(m,i)}catch(oe){v?x.push(oe):v=oe}if(i.cancelBubble||S===n||S===null)break;m=S}if(v){for(let oe of x)queueMicrotask(()=>{throw oe});throw v}}finally{i.__root=n,delete i.currentTarget,pr(y),Pr(k)}}}function $v(i){var n=document.createElement("template");return n.innerHTML=i.replaceAll("<!>","<!---->"),n.content}function Vr(i,n){var u=Xe;u.nodes_start===null&&(u.nodes_start=i,u.nodes_end=n)}function te(i,n){var u=(n&pt)!==0,c=(n&ct)!==0,d,m=!i.startsWith("<!>");return()=>{if(Le)return Vr(Ge,null),Ge;d===void 0&&(d=$v(m?i:"<!>"+i),u||(d=Wr(d)));var p=c||Gh?document.importNode(d,!0):d.cloneNode(!0);if(u){var g=Wr(p),h=p.lastChild;Vr(g,h)}else Vr(p,p);return p}}function S0(i,n,u="svg"){var c=!i.startsWith("<!>"),d=`<${u}>${c?i:"<!>"+i}</${u}>`,m;return()=>{if(Le)return Vr(Ge,null),Ge;if(!m){var p=$v(d),g=Wr(p);m=Wr(g)}var h=m.cloneNode(!0);return Vr(h,h),h}}function Tn(i,n){return S0(i,n,"svg")}function On(i=""){if(!Le){var n=Er(i+"");return Vr(n,n),n}var u=Ge;return u.nodeType!==_a&&(u.before(u=Er()),Ht(u)),Vr(u,u),u}function Ze(){if(Le)return Vr(Ge,null),Ge;var i=document.createDocumentFragment(),n=document.createComment(""),u=Er();return i.append(n,u),Vr(n,u),i}function T(i,n){if(Le){Xe.nodes_end=Ge,cn();return}i!==null&&i.before(n)}function Ea(){if(Le&&Ge&&Ge.nodeType===ei&&Ge.textContent?.startsWith("$")){const i=Ge.textContent.substring(1);return cn(),i}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function I0(i){return i.endsWith("capture")&&i!=="gotpointercapture"&&i!=="lostpointercapture"}const z0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function N0(i){return z0.includes(i)}const j0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function T0(i){return i=i.toLowerCase(),j0[i]??i}const O0=["touchstart","touchmove"];function E0(i){return O0.includes(i)}const P0=["textarea","script","style","title"];function C0(i){return P0.includes(i)}function Oe(i,n){var u=n==null?"":typeof n=="object"?n+"":n;u!==(i.__t??=i.nodeValue)&&(i.__t=u,i.nodeValue=u+"")}function wv(i,n){return _v(i,n)}function U0(i,n){hc(),n.intro=n.intro??!1;const u=n.target,c=Le,d=Ge;try{for(var m=Wr(u);m&&(m.nodeType!==ei||m.data!==dt);)m=Xr(m);if(!m)throw Br;dr(!0),Ht(m);const p=_v(i,{...n,anchor:m});return dr(!1),p}catch(p){if(p instanceof Error&&p.message.split(`
|
|
45
|
+
`).some(g=>g.startsWith("https://svelte.dev/e/")))throw p;return p!==Br&&console.warn("Failed to hydrate: ",p),n.recover===!1&&qk(),hc(),vc(u),dr(!1),wv(i,n)}finally{dr(c),Ht(d)}}const Si=new Map;function _v(i,{target:n,anchor:u,props:c={},events:d,context:m,intro:p=!0}){hc();var g=new Set,h=k=>{for(var v=0;v<k.length;v++){var x=k[v];if(!g.has(x)){g.add(x);var S=E0(x);n.addEventListener(x,vo,{passive:S});var O=Si.get(x);O===void 0?(document.addEventListener(x,vo,{passive:S}),Si.set(x,1)):Si.set(x,O+1)}}};h(Qn(hv)),_c.add(h);var b=void 0,y=v0(()=>{var k=u??n.appendChild(Er());return o0(k,{pending:()=>{}},v=>{if(m){Je({});var x=St;x.c=m}if(d&&(c.$$events=d),Le&&Vr(v,null),b=i(v,c)||{},Le&&(Xe.nodes_end=Ge,Ge===null||Ge.nodeType!==ei||Ge.data!==lr))throw ka(),Br;m&&Be()}),()=>{for(var v of g){n.removeEventListener(v,vo);var x=Si.get(v);--x===0?(document.removeEventListener(v,vo),Si.delete(v)):Si.set(v,x)}_c.delete(h),k!==u&&k.parentNode?.removeChild(k)}});return xc.set(b,y),b}let xc=new WeakMap;function M0(i,n){const u=xc.get(i);return u?(xc.delete(i),u(n)):Promise.resolve()}function Rt(i,n,...u){var c=i,d=gt,m;zn(()=>{d!==(d=n())&&(m&&(Xt(m),m=null),m=ir(()=>d(c,...u)))},Kn),Le&&(c=Ge)}function En(i){St===null&&lc(),t&&St.l!==null?D0(St).m.push(i):po(()=>{const n=M(i);if(typeof n=="function")return n})}function bo(i){St===null&&lc(),En(()=>()=>M(i))}function D0(i){var n=i.l;return n.u??={a:[],b:[],m:[]}}function L0(){return Symbol(ya)}function ae(i,n,u=!1){Le&&cn();var c=i,d=null,m=null,p=Qt,g=u?Kn:0,h=!1;const b=(v,x=!0)=>{h=!0,k(x,v)};function y(){var v=p?d:m,x=p?m:d;v&&Ta(v),x&&Nn(x,()=>{p?m=null:d=null})}const k=(v,x)=>{if(p===(p=v))return;let S=!1;if(Le){const B=Sh(c)===bt;!!p===B&&(c=xa(),Ht(c),dr(!1),S=!0)}var O=Bh(),U=c;p?d??=x&&ir(()=>x(U)):m??=x&&ir(()=>x(U)),O||y(),S&&dr(!0)};zn(()=>{h=!1,n(b),h||k(null,null)},g),Le&&(c=Ge)}function xr(i,n){return n}function A0(i,n,u){for(var c=i.items,d=[],m=n.length,p=0;p<m;p++)$c(n[p].e,d,!0);var g=m>0&&d.length===0&&u!==null;if(g){var h=u.parentNode;vc(h),h.append(u),c.clear(),en(i,n[0].prev,n[m-1].next)}ov(d,()=>{for(var b=0;b<m;b++){var y=n[b];g||(c.delete(y.k),en(i,y.prev,y.next)),Xt(y.e,!g)}})}function gr(i,n,u,c,d,m=null){var p=i,g={flags:n,items:new Map,first:null},h=(n&X)!==0;if(h){var b=i;p=Le?Ht(Wr(b)):b.appendChild(Er())}Le&&cn();var y=null,k=!1,v=new Map,x=Ae(()=>{var B=u();return _n(B)?B:B==null?[]:Qn(B)}),S,O;function U(){Z0(O,S,g,v,p,d,n,c,u),m!==null&&(S.length===0?y?Ta(y):y=ir(()=>m(p)):y!==null&&Nn(y,()=>{y=null}))}zn(()=>{O??=Xe,S=l(x);var B=S.length;if(k&&B===0)return;k=B===0;let oe=!1;if(Le){var J=Sh(p)===bt;J!==(B===0)&&(p=xa(),Ht(p),dr(!1),oe=!0)}if(Le){for(var Y=null,G,F=0;F<B;F++){if(Ge.nodeType===ei&&Ge.data===lr){p=Ge,oe=!0,dr(!1);break}var K=S[F],H=c(K,F);G=kv(Ge,g,Y,null,K,H,F,d,n,u),g.items.set(H,G),Y=G}B>0&&Ht(xa())}Le?B===0&&m&&(y=ir(()=>m(p))):U(),oe&&dr(!0),l(x)}),Le&&(p=Ge)}function Z0(i,n,u,c,d,m,p,g,h){var b=(p&ce)!==0,y=(p&(_|q))!==0,k=n.length,v=u.items,x=u.first,S=x,O,U=null,B,oe=[],J=[],Y,G,F,K;if(b)for(K=0;K<k;K+=1)Y=n[K],G=g(Y,K),F=v.get(G),F!==void 0&&(F.a?.measure(),(B??=new Set).add(F));for(K=0;K<k;K+=1){if(Y=n[K],G=g(Y,K),F=v.get(G),F===void 0){var H=c.get(G);if(H!==void 0){c.delete(G),v.set(G,H);var $e=U?U.next:S;en(u,U,H),en(u,H,$e),Sc(H,$e,d),U=H}else{var Ie=S?S.e.nodes_start:d;U=kv(Ie,u,U,U===null?u.first:U.next,Y,G,K,m,p,h)}v.set(G,U),oe=[],J=[],S=U.next;continue}if(y&&R0(F,Y,K,p),(F.e.f&Rr)!==0&&(Ta(F.e),b&&(F.a?.unfix(),(B??=new Set).delete(F))),F!==S){if(O!==void 0&&O.has(F)){if(oe.length<J.length){var ke=J[0],fe;U=ke.prev;var Se=oe[0],me=oe[oe.length-1];for(fe=0;fe<oe.length;fe+=1)Sc(oe[fe],ke,d);for(fe=0;fe<J.length;fe+=1)O.delete(J[fe]);en(u,Se.prev,me.next),en(u,U,Se),en(u,me,ke),S=ke,U=me,K-=1,oe=[],J=[]}else O.delete(F),Sc(F,S,d),en(u,F.prev,F.next),en(u,F,U===null?u.first:U.next),en(u,U,F),U=F;continue}for(oe=[],J=[];S!==null&&S.k!==G;)(S.e.f&Rr)===0&&(O??=new Set).add(S),J.push(S),S=S.next;if(S===null)continue;F=S}oe.push(F),U=F,S=F.next}if(S!==null||O!==void 0){for(var ne=O===void 0?[]:Qn(O);S!==null;)(S.e.f&Rr)===0&&ne.push(S),S=S.next;var re=ne.length;if(re>0){var W=(p&X)!==0&&k===0?d:null;if(b){for(K=0;K<re;K+=1)ne[K].a?.measure();for(K=0;K<re;K+=1)ne[K].a?.fix()}A0(u,ne,W)}}b&&ln(()=>{if(B!==void 0)for(F of B)F.a?.apply()}),i.first=u.first&&u.first.e,i.last=U&&U.e;for(var N of c.values())Xt(N.e);c.clear()}function R0(i,n,u,c){(c&_)!==0&&_i(i.v,n),(c&q)!==0?_i(i.i,u):i.i=u}function kv(i,n,u,c,d,m,p,g,h,b,y){var k=(h&_)!==0,v=(h&ue)===0,x=k?v?ee(d,!1,!1):Sn(d):d,S=(h&q)===0?p:Sn(p),O={i:S,v:x,k:m,a:null,e:null,prev:u,next:c};try{if(i===null){var U=document.createDocumentFragment();U.append(i=Er())}return O.e=ir(()=>g(i,x,S,b),Le),O.e.prev=u&&u.e,O.e.next=c&&c.e,u===null?y||(n.first=O):(u.next=O,u.e.next=O.e),c!==null&&(c.prev=O,c.e.prev=O.e),O}finally{}}function Sc(i,n,u){for(var c=i.next?i.next.e.nodes_start:u,d=n?n.e.nodes_start:u,m=i.e.nodes_start;m!==null&&m!==c;){var p=Xr(m);d.before(m),m=p}}function en(i,n,u){n===null?i.first=u:(n.next=u,n.e.next=u&&u.e),u!==null&&(u.prev=n,u.e.prev=n&&n.e)}function Pn(i,n,u,c,d){Le&&cn();var m=n.$$slots?.[u],p=!1;m===!0&&(m=n.children,p=!0),m===void 0||m(i,p?()=>c:c)}function Pa(i,n,u){Le&&cn();var c=i,d,m,p=null,g=null;function h(){m&&(Nn(m),m=null),p&&(p.lastChild.remove(),c.before(p),p=null),m=g,g=null}zn(()=>{if(d!==(d=n())){var b=Bh();if(d){var y=c;b&&(p=document.createDocumentFragment(),p.append(y=Er()),m&&Ot.skipped_effects.add(m)),g=ir(()=>u(y,d))}b?Ot.add_callback(h):h()}},Kn),Le&&(c=Ge)}function xv(i,n,u,c,d,m){let p=Le;Le&&cn();var g,h,b=null;Le&&Ge.nodeType===Dk&&(b=Ge,cn());var y=Le?Ge:i,k;zn(()=>{const v=n()||null;var x=ic;v!==g&&(k&&(v===null?Nn(k,()=>{k=null,h=null}):v===h?Ta(k):Xt(k)),v&&v!==h&&(k=ir(()=>{if(b=Le?b:document.createElementNS(x,v),Vr(b,b),c){Le&&C0(v)&&b.append(document.createComment(""));var S=Le?Wr(b):b.appendChild(Er());Le&&(S===null?dr(!1):Ht(S)),c(b,S)}Xe.nodes_end=b,y.before(b)})),g=v,g&&(h=g))},Kn),p&&(dr(!0),Ht(y))}function F0(i,n){var u=void 0,c;zn(()=>{u!==(u=n())&&(c&&(Xt(c),c=null),u&&(c=ir(()=>{yc(()=>u(i))})))})}function Sv(i){var n,u,c="";if(typeof i=="string"||typeof i=="number")c+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(n=0;n<d;n++)i[n]&&(u=Sv(i[n]))&&(c&&(c+=" "),c+=u)}else for(u in i)i[u]&&(c&&(c+=" "),c+=u);return c}function yo(){for(var i,n,u=0,c="",d=arguments.length;u<d;u++)(i=arguments[u])&&(n=Sv(i))&&(c&&(c+=" "),c+=n);return c}function q0(i){return typeof i=="object"?yo(i):i??""}const Iv=[...`
|
|
46
|
+
\r\f \v\uFEFF`];function W0(i,n,u){var c=i==null?"":""+i;if(u){for(var d in u)if(u[d])c=c?c+" "+d:d;else if(c.length)for(var m=d.length,p=0;(p=c.indexOf(d,p))>=0;){var g=p+m;(p===0||Iv.includes(c[p-1]))&&(g===c.length||Iv.includes(c[g]))?c=(p===0?"":c.substring(0,p))+c.substring(g+1):p=g}}return c===""?null:c}function zv(i,n=!1){var u=n?" !important;":";",c="";for(var d in i){var m=i[d];m!=null&&m!==""&&(c+=" "+d+": "+m+u)}return c}function Ic(i){return i[0]!=="-"||i[1]!=="-"?i.toLowerCase():i}function Q0(i,n){if(n){var u="",c,d;if(Array.isArray(n)?(c=n[0],d=n[1]):c=n,i){i=String(i).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var m=!1,p=0,g=!1,h=[];c&&h.push(...Object.keys(c).map(Ic)),d&&h.push(...Object.keys(d).map(Ic));var b=0,y=-1;const O=i.length;for(var k=0;k<O;k++){var v=i[k];if(g?v==="/"&&i[k-1]==="*"&&(g=!1):m?m===v&&(m=!1):v==="/"&&i[k+1]==="*"?g=!0:v==='"'||v==="'"?m=v:v==="("?p++:v===")"&&p--,!g&&m===!1&&p===0){if(v===":"&&y===-1)y=k;else if(v===";"||k===O-1){if(y!==-1){var x=Ic(i.substring(b,y).trim());if(!h.includes(x)){v!==";"&&k++;var S=i.substring(b,k).trim();u+=" "+S+";"}}b=k+1,y=-1}}}}return c&&(u+=zv(c)),d&&(u+=zv(d,!0)),u=u.trim(),u===""?null:u}return i==null?null:String(i)}function fn(i,n,u,c,d,m){var p=i.__className;if(Le||p!==u||p===void 0){var g=W0(u,c,m);(!Le||g!==i.getAttribute("class"))&&(g==null?i.removeAttribute("class"):n?i.className=g:i.setAttribute("class",g)),i.__className=u}else if(m&&d!==m)for(var h in m){var b=!!m[h];(d==null||b!==!!d[h])&&i.classList.toggle(h,b)}return m}function zc(i,n={},u,c){for(var d in u){var m=u[d];n[d]!==m&&(u[d]==null?i.style.removeProperty(d):i.style.setProperty(d,m,c))}}function $o(i,n,u,c){var d=i.__style;if(Le||d!==n){var m=Q0(n,c);(!Le||m!==i.getAttribute("style"))&&(m==null?i.removeAttribute("style"):i.style.cssText=m),i.__style=n}else c&&(Array.isArray(c)?(zc(i,u?.[0],c[0]),zc(i,u?.[1],c[1],"important")):zc(i,u,c));return c}function Nc(i,n,u=!1){if(i.multiple){if(n==null)return;if(!_n(n))return Bk();for(var c of i.options)c.selected=n.includes(Nv(c));return}for(c of i.options){var d=Nv(c);if(d0(d,n)){c.selected=!0;return}}(!u||n!==void 0)&&(i.selectedIndex=-1)}function G0(i){var n=new MutationObserver(()=>{Nc(i,i.__value)});n.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),bc(()=>{n.disconnect()})}function Nv(i){return"__value"in i?i.__value:i.value}const wo=Symbol("class"),_o=Symbol("style"),jv=Symbol("is custom element"),Tv=Symbol("is html");function V0(i){if(Le){var n=!1,u=()=>{if(!n){if(n=!0,i.hasAttribute("value")){var c=i.value;si(i,"value",null),i.value=c}if(i.hasAttribute("checked")){var d=i.checked;si(i,"checked",null),i.checked=d}}};i.__on_r=u,ln(u),Kh()}}function J0(i,n){n?i.hasAttribute("selected")||i.setAttribute("selected",""):i.removeAttribute("selected")}function si(i,n,u,c){var d=Ov(i);Le&&(d[n]=i.getAttribute(n),n==="src"||n==="srcset"||n==="href"&&i.nodeName==="LINK")||d[n]!==(d[n]=u)&&(n==="loading"&&(i[Mk]=u),u==null?i.removeAttribute(n):typeof u!="string"&&Pv(i).includes(n)?i[n]=u:i.setAttribute(n,u))}function B0(i,n,u,c,d=!1,m=!1){if(Le&&d&&i.tagName==="INPUT"){var p=i,g=p.type==="checkbox"?"defaultChecked":"defaultValue";g in u||V0(p)}var h=Ov(i),b=h[jv],y=!h[Tv];let k=Le&&b;k&&dr(!1);var v=n||{},x=i.tagName==="OPTION";for(var S in n)S in u||(u[S]=null);u.class?u.class=q0(u.class):u[wo]&&(u.class=null),u[_o]&&(u.style??=null);var O=Pv(i);for(const F in u){let K=u[F];if(x&&F==="value"&&K==null){i.value=i.__value="",v[F]=K;continue}if(F==="class"){var U=i.namespaceURI==="http://www.w3.org/1999/xhtml";fn(i,U,K,c,n?.[wo],u[wo]),v[F]=K,v[wo]=u[wo];continue}if(F==="style"){$o(i,K,n?.[_o],u[_o]),v[F]=K,v[_o]=u[_o];continue}var B=v[F];if(!(K===B&&!(K===void 0&&i.hasAttribute(F)))){v[F]=K;var oe=F[0]+F[1];if(oe!=="$$")if(oe==="on"){const H={},$e="$$"+F;let Ie=F.slice(2);var J=N0(Ie);if(I0(Ie)&&(Ie=Ie.slice(0,-7),H.capture=!0),!J&&B){if(K!=null)continue;i.removeEventListener(Ie,v[$e],H),v[$e]=null}if(K!=null)if(J)i[`__${Ie}`]=K,kc([Ie]);else{let ke=function(fe){v[F].call(this,fe)};v[$e]=vv(Ie,i,ke,H)}else J&&(i[`__${Ie}`]=void 0)}else if(F==="style")si(i,F,K);else if(F==="autofocus")f0(i,!!K);else if(!b&&(F==="__value"||F==="value"&&K!=null))i.value=i.__value=K;else if(F==="selected"&&x)J0(i,K);else{var Y=F;y||(Y=T0(Y));var G=Y==="defaultValue"||Y==="defaultChecked";if(K==null&&!b&&!G)if(h[F]=null,Y==="value"||Y==="checked"){let H=i;const $e=n===void 0;if(Y==="value"){let Ie=H.defaultValue;H.removeAttribute(Y),H.defaultValue=Ie,H.value=H.__value=$e?Ie:null}else{let Ie=H.defaultChecked;H.removeAttribute(Y),H.defaultChecked=Ie,H.checked=$e?Ie:!1}}else i.removeAttribute(F);else G||O.includes(Y)&&(b||typeof K!="string")?(i[Y]=K,Y in h&&(h[Y]=Qt)):typeof K!="function"&&si(i,Y,K)}}}return k&&dr(!0),v}function Gt(i,n,u=[],c=[],d,m=!1,p=!1){Dh(u,c,g=>{var h=void 0,b={},y=i.nodeName==="SELECT",k=!1;if(zn(()=>{var x=n(...g.map(l)),S=B0(i,h,x,d,m,p);k&&y&&"value"in x&&Nc(i,x.value);for(let U of Object.getOwnPropertySymbols(b))x[U]||Xt(b[U]);for(let U of Object.getOwnPropertySymbols(x)){var O=x[U];U.description===ya&&(!h||O!==h[U])&&(b[U]&&Xt(b[U]),b[U]=ir(()=>F0(i,()=>O))),S[U]=O}h=S}),y){var v=i;yc(()=>{Nc(v,h.value,!0),G0(v)})}k=!0})}function Ov(i){return i.__attributes??={[jv]:i.nodeName.includes("-"),[Tv]:i.namespaceURI===ba}}var Ev=new Map;function Pv(i){var n=i.getAttribute("is")||i.nodeName,u=Ev.get(n);if(u)return u;Ev.set(n,u=[]);for(var c,d=i,m=Element.prototype;m!==d;){c=ao(d);for(var p in c)c[p].set&&u.push(p);d=Ve(d)}return u}function Ca(i,n,u=n){var c=new WeakSet;Hh(i,"input",async d=>{var m=d?i.defaultValue:i.value;if(m=jc(i)?Tc(m):m,u(m),Ot!==null&&c.add(Ot),await k0(),m!==(m=n())){var p=i.selectionStart,g=i.selectionEnd,h=i.value.length;if(i.value=m??"",g!==null){var b=i.value.length;p===g&&g===h&&b>h?(i.selectionStart=b,i.selectionEnd=b):(i.selectionStart=p,i.selectionEnd=Math.min(g,b))}}}),(Le&&i.defaultValue!==i.value||M(n)==null&&i.value)&&(u(jc(i)?Tc(i.value):i.value),Ot!==null&&c.add(Ot)),ii(()=>{var d=n();if(i===document.activeElement){var m=za??Ot;if(c.has(m))return}jc(i)&&d===Tc(i.value)||i.type==="date"&&!d&&!i.value||d!==i.value&&(i.value=d??"")})}function jc(i){var n=i.type;return n==="number"||n==="range"}function Tc(i){return i===""?null:+i}function Y0(i,n,u=n){Hh(i,"change",()=>{u(i.files)}),Le&&i.files&&u(i.files),ii(()=>{i.files=n()})}function Cv(i,n){return i===n||i?.[Kr]===n}function Ur(i={},n,u,c){return yc(()=>{var d,m;return ii(()=>{d=m,m=[],M(()=>{i!==u(...m)&&(n(i,...m),d&&Cv(u(...d),i)&&n(null,...d))})}),()=>{ln(()=>{m&&Cv(u(...m),i)&&n(null,...m)})}}),i}function er(i=!1){const n=St,u=n.l.u;if(!u)return;let c=()=>z(n.s);if(i){let d=0,m={};const p=fo(()=>{let g=!1;const h=n.s;for(const b in h)h[b]!==m[b]&&(m[b]=h[b],g=!0);return g&&d++,d});c=()=>l(p)}u.b.length&&tv(()=>{Uv(n,c),Vn(u.b)}),po(()=>{const d=M(()=>u.m.map(Tr));return()=>{for(const m of d)typeof m=="function"&&m()}}),u.a.length&&po(()=>{Uv(n,c),Vn(u.a)})}function Uv(i,n){if(i.l.s)for(const u of i.l.s)l(u);n()}function Mv(i,n,u){if(i==null)return n(void 0),gt;const c=M(()=>i.subscribe(n,u));return c.unsubscribe?()=>c.unsubscribe():c}const Ii=[];function K0(i,n=gt){let u=null;const c=new Set;function d(g){if(zh(i,g)&&(i=g,u)){const h=!Ii.length;for(const b of c)b[1](),Ii.push(b,i);if(h){for(let b=0;b<Ii.length;b+=2)Ii[b][0](Ii[b+1]);Ii.length=0}}}function m(g){d(g(i))}function p(g,h=gt){const b=[g,h];return c.add(b),c.size===1&&(u=n(d,m)||gt),g(i),()=>{c.delete(b),c.size===0&&u&&(u(),u=null)}}return{set:d,update:m,subscribe:p}}function ko(i){let n;return Mv(i,u=>n=u)(),n}let Ua=!1,Oc=Symbol();function H0(i,n,u){const c=u[n]??={store:null,source:ee(void 0),unsubscribe:gt};if(c.store!==i&&!(Oc in u))if(c.unsubscribe(),c.store=i??null,i==null)c.source.v=void 0,c.unsubscribe=gt;else{var d=!0;c.unsubscribe=Mv(i,m=>{d?c.source.v=m:$(c.source,m)}),d=!1}return i&&Oc in u?ko(i):l(c.source)}function X0(){const i={};function n(){bc(()=>{for(var u in i)i[u].unsubscribe();Yr(i,Oc,{enumerable:!1,value:!0})})}return[i,n]}function ex(i){var n=Ua;try{return Ua=!1,[i(),Ua]}finally{Ua=n}}const tx={get(i,n){if(!i.exclude.includes(n))return i.props[n]},set(i,n){return!1},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function At(i,n,u){return new Proxy({props:i,exclude:n},tx)}const rx={get(i,n){if(!i.exclude.includes(n))return l(i.version),n in i.special?i.special[n]():i.props[n]},set(i,n,u){if(!(n in i.special)){var c=Xe;try{Pr(i.parent_effect),i.special[n]=w({get[n](){return i.props[n]}},n,A)}finally{Pr(c)}}return i.special[n](u),Fh(i.version),!0},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},deleteProperty(i,n){return i.exclude.includes(n)||(i.exclude.push(n),Fh(i.version)),!0},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function mn(i,n){return new Proxy({props:i,exclude:n,special:{},version:Sn(0),parent_effect:Xe},rx)}const nx={get(i,n){let u=i.props.length;for(;u--;){let c=i.props[u];if(Lt(c)&&(c=c()),typeof c=="object"&&c!==null&&n in c)return c[n]}},set(i,n,u){let c=i.props.length;for(;c--;){let d=i.props[c];Lt(d)&&(d=d());const m=jr(d,n);if(m&&m.set)return m.set(u),!0}return!1},getOwnPropertyDescriptor(i,n){let u=i.props.length;for(;u--;){let c=i.props[u];if(Lt(c)&&(c=c()),typeof c=="object"&&c!==null&&n in c){const d=jr(c,n);return d&&!d.configurable&&(d.configurable=!0),d}}},has(i,n){if(n===Kr||n===cc)return!1;for(let u of i.props)if(Lt(u)&&(u=u()),u!=null&&n in u)return!0;return!1},ownKeys(i){const n=[];for(let u of i.props)if(Lt(u)&&(u=u()),!!u){for(const c in u)n.includes(c)||n.push(c);for(const c of Object.getOwnPropertySymbols(u))n.includes(c)||n.push(c)}return n}};function Tt(...i){return new Proxy({props:i},nx)}function w(i,n,u,c){var d=!t||(u&ge)!==0,m=(u&ye)!==0,p=(u&Me)!==0,g=c,h=!0,b=()=>(h&&(h=!1,g=p?M(c):c),g),y;if(m){var k=Kr in i||cc in i;y=jr(i,n)?.set??(k&&n in i?J=>i[n]=J:void 0)}var v,x=!1;m?[v,x]=ex(()=>i[n]):v=i[n],v===void 0&&c!==void 0&&(v=b(),y&&(d&&Wk(),y(v)));var S;if(d?S=()=>{var J=i[n];return J===void 0?b():(h=!0,J)}:S=()=>{var J=i[n];return J!==void 0&&(g=void 0),J===void 0?g:J},d&&(u&A)===0)return S;if(y){var O=i.$$legacy;return(function(J,Y){return arguments.length>0?((!d||!Y||O||x)&&y(Y?S():J),J):S()})}var U=!1,B=((u&ze)!==0?fo:Ae)(()=>(U=!1,S()));m&&l(B);var oe=Xe;return(function(J,Y){if(arguments.length>0){const G=Y?l(B):d&&m?In(J):J;return $(B,G),U=!0,g!==void 0&&(g=G),J}return oi&&U||(oe.f&Yn)!==0?B.v:l(B)})}function ix(i){return new ox(i)}class ox{#e;#t;constructor(n){var u=new Map,c=(m,p)=>{var g=ee(p,!1,!1);return u.set(m,g),g};const d=new Proxy({...n.props||{},$$events:{}},{get(m,p){return l(u.get(p)??c(p,Reflect.get(m,p)))},has(m,p){return p===cc?!0:(l(u.get(p)??c(p,Reflect.get(m,p))),Reflect.has(m,p))},set(m,p,g){return $(u.get(p)??c(p,g),g),Reflect.set(m,p,g)}});this.#t=(n.hydrate?U0:wv)(n.component,{target:n.target,anchor:n.anchor,props:d,context:n.context,intro:n.intro??!1,recover:n.recover}),(!n?.props?.$$host||n.sync===!1)&&at(),this.#e=d.$$events;for(const m of Object.keys(this.#t))m==="$set"||m==="$destroy"||m==="$on"||Yr(this,m,{get(){return this.#t[m]},set(p){this.#t[m]=p},enumerable:!0});this.#t.$set=m=>{Object.assign(d,m)},this.#t.$destroy=()=>{M0(this.#t)}}$set(n){this.#t.$set(n)}$on(n,u){this.#e[n]=this.#e[n]||[];const c=(...d)=>u.call(this,...d);return this.#e[n].push(c),()=>{this.#e[n]=this.#e[n].filter(d=>d!==c)}}$destroy(){this.#t.$destroy()}}let Dv;typeof HTMLElement=="function"&&(Dv=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(i,n,u){super(),this.$$ctor=i,this.$$s=n,u&&this.attachShadow({mode:"open"})}addEventListener(i,n,u){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(n),this.$$c){const c=this.$$c.$on(i,n);this.$$l_u.set(n,c)}super.addEventListener(i,n,u)}removeEventListener(i,n,u){if(super.removeEventListener(i,n,u),this.$$c){const c=this.$$l_u.get(n);c&&(c(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(c){return d=>{const m=document.createElement("slot");c!=="default"&&(m.name=c),T(d,m)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},u=ax(this);for(const c of this.$$s)c in u&&(c==="default"&&!this.$$d.children?(this.$$d.children=i(c),n.default=!0):n[c]=i(c));for(const c of this.attributes){const d=this.$$g_p(c.name);d in this.$$d||(this.$$d[d]=Ma(d,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)!(c in this.$$d)&&this[c]!==void 0&&(this.$$d[c]=this[c],delete this[c]);this.$$c=ix({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=h0(()=>{ii(()=>{this.$$r=!0;for(const c of Gn(this.$$c)){if(!this.$$p_d[c]?.reflect)continue;this.$$d[c]=this.$$c[c];const d=Ma(c,this.$$d[c],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,d)}this.$$r=!1})});for(const c in this.$$l)for(const d of this.$$l[c]){const m=this.$$c.$on(c,d);this.$$l_u.set(d,m)}this.$$l={}}}attributeChangedCallback(i,n,u){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Ma(i,u,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(i){return Gn(this.$$p_d).find(n=>this.$$p_d[n].attribute===i||!this.$$p_d[n].attribute&&n.toLowerCase()===i)||i}});function Ma(i,n,u,c){const d=u[i]?.type;if(n=d==="Boolean"&&typeof n!="boolean"?n!=null:n,!c||!u[i])return n;if(c==="toAttribute")switch(d){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(d){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function ax(i){const n={};return i.childNodes.forEach(u=>{n[u.slot||"default"]=!0}),n}function Lv(i,n,u,c,d,m){let p=class extends Dv{constructor(){super(i,u,d),this.$$p_d=n}static get observedAttributes(){return Gn(n).map(g=>(n[g].attribute||g).toLowerCase())}};return Gn(n).forEach(g=>{Yr(p.prototype,g,{get(){return this.$$c&&g in this.$$c?this.$$c[g]:this.$$d[g]},set(h){h=Ma(g,h,n),this.$$d[g]=h;var b=this.$$c;if(b){var y=jr(b,g)?.get;y?b[g]=h:b.$set({[g]:h})}}})}),c.forEach(g=>{Yr(p.prototype,g,{get(){return this.$$c?.[g]}})}),i.element=p,p}const sx={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var ux=Tn("<svg><!><!></svg>");function ui(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=mn(u,["type","name","color","size","stroke","iconNode"]);Je(n,!1);let d=w(n,"type",8),m=w(n,"name",8),p=w(n,"color",8,"currentColor"),g=w(n,"size",8,24),h=w(n,"stroke",8,2),b=w(n,"iconNode",8);er();var y=ux();Gt(y,()=>({...sx[d()],...c,width:g(),height:g(),class:(z(m()),z(u),M(()=>`tabler-icon tabler-icon-${m()} ${u.class??""}`)),...d()==="filled"?{fill:p()}:{"stroke-width":h(),stroke:p()}}));var k=R(y);gr(k,1,b,xr,(x,S)=>{var O=lt(()=>Yt(l(S),2));let U=()=>l(O)[0],B=()=>l(O)[1];var oe=Ze(),J=Te(oe);xv(J,U,!0,(Y,G)=>{Gt(Y,()=>({...B()}))}),T(x,oe)});var v=de(k);Pn(v,n,"default",{}),L(y),T(i,y),Be()}function Av(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M9 14l-4 -4l4 -4"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"}]];ui(i,Tt({type:"outline",name:"arrow-back-up"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Zv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M15 6l-6 6l6 6"}]];ui(i,Tt({type:"outline",name:"chevron-left"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Da(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M9 6l6 6l-6 6"}]];ui(i,Tt({type:"outline",name:"chevron-right"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function cx(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}],["path",{d:"M10 12h4v4h-4z"}]];ui(i,Tt({type:"outline",name:"home-2"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Rv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M15 8h.01"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"}]];ui(i,Tt({type:"outline",name:"photo"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Fv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}],["path",{d:"M15 6l3 3"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}]];ui(i,Tt({type:"outline",name:"wand"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function qv(i,n){const u=mn(n,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M18 6l-12 12"}],["path",{d:"M6 6l12 12"}]];ui(i,Tt({type:"outline",name:"x"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Pn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}const lx={questions:[],questionsData:{}},Wv=Symbol("formResponses"),dx=()=>{const i=K0(lx),n=(g,h,b,y)=>{if((h==null||h===""||Array.isArray(h)&&h.length===0)&&!y){m(g);return}let k;switch(b){case"rating":k={rating:h};break;case"nps":k={nps:h};break;case"long_text":k={longText:h};break;case"short_answer":k={shortAnswer:h};break;case"single_choice":k={singleChoice:h};break;case"multiple_choice_multiple":k={multipleChoiceMultiple:Array.isArray(h)?h:[h]};break;case"nested_selection":k={nestedSelection:Array.isArray(h)?h:[h]};break;case"annotation":k={annotation:h};break;default:k=h}i.update(v=>{const x=v.questions.findIndex(S=>S.questionId===g);return x!==-1?{...v,questions:v.questions.map((S,O)=>O===x?{...S,answer:k,type:b,error:y}:S)}:{...v,questions:[...v.questions,{questionId:g,answer:k,type:b,error:y}]}})},u=(g,h)=>{p(g)&&i.update(b=>({...b,questions:b.questions.map(y=>y.questionId===g?{...y,error:h}:y)}))},c=()=>{i.update(g=>({...g,questions:g.questions.map(h=>({...h,error:void 0}))}))},d=()=>ko(i).questions.some(g=>g.error!==void 0&&g.error!==null&&g.error!==""),m=g=>{i.update(h=>({...h,questions:h.questions.filter(b=>b.questionId!==g)}))},p=g=>ko(i).questions.find(h=>h.questionId===g);return{formResponses:i,updateQuestionResponse:n,getQuestionResponse:p,removeQuestionResponse:m,setQuestionError:u,hasValidationErrors:d,clearValidationErrors:c,clearResponses:()=>{i.update(g=>({...g,questions:[]}))},bulkUpdateResponses:g=>{i.update(h=>({...h,questions:g}))},storeQuestions:g=>{i.update(h=>({...h,questionsData:g}))},getQuestionData:g=>ko(i).questionsData[g]}},Qv=()=>{const i=dx();return jh(Wv,i),i},pn=()=>dc(Wv),Ec="-",fx=i=>{const n=px(i),{conflictingClassGroups:u,conflictingClassGroupModifiers:c}=i;return{getClassGroupId:d=>{const m=d.split(Ec);return m[0]===""&&m.length!==1&&m.shift(),Gv(m,n)||mx(d)},getConflictingClassGroupIds:(d,m)=>{const p=u[d]||[];return m&&c[d]?[...p,...c[d]]:p}}},Gv=(i,n)=>{if(i.length===0)return n.classGroupId;const u=i[0],c=n.nextPart.get(u),d=c?Gv(i.slice(1),c):void 0;if(d)return d;if(n.validators.length===0)return;const m=i.join(Ec);return n.validators.find(({validator:p})=>p(m))?.classGroupId},Vv=/^\[(.+)\]$/,mx=i=>{if(Vv.test(i)){const n=Vv.exec(i)[1],u=n?.substring(0,n.indexOf(":"));if(u)return"arbitrary.."+u}},px=i=>{const{theme:n,classGroups:u}=i,c={nextPart:new Map,validators:[]};for(const d in u)Pc(u[d],c,d,n);return c},Pc=(i,n,u,c)=>{i.forEach(d=>{if(typeof d=="string"){const m=d===""?n:Jv(n,d);m.classGroupId=u;return}if(typeof d=="function"){if(gx(d)){Pc(d(c),n,u,c);return}n.validators.push({validator:d,classGroupId:u});return}Object.entries(d).forEach(([m,p])=>{Pc(p,Jv(n,m),u,c)})})},Jv=(i,n)=>{let u=i;return n.split(Ec).forEach(c=>{u.nextPart.has(c)||u.nextPart.set(c,{nextPart:new Map,validators:[]}),u=u.nextPart.get(c)}),u},gx=i=>i.isThemeGetter,hx=i=>{if(i<1)return{get:()=>{},set:()=>{}};let n=0,u=new Map,c=new Map;const d=(m,p)=>{u.set(m,p),n++,n>i&&(n=0,c=u,u=new Map)};return{get(m){let p=u.get(m);if(p!==void 0)return p;if((p=c.get(m))!==void 0)return d(m,p),p},set(m,p){u.has(m)?u.set(m,p):d(m,p)}}},Cc="!",Uc=":",vx=Uc.length,bx=i=>{const{prefix:n,experimentalParseClassName:u}=i;let c=d=>{const m=[];let p=0,g=0,h=0,b;for(let S=0;S<d.length;S++){let O=d[S];if(p===0&&g===0){if(O===Uc){m.push(d.slice(h,S)),h=S+vx;continue}if(O==="/"){b=S;continue}}O==="["?p++:O==="]"?p--:O==="("?g++:O===")"&&g--}const y=m.length===0?d:d.substring(h),k=yx(y),v=k!==y,x=b&&b>h?b-h:void 0;return{modifiers:m,hasImportantModifier:v,baseClassName:k,maybePostfixModifierPosition:x}};if(n){const d=n+Uc,m=c;c=p=>p.startsWith(d)?m(p.substring(d.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:p,maybePostfixModifierPosition:void 0}}if(u){const d=c;c=m=>u({className:m,parseClassName:d})}return c},yx=i=>i.endsWith(Cc)?i.substring(0,i.length-1):i.startsWith(Cc)?i.substring(1):i,$x=i=>{const n=Object.fromEntries(i.orderSensitiveModifiers.map(u=>[u,!0]));return u=>{if(u.length<=1)return u;const c=[];let d=[];return u.forEach(m=>{m[0]==="["||n[m]?(c.push(...d.sort(),m),d=[]):d.push(m)}),c.push(...d.sort()),c}},wx=i=>({cache:hx(i.cacheSize),parseClassName:bx(i),sortModifiers:$x(i),...fx(i)}),_x=/\s+/,kx=(i,n)=>{const{parseClassName:u,getClassGroupId:c,getConflictingClassGroupIds:d,sortModifiers:m}=n,p=[],g=i.trim().split(_x);let h="";for(let b=g.length-1;b>=0;b-=1){const y=g[b],{isExternal:k,modifiers:v,hasImportantModifier:x,baseClassName:S,maybePostfixModifierPosition:O}=u(y);if(k){h=y+(h.length>0?" "+h:h);continue}let U=!!O,B=c(U?S.substring(0,O):S);if(!B){if(!U){h=y+(h.length>0?" "+h:h);continue}if(B=c(S),!B){h=y+(h.length>0?" "+h:h);continue}U=!1}const oe=m(v).join(":"),J=x?oe+Cc:oe,Y=J+B;if(p.includes(Y))continue;p.push(Y);const G=d(B,U);for(let F=0;F<G.length;++F){const K=G[F];p.push(J+K)}h=y+(h.length>0?" "+h:h)}return h};function xx(){let i=0,n,u,c="";for(;i<arguments.length;)(n=arguments[i++])&&(u=Bv(n))&&(c&&(c+=" "),c+=u);return c}const Bv=i=>{if(typeof i=="string")return i;let n,u="";for(let c=0;c<i.length;c++)i[c]&&(n=Bv(i[c]))&&(u&&(u+=" "),u+=n);return u};function Mc(i,...n){let u,c,d,m=p;function p(h){const b=n.reduce((y,k)=>k(y),i());return u=wx(b),c=u.cache.get,d=u.cache.set,m=g,g(h)}function g(h){const b=c(h);if(b)return b;const y=kx(h,u);return d(h,y),y}return function(){return m(xx.apply(null,arguments))}}const Kt=i=>{const n=u=>u[i]||[];return n.isThemeGetter=!0,n},Yv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sx=/^\d+\/\d+$/,Ix=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zi=i=>Sx.test(i),nt=i=>!!i&&!Number.isNaN(Number(i)),Cn=i=>!!i&&Number.isInteger(Number(i)),Dc=i=>i.endsWith("%")&&nt(i.slice(0,-1)),gn=i=>Ix.test(i),Ox=()=>!0,Ex=i=>zx.test(i)&&!Nx.test(i),Hv=()=>!1,Px=i=>jx.test(i),Cx=i=>Tx.test(i),Ux=i=>!Ee(i)&&!Pe(i),Mx=i=>Ni(i,nb,Hv),Ee=i=>Yv.test(i),ci=i=>Ni(i,ib,Ex),Lc=i=>Ni(i,Rx,nt),Xv=i=>Ni(i,tb,Hv),Dx=i=>Ni(i,rb,Cx),La=i=>Ni(i,ob,Px),Pe=i=>Kv.test(i),xo=i=>ji(i,ib),Lx=i=>ji(i,Fx),eb=i=>ji(i,tb),Ax=i=>ji(i,nb),Zx=i=>ji(i,rb),Aa=i=>ji(i,ob,!0),Ni=(i,n,u)=>{const c=Yv.exec(i);return c?c[1]?n(c[1]):u(c[2]):!1},ji=(i,n,u=!1)=>{const c=Kv.exec(i);return c?c[1]?n(c[1]):u:!1},tb=i=>i==="position"||i==="percentage",rb=i=>i==="image"||i==="url",nb=i=>i==="length"||i==="size"||i==="bg-size",ib=i=>i==="length",Rx=i=>i==="number",Fx=i=>i==="family-name",ob=i=>i==="shadow",Ac=()=>{const i=Kt("color"),n=Kt("font"),u=Kt("text"),c=Kt("font-weight"),d=Kt("tracking"),m=Kt("leading"),p=Kt("breakpoint"),g=Kt("container"),h=Kt("spacing"),b=Kt("radius"),y=Kt("shadow"),k=Kt("inset-shadow"),v=Kt("text-shadow"),x=Kt("drop-shadow"),S=Kt("blur"),O=Kt("perspective"),U=Kt("aspect"),B=Kt("ease"),oe=Kt("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...Y(),Pe,Ee],F=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],H=()=>[Pe,Ee,h],$e=()=>[zi,"full","auto",...H()],Ie=()=>[Cn,"none","subgrid",Pe,Ee],ke=()=>["auto",{span:["full",Cn,Pe,Ee]},Cn,Pe,Ee],fe=()=>[Cn,"auto",Pe,Ee],Se=()=>["auto","min","max","fr",Pe,Ee],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...H()],W=()=>[zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],N=()=>[i,Pe,Ee],C=()=>[...Y(),eb,Xv,{position:[Pe,Ee]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",Ax,Mx,{size:[Pe,Ee]}],ie=()=>[Dc,xo,ci],Q=()=>["","none","full",b,Pe,Ee],Ce=()=>["",nt,xo,ci],_e=()=>["solid","dashed","dotted","double"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[nt,Dc,eb,Xv],Ne=()=>["","none",S,Pe,Ee],xe=()=>["none",nt,Pe,Ee],Re=()=>["none",nt,Pe,Ee],Ye=()=>[nt,Pe,Ee],ut=()=>[zi,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gn],breakpoint:[gn],color:[Ox],container:[gn],"drop-shadow":[gn],ease:["in","out","in-out"],font:[Ux],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gn],shadow:[gn],spacing:["px",nt],text:[gn],"text-shadow":[gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zi,Ee,Pe,U]}],container:["container"],columns:[{columns:[nt,Ee,Pe,g]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$e()}],"inset-x":[{"inset-x":$e()}],"inset-y":[{"inset-y":$e()}],start:[{start:$e()}],end:[{end:$e()}],top:[{top:$e()}],right:[{right:$e()}],bottom:[{bottom:$e()}],left:[{left:$e()}],visibility:["visible","invisible","collapse"],z:[{z:[Cn,"auto",Pe,Ee]}],basis:[{basis:[zi,"full","auto",g,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[nt,zi,"auto","initial","none",Ee]}],grow:[{grow:["",nt,Pe,Ee]}],shrink:[{shrink:["",nt,Pe,Ee]}],order:[{order:[Cn,"first","last","none",Pe,Ee]}],"grid-cols":[{"grid-cols":Ie()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":Ie()}],"row-start-end":[{row:ke()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[g,"screen",...W()]}],"min-w":[{"min-w":[g,"screen","none",...W()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",u,xo,ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,Pe,Lc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dc,Ee]}],"font-family":[{font:[Lx,Ee,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,Pe,Ee]}],"line-clamp":[{"line-clamp":[nt,"none",Pe,Lc]}],leading:[{leading:[m,...H()]}],"list-image":[{"list-image":["none",Pe,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Pe,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[nt,"from-font","auto",Pe,ci]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[nt,"auto",Pe,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe,Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Cn,Pe,Ee],radial:["",Pe,Ee],conic:[Cn,Pe,Ee]},Zx,Dx]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:Ce()}],"border-w-x":[{"border-x":Ce()}],"border-w-y":[{"border-y":Ce()}],"border-w-s":[{"border-s":Ce()}],"border-w-e":[{"border-e":Ce()}],"border-w-t":[{"border-t":Ce()}],"border-w-r":[{"border-r":Ce()}],"border-w-b":[{"border-b":Ce()}],"border-w-l":[{"border-l":Ce()}],"divide-x":[{"divide-x":Ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[nt,Pe,Ee]}],"outline-w":[{outline:["",nt,xo,ci]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",y,Aa,La]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",k,Aa,La]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[nt,ci]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Ce()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",v,Aa,La]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[nt,Pe,Ee]}],"mix-blend":[{"mix-blend":[...V(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":V()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[nt]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[Pe,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Y()}],"mask-image-conic-pos":[{"mask-conic":[nt]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Pe,Ee]}],filter:[{filter:["","none",Pe,Ee]}],blur:[{blur:Ne()}],brightness:[{brightness:[nt,Pe,Ee]}],contrast:[{contrast:[nt,Pe,Ee]}],"drop-shadow":[{"drop-shadow":["","none",x,Aa,La]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",nt,Pe,Ee]}],"hue-rotate":[{"hue-rotate":[nt,Pe,Ee]}],invert:[{invert:["",nt,Pe,Ee]}],saturate:[{saturate:[nt,Pe,Ee]}],sepia:[{sepia:["",nt,Pe,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",Pe,Ee]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[nt,Pe,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[nt,Pe,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",nt,Pe,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[nt,Pe,Ee]}],"backdrop-invert":[{"backdrop-invert":["",nt,Pe,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[nt,Pe,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[nt,Pe,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",nt,Pe,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Pe,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[nt,"initial",Pe,Ee]}],ease:[{ease:["linear","initial",B,Pe,Ee]}],delay:[{delay:[nt,Pe,Ee]}],animate:[{animate:["none",oe,Pe,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,Pe,Ee]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[Pe,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ut()}],"translate-x":[{"translate-x":ut()}],"translate-y":[{"translate-y":ut()}],"translate-z":[{"translate-z":ut()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pe,Ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pe,Ee]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[nt,xo,ci,Lc]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},qx=(i,{cacheSize:n,prefix:u,experimentalParseClassName:c,extend:d={},override:m={}})=>(So(i,"cacheSize",n),So(i,"prefix",u),So(i,"experimentalParseClassName",c),Za(i.theme,m.theme),Za(i.classGroups,m.classGroups),Za(i.conflictingClassGroups,m.conflictingClassGroups),Za(i.conflictingClassGroupModifiers,m.conflictingClassGroupModifiers),So(i,"orderSensitiveModifiers",m.orderSensitiveModifiers),Ra(i.theme,d.theme),Ra(i.classGroups,d.classGroups),Ra(i.conflictingClassGroups,d.conflictingClassGroups),Ra(i.conflictingClassGroupModifiers,d.conflictingClassGroupModifiers),ab(i,d,"orderSensitiveModifiers"),i),So=(i,n,u)=>{u!==void 0&&(i[n]=u)},Za=(i,n)=>{if(n)for(const u in n)So(i,u,n[u])},Ra=(i,n)=>{if(n)for(const u in n)ab(i,n,u)},ab=(i,n,u)=>{const c=n[u];c!==void 0&&(i[u]=i[u]?i[u].concat(c):c)},Wx=(i,...n)=>typeof i=="function"?Mc(Ac,i,...n):Mc(()=>qx(Ac(),i),...n),sb=Mc(Ac);function Sr(...i){return sb(yo(i))}var Qx=/\s+/g,Zc=i=>typeof i!="string"||!i?i:i.replace(Qx," ").trim(),Fa=(...i)=>{let n=[],u=c=>{if(!c&&c!==0&&c!==0n)return;if(Array.isArray(c)){for(let m=0,p=c.length;m<p;m++)u(c[m]);return}let d=typeof c;if(d==="string"||d==="number"||d==="bigint"){if(d==="number"&&c!==c)return;n.push(String(c))}else if(d==="object"){let m=Object.keys(c);for(let p=0,g=m.length;p<g;p++){let h=m[p];c[h]&&n.push(h)}}};for(let c=0,d=i.length;c<d;c++){let m=i[c];m!=null&&u(m)}return n.length>0?Zc(n.join(" ")):void 0},ub=i=>i===!1?"false":i===!0?"true":i===0?"0":i,hr=i=>{if(!i||typeof i!="object")return!0;for(let n in i)return!1;return!0},Gx=(i,n)=>{if(i===n)return!0;if(!i||!n)return!1;let u=Object.keys(i),c=Object.keys(n);if(u.length!==c.length)return!1;for(let d=0;d<u.length;d++){let m=u[d];if(!c.includes(m)||i[m]!==n[m])return!1}return!0},cb=(i,n)=>{for(let u in n)if(Object.prototype.hasOwnProperty.call(n,u)){let c=n[u];u in i?i[u]=Fa(i[u],c):i[u]=c}return i},lb=(i,n)=>{for(let u=0;u<i.length;u++){let c=i[u];Array.isArray(c)?lb(c,n):c&&n.push(c)}},db=(...i)=>{let n=[];lb(i,n);let u=[];for(let c=0;c<n.length;c++)n[c]&&u.push(n[c]);return u},Rc=(i,n)=>{let u={};for(let c in i){let d=i[c];if(c in n){let m=n[c];Array.isArray(d)||Array.isArray(m)?u[c]=db(m,d):typeof d=="object"&&typeof m=="object"&&d&&m?u[c]=Rc(d,m):u[c]=m+" "+d}else u[c]=d}for(let c in n)c in i||(u[c]=n[c]);return u},Vx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function Jx(){let i=null,n={},u=!1;return{get cachedTwMerge(){return i},set cachedTwMerge(c){i=c},get cachedTwMergeConfig(){return n},set cachedTwMergeConfig(c){n=c},get didTwMergeConfigChange(){return u},set didTwMergeConfigChange(c){u=c},reset(){i=null,n={},u=!1}}}var hn=Jx(),Bx=i=>{let n=(u,c)=>{let{extend:d=null,slots:m={},variants:p={},compoundVariants:g=[],compoundSlots:h=[],defaultVariants:b={}}=u,y={...Vx,...c},k=d?.base?Fa(d.base,u?.base):u?.base,v=d?.variants&&!hr(d.variants)?Rc(p,d.variants):p,x=d?.defaultVariants&&!hr(d.defaultVariants)?{...d.defaultVariants,...b}:b;!hr(y.twMergeConfig)&&!Gx(y.twMergeConfig,hn.cachedTwMergeConfig)&&(hn.didTwMergeConfigChange=!0,hn.cachedTwMergeConfig=y.twMergeConfig);let S=hr(d?.slots),O=hr(m)?{}:{base:Fa(u?.base,S&&d?.base),...m},U=S?O:cb({...d?.slots},hr(O)?{base:u?.base}:O),B=hr(d?.compoundVariants)?g:db(d?.compoundVariants,g),oe=Y=>{if(hr(v)&&hr(m)&&S)return i(k,Y?.class,Y?.className)(y);if(B&&!Array.isArray(B))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof B}`);if(h&&!Array.isArray(h))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof h}`);let G=(me,ne,re=[],W)=>{let N=re;if(typeof ne=="string"){let C=Zc(ne).split(" ");for(let E=0;E<C.length;E++)N.push(`${me}:${C[E]}`)}else if(Array.isArray(ne))for(let C=0;C<ne.length;C++)N.push(`${me}:${ne[C]}`);else if(typeof ne=="object"&&typeof W=="string"&&W in ne){let C=ne[W];if(C&&typeof C=="string"){let E=Zc(C).split(" "),Z=[];for(let ie=0;ie<E.length;ie++)Z.push(`${me}:${E[ie]}`);N[W]=N[W]?N[W].concat(Z):Z}else if(Array.isArray(C)&&C.length>0){let E=[];for(let Z=0;Z<C.length;Z++)E.push(`${me}:${C[Z]}`);N[W]=E}}return N},F=(me,ne=v,re=null,W=null)=>{let N=ne[me];if(!N||hr(N))return null;let C=W?.[me]??Y?.[me];if(C===null)return null;let E=ub(C),Z=Array.isArray(y.responsiveVariants)&&y.responsiveVariants.length>0||y.responsiveVariants===!0,ie=x?.[me],Q=[];if(typeof E=="object"&&Z)for(let[V,le]of Object.entries(E)){let Ne=N[le];if(V==="initial"){ie=le;continue}Array.isArray(y.responsiveVariants)&&!y.responsiveVariants.includes(V)||(Q=G(V,Ne,Q,re))}let Ce=E!=null&&typeof E!="object"?E:ub(ie),_e=N[Ce||"false"];return typeof Q=="object"&&typeof re=="string"&&Q[re]?cb(Q,_e):Q.length>0?(Q.push(_e),re==="base"?Q.join(" "):Q):_e},K=()=>{if(!v)return null;let me=Object.keys(v),ne=[];for(let re=0;re<me.length;re++){let W=F(me[re],v);W&&ne.push(W)}return ne},H=(me,ne)=>{if(!v||typeof v!="object")return null;let re=[];for(let W in v){let N=F(W,v,me,ne),C=me==="base"&&typeof N=="string"?N:N&&N[me];C&&re.push(C)}return re},$e={};for(let me in Y){let ne=Y[me];ne!==void 0&&($e[me]=ne)}let Ie=(me,ne)=>{let re=typeof Y?.[me]=="object"?{[me]:Y[me]?.initial}:{};return{...x,...$e,...re,...ne}},ke=(me=[],ne)=>{let re=[],W=me.length;for(let N=0;N<W;N++){let{class:C,className:E,...Z}=me[N],ie=!0,Q=Ie(null,ne);for(let Ce in Z){let _e=Z[Ce],V=Q[Ce];if(Array.isArray(_e)){if(!_e.includes(V)){ie=!1;break}}else{if((_e==null||_e===!1)&&(V==null||V===!1))continue;if(V!==_e){ie=!1;break}}}ie&&(C&&re.push(C),E&&re.push(E))}return re},fe=me=>{let ne=ke(B,me);if(!Array.isArray(ne))return ne;let re={},W=i;for(let N=0;N<ne.length;N++){let C=ne[N];if(typeof C=="string")re.base=W(re.base,C)(y);else if(typeof C=="object")for(let E in C)re[E]=W(re[E],C[E])(y)}return re},Se=me=>{if(h.length<1)return null;let ne={},re=Ie(null,me);for(let W=0;W<h.length;W++){let{slots:N=[],class:C,className:E,...Z}=h[W];if(!hr(Z)){let ie=!0;for(let Q in Z){let Ce=re[Q],_e=Z[Q];if(Ce===void 0||(Array.isArray(_e)?!_e.includes(Ce):_e!==Ce)){ie=!1;break}}if(!ie)continue}for(let ie=0;ie<N.length;ie++){let Q=N[ie];ne[Q]||(ne[Q]=[]),ne[Q].push([C,E])}}return ne};if(!hr(m)||!S){let me={};if(typeof U=="object"&&!hr(U)){let ne=i;for(let re in U)me[re]=W=>{let N=fe(W),C=Se(W);return ne(U[re],H(re,W),N?N[re]:void 0,C?C[re]:void 0,W?.class,W?.className)(y)}}return me}return i(k,K(),ke(B),Y?.class,Y?.className)(y)},J=()=>{if(!(!v||typeof v!="object"))return Object.keys(v)};return oe.variantKeys=J(),oe.extend=d,oe.base=k,oe.slots=U,oe.variants=v,oe.defaultVariants=x,oe.compoundSlots=h,oe.compoundVariants=B,oe};return{tv:n,createTV:u=>(c,d)=>n(c,d?Rc(u,d):u)}},Yx=i=>hr(i)?sb:Wx({...i,extend:{theme:i.theme,classGroups:i.classGroups,conflictingClassGroupModifiers:i.conflictingClassGroupModifiers,conflictingClassGroups:i.conflictingClassGroups,...i.extend}}),Kx=(...i)=>n=>{let u=Fa(i);return!u||!n.twMerge?u:((!hn.cachedTwMerge||hn.didTwMergeConfigChange)&&(hn.didTwMergeConfigChange=!1,hn.cachedTwMerge=Yx(hn.cachedTwMergeConfig)),hn.cachedTwMerge(u)||void 0)},{tv:Hx}=Bx(Kx);const fb=Hx({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white",outline:"bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var Xx=te("<a><!></a>"),eS=te("<button><!></button>");function Ft(i,n){Je(n,!0);let u=w(n,"variant",3,"default"),c=w(n,"size",3,"default"),d=w(n,"ref",15,null),m=w(n,"href",3,void 0),p=w(n,"type",3,"button"),g=At(n,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children","onclick"]);var h=Ze(),b=Te(h);{var y=v=>{var x=Xx();Gt(x,O=>({"data-slot":"button",class:O,href:n.disabled?void 0:m(),"aria-disabled":n.disabled,role:n.disabled?"link":void 0,tabindex:n.disabled?-1:void 0,...g}),[()=>Sr(fb({variant:u(),size:c()}),n.class)]);var S=R(x);Rt(S,()=>n.children??gt),L(x),Ur(x,O=>d(O),()=>d()),T(v,x)},k=v=>{var x=eS();Gt(x,O=>({"data-slot":"button",class:O,type:p(),disabled:n.disabled,onclick:n.onclick,...g}),[()=>Sr(fb({variant:u(),size:c()}),n.class)]);var S=R(x);Rt(S,()=>n.children??gt),L(x),Ur(x,O=>d(O),()=>d()),T(v,x)};ae(b,v=>{m()?v(y):v(k,!1)})}T(i,h),Be()}var tS=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),rS=te('<span class="text-destructive ml-1">*</span>'),nS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),iS=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium"> </span>'),oS=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium text-right"> </span>'),aS=te('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),sS=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),uS=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="flex flex-col gap-3 pt-2"><div class="flex gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2 justify-center items-center w-full"></div> <!></div> <!></div>');function cS(i,n){Je(n,!1);const u=ee(),c=ee(),{updateQuestionResponse:d,removeQuestionResponse:m}=pn();let p=w(n,"question",8),g=w(n,"value",24,()=>-1),h=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),k=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let v=ee(g()??-1);function x(ne){l(v)===ne?($(v,-1),h()(-1),m(p().id)):($(v,ne),h()(ne),d(p().id,ne,s.QuestionTypes.NPS))}ve(()=>z(y()),()=>{$(u,y()==="dark")}),ve(()=>z(g()),()=>{g()!==void 0&&$(v,g())}),ve(()=>z(p()),()=>{$(c,Array.from({length:(p().max??10)-(p().min??0)+1},(ne,re)=>re+(p().min??0)))}),fr(),er();var S=uS(),O=R(S),U=R(O);{var B=ne=>{var re=tS(),W=R(re);L(re),je(()=>Oe(W,`${k()??""}.`)),T(ne,re)};ae(U,ne=>{k()!==void 0&&ne(B)})}var oe=de(U,2),J=R(oe),Y=R(J),G=de(Y);{var F=ne=>{var re=rS();T(ne,re)};ae(G,ne=>{z(p()),M(()=>p().required)&&ne(F)})}L(J);var K=de(J,2);{var H=ne=>{var re=nS(),W=R(re,!0);L(re),je(()=>Oe(W,(z(p()),M(()=>p().description)))),T(ne,re)};ae(K,ne=>{z(p()),M(()=>p().description)&&ne(H)})}L(oe),L(O);var $e=de(O,2),Ie=R($e);gr(Ie,5,()=>l(c),xr,(ne,re)=>{{let W=Ae(()=>`flex-1 min-w-0 h-8 xs:h-9 sm:h-10 text-xs xs:text-sm sm:text-base font-semibold transition-all ${l(v)===l(re)?"bg-primary text-primary-foreground border-primary shadow-md hover:bg-primary/90 scale-105 dark:border-primary/90 dark:bg-primary dark:hover:bg-primary dark:hover:text-primary-foreground hover:text-primary-foreground":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"}`);Ft(ne,{type:"button",variant:"outline",size:"sm",get class(){return l(W)},onclick:()=>x(l(re)),children:(N,C)=>{_r();var E=On();je(()=>Oe(E,l(re))),T(N,E)},$$slots:{default:!0}})}}),L(Ie);var ke=de(Ie,2);{var fe=ne=>{var re=aS(),W=R(re);{var N=Z=>{var ie=iS(),Q=R(ie,!0);L(ie),je(()=>Oe(Q,(z(p()),M(()=>p().minLabel)))),T(Z,ie)};ae(W,Z=>{z(p()),M(()=>p().minLabel)&&Z(N)})}var C=de(W,2);{var E=Z=>{var ie=oS(),Q=R(ie,!0);L(ie),je(()=>Oe(Q,(z(p()),M(()=>p().maxLabel)))),T(Z,ie)};ae(C,Z=>{z(p()),M(()=>p().maxLabel)&&Z(E)})}L(re),T(ne,re)};ae(ke,ne=>{z(p()),M(()=>p().minLabel||p().maxLabel)&&ne(fe)})}L($e);var Se=de($e,2);{var me=ne=>{var re=sS(),W=R(re),N=R(W,!0);L(W),L(re),je(()=>Oe(N,b())),T(ne,re)};ae(Se,ne=>{b()&&ne(me)})}L(S),je(()=>Oe(Y,`${z(p()),M(()=>p().title)??""} `)),T(i,S),Be()}var lS=te("<nav><!></nav>");function dS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=lS();Gt(d,()=>({"data-slot":"breadcrumb",class:n.class,"aria-label":"breadcrumb",...c}));var m=R(d);Rt(m,()=>n.children??gt),L(d),Ur(d,p=>u(p),()=>u()),T(i,d),Be()}/**
|
|
47
47
|
* @license @lucide/svelte v0.544.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* ISC License
|
|
@@ -86,7 +86,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
86
86
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
87
87
|
* SOFTWARE.
|
|
88
88
|
*
|
|
89
|
-
*/const
|
|
89
|
+
*/const fS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var mS=Tn("<svg><!><!></svg>");function qa(i,n){Je(n,!0);const u=w(n,"color",3,"currentColor"),c=w(n,"size",3,24),d=w(n,"strokeWidth",3,2),m=w(n,"absoluteStrokeWidth",3,!1),p=w(n,"iconNode",19,()=>[]),g=At(n,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var h=mS();Gt(h,k=>({...fS,...g,width:c(),height:c(),stroke:u(),"stroke-width":k,class:["lucide-icon lucide",n.name&&`lucide-${n.name}`,n.class]}),[()=>m()?Number(d())*24/Number(c()):d()]);var b=R(h);gr(b,17,p,xr,(k,v)=>{var x=lt(()=>Yt(l(v),2));let S=()=>l(x)[0],O=()=>l(x)[1];var U=Ze(),B=Te(U);xv(B,S,!0,(oe,J)=>{Gt(oe,()=>({...O()}))}),T(k,U)});var y=de(b);Rt(y,()=>n.children??gt),L(h),T(i,h),Be()}var pS=te("<li><!></li>");function mb(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=pS();Gt(d,p=>({"data-slot":"breadcrumb-item",class:p,...c}),[()=>Sr("inline-flex items-center gap-1.5",n.class)]);var m=R(d);Rt(m,()=>n.children??gt),L(d),Ur(d,p=>u(p),()=>u()),T(i,d),Be()}function gS(i,n){Je(n,!0);/**
|
|
90
90
|
* @license @lucide/svelte v0.544.0 - ISC
|
|
91
91
|
*
|
|
92
92
|
* ISC License
|
|
@@ -129,11 +129,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
129
129
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
130
130
|
* SOFTWARE.
|
|
131
131
|
*
|
|
132
|
-
*/let u=At(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"m9 18 6-6-6-6"}]];Ra(i,Ot({name:"chevron-right"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=qe(),g=je(p);Rt(g,()=>n.children??gt),j(d,p)},$$slots:{default:!0}})),Ye()}var dS=ee("<li><!></li>");function fS(i,n){Be(n,!0);let u=w(n,"ref",15,null),l=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=dS();Wt(d,v=>({"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",class:v,...l}),[()=>xr("[&>svg]:size-3.5",n.class)]);var m=Z(d);{var p=v=>{var b=qe(),y=je(b);Rt(y,()=>n.children??gt),j(v,b)},g=v=>{cS(v,{})};se(m,v=>{n.children?v(p):v(g,!1)})}D(d),Mr(d,v=>u(v),()=>u()),j(i,d),Ye()}var mS=ee("<a><!></a>");function pS(i,n){Be(n,!0);let u=w(n,"ref",15,null),l=w(n,"href",3,void 0),d=At(n,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const m=ct(()=>({"data-slot":"breadcrumb-link",class:xr("hover:text-foreground transition-colors",n.class),href:l(),...d}));var p=qe(),g=je(p);{var v=y=>{var _=qe(),h=je(_);Rt(h,()=>n.child,()=>({props:c(m)})),j(y,_)},b=y=>{var _=mS();Wt(_,()=>({...c(m)}));var h=Z(_);Rt(h,()=>n.children??gt),D(_),Mr(_,S=>u(S),()=>u()),j(y,_)};se(g,y=>{n.child?y(v):y(b,!1)})}j(i,p),Ye()}var gS=ee("<ol><!></ol>");function vS(i,n){Be(n,!0);let u=w(n,"ref",15,null),l=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=gS();Wt(d,p=>({"data-slot":"breadcrumb-list",class:p,...l}),[()=>xr("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",n.class)]);var m=Z(d);Rt(m,()=>n.children??gt),D(d),Mr(d,p=>u(p),()=>u()),j(i,d),Ye()}var hS=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),bS=ee('<span class="text-destructive ml-1">*</span>'),yS=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),$S=ee("<!> <!>",1),wS=ee("<!> <!>",1),_S=zn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),kS=ee('<span class="flex items-center gap-3 w-full"><span class="flex-1 text-sm font-medium"> </span> <!></span>'),xS=ee('<div class="p-2 space-y-1"></div>'),SS=ee('<div class="flex flex-col items-center justify-center py-12 px-4"><div class="w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-3"><svg class="w-6 h-6 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm font-medium text-muted-foreground">No options available</p></div>'),IS=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),zS=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="border border-border rounded-xl bg-card shadow-sm overflow-hidden"><div class="px-4 py-3 bg-accent/30 border-b border-border backdrop-blur-sm"><!></div> <div class="max-h-[420px] overflow-y-auto scrollbar-thin"><!></div></div> <!></div>');function NS(i,n){Be(n,!1);const u=X();let l=w(n,"question",8),d=w(n,"value",24,()=>[]),m=w(n,"onChange",8),p=w(n,"error",8,void 0),g=w(n,"currentMode",8,void 0),v=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);const b=d()?Array.isArray(d())?d():[d()]:[];let y=X(b),_=X(T()),h=X(!1),S=X([]),x=X([]);function T(){return b.length===0?[]:b.slice(0,-1)}function P(oe,ge){$(h,!0),oe.children&&oe.children.length>0?$(_,ge):($(y,ge),$(_,ge.slice(0,-1)),m()(ge))}function J(oe){const ge=c(y);return ge.length!==oe.length?!1:oe.every((Se,xe)=>ge[xe]===Se)}function ie(oe){let ge=l().options;for(let Se=0;Se<oe.length;Se++){const xe=ge.find(Fe=>Fe.value===oe[Se]);if(xe&&xe.children)ge=xe.children;else return[]}return ge}function G(oe){const ge=[];let Se=l().options;for(let xe=0;xe<oe.length;xe++){const Fe=Se.find(tt=>tt.value===oe[xe]);Fe&&(ge.push({value:oe[xe],label:Fe.label,index:xe}),Fe.children&&(Se=Fe.children))}return ge}function V(oe){$(h,!0),$(_,c(_).slice(0,oe+1))}function W(){$(h,!0),$(_,[]),$(y,[]),m()([])}be(()=>z(g()),()=>{$(u,g()==="dark")}),be(()=>(z(d()),c(h)),()=>{if(d()!==void 0&&!c(h)){const oe=Array.isArray(d())?d():[d()];$(y,oe),oe.length>0?$(_,oe.slice(0,-1)):$(_,[])}else d()===void 0&&!c(h)&&($(y,[]),$(_,[]))}),be(()=>c(_),()=>{$(S,ie(c(_)))}),be(()=>c(_),()=>{$(x,G(c(_)))}),dr(),er();var q=zS(),Q=Z(q),Y=Z(Q);{var $e=oe=>{var ge=hS(),Se=Z(ge);D(ge),Ie(()=>Te(Se,`${v()??""}.`)),j(oe,ge)};se(Y,oe=>{v()!==void 0&&oe($e)})}var Oe=pe(Y,2),ke=Z(Oe),de=Z(ke),ze=pe(de);{var fe=oe=>{var ge=bS();j(oe,ge)};se(ze,oe=>{z(l()),C(()=>l().required)&&oe(fe)})}D(ke);var ne=pe(ke,2);{var te=oe=>{var ge=yS(),Se=Z(ge,!0);D(ge),Ie(()=>Te(Se,(z(l()),C(()=>l().description)))),j(oe,ge)};se(ne,oe=>{z(l()),C(()=>l().description)&&oe(te)})}D(Oe),D(Q);var N=pe(Q,2),U=Z(N),A=Z(U);aS(A,{children:(oe,ge)=>{vS(oe,{class:"flex items-center gap-1.5 flex-wrap",children:(Se,xe)=>{var Fe=wS(),tt=je(Fe);db(tt,{children:(Ge,it)=>{qt(Ge,{type:"button",variant:"ghost",size:"sm",class:"h-8 w-8 p-0 hover:bg-background/80 rounded-md transition-colors",onclick:W,"aria-label":"Home",children:(vt,Me)=>{ix(vt,{size:18,class:"text-muted-foreground hover:text-foreground transition-colors"})},$$slots:{default:!0}})},$$slots:{default:!0}});var st=pe(tt,2);pr(st,1,()=>c(x),kr,(Ge,it)=>{var vt=$S(),Me=je(vt);fS(Me,{class:"text-muted-foreground/50",children:(Pt,Gt)=>{Ma(Pt,{size:14})},$$slots:{default:!0}});var Ct=pe(Me,2);db(Ct,{children:(Pt,Gt)=>{pS(Pt,{onclick:()=>V(c(it).index),class:"cursor-pointer text-sm font-medium text-foreground/80 hover:text-primary transition-colors px-2 py-1 rounded-md hover:bg-background/50",children:(Qt,It)=>{wr();var wt=Nn();Ie(()=>Te(wt,(c(it),C(()=>c(it).label)))),j(Qt,wt)},$$slots:{default:!0}})},$$slots:{default:!0}}),j(Ge,vt)}),j(Se,Fe)},$$slots:{default:!0}})},$$slots:{default:!0}}),D(U);var E=pe(U,2),L=Z(E);{var F=oe=>{var ge=xS();pr(ge,5,()=>c(S),kr,(Se,xe)=>{const Fe=Le(()=>(c(_),c(xe),C(()=>J([...c(_),c(xe).value])))),tt=Le(()=>(c(xe),C(()=>c(xe).children&&c(xe).children.length>0)));{let st=Le(()=>`w-full justify-start px-4 py-3.5 h-auto rounded-lg text-left transition-all relative group ${c(Fe)&&!c(tt)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:hover:bg-primary":"text-foreground hover:bg-accent/50 hover:border-border/50 border border-transparent"}`);qt(Se,{type:"button",variant:"ghost",get class(){return c(st)},onclick:()=>P(c(xe),[...c(_),c(xe).value]),children:(Ge,it)=>{var vt=kS(),Me=Z(vt),Ct=Z(Me,!0);D(Me);var Pt=pe(Me,2);{var Gt=It=>{{let wt=Le(()=>`flex-shrink-0 transition-transform group-hover:translate-x-0.5 ${c(Fe)?"text-primary":"text-muted-foreground"}`);Ma(It,{size:18,get class(){return c(wt)}})}},Qt=It=>{var wt=qe(),_t=je(wt);{var Sr=Dr=>{var le=_S();j(Dr,le)};se(_t,Dr=>{c(Fe)&&Dr(Sr)},!0)}j(It,wt)};se(Pt,It=>{c(tt)?It(Gt):It(Qt,!1)})}D(vt),Ie(()=>Te(Ct,(c(xe),C(()=>c(xe).label)))),j(Ge,vt)},$$slots:{default:!0}})}}),D(ge),j(oe,ge)},ae=oe=>{var ge=SS();j(oe,ge)};se(L,oe=>{c(S),C(()=>c(S).length>0)?oe(F):oe(ae,!1)})}D(E),D(N);var Ce=pe(N,2);{var ce=oe=>{var ge=IS(),Se=pe(Z(ge),2),xe=Z(Se,!0);D(Se),D(ge),Ie(()=>Te(xe,p())),j(oe,ge)};se(Ce,oe=>{p()&&oe(ce)})}D(q),Ie(()=>Te(de,`${z(l()),C(()=>l().title)??""} `)),j(i,q),Ye()}var jS=ee("<textarea></textarea>");function TS(i,n){Be(n,!0);let u=w(n,"ref",15,null),l=w(n,"value",15),d=w(n,"data-slot",3,"textarea"),m=At(n,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var p=jS();u0(p),Wt(p,g=>({"data-slot":d(),class:g,...m}),[()=>xr("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n.class)]),Mr(p,g=>u(g),()=>u()),Ea(p,l),j(i,p),Ye()}function fb(i){if(!i)return{code:null,message:""};const n=i.split("|").map(u=>u.trim());if(n.length>=2){const u=n[0],l=n.slice(1).join("|").trim(),d=l.match(/(\d+)\s+seconds?/i),m=d?parseInt(d[1],10):void 0;return{code:u,message:l,seconds:m}}return{code:null,message:i}}function mb(i,n,u){let l=i;n(l);const d=setInterval(()=>{l--,n(l),l<=0&&(clearInterval(d),u())},1e3);return d}function pb(i,n,u,l){if(!u?.otherFields)return n;const{otherFields:d}=u;switch(i){case"1001":{const m=d.aiEnhancementCooldownErrorMessage||n;return l!==void 0?`${m} (${l}s)`:m}case"1002":return d.aiEnhancementMaxReachedErrorMessage||n;default:return n}}async function gb(i){return await window.encatch._internal.refineText({questionId:i.questionId,identifier:i.identifier,feedbackConfigurationId:i.feedbackConfigurationId,userText:i.userText})}var OS=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),ES=ee('<span class="text-destructive ml-1">*</span>'),PS=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),CS=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),MS=zn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),DS=ee('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),US=ee("<!> <span>Reset</span>",1),LS=ee('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),AS=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),ZS=ee('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),RS=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function qS(i,n){Be(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X(),g=X(),v=X(),b=X();let y=w(n,"question",8),_=w(n,"value",8,""),h=w(n,"onChange",8),S=w(n,"error",8,void 0),x=w(n,"currentMode",8,void 0),T=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0),w(n,"apiKey",8,void 0),w(n,"hostUrl",8,void 0);let P=w(n,"identifier",8,void 0),J=w(n,"feedbackConfigurationId",8,void 0),ie=w(n,"otherConfigurationProperties",8,void 0),G=X(_()??""),V=X(null),W=X(0),q=X(S()),Q=X(!1),Y=X(!1),$e=X(!1),Oe=X(null),ke=X(null),de=X(!1),ze=X(!1),fe=X(""),ne=X(0),te=null,N=X(c(G));const{updateQuestionResponse:U,setQuestionError:A}=mn();jn(()=>{setTimeout(()=>{const I=L(c(G));$(q,I),I&&A(y().id,I),$(de,!0)},0)}),go(()=>{te!==null&&clearInterval(te)});function E(){c(Q)||$(Q,!0)}function L(I){if(y().required&&(!I||I.trim()===""))return y().errorMessage||"This field is required";if(y().maxCharacters!==void 0&&I.length>y().maxCharacters||y().minCharacters!==void 0&&I.length>0&&I.length<y().minCharacters)return y().errorMessage}function F(I){te!==null&&clearInterval(te),te=mb(I,re=>{$(ne,re)},()=>{te=null,$(Oe,null)})}async function ae(){if(!ge()||!P()||!J())return;const I=c(G);try{$($e,!0),$(Oe,null);const re=await gb({questionId:y().id,identifier:P(),feedbackConfigurationId:J(),userText:I});if(re?.data?.refinedText){const we=re.data.refinedText;$(ke,ie()?.otherFields?.aiEnhancementSuccessMessage||re.message||"Text refined successfully"),c(V)?($(V,{original:c(V).original,enhanced:[...c(V).enhanced,we]}),$(W,c(V).enhanced.length)):($(V,{original:I,enhanced:[we]}),$(W,1)),$(G,we),$(Y,!0);const Ae=L(we);$(q,Ae),h()(we),U(y().id,we,s.QuestionTypes.LONG_TEXT,Ae)}else{if(re?.message){const{code:we,message:Ae,seconds:Ze}=fb(re.message);we==="1001"&&Ze!==void 0&&F(Ze),$(Oe,pb(we,Ae,ie(),Ze))}$(Y,!1)}}catch(re){console.error("Error enhancing text:",re),$(Oe,"An error occurred while enhancing text"),$(Y,!1)}finally{$($e,!1)}}function Ce(){if(!c(V))return;const I=c(V).original;$(G,I),$(W,0);const re=L(I);$(q,re),h()(I),U(y().id,I,s.QuestionTypes.LONG_TEXT,re)}function ce(I){if(!c(V))return;let re;if(I===0)re=c(V).original;else{const Ae=I-1;if(Ae>=c(V).enhanced.length)return;re=c(V).enhanced[Ae]}$(G,re),$(W,I);const we=L(re);$(q,we),h()(re),U(y().id,re,s.QuestionTypes.LONG_TEXT,we)}function oe(){return c(V)?c(V).enhanced.length+1:0}function ge(){const I=c(G).trim();return I?y().minCharactersToEnhance!==void 0?I.length>=y().minCharactersToEnhance:!0:!1}be(()=>z(x()),()=>{$(u,x()==="dark")}),be(()=>(z(_()),c(G),c(Q)),()=>{_()!==void 0&&_()!==c(G)&&!c(Q)&&($(G,_()),$(N,_()))}),be(()=>c(G),()=>{$(l,c(G).length)}),be(()=>z(y()),()=>{$(d,y().minCharacters)}),be(()=>z(y()),()=>{$(m,y().maxCharacters)}),be(()=>(c(m),c(l)),()=>{$(p,c(m)!==void 0&&c(l)>c(m))}),be(()=>(c(d),c(l)),()=>{$(g,c(d)!==void 0&&c(l)<c(d)&&c(l)>0)}),be(()=>(c(p),c(g)),()=>{$(v,c(p)||c(g))}),be(()=>(c(d),c(m)),()=>{$(b,c(d)!==void 0||c(m)!==void 0)}),be(()=>(c(G),z(y())),()=>{const I=c(G).trim();I?y().minCharactersToEnhance!==void 0?$(ze,I.length>=y().minCharactersToEnhance):$(ze,!0):$(ze,!1)}),be(()=>(c(d),c(m),c(l),z(y())),()=>{c(d)!==void 0&&c(m)!==void 0?$(fe,`${c(l)} / (${c(d)} - ${c(m)})`):c(m)!==void 0&&y().required?$(fe,`${c(l)} / (1 - ${c(m)})`):c(d)!==void 0?$(fe,`${c(l)} / (${c(d)} - 5000)`):$(fe,"")}),be(()=>(c(ne),z(ie())),()=>{c(ne)>0&&ie()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(Oe,`${ie().otherFields.aiEnhancementCooldownErrorMessage} (${c(ne)}s)`)}),be(()=>z(S()),()=>{S()!==void 0&&$(q,S())}),be(()=>(c(de),c(Q),c(G),c(N),z(h()),z(y()),s.QuestionTypes),()=>{if(c(de)&&c(Q)&&c(G)!==c(N)){$(N,c(G));const I=L(c(G));$(q,I),h()(c(G)),U(y().id,c(G),s.QuestionTypes.LONG_TEXT,I)}}),dr(),er();var Se=RS(),xe=Z(Se),Fe=Z(xe);{var tt=I=>{var re=OS(),we=Z(re);D(re),Ie(()=>Te(we,`${T()??""}.`)),j(I,re)};se(Fe,I=>{T()!==void 0&&I(tt)})}var st=pe(Fe,2),Ge=Z(st),it=Z(Ge),vt=pe(it);{var Me=I=>{var re=ES();j(I,re)};se(vt,I=>{z(y()),C(()=>y().required)&&I(Me)})}D(Ge);var Ct=pe(Ge,2);{var Pt=I=>{var re=PS(),we=Z(re,!0);D(re),Ie(()=>Te(we,(z(y()),C(()=>y().description)))),j(I,re)};se(Ct,I=>{z(y()),C(()=>y().description)&&I(Pt)})}D(st),D(xe);var Gt=pe(xe,2);{var Qt=I=>{var re=CS(),we=Z(re),Ae=Z(we,!0);D(we),D(re),Ie(()=>Te(Ae,c(q))),j(I,re)};se(Gt,I=>{c(q)&&c(Q)&&I(Qt)})}var It=pe(Gt,2),wt=Z(It);{let I=Le(()=>(z(y()),C(()=>y().rows||4)));TS(wt,{class:"w-full min-h-[120px] text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",onfocus:E,get placeholder(){return z(y()),C(()=>y().placeholder)},get rows(){return c(I)},onblur:()=>{if(c(de)){const re=L(c(G));$(q,re),A(y().id,re)}},get value(){return c(G)},set value(re){$(G,re)},$$legacy:!0})}var _t=pe(wt,2),Sr=Z(_t);D(_t),D(It);var Dr=pe(It,2);{var le=I=>{var re=ZS(),we=je(re),Ae=Z(we);{let Ke=Le(()=>c($e)||!c(ze));qt(Ae,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:ae,get disabled(){return c(Ke)},children:(ft,Mt)=>{var kt=qe(),Ir=je(kt);{var vr=zt=>{var vn=MS();j(zt,vn)},rr=zt=>{Zh(zt,{size:16})};se(Ir,zt=>{c($e)?zt(vr):zt(rr,!1)})}j(ft,kt)},$$slots:{default:!0}})}var Ze=pe(Ae,2);{var ht=Ke=>{var ft=DS(),Mt=Z(ft);{let rr=Le(()=>c(W)===0);qt(Mt,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{c(W)>0&&ce(c(W)-1)},get disabled(){return c(rr)},title:"Previous version",children:(zt,vn)=>{Lh(zt,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var kt=pe(Mt,2),Ir=Z(kt);D(kt);var vr=pe(kt,2);{let rr=Le(()=>(c(W),C(()=>c(W)>=oe()-1)));qt(vr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const zt=oe();c(W)<zt-1&&ce(c(W)+1)},get disabled(){return c(rr)},title:"Next version",children:(zt,vn)=>{Ma(zt,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}D(ft),Ie(rr=>Te(Ir,`${c(W)+1} / ${rr??""}`),[()=>C(oe)]),j(Ke,ft)};se(Ze,Ke=>{c(V),c($e),C(()=>c(V)&&!c($e)&&c(V).enhanced&&c(V).enhanced.length>1)&&Ke(ht)})}var sr=pe(Ze,2);{var tr=Ke=>{qt(Ke,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:Ce,title:"Back to original text",children:(ft,Mt)=>{var kt=US(),Ir=je(kt);Uh(Ir,{size:16}),wr(2),j(ft,kt)},$$slots:{default:!0}})};se(sr,Ke=>{c(V)&&!c($e)&&c(W)!==0&&Ke(tr)})}D(we);var Jt=pe(we,2);{var or=Ke=>{var ft=LS(),Mt=pe(Z(ft),2),kt=Z(Mt,!0);D(Mt),D(ft),Ie(()=>Te(kt,c(ke))),j(Ke,ft)};se(Jt,Ke=>{c(Y)&&!c(Oe)&&Ke(or)})}var Vr=pe(Jt,2);{var Io=Ke=>{var ft=AS(),Mt=pe(Z(ft),2),kt=Z(Mt,!0);D(Mt),D(ft),Ie(()=>Te(kt,c(Oe))),j(Ke,ft)};se(Vr,Ke=>{c(Oe)&&Ke(Io)})}j(I,re)};se(Dr,I=>{z(y()),C(()=>y().enableEnhanceWithAi)&&I(le)})}D(Se),Ie(I=>{Te(it,`${z(y()),C(()=>y().title)??""} `),dn(_t,1,`absolute right-3 bottom-3 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${c(v)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Te(Sr,`${c(G),C(()=>c(G)?.length||0)??""}${I??""}`)},[()=>(c(fe),C(()=>c(fe)?` ${c(fe).split("/")[1]||""}`:""))]),j(i,Se),Ye()}var FS=ee("<input/>"),WS=ee("<input/>");function GS(i,n){Be(n,!0);let u=w(n,"ref",15,null),l=w(n,"value",15),d=w(n,"files",15),m=w(n,"data-slot",3,"input"),p=At(n,["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]);var g=qe(),v=je(g);{var b=_=>{var h=FS();Wt(h,S=>({"data-slot":m(),class:S,type:"file",...p}),[()=>xr("selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Mr(h,S=>u(S),()=>u()),G0(h,d),Ea(h,l),j(_,h)},y=_=>{var h=WS();Wt(h,S=>({"data-slot":m(),class:S,type:n.type,...p}),[()=>xr("border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Mr(h,S=>u(S),()=>u()),Ea(h,l),j(_,h)};se(v,_=>{n.type==="file"?_(b):_(y,!1)})}j(i,g),Ye()}var QS=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),JS=ee('<span class="text-destructive ml-1">*</span>'),VS=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),BS=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),YS=zn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),KS=ee('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),HS=ee("<!> <span>Reset</span>",1),XS=ee('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),eI=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),tI=ee('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),rI=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function nI(i,n){Be(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X(),g=X(),v=X(),b=X(),{updateQuestionResponse:y,setQuestionError:_}=mn();let h=w(n,"question",8),S=w(n,"value",8,""),x=w(n,"onChange",8),T=w(n,"error",8,void 0),P=w(n,"currentMode",8,void 0),J=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0),w(n,"apiKey",8,void 0),w(n,"hostUrl",8,void 0);let ie=w(n,"identifier",8,void 0),G=w(n,"feedbackConfigurationId",8,void 0),V=w(n,"otherConfigurationProperties",8,void 0),W=X(S()||""),q=X(null),Q=X(0),Y=X(T()),$e=X(!1),Oe=X(!1),ke=X(!1),de=X(null),ze=X(null),fe=X(!1),ne=X(!1),te=X(""),N=X(0),U=null,A=X(c(W));jn(()=>{setTimeout(()=>{const I=oe(c(W));$(Y,I),I&&_(h().id,I),$(fe,!0)},0)}),go(()=>{U!==null&&clearInterval(U)});function E(){c($e)||$($e,!0)}function L(I){U!==null&&clearInterval(U),U=mb(I,re=>{$(N,re)},()=>{U=null,$(de,null)})}async function F(){if(!ge())return;const I=c(W);try{$(ke,!0),$(de,null);const re=await gb({questionId:h().id,identifier:ie(),feedbackConfigurationId:G(),userText:I});if(re?.data?.refinedText){const we=re.data.refinedText;$(ze,V()?.otherFields?.aiEnhancementSuccessMessage||re.message||"Text refined successfully"),c(q)?($(q,{original:c(q).original,enhanced:[...c(q).enhanced,we]}),$(Q,c(q).enhanced.length)):($(q,{original:I,enhanced:[we]}),$(Q,1)),$(W,we),$(Oe,!0);const Ae=oe(we);$(Y,Ae),x()(we),y(h().id,we,s.QuestionTypes.SHORT_ANSWER,Ae)}else{if(re?.message){const{code:we,message:Ae,seconds:Ze}=fb(re.message);we==="1001"&&Ze!==void 0&&L(Ze),$(de,pb(we,Ae,V(),Ze))}$(Oe,!1)}}catch(re){console.error("Error enhancing text:",re),$(de,"An error occurred while enhancing text!"),$(Oe,!1)}finally{$(ke,!1)}}function ae(){if(!c(q))return;const I=c(q).original;$(W,I),$(Q,0);const re=oe(I);$(Y,re),x()(I),y(h().id,I,s.QuestionTypes.SHORT_ANSWER,re)}function Ce(I){if(!c(q))return;let re;if(I===0)re=c(q).original;else{const Ae=I-1;if(Ae>=c(q).enhanced.length)return;re=c(q).enhanced[Ae]}$(W,re),$(Q,I);const we=oe(re);$(Y,we),x()(re),y(h().id,re,s.QuestionTypes.SHORT_ANSWER,we)}function ce(){return c(q)?c(q).enhanced.length+1:0}function oe(I){if(h().required&&(!I||I.trim()===""))return h().errorMessage||"This field is required";if(h().maxCharacters!==void 0&&I.length>h().maxCharacters||h().minCharacters!==void 0&&I.length>0&&I.length<h().minCharacters)return h().errorMessage;if(h().enableRegexValidation&&h().regexPattern)try{const re=new RegExp(h().regexPattern);if(I.length>0&&!re.test(I))return h().errorMessage||"Input does not match required pattern"}catch{}}function ge(){const I=c(W).trim();return I?h().minCharactersToEnhance!==void 0?I.length>=h().minCharactersToEnhance:!0:!1}be(()=>z(P()),()=>{$(u,P()==="dark")}),be(()=>(z(S()),c(W),c($e)),()=>{S()!==void 0&&S()!==c(W)&&!c($e)&&($(W,S()),$(A,S()))}),be(()=>c(W),()=>{$(l,c(W).length||0)}),be(()=>z(h()),()=>{$(d,h().minCharacters)}),be(()=>z(h()),()=>{$(m,h().maxCharacters)}),be(()=>(c(m),c(l)),()=>{$(p,c(m)!==void 0&&c(l)>c(m))}),be(()=>(c(d),c(l)),()=>{$(g,c(d)!==void 0&&c(l)<c(d)&&c(l)>0)}),be(()=>(c(p),c(g)),()=>{$(v,c(p)||c(g))}),be(()=>(c(d),c(m)),()=>{$(b,c(d)!==void 0||c(m)!==void 0)}),be(()=>(c(W),z(h())),()=>{const I=c(W).trim();I?h().minCharactersToEnhance!==void 0?$(ne,I.length>=h().minCharactersToEnhance):$(ne,!0):$(ne,!1)}),be(()=>(c(W),c(d),c(m),z(h())),()=>{const I=c(W)?.length||0;c(d)!==void 0&&c(m)!==void 0?$(te,`${I} / (${c(d)} - ${c(m)})`):c(m)!==void 0&&h().required?$(te,`${I} / (1 - ${c(m)})`):c(d)!==void 0?$(te,`${I} / (${c(d)} - 5000)`):$(te,`${I}`)}),be(()=>(c(N),z(V())),()=>{c(N)>0&&V()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(de,`${V().otherFields.aiEnhancementCooldownErrorMessage} (${c(N)}s)`)}),be(()=>z(T()),()=>{T()!==void 0&&$(Y,T())}),be(()=>(c(fe),c($e),c(W),c(A),z(x()),z(h()),s.QuestionTypes),()=>{if(c(fe)&&c($e)&&c(W)!==c(A)){$(A,c(W));const I=oe(c(W));$(Y,I),x()(c(W)),y(h().id,c(W),s.QuestionTypes.SHORT_ANSWER,I)}}),dr(),er();var Se=rI(),xe=Z(Se),Fe=Z(xe);{var tt=I=>{var re=QS(),we=Z(re);D(re),Ie(()=>Te(we,`${J()??""}.`)),j(I,re)};se(Fe,I=>{J()!==void 0&&I(tt)})}var st=pe(Fe,2),Ge=Z(st),it=Z(Ge),vt=pe(it);{var Me=I=>{var re=JS();j(I,re)};se(vt,I=>{z(h()),C(()=>h().required)&&I(Me)})}D(Ge);var Ct=pe(Ge,2);{var Pt=I=>{var re=VS(),we=Z(re,!0);D(re),Ie(()=>Te(we,(z(h()),C(()=>h().description)))),j(I,re)};se(Ct,I=>{z(h()),C(()=>h().description)&&I(Pt)})}D(st),D(xe);var Gt=pe(xe,2);{var Qt=I=>{var re=BS(),we=Z(re),Ae=Z(we,!0);D(we),D(re),Ie(()=>Te(Ae,c(Y))),j(I,re)};se(Gt,I=>{c(Y)&&c($e)&&I(Qt)})}var It=pe(Gt,2),wt=Z(It);{let I=Le(()=>`w-full pr-20 text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 ${c(b)?"pr-20":""}`);GS(wt,{get class(){return c(I)},onfocus:E,get placeholder(){return z(h()),C(()=>h().placeholder)},onblur:()=>{if(c(fe)){const re=oe(c(W));$(Y,re),_(h().id,re)}},get value(){return c(W)},set value(re){$(W,re)},$$legacy:!0})}var _t=pe(wt,2),Sr=Z(_t,!0);D(_t),D(It);var Dr=pe(It,2);{var le=I=>{var re=tI(),we=je(re),Ae=Z(we);{let Ke=Le(()=>c(ke)||!c(ne));qt(Ae,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:F,get disabled(){return c(Ke)},children:(ft,Mt)=>{var kt=qe(),Ir=je(kt);{var vr=zt=>{var vn=YS();j(zt,vn)},rr=zt=>{Zh(zt,{size:16})};se(Ir,zt=>{c(ke)?zt(vr):zt(rr,!1)})}j(ft,kt)},$$slots:{default:!0}})}var Ze=pe(Ae,2);{var ht=Ke=>{var ft=KS(),Mt=Z(ft);{let rr=Le(()=>c(Q)===0);qt(Mt,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{c(Q)>0&&Ce(c(Q)-1)},get disabled(){return c(rr)},title:"Previous version",children:(zt,vn)=>{Lh(zt,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var kt=pe(Mt,2),Ir=Z(kt);D(kt);var vr=pe(kt,2);{let rr=Le(()=>(c(Q),C(()=>c(Q)>=ce()-1)));qt(vr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const zt=ce();c(Q)<zt-1&&Ce(c(Q)+1)},get disabled(){return c(rr)},title:"Next version",children:(zt,vn)=>{Ma(zt,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}D(ft),Ie(rr=>Te(Ir,`${c(Q)+1} / ${rr??""}`),[()=>C(ce)]),j(Ke,ft)};se(Ze,Ke=>{c(q),c(ke),C(()=>c(q)&&!c(ke)&&c(q).enhanced&&c(q).enhanced.length>1)&&Ke(ht)})}var sr=pe(Ze,2);{var tr=Ke=>{qt(Ke,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:ae,title:"Back to original text",children:(ft,Mt)=>{var kt=HS(),Ir=je(kt);Uh(Ir,{size:16}),wr(2),j(ft,kt)},$$slots:{default:!0}})};se(sr,Ke=>{c(q)&&!c(ke)&&c(Q)!==0&&Ke(tr)})}D(we);var Jt=pe(we,2);{var or=Ke=>{var ft=XS(),Mt=pe(Z(ft),2),kt=Z(Mt,!0);D(Mt),D(ft),Ie(()=>Te(kt,c(ze))),j(Ke,ft)};se(Jt,Ke=>{c(Oe)&&!c(de)&&Ke(or)})}var Vr=pe(Jt,2);{var Io=Ke=>{var ft=eI(),Mt=pe(Z(ft),2),kt=Z(Mt,!0);D(Mt),D(ft),Ie(()=>Te(kt,c(de))),j(Ke,ft)};se(Vr,Ke=>{c(de)&&Ke(Io)})}j(I,re)};se(Dr,I=>{z(h()),C(()=>h().enableEnhanceWithAi)&&I(le)})}D(Se),Ie(()=>{Te(it,`${z(h()),C(()=>h().title)??""} `),dn(_t,1,`absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${c(v)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Te(Sr,(c(W),C(()=>c(W)?.length||0)))}),j(i,Se),Ye()}function iI(i){return typeof i=="function"}function oI(i){return i!==null&&typeof i=="object"}const aI=["string","number","bigint","boolean"];function Zl(i){return i==null||aI.includes(typeof i)?!0:Array.isArray(i)?i.every(n=>Zl(n)):typeof i=="object"?Object.getPrototypeOf(i)===Object.prototype:!1}const Ni=Symbol("box"),qa=Symbol("is-writable");function $t(i,n){const u=ct(i);return n?{[Ni]:!0,[qa]:!0,get current(){return c(u)},set current(l){n(l)}}:{[Ni]:!0,get current(){return i()}}}function ko(i){return oI(i)&&Ni in i}function Rl(i){return ko(i)&&qa in i}function sI(i){return ko(i)?i:iI(i)?$t(i):cI(i)}function uI(i){return Object.entries(i).reduce((n,[u,l])=>ko(l)?(Rl(l)?Object.defineProperty(n,u,{get(){return l.current},set(d){l.current=d}}):Object.defineProperty(n,u,{get(){return l.current}}),n):Object.assign(n,{[u]:l}),{})}function lI(i){return Rl(i)?{[Ni]:!0,get current(){return i.current}}:i}function cI(i){let n=Fr(kn(i));return{[Ni]:!0,[qa]:!0,get current(){return c(n)},set current(u){$(n,u,!0)}}}function ui(i){let n=Fr(kn(i));return{[Ni]:!0,[qa]:!0,get current(){return c(n)},set current(u){$(n,u,!0)}}}ui.from=sI,ui.with=$t,ui.flatten=uI,ui.readonly=lI,ui.isBox=ko,ui.isWritableBox=Rl;function dI(...i){return function(n){for(const u of i)if(u){if(n.defaultPrevented)return;typeof u=="function"?u.call(this,n):u.current?.call(this,n)}}}var vb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,fI=/\n/g,mI=/^\s*/,pI=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,gI=/^:\s*/,vI=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,hI=/^[;\s]*/,bI=/^\s+|\s+$/g,yI=`
|
|
133
|
-
`,
|
|
134
|
-
`)}function
|
|
135
|
-
`," ")}const
|
|
136
|
-
`," ")),n.hidden===!1&&(n.hidden=void 0,delete n.hidden),n.disabled===!1&&(n.disabled=void 0,delete n.disabled),n}const LI=wb({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"}),AI=typeof window<"u"?window:void 0;function ZI(i){let n=i.activeElement;for(;n?.shadowRoot;){const u=n.shadowRoot.activeElement;if(u===n)break;n=u}return n}class RI{#e;#t;constructor(n={}){const{window:u=AI,document:l=u?.document}=n;u!==void 0&&(this.#e=l,this.#t=Cv(d=>{const m=vh(u,"focusin",d),p=vh(u,"focusout",d);return()=>{m(),p()}}))}get current(){return this.#t?.(),this.#e?ZI(this.#e):null}}new RI;class ql{#e;#t;constructor(n){this.#e=n,this.#t=Symbol(n)}get key(){return this.#t}exists(){return Vk(this.#t)}get(){const n=ll(this.#t);if(n===void 0)throw new Error(`Context "${this.#e}" not found`);return n}getOr(n){const u=ll(this.#t);return u===void 0?n:u}set(n){return zv(this.#t,n)}}function qI(i,n){switch(i){case"post":co(n);break;case"pre":Xv(n);break}}function _b(i,n,u,l={}){const{lazy:d=!1}=l;let m=!d,p=Array.isArray(i)?[]:void 0;qI(n,()=>{const g=Array.isArray(i)?i.map(b=>b()):i();if(!m){m=!0,p=g;return}const v=C(()=>u(g,p));return p=g,v})}function So(i,n,u){_b(i,"post",n,u)}function FI(i,n,u){_b(i,"pre",n,u)}So.pre=FI;function Wa(i,n){return{[P0()]:u=>ko(i)?(i.current=u,C(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||(i.current=null)}):(i(u),C(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||i(null)})}}function Ga(i){return i?"true":"false"}function ji(i){return i?"":void 0}function kb(i,n){return n?"mixed":i?"true":"false"}class WI{#e;#t;attrs;constructor(n){this.#e=n.getVariant?n.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${n.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(n.parts.map(u=>[u,this.getAttr(u)]))}getAttr(n,u){return u?`data-${u}-${n}`:`${this.#t}${n}`}selector(n,u){return`[${this.getAttr(n,u)}]`}}function Fl(i){const n=new WI(i);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}const Wl="ArrowDown",Gl="ArrowLeft",Ql="ArrowRight",Jl="ArrowUp",GI="End",QI="Enter",JI="Home",xb=" ";function VI(i){return window.getComputedStyle(i).getPropertyValue("direction")}function BI(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Gl:Ql,vertical:Wl}[n]}function YI(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Ql:Gl,vertical:Jl}[n]}function KI(i="ltr",n="horizontal"){return["ltr","rtl"].includes(i)||(i="ltr"),["horizontal","vertical"].includes(n)||(n="horizontal"),{nextKey:BI(i,n),prevKey:YI(i,n)}}function Sb(i){return i instanceof HTMLElement}class HI{#e;#t=ui(null);constructor(n){this.#e=n}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const n=this.getCandidateNodes();n.length&&n[0]?.focus()}handleKeydown(n,u,l=!1){const d=this.#e.rootNode.current;if(!d||!n)return;const m=this.getCandidateNodes();if(!m.length)return;const p=m.indexOf(n),g=VI(d),{nextKey:v,prevKey:b}=KI(g,this.#e.orientation.current),y=this.#e.loop.current,_={[v]:p+1,[b]:p-1,[JI]:0,[GI]:m.length-1};if(l){const x=v===Wl?Ql:Wl,T=b===Jl?Gl:Jl;_[x]=p+1,_[T]=p-1}let h=_[u.key];if(h===void 0)return;u.preventDefault(),h<0&&y?h=m.length-1:h===m.length&&y&&(h=0);const S=m[h];if(S)return S.focus(),this.#t.current=S.id,this.#e.onCandidateFocus?.(S),S}getTabIndex(n){const u=this.getCandidateNodes(),l=this.#t.current!==null;return n&&!l&&u[0]===n?(this.#t.current=n.id,0):n?.id===this.#t.current?0:-1}setCurrentTabStopId(n){this.#t.current=n}focusCurrentTabStop(){const n=this.#t.current;if(!n)return;const u=this.#e.rootNode.current?.querySelector(`#${n}`);!u||!Sb(u)||u.focus()}}function XI(){}function Qa(i,n){return`bits-${i}`}const e1=Fl({component:"checkbox",parts:["root","group","group-label","input"]}),t1=new ql("Checkbox.Group"),Ib=new ql("Checkbox.Root");class Vl{static create(n,u=null){return Ib.set(new Vl(n,u))}opts;group;#e=ct(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return c(this.#e)}set trueName(n){$(this.#e,n)}#t=ct(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return c(this.#t)}set trueRequired(n){$(this.#t,n)}#n=ct(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return c(this.#n)}set trueDisabled(n){$(this.#n,n)}#o=ct(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return c(this.#o)}set trueReadonly(n){$(this.#o,n)}attachment;constructor(n,u){this.opts=n,this.group=u,this.attachment=Wa(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),So.pre([()=>Jk(this.group?.opts.value.current),()=>this.opts.value.current],([l,d])=>{!l||!d||(this.opts.checked.current=l.includes(d))}),So.pre(()=>this.opts.checked.current,l=>{this.group&&(l?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(n){this.trueDisabled||this.trueReadonly||(n.key===QI&&n.preventDefault(),n.key===xb&&(n.preventDefault(),this.#i()))}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(n){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#i();return}n.preventDefault(),this.#i()}}#a=ct(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return c(this.#a)}set snippetProps(n){$(this.#a,n)}#r=ct(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":kb(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Ga(this.trueRequired),"aria-readonly":Ga(this.trueReadonly),"data-disabled":ji(this.trueDisabled),"data-readonly":ji(this.trueReadonly),"data-state":r1(this.opts.checked.current,this.opts.indeterminate.current),[e1.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return c(this.#r)}set props(n){$(this.#r,n)}}class Bl{static create(){return new Bl(Ib.get())}root;#e=ct(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return c(this.#e)}set trueChecked(n){$(this.#e,n)}#t=ct(()=>!!this.root.trueName);get shouldRender(){return c(this.#t)}set shouldRender(n){$(this.#t,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){Sb(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#n=ct(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return c(this.#n)}set props(n){$(this.#n,n)}}function r1(i,n){return n?"indeterminate":i?"checked":"unchecked"}var n1=ee("<input/>"),i1=ee("<input/>");function zb(i,n){Be(n,!0);let u=w(n,"value",15),l=At(n,["$$slots","$$events","$$legacy","value"]);const d=ct(()=>xo(l,{"aria-hidden":"true",tabindex:-1,style:LI}));var m=qe(),p=je(m);{var g=b=>{var y=n1();Wt(y,()=>({...c(d),value:u()}),void 0,void 0,void 0,!0),j(b,y)},v=b=>{var y=i1();Wt(y,()=>({...c(d)}),void 0,void 0,void 0,!0),Ea(y,u),j(b,y)};se(p,b=>{c(d).type==="checkbox"?b(g):b(v,!1)})}j(i,m),Ye()}function o1(i,n){Be(n,!1);const u=Bl.create();er();var l=qe(),d=je(l);{var m=p=>{zb(p,Ot(()=>u.props))};se(d,p=>{u.shouldRender&&p(m)})}j(i,l),Ye()}var a1=ee("<button><!></button>"),s1=ee("<!> <!>",1);function u1(i,n){const u=Ta();Be(n,!0);let l=w(n,"checked",15,!1),d=w(n,"ref",15,null),m=w(n,"disabled",3,!1),p=w(n,"required",3,!1),g=w(n,"name",3,void 0),v=w(n,"value",3,"on"),b=w(n,"id",19,()=>Qa(u)),y=w(n,"indeterminate",15,!1),_=w(n,"type",3,"button"),h=At(n,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const S=t1.getOr(null);S&&v()&&(S.opts.value.current.includes(v())?l(!0):l(!1)),So.pre(()=>v(),()=>{S&&v()&&(S.opts.value.current.includes(v())?l(!0):l(!1))});const x=Vl.create({checked:$t(()=>l(),W=>{l(W),n.onCheckedChange?.(W)}),disabled:$t(()=>m()??!1),required:$t(()=>p()),name:$t(()=>g()),value:$t(()=>v()),id:$t(()=>b()),ref:$t(()=>d(),W=>d(W)),indeterminate:$t(()=>y(),W=>{y(W),n.onIndeterminateChange?.(W)}),type:$t(()=>_()),readonly:$t(()=>!!n.readonly)},S),T=ct(()=>xo({...h},x.props));var P=s1(),J=je(P);{var ie=W=>{var q=qe(),Q=je(q);{let Y=ct(()=>({props:c(T),...x.snippetProps}));Rt(Q,()=>n.child,()=>c(Y))}j(W,q)},G=W=>{var q=a1();Wt(q,()=>({...c(T)}));var Q=Z(q);Rt(Q,()=>n.children??gt,()=>x.snippetProps),D(q),j(W,q)};se(J,W=>{n.child?W(ie):W(G,!1)})}var V=pe(J,2);o1(V,{}),j(i,P),Ye()}const l1=Fl({component:"progress",parts:["root"]});class Yl{static create(n){return new Yl(n)}opts;attachment;constructor(n){this.opts=n,this.attachment=Wa(this.opts.ref)}#e=ct(()=>({role:"progressbar",value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":c1(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?"":void 0,[l1.root]:"",...this.attachment}));get props(){return c(this.#e)}set props(n){$(this.#e,n)}}function c1(i,n){return i===null?"indeterminate":i===n?"loaded":"loading"}var d1=ee("<div><!></div>");function f1(i,n){const u=Ta();Be(n,!0);let l=w(n,"value",3,0),d=w(n,"max",3,100),m=w(n,"min",3,0),p=w(n,"id",19,()=>Qa(u)),g=w(n,"ref",15,null),v=At(n,["$$slots","$$events","$$legacy","child","children","value","max","min","id","ref"]);const b=Yl.create({value:$t(()=>l()),max:$t(()=>d()),min:$t(()=>m()),id:$t(()=>p()),ref:$t(()=>g(),T=>g(T))}),y=ct(()=>xo(v,b.props));var _=qe(),h=je(_);{var S=T=>{var P=qe(),J=je(P);Rt(J,()=>n.child,()=>({props:c(y)})),j(T,P)},x=T=>{var P=d1();Wt(P,()=>({...c(y)}));var J=Z(P);Rt(J,()=>n.children??gt),D(P),j(T,P)};se(h,T=>{n.child?T(S):T(x,!1)})}j(i,_),Ye()}const Kl=Fl({component:"radio-group",parts:["root","item"]}),Hl=new ql("RadioGroup.Root");class Xl{static create(n){return Hl.set(new Xl(n))}opts;#e=ct(()=>this.opts.value.current!=="");get hasValue(){return c(this.#e)}set hasValue(n){$(this.#e,n)}rovingFocusGroup;attachment;constructor(n){this.opts=n,this.attachment=Wa(this.opts.ref),this.rovingFocusGroup=new HI({rootNode:this.opts.ref,candidateAttr:Kl.item,loop:this.opts.loop,orientation:this.opts.orientation})}isChecked(n){return this.opts.value.current===n}setValue(n){this.opts.value.current=n}#t=ct(()=>({id:this.opts.id.current,role:"radiogroup","aria-required":Ga(this.opts.required.current),"aria-disabled":Ga(this.opts.disabled.current),"aria-readonly":this.opts.readonly.current?"true":void 0,"data-disabled":ji(this.opts.disabled.current),"data-readonly":ji(this.opts.readonly.current),"data-orientation":this.opts.orientation.current,[Kl.root]:"",...this.attachment}));get props(){return c(this.#t)}set props(n){$(this.#t,n)}}class ec{static create(n){return new ec(n,Hl.get())}opts;root;attachment;#e=ct(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return c(this.#e)}set checked(n){$(this.#e,n)}#t=ct(()=>this.opts.disabled.current||this.root.opts.disabled.current);#n=ct(()=>this.root.opts.readonly.current);#o=ct(()=>this.root.isChecked(this.opts.value.current));#i=Fr(-1);constructor(n,u){this.opts=n,this.root=u,this.attachment=Wa(this.opts.ref),this.opts.value.current===this.root.opts.value.current?(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0)):this.root.opts.value.current||$(this.#i,0),co(()=>{$(this.#i,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),So([()=>this.opts.value.current,()=>this.root.opts.value.current],()=>{this.opts.value.current===this.root.opts.value.current&&(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0))}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onfocus=this.onfocus.bind(this)}onclick(n){this.opts.disabled.current||c(this.#n)||this.root.setValue(this.opts.value.current)}onfocus(n){!this.root.hasValue||c(this.#n)||this.root.setValue(this.opts.value.current)}onkeydown(n){if(!c(this.#t)){if(n.key===xb){n.preventDefault(),c(this.#n)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,n,!0)}}#a=ct(()=>({checked:c(this.#o)}));get snippetProps(){return c(this.#a)}set snippetProps(n){$(this.#a,n)}#r=ct(()=>({id:this.opts.id.current,disabled:c(this.#t)?!0:void 0,"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":ji(c(this.#t)),"data-readonly":ji(c(this.#n)),"data-state":c(this.#o)?"checked":"unchecked","aria-checked":kb(c(this.#o),!1),[Kl.item]:"",type:"button",role:"radio",tabindex:c(this.#i),onkeydown:this.onkeydown,onfocus:this.onfocus,onclick:this.onclick,...this.attachment}));get props(){return c(this.#r)}set props(n){$(this.#r,n)}}class tc{static create(){return new tc(Hl.get())}root;#e=ct(()=>this.root.opts.name.current!==void 0);get shouldRender(){return c(this.#e)}set shouldRender(n){$(this.#e,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){this.root.rovingFocusGroup.focusCurrentTabStop()}#t=ct(()=>({name:this.root.opts.name.current,value:this.root.opts.value.current,required:this.root.opts.required.current,disabled:this.root.opts.disabled.current,onfocus:this.onfocus}));get props(){return c(this.#t)}set props(n){$(this.#t,n)}}function m1(i,n){Be(n,!1);const u=tc.create();er();var l=qe(),d=je(l);{var m=p=>{zb(p,Ot(()=>u.props))};se(d,p=>{u.shouldRender&&p(m)})}j(i,l),Ye()}var p1=ee("<div><!></div>"),g1=ee("<!> <!>",1);function v1(i,n){const u=Ta();Be(n,!0);let l=w(n,"disabled",3,!1),d=w(n,"value",15,""),m=w(n,"ref",15,null),p=w(n,"orientation",3,"vertical"),g=w(n,"loop",3,!0),v=w(n,"name",3,void 0),b=w(n,"required",3,!1),y=w(n,"readonly",3,!1),_=w(n,"id",19,()=>Qa(u)),h=w(n,"onValueChange",3,XI),S=At(n,["$$slots","$$events","$$legacy","disabled","children","child","value","ref","orientation","loop","name","required","readonly","id","onValueChange"]);const x=Xl.create({orientation:$t(()=>p()),disabled:$t(()=>l()),loop:$t(()=>g()),name:$t(()=>v()),required:$t(()=>b()),readonly:$t(()=>y()),id:$t(()=>_()),value:$t(()=>d(),W=>{W!==d()&&(d(W),h()?.(W))}),ref:$t(()=>m(),W=>m(W))}),T=ct(()=>xo(S,x.props));var P=g1(),J=je(P);{var ie=W=>{var q=qe(),Q=je(q);Rt(Q,()=>n.child,()=>({props:c(T)})),j(W,q)},G=W=>{var q=p1();Wt(q,()=>({...c(T)}));var Q=Z(q);Rt(Q,()=>n.children??gt),D(q),j(W,q)};se(J,W=>{n.child?W(ie):W(G,!1)})}var V=pe(J,2);m1(V,{}),j(i,P),Ye()}var h1=ee("<button><!></button>");function b1(i,n){const u=Ta();Be(n,!0);let l=w(n,"id",19,()=>Qa(u)),d=w(n,"disabled",3,!1),m=w(n,"ref",15,null),p=At(n,["$$slots","$$events","$$legacy","id","children","child","value","disabled","ref"]);const g=ec.create({value:$t(()=>n.value),disabled:$t(()=>d()??!1),id:$t(()=>l()),ref:$t(()=>m(),S=>m(S))}),v=ct(()=>xo(p,g.props));var b=qe(),y=je(b);{var _=S=>{var x=qe(),T=je(x);{let P=ct(()=>({props:c(v),...g.snippetProps}));Rt(T,()=>n.child,()=>c(P))}j(S,x)},h=S=>{var x=h1();Wt(x,()=>({...c(v)}));var T=Z(x);Rt(T,()=>n.children??gt,()=>g.snippetProps),D(x),j(S,x)};se(y,S=>{n.child?S(_):S(h,!1)})}j(i,b),Ye()}function y1(i,n){Be(n,!0);let u=w(n,"ref",15,null),l=w(n,"value",15,""),d=At(n,["$$slots","$$events","$$legacy","ref","class","value"]);var m=qe(),p=je(m);{let g=ct(()=>xr("grid gap-3",n.class));Oa(p,()=>v1,(v,b)=>{b(v,Ot({"data-slot":"radio-group",get class(){return c(g)}},()=>d,{get ref(){return u()},set ref(y){u(y)},get value(){return l()},set value(y){l(y)}}))})}j(i,m),Ye()}function $1(i,n){Be(n,!0);/**
|
|
132
|
+
*/let u=At(n,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"m9 18 6-6-6-6"}]];qa(i,Tt({name:"chevron-right"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Be()}var hS=te("<li><!></li>");function vS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=hS();Gt(d,h=>({"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",class:h,...c}),[()=>Sr("[&>svg]:size-3.5",n.class)]);var m=R(d);{var p=h=>{var b=Ze(),y=Te(b);Rt(y,()=>n.children??gt),T(h,b)},g=h=>{gS(h,{})};ae(m,h=>{n.children?h(p):h(g,!1)})}L(d),Ur(d,h=>u(h),()=>u()),T(i,d),Be()}var bS=te("<a><!></a>");function yS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"href",3,void 0),d=At(n,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const m=lt(()=>({"data-slot":"breadcrumb-link",class:Sr("hover:text-foreground transition-colors",n.class),href:c(),...d}));var p=Ze(),g=Te(p);{var h=y=>{var k=Ze(),v=Te(k);Rt(v,()=>n.child,()=>({props:l(m)})),T(y,k)},b=y=>{var k=bS();Gt(k,()=>({...l(m)}));var v=R(k);Rt(v,()=>n.children??gt),L(k),Ur(k,x=>u(x),()=>u()),T(y,k)};ae(g,y=>{n.child?y(h):y(b,!1)})}T(i,p),Be()}var $S=te("<ol><!></ol>");function wS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=$S();Gt(d,p=>({"data-slot":"breadcrumb-list",class:p,...c}),[()=>Sr("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",n.class)]);var m=R(d);Rt(m,()=>n.children??gt),L(d),Ur(d,p=>u(p),()=>u()),T(i,d),Be()}var _S=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),kS=te('<span class="text-destructive ml-1">*</span>'),xS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),SS=te("<!> <!>",1),IS=te("<!> <!>",1),zS=Tn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),NS=te('<span class="flex items-center gap-3 w-full"><span class="flex-1 text-sm font-medium"> </span> <!></span>'),jS=te('<div class="p-2 space-y-1"></div>'),TS=te('<div class="flex flex-col items-center justify-center py-12 px-4"><div class="w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-3"><svg class="w-6 h-6 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm font-medium text-muted-foreground">No options available</p></div>'),OS=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),ES=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="border border-border rounded-xl bg-card shadow-sm overflow-hidden"><div class="px-4 py-3 bg-accent/30 border-b border-border backdrop-blur-sm"><!></div> <div class="max-h-[420px] overflow-y-auto scrollbar-thin"><!></div></div> <!></div>');function PS(i,n){Je(n,!1);const u=ee();let c=w(n,"question",8),d=w(n,"value",24,()=>[]),m=w(n,"onChange",8),p=w(n,"error",8,void 0),g=w(n,"currentMode",8,void 0),h=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);const b=d()?Array.isArray(d())?d():[d()]:[];let y=ee(b),k=ee(O()),v=ee(!1),x=ee([]),S=ee([]);function O(){return b.length===0?[]:b.slice(0,-1)}function U(V,le){$(v,!0),V.children&&V.children.length>0?$(k,le):($(y,le),$(k,le.slice(0,-1)),m()(le))}function B(V){const le=l(y);return le.length!==V.length?!1:V.every((Ne,xe)=>le[xe]===Ne)}function oe(V){let le=c().options;for(let Ne=0;Ne<V.length;Ne++){const xe=le.find(Re=>Re.value===V[Ne]);if(xe&&xe.children)le=xe.children;else return[]}return le}function J(V){const le=[];let Ne=c().options;for(let xe=0;xe<V.length;xe++){const Re=Ne.find(Ye=>Ye.value===V[xe]);Re&&(le.push({value:V[xe],label:Re.label,index:xe}),Re.children&&(Ne=Re.children))}return le}function Y(V){$(v,!0),$(k,l(k).slice(0,V+1))}function G(){$(v,!0),$(k,[]),$(y,[]),m()([])}ve(()=>z(g()),()=>{$(u,g()==="dark")}),ve(()=>(z(d()),l(v)),()=>{if(d()!==void 0&&!l(v)){const V=Array.isArray(d())?d():[d()];$(y,V),V.length>0?$(k,V.slice(0,-1)):$(k,[])}else d()===void 0&&!l(v)&&($(y,[]),$(k,[]))}),ve(()=>l(k),()=>{$(x,oe(l(k)))}),ve(()=>l(k),()=>{$(S,J(l(k)))}),fr(),er();var F=ES(),K=R(F),H=R(K);{var $e=V=>{var le=_S(),Ne=R(le);L(le),je(()=>Oe(Ne,`${h()??""}.`)),T(V,le)};ae(H,V=>{h()!==void 0&&V($e)})}var Ie=de(H,2),ke=R(Ie),fe=R(ke),Se=de(fe);{var me=V=>{var le=kS();T(V,le)};ae(Se,V=>{z(c()),M(()=>c().required)&&V(me)})}L(ke);var ne=de(ke,2);{var re=V=>{var le=xS(),Ne=R(le,!0);L(le),je(()=>Oe(Ne,(z(c()),M(()=>c().description)))),T(V,le)};ae(ne,V=>{z(c()),M(()=>c().description)&&V(re)})}L(Ie),L(K);var W=de(K,2),N=R(W),C=R(N);dS(C,{children:(V,le)=>{wS(V,{class:"flex items-center gap-1.5 flex-wrap",children:(Ne,xe)=>{var Re=IS(),Ye=Te(Re);mb(Ye,{children:(qe,it)=>{Ft(qe,{type:"button",variant:"ghost",size:"sm",class:"h-8 w-8 p-0 hover:bg-background/80 rounded-md transition-colors",onclick:G,"aria-label":"Home",children:(ht,Ue)=>{cx(ht,{size:18,class:"text-muted-foreground hover:text-foreground transition-colors"})},$$slots:{default:!0}})},$$slots:{default:!0}});var ut=de(Ye,2);gr(ut,1,()=>l(S),xr,(qe,it)=>{var ht=SS(),Ue=Te(ht);vS(Ue,{class:"text-muted-foreground/50",children:(Ct,qt)=>{Da(Ct,{size:14})},$$slots:{default:!0}});var Pt=de(Ue,2);mb(Pt,{children:(Ct,qt)=>{yS(Ct,{onclick:()=>Y(l(it).index),class:"cursor-pointer text-sm font-medium text-foreground/80 hover:text-primary transition-colors px-2 py-1 rounded-md hover:bg-background/50",children:(Vt,Et)=>{_r();var _t=On();je(()=>Oe(_t,(l(it),M(()=>l(it).label)))),T(Vt,_t)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(qe,ht)}),T(Ne,Re)},$$slots:{default:!0}})},$$slots:{default:!0}}),L(N);var E=de(N,2),Z=R(E);{var ie=V=>{var le=jS();gr(le,5,()=>l(x),xr,(Ne,xe)=>{const Re=Ae(()=>(l(k),l(xe),M(()=>B([...l(k),l(xe).value])))),Ye=Ae(()=>(l(xe),M(()=>l(xe).children&&l(xe).children.length>0)));{let ut=Ae(()=>`w-full justify-start px-4 py-3.5 h-auto rounded-lg text-left transition-all relative group ${l(Re)&&!l(Ye)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:hover:bg-primary":"text-foreground hover:bg-accent/50 hover:border-border/50 border border-transparent"}`);Ft(Ne,{type:"button",variant:"ghost",get class(){return l(ut)},onclick:()=>U(l(xe),[...l(k),l(xe).value]),children:(qe,it)=>{var ht=NS(),Ue=R(ht),Pt=R(Ue,!0);L(Ue);var Ct=de(Ue,2);{var qt=Et=>{{let _t=Ae(()=>`flex-shrink-0 transition-transform group-hover:translate-x-0.5 ${l(Re)?"text-primary":"text-muted-foreground"}`);Da(Et,{size:18,get class(){return l(_t)}})}},Vt=Et=>{var _t=Ze(),yt=Te(_t);{var Ir=Mr=>{var vn=zS();T(Mr,vn)};ae(yt,Mr=>{l(Re)&&Mr(Ir)},!0)}T(Et,_t)};ae(Ct,Et=>{l(Ye)?Et(qt):Et(Vt,!1)})}L(ht),je(()=>Oe(Pt,(l(xe),M(()=>l(xe).label)))),T(qe,ht)},$$slots:{default:!0}})}}),L(le),T(V,le)},Q=V=>{var le=TS();T(V,le)};ae(Z,V=>{l(x),M(()=>l(x).length>0)?V(ie):V(Q,!1)})}L(E),L(W);var Ce=de(W,2);{var _e=V=>{var le=OS(),Ne=de(R(le),2),xe=R(Ne,!0);L(Ne),L(le),je(()=>Oe(xe,p())),T(V,le)};ae(Ce,V=>{p()&&V(_e)})}L(F),je(()=>Oe(fe,`${z(c()),M(()=>c().title)??""} `)),T(i,F),Be()}var CS=te("<textarea></textarea>");function US(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"value",15),d=w(n,"data-slot",3,"textarea"),m=At(n,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var p=CS();m0(p),Gt(p,g=>({"data-slot":d(),class:g,...m}),[()=>Sr("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n.class)]),Ur(p,g=>u(g),()=>u()),Ca(p,c),T(i,p),Be()}function pb(i){if(!i)return{code:null,message:""};const n=i.split("|").map(u=>u.trim());if(n.length>=2){const u=n[0],c=n.slice(1).join("|").trim(),d=c.match(/(\d+)\s+seconds?/i),m=d?parseInt(d[1],10):void 0;return{code:u,message:c,seconds:m}}return{code:null,message:i}}function gb(i,n,u){let c=i;n(c);const d=setInterval(()=>{c--,n(c),c<=0&&(clearInterval(d),u())},1e3);return d}function hb(i,n,u,c){if(!u?.otherFields)return n;const{otherFields:d}=u;switch(i){case"1001":{const m=d.aiEnhancementCooldownErrorMessage||n;return c!==void 0?`${m} (${c}s)`:m}case"1002":return d.aiEnhancementMaxReachedErrorMessage||n;default:return n}}async function vb(i){return await window.encatch._internal.refineText({questionId:i.questionId,identifier:i.identifier,feedbackConfigurationId:i.feedbackConfigurationId,userText:i.userText})}var MS=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),DS=te('<span class="text-destructive ml-1">*</span>'),LS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),AS=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),ZS=Tn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),RS=te('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),FS=te("<!> <span>Reset</span>",1),qS=te('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),WS=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),QS=te('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),GS=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function VS(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),m=ee(),p=ee(),g=ee(),h=ee(),b=ee();let y=w(n,"question",8),k=w(n,"value",8,""),v=w(n,"onChange",8),x=w(n,"error",8,void 0),S=w(n,"currentMode",8,void 0),O=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0),w(n,"apiKey",8,void 0),w(n,"hostUrl",8,void 0);let U=w(n,"identifier",8,void 0),B=w(n,"feedbackConfigurationId",8,void 0),oe=w(n,"otherConfigurationProperties",8,void 0),J=ee(k()??""),Y=ee(null),G=ee(0),F=ee(x()),K=ee(!1),H=ee(!1),$e=ee(!1),Ie=ee(null),ke=ee(null),fe=ee(!1),Se=ee(!1),me=ee(""),ne=ee(0),re=null,W=ee(l(J));const{updateQuestionResponse:N,setQuestionError:C}=pn();En(()=>{setTimeout(()=>{const I=Z(l(J));$(F,I),I&&C(y().id,I),$(fe,!0)},0)}),bo(()=>{re!==null&&clearInterval(re)});function E(){l(K)||$(K,!0)}function Z(I){if(y().required&&(!I||I.trim()===""))return y().errorMessage||"This field is required";if(y().maxCharacters!==void 0&&I.length>y().maxCharacters||y().minCharacters!==void 0&&I.length>0&&I.length<y().minCharacters)return y().errorMessage}function ie(I){re!==null&&clearInterval(re),re=gb(I,j=>{$(ne,j)},()=>{re=null,$(Ie,null)})}async function Q(){if(!le()||!U()||!B())return;const I=l(J);try{$($e,!0),$(Ie,null);const j=await vb({questionId:y().id,identifier:U(),feedbackConfigurationId:B(),userText:I});if(j?.data?.refinedText){const be=j.data.refinedText;$(ke,oe()?.otherFields?.aiEnhancementSuccessMessage||j.message||"Text refined successfully"),l(Y)?($(Y,{original:l(Y).original,enhanced:[...l(Y).enhanced,be]}),$(G,l(Y).enhanced.length)):($(Y,{original:I,enhanced:[be]}),$(G,1)),$(J,be),$(H,!0);const De=Z(be);$(F,De),v()(be),N(y().id,be,s.QuestionTypes.LONG_TEXT,De)}else{if(j?.message){const{code:be,message:De,seconds:Ke}=pb(j.message);be==="1001"&&Ke!==void 0&&ie(Ke),$(Ie,hb(be,De,oe(),Ke))}$(H,!1)}}catch(j){console.error("Error enhancing text:",j),$(Ie,"An error occurred while enhancing text"),$(H,!1)}finally{$($e,!1)}}function Ce(){if(!l(Y))return;const I=l(Y).original;$(J,I),$(G,0);const j=Z(I);$(F,j),v()(I),N(y().id,I,s.QuestionTypes.LONG_TEXT,j)}function _e(I){if(!l(Y))return;let j;if(I===0)j=l(Y).original;else{const De=I-1;if(De>=l(Y).enhanced.length)return;j=l(Y).enhanced[De]}$(J,j),$(G,I);const be=Z(j);$(F,be),v()(j),N(y().id,j,s.QuestionTypes.LONG_TEXT,be)}function V(){return l(Y)?l(Y).enhanced.length+1:0}function le(){const I=l(J).trim();return I?y().minCharactersToEnhance!==void 0?I.length>=y().minCharactersToEnhance:!0:!1}ve(()=>z(S()),()=>{$(u,S()==="dark")}),ve(()=>(z(k()),l(J),l(K)),()=>{k()!==void 0&&k()!==l(J)&&!l(K)&&($(J,k()),$(W,k()))}),ve(()=>l(J),()=>{$(c,l(J).length)}),ve(()=>z(y()),()=>{$(d,y().minCharacters)}),ve(()=>z(y()),()=>{$(m,y().maxCharacters)}),ve(()=>(l(m),l(c)),()=>{$(p,l(m)!==void 0&&l(c)>l(m))}),ve(()=>(l(d),l(c)),()=>{$(g,l(d)!==void 0&&l(c)<l(d)&&l(c)>0)}),ve(()=>(l(p),l(g)),()=>{$(h,l(p)||l(g))}),ve(()=>(l(d),l(m)),()=>{$(b,l(d)!==void 0||l(m)!==void 0)}),ve(()=>(l(J),z(y())),()=>{const I=l(J).trim();I?y().minCharactersToEnhance!==void 0?$(Se,I.length>=y().minCharactersToEnhance):$(Se,!0):$(Se,!1)}),ve(()=>(l(d),l(m),l(c),z(y())),()=>{l(d)!==void 0&&l(m)!==void 0?$(me,`${l(c)} / (${l(d)} - ${l(m)})`):l(m)!==void 0&&y().required?$(me,`${l(c)} / (1 - ${l(m)})`):l(d)!==void 0?$(me,`${l(c)} / (${l(d)} - 5000)`):$(me,"")}),ve(()=>(l(ne),z(oe())),()=>{l(ne)>0&&oe()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(Ie,`${oe().otherFields.aiEnhancementCooldownErrorMessage} (${l(ne)}s)`)}),ve(()=>z(x()),()=>{x()!==void 0&&$(F,x())}),ve(()=>(l(fe),l(K),l(J),l(W),z(y()),s.QuestionTypes),()=>{if(l(fe)&&l(K)&&l(J)!==l(W)){$(W,l(J));const I=Z(l(J));$(F,I),N(y().id,l(J),s.QuestionTypes.LONG_TEXT,I)}}),fr(),er();var Ne=GS(),xe=R(Ne),Re=R(xe);{var Ye=I=>{var j=MS(),be=R(j);L(j),je(()=>Oe(be,`${O()??""}.`)),T(I,j)};ae(Re,I=>{O()!==void 0&&I(Ye)})}var ut=de(Re,2),qe=R(ut),it=R(qe),ht=de(it);{var Ue=I=>{var j=DS();T(I,j)};ae(ht,I=>{z(y()),M(()=>y().required)&&I(Ue)})}L(qe);var Pt=de(qe,2);{var Ct=I=>{var j=LS(),be=R(j,!0);L(j),je(()=>Oe(be,(z(y()),M(()=>y().description)))),T(I,j)};ae(Pt,I=>{z(y()),M(()=>y().description)&&I(Ct)})}L(ut),L(xe);var qt=de(xe,2);{var Vt=I=>{var j=AS(),be=R(j),De=R(be,!0);L(be),L(j),je(()=>Oe(De,l(F))),T(I,j)};ae(qt,I=>{l(F)&&l(K)&&I(Vt)})}var Et=de(qt,2),_t=R(Et);{let I=Ae(()=>(z(y()),M(()=>y().rows||4)));US(_t,{class:"w-full min-h-[120px] text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",onfocus:E,get placeholder(){return z(y()),M(()=>y().placeholder)},get rows(){return l(I)},onblur:()=>{if(l(fe)){const j=Z(l(J));$(F,j),C(y().id,j),v()(l(J))}},get value(){return l(J)},set value(j){$(J,j)},$$legacy:!0})}var yt=de(_t,2),Ir=R(yt);L(yt),L(Et);var Mr=de(Et,2);{var vn=I=>{var j=QS(),be=Te(j),De=R(be);{let He=Ae(()=>l($e)||!l(Se));Ft(De,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:Q,get disabled(){return l(He)},children:(ft,Ut)=>{var kt=Ze(),zr=Te(kt);{var vr=It=>{var bn=ZS();T(It,bn)},tr=It=>{Fv(It,{size:16})};ae(zr,It=>{l($e)?It(vr):It(tr,!1)})}T(ft,kt)},$$slots:{default:!0}})}var Ke=de(De,2);{var We=He=>{var ft=RS(),Ut=R(ft);{let tr=Ae(()=>l(G)===0);Ft(Ut,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{l(G)>0&&_e(l(G)-1)},get disabled(){return l(tr)},title:"Previous version",children:(It,bn)=>{Zv(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var kt=de(Ut,2),zr=R(kt);L(kt);var vr=de(kt,2);{let tr=Ae(()=>(l(G),M(()=>l(G)>=V()-1)));Ft(vr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const It=V();l(G)<It-1&&_e(l(G)+1)},get disabled(){return l(tr)},title:"Next version",children:(It,bn)=>{Da(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}L(ft),je(tr=>Oe(zr,`${l(G)+1} / ${tr??""}`),[()=>M(V)]),T(He,ft)};ae(Ke,He=>{l(Y),l($e),M(()=>l(Y)&&!l($e)&&l(Y).enhanced&&l(Y).enhanced.length>1)&&He(We)})}var vt=de(Ke,2);{var Wt=He=>{Ft(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:Ce,title:"Back to original text",children:(ft,Ut)=>{var kt=FS(),zr=Te(kt);Av(zr,{size:16}),_r(2),T(ft,kt)},$$slots:{default:!0}})};ae(vt,He=>{l(Y)&&!l($e)&&l(G)!==0&&He(Wt)})}L(be);var ur=de(be,2);{var or=He=>{var ft=qS(),Ut=de(R(ft),2),kt=R(Ut,!0);L(Ut),L(ft),je(()=>Oe(kt,l(ke))),T(He,ft)};ae(ur,He=>{l(H)&&!l(Ie)&&He(or)})}var ar=de(ur,2);{var Jr=He=>{var ft=WS(),Ut=de(R(ft),2),kt=R(Ut,!0);L(Ut),L(ft),je(()=>Oe(kt,l(Ie))),T(He,ft)};ae(ar,He=>{l(Ie)&&He(Jr)})}T(I,j)};ae(Mr,I=>{z(y()),M(()=>y().enableEnhanceWithAi)&&I(vn)})}L(Ne),je(I=>{Oe(it,`${z(y()),M(()=>y().title)??""} `),fn(yt,1,`absolute right-3 bottom-3 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${l(h)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Oe(Ir,`${l(J),M(()=>l(J)?.length||0)??""}${I??""}`)},[()=>(l(me),M(()=>l(me)?` ${l(me).split("/")[1]||""}`:""))]),T(i,Ne),Be()}var JS=te("<input/>"),BS=te("<input/>");function YS(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"value",15),d=w(n,"files",15),m=w(n,"data-slot",3,"input"),p=At(n,["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]);var g=Ze(),h=Te(g);{var b=k=>{var v=JS();Gt(v,x=>({"data-slot":m(),class:x,type:"file",...p}),[()=>Sr("selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Ur(v,x=>u(x),()=>u()),Y0(v,d),Ca(v,c),T(k,v)},y=k=>{var v=BS();Gt(v,x=>({"data-slot":m(),class:x,type:n.type,...p}),[()=>Sr("border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Ur(v,x=>u(x),()=>u()),Ca(v,c),T(k,v)};ae(h,k=>{n.type==="file"?k(b):k(y,!1)})}T(i,g),Be()}var KS=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),HS=te('<span class="text-destructive ml-1">*</span>'),XS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),eI=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),tI=Tn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),rI=te('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),nI=te("<!> <span>Reset</span>",1),iI=te('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),oI=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),aI=te('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),sI=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function uI(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),m=ee(),p=ee(),g=ee(),h=ee(),b=ee(),{updateQuestionResponse:y,setQuestionError:k}=pn();let v=w(n,"question",8),x=w(n,"value",8,""),S=w(n,"onChange",8),O=w(n,"error",8,void 0),U=w(n,"currentMode",8,void 0),B=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0),w(n,"apiKey",8,void 0),w(n,"hostUrl",8,void 0);let oe=w(n,"identifier",8,void 0),J=w(n,"feedbackConfigurationId",8,void 0),Y=w(n,"otherConfigurationProperties",8,void 0),G=ee(x()||""),F=ee(null),K=ee(0),H=ee(O()),$e=ee(!1),Ie=ee(!1),ke=ee(!1),fe=ee(null),Se=ee(null),me=ee(!1),ne=ee(!1),re=ee(""),W=ee(0),N=null,C=ee(l(G));En(()=>{setTimeout(()=>{const I=V(l(G));$(H,I),I&&k(v().id,I),$(me,!0)},0)}),bo(()=>{N!==null&&clearInterval(N)});function E(){l($e)||$($e,!0)}function Z(I){N!==null&&clearInterval(N),N=gb(I,j=>{$(W,j)},()=>{N=null,$(fe,null)})}async function ie(){if(!le())return;const I=l(G);try{$(ke,!0),$(fe,null);const j=await vb({questionId:v().id,identifier:oe(),feedbackConfigurationId:J(),userText:I});if(j?.data?.refinedText){const be=j.data.refinedText;$(Se,Y()?.otherFields?.aiEnhancementSuccessMessage||j.message||"Text refined successfully"),l(F)?($(F,{original:l(F).original,enhanced:[...l(F).enhanced,be]}),$(K,l(F).enhanced.length)):($(F,{original:I,enhanced:[be]}),$(K,1)),$(G,be),$(Ie,!0);const De=V(be);$(H,De),S()(be),y(v().id,be,s.QuestionTypes.SHORT_ANSWER,De)}else{if(j?.message){const{code:be,message:De,seconds:Ke}=pb(j.message);be==="1001"&&Ke!==void 0&&Z(Ke),$(fe,hb(be,De,Y(),Ke))}$(Ie,!1)}}catch(j){console.error("Error enhancing text:",j),$(fe,"An error occurred while enhancing text!"),$(Ie,!1)}finally{$(ke,!1)}}function Q(){if(!l(F))return;const I=l(F).original;$(G,I),$(K,0);const j=V(I);$(H,j),S()(I),y(v().id,I,s.QuestionTypes.SHORT_ANSWER,j)}function Ce(I){if(!l(F))return;let j;if(I===0)j=l(F).original;else{const De=I-1;if(De>=l(F).enhanced.length)return;j=l(F).enhanced[De]}$(G,j),$(K,I);const be=V(j);$(H,be),S()(j),y(v().id,j,s.QuestionTypes.SHORT_ANSWER,be)}function _e(){return l(F)?l(F).enhanced.length+1:0}function V(I){if(v().required&&(!I||I.trim()===""))return v().errorMessage||"This field is required";if(v().maxCharacters!==void 0&&I.length>v().maxCharacters||v().minCharacters!==void 0&&I.length>0&&I.length<v().minCharacters)return v().errorMessage;if(v().enableRegexValidation&&v().regexPattern)try{const j=new RegExp(v().regexPattern);if(I.length>0&&!j.test(I))return v().errorMessage||"Input does not match required pattern"}catch{}}function le(){const I=l(G).trim();return I?v().minCharactersToEnhance!==void 0?I.length>=v().minCharactersToEnhance:!0:!1}ve(()=>z(U()),()=>{$(u,U()==="dark")}),ve(()=>(z(x()),l(G),l($e)),()=>{x()!==void 0&&x()!==l(G)&&!l($e)&&($(G,x()),$(C,x()))}),ve(()=>l(G),()=>{$(c,l(G).length||0)}),ve(()=>z(v()),()=>{$(d,v().minCharacters)}),ve(()=>z(v()),()=>{$(m,v().maxCharacters)}),ve(()=>(l(m),l(c)),()=>{$(p,l(m)!==void 0&&l(c)>l(m))}),ve(()=>(l(d),l(c)),()=>{$(g,l(d)!==void 0&&l(c)<l(d)&&l(c)>0)}),ve(()=>(l(p),l(g)),()=>{$(h,l(p)||l(g))}),ve(()=>(l(d),l(m)),()=>{$(b,l(d)!==void 0||l(m)!==void 0)}),ve(()=>(l(G),z(v())),()=>{const I=l(G).trim();I?v().minCharactersToEnhance!==void 0?$(ne,I.length>=v().minCharactersToEnhance):$(ne,!0):$(ne,!1)}),ve(()=>(l(G),l(d),l(m),z(v())),()=>{const I=l(G)?.length||0;l(d)!==void 0&&l(m)!==void 0?$(re,`${I} / (${l(d)} - ${l(m)})`):l(m)!==void 0&&v().required?$(re,`${I} / (1 - ${l(m)})`):l(d)!==void 0?$(re,`${I} / (${l(d)} - 5000)`):$(re,`${I}`)}),ve(()=>(l(W),z(Y())),()=>{l(W)>0&&Y()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(fe,`${Y().otherFields.aiEnhancementCooldownErrorMessage} (${l(W)}s)`)}),ve(()=>z(O()),()=>{O()!==void 0&&$(H,O())}),ve(()=>(l(me),l($e),l(G),l(C),z(v()),s.QuestionTypes),()=>{if(l(me)&&l($e)&&l(G)!==l(C)){$(C,l(G));const I=V(l(G));$(H,I),y(v().id,l(G),s.QuestionTypes.SHORT_ANSWER,I)}}),fr(),er();var Ne=sI(),xe=R(Ne),Re=R(xe);{var Ye=I=>{var j=KS(),be=R(j);L(j),je(()=>Oe(be,`${B()??""}.`)),T(I,j)};ae(Re,I=>{B()!==void 0&&I(Ye)})}var ut=de(Re,2),qe=R(ut),it=R(qe),ht=de(it);{var Ue=I=>{var j=HS();T(I,j)};ae(ht,I=>{z(v()),M(()=>v().required)&&I(Ue)})}L(qe);var Pt=de(qe,2);{var Ct=I=>{var j=XS(),be=R(j,!0);L(j),je(()=>Oe(be,(z(v()),M(()=>v().description)))),T(I,j)};ae(Pt,I=>{z(v()),M(()=>v().description)&&I(Ct)})}L(ut),L(xe);var qt=de(xe,2);{var Vt=I=>{var j=eI(),be=R(j),De=R(be,!0);L(be),L(j),je(()=>Oe(De,l(H))),T(I,j)};ae(qt,I=>{l(H)&&l($e)&&I(Vt)})}var Et=de(qt,2),_t=R(Et);{let I=Ae(()=>`w-full pr-20 text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 ${l(b)?"pr-20":""}`);YS(_t,{get class(){return l(I)},onfocus:E,get placeholder(){return z(v()),M(()=>v().placeholder)},onblur:()=>{if(l(me)){const j=V(l(G));$(H,j),k(v().id,j),S()(l(G))}},get value(){return l(G)},set value(j){$(G,j)},$$legacy:!0})}var yt=de(_t,2),Ir=R(yt,!0);L(yt),L(Et);var Mr=de(Et,2);{var vn=I=>{var j=aI(),be=Te(j),De=R(be);{let He=Ae(()=>l(ke)||!l(ne));Ft(De,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:ie,get disabled(){return l(He)},children:(ft,Ut)=>{var kt=Ze(),zr=Te(kt);{var vr=It=>{var bn=tI();T(It,bn)},tr=It=>{Fv(It,{size:16})};ae(zr,It=>{l(ke)?It(vr):It(tr,!1)})}T(ft,kt)},$$slots:{default:!0}})}var Ke=de(De,2);{var We=He=>{var ft=rI(),Ut=R(ft);{let tr=Ae(()=>l(K)===0);Ft(Ut,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{l(K)>0&&Ce(l(K)-1)},get disabled(){return l(tr)},title:"Previous version",children:(It,bn)=>{Zv(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var kt=de(Ut,2),zr=R(kt);L(kt);var vr=de(kt,2);{let tr=Ae(()=>(l(K),M(()=>l(K)>=_e()-1)));Ft(vr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const It=_e();l(K)<It-1&&Ce(l(K)+1)},get disabled(){return l(tr)},title:"Next version",children:(It,bn)=>{Da(It,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}L(ft),je(tr=>Oe(zr,`${l(K)+1} / ${tr??""}`),[()=>M(_e)]),T(He,ft)};ae(Ke,He=>{l(F),l(ke),M(()=>l(F)&&!l(ke)&&l(F).enhanced&&l(F).enhanced.length>1)&&He(We)})}var vt=de(Ke,2);{var Wt=He=>{Ft(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:Q,title:"Back to original text",children:(ft,Ut)=>{var kt=nI(),zr=Te(kt);Av(zr,{size:16}),_r(2),T(ft,kt)},$$slots:{default:!0}})};ae(vt,He=>{l(F)&&!l(ke)&&l(K)!==0&&He(Wt)})}L(be);var ur=de(be,2);{var or=He=>{var ft=iI(),Ut=de(R(ft),2),kt=R(Ut,!0);L(Ut),L(ft),je(()=>Oe(kt,l(Se))),T(He,ft)};ae(ur,He=>{l(Ie)&&!l(fe)&&He(or)})}var ar=de(ur,2);{var Jr=He=>{var ft=oI(),Ut=de(R(ft),2),kt=R(Ut,!0);L(Ut),L(ft),je(()=>Oe(kt,l(fe))),T(He,ft)};ae(ar,He=>{l(fe)&&He(Jr)})}T(I,j)};ae(Mr,I=>{z(v()),M(()=>v().enableEnhanceWithAi)&&I(vn)})}L(Ne),je(()=>{Oe(it,`${z(v()),M(()=>v().title)??""} `),fn(yt,1,`absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${l(h)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Oe(Ir,(l(G),M(()=>l(G)?.length||0)))}),T(i,Ne),Be()}function cI(i){return typeof i=="function"}function lI(i){return i!==null&&typeof i=="object"}const dI=["string","number","bigint","boolean"];function Fc(i){return i==null||dI.includes(typeof i)?!0:Array.isArray(i)?i.every(n=>Fc(n)):typeof i=="object"?Object.getPrototypeOf(i)===Object.prototype:!1}const Ti=Symbol("box"),Wa=Symbol("is-writable");function wt(i,n){const u=lt(i);return n?{[Ti]:!0,[Wa]:!0,get current(){return l(u)},set current(c){n(c)}}:{[Ti]:!0,get current(){return i()}}}function Io(i){return lI(i)&&Ti in i}function qc(i){return Io(i)&&Wa in i}function fI(i){return Io(i)?i:cI(i)?wt(i):gI(i)}function mI(i){return Object.entries(i).reduce((n,[u,c])=>Io(c)?(qc(c)?Object.defineProperty(n,u,{get(){return c.current},set(d){c.current=d}}):Object.defineProperty(n,u,{get(){return c.current}}),n):Object.assign(n,{[u]:c}),{})}function pI(i){return qc(i)?{[Ti]:!0,get current(){return i.current}}:i}function gI(i){let n=qr(In(i));return{[Ti]:!0,[Wa]:!0,get current(){return l(n)},set current(u){$(n,u,!0)}}}function li(i){let n=qr(In(i));return{[Ti]:!0,[Wa]:!0,get current(){return l(n)},set current(u){$(n,u,!0)}}}li.from=fI,li.with=wt,li.flatten=mI,li.readonly=pI,li.isBox=Io,li.isWritableBox=qc;function hI(...i){return function(n){for(const u of i)if(u){if(n.defaultPrevented)return;typeof u=="function"?u.call(this,n):u.current?.call(this,n)}}}var bb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vI=/\n/g,bI=/^\s*/,yI=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$I=/^:\s*/,wI=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_I=/^[;\s]*/,kI=/^\s+|\s+$/g,xI=`
|
|
133
|
+
`,yb="/",$b="*",di="",SI="comment",II="declaration";function zI(i,n){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];n=n||{};var u=1,c=1;function d(S){var O=S.match(vI);O&&(u+=O.length);var U=S.lastIndexOf(xI);c=~U?S.length-U:c+S.length}function m(){var S={line:u,column:c};return function(O){return O.position=new p(S),b(),O}}function p(S){this.start=S,this.end={line:u,column:c},this.source=n.source}p.prototype.content=i;function g(S){var O=new Error(n.source+":"+u+":"+c+": "+S);if(O.reason=S,O.filename=n.source,O.line=u,O.column=c,O.source=i,!n.silent)throw O}function h(S){var O=S.exec(i);if(O){var U=O[0];return d(U),i=i.slice(U.length),O}}function b(){h(bI)}function y(S){var O;for(S=S||[];O=k();)O!==!1&&S.push(O);return S}function k(){var S=m();if(!(yb!=i.charAt(0)||$b!=i.charAt(1))){for(var O=2;di!=i.charAt(O)&&($b!=i.charAt(O)||yb!=i.charAt(O+1));)++O;if(O+=2,di===i.charAt(O-1))return g("End of comment missing");var U=i.slice(2,O-2);return c+=2,d(U),i=i.slice(O),c+=2,S({type:SI,comment:U})}}function v(){var S=m(),O=h(yI);if(O){if(k(),!h($I))return g("property missing ':'");var U=h(wI),B=S({type:II,property:wb(O[0].replace(bb,di)),value:U?wb(U[0].replace(bb,di)):di});return h(_I),B}}function x(){var S=[];y(S);for(var O;O=v();)O!==!1&&(S.push(O),y(S));return S}return b(),x()}function wb(i){return i?i.replace(kI,di):di}function NI(i,n){let u=null;if(!i||typeof i!="string")return u;const c=zI(i),d=typeof n=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:g}=m;d?n(p,g,m):g&&(u=u||{},u[p]=g)}),u}const jI=/\d/,TI=["-","_","/","."];function OI(i=""){if(!jI.test(i))return i!==i.toLowerCase()}function EI(i){const n=[];let u="",c,d;for(const m of i){const p=TI.includes(m);if(p===!0){n.push(u),u="",c=void 0;continue}const g=OI(m);if(d===!1){if(c===!1&&g===!0){n.push(u),u=m,c=g;continue}if(c===!0&&g===!1&&u.length>1){const h=u.at(-1);n.push(u.slice(0,Math.max(0,u.length-1))),u=h+m,c=g;continue}}u+=m,c=g,d=p}return n.push(u),n}function _b(i){return i?EI(i).map(n=>CI(n)).join(""):""}function PI(i){return UI(_b(i||""))}function CI(i){return i?i[0].toUpperCase()+i.slice(1):""}function UI(i){return i?i[0].toLowerCase()+i.slice(1):""}function Qa(i){if(!i)return{};const n={};function u(c,d){if(c.startsWith("-moz-")||c.startsWith("-webkit-")||c.startsWith("-ms-")||c.startsWith("-o-")){n[_b(c)]=d;return}if(c.startsWith("--")){n[c]=d;return}n[PI(c)]=d}return NI(i,u),n}function MI(...i){return(...n)=>{for(const u of i)typeof u=="function"&&u(...n)}}function DI(i,n){const u=RegExp(i,"g");return c=>{if(typeof c!="string")throw new TypeError(`expected an argument of type string, but got ${typeof c}`);return c.match(u)?c.replace(u,n):c}}const LI=DI(/[A-Z]/,i=>`-${i.toLowerCase()}`);function AI(i){if(!i||typeof i!="object"||Array.isArray(i))throw new TypeError(`expected an argument of type object, but got ${typeof i}`);return Object.keys(i).map(n=>`${LI(n)}: ${i[n]};`).join(`
|
|
134
|
+
`)}function kb(i={}){return AI(i).replace(`
|
|
135
|
+
`," ")}const ZI=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],RI=new Set(ZI);function FI(i){return RI.has(i)}function zo(...i){const n={...i[0]};for(let u=1;u<i.length;u++){const c=i[u];if(c){for(const d of Object.keys(c)){const m=n[d],p=c[d],g=typeof m=="function",h=typeof p=="function";if(g&&FI(d)){const b=m,y=p;n[d]=hI(b,y)}else if(g&&h)n[d]=MI(m,p);else if(d==="class"){const b=Fc(m),y=Fc(p);b&&y?n[d]=yo(m,p):b?n[d]=yo(m):y&&(n[d]=yo(p))}else if(d==="style"){const b=typeof m=="object",y=typeof p=="object",k=typeof m=="string",v=typeof p=="string";if(b&&y)n[d]={...m,...p};else if(b&&v){const x=Qa(p);n[d]={...m,...x}}else if(k&&y){const x=Qa(m);n[d]={...x,...p}}else if(k&&v){const x=Qa(m),S=Qa(p);n[d]={...x,...S}}else b?n[d]=m:y?n[d]=p:k?n[d]=m:v&&(n[d]=p)}else n[d]=p!==void 0?p:m}for(const d of Object.getOwnPropertySymbols(c)){const m=n[d],p=c[d];n[d]=p!==void 0?p:m}}}return typeof n.style=="object"&&(n.style=kb(n.style).replaceAll(`
|
|
136
|
+
`," ")),n.hidden===!1&&(n.hidden=void 0,delete n.hidden),n.disabled===!1&&(n.disabled=void 0,delete n.disabled),n}const qI=kb({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"}),WI=typeof window<"u"?window:void 0;function QI(i){let n=i.activeElement;for(;n?.shadowRoot;){const u=n.shadowRoot.activeElement;if(u===n)break;n=u}return n}class GI{#e;#t;constructor(n={}){const{window:u=WI,document:c=u?.document}=n;u!==void 0&&(this.#e=c,this.#t=Mh(d=>{const m=bv(u,"focusin",d),p=bv(u,"focusout",d);return()=>{m(),p()}}))}get current(){return this.#t?.(),this.#e?QI(this.#e):null}}new GI;class Wc{#e;#t;constructor(n){this.#e=n,this.#t=Symbol(n)}get key(){return this.#t}exists(){return Xk(this.#t)}get(){const n=dc(this.#t);if(n===void 0)throw new Error(`Context "${this.#e}" not found`);return n}getOr(n){const u=dc(this.#t);return u===void 0?n:u}set(n){return jh(this.#t,n)}}function VI(i,n){switch(i){case"post":po(n);break;case"pre":tv(n);break}}function xb(i,n,u,c={}){const{lazy:d=!1}=c;let m=!d,p=Array.isArray(i)?[]:void 0;VI(n,()=>{const g=Array.isArray(i)?i.map(b=>b()):i();if(!m){m=!0,p=g;return}const h=M(()=>u(g,p));return p=g,h})}function No(i,n,u){xb(i,"post",n,u)}function JI(i,n,u){xb(i,"pre",n,u)}No.pre=JI;function Ga(i,n){return{[L0()]:u=>Io(i)?(i.current=u,M(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||(i.current=null)}):(i(u),M(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||i(null)})}}function Va(i){return i?"true":"false"}function Oi(i){return i?"":void 0}function Sb(i,n){return n?"mixed":i?"true":"false"}class BI{#e;#t;attrs;constructor(n){this.#e=n.getVariant?n.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${n.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(n.parts.map(u=>[u,this.getAttr(u)]))}getAttr(n,u){return u?`data-${u}-${n}`:`${this.#t}${n}`}selector(n,u){return`[${this.getAttr(n,u)}]`}}function Qc(i){const n=new BI(i);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}const Gc="ArrowDown",Vc="ArrowLeft",Jc="ArrowRight",Bc="ArrowUp",YI="End",KI="Enter",HI="Home",Ib=" ";function XI(i){return window.getComputedStyle(i).getPropertyValue("direction")}function e1(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Vc:Jc,vertical:Gc}[n]}function t1(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Jc:Vc,vertical:Bc}[n]}function r1(i="ltr",n="horizontal"){return["ltr","rtl"].includes(i)||(i="ltr"),["horizontal","vertical"].includes(n)||(n="horizontal"),{nextKey:e1(i,n),prevKey:t1(i,n)}}function zb(i){return i instanceof HTMLElement}class n1{#e;#t=li(null);constructor(n){this.#e=n}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const n=this.getCandidateNodes();n.length&&n[0]?.focus()}handleKeydown(n,u,c=!1){const d=this.#e.rootNode.current;if(!d||!n)return;const m=this.getCandidateNodes();if(!m.length)return;const p=m.indexOf(n),g=XI(d),{nextKey:h,prevKey:b}=r1(g,this.#e.orientation.current),y=this.#e.loop.current,k={[h]:p+1,[b]:p-1,[HI]:0,[YI]:m.length-1};if(c){const S=h===Gc?Jc:Gc,O=b===Bc?Vc:Bc;k[S]=p+1,k[O]=p-1}let v=k[u.key];if(v===void 0)return;u.preventDefault(),v<0&&y?v=m.length-1:v===m.length&&y&&(v=0);const x=m[v];if(x)return x.focus(),this.#t.current=x.id,this.#e.onCandidateFocus?.(x),x}getTabIndex(n){const u=this.getCandidateNodes(),c=this.#t.current!==null;return n&&!c&&u[0]===n?(this.#t.current=n.id,0):n?.id===this.#t.current?0:-1}setCurrentTabStopId(n){this.#t.current=n}focusCurrentTabStop(){const n=this.#t.current;if(!n)return;const u=this.#e.rootNode.current?.querySelector(`#${n}`);!u||!zb(u)||u.focus()}}function i1(){}function Ja(i,n){return`bits-${i}`}const o1=Qc({component:"checkbox",parts:["root","group","group-label","input"]}),a1=new Wc("Checkbox.Group"),Nb=new Wc("Checkbox.Root");class Yc{static create(n,u=null){return Nb.set(new Yc(n,u))}opts;group;#e=lt(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return l(this.#e)}set trueName(n){$(this.#e,n)}#t=lt(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return l(this.#t)}set trueRequired(n){$(this.#t,n)}#n=lt(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return l(this.#n)}set trueDisabled(n){$(this.#n,n)}#o=lt(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return l(this.#o)}set trueReadonly(n){$(this.#o,n)}attachment;constructor(n,u){this.opts=n,this.group=u,this.attachment=Ga(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),No.pre([()=>Hk(this.group?.opts.value.current),()=>this.opts.value.current],([c,d])=>{!c||!d||(this.opts.checked.current=c.includes(d))}),No.pre(()=>this.opts.checked.current,c=>{this.group&&(c?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(n){this.trueDisabled||this.trueReadonly||(n.key===KI&&n.preventDefault(),n.key===Ib&&(n.preventDefault(),this.#i()))}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(n){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#i();return}n.preventDefault(),this.#i()}}#a=lt(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return l(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":Sb(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Va(this.trueRequired),"aria-readonly":Va(this.trueReadonly),"data-disabled":Oi(this.trueDisabled),"data-readonly":Oi(this.trueReadonly),"data-state":s1(this.opts.checked.current,this.opts.indeterminate.current),[o1.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#r)}set props(n){$(this.#r,n)}}class Kc{static create(){return new Kc(Nb.get())}root;#e=lt(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return l(this.#e)}set trueChecked(n){$(this.#e,n)}#t=lt(()=>!!this.root.trueName);get shouldRender(){return l(this.#t)}set shouldRender(n){$(this.#t,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){zb(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#n=lt(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return l(this.#n)}set props(n){$(this.#n,n)}}function s1(i,n){return n?"indeterminate":i?"checked":"unchecked"}var u1=te("<input/>"),c1=te("<input/>");function jb(i,n){Je(n,!0);let u=w(n,"value",15),c=At(n,["$$slots","$$events","$$legacy","value"]);const d=lt(()=>zo(c,{"aria-hidden":"true",tabindex:-1,style:qI}));var m=Ze(),p=Te(m);{var g=b=>{var y=u1();Gt(y,()=>({...l(d),value:u()}),void 0,void 0,void 0,!0),T(b,y)},h=b=>{var y=c1();Gt(y,()=>({...l(d)}),void 0,void 0,void 0,!0),Ca(y,u),T(b,y)};ae(p,b=>{l(d).type==="checkbox"?b(g):b(h,!1)})}T(i,m),Be()}function l1(i,n){Je(n,!1);const u=Kc.create();er();var c=Ze(),d=Te(c);{var m=p=>{jb(p,Tt(()=>u.props))};ae(d,p=>{u.shouldRender&&p(m)})}T(i,c),Be()}var d1=te("<button><!></button>"),f1=te("<!> <!>",1);function m1(i,n){const u=Ea();Je(n,!0);let c=w(n,"checked",15,!1),d=w(n,"ref",15,null),m=w(n,"disabled",3,!1),p=w(n,"required",3,!1),g=w(n,"name",3,void 0),h=w(n,"value",3,"on"),b=w(n,"id",19,()=>Ja(u)),y=w(n,"indeterminate",15,!1),k=w(n,"type",3,"button"),v=At(n,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const x=a1.getOr(null);x&&h()&&(x.opts.value.current.includes(h())?c(!0):c(!1)),No.pre(()=>h(),()=>{x&&h()&&(x.opts.value.current.includes(h())?c(!0):c(!1))});const S=Yc.create({checked:wt(()=>c(),G=>{c(G),n.onCheckedChange?.(G)}),disabled:wt(()=>m()??!1),required:wt(()=>p()),name:wt(()=>g()),value:wt(()=>h()),id:wt(()=>b()),ref:wt(()=>d(),G=>d(G)),indeterminate:wt(()=>y(),G=>{y(G),n.onIndeterminateChange?.(G)}),type:wt(()=>k()),readonly:wt(()=>!!n.readonly)},x),O=lt(()=>zo({...v},S.props));var U=f1(),B=Te(U);{var oe=G=>{var F=Ze(),K=Te(F);{let H=lt(()=>({props:l(O),...S.snippetProps}));Rt(K,()=>n.child,()=>l(H))}T(G,F)},J=G=>{var F=d1();Gt(F,()=>({...l(O)}));var K=R(F);Rt(K,()=>n.children??gt,()=>S.snippetProps),L(F),T(G,F)};ae(B,G=>{n.child?G(oe):G(J,!1)})}var Y=de(B,2);l1(Y,{}),T(i,U),Be()}const p1=Qc({component:"progress",parts:["root"]});class Hc{static create(n){return new Hc(n)}opts;attachment;constructor(n){this.opts=n,this.attachment=Ga(this.opts.ref)}#e=lt(()=>({role:"progressbar",value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":g1(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?"":void 0,[p1.root]:"",...this.attachment}));get props(){return l(this.#e)}set props(n){$(this.#e,n)}}function g1(i,n){return i===null?"indeterminate":i===n?"loaded":"loading"}var h1=te("<div><!></div>");function v1(i,n){const u=Ea();Je(n,!0);let c=w(n,"value",3,0),d=w(n,"max",3,100),m=w(n,"min",3,0),p=w(n,"id",19,()=>Ja(u)),g=w(n,"ref",15,null),h=At(n,["$$slots","$$events","$$legacy","child","children","value","max","min","id","ref"]);const b=Hc.create({value:wt(()=>c()),max:wt(()=>d()),min:wt(()=>m()),id:wt(()=>p()),ref:wt(()=>g(),O=>g(O))}),y=lt(()=>zo(h,b.props));var k=Ze(),v=Te(k);{var x=O=>{var U=Ze(),B=Te(U);Rt(B,()=>n.child,()=>({props:l(y)})),T(O,U)},S=O=>{var U=h1();Gt(U,()=>({...l(y)}));var B=R(U);Rt(B,()=>n.children??gt),L(U),T(O,U)};ae(v,O=>{n.child?O(x):O(S,!1)})}T(i,k),Be()}const Xc=Qc({component:"radio-group",parts:["root","item"]}),el=new Wc("RadioGroup.Root");class tl{static create(n){return el.set(new tl(n))}opts;#e=lt(()=>this.opts.value.current!=="");get hasValue(){return l(this.#e)}set hasValue(n){$(this.#e,n)}rovingFocusGroup;attachment;constructor(n){this.opts=n,this.attachment=Ga(this.opts.ref),this.rovingFocusGroup=new n1({rootNode:this.opts.ref,candidateAttr:Xc.item,loop:this.opts.loop,orientation:this.opts.orientation})}isChecked(n){return this.opts.value.current===n}setValue(n){this.opts.value.current=n}#t=lt(()=>({id:this.opts.id.current,role:"radiogroup","aria-required":Va(this.opts.required.current),"aria-disabled":Va(this.opts.disabled.current),"aria-readonly":this.opts.readonly.current?"true":void 0,"data-disabled":Oi(this.opts.disabled.current),"data-readonly":Oi(this.opts.readonly.current),"data-orientation":this.opts.orientation.current,[Xc.root]:"",...this.attachment}));get props(){return l(this.#t)}set props(n){$(this.#t,n)}}class rl{static create(n){return new rl(n,el.get())}opts;root;attachment;#e=lt(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return l(this.#e)}set checked(n){$(this.#e,n)}#t=lt(()=>this.opts.disabled.current||this.root.opts.disabled.current);#n=lt(()=>this.root.opts.readonly.current);#o=lt(()=>this.root.isChecked(this.opts.value.current));#i=qr(-1);constructor(n,u){this.opts=n,this.root=u,this.attachment=Ga(this.opts.ref),this.opts.value.current===this.root.opts.value.current?(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0)):this.root.opts.value.current||$(this.#i,0),po(()=>{$(this.#i,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),No([()=>this.opts.value.current,()=>this.root.opts.value.current],()=>{this.opts.value.current===this.root.opts.value.current&&(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0))}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onfocus=this.onfocus.bind(this)}onclick(n){this.opts.disabled.current||l(this.#n)||this.root.setValue(this.opts.value.current)}onfocus(n){!this.root.hasValue||l(this.#n)||this.root.setValue(this.opts.value.current)}onkeydown(n){if(!l(this.#t)){if(n.key===Ib){n.preventDefault(),l(this.#n)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,n,!0)}}#a=lt(()=>({checked:l(this.#o)}));get snippetProps(){return l(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({id:this.opts.id.current,disabled:l(this.#t)?!0:void 0,"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Oi(l(this.#t)),"data-readonly":Oi(l(this.#n)),"data-state":l(this.#o)?"checked":"unchecked","aria-checked":Sb(l(this.#o),!1),[Xc.item]:"",type:"button",role:"radio",tabindex:l(this.#i),onkeydown:this.onkeydown,onfocus:this.onfocus,onclick:this.onclick,...this.attachment}));get props(){return l(this.#r)}set props(n){$(this.#r,n)}}class nl{static create(){return new nl(el.get())}root;#e=lt(()=>this.root.opts.name.current!==void 0);get shouldRender(){return l(this.#e)}set shouldRender(n){$(this.#e,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){this.root.rovingFocusGroup.focusCurrentTabStop()}#t=lt(()=>({name:this.root.opts.name.current,value:this.root.opts.value.current,required:this.root.opts.required.current,disabled:this.root.opts.disabled.current,onfocus:this.onfocus}));get props(){return l(this.#t)}set props(n){$(this.#t,n)}}function b1(i,n){Je(n,!1);const u=nl.create();er();var c=Ze(),d=Te(c);{var m=p=>{jb(p,Tt(()=>u.props))};ae(d,p=>{u.shouldRender&&p(m)})}T(i,c),Be()}var y1=te("<div><!></div>"),$1=te("<!> <!>",1);function w1(i,n){const u=Ea();Je(n,!0);let c=w(n,"disabled",3,!1),d=w(n,"value",15,""),m=w(n,"ref",15,null),p=w(n,"orientation",3,"vertical"),g=w(n,"loop",3,!0),h=w(n,"name",3,void 0),b=w(n,"required",3,!1),y=w(n,"readonly",3,!1),k=w(n,"id",19,()=>Ja(u)),v=w(n,"onValueChange",3,i1),x=At(n,["$$slots","$$events","$$legacy","disabled","children","child","value","ref","orientation","loop","name","required","readonly","id","onValueChange"]);const S=tl.create({orientation:wt(()=>p()),disabled:wt(()=>c()),loop:wt(()=>g()),name:wt(()=>h()),required:wt(()=>b()),readonly:wt(()=>y()),id:wt(()=>k()),value:wt(()=>d(),G=>{G!==d()&&(d(G),v()?.(G))}),ref:wt(()=>m(),G=>m(G))}),O=lt(()=>zo(x,S.props));var U=$1(),B=Te(U);{var oe=G=>{var F=Ze(),K=Te(F);Rt(K,()=>n.child,()=>({props:l(O)})),T(G,F)},J=G=>{var F=y1();Gt(F,()=>({...l(O)}));var K=R(F);Rt(K,()=>n.children??gt),L(F),T(G,F)};ae(B,G=>{n.child?G(oe):G(J,!1)})}var Y=de(B,2);b1(Y,{}),T(i,U),Be()}var _1=te("<button><!></button>");function k1(i,n){const u=Ea();Je(n,!0);let c=w(n,"id",19,()=>Ja(u)),d=w(n,"disabled",3,!1),m=w(n,"ref",15,null),p=At(n,["$$slots","$$events","$$legacy","id","children","child","value","disabled","ref"]);const g=rl.create({value:wt(()=>n.value),disabled:wt(()=>d()??!1),id:wt(()=>c()),ref:wt(()=>m(),x=>m(x))}),h=lt(()=>zo(p,g.props));var b=Ze(),y=Te(b);{var k=x=>{var S=Ze(),O=Te(S);{let U=lt(()=>({props:l(h),...g.snippetProps}));Rt(O,()=>n.child,()=>l(U))}T(x,S)},v=x=>{var S=_1();Gt(S,()=>({...l(h)}));var O=R(S);Rt(O,()=>n.children??gt,()=>g.snippetProps),L(S),T(x,S)};ae(y,x=>{n.child?x(k):x(v,!1)})}T(i,b),Be()}function x1(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"value",15,""),d=At(n,["$$slots","$$events","$$legacy","ref","class","value"]);var m=Ze(),p=Te(m);{let g=lt(()=>Sr("grid gap-3",n.class));Pa(p,()=>w1,(h,b)=>{b(h,Tt({"data-slot":"radio-group",get class(){return l(g)}},()=>d,{get ref(){return u()},set ref(y){u(y)},get value(){return c()},set value(y){c(y)}}))})}T(i,m),Be()}function S1(i,n){Je(n,!0);/**
|
|
137
137
|
* @license @lucide/svelte v0.544.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* ISC License
|
|
@@ -176,7 +176,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
176
176
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
177
177
|
* SOFTWARE.
|
|
178
178
|
*
|
|
179
|
-
*/let u=At(n,["$$slots","$$events","$$legacy"]);const
|
|
179
|
+
*/let u=At(n,["$$slots","$$events","$$legacy"]);const c=[["circle",{cx:"12",cy:"12",r:"10"}]];qa(i,Tt({name:"circle"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Be()}var I1=te('<div data-slot="radio-group-indicator" class="relative flex items-center justify-center"><!></div>');function z1(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=At(n,["$$slots","$$events","$$legacy","ref","class"]);var d=Ze(),m=Te(d);{const p=(h,b)=>{let y=()=>b?.().checked;var k=I1(),v=R(k);{var x=S=>{S1(S,{class:"fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})};ae(v,S=>{y()&&S(x)})}L(k),T(h,k)};let g=lt(()=>Sr("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 shadow-xs aspect-square size-4 shrink-0 rounded-full border outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n.class));Pa(m,()=>k1,(h,b)=>{b(h,Tt({"data-slot":"radio-group-item",get class(){return l(g)}},()=>c,{get ref(){return u()},set ref(y){u(y)},children:p,$$slots:{default:!0}}))})}T(i,d),Be()}var N1=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),j1=te('<span class="text-destructive ml-1">*</span>'),T1=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),O1=te('<div class="flex items-center space-x-3"><!> <label class="text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none"> </label></div>'),E1=te('<div class="flex flex-wrap gap-2"></div>'),P1=Tn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),C1=te('<span class="flex-1"> </span> <!>',1),U1=te('<div class="flex flex-col gap-2 w-full"></div>'),M1=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),D1=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <!></div>');function L1(i,n){Je(n,!1);const u=ee();let c=w(n,"question",8),d=w(n,"value",8,""),m=w(n,"onChange",8),p=w(n,"error",8,void 0),g=w(n,"currentMode",8,void 0),h=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let b=ee(d()||"");function y(ke){l(b)===ke?($(b,""),m()("")):($(b,ke),m()(ke))}ve(()=>z(g()),()=>{$(u,g()==="dark")}),ve(()=>z(d()),()=>{d()!==void 0&&$(b,d())}),fr(),er();var k=D1(),v=R(k),x=R(v);{var S=ke=>{var fe=N1(),Se=R(fe);L(fe),je(()=>Oe(Se,`${h()??""}.`)),T(ke,fe)};ae(x,ke=>{h()!==void 0&&ke(S)})}var O=de(x,2),U=R(O),B=R(U),oe=de(B);{var J=ke=>{var fe=j1();T(ke,fe)};ae(oe,ke=>{z(c()),M(()=>c().required)&&ke(J)})}L(U);var Y=de(U,2);{var G=ke=>{var fe=T1(),Se=R(fe,!0);L(fe),je(()=>Oe(Se,(z(c()),M(()=>c().description)))),T(ke,fe)};ae(Y,ke=>{z(c()),M(()=>c().description)&&ke(G)})}L(O),L(v);var F=de(v,2);{var K=ke=>{x1(ke,{get value(){return l(b)},class:"flex flex-col gap-3",children:(fe,Se)=>{var me=Ze(),ne=Te(me);gr(ne,1,()=>(z(c()),M(()=>c().options)),xr,(re,W)=>{var N=O1(),C=R(N);{let ie=Ae(()=>(z(c()),l(W),M(()=>`${c().id}-${l(W).value}`)));z1(C,{get value(){return l(W),M(()=>l(W).value)},get id(){return l(ie)},onclick:()=>y(l(W).value),class:`h-5 w-5 rounded-full border-2 cursor-pointer transition-all
|
|
180
180
|
data-[state=checked]:border-primary
|
|
181
181
|
data-[state=checked]:bg-primary
|
|
182
182
|
dark:data-[state=checked]:bg-primary
|
|
@@ -189,7 +189,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
189
189
|
[&_[data-slot=radio-group-indicator]_svg]:fill-primary-foreground
|
|
190
190
|
[&_[data-slot=radio-group-indicator]_svg]:stroke-primary-foreground
|
|
191
191
|
dark:[&_[data-slot=radio-group-indicator]_svg]:fill-primary-foreground
|
|
192
|
-
dark:[&_[data-slot=radio-group-indicator]_svg]:stroke-primary-foreground`})}var E=
|
|
192
|
+
dark:[&_[data-slot=radio-group-indicator]_svg]:stroke-primary-foreground`})}var E=de(C,2),Z=R(E,!0);L(E),L(N),je(()=>{si(E,"for",(z(c()),l(W),M(()=>`${c().id}-${l(W).value}`))),Oe(Z,(l(W),M(()=>l(W).label)))}),T(re,N)}),T(fe,me)},$$slots:{default:!0}})},H=ke=>{var fe=Ze(),Se=Te(fe);{var me=re=>{var W=E1();gr(W,5,()=>(z(c()),M(()=>c().options)),xr,(N,C)=>{{let E=Ae(()=>(l(b),l(C),M(()=>`rounded-full px-4 py-2 text-sm font-medium transition-all hover:scale-105 ${l(b)===l(C).value?"bg-primary text-primary-foreground border-primary hover:bg-primary/90 shadow-md dark:shadow-primary/20":"bg-card text-card-foreground border-border hover:bg-accent hover:text-accent-foreground"}`)));Ft(N,{type:"button",variant:"outline",get class(){return l(E)},onclick:()=>y(l(C).value),children:(Z,ie)=>{_r();var Q=On();je(()=>Oe(Q,(l(C),M(()=>l(C).label)))),T(Z,Q)},$$slots:{default:!0}})}}),L(W),T(re,W)},ne=re=>{var W=Ze(),N=Te(W);{var C=E=>{var Z=U1();gr(Z,5,()=>(z(c()),M(()=>c().options)),xr,(ie,Q)=>{{let Ce=Ae(()=>(l(b),l(Q),M(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${l(b)===l(Q).value?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:border-primary/90 dark:bg-primary dark:hover:bg-primary":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 shadow-sm dark:hover:bg-primary/20 dark:hover:text-card-foreground"}`)));Ft(ie,{type:"button",variant:"outline",get class(){return l(Ce)},onclick:()=>y(l(Q).value),onkeydown:_e=>_e.key==="Enter"&&y(l(Q).value),children:(_e,V)=>{var le=C1(),Ne=Te(le),xe=R(Ne,!0);L(Ne);var Re=de(Ne,2);{var Ye=ut=>{var qe=P1();T(ut,qe)};ae(Re,ut=>{l(b),l(Q),M(()=>l(b)===l(Q).value)&&ut(Ye)})}je(()=>Oe(xe,(l(Q),M(()=>l(Q).label)))),T(_e,le)},$$slots:{default:!0}})}}),L(Z),T(E,Z)};ae(N,E=>{z(c()),M(()=>c().displayStyle==="list")&&E(C)},!0)}T(re,W)};ae(Se,re=>{z(c()),M(()=>c().displayStyle==="chip")?re(me):re(ne,!1)},!0)}T(ke,fe)};ae(F,ke=>{z(c()),M(()=>c().displayStyle==="radio"||!c().displayStyle)?ke(K):ke(H,!1)})}var $e=de(F,2);{var Ie=ke=>{var fe=M1(),Se=R(fe),me=R(Se,!0);L(Se),L(fe),je(()=>Oe(me,p())),T(ke,fe)};ae($e,ke=>{p()&&ke(Ie)})}L(k),je(()=>Oe(B,`${z(c()),M(()=>c().title)??""} `)),T(i,k),Be()}var A1=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),Z1=te('<span class="text-destructive ml-1">*</span>'),R1=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),F1=te("<span> </span>"),q1=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium"> </span>'),W1=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium text-right"> </span>'),Q1=te('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),G1=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),V1=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="flex flex-col gap-3 pt-2"><div></div> <!></div> <!></div>');function J1(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),{removeQuestionResponse:m}=pn();let p=w(n,"question",8),g=w(n,"value",8,0),h=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),k=w(n,"questionNumber",8,void 0),v=w(n,"themeSettings",8,void 0);w(n,"currentLanguage",8,void 0);let x=ee(g()??0),S=ee(g()??0),O=ee(0);function U(C){l(S)===C?($(x,0),$(S,0),h()(0),m(p().id)):($(x,C),$(S,C),h()(C))}function B(C,E,Z){const{displayStyle:ie="star",representationSize:Q="medium",numberOfRatings:Ce=5,color:_e}=p(),V=typeof window<"u"&&window.innerWidth<640?"small":Q,le=E>=C,Ne=E===C,xe=Z===C,Re=Z>=C,Ye=`rating-icon ${V}-size ${le?"selected":""} ${l(c)?"dark-mode":""}`,ut=ie==="emoji"||ie==="thumbs-up",qe=_e??l(d)?.brandColor??"var(--brand-color)";let it="";if(ut?it=`opacity: ${(ie==="thumbs-up"?le||Re:Ne||xe)?"1":"0.4"}; transform: scale(${ie==="thumbs-up"&&Ne||ie==="emoji"&&Ne?"1.1":"1"}); transition: opacity 0.2s ease, transform 0.2s ease;`:it=`color: ${le?qe:l(c)?"#4b5563":"#d1d5db"}; transition: color 0.25s ease;`,ie==="emoji"){const Ue=["😡","😞","😕","😐","🙂","😊","😄","😁","🤩","😍"],Pt=Math.floor((C-1)*(Ue.length/Ce)),Ct=Math.min(Math.max(Pt,0),Ue.length-1);return{content:Ue[Ct],type:"emoji",style:it,baseClass:`${Ye} rating-${ie}-icon`}}const ht={star:"★",heart:"♥","thumbs-up":"👍",diamond:"◆"}[ie];return ht?{content:ht,type:ie,style:it,baseClass:`${Ye} rating-${ie}-icon`}:null}ve(()=>z(p()),()=>{$(u,p().displayStyle==="emoji"||p().displayStyle==="thumbs-up")}),ve(()=>z(y()),()=>{$(c,y()==="dark")}),ve(()=>(z(v()),z(y())),()=>{$(d,v()?.[y()==="dark"?"dark":"light"]||null)}),ve(()=>z(g()),()=>{g()!==void 0&&($(x,g()),$(S,g()))}),fr(),er();var oe=V1(),J=R(oe),Y=R(J);{var G=C=>{var E=A1(),Z=R(E);L(E),je(()=>Oe(Z,`${k()??""}.`)),T(C,E)};ae(Y,C=>{k()!==void 0&&C(G)})}var F=de(Y,2),K=R(F),H=R(K),$e=de(H);{var Ie=C=>{var E=Z1();T(C,E)};ae($e,C=>{z(p()),M(()=>p().required)&&C(Ie)})}L(K);var ke=de(K,2);{var fe=C=>{var E=R1(),Z=R(E,!0);L(E),je(()=>Oe(Z,(z(p()),M(()=>p().description)))),T(C,E)};ae(ke,C=>{z(p()),M(()=>p().description)&&C(fe)})}L(F),L(J);var Se=de(J,2),me=R(Se);gr(me,5,()=>(z(p()),M(()=>Array.from({length:p().numberOfRatings??5},(C,E)=>E+1))),xr,(C,E)=>{const Z=Ae(()=>(l(E),l(x),l(O),M(()=>B(l(E),l(x),l(O))))),ie=Ae(()=>(z(p()),M(()=>p().numberOfRatings??5))),Q=Ae(()=>l(ie)>10?"p-0.5 xs:p-1 sm:p-1.5":l(ie)>7?"p-1 xs:p-1.5 sm:p-2":"p-1.5 xs:p-2 sm:p-2.5"),Ce=Ae(()=>l(ie)>10?"text-base xs:text-lg sm:text-xl":l(ie)>7?"text-lg xs:text-xl sm:text-2xl":"text-xl xs:text-2xl sm:text-3xl");var _e=Ze(),V=Te(_e);{var le=Ne=>{{let xe=Ae(()=>l(Q)),Re=Ae(()=>l(u)?"":"hover:scale-110");Ft(Ne,{type:"button",variant:"ghost",size:"icon",get class(){return`h-auto w-auto ${l(xe)??""} rounded-lg hover:bg-accent transition-all flex-shrink-0 ${l(Re)??""}`},onclick:()=>U(l(E)),onmouseenter:()=>{$(x,l(E)),$(O,l(E))},onmouseleave:()=>{$(O,0),$(x,l(S))},children:(Ye,ut)=>{var qe=F1(),it=R(qe,!0);L(qe),je(()=>{fn(qe,1,`${z(l(Z)),M(()=>l(Z).baseClass)??""} ${l(u)?`${l(Ce)} leading-none`:""}`),$o(qe,(z(l(Z)),M(()=>l(Z).style))),Oe(it,(z(l(Z)),M(()=>l(Z).content)))}),T(Ye,qe)},$$slots:{default:!0}})}};ae(V,Ne=>{l(Z)&&Ne(le)})}T(C,_e)}),L(me);var ne=de(me,2);{var re=C=>{var E=Q1(),Z=R(E);{var ie=_e=>{var V=q1(),le=R(V,!0);L(V),je(()=>Oe(le,(z(p()),M(()=>p().minLabel)))),T(_e,V)};ae(Z,_e=>{z(p()),M(()=>p().minLabel)&&_e(ie)})}var Q=de(Z,2);{var Ce=_e=>{var V=W1(),le=R(V,!0);L(V),je(()=>Oe(le,(z(p()),M(()=>p().maxLabel)))),T(_e,V)};ae(Q,_e=>{z(p()),M(()=>p().maxLabel)&&_e(Ce)})}L(E),T(C,E)};ae(ne,C=>{z(p()),M(()=>p().showLabels)&&C(re)})}L(Se);var W=de(Se,2);{var N=C=>{var E=G1(),Z=R(E),ie=R(Z,!0);L(Z),L(E),je(()=>Oe(ie,b())),T(C,E)};ae(W,C=>{b()&&C(N)})}L(oe),je(()=>{Oe(H,`${z(p()),M(()=>p().title)??""} `),fn(me,1,`flex ${l(u)?"gap-0":"gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2"} justify-center items-center w-full`)}),T(i,oe),Be()}function B1(i,n){Je(n,!0);/**
|
|
193
193
|
* @license @lucide/svelte v0.544.0 - ISC
|
|
194
194
|
*
|
|
195
195
|
* ISC License
|
|
@@ -232,7 +232,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
232
232
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
233
233
|
* SOFTWARE.
|
|
234
234
|
*
|
|
235
|
-
*/let u=At(n,["$$slots","$$events","$$legacy"]);const
|
|
235
|
+
*/let u=At(n,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"M20 6 9 17l-5-5"}]];qa(i,Tt({name:"check"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Be()}function Y1(i,n){Je(n,!0);/**
|
|
236
236
|
* @license @lucide/svelte v0.544.0 - ISC
|
|
237
237
|
*
|
|
238
238
|
* ISC License
|
|
@@ -275,8 +275,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
275
275
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
276
276
|
* SOFTWARE.
|
|
277
277
|
*
|
|
278
|
-
*/let u=At(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M5 12h14"}]];Ra(i,Ot({name:"minus"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=qe(),g=je(p);Rt(g,()=>n.children??gt),j(d,p)},$$slots:{default:!0}})),Ye()}var Q1=ee('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function J1(i,n){Be(n,!0);let u=w(n,"ref",15,null),l=w(n,"checked",15,!1),d=w(n,"indeterminate",15,!1),m=At(n,["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]);var p=qe(),g=je(p);{const v=(y,_)=>{let h=()=>_?.().checked,S=()=>_?.().indeterminate;var x=Q1(),T=Z(x);{var P=ie=>{W1(ie,{class:"size-3.5"})},J=ie=>{var G=qe(),V=je(G);{var W=q=>{G1(q,{class:"size-3.5"})};se(V,q=>{S()&&q(W)},!0)}j(ie,G)};se(T,ie=>{h()?ie(P):ie(J,!1)})}D(x),j(y,x)};let b=ct(()=>xr("border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n.class));Oa(g,()=>u1,(y,_)=>{_(y,Ot({"data-slot":"checkbox",get class(){return c(b)}},()=>m,{get ref(){return u()},set ref(h){u(h)},get checked(){return l()},set checked(h){l(h)},get indeterminate(){return d()},set indeterminate(h){d(h)},children:v,$$slots:{default:!0}}))})}j(i,p),Ye()}var V1=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),B1=ee('<span class="text-destructive ml-1">*</span>'),Y1=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),K1=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),H1=ee('<div class="flex items-center gap-2 text-sm text-amber-600 bg-amber-50 dark:bg-amber-950/30 dark:text-amber-500 px-3 py-2 rounded-md border border-amber-200 dark:border-amber-900"><span class="font-medium"> </span></div>'),X1=ee('<div class="flex items-center space-x-3"><!> <label> </label></div>'),ez=ee('<div class="flex flex-col gap-3"></div>'),tz=(i,n,u)=>n(c(u).value),rz=ee('<button type="button"> </button>'),nz=ee('<div class="flex flex-wrap gap-2"></div>'),iz=zn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),oz=ee('<span class="flex-1"> </span> <!>',1),az=ee('<div class="flex flex-col gap-2 w-full"></div>'),sz=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <!> <!></div>');function uz(i,n){Be(n,!1);const u=X(),{updateQuestionResponse:l,setQuestionError:d}=mn();let m=w(n,"question",8),p=w(n,"value",24,()=>[]),g=w(n,"onChange",8),v=w(n,"error",8,void 0),b=w(n,"currentMode",8,void 0),y=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let _=X(p()||[]),h=X(v()),S=X(void 0),x=!1,T=X(!1);jn(()=>{setTimeout(()=>{const E=P(c(_));$(h,E),E&&d(m().id,E),x=!0},0)});function P(E){if(m().required&&(!E||E.length===0))return m().errorMessage;const L=m().maxSelections;if(L!==void 0&&E.length>L)return m().errorMessage;const F=m().minSelections;if(F!==void 0&&E.length>0&&E.length<F)return m().errorMessage}function J(E){if(!x)return;$(T,!0);const L=[...c(_)];if(L.includes(E)){const F=L.filter(Ce=>Ce!==E);$(_,F),g()(F),$(S,void 0);const ae=P(F);$(h,ae),l(m().id,F,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,ae)}else{const F=m().maxSelections;if(F!==void 0&&L.length>=F){const ae=m().errorMessage;$(S,ae),l(m().id,L,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,void 0)}else{const ae=[...L,E];$(_,ae),g()(ae),$(S,void 0);const Ce=P(ae);$(h,Ce),l(m().id,ae,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,Ce)}}}be(()=>z(b()),()=>{$(u,b()==="dark")}),be(()=>(z(p()),c(T)),()=>{p()!==void 0&&!c(T)&&$(_,p())}),be(()=>z(v()),()=>{v()!==void 0&&$(h,v())}),dr(),er();var ie=sz(),G=Z(ie),V=Z(G);{var W=E=>{var L=V1(),F=Z(L);D(L),Ie(()=>Te(F,`${y()??""}.`)),j(E,L)};se(V,E=>{y()!==void 0&&E(W)})}var q=pe(V,2),Q=Z(q),Y=Z(Q),$e=pe(Y);{var Oe=E=>{var L=B1();j(E,L)};se($e,E=>{z(m()),C(()=>m().required)&&E(Oe)})}D(Q);var ke=pe(Q,2);{var de=E=>{var L=Y1(),F=Z(L,!0);D(L),Ie(()=>Te(F,(z(m()),C(()=>m().description)))),j(E,L)};se(ke,E=>{z(m()),C(()=>m().description)&&E(de)})}D(q),D(G);var ze=pe(G,2);{var fe=E=>{var L=K1(),F=Z(L),ae=Z(F,!0);D(F),D(L),Ie(()=>Te(ae,c(h))),j(E,L)};se(ze,E=>{c(h)&&E(fe)})}var ne=pe(ze,2);{var te=E=>{var L=H1(),F=Z(L),ae=Z(F,!0);D(F),D(L),Ie(()=>Te(ae,c(S))),j(E,L)};se(ne,E=>{c(S)&&E(te)})}var N=pe(ne,2);{var U=E=>{var L=ez();pr(L,5,()=>(z(m()),C(()=>m().options)),kr,(F,ae)=>{const Ce=Le(()=>(c(_),c(ae),C(()=>c(_).includes(c(ae).value)))),ce=Le(()=>(z(m()),c(_),z(c(Ce)),C(()=>m().maxSelections!==void 0&&c(_).length>=m().maxSelections&&!c(Ce))));var oe=X1(),ge=Z(oe);{let Fe=Le(()=>(z(m()),c(ae),C(()=>`${m().id}-${c(ae).value}`))),tt=Le(()=>(c(_),c(ae),C(()=>c(_).includes(c(ae).value))));J1(ge,{get id(){return c(Fe)},get checked(){return c(tt)},onCheckedChange:()=>J(c(ae).value),get disabled(){return c(ce)},class:"h-5 w-5 rounded border-2 cursor-pointer transition-all data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=unchecked]:border-input data-[state=unchecked]:bg-background data-[state=checked]:text-primary-foreground disabled:opacity-50 disabled:cursor-not-allowed"})}var Se=pe(ge,2),xe=Z(Se,!0);D(Se),D(oe),Ie(()=>{oi(Se,"for",(z(m()),c(ae),C(()=>`${m().id}-${c(ae).value}`))),dn(Se,1,`text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none ${c(ce)?"opacity-50 cursor-not-allowed":""}`),Te(xe,(c(ae),C(()=>c(ae).label)))}),j(F,oe)}),D(L),j(E,L)},A=E=>{var L=qe(),F=je(L);{var ae=ce=>{var oe=nz();pr(oe,5,()=>(z(m()),C(()=>m().options)),kr,(ge,Se)=>{const xe=Le(()=>(c(_),c(Se),C(()=>c(_).includes(c(Se).value)))),Fe=Le(()=>(z(m()),c(_),z(c(xe)),C(()=>m().maxSelections!==void 0&&c(_).length>=m().maxSelections&&!c(xe))));var tt=rz();tt.__click=[tz,J,Se];var st=Z(tt,!0);D(tt),Ie(()=>{tt.disabled=c(Fe),dn(tt,1,`rounded-full px-4 py-2 text-sm font-medium transition-all border-2 ${c(xe)?"bg-primary text-primary-foreground border-primary hover:bg-primary/90 shadow-md dark:shadow-primary/20":"bg-card text-card-foreground border-border hover:bg-accent hover:text-accent-foreground hover:border-primary/50"} ${c(Fe)?"opacity-50 cursor-not-allowed":"hover:scale-105 cursor-pointer"}`),Te(st,(c(Se),C(()=>c(Se).label)))}),j(ge,tt)}),D(oe),j(ce,oe)},Ce=ce=>{var oe=qe(),ge=je(oe);{var Se=xe=>{var Fe=az();pr(Fe,5,()=>(z(m()),C(()=>m().options)),kr,(tt,st)=>{const Ge=Le(()=>(c(_),c(st),C(()=>c(_).includes(c(st).value)))),it=Le(()=>(z(m()),c(_),z(c(Ge)),C(()=>m().maxSelections!==void 0&&c(_).length>=m().maxSelections&&!c(Ge))));{let vt=Le(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${c(Ge)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:border-primary/90 dark:bg-primary dark:hover:bg-primary":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"} ${c(it)?"opacity-50 cursor-not-allowed":""}`);qt(tt,{type:"button",variant:"outline",get disabled(){return c(it)},get class(){return c(vt)},onclick:()=>J(c(st).value),onkeydown:Me=>Me.key==="Enter"&&J(c(st).value),children:(Me,Ct)=>{var Pt=oz(),Gt=je(Pt),Qt=Z(Gt,!0);D(Gt);var It=pe(Gt,2);{var wt=_t=>{var Sr=iz();j(_t,Sr)};se(It,_t=>{c(Ge)&&_t(wt)})}Ie(()=>Te(Qt,(c(st),C(()=>c(st).label)))),j(Me,Pt)},$$slots:{default:!0}})}}),D(Fe),j(xe,Fe)};se(ge,xe=>{z(m()),C(()=>m().displayStyle==="list")&&xe(Se)},!0)}j(ce,oe)};se(F,ce=>{z(m()),C(()=>m().displayStyle==="chip")?ce(ae):ce(Ce,!1)},!0)}j(E,L)};se(N,E=>{z(m()),C(()=>m().displayStyle==="checkbox"||!m().displayStyle)?E(U):E(A,!1)})}D(ie),Ie(()=>Te(Y,`${z(m()),C(()=>m().title)??""} `)),j(i,ie),Ye()}wl(["click"]);function lz(i,n,u,l,d,m,p,g,v){c(n)||$(n,!0),$(u,!1),$(l,void 0),d()(void 0);const b=m(void 0);$(p,b),g(v().id,void 0,s.QuestionTypes.ANNOTATION,b)}var cz=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),dz=ee('<span class="text-destructive ml-1">*</span>'),fz=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),mz=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),pz=ee('<div class="group relative border-2 border-dashed border-border hover:border-primary/50 rounded-xl bg-muted/30 hover:bg-muted/50 transition-all cursor-pointer overflow-hidden"><div class="flex items-center justify-center gap-3 px-6 py-8"><div class="w-12 h-12 rounded-full bg-background shadow-sm flex items-center justify-center group-hover:scale-110 transition-transform"><!></div> <div class="flex flex-col"><span class="text-sm font-semibold text-foreground"> </span> <span class="text-xs text-muted-foreground">Click to add annotation</span></div></div></div>'),gz=ee('<div class="relative border-2 border-primary/20 rounded-xl bg-primary/5 overflow-hidden shadow-sm hover:shadow-md transition-all"><div class="flex items-center justify-between gap-3 px-6 py-4"><div class="flex items-center gap-3 flex-1 min-w-0"><div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0"><!></div> <div class="flex flex-col flex-1 min-w-0"><span class="text-sm font-semibold text-foreground truncate"> </span> <span class="text-xs text-muted-foreground">Annotation added</span></div></div> <button class="w-8 h-8 rounded-full bg-destructive/10 hover:bg-destructive/20 text-destructive flex items-center justify-center transition-colors flex-shrink-0" type="button" aria-label="Remove annotation"><!></button></div></div>'),vz=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><div class="text-lg font-semibold text-foreground leading-tight"> <!></div> <!></div></div> <!> <div class="w-full"><!> <!></div></div>');function hz(i,n){Be(n,!1);const u=X(),{updateQuestionResponse:l,setQuestionError:d,formResponses:m}=mn();let p=w(n,"question",8),g=w(n,"value",8,void 0),v=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),_=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let h=X(!1),S=X(void 0),x=X(b()),T=X(!1);jn(()=>{const A=$o(m).questions.find(E=>E.questionId===p().id);if(A?.answer&&"annotation"in A.answer){const E=A.answer.annotation;$(S,E),$(h,!0),typeof E=="object"&&E!==null&&v()(E)}setTimeout(()=>{const E=c(S),L=P(E);$(x,L),L&&d(p().id,L)},0)});function P(A){let E="";if(typeof A=="string"?E=A:A&&typeof A=="object"&&(E="has_annotation_data"),p().required&&(!E||E.trim()===""))return p().errorMessage??"This field is required"}be(()=>z(y()),()=>{$(u,y()==="dark")}),be(()=>(z(g()),z(v())),()=>{if(g()!==void 0){if(typeof g()=="string"){const A=g().trim()!=="";$(h,A),$(S,g())}else if(typeof g()=="object"&&g()!==null&&"annotation"in g()){const A=g().annotation;$(h,!0),$(S,A),v()(A)}}else $(S,void 0),$(h,!1)}),be(()=>z(b()),()=>{b()!==void 0&&$(x,b())}),dr(),er();var J=vz(),ie=Z(J),G=Z(ie);{var V=A=>{var E=cz(),L=Z(E);D(E),Ie(()=>Te(L,`${_()??""}.`)),j(A,E)};se(G,A=>{_()!==void 0&&A(V)})}var W=pe(G,2),q=Z(W),Q=Z(q),Y=pe(Q);{var $e=A=>{var E=dz();j(A,E)};se(Y,A=>{z(p()),C(()=>p().required)&&A($e)})}D(q);var Oe=pe(q,2);{var ke=A=>{var E=fz(),L=Z(E,!0);D(E),Ie(()=>Te(L,(z(p()),C(()=>p().description)))),j(A,E)};se(Oe,A=>{z(p()),C(()=>p().description)&&A(ke)})}D(W),D(ie);var de=pe(ie,2);{var ze=A=>{var E=mz(),L=pe(Z(E),2),F=Z(L,!0);D(L),D(E),Ie(()=>Te(F,c(x))),j(A,E)};se(de,A=>{c(x)&&c(T)&&A(ze)})}var fe=pe(de,2),ne=Z(fe);{var te=A=>{var E=pz(),L=Z(E),F=Z(L),ae=Z(F);Ah(ae,{size:24,class:"text-muted-foreground group-hover:text-primary transition-colors"}),D(F);var Ce=pe(F,2),ce=Z(Ce),oe=Z(ce,!0);D(ce),wr(2),D(Ce),D(L),D(E),Ie(()=>Te(oe,(z(p()),C(()=>p().noAnnotationText??"No Annotation")))),j(A,E)};se(ne,A=>{c(h)||A(te)})}var N=pe(ne,2);{var U=A=>{var E=gz(),L=Z(E),F=Z(L),ae=Z(F),Ce=Z(ae);Ah(Ce,{size:20,class:"text-primary"}),D(ae);var ce=pe(ae,2),oe=Z(ce),ge=Z(oe,!0);D(oe),wr(2),D(ce),D(F);var Se=pe(F,2);Se.__click=[lz,T,h,S,v,P,x,l,p];var xe=Z(Se);Rh(xe,{size:16}),D(Se),D(L),D(E),Ie(()=>Te(ge,(z(p()),C(()=>p().annotationText??"Annotation")))),j(A,E)};se(N,A=>{c(h)&&A(U)})}D(fe),D(J),Ie(()=>Te(Q,`${z(p()),C(()=>p().title)??""} `)),j(i,J),Ye()}wl(["click"]);var bz=ee('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),yz=ee('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function $z(i,n){Be(n,!1);const u=X(),l=X();let d=w(n,"welcomeScreenProperties",8);w(n,"onStart",8,void 0);let m=w(n,"currentMode",8,void 0),p=w(n,"currentLanguage",8,void 0);w(n,"themeSettings",8,void 0),be(()=>z(m()),()=>{$(u,m()==="dark")}),be(()=>(z(d()),z(p())),()=>{$(l,d().translations&&p()&&d().translations[p()]?d().translations[p()]:d().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),dr(),er();var g=yz(),v=Z(g),b=Z(v,!0);D(v);var y=pe(v,2);{var _=h=>{var S=bz(),x=Z(S,!0);D(S),Ie(()=>Te(x,(c(l),C(()=>c(l).description)))),j(h,S)};se(y,h=>{c(l),C(()=>c(l).description)&&h(_)})}D(g),Ie(()=>Te(b,(c(l),C(()=>c(l).title)))),j(i,g),Ye()}var wz=ee('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),_z=ee('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function kz(i,n){Be(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X();let g=w(n,"endScreenProperties",8),v=w(n,"onExit",8,void 0),b=w(n,"currentMode",8,void 0),y=w(n,"currentLanguage",8,void 0);w(n,"themeSettings",8,void 0);let _=w(n,"isScreenVisible",8,void 0),h=X(null);go(()=>{c(h)!==null&&clearTimeout(c(h))}),be(()=>z(b()),()=>{$(u,b()==="dark")}),be(()=>(z(g()),z(y())),()=>{$(l,g().translations&&y()&&g().translations[y()]?g().translations[y()]:g().endFields??{title:"Thank you for participating!",message:"Your feedback is important to us.",buttonLabel:"Exit",dismissBehavior:"close",fadeDuration:300})}),be(()=>z(_()),()=>{$(d,_()===!0)}),be(()=>z(g()),()=>{$(m,g().endFields?.dismissBehavior)}),be(()=>z(g()),()=>{$(p,g().endFields?.fadeDuration||0)}),be(()=>(c(h),c(d),c(m),z(v()),c(p)),()=>{c(h)!==null&&(clearTimeout(c(h)),$(h,null)),c(d)&&c(m)==="fade"&&typeof v()=="function"&&c(p)>0&&$(h,setTimeout(()=>{v()?.()},c(p)*1e3))}),dr(),er();var S=_z(),x=Z(S),T=Z(x,!0);D(x);var P=pe(x,2);{var J=ie=>{var G=wz(),V=Z(G,!0);D(G),Ie(()=>Te(V,(c(l),C(()=>c(l).message)))),j(ie,G)};se(P,ie=>{c(l),C(()=>c(l).message)&&ie(J)})}D(S),Ie(()=>Te(T,(c(l),C(()=>c(l).title)))),j(i,S),Ye()}var xz=ee("<h2> </h2>"),Sz=ee('<div class="question-wrapper"><div class="question-container"><!></div></div>'),Iz=ee("<!> <!>",1),zz=ee('<div id="section-container"><!> <!> <!></div>');function Nz(i,n){Be(n,!1);const u=X(),l=X(),{storeQuestions:d,getQuestionData:m}=mn();let p=w(n,"questions",8),g=w(n,"sections",8),v=w(n,"formData",8),b=w(n,"errors",8),y=w(n,"onChange",8),_=w(n,"currentMode",8,void 0),h=w(n,"welcomeScreenProperties",8),S=w(n,"otherConfigurationProperties",8),x=w(n,"currentSectionIndex",8),T=w(n,"endScreenProperties",8,void 0),P=w(n,"currentLanguage",8,void 0),J=w(n,"themeSettings",8),ie=w(n,"onClose",8,void 0),G=w(n,"isScreenVisible",8,void 0),V=w(n,"apiKey",8,void 0),W=w(n,"hostUrl",8,void 0),q=w(n,"identifier",8,void 0),Q=w(n,"feedbackConfigurationId",8,void 0);function Y(N){return c(u).get(N)??-1}function $e(N){switch(N){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return[];case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return-1;case s.QuestionTypes.SHORT_ANSWER:case s.QuestionTypes.LONG_TEXT:case s.QuestionTypes.SINGLE_CHOICE:return"";default:return}}function Oe(N){return Array.isArray(N)?N:typeof N=="object"&&N!==null?Object.values(N).filter(U=>U!==void 0):typeof N=="string"?[N]:[]}function ke(N){return typeof N=="number"?N:typeof N=="string"?Number(N):0}function de(N){return typeof N=="string"?N:String(typeof N=="object"&&N!==null?Object.values(N)[0]||"":N||"")}function ze(N,U){if(N==null){const A=$e(U);return A!==void 0?A:N}switch(U){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return Oe(N);case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return ke(N);case s.QuestionTypes.SINGLE_CHOICE:return de(N);default:return N}}be(()=>z(p()),()=>{p()&&Object.keys(p()).length>0&&d(p())}),be(()=>z(g()),()=>{$(u,(()=>{const N=new Map;let U=0;return g().forEach(A=>{A.id!=="welcome_screen"&&A.id!=="thankyou_screen"&&A.questionIds.forEach(E=>{N.set(E,U++)})}),N})())}),be(()=>(z(g()),z(x())),()=>{$(l,g()[x()])}),dr(),er();var fe=qe(),ne=je(fe);{var te=N=>{var U=qe(),A=je(U);pr(A,1,()=>(z(g()),z(x()),C(()=>[g()[x()]])),E=>E.id,(E,L)=>{var F=zz(),ae=Z(F);{var Ce=xe=>{$z(xe,{get welcomeScreenProperties(){return h()},get currentMode(){return _()},get currentLanguage(){return P()},get themeSettings(){return J()}})};se(ae,xe=>{c(L),C(()=>c(L).id==="welcome_screen")&&xe(Ce)})}var ce=pe(ae,2);{var oe=xe=>{{let Fe=Le(()=>T()?T():{});kz(xe,{get endScreenProperties(){return c(Fe)},get onExit(){return ie()},get currentMode(){return _()},get currentLanguage(){return P()},get themeSettings(){return J()},get isScreenVisible(){return G()}})}};se(ce,xe=>{c(L),C(()=>c(L).id==="thankyou_screen")&&xe(oe)})}var ge=pe(ce,2);{var Se=xe=>{var Fe=Iz(),tt=je(Fe);{var st=it=>{var vt=xz(),Me=Z(vt,!0);D(vt),Ie(()=>{dn(vt,1,`section-title ${_()==="dark"?"dark-mode":""}`),Te(Me,(c(L),C(()=>c(L).title)))}),j(it,vt)};se(tt,it=>{z(S()),C(()=>S().isEnabled&&S().otherFields.pageTitle)&&it(st)})}var Ge=pe(tt,2);pr(Ge,1,()=>(c(L),C(()=>c(L).questionIds)),kr,(it,vt)=>{const Me=Le(()=>(c(vt),C(()=>m(c(vt)))));var Ct=qe(),Pt=je(Ct);{var Gt=Qt=>{const It=Le(()=>(z(S()),C(()=>S()?.isEnabled&&S().otherFields.questionNumber))),wt=Le(()=>(z(c(Me)),C(()=>Y(c(Me).id)))),_t=Le(()=>(z(c(Me)),z(v()),z(y()),z(b()),z(_()),z(P()),z(J()),z(c(It)),z(c(wt)),C(()=>({question:c(Me),value:ze(v()[c(Me).id],c(Me).type),onChange:we=>y()(c(Me).id,we,c(Me).type),error:b()[c(Me).id],currentMode:_(),currentLanguage:P(),themeSettings:J(),questionNumber:c(It)?c(wt)+1:void 0}))));var Sr=Sz(),Dr=Z(Sr),le=Z(Dr);{var I=we=>{iS(we,Ot(()=>c(_t),{get question(){return c(Me)}}))},re=we=>{var Ae=qe(),Ze=je(Ae);{var ht=tr=>{NS(tr,Ot(()=>c(_t),{get question(){return c(Me)}}))},sr=tr=>{var Jt=qe(),or=je(Jt);{var Vr=Ke=>{qS(Ke,Ot(()=>c(_t),{get question(){return c(Me)},get apiKey(){return V()},get hostUrl(){return W()},get identifier(){return q()},get feedbackConfigurationId(){return Q()},get otherConfigurationProperties(){return S()}}))},Io=Ke=>{var ft=qe(),Mt=je(ft);{var kt=vr=>{nI(vr,Ot(()=>c(_t),{get question(){return c(Me)},get apiKey(){return V()},get hostUrl(){return W()},get identifier(){return q()},get feedbackConfigurationId(){return Q()},get otherConfigurationProperties(){return S()}}))},Ir=vr=>{var rr=qe(),zt=je(rr);{var vn=Ti=>{P1(Ti,Ot(()=>c(_t),{get question(){return c(Me)}}))},Xz=Ti=>{var Eb=qe(),e4=je(Eb);{var t4=Oi=>{F1(Oi,Ot(()=>c(_t),{get question(){return c(Me)}}))},r4=Oi=>{var Pb=qe(),n4=je(Pb);{var i4=Ei=>{uz(Ei,Ot(()=>c(_t),{get question(){return c(Me)}}))},o4=Ei=>{var Cb=qe(),a4=je(Cb);{var s4=ic=>{hz(ic,Ot(()=>c(_t),{get question(){return c(Me)}}))};se(a4,ic=>{z(c(Me)),z(s.QuestionTypes),C(()=>c(Me).type===s.QuestionTypes.ANNOTATION)&&ic(s4)},!0)}j(Ei,Cb)};se(n4,Ei=>{z(c(Me)),z(s.QuestionTypes),C(()=>c(Me).type===s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE)?Ei(i4):Ei(o4,!1)},!0)}j(Oi,Pb)};se(e4,Oi=>{z(c(Me)),z(s.QuestionTypes),C(()=>c(Me).type===s.QuestionTypes.RATING)?Oi(t4):Oi(r4,!1)},!0)}j(Ti,Eb)};se(zt,Ti=>{z(c(Me)),z(s.QuestionTypes),C(()=>c(Me).type===s.QuestionTypes.SINGLE_CHOICE)?Ti(vn):Ti(Xz,!1)},!0)}j(vr,rr)};se(Mt,vr=>{z(c(Me)),z(s.QuestionTypes),C(()=>c(Me).type===s.QuestionTypes.SHORT_ANSWER)?vr(kt):vr(Ir,!1)},!0)}j(Ke,ft)};se(or,Ke=>{z(c(Me)),z(s.QuestionTypes),C(()=>c(Me).type===s.QuestionTypes.LONG_TEXT)?Ke(Vr):Ke(Io,!1)},!0)}j(tr,Jt)};se(Ze,tr=>{z(c(Me)),z(s.QuestionTypes),C(()=>c(Me).type===s.QuestionTypes.NESTED_SELECTION)?tr(ht):tr(sr,!1)},!0)}j(we,Ae)};se(le,we=>{z(c(Me)),z(s.QuestionTypes),C(()=>c(Me).type===s.QuestionTypes.NPS)?we(I):we(re,!1)})}D(Dr),D(Sr),j(Qt,Sr)};se(Pt,Qt=>{c(Me)&&Qt(Gt)})}j(it,Ct)}),j(xe,Fe)};se(ge,xe=>{c(L),C(()=>c(L).id!=="welcome_screen"&&c(L).id!=="thankyou_screen")&&xe(Se)})}D(F),j(E,F)}),j(N,U)};se(ne,N=>{z(x()),z(g()),C(()=>x()<g().length&&g().length>0)&&N(te)})}j(i,fe),Ye()}var jz=ee('<div class="flex justify-center"><!></div>'),Tz=ee('<div class="flex justify-center"><!></div>'),Oz=ee('<div class="flex-1"></div>'),Ez=zn('<svg class="w-5 h-5 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),Pz=ee('<div class="flex items-center justify-between gap-3"><!> <!></div>'),Cz=ee('<div class="w-full py-6 px-4 bg-primary-foreground"><!></div>');function Mz(i,n){Be(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X(),g=X(),{hasValidationErrors:v,clearValidationErrors:b}=mn();let y=w(n,"isWelcomeScreen",8),_=w(n,"isThankYouScreen",8),h=w(n,"isFirstSection",8),S=w(n,"isFirstPageAfterWelcome",8,!1),x=w(n,"isLastSection",8),T=w(n,"welcomeScreenProperties",8),P=w(n,"endScreenProperties",8,void 0),J=w(n,"otherConfigurationProperties",8),ie=w(n,"currentMode",8),G=w(n,"currentLanguage",8),V=w(n,"handlePrevious",8),W=w(n,"handleNext",8),q=w(n,"handleSubmit",8),Q=w(n,"onClose",8,void 0);w(n,"themeSettings",8);let Y=w(n,"nextButtonDisabled",8,!1),$e=w(n,"submitButtonDisabled",8,!1),Oe=w(n,"isSinglePageSurvey",8,!1),ke=X(!1);const de=()=>{Q()&&Q()()},ze=()=>{if(!_()&&!P()?.isEnabled){$(ke,!0),window.setTimeout(()=>{$(ke,!1),Q()&&Q()()},3e3);try{q()()}catch(E){console.error("Error during form submission:",E)}}else q()()},fe=()=>{b(),V()()},ne=()=>{W()()};be(()=>(z(J()),z(G())),()=>{$(u,(()=>{const E={previousButtonLabel:"Previous",nextButtonLabel:"Next",submitButtonLabel:"Submit"};return J().isEnabled?J().translations&&G()&&J().translations[G()]?J().translations[G()]:J().otherFields??E:E})())}),be(()=>(z(T()),z(G())),()=>{$(l,T().translations&&G()&&T().translations[G()]?T().translations[G()]:T().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),be(()=>(z(P()),z(G())),()=>{$(d,P()?.translations&&G()&&P().translations[G()]?P().translations[G()]:P()?.endFields??{buttonLabel:"Exit",dismissBehavior:"close"})}),be(()=>z(ie()),()=>{$(m,ie()==="dark")}),be(()=>z(Y()),()=>{$(p,v()||Y())}),be(()=>z($e()),()=>{$(g,v()||$e())}),dr(),er();var te=Cz(),N=Z(te);{var U=E=>{var L=jz(),F=Z(L);qt(F,{onclick:ne,size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(ae,Ce)=>{wr();var ce=Nn();Ie(()=>Te(ce,(c(l),C(()=>c(l).buttonLabel)))),j(ae,ce)},$$slots:{default:!0}}),D(L),j(E,L)},A=E=>{var L=qe(),F=je(L);{var ae=ce=>{var oe=Tz(),ge=Z(oe);qt(ge,{onclick:()=>de(),size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(Se,xe)=>{wr();var Fe=Nn();Ie(()=>Te(Fe,(c(d),C(()=>c(d).buttonLabel)))),j(Se,Fe)},$$slots:{default:!0}}),D(oe),j(ce,oe)},Ce=ce=>{var oe=Pz(),ge=Z(oe);{var Se=Ge=>{{let it=Le(()=>h()||S());qt(Ge,{onclick:()=>fe(),get disabled(){return c(it)},variant:"outline",size:"lg",class:"px-6 py-5 text-sm text-secondary-foreground min-w-[140px] font-semibold rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(vt,Me)=>{wr();var Ct=Nn();Ie(()=>Te(Ct,(c(u),C(()=>c(u).previousButtonLabel)))),j(vt,Ct)},$$slots:{default:!0}})}},xe=Ge=>{var it=Oz();j(Ge,it)};se(ge,Ge=>{Oe()?Ge(xe,!1):Ge(Se)})}var Fe=pe(ge,2);{var tt=Ge=>{{let it=Le(()=>c(g)||c(ke)),vt=Le(()=>Oe()?"mx-auto":"");qt(Ge,{onclick:()=>ze(),get disabled(){return c(it)},size:"lg",get class(){return`px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed ${c(vt)??""}`},children:(Me,Ct)=>{var Pt=qe(),Gt=je(Pt);{var Qt=wt=>{var _t=Ez();j(wt,_t)},It=wt=>{var _t=Nn();Ie(()=>Te(_t,(c(u),C(()=>c(u).submitButtonLabel)))),j(wt,_t)};se(Gt,wt=>{c(ke)?wt(Qt):wt(It,!1)})}j(Me,Pt)},$$slots:{default:!0}})}},st=Ge=>{var it=qe(),vt=je(it);{var Me=Ct=>{qt(Ct,{onclick:ne,get disabled(){return c(p)},size:"lg",class:"px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(Pt,Gt)=>{wr();var Qt=Nn();Ie(()=>Te(Qt,(c(u),C(()=>c(u).nextButtonLabel)))),j(Pt,Qt)},$$slots:{default:!0}})};se(vt,Ct=>{Oe()||Ct(Me)},!0)}j(Ge,it)};se(Fe,Ge=>{x()?Ge(tt):Ge(st,!1)})}D(oe),j(ce,oe)};se(F,ce=>{_()?ce(ae):ce(Ce,!1)},!0)}j(E,L)};se(N,E=>{y()?E(U):E(A,!1)})}D(te),j(i,te),Ye()}var Dz=ee('<div data-slot="progress-indicator" class="bg-primary h-full w-full flex-1 transition-all"></div>');function Uz(i,n){Be(n,!0);let u=w(n,"ref",15,null),l=w(n,"max",3,100),d=At(n,["$$slots","$$events","$$legacy","ref","class","max","value"]);var m=qe(),p=je(m);{let g=ct(()=>xr("bg-primary/20 relative w-full overflow-hidden rounded-full",n.class));Oa(p,()=>f1,(v,b)=>{b(v,Ot({"data-slot":"progress",get class(){return c(g)},get value(){return n.value},get max(){return l()}},()=>d,{get ref(){return u()},set ref(y){u(y)},children:(y,_)=>{var h=Dz();Ie(()=>ho(h,`transform: translateX(-${100-100*(n.value??0)/(l()??1)}%)`)),j(y,h)},$$slots:{default:!0}}))})}j(i,m),Ye()}const Lz="encatch-forms",En="form-responses",Az=1;async function rc(){return new Promise((i,n)=>{if(typeof window>"u"||!window.indexedDB){n(new Error("IndexedDB is not available in this environment"));return}const u=indexedDB.open(Lz,Az);u.onerror=()=>{console.error("[IndexedDB] Error opening database:",u.error),n(u.error)},u.onsuccess=()=>{i(u.result)},u.onupgradeneeded=l=>{const d=l.target.result;d.objectStoreNames.contains(En)||d.createObjectStore(En,{keyPath:"id"})}})}async function Zz(i,n){try{const u=await rc();return new Promise((l,d)=>{const m=u.transaction([En],"readwrite"),p=m.objectStore(En),g={id:i,responses:n,timestamp:Date.now()},v=p.put(g);v.onsuccess=()=>{l()},v.onerror=()=>{console.error("[IndexedDB] Error saving data:",v.error),d(v.error)},m.oncomplete=()=>{u.close()}})}catch(u){throw console.error("[IndexedDB] Error in saveFormData:",u),u}}async function Rz(i){try{const n=await rc();return new Promise((u,l)=>{const d=n.transaction([En],"readonly"),m=d.objectStore(En).get(i);m.onsuccess=()=>{const p=m.result;p&&p.responses?u(p.responses):u(null)},m.onerror=()=>{console.error("[IndexedDB] Error loading data:",m.error),l(m.error)},d.oncomplete=()=>{n.close()}})}catch(n){throw console.error("[IndexedDB] Error in loadFormData:",n),n}}async function Nb(i){try{const n=await rc();return new Promise((u,l)=>{const d=n.transaction([En],"readwrite"),m=d.objectStore(En).delete(i);m.onsuccess=()=>{u()},m.onerror=()=>{console.error("[IndexedDB] Error clearing data:",m.error),l(m.error)},d.oncomplete=()=>{n.close()}})}catch(n){throw console.error("[IndexedDB] Error in clearFormData:",n),n}}var qz=ee('<div class="flex items-center justify-center min-h-[400px] bg-primary-foreground"><div class="text-center"><div class="inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary mb-4"></div> <p class="text-sm text-muted-foreground">Loading your previous responses...</p></div></div>'),Fz=ee('<div class="flex-shrink-0" style="height: 3px; min-height: 3px; max-height: 3px;"><!></div>'),Wz=ee('<div class="bg-primary-foreground flex items-center justify-center py-2"><img alt="encatch Logo" class="mr-2 h-5 w-5"/> <p class="m-0 text-xs font-medium text-muted-foreground">Powered by encatch</p></div>'),Gz=ee('<!> <div class="form-content-container custom-scrollbar bg-primary-foreground"><!></div> <!> <!>',1),Qz=ee('<div id="encatch-form-id"><!></div>');function nc(i,n){Be(n,!1);const u=()=>J0(T,"$formResponses",l),[l,d]=V0(),m=X(),p=X(),g=X(),v=X(),b=X(),y=X(),_=X(),h=X(),S=X(),x=X(),{formResponses:T,updateQuestionResponse:P,bulkUpdateResponses:J}=mn();let ie=w(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),G=w(n,"currentMode",12,"light"),V=w(n,"currentLanguage",28,()=>({value:"en",label:"en"})),W=w(n,"questions",28,()=>({})),q=w(n,"questionLanguages",28,()=>[]),Q=w(n,"otherConfigurationProperties",12,null),Y=w(n,"welcomeScreenProperties",12,null),$e=w(n,"endScreenProperties",12,null),Oe=w(n,"translations",28,()=>({})),ke=w(n,"sections",24,()=>[]),de=w(n,"themeSettings",12,null),ze=w(n,"onClose",12,void 0),fe=w(n,"onSectionChange",8,void 0),ne=w(n,"apiKey",8,void 0),te=w(n,"hostUrl",8,void 0),N=w(n,"feedbackConfigId",8,void 0),U=w(n,"identifier",8,void 0),A=w(n,"persistMode",8,"none"),E=X(0),L=X(!1),F=X(0),ae=X(!1),Ce=X({}),ce=X((()=>{let le=[...ke()||[]];const I=Y()?.isEnabled??!0,re=$e()?.isEnabled??!0;return I&&le.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),re&&le.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),le})()),oe=X(!1);const ge=()=>{const le=window;return typeof window<"u"&&le.encatchAnnotate!==void 0&&typeof le.encatchAnnotate=="object"&&le.encatchAnnotate!==null&&typeof le.encatchAnnotate.getAnnotation=="function"},Se=()=>{if(ge()){const le=window.encatchAnnotate?.getAnnotation?.();le&&Object.entries(W()).forEach(([I,re])=>{re.type===s.QuestionTypes.ANNOTATION&&P(I,le,s.QuestionTypes.ANNOTATION)})}},xe=(le,I,re,we,Ae="")=>le.map(Ze=>{let ht=Ae?`${Ae}.children.${Ze.id}.label`:`option.${Ze.id}.label`,sr=we[I]?.[re]?.[ht],tr={...Ze};return sr&&(tr.label=sr),Ze.children&&Ze.children.length>0&&(tr.children=xe(Ze.children,I,re,we,Ae?`${Ae}.children.${Ze.id}`:`option.${Ze.id}`)),tr}),Fe=le=>{const I=Oe()||{},re=Object.fromEntries(Object.entries(W()).map(([we,Ae])=>{const Ze=I[we]?.[le]||{};let ht={...Ae};return Ze.title&&(ht.title=Ze.title),Ze.description&&(ht.description=Ze.description),Ze.errorMessage&&(ht.errorMessage=Ze.errorMessage),Ze.placeholder&&(ht.placeholder=Ze.placeholder),Ze.minLabel&&(ht.minLabel=Ze.minLabel),Ze.maxLabel&&(ht.maxLabel=Ze.maxLabel),Ze.annotationText&&(ht.annotationText=Ze.annotationText),Ze.noAnnotationText&&(ht.noAnnotationText=Ze.noAnnotationText),Ae.options&&Array.isArray(Ae.options)&&(ht.options=xe(Ae.options,we,le,I)),[we,ht]}));W(re)},tt=()=>c(ce).reduce((le,I)=>le+I.questionIds.length,0),st=()=>u().questions.filter(le=>{try{if(le.type===s.QuestionTypes.SHORT_ANSWER){if(!le.answer||typeof le.answer!="object")return!1;const I=le.answer.shortAnswer;if(I==null||typeof I=="string"&&I.trim()==="")return!1}if(le.type===s.QuestionTypes.LONG_TEXT){if(!le.answer||typeof le.answer!="object")return!1;const I=le.answer.longText;if(I==null||typeof I=="string"&&I.trim()==="")return!1}return!0}catch(I){return console.error("Error checking answer:",le.questionId,I),!0}}).length,Ge=()=>st()/tt()*100,it=(le,I,re)=>{let we=I;Array.isArray(I)&&(we=[...I]),P(le,we,re),$(Ce,{...c(Ce),[le]:""})},vt=()=>{if(c(F)>0){const le=c(F)-1;$(F,le),fe()?.(le)}},Me=()=>{if(c(F)<c(ce).length-1){const le=c(F)+1;$(F,le),fe()?.(le)}},Ct=()=>{const le=c(ce).findIndex(I=>I.id==="thankyou_screen");if(le!==-1&&($(F,le),fe()?.(le)),$(ae,!0),window.encatch?._internal?.submitFeedback?window.encatch._internal.submitFeedback({response:{questions:u().questions},action:"S",feedbackConfigurationId:N()||"",feedbackIdentifier:U()||"",duration:0}):console.error("window.encatch._internal.submitFeedback is not available"),A()==="retain"&&N()&&U()){const I=`${N()}_${U()}`;Nb(I).then(()=>{}).catch(re=>{console.error("[App] Error clearing saved data after submission:",re)})}},Pt=()=>{ze()?.()},Gt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik00MDQuOCwyMTAuOEMzMDkuMSwyNDEuOSwyMzQsMzE3LjYsMjAzLjIsNDEzLjRjLTYxLjMsMTkwLjEsNDcuOSwzNjguNSwyMTIuNSw0MjBjNS43LDEuOCwxMS42LTIuNSwxMS42LTguNQoJCXYtNjkuN2MwLTMuNi0yLjItNi44LTUuNi04LjJDMzMyLjQsNzEwLjcsMjY5LjMsNjIzLDI2OS4zLDUyMC44YzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45djQ3LjJjMCwxMS4xLDMuOSwyMC42LDE1LDIwLjZsNDUuNi0wLjNoNDEuN3YtMC4yaDM0LjEKCQljNC4yLDAsNy42LTMuNCw3LjYtNy42di0zMy44Qzg0MS4xLDMwNC45LDYzMS40LDEzNy4yLDQwNC44LDIxMC44eiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTI2NSw3MTYuOGwtMTUuNCwxMTYuNmMtMC40LDIuOCwyLjUsNC45LDUsMy43TDM2OCw3ODUuN2MyLjYtMS4yLDIuOC00LjcsMC41LTYuMmwtOTcuOS02NS4yCgkJQzI2OC40LDcxMi44LDI2NS40LDcxNC4xLDI2NSw3MTYuOHoiLz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik02NjYuMyw1NjMuM2gtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY3MC45LDU2MS4yLDY2OC44LDU2My4zLDY2Ni4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTQ0NC4yLDU2My4zaC03Ni41Yy0zLjEsMC01LjUtMi41LTUuNS01LjV2LTc2LjVjMC0zLjEsMi41LTUuNSw1LjUtNS41aDc2LjVjMy4xLDAsNS41LDIuNSw1LjUsNS41djc2LjUKCQlDNDQ5LjcsNTYwLjgsNDQ3LjIsNTYzLjMsNDQ0LjIsNTYzLjN6Ii8+Cgk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNNTU1LjMsNTYzLjNoLTc3LjZjLTIuOCwwLTUtMi4zLTUtNXYtNzcuNmMwLTIuOCwyLjMtNSw1LTVoNzcuNmMyLjgsMCw1LDIuMyw1LDV2NzcuNgoJCUM1NjAuMyw1NjEsNTU4LDU2My4zLDU1NS4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTY4My45LDI1NC45Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZjNjIuNS0xMDEuNiwxODcuNy0xNDEuNCwyOTUuMS0xMDAuMSIvPgo8L2c+Cjwvc3ZnPgo=",Qt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zODEuOSwxOTkuNmMtOTUuNywzMS4xLTE3MC44LDEwNi44LTIwMS43LDIwMi42Yy02MS4zLDE5MC4xLDQ3LjksMzY4LjUsMjEyLjUsNDIwYzUuNywxLjgsMTEuNi0yLjUsMTEuNi04LjUKCQlWNzQ0YzAtMy42LTIuMi02LjgtNS42LTguMmMtODkuMy0zNi4zLTE1Mi40LTEyNC4xLTE1Mi40LTIyNi4yYzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45VjUzMWMwLDExLjEsMy45LDIwLjYsMTUsMjAuNmw0NS42LTAuM2g0MS43di0wLjJoMzQuMQoJCWM0LjIsMCw3LjYtMy40LDcuNi03LjZ2LTMzLjhDODE4LjIsMjkzLjcsNjA4LjUsMTI2LDM4MS45LDE5OS42eiIvPgoJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI0Mi4xLDcwNS42bC0xNS40LDExNi42Yy0wLjQsMi44LDIuNSw0LjksNSwzLjdMMzQ1LDc3NC41YzIuNi0xLjIsMi44LTQuNywwLjUtNi4yTDI0Ny42LDcwMwoJCUMyNDUuNCw3MDEuNiwyNDIuNCw3MDIuOSwyNDIuMSw3MDUuNnoiLz4KCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02NDMuNCw1NTIuMWgtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY0Ny45LDU1MCw2NDUuOSw1NTIuMSw2NDMuNCw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik00MjEuMiw1NTIuMWgtNzYuNWMtMy4xLDAtNS41LTIuNS01LjUtNS41VjQ3MGMwLTMuMSwyLjUtNS41LDUuNS01LjVoNzYuNWMzLjEsMCw1LjUsMi41LDUuNSw1LjV2NzYuNQoJCUM0MjYuOCw1NDkuNiw0MjQuMyw1NTIuMSw0MjEuMiw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDQiIGQ9Ik01MzIuMyw1NTIuMWgtNzcuNmMtMi44LDAtNS0yLjMtNS01di03Ny42YzAtMi44LDIuMy01LDUtNWg3Ny42YzIuOCwwLDUsMi4zLDUsNVY1NDcKCQlDNTM3LjQsNTQ5LjgsNTM1LjEsNTUyLjEsNTMyLjMsNTUyLjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjYxLDI0My42Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZDMzQ1LjIsMjc5LDQ3MC40LDIzOS4yLDU3Ny45LDI4MC41Ii8+CjwvZz4KPC9zdmc+Cg==";let It=X();be(()=>(z(N()),z(U()),z(A()),z(V()),z(Y()),z($e()),c(ce),c(F)),()=>{jn(async()=>{const le=`${N()||"default"}_${U()||"default"}`;if(A()==="retain"){$(L,!0);try{const I=await Rz(le);I&&I.length>0&&J(I)}catch(I){console.error("[App] Error loading saved data:",I)}finally{$(L,!1)}}else if(A()==="reset")try{await Nb(le)}catch(I){console.error("[App] Error clearing saved data:",I)}Se(),window.updateEncatchForm=I=>{if(I.theme&&ie(I.theme),I.currentMode&&G(I.currentMode),I.currentLanguage&&(V(I.currentLanguage),V()?.value&&Fe(V().value)),I.questions&&W(I.questions),I.questionLanguages&&q(I.questionLanguages),I.otherConfigurationProperties&&Q(I.otherConfigurationProperties),I.welcomeScreenProperties&&Y(I.welcomeScreenProperties),I.endScreenProperties){const re=$e()?.isEnabled,we=I.endScreenProperties.isEnabled;if(re&&!we){const Ae=c(ce).findIndex(Ze=>Ze.id==="thankyou_screen");Ae===c(F)&&$(F,Math.max(0,Ae-1))}$e(I.endScreenProperties)}if(I.sections){const re=[...I.sections],we=I.welcomeScreenProperties?.isEnabled??Y()?.isEnabled??!0,Ae=I.endScreenProperties?.isEnabled??$e()?.isEnabled??!0;we&&!re.some(Ze=>Ze.id==="welcome_screen")&&re.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),Ae&&!re.some(Ze=>Ze.id==="thankyou_screen")&&re.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),$(ce,re),we&&c(F)===0&&$(F,0)}I.translations&&(Oe(I.translations),V()?.value&&Fe(V().value)),I.themeSettings&&de(I.themeSettings),I.onClose&&ze(I.onClose)}})}),be(()=>(z(de()),z(G())),()=>{if(de()&&de().themes&&G()&&de().themes[G()]){const le=document.documentElement,I=de().themes[G()];I&&(le.style.setProperty("--brand-color",I.brandColor||"#2563eb"),le.style.setProperty("--text-color",I.textColor||"#333"),le.style.setProperty("--background-color",I.backgroundColor||"#ffffff"))}}),be(()=>z(G()),()=>{$(m,G()==="dark"?Gt:Qt)}),be(()=>(z(V()),z(Y()),z($e()),z(Q())),()=>{if(V()&&V().value){const le=V().value;Fe(le),Y()?.translations?.[le]&&Y({...Y(),welcomeFields:{...Y().welcomeFields,...Y().translations[le]}}),$e()?.translations?.[le]&&$e({...$e(),endFields:{...$e().endFields,...$e().translations[le]}}),Q()?.translations?.[le]&&Q({...Q(),otherFields:{...Q().otherFields,...Q().translations[le]}})}}),be(()=>(z(ke()),z(Y()),z($e()),c(F),c(oe),c(ae)),()=>{const le=[...ke()];let I=!1;const re=le.some(ht=>ht.id==="welcome_screen"),we=le.some(ht=>ht.id==="thankyou_screen"),Ae=Y()?.isEnabled??!0,Ze=$e()?.isEnabled??!0;if(Ae&&!re)le.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),I=!0;else if(!Ae&&re){const ht=le.filter(sr=>sr.id!=="welcome_screen");ht.length!==le.length&&($(ce,ht),I=!0)}if(Ze&&!we)le.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),I=!0;else if(!Ze&&we){const ht=le.filter(sr=>sr.id!=="thankyou_screen");if(ht.length!==le.length){const sr=le.findIndex(tr=>tr.id==="thankyou_screen");(c(F)===sr||c(F)>=ht.length)&&$(F,Math.max(0,ht.length-1)),$(ce,ht),I=!0}}I&&($(ce,le),c(oe)||(!c(ae)&&!(!Ze&&we)&&$(F,0),$(oe,!0)))}),be(()=>(z($e()),c(F),c(ce)),()=>{$(p,$e()?.isEnabled&&c(F)===c(ce).length-1)}),be(()=>c(ce),()=>{$(g,c(ce).filter(le=>le.id!=="welcome_screen"&&le.id!=="thankyou_screen").length===1)}),be(()=>(c(F),c(ce)),()=>{$(v,c(F)===0&&c(ce)[0]?.id==="welcome_screen")}),be(()=>(c(ce),c(F)),()=>{$(b,c(ce)[c(F)]?.id==="thankyou_screen")}),be(()=>c(F),()=>{$(y,c(F)===0)}),be(()=>(c(ce),c(F)),()=>{$(_,c(ce)[0]?.id==="welcome_screen"&&c(F)===1)}),be(()=>(c(ce),c(F)),()=>{$(h,(()=>{const le=c(ce).findIndex(I=>I.id==="thankyou_screen");return le!==-1?c(F)===le-1:c(F)===c(ce).length-1})())}),be(()=>(c(ce),c(F),c(v),c(b),u(),z(W())),()=>{$(S,(()=>{const le=c(ce)[c(F)];if(!le||c(v)||c(b))return!1;const I=le.questionIds||[],re=u().questions.reduce((we,Ae)=>(we[Ae.questionId]=Ae,we),{});for(const we of I){const Ae=W()[we],Ze=!!re[we];if(Ae?.required&&!Ze)return!0}return!1})())}),be(()=>(c(F),c(ce)),()=>{c(F)>=0&&c(F)<c(ce).length}),be(()=>(u(),s.QuestionTypes),()=>{$(x,u().questions.reduce((le,I)=>{if(I.answer)switch(I.type){case s.QuestionTypes.RATING:le[I.questionId]=I.answer.rating;break;case s.QuestionTypes.NPS:le[I.questionId]=I.answer.nps;break;case s.QuestionTypes.LONG_TEXT:le[I.questionId]=I.answer.longText;break;case s.QuestionTypes.SHORT_ANSWER:le[I.questionId]=I.answer.shortAnswer;break;case s.QuestionTypes.SINGLE_CHOICE:le[I.questionId]=I.answer.singleChoice;break;case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:le[I.questionId]=[...I.answer.multipleChoiceMultiple||[]];break;case s.QuestionTypes.NESTED_SELECTION:le[I.questionId]=[...I.answer.nestedSelection||[]];break;default:le[I.questionId]=I.answer}else le[I.questionId]=null;return le},{}))}),be(()=>u(),()=>{u();const le=Ge();$(E,le)}),be(()=>(z(A()),z(N()),z(U()),c(L),c(It),u()),()=>{if(A()==="retain"&&N()&&U()&&!c(L)){const le=`${N()}_${U()}`;c(It)&&clearTimeout(c(It)),$(It,setTimeout(()=>{Zz(le,u().questions).then(()=>{}).catch(I=>{console.error("[App] Error auto-saving to IndexedDB:",I)})},500))}}),be(()=>z(W()),()=>{W()&&Se()}),dr(),er();var wt=Qz(),_t=Z(wt);{var Sr=le=>{var I=qz();j(le,I)},Dr=le=>{var I=Gz(),re=je(I);{var we=Jt=>{var or=Fz(),Vr=Z(or);Uz(Vr,{get value(){return c(E)},max:100,class:"h-full w-full rounded-none bg-muted/40 [&_[data-slot=progress-indicator]]:bg-primary [&_[data-slot=progress-indicator]]:transition-all [&_[data-slot=progress-indicator]]:duration-300 [&_[data-slot=progress-indicator]]:ease-in-out"}),D(or),j(Jt,or)};se(re,Jt=>{z(de()),c(v),c(b),C(()=>de()?.featureSettings?.progressBar&&!c(v)&&!c(b))&&Jt(we)})}var Ae=pe(re,2),Ze=Z(Ae);{let Jt=Le(()=>(z(V()),C(()=>V()?.value||"en"))),or=Le(()=>(z(de()),C(()=>de()?.themes||null))),Vr=Le(()=>c(p)===!0);Nz(Ze,{get questions(){return W()},get sections(){return c(ce)},get formData(){return c(x)},get errors(){return c(Ce)},onChange:it,get currentMode(){return G()},get currentSectionIndex(){return c(F)},get otherConfigurationProperties(){return Q()},get welcomeScreenProperties(){return Y()},get endScreenProperties(){return $e()},get currentLanguage(){return c(Jt)},get themeSettings(){return c(or)},onClose:Pt,get isScreenVisible(){return c(Vr)},get apiKey(){return ne()},get feedbackConfigurationId(){return N()},get hostUrl(){return te()},get identifier(){return U()}})}D(Ae);var ht=pe(Ae,2);{let Jt=Le(()=>(z(V()),C(()=>V()?.value||"en"))),or=Le(()=>(z(de()),C(()=>de()?.themes||null)));Mz(ht,{get isWelcomeScreen(){return c(v)},get isThankYouScreen(){return c(b)},get isFirstSection(){return c(y)},get isFirstPageAfterWelcome(){return c(_)},get isLastSection(){return c(h)},get welcomeScreenProperties(){return Y()},get endScreenProperties(){return $e()},get otherConfigurationProperties(){return Q()},get currentMode(){return G()},get currentLanguage(){return c(Jt)},handlePrevious:vt,handleNext:Me,handleSubmit:Ct,onClose:Pt,get themeSettings(){return c(or)},get nextButtonDisabled(){return c(S)},get submitButtonDisabled(){return c(S)},get isSinglePageSurvey(){return c(g)}})}var sr=pe(ht,2);{var tr=Jt=>{var or=Wz(),Vr=Z(or);wr(2),D(or),Ie(()=>oi(Vr,"src",c(m))),j(Jt,or)};se(sr,Jt=>{z(de()),C(()=>de()?.featureSettings?.showBranding)&&Jt(tr)})}j(le,I)};se(_t,le=>{c(L)?le(Sr):le(Dr,!1)})}D(wt),Ie(()=>dn(wt,1,`encatch-form ${G()==="dark"?"theme-dark dark":"theme-light"}`)),j(i,wt),Ye(),d()}var Jz=ee('<div class="fixed inset-0 transition-opacity duration-300"></div>'),Vz=ee('<!> <div id="encatch-feedback-popup" class="rounded-xl shadow-2xl overflow-hidden"><!> <!></div>',1),Bz=ee('<link rel="stylesheet" href="http://127.0.0.1:5500/encatch-typescript/packages/web-sdk/public/web-form-engine-core.css"/> <!>',1);function jb(i,n){Be(n,!1);const u=X(),l=X(),d=Fh();let m=w(n,"themeMode",8,"light"),p=w(n,"feedbackConfiguration",8,null),g=w(n,"apiKey",8,""),v=w(n,"hostUrl",8,"");w(n,"deviceInfo",8,null),w(n,"sessionId",8,""),w(n,"userInfo",8,null);let b=w(n,"language",8,"en"),y=w(n,"configurationData",8,null),_=w(n,"onClose",8,void 0),h=w(n,"trackPopupHeight",8,void 0),S=w(n,"feedbackConfigId",8,void 0),x=w(n,"identifier",8,void 0),T=X(document.documentElement.clientWidth),P=X(!1),J=X(null),ie=X(),G;const V=()=>{if(c(ie)){const de=c(ie).querySelector("#section-container");if(de){const ze=window.innerHeight*.75,fe=de.clientHeight,ne=84,te=60,N=Math.min(fe+ne+te,ze);c(ie).style.transition.includes("height")||Av(ie,c(ie).style.transition="height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"),Av(ie,c(ie).style.height=`${N}px`),de.style.overflowY=fe+ne+te>ze?"auto":"hidden"}}},W=()=>{$(T,document.documentElement.clientWidth)},q=()=>{d.clearResponses(),$(P,!1),setTimeout(()=>{_()?.()},300)},Q=de=>{const ze={position:"fixed",width:c(u),"max-width":c(u),height:"30%",transition:"transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease","transform-origin":"center center","will-change":"transform, opacity"};switch(de){case"top-left":return{...ze,top:"12px",left:"12px",transform:"translate(0, 0)"};case"top-center":return{...ze,top:"12px",left:"50%",transform:"translate(-50%, 0)"};case"top-right":return{...ze,top:"12px",right:"12px",transform:"translate(0, 0)"};case"center-left":return{...ze,top:"50%",left:"12px",transform:"translateY(-50%)"};case"center":return{...ze,top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)"};case"center-right":return{...ze,top:"50%",right:"12px",transform:"translateY(-50%)"};case"bottom-left":return{...ze,bottom:"12px",left:"12px",transform:"translate(0, 0)"};case"bottom-center":return{...ze,bottom:"12px",left:"50%",transform:"translate(-50%, 0)"};case"bottom-right":return{...ze,bottom:"12px",right:"12px",transform:"translate(0, 0)"};case"bottom-full":return{...ze,bottom:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"top-full":return{...ze,top:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"full":return{...ze,top:"0",left:"0",width:"100%","max-width":"100%",height:"100%",transform:"translate(0, 0)"};default:return ze}},Y=de=>Object.entries(de).map(([ze,fe])=>`${ze}: ${fe}`).join("; ");jn(()=>{window.addEventListener("resize",W),setTimeout(()=>{$(P,!0)},100),G=window.setInterval(V,5e3),h()&&h()(V),requestAnimationFrame(()=>{setTimeout(()=>V(),0)})}),go(()=>{window.removeEventListener("resize",W),G&&window.clearInterval(G)}),be(()=>c(T),()=>{$(u,c(T)<=768?"95%":"600px")}),be(()=>z(y()),()=>{$(J,y())}),be(()=>c(J),()=>{c(J)?.feedbackIdentifier}),be(()=>z(p()),()=>{$(l,p()&&p().appearanceProperties&&p().appearanceProperties.selectedPosition?Q(p().appearanceProperties.selectedPosition):{})}),dr(),er();var $e=Bz(),Oe=pe(je($e),2);{var ke=de=>{var ze=Vz(),fe=je(ze);{var ne=L=>{var F=Jz();Ie(()=>ho(F,`background-color: ${z(p()),z(m()),C(()=>p().appearanceProperties.themes[m()].overlayColor)??""}; z-index: 1000; opacity: ${c(P)?"0.4":"0"};`)),j(L,F)};se(fe,L=>{z(p()),C(()=>p()?.appearanceProperties?.featureSettings?.darkOverlay)&&L(ne)})}var te=pe(fe,2),N=Z(te);{var U=L=>{qt(L,{variant:"ghost",size:"icon",class:"absolute top-3 right-3 z-10 h-8 w-8 rounded border-none bg-background text-primary hover:bg-accent hover:text-accent-foreground transition-all duration-200 active:scale-95",onclick:q,"aria-label":"Close popup",children:(F,ae)=>{Rh(F,{size:20,stroke:2})},$$slots:{default:!0}})};se(N,L=>{z(p()),C(()=>p()?.appearanceProperties?.featureSettings?.closeButton)&&L(U)})}var A=pe(N,2);{var E=L=>{{let F=Le(()=>({value:b(),label:b()})),ae=Le(()=>(c(J),C(()=>c(J)?.questionnaireFields.questions||{}))),Ce=Le(()=>(c(J),C(()=>c(J)?.questionnaireFields.selectedLanguages||[]))),ce=Le(()=>(c(J),C(()=>c(J)?.questionnaireFields.translations||{}))),oe=Le(()=>(c(J),C(()=>c(J)?.otherConfigurationProperties))),ge=Le(()=>(c(J),C(()=>c(J)?.welcomeScreenProperties))),Se=Le(()=>(c(J),C(()=>c(J)?.endScreenProperties))),xe=Le(()=>(c(J),C(()=>c(J)?.questionnaireFields.sections||[])));nc(L,{get theme(){return z(p()),C(()=>p().appearanceProperties.themes)},get themeSettings(){return z(p()),C(()=>p().appearanceProperties)},get currentMode(){return m()},get currentLanguage(){return c(F)},get questions(){return c(ae)},get questionLanguages(){return c(Ce)},get translations(){return c(ce)},get otherConfigurationProperties(){return c(oe)},get welcomeScreenProperties(){return c(ge)},get endScreenProperties(){return c(Se)},get sections(){return c(xe)},onSectionChange:()=>{requestAnimationFrame(()=>{setTimeout(()=>V(),0)})},onClose:q,get apiKey(){return g()},get hostUrl(){return v()},get feedbackConfigId(){return S()},get identifier(){return x()}})}};se(A,L=>{z(p()),c(J),C(()=>p()?.appearanceProperties&&c(J))&&L(E)})}D(te),Mr(te,L=>$(ie,L),()=>c(ie)),Ie(L=>ho(te,`${L??""}; background-color: ${z(p()),z(m()),C(()=>p()?.appearanceProperties?.themes?.[m()]?.overlayColor||"transparent")??""}; z-index: 1001;`),[()=>(c(l),C(()=>Y(c(l))))]),j(de,ze)};se(Oe,de=>{de(ke)})}j(i,$e),Ye()}function Tb(i,n){Be(n,!1);let u=w(n,"themeMode",12,"light"),l=w(n,"feedbackConfiguration",12,null),d=w(n,"apiKey",12,""),m=w(n,"hostUrl",12,""),p=w(n,"deviceInfo",12,null),g=w(n,"sessionId",12,""),v=w(n,"userInfo",12,null),b=w(n,"language",12,"en"),y=w(n,"configurationData",12,null),_=w(n,"onClose",12,void 0),h=w(n,"trackPopupHeight",12,void 0),S=w(n,"feedbackConfigId",12,void 0),x=w(n,"identifier",12,void 0);var T={get themeMode(){return u()},set themeMode(P){u(P),lt()},get feedbackConfiguration(){return l()},set feedbackConfiguration(P){l(P),lt()},get apiKey(){return d()},set apiKey(P){d(P),lt()},get hostUrl(){return m()},set hostUrl(P){m(P),lt()},get deviceInfo(){return p()},set deviceInfo(P){p(P),lt()},get sessionId(){return g()},set sessionId(P){g(P),lt()},get userInfo(){return v()},set userInfo(P){v(P),lt()},get language(){return b()},set language(P){b(P),lt()},get configurationData(){return y()},set configurationData(P){y(P),lt()},get onClose(){return _()},set onClose(P){_(P),lt()},get trackPopupHeight(){return h()},set trackPopupHeight(P){h(P),lt()},get feedbackConfigId(){return S()},set feedbackConfigId(P){S(P),lt()},get identifier(){return x()},set identifier(P){x(P),lt()}};return jb(i,{get themeMode(){return u()},get feedbackConfiguration(){return l()},get apiKey(){return d()},get hostUrl(){return m()},get deviceInfo(){return p()},get sessionId(){return g()},get userInfo(){return v()},get language(){return b()},get configurationData(){return y()},get onClose(){return _()},get trackPopupHeight(){return h()},get feedbackConfigId(){return S()},get identifier(){return x()}}),Ye(T)}customElements.define("encatch-form",Dh(Tb,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{}},[],[],!0));var Yz=ee('<div class="encatch-scale-wrapper"><!></div>');function Ob(i,n){Be(n,!1);const u=Fh();let l=w(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),d=w(n,"currentMode",12,"light"),m=w(n,"currentLanguage",28,()=>({value:"en",label:"en",isFixed:!0})),p=w(n,"questions",28,()=>({})),g=w(n,"questionLanguages",28,()=>[]),v=w(n,"otherConfigurationProperties",12,null),b=w(n,"welcomeScreenProperties",12,null),y=w(n,"endScreenProperties",12,null),_=w(n,"translations",28,()=>({})),h=w(n,"sections",28,()=>[]),S=w(n,"themeSettings",12,null),x=w(n,"onClose",12,void 0),T=w(n,"onSectionChange",12,void 0),P=w(n,"apiKey",12,void 0),J=w(n,"hostUrl",12,void 0),ie=w(n,"feedbackConfigId",12,void 0),G=w(n,"identifier",12,void 0),V=w(n,"cssLink",12,void 0),W=w(n,"scale",12,100),q=w(n,"persistMode",12,"none"),Q=X(!1),Y=X(!1),$e=X();const Oe=N=>{if(!N)return null;let U=N;for(;U;){if(U instanceof ShadowRoot)return U;U=U.parentNode}return null},ke=N=>{const U=new CSSStyleSheet,A=N/100;return U.replaceSync(`
|
|
278
|
+
*/let u=At(n,["$$slots","$$events","$$legacy"]);const c=[["path",{d:"M5 12h14"}]];qa(i,Tt({name:"minus"},()=>u,{get iconNode(){return c},children:(d,m)=>{var p=Ze(),g=Te(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Be()}var K1=te('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function H1(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"checked",15,!1),d=w(n,"indeterminate",15,!1),m=At(n,["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]);var p=Ze(),g=Te(p);{const h=(y,k)=>{let v=()=>k?.().checked,x=()=>k?.().indeterminate;var S=K1(),O=R(S);{var U=oe=>{B1(oe,{class:"size-3.5"})},B=oe=>{var J=Ze(),Y=Te(J);{var G=F=>{Y1(F,{class:"size-3.5"})};ae(Y,F=>{x()&&F(G)},!0)}T(oe,J)};ae(O,oe=>{v()?oe(U):oe(B,!1)})}L(S),T(y,S)};let b=lt(()=>Sr("border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n.class));Pa(g,()=>m1,(y,k)=>{k(y,Tt({"data-slot":"checkbox",get class(){return l(b)}},()=>m,{get ref(){return u()},set ref(v){u(v)},get checked(){return c()},set checked(v){c(v)},get indeterminate(){return d()},set indeterminate(v){d(v)},children:h,$$slots:{default:!0}}))})}T(i,p),Be()}var X1=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),ez=te('<span class="text-destructive ml-1">*</span>'),tz=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),rz=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),nz=te('<div class="flex items-center gap-2 text-sm text-amber-600 bg-amber-50 dark:bg-amber-950/30 dark:text-amber-500 px-3 py-2 rounded-md border border-amber-200 dark:border-amber-900"><span class="font-medium"> </span></div>'),iz=te('<div class="flex items-center space-x-3"><!> <label> </label></div>'),oz=te('<div class="flex flex-col gap-3"></div>'),az=(i,n,u)=>n(l(u).value),sz=te('<button type="button"> </button>'),uz=te('<div class="flex flex-wrap gap-2"></div>'),cz=Tn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),lz=te('<span class="flex-1"> </span> <!>',1),dz=te('<div class="flex flex-col gap-2 w-full"></div>'),fz=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <!> <!></div>');function mz(i,n){Je(n,!1);const u=ee(),{updateQuestionResponse:c,setQuestionError:d}=pn();let m=w(n,"question",8),p=w(n,"value",24,()=>[]),g=w(n,"onChange",8),h=w(n,"error",8,void 0),b=w(n,"currentMode",8,void 0),y=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let k=ee(p()||[]),v=ee(h()),x=ee(void 0),S=!1,O=ee(!1);En(()=>{setTimeout(()=>{const E=U(l(k));$(v,E),E&&d(m().id,E),S=!0},0)});function U(E){if(m().required&&(!E||E.length===0))return m().errorMessage;const Z=m().maxSelections;if(Z!==void 0&&E.length>Z)return m().errorMessage;const ie=m().minSelections;if(ie!==void 0&&E.length>0&&E.length<ie)return m().errorMessage}function B(E){if(!S)return;$(O,!0);const Z=[...l(k)];if(Z.includes(E)){const ie=Z.filter(Ce=>Ce!==E);$(k,ie),g()(ie),$(x,void 0);const Q=U(ie);$(v,Q),c(m().id,ie,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,Q)}else{const ie=m().maxSelections;if(ie!==void 0&&Z.length>=ie){const Q=m().errorMessage;$(x,Q),c(m().id,Z,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,void 0)}else{const Q=[...Z,E];$(k,Q),g()(Q),$(x,void 0);const Ce=U(Q);$(v,Ce),c(m().id,Q,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,Ce)}}}ve(()=>z(b()),()=>{$(u,b()==="dark")}),ve(()=>(z(p()),l(O)),()=>{p()!==void 0&&!l(O)&&$(k,p())}),ve(()=>z(h()),()=>{h()!==void 0&&$(v,h())}),fr(),er();var oe=fz(),J=R(oe),Y=R(J);{var G=E=>{var Z=X1(),ie=R(Z);L(Z),je(()=>Oe(ie,`${y()??""}.`)),T(E,Z)};ae(Y,E=>{y()!==void 0&&E(G)})}var F=de(Y,2),K=R(F),H=R(K),$e=de(H);{var Ie=E=>{var Z=ez();T(E,Z)};ae($e,E=>{z(m()),M(()=>m().required)&&E(Ie)})}L(K);var ke=de(K,2);{var fe=E=>{var Z=tz(),ie=R(Z,!0);L(Z),je(()=>Oe(ie,(z(m()),M(()=>m().description)))),T(E,Z)};ae(ke,E=>{z(m()),M(()=>m().description)&&E(fe)})}L(F),L(J);var Se=de(J,2);{var me=E=>{var Z=rz(),ie=R(Z),Q=R(ie,!0);L(ie),L(Z),je(()=>Oe(Q,l(v))),T(E,Z)};ae(Se,E=>{l(v)&&E(me)})}var ne=de(Se,2);{var re=E=>{var Z=nz(),ie=R(Z),Q=R(ie,!0);L(ie),L(Z),je(()=>Oe(Q,l(x))),T(E,Z)};ae(ne,E=>{l(x)&&E(re)})}var W=de(ne,2);{var N=E=>{var Z=oz();gr(Z,5,()=>(z(m()),M(()=>m().options)),xr,(ie,Q)=>{const Ce=Ae(()=>(l(k),l(Q),M(()=>l(k).includes(l(Q).value)))),_e=Ae(()=>(z(m()),l(k),z(l(Ce)),M(()=>m().maxSelections!==void 0&&l(k).length>=m().maxSelections&&!l(Ce))));var V=iz(),le=R(V);{let Re=Ae(()=>(z(m()),l(Q),M(()=>`${m().id}-${l(Q).value}`))),Ye=Ae(()=>(l(k),l(Q),M(()=>l(k).includes(l(Q).value))));H1(le,{get id(){return l(Re)},get checked(){return l(Ye)},onCheckedChange:()=>B(l(Q).value),get disabled(){return l(_e)},class:"h-5 w-5 rounded border-2 cursor-pointer transition-all data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=unchecked]:border-input data-[state=unchecked]:bg-background data-[state=checked]:text-primary-foreground disabled:opacity-50 disabled:cursor-not-allowed"})}var Ne=de(le,2),xe=R(Ne,!0);L(Ne),L(V),je(()=>{si(Ne,"for",(z(m()),l(Q),M(()=>`${m().id}-${l(Q).value}`))),fn(Ne,1,`text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none ${l(_e)?"opacity-50 cursor-not-allowed":""}`),Oe(xe,(l(Q),M(()=>l(Q).label)))}),T(ie,V)}),L(Z),T(E,Z)},C=E=>{var Z=Ze(),ie=Te(Z);{var Q=_e=>{var V=uz();gr(V,5,()=>(z(m()),M(()=>m().options)),xr,(le,Ne)=>{const xe=Ae(()=>(l(k),l(Ne),M(()=>l(k).includes(l(Ne).value)))),Re=Ae(()=>(z(m()),l(k),z(l(xe)),M(()=>m().maxSelections!==void 0&&l(k).length>=m().maxSelections&&!l(xe))));var Ye=sz();Ye.__click=[az,B,Ne];var ut=R(Ye,!0);L(Ye),je(()=>{Ye.disabled=l(Re),fn(Ye,1,`rounded-full px-4 py-2 text-sm font-medium transition-all border-2 ${l(xe)?"bg-primary text-primary-foreground border-primary hover:bg-primary/90 shadow-md dark:shadow-primary/20":"bg-card text-card-foreground border-border hover:bg-accent hover:text-accent-foreground hover:border-primary/50"} ${l(Re)?"opacity-50 cursor-not-allowed":"hover:scale-105 cursor-pointer"}`),Oe(ut,(l(Ne),M(()=>l(Ne).label)))}),T(le,Ye)}),L(V),T(_e,V)},Ce=_e=>{var V=Ze(),le=Te(V);{var Ne=xe=>{var Re=dz();gr(Re,5,()=>(z(m()),M(()=>m().options)),xr,(Ye,ut)=>{const qe=Ae(()=>(l(k),l(ut),M(()=>l(k).includes(l(ut).value)))),it=Ae(()=>(z(m()),l(k),z(l(qe)),M(()=>m().maxSelections!==void 0&&l(k).length>=m().maxSelections&&!l(qe))));{let ht=Ae(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${l(qe)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:border-primary/90 dark:bg-primary dark:hover:bg-primary":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"} ${l(it)?"opacity-50 cursor-not-allowed":""}`);Ft(Ye,{type:"button",variant:"outline",get disabled(){return l(it)},get class(){return l(ht)},onclick:()=>B(l(ut).value),onkeydown:Ue=>Ue.key==="Enter"&&B(l(ut).value),children:(Ue,Pt)=>{var Ct=lz(),qt=Te(Ct),Vt=R(qt,!0);L(qt);var Et=de(qt,2);{var _t=yt=>{var Ir=cz();T(yt,Ir)};ae(Et,yt=>{l(qe)&&yt(_t)})}je(()=>Oe(Vt,(l(ut),M(()=>l(ut).label)))),T(Ue,Ct)},$$slots:{default:!0}})}}),L(Re),T(xe,Re)};ae(le,xe=>{z(m()),M(()=>m().displayStyle==="list")&&xe(Ne)},!0)}T(_e,V)};ae(ie,_e=>{z(m()),M(()=>m().displayStyle==="chip")?_e(Q):_e(Ce,!1)},!0)}T(E,Z)};ae(W,E=>{z(m()),M(()=>m().displayStyle==="checkbox"||!m().displayStyle)?E(N):E(C,!1)})}L(oe),je(()=>Oe(H,`${z(m()),M(()=>m().title)??""} `)),T(i,oe),Be()}kc(["click"]);function pz(i,n,u,c,d,m,p,g,h){l(n)||$(n,!0),$(u,!1),$(c,void 0),d()(void 0);const b=m(void 0);$(p,b),g(h().id,void 0,s.QuestionTypes.ANNOTATION,b)}var gz=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),hz=te('<span class="text-destructive ml-1">*</span>'),vz=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),bz=te('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),yz=te('<div class="group relative border-2 border-dashed border-border hover:border-primary/50 rounded-xl bg-muted/30 hover:bg-muted/50 transition-all cursor-pointer overflow-hidden"><div class="flex items-center justify-center gap-3 px-6 py-8"><div class="w-12 h-12 rounded-full bg-background shadow-sm flex items-center justify-center group-hover:scale-110 transition-transform"><!></div> <div class="flex flex-col"><span class="text-sm font-semibold text-foreground"> </span> <span class="text-xs text-muted-foreground">Click to add annotation</span></div></div></div>'),$z=te('<div class="relative border-2 border-primary/20 rounded-xl bg-primary/5 overflow-hidden shadow-sm hover:shadow-md transition-all"><div class="flex items-center justify-between gap-3 px-6 py-4"><div class="flex items-center gap-3 flex-1 min-w-0"><div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0"><!></div> <div class="flex flex-col flex-1 min-w-0"><span class="text-sm font-semibold text-foreground truncate"> </span> <span class="text-xs text-muted-foreground">Annotation added</span></div></div> <button class="w-8 h-8 rounded-full bg-destructive/10 hover:bg-destructive/20 text-destructive flex items-center justify-center transition-colors flex-shrink-0" type="button" aria-label="Remove annotation"><!></button></div></div>'),wz=te('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><div class="text-lg font-semibold text-foreground leading-tight"> <!></div> <!></div></div> <!> <div class="w-full"><!> <!></div></div>');function _z(i,n){Je(n,!1);const u=ee(),{updateQuestionResponse:c,setQuestionError:d,formResponses:m}=pn();let p=w(n,"question",8),g=w(n,"value",8,void 0),h=w(n,"onChange",8),b=w(n,"error",8,void 0),y=w(n,"currentMode",8,void 0),k=w(n,"questionNumber",8,void 0);w(n,"themeSettings",8,void 0),w(n,"currentLanguage",8,void 0);let v=ee(!1),x=ee(void 0),S=ee(b()),O=ee(!1);En(()=>{const C=ko(m).questions.find(E=>E.questionId===p().id);if(C?.answer&&"annotation"in C.answer){const E=C.answer.annotation;$(x,E),$(v,!0),typeof E=="object"&&E!==null&&h()(E)}setTimeout(()=>{const E=l(x),Z=U(E);$(S,Z),Z&&d(p().id,Z)},0)});function U(C){let E="";if(typeof C=="string"?E=C:C&&typeof C=="object"&&(E="has_annotation_data"),p().required&&(!E||E.trim()===""))return p().errorMessage??"This field is required"}ve(()=>z(y()),()=>{$(u,y()==="dark")}),ve(()=>(z(g()),z(h())),()=>{if(g()!==void 0){if(typeof g()=="string"){const C=g().trim()!=="";$(v,C),$(x,g())}else if(typeof g()=="object"&&g()!==null&&"annotation"in g()){const C=g().annotation;$(v,!0),$(x,C),h()(C)}}else $(x,void 0),$(v,!1)}),ve(()=>z(b()),()=>{b()!==void 0&&$(S,b())}),fr(),er();var B=wz(),oe=R(B),J=R(oe);{var Y=C=>{var E=gz(),Z=R(E);L(E),je(()=>Oe(Z,`${k()??""}.`)),T(C,E)};ae(J,C=>{k()!==void 0&&C(Y)})}var G=de(J,2),F=R(G),K=R(F),H=de(K);{var $e=C=>{var E=hz();T(C,E)};ae(H,C=>{z(p()),M(()=>p().required)&&C($e)})}L(F);var Ie=de(F,2);{var ke=C=>{var E=vz(),Z=R(E,!0);L(E),je(()=>Oe(Z,(z(p()),M(()=>p().description)))),T(C,E)};ae(Ie,C=>{z(p()),M(()=>p().description)&&C(ke)})}L(G),L(oe);var fe=de(oe,2);{var Se=C=>{var E=bz(),Z=de(R(E),2),ie=R(Z,!0);L(Z),L(E),je(()=>Oe(ie,l(S))),T(C,E)};ae(fe,C=>{l(S)&&l(O)&&C(Se)})}var me=de(fe,2),ne=R(me);{var re=C=>{var E=yz(),Z=R(E),ie=R(Z),Q=R(ie);Rv(Q,{size:24,class:"text-muted-foreground group-hover:text-primary transition-colors"}),L(ie);var Ce=de(ie,2),_e=R(Ce),V=R(_e,!0);L(_e),_r(2),L(Ce),L(Z),L(E),je(()=>Oe(V,(z(p()),M(()=>p().noAnnotationText??"No Annotation")))),T(C,E)};ae(ne,C=>{l(v)||C(re)})}var W=de(ne,2);{var N=C=>{var E=$z(),Z=R(E),ie=R(Z),Q=R(ie),Ce=R(Q);Rv(Ce,{size:20,class:"text-primary"}),L(Q);var _e=de(Q,2),V=R(_e),le=R(V,!0);L(V),_r(2),L(_e),L(ie);var Ne=de(ie,2);Ne.__click=[pz,O,v,x,h,U,S,c,p];var xe=R(Ne);qv(xe,{size:16}),L(Ne),L(Z),L(E),je(()=>Oe(le,(z(p()),M(()=>p().annotationText??"Annotation")))),T(C,E)};ae(W,C=>{l(v)&&C(N)})}L(me),L(B),je(()=>Oe(K,`${z(p()),M(()=>p().title)??""} `)),T(i,B),Be()}kc(["click"]);var kz=te('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),xz=te('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function Sz(i,n){Je(n,!1);const u=ee(),c=ee();let d=w(n,"welcomeScreenProperties",8);w(n,"onStart",8,void 0);let m=w(n,"currentMode",8,void 0),p=w(n,"currentLanguage",8,void 0);w(n,"themeSettings",8,void 0),ve(()=>z(m()),()=>{$(u,m()==="dark")}),ve(()=>(z(d()),z(p())),()=>{$(c,d().translations&&p()&&d().translations[p()]?d().translations[p()]:d().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),fr(),er();var g=xz(),h=R(g),b=R(h,!0);L(h);var y=de(h,2);{var k=v=>{var x=kz(),S=R(x,!0);L(x),je(()=>Oe(S,(l(c),M(()=>l(c).description)))),T(v,x)};ae(y,v=>{l(c),M(()=>l(c).description)&&v(k)})}L(g),je(()=>Oe(b,(l(c),M(()=>l(c).title)))),T(i,g),Be()}var Iz=te('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),zz=te('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function Nz(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),m=ee(),p=ee();let g=w(n,"endScreenProperties",8),h=w(n,"onExit",8,void 0),b=w(n,"currentMode",8,void 0),y=w(n,"currentLanguage",8,void 0);w(n,"themeSettings",8,void 0);let k=w(n,"isScreenVisible",8,void 0),v=ee(null);bo(()=>{l(v)!==null&&clearTimeout(l(v))}),ve(()=>z(b()),()=>{$(u,b()==="dark")}),ve(()=>(z(g()),z(y())),()=>{$(c,g().translations&&y()&&g().translations[y()]?g().translations[y()]:g().endFields??{title:"Thank you for participating!",message:"Your feedback is important to us.",buttonLabel:"Exit",dismissBehavior:"close",fadeDuration:300})}),ve(()=>z(k()),()=>{$(d,k()===!0)}),ve(()=>z(g()),()=>{$(m,g().endFields?.dismissBehavior)}),ve(()=>z(g()),()=>{$(p,g().endFields?.fadeDuration||0)}),ve(()=>(l(v),l(d),l(m),z(h()),l(p)),()=>{l(v)!==null&&(clearTimeout(l(v)),$(v,null)),l(d)&&l(m)==="fade"&&typeof h()=="function"&&l(p)>0&&$(v,setTimeout(()=>{h()?.()},l(p)*1e3))}),fr(),er();var x=zz(),S=R(x),O=R(S,!0);L(S);var U=de(S,2);{var B=oe=>{var J=Iz(),Y=R(J,!0);L(J),je(()=>Oe(Y,(l(c),M(()=>l(c).message)))),T(oe,J)};ae(U,oe=>{l(c),M(()=>l(c).message)&&oe(B)})}L(x),je(()=>Oe(O,(l(c),M(()=>l(c).title)))),T(i,x),Be()}var jz=te("<h2> </h2>"),Tz=te('<div class="question-wrapper"><div class="question-container"><!></div></div>'),Oz=te("<!> <!>",1),Ez=te('<div id="section-container"><!> <!> <!></div>');function Pz(i,n){Je(n,!1);const u=ee(),c=ee(),{storeQuestions:d,getQuestionData:m}=pn();let p=w(n,"questions",8),g=w(n,"sections",8),h=w(n,"formData",8),b=w(n,"errors",8),y=w(n,"onChange",8),k=w(n,"currentMode",8,void 0),v=w(n,"welcomeScreenProperties",8),x=w(n,"otherConfigurationProperties",8),S=w(n,"currentSectionIndex",8),O=w(n,"endScreenProperties",8,void 0),U=w(n,"currentLanguage",8,void 0),B=w(n,"themeSettings",8),oe=w(n,"onClose",8,void 0),J=w(n,"isScreenVisible",8,void 0),Y=w(n,"apiKey",8,void 0),G=w(n,"hostUrl",8,void 0),F=w(n,"identifier",8,void 0),K=w(n,"feedbackConfigurationId",8,void 0);function H(W){return l(u).get(W)??-1}function $e(W){switch(W){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return[];case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return-1;case s.QuestionTypes.SHORT_ANSWER:case s.QuestionTypes.LONG_TEXT:case s.QuestionTypes.SINGLE_CHOICE:return"";default:return}}function Ie(W){return Array.isArray(W)?W:typeof W=="object"&&W!==null?Object.values(W).filter(N=>N!==void 0):typeof W=="string"?[W]:[]}function ke(W){return typeof W=="number"?W:typeof W=="string"?Number(W):0}function fe(W){return typeof W=="string"?W:String(typeof W=="object"&&W!==null?Object.values(W)[0]||"":W||"")}function Se(W,N){if(W==null){const C=$e(N);return C!==void 0?C:W}switch(N){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return Ie(W);case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return ke(W);case s.QuestionTypes.SINGLE_CHOICE:return fe(W);default:return W}}ve(()=>z(p()),()=>{p()&&Object.keys(p()).length>0&&d(p())}),ve(()=>z(g()),()=>{$(u,(()=>{const W=new Map;let N=0;return g().forEach(C=>{C.id!=="welcome_screen"&&C.id!=="thankyou_screen"&&C.questionIds.forEach(E=>{W.set(E,N++)})}),W})())}),ve(()=>(z(g()),z(S())),()=>{$(c,g()[S()])}),fr(),er();var me=Ze(),ne=Te(me);{var re=W=>{var N=Ze(),C=Te(N);gr(C,1,()=>(z(g()),z(S()),M(()=>[g()[S()]])),E=>E.id,(E,Z)=>{var ie=Ez(),Q=R(ie);{var Ce=xe=>{Sz(xe,{get welcomeScreenProperties(){return v()},get currentMode(){return k()},get currentLanguage(){return U()},get themeSettings(){return B()}})};ae(Q,xe=>{l(Z),M(()=>l(Z).id==="welcome_screen")&&xe(Ce)})}var _e=de(Q,2);{var V=xe=>{{let Re=Ae(()=>O()?O():{});Nz(xe,{get endScreenProperties(){return l(Re)},get onExit(){return oe()},get currentMode(){return k()},get currentLanguage(){return U()},get themeSettings(){return B()},get isScreenVisible(){return J()}})}};ae(_e,xe=>{l(Z),M(()=>l(Z).id==="thankyou_screen")&&xe(V)})}var le=de(_e,2);{var Ne=xe=>{var Re=Oz(),Ye=Te(Re);{var ut=it=>{var ht=jz(),Ue=R(ht,!0);L(ht),je(()=>{fn(ht,1,`section-title ${k()==="dark"?"dark-mode":""}`),Oe(Ue,(l(Z),M(()=>l(Z).title)))}),T(it,ht)};ae(Ye,it=>{z(x()),M(()=>x().isEnabled&&x().otherFields.pageTitle)&&it(ut)})}var qe=de(Ye,2);gr(qe,1,()=>(l(Z),M(()=>l(Z).questionIds)),xr,(it,ht)=>{const Ue=Ae(()=>(l(ht),M(()=>m(l(ht)))));var Pt=Ze(),Ct=Te(Pt);{var qt=Vt=>{const Et=Ae(()=>(z(x()),M(()=>x()?.isEnabled&&x().otherFields.questionNumber))),_t=Ae(()=>(z(l(Ue)),M(()=>H(l(Ue).id)))),yt=Ae(()=>(z(l(Ue)),z(h()),z(y()),z(b()),z(k()),z(U()),z(B()),z(l(Et)),z(l(_t)),M(()=>({question:l(Ue),value:Se(h()[l(Ue).id],l(Ue).type),onChange:be=>y()(l(Ue).id,be,l(Ue).type),error:b()[l(Ue).id],currentMode:k(),currentLanguage:U(),themeSettings:B(),questionNumber:l(Et)?l(_t)+1:void 0}))));var Ir=Tz(),Mr=R(Ir),vn=R(Mr);{var I=be=>{cS(be,Tt(()=>l(yt),{get question(){return l(Ue)}}))},j=be=>{var De=Ze(),Ke=Te(De);{var We=Wt=>{PS(Wt,Tt(()=>l(yt),{get question(){return l(Ue)}}))},vt=Wt=>{var ur=Ze(),or=Te(ur);{var ar=He=>{VS(He,Tt(()=>l(yt),{get question(){return l(Ue)},get apiKey(){return Y()},get hostUrl(){return G()},get identifier(){return F()},get feedbackConfigurationId(){return K()},get otherConfigurationProperties(){return x()}}))},Jr=He=>{var ft=Ze(),Ut=Te(ft);{var kt=vr=>{uI(vr,Tt(()=>l(yt),{get question(){return l(Ue)},get apiKey(){return Y()},get hostUrl(){return G()},get identifier(){return F()},get feedbackConfigurationId(){return K()},get otherConfigurationProperties(){return x()}}))},zr=vr=>{var tr=Ze(),It=Te(tr);{var bn=Pi=>{L1(Pi,Tt(()=>l(yt),{get question(){return l(Ue)}}))},o4=Pi=>{var Cb=Ze(),a4=Te(Cb);{var s4=Ci=>{J1(Ci,Tt(()=>l(yt),{get question(){return l(Ue)}}))},u4=Ci=>{var Ub=Ze(),c4=Te(Ub);{var l4=Ui=>{mz(Ui,Tt(()=>l(yt),{get question(){return l(Ue)}}))},d4=Ui=>{var Mb=Ze(),f4=Te(Mb);{var m4=al=>{_z(al,Tt(()=>l(yt),{get question(){return l(Ue)}}))};ae(f4,al=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.ANNOTATION)&&al(m4)},!0)}T(Ui,Mb)};ae(c4,Ui=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE)?Ui(l4):Ui(d4,!1)},!0)}T(Ci,Ub)};ae(a4,Ci=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.RATING)?Ci(s4):Ci(u4,!1)},!0)}T(Pi,Cb)};ae(It,Pi=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.SINGLE_CHOICE)?Pi(bn):Pi(o4,!1)},!0)}T(vr,tr)};ae(Ut,vr=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.SHORT_ANSWER)?vr(kt):vr(zr,!1)},!0)}T(He,ft)};ae(or,He=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.LONG_TEXT)?He(ar):He(Jr,!1)},!0)}T(Wt,ur)};ae(Ke,Wt=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.NESTED_SELECTION)?Wt(We):Wt(vt,!1)},!0)}T(be,De)};ae(vn,be=>{z(l(Ue)),z(s.QuestionTypes),M(()=>l(Ue).type===s.QuestionTypes.NPS)?be(I):be(j,!1)})}L(Mr),L(Ir),T(Vt,Ir)};ae(Ct,Vt=>{l(Ue)&&Vt(qt)})}T(it,Pt)}),T(xe,Re)};ae(le,xe=>{l(Z),M(()=>l(Z).id!=="welcome_screen"&&l(Z).id!=="thankyou_screen")&&xe(Ne)})}L(ie),T(E,ie)}),T(W,N)};ae(ne,W=>{z(S()),z(g()),M(()=>S()<g().length&&g().length>0)&&W(re)})}T(i,me),Be()}var Cz=te('<div class="flex justify-center"><!></div>'),Uz=te('<div class="flex justify-center"><!></div>'),Mz=te('<div class="flex-1"></div>'),Dz=Tn('<svg class="w-5 h-5 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),Lz=te('<div class="flex items-center justify-between gap-3"><!> <!></div>'),Az=te('<div class="w-full py-6 px-4 bg-primary-foreground"><!></div>');function Zz(i,n){Je(n,!1);const u=ee(),c=ee(),d=ee(),m=ee(),p=ee(),g=ee(),{hasValidationErrors:h,clearValidationErrors:b}=pn();let y=w(n,"isWelcomeScreen",8),k=w(n,"isThankYouScreen",8),v=w(n,"isFirstSection",8),x=w(n,"isFirstPageAfterWelcome",8,!1),S=w(n,"isLastSection",8),O=w(n,"welcomeScreenProperties",8),U=w(n,"endScreenProperties",8,void 0),B=w(n,"otherConfigurationProperties",8),oe=w(n,"currentMode",8),J=w(n,"currentLanguage",8),Y=w(n,"handlePrevious",8),G=w(n,"handleNext",8),F=w(n,"handleSubmit",8),K=w(n,"onClose",8,void 0);w(n,"themeSettings",8);let H=w(n,"nextButtonDisabled",8,!1),$e=w(n,"submitButtonDisabled",8,!1),Ie=w(n,"isSinglePageSurvey",8,!1),ke=ee(!1);const fe=()=>{K()&&K()()},Se=()=>{if(!k()&&!U()?.isEnabled){$(ke,!0),window.setTimeout(()=>{$(ke,!1),K()&&K()()},3e3);try{F()()}catch(E){console.error("Error during form submission:",E)}}else F()()},me=()=>{b(),Y()()},ne=()=>{G()()};ve(()=>(z(B()),z(J())),()=>{$(u,(()=>{const E={previousButtonLabel:"Previous",nextButtonLabel:"Next",submitButtonLabel:"Submit"};return B().isEnabled?B().translations&&J()&&B().translations[J()]?B().translations[J()]:B().otherFields??E:E})())}),ve(()=>(z(O()),z(J())),()=>{$(c,O().translations&&J()&&O().translations[J()]?O().translations[J()]:O().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),ve(()=>(z(U()),z(J())),()=>{$(d,U()?.translations&&J()&&U().translations[J()]?U().translations[J()]:U()?.endFields??{buttonLabel:"Exit",dismissBehavior:"close"})}),ve(()=>z(oe()),()=>{$(m,oe()==="dark")}),ve(()=>z(H()),()=>{$(p,h()||H())}),ve(()=>z($e()),()=>{$(g,h()||$e())}),fr(),er();var re=Az(),W=R(re);{var N=E=>{var Z=Cz(),ie=R(Z);Ft(ie,{onclick:ne,size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(Q,Ce)=>{_r();var _e=On();je(()=>Oe(_e,(l(c),M(()=>l(c).buttonLabel)))),T(Q,_e)},$$slots:{default:!0}}),L(Z),T(E,Z)},C=E=>{var Z=Ze(),ie=Te(Z);{var Q=_e=>{var V=Uz(),le=R(V);Ft(le,{onclick:()=>fe(),size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(Ne,xe)=>{_r();var Re=On();je(()=>Oe(Re,(l(d),M(()=>l(d).buttonLabel)))),T(Ne,Re)},$$slots:{default:!0}}),L(V),T(_e,V)},Ce=_e=>{var V=Lz(),le=R(V);{var Ne=qe=>{{let it=Ae(()=>v()||x());Ft(qe,{onclick:()=>me(),get disabled(){return l(it)},variant:"outline",size:"lg",class:"px-6 py-5 text-sm text-secondary-foreground min-w-[140px] font-semibold rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(ht,Ue)=>{_r();var Pt=On();je(()=>Oe(Pt,(l(u),M(()=>l(u).previousButtonLabel)))),T(ht,Pt)},$$slots:{default:!0}})}},xe=qe=>{var it=Mz();T(qe,it)};ae(le,qe=>{Ie()?qe(xe,!1):qe(Ne)})}var Re=de(le,2);{var Ye=qe=>{{let it=Ae(()=>l(g)||l(ke)),ht=Ae(()=>Ie()?"mx-auto":"");Ft(qe,{onclick:()=>Se(),get disabled(){return l(it)},size:"lg",get class(){return`px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed ${l(ht)??""}`},children:(Ue,Pt)=>{var Ct=Ze(),qt=Te(Ct);{var Vt=_t=>{var yt=Dz();T(_t,yt)},Et=_t=>{var yt=On();je(()=>Oe(yt,(l(u),M(()=>l(u).submitButtonLabel)))),T(_t,yt)};ae(qt,_t=>{l(ke)?_t(Vt):_t(Et,!1)})}T(Ue,Ct)},$$slots:{default:!0}})}},ut=qe=>{var it=Ze(),ht=Te(it);{var Ue=Pt=>{Ft(Pt,{onclick:ne,get disabled(){return l(p)},size:"lg",class:"px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(Ct,qt)=>{_r();var Vt=On();je(()=>Oe(Vt,(l(u),M(()=>l(u).nextButtonLabel)))),T(Ct,Vt)},$$slots:{default:!0}})};ae(ht,Pt=>{Ie()||Pt(Ue)},!0)}T(qe,it)};ae(Re,qe=>{S()?qe(Ye):qe(ut,!1)})}L(V),T(_e,V)};ae(ie,_e=>{k()?_e(Q):_e(Ce,!1)},!0)}T(E,Z)};ae(W,E=>{y()?E(N):E(C,!1)})}L(re),T(i,re),Be()}var Rz=te('<div data-slot="progress-indicator" class="bg-primary h-full w-full flex-1 transition-all"></div>');function Fz(i,n){Je(n,!0);let u=w(n,"ref",15,null),c=w(n,"max",3,100),d=At(n,["$$slots","$$events","$$legacy","ref","class","max","value"]);var m=Ze(),p=Te(m);{let g=lt(()=>Sr("bg-primary/20 relative w-full overflow-hidden rounded-full",n.class));Pa(p,()=>v1,(h,b)=>{b(h,Tt({"data-slot":"progress",get class(){return l(g)},get value(){return n.value},get max(){return c()}},()=>d,{get ref(){return u()},set ref(y){u(y)},children:(y,k)=>{var v=Rz();je(()=>$o(v,`transform: translateX(-${100-100*(n.value??0)/(c()??1)}%)`)),T(y,v)},$$slots:{default:!0}}))})}T(i,m),Be()}const qz="encatch-forms",Un="form-responses",Wz=1;async function il(){return new Promise((i,n)=>{if(typeof window>"u"||!window.indexedDB){n(new Error("IndexedDB is not available in this environment"));return}const u=indexedDB.open(qz,Wz);u.onerror=()=>{console.error("[IndexedDB] Error opening database:",u.error),n(u.error)},u.onsuccess=()=>{i(u.result)},u.onupgradeneeded=c=>{const d=c.target.result;d.objectStoreNames.contains(Un)||d.createObjectStore(Un,{keyPath:"id"})}})}async function Qz(i,n){try{const u=await il();return new Promise((c,d)=>{const m=u.transaction([Un],"readwrite"),p=m.objectStore(Un),g={id:i,responses:n,timestamp:Date.now()},h=p.put(g);h.onsuccess=()=>{c()},h.onerror=()=>{console.error("[IndexedDB] Error saving data:",h.error),d(h.error)},m.oncomplete=()=>{u.close()}})}catch(u){throw console.error("[IndexedDB] Error in saveFormData:",u),u}}async function Gz(i){try{const n=await il();return new Promise((u,c)=>{const d=n.transaction([Un],"readonly"),m=d.objectStore(Un).get(i);m.onsuccess=()=>{const p=m.result;p&&p.responses?u(p.responses):u(null)},m.onerror=()=>{console.error("[IndexedDB] Error loading data:",m.error),c(m.error)},d.oncomplete=()=>{n.close()}})}catch(n){throw console.error("[IndexedDB] Error in loadFormData:",n),n}}async function Tb(i){try{const n=await il();return new Promise((u,c)=>{const d=n.transaction([Un],"readwrite"),m=d.objectStore(Un).delete(i);m.onsuccess=()=>{u()},m.onerror=()=>{console.error("[IndexedDB] Error clearing data:",m.error),c(m.error)},d.oncomplete=()=>{n.close()}})}catch(n){throw console.error("[IndexedDB] Error in clearFormData:",n),n}}class Vz extends EventTarget{subscriptions=new Map;targetOrigin="*";matchesFilter(n,u){return!u||u==="*"||u===null||u===void 0?!0:typeof u=="string"?n===u:Array.isArray(u)?u.includes(n||""):typeof u=="function"?u(n||""):!1}getFormIdFromPayload(n){return n?.feedbackConfigurationId}publish(n,u,c){const d=this.getFormIdFromPayload(u);console.log(`[FormEventPublisher] 📢 Publishing "${n}"`,{formId:d,payload:u}),typeof window<"u"&&(window.dispatchEvent(new CustomEvent(n,{detail:u,bubbles:!0})),console.log("[FormEventPublisher] ✅ Event dispatched on window")),c?.usePostMessage!==!1&&this.sendPostMessage(n,u)}subscribe(n,u,c){const d=Symbol("subscription"),m={eventType:n,handler:u,filter:c?.formId,id:d,once:c?.once};this.subscriptions.has(n)||this.subscriptions.set(n,[]),this.subscriptions.get(n).push(m),console.log(`[FormEventPublisher] Subscribed to "${n}"`,{formId:c?.formId,once:c?.once,totalSubscriptions:this.subscriptions.get(n).length});const p=g=>{const h=g,b=this.getFormIdFromPayload(h.detail);this.matchesFilter(b,c?.formId)&&(u(h.detail),c?.once&&typeof window<"u"&&window.removeEventListener(n,p))};return typeof window<"u"&&window.addEventListener(n,p),()=>{console.log(`[FormEventPublisher] Unsubscribed from "${n}"`,{formId:c?.formId,remainingSubscriptions:(this.subscriptions.get(n)?.length||1)-1}),this.unsubscribe(d),typeof window<"u"&&window.removeEventListener(n,p)}}unsubscribe(n){for(const[u,c]of this.subscriptions.entries()){const d=c.findIndex(m=>m.id===n);if(d!==-1){c.splice(d,1),c.length===0&&this.subscriptions.delete(u);break}}}subscribeAll(n,u){console.log("[FormEventPublisher] Subscribing to ALL events",{formId:u?.formId,once:u?.once});const c=["form:view","form:submit","form:close","form:section:change","form:question:answered","form:error"],d=[];return c.forEach(m=>{const p=this.subscribe(m,g=>n(m,g),u);d.push(p)}),()=>{console.log("[FormEventPublisher] Unsubscribing from ALL events",{formId:u?.formId}),d.forEach(m=>m())}}getSubscriptionCount(n){return n?this.subscriptions.get(n)?.length||0:Array.from(this.subscriptions.values()).reduce((u,c)=>u+c.length,0)}clearSubscriptions(n){n?this.subscriptions.delete(n):this.subscriptions.clear()}sendPostMessage(n,u){const c={type:`encatch:${n}`,payload:u,source:"encatch-form-engine"};window.parent&&window.parent!==window&&window.parent.postMessage(c,this.targetOrigin),document.querySelectorAll("iframe").forEach(d=>{d.contentWindow&&d.contentWindow.postMessage(c,this.targetOrigin)}),typeof window.ReactNativeWebView<"u"&&window.ReactNativeWebView.postMessage(JSON.stringify({action:n.replace("form:",""),data:JSON.stringify(u)}))}}console.log("[FormEventPublisher] Creating singleton instance");const Ei=new Vz;var Jz=te('<div class="flex items-center justify-center min-h-[400px] bg-primary-foreground"><div class="text-center"><div class="inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary mb-4"></div> <p class="text-sm text-muted-foreground">Loading your previous responses...</p></div></div>'),Bz=te('<div class="flex-shrink-0" style="height: 3px; min-height: 3px; max-height: 3px;"><!></div>'),Yz=te('<div class="bg-primary-foreground flex items-center justify-center py-2"><img alt="encatch Logo" class="mr-2 h-5 w-5"/> <p class="m-0 text-xs font-medium text-muted-foreground">Powered by encatch</p></div>'),Kz=te('<!> <div class="form-content-container custom-scrollbar bg-primary-foreground"><!></div> <!> <!>',1),Hz=te('<div id="encatch-form-id"><!></div>');function ol(i,n){Je(n,!1);const u=()=>H0(O,"$formResponses",c),[c,d]=X0(),m=ee(),p=ee(),g=ee(),h=ee(),b=ee(),y=ee(),k=ee(),v=ee(),x=ee(),S=ee(),{formResponses:O,updateQuestionResponse:U,bulkUpdateResponses:B}=pn();let oe=w(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),J=w(n,"currentMode",12,"light"),Y=w(n,"currentLanguage",28,()=>({value:"en",label:"en"})),G=w(n,"questions",28,()=>({})),F=w(n,"questionLanguages",28,()=>[]),K=w(n,"otherConfigurationProperties",12,null),H=w(n,"welcomeScreenProperties",12,null),$e=w(n,"endScreenProperties",12,null),Ie=w(n,"translations",28,()=>({})),ke=w(n,"sections",24,()=>[]),fe=w(n,"themeSettings",12,null),Se=w(n,"onClose",12,void 0),me=w(n,"onSectionChange",8,void 0),ne=w(n,"apiKey",8,void 0),re=w(n,"hostUrl",8,void 0),W=w(n,"feedbackConfigId",8,void 0),N=w(n,"identifier",8,void 0),C=w(n,"persistMode",8,"none"),E=w(n,"instanceId",8,void 0),Z=ee(0),ie=ee(!1),Q=ee(0),Ce=ee(!1),_e=ee({}),V=ee((()=>{let I=[...ke()||[]];const j=H()?.isEnabled??!0,be=$e()?.isEnabled??!0;return j&&I.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),be&&I.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),I})()),le=ee(!1);const Ne=()=>{const I=window;return typeof window<"u"&&I.encatchAnnotate!==void 0&&typeof I.encatchAnnotate=="object"&&I.encatchAnnotate!==null&&typeof I.encatchAnnotate.getAnnotation=="function"},xe=()=>{if(Ne()){const I=window.encatchAnnotate?.getAnnotation?.();I&&Object.entries(G()).forEach(([j,be])=>{be.type===s.QuestionTypes.ANNOTATION&&U(j,I,s.QuestionTypes.ANNOTATION)})}},Re=(I,j,be,De,Ke="")=>I.map(We=>{let vt=Ke?`${Ke}.children.${We.id}.label`:`option.${We.id}.label`,Wt=De[j]?.[be]?.[vt],ur={...We};return Wt&&(ur.label=Wt),We.children&&We.children.length>0&&(ur.children=Re(We.children,j,be,De,Ke?`${Ke}.children.${We.id}`:`option.${We.id}`)),ur}),Ye=I=>{const j=Ie()||{},be=Object.fromEntries(Object.entries(G()).map(([De,Ke])=>{const We=j[De]?.[I]||{};let vt={...Ke};return We.title&&(vt.title=We.title),We.description&&(vt.description=We.description),We.errorMessage&&(vt.errorMessage=We.errorMessage),We.placeholder&&(vt.placeholder=We.placeholder),We.minLabel&&(vt.minLabel=We.minLabel),We.maxLabel&&(vt.maxLabel=We.maxLabel),We.annotationText&&(vt.annotationText=We.annotationText),We.noAnnotationText&&(vt.noAnnotationText=We.noAnnotationText),Ke.options&&Array.isArray(Ke.options)&&(vt.options=Re(Ke.options,De,I,j)),[De,vt]}));G(be)},ut=()=>l(V).reduce((I,j)=>I+j.questionIds.length,0),qe=()=>u().questions.filter(I=>{try{if(I.type===s.QuestionTypes.SHORT_ANSWER){if(!I.answer||typeof I.answer!="object")return!1;const j=I.answer.shortAnswer;if(j==null||typeof j=="string"&&j.trim()==="")return!1}if(I.type===s.QuestionTypes.LONG_TEXT){if(!I.answer||typeof I.answer!="object")return!1;const j=I.answer.longText;if(j==null||typeof j=="string"&&j.trim()==="")return!1}return!0}catch(j){return console.error("Error checking answer:",I.questionId,j),!0}}).length,it=()=>qe()/ut()*100,ht=(I,j,be)=>{let De=j;Array.isArray(j)&&(De=[...j]),U(I,De,be),$(_e,{...l(_e),[I]:""}),Ei.publish("form:question:answered",{feedbackConfigurationId:E()||"",questionId:I,questionType:be,answer:De,timestamp:Date.now()})},Ue=()=>{if(l(Q)>0){const I=l(Q)-1;$(Q,I),me()?.(I),Ei.publish("form:section:change",{feedbackConfigurationId:E()||"",sectionIndex:I,sectionId:l(V)[I]?.id||"",timestamp:Date.now()})}},Pt=()=>{if(l(Q)<l(V).length-1){const I=l(Q)+1;$(Q,I),me()?.(I),Ei.publish("form:section:change",{feedbackConfigurationId:E()||"",sectionIndex:I,sectionId:l(V)[I]?.id||"",timestamp:Date.now()})}},Ct=()=>{console.log("instanceId",E()),Ei.publish("form:submit",{feedbackConfigurationId:E()||"",feedbackIdentifier:N()||"",response:{questions:u().questions},timestamp:Date.now()});const I=l(V).findIndex(j=>j.id==="thankyou_screen");if(I!==-1&&($(Q,I),me()?.(I)),$(Ce,!0),window.encatch?._internal?.submitFeedback?window.encatch._internal.submitFeedback({response:{questions:u().questions},action:"S",feedbackConfigurationId:W()||"",feedbackIdentifier:N()||"",duration:0}):console.error("window.encatch._internal.submitFeedback is not available"),C()==="retain"&&W()&&N()){const j=`${W()}_${N()}`;Tb(j).then(()=>{}).catch(be=>{console.error("[App] Error clearing saved data after submission:",be)})}},qt=()=>{Ei.publish("form:close",{feedbackConfigurationId:E()||"",feedbackIdentifier:N(),timestamp:Date.now()}),Se()?.()},Vt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik00MDQuOCwyMTAuOEMzMDkuMSwyNDEuOSwyMzQsMzE3LjYsMjAzLjIsNDEzLjRjLTYxLjMsMTkwLjEsNDcuOSwzNjguNSwyMTIuNSw0MjBjNS43LDEuOCwxMS42LTIuNSwxMS42LTguNQoJCXYtNjkuN2MwLTMuNi0yLjItNi44LTUuNi04LjJDMzMyLjQsNzEwLjcsMjY5LjMsNjIzLDI2OS4zLDUyMC44YzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45djQ3LjJjMCwxMS4xLDMuOSwyMC42LDE1LDIwLjZsNDUuNi0wLjNoNDEuN3YtMC4yaDM0LjEKCQljNC4yLDAsNy42LTMuNCw3LjYtNy42di0zMy44Qzg0MS4xLDMwNC45LDYzMS40LDEzNy4yLDQwNC44LDIxMC44eiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTI2NSw3MTYuOGwtMTUuNCwxMTYuNmMtMC40LDIuOCwyLjUsNC45LDUsMy43TDM2OCw3ODUuN2MyLjYtMS4yLDIuOC00LjcsMC41LTYuMmwtOTcuOS02NS4yCgkJQzI2OC40LDcxMi44LDI2NS40LDcxNC4xLDI2NSw3MTYuOHoiLz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik02NjYuMyw1NjMuM2gtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY3MC45LDU2MS4yLDY2OC44LDU2My4zLDY2Ni4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTQ0NC4yLDU2My4zaC03Ni41Yy0zLjEsMC01LjUtMi41LTUuNS01LjV2LTc2LjVjMC0zLjEsMi41LTUuNSw1LjUtNS41aDc2LjVjMy4xLDAsNS41LDIuNSw1LjUsNS41djc2LjUKCQlDNDQ5LjcsNTYwLjgsNDQ3LjIsNTYzLjMsNDQ0LjIsNTYzLjN6Ii8+Cgk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNNTU1LjMsNTYzLjNoLTc3LjZjLTIuOCwwLTUtMi4zLTUtNXYtNzcuNmMwLTIuOCwyLjMtNSw1LTVoNzcuNmMyLjgsMCw1LDIuMyw1LDV2NzcuNgoJCUM1NjAuMyw1NjEsNTU4LDU2My4zLDU1NS4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTY4My45LDI1NC45Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZjNjIuNS0xMDEuNiwxODcuNy0xNDEuNCwyOTUuMS0xMDAuMSIvPgo8L2c+Cjwvc3ZnPgo=",Et="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zODEuOSwxOTkuNmMtOTUuNywzMS4xLTE3MC44LDEwNi44LTIwMS43LDIwMi42Yy02MS4zLDE5MC4xLDQ3LjksMzY4LjUsMjEyLjUsNDIwYzUuNywxLjgsMTEuNi0yLjUsMTEuNi04LjUKCQlWNzQ0YzAtMy42LTIuMi02LjgtNS42LTguMmMtODkuMy0zNi4zLTE1Mi40LTEyNC4xLTE1Mi40LTIyNi4yYzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45VjUzMWMwLDExLjEsMy45LDIwLjYsMTUsMjAuNmw0NS42LTAuM2g0MS43di0wLjJoMzQuMQoJCWM0LjIsMCw3LjYtMy40LDcuNi03LjZ2LTMzLjhDODE4LjIsMjkzLjcsNjA4LjUsMTI2LDM4MS45LDE5OS42eiIvPgoJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI0Mi4xLDcwNS42bC0xNS40LDExNi42Yy0wLjQsMi44LDIuNSw0LjksNSwzLjdMMzQ1LDc3NC41YzIuNi0xLjIsMi44LTQuNywwLjUtNi4yTDI0Ny42LDcwMwoJCUMyNDUuNCw3MDEuNiwyNDIuNCw3MDIuOSwyNDIuMSw3MDUuNnoiLz4KCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02NDMuNCw1NTIuMWgtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY0Ny45LDU1MCw2NDUuOSw1NTIuMSw2NDMuNCw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik00MjEuMiw1NTIuMWgtNzYuNWMtMy4xLDAtNS41LTIuNS01LjUtNS41VjQ3MGMwLTMuMSwyLjUtNS41LDUuNS01LjVoNzYuNWMzLjEsMCw1LjUsMi41LDUuNSw1LjV2NzYuNQoJCUM0MjYuOCw1NDkuNiw0MjQuMyw1NTIuMSw0MjEuMiw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDQiIGQ9Ik01MzIuMyw1NTIuMWgtNzcuNmMtMi44LDAtNS0yLjMtNS01di03Ny42YzAtMi44LDIuMy01LDUtNWg3Ny42YzIuOCwwLDUsMi4zLDUsNVY1NDcKCQlDNTM3LjQsNTQ5LjgsNTM1LjEsNTUyLjEsNTMyLjMsNTUyLjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjYxLDI0My42Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZDMzQ1LjIsMjc5LDQ3MC40LDIzOS4yLDU3Ny45LDI4MC41Ii8+CjwvZz4KPC9zdmc+Cg==";let _t=ee();ve(()=>(z(E()),z(N()),z(W()),z(C()),z(Y()),z(H()),z($e()),l(V),l(Q)),()=>{En(async()=>{Ei.publish("form:view",{feedbackConfigurationId:E()||"",feedbackIdentifier:N()||"",timestamp:Date.now()});const I=`${W()||"default"}_${N()||"default"}`;if(C()==="retain"){$(ie,!0);try{const j=await Gz(I);j&&j.length>0&&B(j)}catch(j){console.error("[App] Error loading saved data:",j)}finally{$(ie,!1)}}else if(C()==="reset")try{await Tb(I)}catch(j){console.error("[App] Error clearing saved data:",j)}xe(),window.updateEncatchForm=j=>{if(j.theme&&oe(j.theme),j.currentMode&&J(j.currentMode),j.currentLanguage&&(Y(j.currentLanguage),Y()?.value&&Ye(Y().value)),j.questions&&G(j.questions),j.questionLanguages&&F(j.questionLanguages),j.otherConfigurationProperties&&K(j.otherConfigurationProperties),j.welcomeScreenProperties&&H(j.welcomeScreenProperties),j.endScreenProperties){const be=$e()?.isEnabled,De=j.endScreenProperties.isEnabled;if(be&&!De){const Ke=l(V).findIndex(We=>We.id==="thankyou_screen");Ke===l(Q)&&$(Q,Math.max(0,Ke-1))}$e(j.endScreenProperties)}if(j.sections){const be=[...j.sections],De=j.welcomeScreenProperties?.isEnabled??H()?.isEnabled??!0,Ke=j.endScreenProperties?.isEnabled??$e()?.isEnabled??!0;De&&!be.some(We=>We.id==="welcome_screen")&&be.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),Ke&&!be.some(We=>We.id==="thankyou_screen")&&be.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),$(V,be),De&&l(Q)===0&&$(Q,0)}j.translations&&(Ie(j.translations),Y()?.value&&Ye(Y().value)),j.themeSettings&&fe(j.themeSettings),j.onClose&&Se(j.onClose)}})}),ve(()=>(z(fe()),z(J())),()=>{if(fe()&&fe().themes&&J()&&fe().themes[J()]){const I=document.documentElement,j=fe().themes[J()];j&&(I.style.setProperty("--brand-color",j.brandColor||"#2563eb"),I.style.setProperty("--text-color",j.textColor||"#333"),I.style.setProperty("--background-color",j.backgroundColor||"#ffffff"))}}),ve(()=>z(J()),()=>{$(m,J()==="dark"?Vt:Et)}),ve(()=>(z(Y()),z(H()),z($e()),z(K())),()=>{if(Y()&&Y().value){const I=Y().value;Ye(I),H()?.translations?.[I]&&H({...H(),welcomeFields:{...H().welcomeFields,...H().translations[I]}}),$e()?.translations?.[I]&&$e({...$e(),endFields:{...$e().endFields,...$e().translations[I]}}),K()?.translations?.[I]&&K({...K(),otherFields:{...K().otherFields,...K().translations[I]}})}}),ve(()=>(z(ke()),z(H()),z($e()),l(Q),l(le),l(Ce)),()=>{const I=[...ke()];let j=!1;const be=I.some(vt=>vt.id==="welcome_screen"),De=I.some(vt=>vt.id==="thankyou_screen"),Ke=H()?.isEnabled??!0,We=$e()?.isEnabled??!0;if(Ke&&!be)I.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),j=!0;else if(!Ke&&be){const vt=I.filter(Wt=>Wt.id!=="welcome_screen");vt.length!==I.length&&($(V,vt),j=!0)}if(We&&!De)I.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),j=!0;else if(!We&&De){const vt=I.filter(Wt=>Wt.id!=="thankyou_screen");if(vt.length!==I.length){const Wt=I.findIndex(ur=>ur.id==="thankyou_screen");(l(Q)===Wt||l(Q)>=vt.length)&&$(Q,Math.max(0,vt.length-1)),$(V,vt),j=!0}}j&&($(V,I),l(le)||(!l(Ce)&&!(!We&&De)&&$(Q,0),$(le,!0)))}),ve(()=>(z($e()),l(Q),l(V)),()=>{$(p,$e()?.isEnabled&&l(Q)===l(V).length-1)}),ve(()=>l(V),()=>{$(g,l(V).filter(I=>I.id!=="welcome_screen"&&I.id!=="thankyou_screen").length===1)}),ve(()=>(l(Q),l(V)),()=>{$(h,l(Q)===0&&l(V)[0]?.id==="welcome_screen")}),ve(()=>(l(V),l(Q)),()=>{$(b,l(V)[l(Q)]?.id==="thankyou_screen")}),ve(()=>l(Q),()=>{$(y,l(Q)===0)}),ve(()=>(l(V),l(Q)),()=>{$(k,l(V)[0]?.id==="welcome_screen"&&l(Q)===1)}),ve(()=>(l(V),l(Q)),()=>{$(v,(()=>{const I=l(V).findIndex(j=>j.id==="thankyou_screen");return I!==-1?l(Q)===I-1:l(Q)===l(V).length-1})())}),ve(()=>(l(V),l(Q),l(h),l(b),u(),z(G())),()=>{$(x,(()=>{const I=l(V)[l(Q)];if(!I||l(h)||l(b))return!1;const j=I.questionIds||[],be=u().questions.reduce((De,Ke)=>(De[Ke.questionId]=Ke,De),{});for(const De of j){const Ke=G()[De],We=!!be[De];if(Ke?.required&&!We)return!0}return!1})())}),ve(()=>(l(Q),l(V)),()=>{l(Q)>=0&&l(Q)<l(V).length}),ve(()=>(u(),s.QuestionTypes),()=>{$(S,u().questions.reduce((I,j)=>{if(j.answer)switch(j.type){case s.QuestionTypes.RATING:I[j.questionId]=j.answer.rating;break;case s.QuestionTypes.NPS:I[j.questionId]=j.answer.nps;break;case s.QuestionTypes.LONG_TEXT:I[j.questionId]=j.answer.longText;break;case s.QuestionTypes.SHORT_ANSWER:I[j.questionId]=j.answer.shortAnswer;break;case s.QuestionTypes.SINGLE_CHOICE:I[j.questionId]=j.answer.singleChoice;break;case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:I[j.questionId]=[...j.answer.multipleChoiceMultiple||[]];break;case s.QuestionTypes.NESTED_SELECTION:I[j.questionId]=[...j.answer.nestedSelection||[]];break;default:I[j.questionId]=j.answer}else I[j.questionId]=null;return I},{}))}),ve(()=>u(),()=>{u();const I=it();$(Z,I)}),ve(()=>(z(C()),z(W()),z(N()),l(ie),l(_t),u()),()=>{if(C()==="retain"&&W()&&N()&&!l(ie)){const I=`${W()}_${N()}`;l(_t)&&clearTimeout(l(_t)),$(_t,setTimeout(()=>{Qz(I,u().questions).then(()=>{}).catch(j=>{console.error("[App] Error auto-saving to IndexedDB:",j)})},500))}}),ve(()=>z(G()),()=>{G()&&xe()}),fr(),er();var yt=Hz(),Ir=R(yt);{var Mr=I=>{var j=Jz();T(I,j)},vn=I=>{var j=Kz(),be=Te(j);{var De=or=>{var ar=Bz(),Jr=R(ar);Fz(Jr,{get value(){return l(Z)},max:100,class:"h-full w-full rounded-none bg-muted/40 [&_[data-slot=progress-indicator]]:bg-primary [&_[data-slot=progress-indicator]]:transition-all [&_[data-slot=progress-indicator]]:duration-300 [&_[data-slot=progress-indicator]]:ease-in-out"}),L(ar),T(or,ar)};ae(be,or=>{z(fe()),l(h),l(b),M(()=>fe()?.featureSettings?.progressBar&&!l(h)&&!l(b))&&or(De)})}var Ke=de(be,2),We=R(Ke);{let or=Ae(()=>(z(Y()),M(()=>Y()?.value||"en"))),ar=Ae(()=>(z(fe()),M(()=>fe()?.themes||null))),Jr=Ae(()=>l(p)===!0);Pz(We,{get questions(){return G()},get sections(){return l(V)},get formData(){return l(S)},get errors(){return l(_e)},onChange:ht,get currentMode(){return J()},get currentSectionIndex(){return l(Q)},get otherConfigurationProperties(){return K()},get welcomeScreenProperties(){return H()},get endScreenProperties(){return $e()},get currentLanguage(){return l(or)},get themeSettings(){return l(ar)},onClose:qt,get isScreenVisible(){return l(Jr)},get apiKey(){return ne()},get feedbackConfigurationId(){return W()},get hostUrl(){return re()},get identifier(){return N()}})}L(Ke);var vt=de(Ke,2);{let or=Ae(()=>(z(Y()),M(()=>Y()?.value||"en"))),ar=Ae(()=>(z(fe()),M(()=>fe()?.themes||null)));Zz(vt,{get isWelcomeScreen(){return l(h)},get isThankYouScreen(){return l(b)},get isFirstSection(){return l(y)},get isFirstPageAfterWelcome(){return l(k)},get isLastSection(){return l(v)},get welcomeScreenProperties(){return H()},get endScreenProperties(){return $e()},get otherConfigurationProperties(){return K()},get currentMode(){return J()},get currentLanguage(){return l(or)},handlePrevious:Ue,handleNext:Pt,handleSubmit:Ct,onClose:qt,get themeSettings(){return l(ar)},get nextButtonDisabled(){return l(x)},get submitButtonDisabled(){return l(x)},get isSinglePageSurvey(){return l(g)}})}var Wt=de(vt,2);{var ur=or=>{var ar=Yz(),Jr=R(ar);_r(2),L(ar),je(()=>si(Jr,"src",l(m))),T(or,ar)};ae(Wt,or=>{z(fe()),M(()=>fe()?.featureSettings?.showBranding)&&or(ur)})}T(I,j)};ae(Ir,I=>{l(ie)?I(Mr):I(vn,!1)})}L(yt),je(()=>fn(yt,1,`encatch-form ${J()==="dark"?"theme-dark dark":"theme-light"}`)),T(i,yt),Be(),d()}var Xz=te('<div class="fixed inset-0 transition-opacity duration-300"></div>'),e4=te('<!> <div id="encatch-feedback-popup" class="rounded-xl shadow-2xl overflow-hidden"><!> <!></div>',1),t4=te('<link rel="stylesheet" href="http://127.0.0.1:5500/encatch-typescript/packages/web-sdk/public/web-form-engine-core.css"/> <!>',1);function Ob(i,n){Je(n,!1);const u=ee(),c=ee(),d=Qv();let m=w(n,"themeMode",8,"light"),p=w(n,"feedbackConfiguration",8,null),g=w(n,"apiKey",8,""),h=w(n,"hostUrl",8,"");w(n,"deviceInfo",8,null),w(n,"sessionId",8,""),w(n,"userInfo",8,null);let b=w(n,"language",8,"en"),y=w(n,"configurationData",8,null),k=w(n,"onClose",8,void 0),v=w(n,"trackPopupHeight",8,void 0),x=w(n,"feedbackConfigId",8,void 0),S=w(n,"identifier",8,void 0),O=ee(document.documentElement.clientWidth),U=ee(!1),B=ee(null),oe=ee(),J;const Y=()=>{if(l(oe)){const fe=l(oe).querySelector("#section-container");if(fe){const Se=window.innerHeight*.75,me=fe.clientHeight,ne=84,re=60,W=Math.min(me+ne+re,Se);l(oe).style.transition.includes("height")||Rh(oe,l(oe).style.transition="height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"),Rh(oe,l(oe).style.height=`${W}px`),fe.style.overflowY=me+ne+re>Se?"auto":"hidden"}}},G=()=>{$(O,document.documentElement.clientWidth)},F=()=>{d.clearResponses(),$(U,!1),setTimeout(()=>{k()?.()},300)},K=fe=>{const Se={position:"fixed",width:l(u),"max-width":l(u),height:"30%",transition:"transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease","transform-origin":"center center","will-change":"transform, opacity"};switch(fe){case"top-left":return{...Se,top:"12px",left:"12px",transform:"translate(0, 0)"};case"top-center":return{...Se,top:"12px",left:"50%",transform:"translate(-50%, 0)"};case"top-right":return{...Se,top:"12px",right:"12px",transform:"translate(0, 0)"};case"center-left":return{...Se,top:"50%",left:"12px",transform:"translateY(-50%)"};case"center":return{...Se,top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)"};case"center-right":return{...Se,top:"50%",right:"12px",transform:"translateY(-50%)"};case"bottom-left":return{...Se,bottom:"12px",left:"12px",transform:"translate(0, 0)"};case"bottom-center":return{...Se,bottom:"12px",left:"50%",transform:"translate(-50%, 0)"};case"bottom-right":return{...Se,bottom:"12px",right:"12px",transform:"translate(0, 0)"};case"bottom-full":return{...Se,bottom:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"top-full":return{...Se,top:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"full":return{...Se,top:"0",left:"0",width:"100%","max-width":"100%",height:"100%",transform:"translate(0, 0)"};default:return Se}},H=fe=>Object.entries(fe).map(([Se,me])=>`${Se}: ${me}`).join("; ");En(()=>{window.addEventListener("resize",G),setTimeout(()=>{$(U,!0)},100),J=window.setInterval(Y,5e3),v()&&v()(Y),requestAnimationFrame(()=>{setTimeout(()=>Y(),0)})}),bo(()=>{window.removeEventListener("resize",G),J&&window.clearInterval(J)}),ve(()=>l(O),()=>{$(u,l(O)<=768?"95%":"600px")}),ve(()=>z(y()),()=>{$(B,y())}),ve(()=>l(B),()=>{l(B)?.feedbackIdentifier}),ve(()=>z(p()),()=>{$(c,p()&&p().appearanceProperties&&p().appearanceProperties.selectedPosition?K(p().appearanceProperties.selectedPosition):{})}),fr(),er();var $e=t4(),Ie=de(Te($e),2);{var ke=fe=>{var Se=e4(),me=Te(Se);{var ne=Z=>{var ie=Xz();je(()=>$o(ie,`background-color: ${z(p()),z(m()),M(()=>p().appearanceProperties.themes[m()].overlayColor)??""}; z-index: 1000; opacity: ${l(U)?"0.4":"0"};`)),T(Z,ie)};ae(me,Z=>{z(p()),M(()=>p()?.appearanceProperties?.featureSettings?.darkOverlay)&&Z(ne)})}var re=de(me,2),W=R(re);{var N=Z=>{Ft(Z,{variant:"ghost",size:"icon",class:"absolute top-3 right-3 z-10 h-8 w-8 rounded border-none bg-background text-primary hover:bg-accent hover:text-accent-foreground transition-all duration-200 active:scale-95",onclick:F,"aria-label":"Close popup",children:(ie,Q)=>{qv(ie,{size:20,stroke:2})},$$slots:{default:!0}})};ae(W,Z=>{z(p()),M(()=>p()?.appearanceProperties?.featureSettings?.closeButton)&&Z(N)})}var C=de(W,2);{var E=Z=>{{let ie=Ae(()=>({value:b(),label:b()})),Q=Ae(()=>(l(B),M(()=>l(B)?.questionnaireFields.questions||{}))),Ce=Ae(()=>(l(B),M(()=>l(B)?.questionnaireFields.selectedLanguages||[]))),_e=Ae(()=>(l(B),M(()=>l(B)?.questionnaireFields.translations||{}))),V=Ae(()=>(l(B),M(()=>l(B)?.otherConfigurationProperties))),le=Ae(()=>(l(B),M(()=>l(B)?.welcomeScreenProperties))),Ne=Ae(()=>(l(B),M(()=>l(B)?.endScreenProperties))),xe=Ae(()=>(l(B),M(()=>l(B)?.questionnaireFields.sections||[])));ol(Z,{get theme(){return z(p()),M(()=>p().appearanceProperties.themes)},get themeSettings(){return z(p()),M(()=>p().appearanceProperties)},get currentMode(){return m()},get currentLanguage(){return l(ie)},get questions(){return l(Q)},get questionLanguages(){return l(Ce)},get translations(){return l(_e)},get otherConfigurationProperties(){return l(V)},get welcomeScreenProperties(){return l(le)},get endScreenProperties(){return l(Ne)},get sections(){return l(xe)},onSectionChange:()=>{requestAnimationFrame(()=>{setTimeout(()=>Y(),0)})},onClose:F,get apiKey(){return g()},get hostUrl(){return h()},get feedbackConfigId(){return x()},get identifier(){return S()}})}};ae(C,Z=>{z(p()),l(B),M(()=>p()?.appearanceProperties&&l(B))&&Z(E)})}L(re),Ur(re,Z=>$(oe,Z),()=>l(oe)),je(Z=>$o(re,`${Z??""}; background-color: ${z(p()),z(m()),M(()=>p()?.appearanceProperties?.themes?.[m()]?.overlayColor||"transparent")??""}; z-index: 1001;`),[()=>(l(c),M(()=>H(l(c))))]),T(fe,Se)};ae(Ie,fe=>{fe(ke)})}T(i,$e),Be()}function Eb(i,n){Je(n,!1);let u=w(n,"themeMode",12,"light"),c=w(n,"feedbackConfiguration",12,null),d=w(n,"apiKey",12,""),m=w(n,"hostUrl",12,""),p=w(n,"deviceInfo",12,null),g=w(n,"sessionId",12,""),h=w(n,"userInfo",12,null),b=w(n,"language",12,"en"),y=w(n,"configurationData",12,null),k=w(n,"onClose",12,void 0),v=w(n,"trackPopupHeight",12,void 0),x=w(n,"feedbackConfigId",12,void 0),S=w(n,"identifier",12,void 0);var O={get themeMode(){return u()},set themeMode(U){u(U),at()},get feedbackConfiguration(){return c()},set feedbackConfiguration(U){c(U),at()},get apiKey(){return d()},set apiKey(U){d(U),at()},get hostUrl(){return m()},set hostUrl(U){m(U),at()},get deviceInfo(){return p()},set deviceInfo(U){p(U),at()},get sessionId(){return g()},set sessionId(U){g(U),at()},get userInfo(){return h()},set userInfo(U){h(U),at()},get language(){return b()},set language(U){b(U),at()},get configurationData(){return y()},set configurationData(U){y(U),at()},get onClose(){return k()},set onClose(U){k(U),at()},get trackPopupHeight(){return v()},set trackPopupHeight(U){v(U),at()},get feedbackConfigId(){return x()},set feedbackConfigId(U){x(U),at()},get identifier(){return S()},set identifier(U){S(U),at()}};return Ob(i,{get themeMode(){return u()},get feedbackConfiguration(){return c()},get apiKey(){return d()},get hostUrl(){return m()},get deviceInfo(){return p()},get sessionId(){return g()},get userInfo(){return h()},get language(){return b()},get configurationData(){return y()},get onClose(){return k()},get trackPopupHeight(){return v()},get feedbackConfigId(){return x()},get identifier(){return S()}}),Be(O)}customElements.define("encatch-form",Lv(Eb,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{}},[],[],!0));var r4=te('<div class="encatch-scale-wrapper"><!></div>');function Pb(i,n){Je(n,!1);const u=Qv();let c=w(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),d=w(n,"currentMode",12,"light"),m=w(n,"currentLanguage",28,()=>({value:"en",label:"en",isFixed:!0})),p=w(n,"questions",28,()=>({})),g=w(n,"questionLanguages",28,()=>[]),h=w(n,"otherConfigurationProperties",12,null),b=w(n,"welcomeScreenProperties",12,null),y=w(n,"endScreenProperties",12,null),k=w(n,"translations",28,()=>({})),v=w(n,"sections",28,()=>[]),x=w(n,"themeSettings",12,null),S=w(n,"onClose",12,void 0),O=w(n,"onSectionChange",12,void 0),U=w(n,"apiKey",12,void 0),B=w(n,"hostUrl",12,void 0),oe=w(n,"feedbackConfigId",12,void 0),J=w(n,"identifier",12,void 0),Y=w(n,"cssLink",12,void 0),G=w(n,"scale",12,100),F=w(n,"persistMode",12,"none"),K=w(n,"instanceId",12,void 0),H=ee(!1),$e=ee(!1),Ie=ee();const ke=N=>{if(!N)return null;let C=N;for(;C;){if(C instanceof ShadowRoot)return C;C=C.parentNode}return null},fe=N=>{const C=new CSSStyleSheet,E=N/100;return C.replaceSync(`
|
|
279
279
|
.encatch-scale-wrapper {
|
|
280
|
-
zoom: ${
|
|
280
|
+
zoom: ${E} !important;
|
|
281
281
|
}
|
|
282
|
-
`),
|
|
282
|
+
`),C};let Se=ee();En(()=>{Y()||$(H,!0)}),bo(()=>{u.clearResponses()}),ve(()=>(l(Ie),l(Se),z(G())),()=>{if(l(Ie)){const N=ke(l(Ie));if(N&&l(Se)){const C=N.adoptedStyleSheets.indexOf(l(Se));C>-1&&N.adoptedStyleSheets.splice(C,1)}$(Se,fe(G())),N&&(N.adoptedStyleSheets=[...N.adoptedStyleSheets,l(Se)])}}),ve(()=>(l(Ie),z(Y()),l(H),l($e)),()=>{l(Ie)&&Y()&&!l(H)&&!l($e)&&setTimeout(()=>{const N=ke(l(Ie)),C=document.createElement("link");C.rel="stylesheet",C.href=Y(),C.onload=()=>{$(H,!0)},C.onerror=()=>{console.error("[EncatchApp] Failed to load CSS"),$($e,!0)},N?N.appendChild(C):document.head.appendChild(C)},0)}),fr();var me={get theme(){return c()},set theme(N){c(N),at()},get currentMode(){return d()},set currentMode(N){d(N),at()},get currentLanguage(){return m()},set currentLanguage(N){m(N),at()},get questions(){return p()},set questions(N){p(N),at()},get questionLanguages(){return g()},set questionLanguages(N){g(N),at()},get otherConfigurationProperties(){return h()},set otherConfigurationProperties(N){h(N),at()},get welcomeScreenProperties(){return b()},set welcomeScreenProperties(N){b(N),at()},get endScreenProperties(){return y()},set endScreenProperties(N){y(N),at()},get translations(){return k()},set translations(N){k(N),at()},get sections(){return v()},set sections(N){v(N),at()},get themeSettings(){return x()},set themeSettings(N){x(N),at()},get onClose(){return S()},set onClose(N){S(N),at()},get onSectionChange(){return O()},set onSectionChange(N){O(N),at()},get apiKey(){return U()},set apiKey(N){U(N),at()},get hostUrl(){return B()},set hostUrl(N){B(N),at()},get feedbackConfigId(){return oe()},set feedbackConfigId(N){oe(N),at()},get identifier(){return J()},set identifier(N){J(N),at()},get cssLink(){return Y()},set cssLink(N){Y(N),at()},get scale(){return G()},set scale(N){G(N),at()},get persistMode(){return F()},set persistMode(N){F(N),at()},get instanceId(){return K()},set instanceId(N){K(N),at()}};er();var ne=r4(),re=R(ne);{var W=N=>{ol(N,{get theme(){return c()},get currentMode(){return d()},get currentLanguage(){return m()},get questions(){return p()},get questionLanguages(){return g()},get otherConfigurationProperties(){return h()},get welcomeScreenProperties(){return b()},get endScreenProperties(){return y()},get translations(){return k()},get sections(){return v()},get themeSettings(){return x()},get onClose(){return S()},get onSectionChange(){return O()},get apiKey(){return U()},get hostUrl(){return B()},get feedbackConfigId(){return oe()},get identifier(){return J()},get persistMode(){return F()},get instanceId(){return K()}})};ae(re,N=>{l(H)&&N(W)})}return L(ne),Ur(ne,N=>$(Ie,N),()=>l(Ie)),T(i,ne),Be(me)}customElements.define("encatch-app",Lv(Pb,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{},scale:{},persistMode:{},instanceId:{}},[],[],!0));const n4=Eb,i4=Pb;o.App=ol,o.EncatchAppElement=i4,o.EncatchFormElement=n4,o.PopupUi=Ob,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(Li,Li.exports)),Li.exports}var Pk=Ek();const Ck=Db({__proto__:null},[Pk]);tn.EncatchPreview=Wb,tn.useEncatchFormEvent=Qb,tn.useEncatchFormEventAll=Gb,Object.defineProperty(tn,Symbol.toStringTag,{value:"Module"})}));
|