@encatch/ws-react 0.0.7 → 0.0.9
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/ws-react.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Nn,
|
|
1
|
+
(function(Nn,ji){typeof exports=="object"&&typeof module<"u"?ji(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],ji):(Nn=typeof globalThis<"u"?globalThis:Nn||self,ji(Nn.WsReact={},Nn.React))})(this,(function(Nn,ji){"use strict";function Pb(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 Cb(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 So={exports:{}},Ti={};/**
|
|
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 ic;function Ub(){if(ic)return
|
|
9
|
+
*/var ic;function Ub(){if(ic)return Ti;ic=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 w in t)w!=="key"&&(a[w]=t[w])}else a=t;return t=a.ref,{$$typeof:e,type:s,key:f,ref:t!==void 0?t:null,props:a}}return Ti.Fragment=r,Ti.jsx=o,Ti.jsxs=o,Ti}var Oi={};/**
|
|
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 oc;function
|
|
17
|
+
*/var oc;function Db(){return oc||(oc=1,process.env.NODE_ENV!=="production"&&(function(){function e(ge){if(ge==null)return null;if(typeof ge=="function")return ge.$$typeof===ga?null:ge.displayName||ge.name||null;if(typeof ge=="string")return ge;switch(ge){case ze:return"Fragment";case pt:return"Profiler";case De:return"StrictMode";case or:return"Suspense";case Wr:return"SuspenseList";case tl:return"Activity"}if(typeof ge=="object")switch(typeof ge.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),ge.$$typeof){case K:return"Portal";case ct:return(ge.displayName||"Context")+".Provider";case ut:return(ge._context.displayName||"Context")+".Consumer";case vt:var Be=ge.render;return ge=ge.displayName,ge||(ge=Be.displayName||Be.name||"",ge=ge!==""?"ForwardRef("+ge+")":"ForwardRef"),ge;case Ft:return Be=ge.displayName||null,Be!==null?Be:e(ge.type)||"Memo";case pa:Be=ge._payload,ge=ge._init;try{return e(ge(Be))}catch{}}return null}function r(ge){return""+ge}function o(ge){try{r(ge);var Be=!1}catch{Be=!0}if(Be){Be=console;var zt=Be.error,Dt=typeof Symbol=="function"&&Symbol.toStringTag&&ge[Symbol.toStringTag]||ge.constructor.name||"Object";return zt.call(Be,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Dt),r(ge)}}function s(ge){if(ge===ze)return"<>";if(typeof ge=="object"&&ge!==null&&ge.$$typeof===pa)return"<...>";try{var Be=e(ge);return Be?"<"+Be+">":"<...>"}catch{return"<...>"}}function t(){var ge=Xi.A;return ge===null?null:ge.getOwner()}function a(){return Error("react-stack-top-frame")}function f(ge){if(pn.call(ge,"key")){var Be=Object.getOwnPropertyDescriptor(ge,"key").get;if(Be&&Be.isReactWarning)return!1}return ge.key!==void 0}function w(ge,Be){function zt(){Ln||(Ln=!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)",Be))}zt.isReactWarning=!0,Object.defineProperty(ge,"key",{get:zt,configurable:!0})}function Z(){var ge=e(this.type);return Qr[ge]||(Qr[ge]=!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.")),ge=this.props.ref,ge!==void 0?ge:null}function H(ge,Be,zt,Dt,gt,Ir,Zn,di){return zt=Ir.ref,ge={$$typeof:he,type:ge,key:Be,props:Ir,_owner:gt},(zt!==void 0?zt:null)!==null?Object.defineProperty(ge,"ref",{enumerable:!1,get:Z}):Object.defineProperty(ge,"ref",{enumerable:!1,value:null}),ge._store={},Object.defineProperty(ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ge,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ge,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Zn}),Object.defineProperty(ge,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:di}),Object.freeze&&(Object.freeze(ge.props),Object.freeze(ge)),ge}function pe(ge,Be,zt,Dt,gt,Ir,Zn,di){var Vt=Be.children;if(Vt!==void 0)if(Dt)if(rl(Vt)){for(Dt=0;Dt<Vt.length;Dt++)ce(Vt[Dt]);Object.freeze&&Object.freeze(Vt)}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 ce(Vt);if(pn.call(Be,"key")){Vt=e(ge);var Zt=Object.keys(Be).filter(function(fi){return fi!=="key"});Dt=0<Zt.length?"{key: someKey, "+Zt.join(": ..., ")+": ...}":"{key: someKey}",to[Vt+Dt]||(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} />`,At,Gt,Zt,Gt),ro[Gt+At]=!0)}if(Gt=null,zt!==void 0&&(o(zt),Gt=""+zt),f(Be)&&(o(Be.key),Gt=""+Be.key),"key"in Be){zt={};for(var Rn in Be)Rn!=="key"&&(zt[Rn]=Be[Rn])}else zt=Be;return Gt&&w(zt,typeof pe=="function"?pe.displayName||pe.name||"Unknown":pe),K(pe,Gt,Ir,gt,t(),zt,Zn,di)}function le(pe){typeof pe=="object"&&pe!==null&&pe.$$typeof===he&&pe._store&&(pe._store.validated=1)}var Re=Ti,he=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),Ie=Symbol.for("react.fragment"),Ae=Symbol.for("react.strict_mode"),pt=Symbol.for("react.profiler"),ut=Symbol.for("react.consumer"),ct=Symbol.for("react.context"),vt=Symbol.for("react.forward_ref"),or=Symbol.for("react.suspense"),Wr=Symbol.for("react.suspense_list"),Ft=Symbol.for("react.memo"),pa=Symbol.for("react.lazy"),rl=Symbol.for("react.activity"),ga=Symbol.for("react.client.reference"),eo=Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pn=Object.prototype.hasOwnProperty,nl=Array.isArray,Ln=console.createTask?console.createTask:function(){return null};Re={react_stack_bottom_frame:function(pe){return pe()}};var Mn,Vr={},Sr=Re.react_stack_bottom_frame.bind(Re,a)(),to=Ln(s(a)),ro={};Ei.Fragment=Ie,Ei.jsx=function(pe,Be,zt,At,gt){var Ir=1e4>eo.recentlyCreatedOwnerStacks++;return me(pe,Be,zt,!1,At,gt,Ir?Error("react-stack-top-frame"):Sr,Ir?Ln(s(pe)):to)},Ei.jsxs=function(pe,Be,zt,At,gt){var Ir=1e4>eo.recentlyCreatedOwnerStacks++;return me(pe,Be,zt,!0,At,gt,Ir?Error("react-stack-top-frame"):Sr,Ir?Ln(s(pe)):to)}})()),Ei}var ac;function Db(){return ac||(ac=1,process.env.NODE_ENV==="production"?So.exports=Ub():So.exports=Ab()),So.exports}var Lb=Db();typeof window<"u"&&Promise.resolve().then(()=>zk).then(({EncatchAppElement:e})=>{try{customElements.get("encatch-app")||customElements.define("encatch-app",e)}catch(r){console.debug("Custom element registration:",r)}});const Mb=({formData:e,cssLink:r,scale:o=1})=>Lb.jsx("encatch-app",{...e,cssLink:r,scale:o});var Pi={exports:{}};const sc=Object.freeze({status:"aborted"});function A(e,r,o){function s(w,q){var K;Object.defineProperty(w,"_zod",{value:w._zod??{},enumerable:!1}),(K=w._zod).traits??(K.traits=new Set),w._zod.traits.add(e),r(w,q);for(const me in f.prototype)me in w||Object.defineProperty(w,me,{value:f.prototype[me].bind(w)});w._zod.constr=f,w._zod.def=q}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:e});function f(w){var q;const K=o?.Parent?new a:this;s(K,w),(q=K._zod).deferred??(q.deferred=[]);for(const me of K._zod.deferred)me();return K}return Object.defineProperty(f,"init",{value:s}),Object.defineProperty(f,Symbol.hasInstance,{value:w=>o?.Parent&&w instanceof o.Parent?!0:w?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}const uc=Symbol("zod_brand");class jn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Io extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const zo={};function ir(e){return e&&Object.assign(zo,e),zo}function Zb(e){return e}function Rb(e){return e}function qb(e){}function Fb(e){throw new Error}function Wb(e){}function Ga(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 ge(e,r="|"){return e.map(o=>Ve(o)).join(r)}function No(e,r){return typeof r=="bigint"?r.toString():r}function Ci(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function Tn(e){return e==null}function jo(e){const r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}function lc(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(".","")),w=Number.parseInt(r.toFixed(a).replace(".",""));return f%w/10**a}const cc=Symbol("evaluating");function it(e,r,o){let s;Object.defineProperty(e,r,{get(){if(s!==cc)return s===void 0&&(s=cc,s=o()),s},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function To(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Er(e,r,o){Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function fn(...e){const r={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(r,s)}return Object.defineProperties({},r)}function Vb(e){return fn(e._zod.def)}function Qb(e,r){return r?r.reduce((o,s)=>o?.[s],e):e}function Gb(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 Jb(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 Ja(e){return JSON.stringify(e)}const Ba="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function oi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const dc=Ci(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function On(e){if(oi(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(oi(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Oo(e){return On(e)?{...e}:Array.isArray(e)?[...e]:e}function Bb(e){let r=0;for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}const Yb=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}`)}},Eo=new Set(["string","number","symbol"]),fc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function mn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xr(e,r,o){const s=new e._zod.constr(r??e._zod.def);return(!r||o?.parent)&&(s._zod.parent=e),s}function ae(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 Kb(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 Ve(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function mc(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const pc={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]},gc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function vc(e,r){const o=e._zod.def,s=fn(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 Er(this,"shape",t),t},checks:[]});return xr(e,s)}function hc(e,r){const o=e._zod.def,s=fn(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 Er(this,"shape",t),t},checks:[]});return xr(e,s)}function bc(e,r){if(!On(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=fn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...r};return Er(this,"shape",a),a},checks:[]});return xr(e,t)}function yc(e,r){if(!On(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 Er(this,"shape",s),s},checks:e._zod.def.checks};return xr(e,o)}function $c(e,r){const o=fn(e._zod.def,{get shape(){const s={...e._zod.def.shape,...r._zod.def.shape};return Er(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:[]});return xr(e,o)}function _c(e,r,o){const s=fn(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 Er(this,"shape",a),a},checks:[]});return xr(r,s)}function wc(e,r,o){const s=fn(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 Er(this,"shape",a),a},checks:[]});return xr(r,s)}function En(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 Pr(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 Cr(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 Po(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Co(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ai(...e){const[r,o,s]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:s}:{...r}}function Hb(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function kc(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 xc(e){let r="";for(let o=0;o<e.length;o++)r+=String.fromCharCode(e[o]);return btoa(r)}function Xb(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return kc(r+o)}function ey(e){return xc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ty(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 ry(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class ny{constructor(...r){}}const Sc=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:gc,Class:ny,NUMBER_FORMAT_RANGES:pc,aborted:En,allowsEval:dc,assert:Wb,assertEqual:Zb,assertIs:qb,assertNever:Fb,assertNotEqual:Rb,assignProp:Er,base64ToUint8Array:kc,base64urlToUint8Array:Xb,cached:Ci,captureStackTrace:Ba,cleanEnum:Hb,cleanRegex:jo,clone:xr,cloneDef:Vb,createTransparentProxy:Kb,defineLazy:it,esc:Ja,escapeRegex:mn,extend:bc,finalizeIssue:Cr,floatSafeRemainder:lc,getElementAtPath:Qb,getEnumValues:Ga,getLengthableOrigin:Co,getParsedType:Yb,getSizableOrigin:Po,hexToUint8Array:ty,isObject:oi,isPlainObject:On,issue:ai,joinValues:ge,jsonStringifyReplacer:No,merge:$c,mergeDefs:fn,normalizeParams:ae,nullish:Tn,numKeys:Bb,objectClone:To,omit:hc,optionalKeys:mc,partial:_c,pick:vc,prefixIssues:Pr,primitiveTypes:fc,promiseAllObject:Gb,propertyKeyTypes:Eo,randomString:Jb,required:wc,safeExtend:yc,shallowClone:Oo,stringifyPrimitive:Ve,uint8ArrayToBase64:xc,uint8ArrayToBase64url:ey,uint8ArrayToHex:ry,unwrapMessage:Ui},Symbol.toStringTag,{value:"Module"})),Ic=(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,No,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ya=A("$ZodError",Ic),gr=A("$ZodError",Ic,{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(w=>t({issues:w}));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 w=s,q=0;for(;q<f.path.length;){const K=f.path[q];q===f.path.length-1?(w[K]=w[K]||{_errors:[]},w[K]._errors.push(o(f))):w[K]=w[K]||{_errors:[]},w=w[K],q++}}};return t(e),s}function zc(e,r){const o=r||function(a){return a.message},s={errors:[]},t=(a,f=[])=>{var w,q;for(const K of a.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map(me=>t({issues:me},K.path));else if(K.code==="invalid_key")t({issues:K.issues},K.path);else if(K.code==="invalid_element")t({issues:K.issues},K.path);else{const me=[...f,...K.path];if(me.length===0){s.errors.push(o(K));continue}let le=s,Re=0;for(;Re<me.length;){const he=me[Re],Y=Re===me.length-1;typeof he=="string"?(le.properties??(le.properties={}),(w=le.properties)[he]??(w[he]={errors:[]}),le=le.properties[he]):(le.items??(le.items=[]),(q=le.items)[he]??(q[he]={errors:[]}),le=le.items[he]),Y&&le.errors.push(o(K)),Re++}}};return t(e),s}function Nc(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 jc(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 ${Nc(s.path)}`);return r.join(`
|
|
23
|
-
`)}const Ai=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 jn;if(f.issues.length){const w=new(t?.Err??e)(f.issues.map(q=>Cr(q,a,ir())));throw Ba(w,t?.callee),w}return f.value},Xa=Ai(gr),Di=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 w=new(t?.Err??e)(f.issues.map(q=>Cr(q,a,ir())));throw Ba(w,t?.callee),w}return f.value},es=Di(gr),Li=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 jn;return a.issues.length?{success:!1,error:new(e??Ya)(a.issues.map(f=>Cr(f,t,ir())))}:{success:!0,data:a.value}},Tc=Li(gr),Mi=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=>Cr(f,t,ir())))}:{success:!0,data:a.value}},Oc=Mi(gr),ts=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ai(e)(r,o,t)},iy=ts(gr),rs=e=>(r,o,s)=>Ai(e)(r,o,s),oy=rs(gr),ns=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Di(e)(r,o,t)},ay=ns(gr),is=e=>async(r,o,s)=>Di(e)(r,o,s),sy=is(gr),os=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Li(e)(r,o,t)},uy=os(gr),as=e=>(r,o,s)=>Li(e)(r,o,s),ly=as(gr),ss=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Mi(e)(r,o,t)},cy=ss(gr),us=e=>async(r,o,s)=>Mi(e)(r,o,s),dy=us(gr),Ec=/^[cC][^\s-]{8,}$/,Pc=/^[0-9a-z]+$/,Cc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Uc=/^[0-9a-vA-V]{20}$/,Ac=/^[A-Za-z0-9]{27}$/,Dc=/^[a-zA-Z0-9_-]{21}$/,Lc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,fy=/^[-+]?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)?)??$/,Mc=/^([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})$/,si=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)$/,my=si(4),py=si(6),gy=si(7),Zc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,vy=/^[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])?)*$/,hy=/^(([^<>()\[\]\\.,;:\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,}))$/,Rc=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,by=Rc,yy=/^[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 qc(){return new RegExp($y,"u")}const Fc=/^(?:(?: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])$/,Wc=/^(([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}|:))$/,Vc=/^((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])$/,Qc=/^(([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])$/,Gc=/^$|^(?:[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])?)*\.?$/,Jc=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Bc=/^\+(?:[0-9]){6,14}[0-9]$/,Yc="(?:(?:\\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])))",Kc=new RegExp(`^${Yc}$`);function Hc(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 Xc(e){return new RegExp(`^${Hc(e)}$`)}function ed(e){const r=Hc({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(`^${Yc}T(?:${s})$`)}const td=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},rd=/^-?\d+n?$/,nd=/^-?\d+$/,id=/^-?\d+(?:\.\d+)?/,od=/^(?:true|false)$/i,ad=/^null$/i,sd=/^undefined$/i,ud=/^[^A-Z]*$/,ld=/^[^a-z]*$/,cd=/^[0-9a-fA-F]*$/;function Zi(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Ri(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const ds=Object.freeze(Object.defineProperty({__proto__:null,base64:Gc,base64url:ls,bigint:rd,boolean:od,browserEmail:yy,cidrv4:Vc,cidrv6:Qc,cuid:Ec,cuid2:Pc,date:Kc,datetime:ed,domain:Jc,duration:Lc,e164:Bc,email:Zc,emoji:qc,extendedDuration:fy,guid:Mc,hex:cd,hostname:cs,html5Email:vy,idnEmail:by,integer:nd,ipv4:Fc,ipv6:Wc,ksuid:Ac,lowercase:ud,md5_base64:Zi(22,"=="),md5_base64url:Ri(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:Dc,null:ad,number:id,rfc5322Email:hy,sha1_base64:Zi(27,"="),sha1_base64url:Ri(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:Zi(43,"="),sha256_base64url:Ri(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:Zi(64,""),sha384_base64url:Ri(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:Zi(86,"=="),sha512_base64url:Ri(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:td,time:Xc,ulid:Cc,undefined:sd,unicodeEmail:Rc,uppercase:ld,uuid:si,uuid4:my,uuid6:py,uuid7:gy,xid:Uc},Symbol.toStringTag,{value:"Module"})),Ct=A("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),dd={number:"number",bigint:"bigint",object:"date"},fs=A("$ZodCheckLessThan",(e,r)=>{Ct.init(e,r);const o=dd[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=A("$ZodCheckGreaterThan",(e,r)=>{Ct.init(e,r);const o=dd[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})}}),fd=A("$ZodCheckMultipleOf",(e,r)=>{Ct.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):lc(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})}}),md=A("$ZodCheckNumberFormat",(e,r)=>{Ct.init(e,r),r.format=r.format||"float64";const o=r.format?.includes("int"),s=o?"int":"number",[t,a]=pc[r.format];e._zod.onattach.push(f=>{const w=f._zod.bag;w.format=r.format,w.minimum=t,w.maximum=a,o&&(w.pattern=nd)}),e._zod.check=f=>{const w=f.value;if(o){if(!Number.isInteger(w)){f.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:w,inst:e});return}if(!Number.isSafeInteger(w)){w>0?f.issues.push({input:w,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:w,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}}w<t&&f.issues.push({origin:"number",input:w,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),w>a&&f.issues.push({origin:"number",input:w,code:"too_big",maximum:a,inst:e})}}),pd=A("$ZodCheckBigIntFormat",(e,r)=>{Ct.init(e,r);const[o,s]=gc[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})}}),gd=A("$ZodCheckMaxSize",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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:Po(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),vd=A("$ZodCheckMinSize",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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:Po(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),hd=A("$ZodCheckSizeEquals",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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:Po(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})}}),bd=A("$ZodCheckMaxLength",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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=Co(t);s.issues.push({origin:f,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),yd=A("$ZodCheckMinLength",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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=Co(t);s.issues.push({origin:f,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),$d=A("$ZodCheckLengthEquals",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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=Co(t),w=a>r.length;s.issues.push({origin:f,...w?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),qi=A("$ZodCheckStringFormat",(e,r)=>{var o,s;Ct.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=A("$ZodCheckRegex",(e,r)=>{qi.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})}}),wd=A("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=ud),qi.init(e,r)}),kd=A("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=ld),qi.init(e,r)}),xd=A("$ZodCheckIncludes",(e,r)=>{Ct.init(e,r);const o=mn(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})}}),Sd=A("$ZodCheckStartsWith",(e,r)=>{Ct.init(e,r);const o=new RegExp(`^${mn(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})}}),Id=A("$ZodCheckEndsWith",(e,r)=>{Ct.init(e,r);const o=new RegExp(`.*${mn(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 zd(e,r,o){e.issues.length&&r.issues.push(...Pr(o,e.issues))}const Nd=A("$ZodCheckProperty",(e,r)=>{Ct.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=>zd(t,o,r.property));zd(s,o,r.property)}}),jd=A("$ZodCheckMimeType",(e,r)=>{Ct.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})}}),Td=A("$ZodCheckOverwrite",(e,r)=>{Ct.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});class Od{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} />`,Dt,Vt,Zt,Vt),to[Vt+Dt]=!0)}if(Vt=null,zt!==void 0&&(o(zt),Vt=""+zt),f(Be)&&(o(Be.key),Vt=""+Be.key),"key"in Be){zt={};for(var Rn in Be)Rn!=="key"&&(zt[Rn]=Be[Rn])}else zt=Be;return Vt&&w(zt,typeof ge=="function"?ge.displayName||ge.name||"Unknown":ge),H(ge,Vt,Ir,gt,t(),zt,Zn,di)}function ce(ge){typeof ge=="object"&&ge!==null&&ge.$$typeof===he&&ge._store&&(ge._store.validated=1)}var Re=ji,he=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),ze=Symbol.for("react.fragment"),De=Symbol.for("react.strict_mode"),pt=Symbol.for("react.profiler"),ut=Symbol.for("react.consumer"),ct=Symbol.for("react.context"),vt=Symbol.for("react.forward_ref"),or=Symbol.for("react.suspense"),Wr=Symbol.for("react.suspense_list"),Ft=Symbol.for("react.memo"),pa=Symbol.for("react.lazy"),tl=Symbol.for("react.activity"),ga=Symbol.for("react.client.reference"),Xi=Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pn=Object.prototype.hasOwnProperty,rl=Array.isArray,An=console.createTask?console.createTask:function(){return null};Re={react_stack_bottom_frame:function(ge){return ge()}};var Ln,Qr={},Sr=Re.react_stack_bottom_frame.bind(Re,a)(),eo=An(s(a)),to={};Oi.Fragment=ze,Oi.jsx=function(ge,Be,zt,Dt,gt){var Ir=1e4>Xi.recentlyCreatedOwnerStacks++;return pe(ge,Be,zt,!1,Dt,gt,Ir?Error("react-stack-top-frame"):Sr,Ir?An(s(ge)):eo)},Oi.jsxs=function(ge,Be,zt,Dt,gt){var Ir=1e4>Xi.recentlyCreatedOwnerStacks++;return pe(ge,Be,zt,!0,Dt,gt,Ir?Error("react-stack-top-frame"):Sr,Ir?An(s(ge)):eo)}})()),Oi}var ac;function Mb(){return ac||(ac=1,process.env.NODE_ENV==="production"?So.exports=Ub():So.exports=Db()),So.exports}var Ab=Mb();typeof window<"u"&&Promise.resolve().then(()=>zk).then(({EncatchAppElement:e})=>{try{customElements.get("encatch-app")||customElements.define("encatch-app",e)}catch(r){console.debug("Custom element registration:",r)}});const Lb=({formData:e,cssLink:r,scale:o=100})=>Ab.jsx("encatch-app",{...e,cssLink:r,scale:o});var Ei={exports:{}};const sc=Object.freeze({status:"aborted"});function U(e,r,o){function s(w,Z){var H;Object.defineProperty(w,"_zod",{value:w._zod??{},enumerable:!1}),(H=w._zod).traits??(H.traits=new Set),w._zod.traits.add(e),r(w,Z);for(const pe in f.prototype)pe in w||Object.defineProperty(w,pe,{value:f.prototype[pe].bind(w)});w._zod.constr=f,w._zod.def=Z}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:e});function f(w){var Z;const H=o?.Parent?new a:this;s(H,w),(Z=H._zod).deferred??(Z.deferred=[]);for(const pe of H._zod.deferred)pe();return H}return Object.defineProperty(f,"init",{value:s}),Object.defineProperty(f,Symbol.hasInstance,{value:w=>o?.Parent&&w instanceof o.Parent?!0:w?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}const uc=Symbol("zod_brand");class jn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Io extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const zo={};function ir(e){return e&&Object.assign(zo,e),zo}function Zb(e){return e}function Rb(e){return e}function qb(e){}function Fb(e){throw new Error}function Wb(e){}function Ga(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 ve(e,r="|"){return e.map(o=>Qe(o)).join(r)}function No(e,r){return typeof r=="bigint"?r.toString():r}function Pi(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function Tn(e){return e==null}function jo(e){const r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}function lc(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 Z=s.match(/\d?e-(\d?)/);Z?.[1]&&(t=Number.parseInt(Z[1]))}const a=o>t?o:t,f=Number.parseInt(e.toFixed(a).replace(".","")),w=Number.parseInt(r.toFixed(a).replace(".",""));return f%w/10**a}const cc=Symbol("evaluating");function it(e,r,o){let s;Object.defineProperty(e,r,{get(){if(s!==cc)return s===void 0&&(s=cc,s=o()),s},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function To(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Er(e,r,o){Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function fn(...e){const r={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(r,s)}return Object.defineProperties({},r)}function Qb(e){return fn(e._zod.def)}function Gb(e,r){return r?r.reduce((o,s)=>o?.[s],e):e}function Vb(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 Jb(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 Ja="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function oi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const dc=Pi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function On(e){if(oi(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(oi(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Oo(e){return On(e)?{...e}:Array.isArray(e)?[...e]:e}function Bb(e){let r=0;for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}const Yb=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}`)}},Eo=new Set(["string","number","symbol"]),fc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function mn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xr(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 Kb(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 Qe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function mc(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const pc={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]},gc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function vc(e,r){const o=e._zod.def,s=fn(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 Er(this,"shape",t),t},checks:[]});return xr(e,s)}function hc(e,r){const o=e._zod.def,s=fn(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 Er(this,"shape",t),t},checks:[]});return xr(e,s)}function bc(e,r){if(!On(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=fn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...r};return Er(this,"shape",a),a},checks:[]});return xr(e,t)}function yc(e,r){if(!On(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 Er(this,"shape",s),s},checks:e._zod.def.checks};return xr(e,o)}function $c(e,r){const o=fn(e._zod.def,{get shape(){const s={...e._zod.def.shape,...r._zod.def.shape};return Er(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:[]});return xr(e,o)}function _c(e,r,o){const s=fn(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 Er(this,"shape",a),a},checks:[]});return xr(r,s)}function wc(e,r,o){const s=fn(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 Er(this,"shape",a),a},checks:[]});return xr(r,s)}function En(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 Pr(e,r){return r.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(e),o})}function Ci(e){return typeof e=="string"?e:e?.message}function Cr(e,r,o){const s={...e,path:e.path??[]};if(!e.message){const t=Ci(e.inst?._zod.def?.error?.(e))??Ci(r?.error?.(e))??Ci(o.customError?.(e))??Ci(o.localeError?.(e))??"Invalid input";s.message=t}return delete s.inst,delete s.continue,r?.reportInput||delete s.input,s}function Po(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Co(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ai(...e){const[r,o,s]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:s}:{...r}}function Hb(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function kc(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 xc(e){let r="";for(let o=0;o<e.length;o++)r+=String.fromCharCode(e[o]);return btoa(r)}function Xb(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return kc(r+o)}function ey(e){return xc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ty(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 ry(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class ny{constructor(...r){}}const Sc=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:gc,Class:ny,NUMBER_FORMAT_RANGES:pc,aborted:En,allowsEval:dc,assert:Wb,assertEqual:Zb,assertIs:qb,assertNever:Fb,assertNotEqual:Rb,assignProp:Er,base64ToUint8Array:kc,base64urlToUint8Array:Xb,cached:Pi,captureStackTrace:Ja,cleanEnum:Hb,cleanRegex:jo,clone:xr,cloneDef:Qb,createTransparentProxy:Kb,defineLazy:it,esc:Va,escapeRegex:mn,extend:bc,finalizeIssue:Cr,floatSafeRemainder:lc,getElementAtPath:Gb,getEnumValues:Ga,getLengthableOrigin:Co,getParsedType:Yb,getSizableOrigin:Po,hexToUint8Array:ty,isObject:oi,isPlainObject:On,issue:ai,joinValues:ve,jsonStringifyReplacer:No,merge:$c,mergeDefs:fn,normalizeParams:se,nullish:Tn,numKeys:Bb,objectClone:To,omit:hc,optionalKeys:mc,partial:_c,pick:vc,prefixIssues:Pr,primitiveTypes:fc,promiseAllObject:Vb,propertyKeyTypes:Eo,randomString:Jb,required:wc,safeExtend:yc,shallowClone:Oo,stringifyPrimitive:Qe,uint8ArrayToBase64:xc,uint8ArrayToBase64url:ey,uint8ArrayToHex:ry,unwrapMessage:Ci},Symbol.toStringTag,{value:"Module"})),Ic=(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,No,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ba=U("$ZodError",Ic),gr=U("$ZodError",Ic,{Parent:Error});function Ya(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 Ka(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(w=>t({issues:w}));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 w=s,Z=0;for(;Z<f.path.length;){const H=f.path[Z];Z===f.path.length-1?(w[H]=w[H]||{_errors:[]},w[H]._errors.push(o(f))):w[H]=w[H]||{_errors:[]},w=w[H],Z++}}};return t(e),s}function zc(e,r){const o=r||function(a){return a.message},s={errors:[]},t=(a,f=[])=>{var w,Z;for(const H of a.issues)if(H.code==="invalid_union"&&H.errors.length)H.errors.map(pe=>t({issues:pe},H.path));else if(H.code==="invalid_key")t({issues:H.issues},H.path);else if(H.code==="invalid_element")t({issues:H.issues},H.path);else{const pe=[...f,...H.path];if(pe.length===0){s.errors.push(o(H));continue}let ce=s,Re=0;for(;Re<pe.length;){const he=pe[Re],K=Re===pe.length-1;typeof he=="string"?(ce.properties??(ce.properties={}),(w=ce.properties)[he]??(w[he]={errors:[]}),ce=ce.properties[he]):(ce.items??(ce.items=[]),(Z=ce.items)[he]??(Z[he]={errors:[]}),ce=ce.items[he]),K&&ce.errors.push(o(H)),Re++}}};return t(e),s}function Nc(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 jc(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 ${Nc(s.path)}`);return r.join(`
|
|
23
|
+
`)}const Ui=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 jn;if(f.issues.length){const w=new(t?.Err??e)(f.issues.map(Z=>Cr(Z,a,ir())));throw Ja(w,t?.callee),w}return f.value},Ha=Ui(gr),Di=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 w=new(t?.Err??e)(f.issues.map(Z=>Cr(Z,a,ir())));throw Ja(w,t?.callee),w}return f.value},Xa=Di(gr),Mi=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 jn;return a.issues.length?{success:!1,error:new(e??Ba)(a.issues.map(f=>Cr(f,t,ir())))}:{success:!0,data:a.value}},Tc=Mi(gr),Ai=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=>Cr(f,t,ir())))}:{success:!0,data:a.value}},Oc=Ai(gr),es=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ui(e)(r,o,t)},iy=es(gr),ts=e=>(r,o,s)=>Ui(e)(r,o,s),oy=ts(gr),rs=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Di(e)(r,o,t)},ay=rs(gr),ns=e=>async(r,o,s)=>Di(e)(r,o,s),sy=ns(gr),is=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Mi(e)(r,o,t)},uy=is(gr),os=e=>(r,o,s)=>Mi(e)(r,o,s),ly=os(gr),as=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ai(e)(r,o,t)},cy=as(gr),ss=e=>async(r,o,s)=>Ai(e)(r,o,s),dy=ss(gr),Ec=/^[cC][^\s-]{8,}$/,Pc=/^[0-9a-z]+$/,Cc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Uc=/^[0-9a-vA-V]{20}$/,Dc=/^[A-Za-z0-9]{27}$/,Mc=/^[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)?)?)$/,fy=/^[-+]?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)?)??$/,Lc=/^([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})$/,si=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)$/,my=si(4),py=si(6),gy=si(7),Zc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,vy=/^[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])?)*$/,hy=/^(([^<>()\[\]\\.,;:\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,}))$/,Rc=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,by=Rc,yy=/^[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 qc(){return new RegExp($y,"u")}const Fc=/^(?:(?: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])$/,Wc=/^(([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])$/,Gc=/^(([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}=))?$/,us=/^[A-Za-z0-9_-]*$/,ls=/^(?=.{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])?)*\.?$/,Jc=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Bc=/^\+(?:[0-9]){6,14}[0-9]$/,Yc="(?:(?:\\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])))",Kc=new RegExp(`^${Yc}$`);function Hc(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 Xc(e){return new RegExp(`^${Hc(e)}$`)}function ed(e){const r=Hc({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(`^${Yc}T(?:${s})$`)}const td=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},rd=/^-?\d+n?$/,nd=/^-?\d+$/,id=/^-?\d+(?:\.\d+)?/,od=/^(?:true|false)$/i,ad=/^null$/i,sd=/^undefined$/i,ud=/^[^A-Z]*$/,ld=/^[^a-z]*$/,cd=/^[0-9a-fA-F]*$/;function Li(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Zi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const cs=Object.freeze(Object.defineProperty({__proto__:null,base64:Vc,base64url:us,bigint:rd,boolean:od,browserEmail:yy,cidrv4:Qc,cidrv6:Gc,cuid:Ec,cuid2:Pc,date:Kc,datetime:ed,domain:Jc,duration:Ac,e164:Bc,email:Zc,emoji:qc,extendedDuration:fy,guid:Lc,hex:cd,hostname:ls,html5Email:vy,idnEmail:by,integer:nd,ipv4:Fc,ipv6:Wc,ksuid:Dc,lowercase:ud,md5_base64:Li(22,"=="),md5_base64url:Zi(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:Mc,null:ad,number:id,rfc5322Email:hy,sha1_base64:Li(27,"="),sha1_base64url:Zi(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:Li(43,"="),sha256_base64url:Zi(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:Li(64,""),sha384_base64url:Zi(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:Li(86,"=="),sha512_base64url:Zi(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:td,time:Xc,ulid:Cc,undefined:sd,unicodeEmail:Rc,uppercase:ld,uuid:si,uuid4:my,uuid6:py,uuid7:gy,xid:Uc},Symbol.toStringTag,{value:"Module"})),Ct=U("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),dd={number:"number",bigint:"bigint",object:"date"},ds=U("$ZodCheckLessThan",(e,r)=>{Ct.init(e,r);const o=dd[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})}}),fs=U("$ZodCheckGreaterThan",(e,r)=>{Ct.init(e,r);const o=dd[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})}}),fd=U("$ZodCheckMultipleOf",(e,r)=>{Ct.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):lc(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})}}),md=U("$ZodCheckNumberFormat",(e,r)=>{Ct.init(e,r),r.format=r.format||"float64";const o=r.format?.includes("int"),s=o?"int":"number",[t,a]=pc[r.format];e._zod.onattach.push(f=>{const w=f._zod.bag;w.format=r.format,w.minimum=t,w.maximum=a,o&&(w.pattern=nd)}),e._zod.check=f=>{const w=f.value;if(o){if(!Number.isInteger(w)){f.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:w,inst:e});return}if(!Number.isSafeInteger(w)){w>0?f.issues.push({input:w,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:w,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}}w<t&&f.issues.push({origin:"number",input:w,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),w>a&&f.issues.push({origin:"number",input:w,code:"too_big",maximum:a,inst:e})}}),pd=U("$ZodCheckBigIntFormat",(e,r)=>{Ct.init(e,r);const[o,s]=gc[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})}}),gd=U("$ZodCheckMaxSize",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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:Po(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),vd=U("$ZodCheckMinSize",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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:Po(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),hd=U("$ZodCheckSizeEquals",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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:Po(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})}}),bd=U("$ZodCheckMaxLength",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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=Co(t);s.issues.push({origin:f,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),yd=U("$ZodCheckMinLength",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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=Co(t);s.issues.push({origin:f,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),$d=U("$ZodCheckLengthEquals",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(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=Co(t),w=a>r.length;s.issues.push({origin:f,...w?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),Ri=U("$ZodCheckStringFormat",(e,r)=>{var o,s;Ct.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=U("$ZodCheckRegex",(e,r)=>{Ri.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})}}),wd=U("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=ud),Ri.init(e,r)}),kd=U("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=ld),Ri.init(e,r)}),xd=U("$ZodCheckIncludes",(e,r)=>{Ct.init(e,r);const o=mn(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})}}),Sd=U("$ZodCheckStartsWith",(e,r)=>{Ct.init(e,r);const o=new RegExp(`^${mn(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})}}),Id=U("$ZodCheckEndsWith",(e,r)=>{Ct.init(e,r);const o=new RegExp(`.*${mn(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 zd(e,r,o){e.issues.length&&r.issues.push(...Pr(o,e.issues))}const Nd=U("$ZodCheckProperty",(e,r)=>{Ct.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=>zd(t,o,r.property));zd(s,o,r.property)}}),jd=U("$ZodCheckMimeType",(e,r)=>{Ct.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})}}),Td=U("$ZodCheckOverwrite",(e,r)=>{Ct.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});class Od{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 Ed={major:4,minor:1,patch:8},Ge=A("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Ed;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,w,q)=>{let K=En(f),me;for(const le of w){if(le._zod.def.when){if(!le._zod.def.when(f))continue}else if(K)continue;const Re=f.issues.length,he=le._zod.check(f);if(he instanceof Promise&&q?.async===!1)throw new jn;if(me||he instanceof Promise)me=(me??Promise.resolve()).then(async()=>{await he,f.issues.length!==Re&&(K||(K=En(f,Re)))});else{if(f.issues.length===Re)continue;K||(K=En(f,Re))}}return me?me.then(()=>f):f},a=(f,w,q)=>{if(En(f))return f.aborted=!0,f;const K=t(w,s,q);if(K instanceof Promise){if(q.async===!1)throw new jn;return K.then(me=>e._zod.parse(me,q))}return e._zod.parse(K,q)};e._zod.run=(f,w)=>{if(w.skipChecks)return e._zod.parse(f,w);if(w.direction==="backward"){const K=e._zod.parse({value:f.value,issues:[]},{...w,skipChecks:!0});return K instanceof Promise?K.then(me=>a(me,f,w)):a(K,f,w)}const q=e._zod.parse(f,w);if(q instanceof Promise){if(w.async===!1)throw new jn;return q.then(K=>t(K,s,w))}return t(q,s,w)}}e["~standard"]={validate:t=>{try{const a=Tc(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Oc(e,t).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),Fi=A("$ZodString",(e,r)=>{Ge.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??td(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}}),It=A("$ZodStringFormat",(e,r)=>{qi.init(e,r),Fi.init(e,r)}),Pd=A("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Mc),It.init(e,r)}),Cd=A("$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=si(s))}else r.pattern??(r.pattern=si());It.init(e,r)}),Ud=A("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Zc),It.init(e,r)}),Ad=A("$ZodURL",(e,r)=>{It.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})}}}),Dd=A("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=qc()),It.init(e,r)}),Ld=A("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Dc),It.init(e,r)}),Md=A("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Ec),It.init(e,r)}),Zd=A("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Pc),It.init(e,r)}),Rd=A("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Cc),It.init(e,r)}),qd=A("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Uc),It.init(e,r)}),Fd=A("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Ac),It.init(e,r)}),Wd=A("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=ed(r)),It.init(e,r)}),Vd=A("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Kc),It.init(e,r)}),Qd=A("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Xc(r)),It.init(e,r)}),Gd=A("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Lc),It.init(e,r)}),Jd=A("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Fc),It.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv4"})}),Bd=A("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Wc),It.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})}}}),Yd=A("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Vc),It.init(e,r)}),Kd=A("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Qc),It.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 Hd=A("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Gc),It.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 Xd(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 ef=A("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=ls),It.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64url"}),e._zod.check=o=>{Xd(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),tf=A("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Bc),It.init(e,r)});function rf(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 nf=A("$ZodJWT",(e,r)=>{It.init(e,r),e._zod.check=o=>{rf(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),of=A("$ZodCustomStringFormat",(e,r)=>{It.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=A("$ZodNumber",(e,r)=>{Ge.init(e,r),e._zod.pattern=e._zod.bag.pattern??id,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}}),af=A("$ZodNumber",(e,r)=>{md.init(e,r),gs.init(e,r)}),vs=A("$ZodBoolean",(e,r)=>{Ge.init(e,r),e._zod.pattern=od,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=A("$ZodBigInt",(e,r)=>{Ge.init(e,r),e._zod.pattern=rd,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}}),sf=A("$ZodBigInt",(e,r)=>{pd.init(e,r),hs.init(e,r)}),uf=A("$ZodSymbol",(e,r)=>{Ge.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}}),lf=A("$ZodUndefined",(e,r)=>{Ge.init(e,r),e._zod.pattern=sd,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}}),cf=A("$ZodNull",(e,r)=>{Ge.init(e,r),e._zod.pattern=ad,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}}),df=A("$ZodAny",(e,r)=>{Ge.init(e,r),e._zod.parse=o=>o}),ff=A("$ZodUnknown",(e,r)=>{Ge.init(e,r),e._zod.parse=o=>o}),mf=A("$ZodNever",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),pf=A("$ZodVoid",(e,r)=>{Ge.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}}),gf=A("$ZodDate",(e,r)=>{Ge.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 vf(e,r,o){e.issues.length&&r.issues.push(...Pr(o,e.issues)),r.value[o]=e.value}const hf=A("$ZodArray",(e,r)=>{Ge.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 w=t[f],q=r.element._zod.run({value:w,issues:[]},s);q instanceof Promise?a.push(q.then(K=>vf(K,o,f))):vf(q,o,f)}return a.length?Promise.all(a).then(()=>o):o}});function Uo(e,r,o,s){e.issues.length&&r.issues.push(...Pr(o,e.issues)),e.value===void 0?o in s&&(r.value[o]=void 0):r.value[o]=e.value}function bf(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=mc(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function yf(e,r,o,s,t,a){const f=[],w=t.keySet,q=t.catchall._zod,K=q.def.type;for(const me of Object.keys(r)){if(w.has(me))continue;if(K==="never"){f.push(me);continue}const le=q.run({value:r[me],issues:[]},s);le instanceof Promise?e.push(le.then(Re=>Uo(Re,o,me,r))):Uo(le,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 $f=A("$ZodObject",(e,r)=>{Ge.init(e,r);const o=Ci(()=>bf(r));it(e._zod,"propValues",()=>{const f=r.shape,w={};for(const q in f){const K=f[q]._zod;if(K.values){w[q]??(w[q]=new Set);for(const me of K.values)w[q].add(me)}}return w});const s=oi,t=r.catchall;let a;e._zod.parse=(f,w)=>{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 K=[],me=a.shape;for(const le of a.keys){const he=me[le]._zod.run({value:q[le],issues:[]},w);he instanceof Promise?K.push(he.then(Y=>Uo(Y,f,le,q))):Uo(he,f,le,q)}return t?yf(K,q,f,w,o.value,e):K.length?Promise.all(K).then(()=>f):f}}),_f=A("$ZodObjectJIT",(e,r)=>{$f.init(e,r);const o=e._zod.parse,s=Ci(()=>bf(r)),t=Re=>{const he=new Od(["shape","payload","ctx"]),Y=s.value,Ie=ct=>{const vt=Ja(ct);return`shape[${vt}]._zod.run({ value: input[${vt}], issues: [] }, ctx)`};he.write("const input = payload.value;");const Ae=Object.create(null);let pt=0;for(const ct of Y.keys)Ae[ct]=`key_${pt++}`;he.write("const newResult = {};");for(const ct of Y.keys){const vt=Ae[ct],or=Ja(ct);he.write(`const ${vt} = ${Ie(ct)};`),he.write(`
|
|
25
|
+
`))}}const Ed={major:4,minor:1,patch:8},Ve=U("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Ed;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,w,Z)=>{let H=En(f),pe;for(const ce of w){if(ce._zod.def.when){if(!ce._zod.def.when(f))continue}else if(H)continue;const Re=f.issues.length,he=ce._zod.check(f);if(he instanceof Promise&&Z?.async===!1)throw new jn;if(pe||he instanceof Promise)pe=(pe??Promise.resolve()).then(async()=>{await he,f.issues.length!==Re&&(H||(H=En(f,Re)))});else{if(f.issues.length===Re)continue;H||(H=En(f,Re))}}return pe?pe.then(()=>f):f},a=(f,w,Z)=>{if(En(f))return f.aborted=!0,f;const H=t(w,s,Z);if(H instanceof Promise){if(Z.async===!1)throw new jn;return H.then(pe=>e._zod.parse(pe,Z))}return e._zod.parse(H,Z)};e._zod.run=(f,w)=>{if(w.skipChecks)return e._zod.parse(f,w);if(w.direction==="backward"){const H=e._zod.parse({value:f.value,issues:[]},{...w,skipChecks:!0});return H instanceof Promise?H.then(pe=>a(pe,f,w)):a(H,f,w)}const Z=e._zod.parse(f,w);if(Z instanceof Promise){if(w.async===!1)throw new jn;return Z.then(H=>t(H,s,w))}return t(Z,s,w)}}e["~standard"]={validate:t=>{try{const a=Tc(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Oc(e,t).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),qi=U("$ZodString",(e,r)=>{Ve.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??td(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}}),It=U("$ZodStringFormat",(e,r)=>{Ri.init(e,r),qi.init(e,r)}),Pd=U("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Lc),It.init(e,r)}),Cd=U("$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=si(s))}else r.pattern??(r.pattern=si());It.init(e,r)}),Ud=U("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Zc),It.init(e,r)}),Dd=U("$ZodURL",(e,r)=>{It.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:ls.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})}}}),Md=U("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=qc()),It.init(e,r)}),Ad=U("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Mc),It.init(e,r)}),Ld=U("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Ec),It.init(e,r)}),Zd=U("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Pc),It.init(e,r)}),Rd=U("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Cc),It.init(e,r)}),qd=U("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Uc),It.init(e,r)}),Fd=U("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Dc),It.init(e,r)}),Wd=U("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=ed(r)),It.init(e,r)}),Qd=U("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Kc),It.init(e,r)}),Gd=U("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Xc(r)),It.init(e,r)}),Vd=U("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Ac),It.init(e,r)}),Jd=U("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Fc),It.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv4"})}),Bd=U("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Wc),It.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})}}}),Yd=U("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Qc),It.init(e,r)}),Kd=U("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Gc),It.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 ms(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Hd=U("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Vc),It.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64"}),e._zod.check=o=>{ms(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!r.abort})}});function Xd(e){if(!us.test(e))return!1;const r=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return ms(o)}const ef=U("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=us),It.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64url"}),e._zod.check=o=>{Xd(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),tf=U("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Bc),It.init(e,r)});function rf(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 nf=U("$ZodJWT",(e,r)=>{It.init(e,r),e._zod.check=o=>{rf(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),of=U("$ZodCustomStringFormat",(e,r)=>{It.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})}}),ps=U("$ZodNumber",(e,r)=>{Ve.init(e,r),e._zod.pattern=e._zod.bag.pattern??id,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}}),af=U("$ZodNumber",(e,r)=>{md.init(e,r),ps.init(e,r)}),gs=U("$ZodBoolean",(e,r)=>{Ve.init(e,r),e._zod.pattern=od,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}}),vs=U("$ZodBigInt",(e,r)=>{Ve.init(e,r),e._zod.pattern=rd,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}}),sf=U("$ZodBigInt",(e,r)=>{pd.init(e,r),vs.init(e,r)}),uf=U("$ZodSymbol",(e,r)=>{Ve.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}}),lf=U("$ZodUndefined",(e,r)=>{Ve.init(e,r),e._zod.pattern=sd,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}}),cf=U("$ZodNull",(e,r)=>{Ve.init(e,r),e._zod.pattern=ad,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}}),df=U("$ZodAny",(e,r)=>{Ve.init(e,r),e._zod.parse=o=>o}),ff=U("$ZodUnknown",(e,r)=>{Ve.init(e,r),e._zod.parse=o=>o}),mf=U("$ZodNever",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),pf=U("$ZodVoid",(e,r)=>{Ve.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}}),gf=U("$ZodDate",(e,r)=>{Ve.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 vf(e,r,o){e.issues.length&&r.issues.push(...Pr(o,e.issues)),r.value[o]=e.value}const hf=U("$ZodArray",(e,r)=>{Ve.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 w=t[f],Z=r.element._zod.run({value:w,issues:[]},s);Z instanceof Promise?a.push(Z.then(H=>vf(H,o,f))):vf(Z,o,f)}return a.length?Promise.all(a).then(()=>o):o}});function Uo(e,r,o,s){e.issues.length&&r.issues.push(...Pr(o,e.issues)),e.value===void 0?o in s&&(r.value[o]=void 0):r.value[o]=e.value}function bf(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=mc(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function yf(e,r,o,s,t,a){const f=[],w=t.keySet,Z=t.catchall._zod,H=Z.def.type;for(const pe of Object.keys(r)){if(w.has(pe))continue;if(H==="never"){f.push(pe);continue}const ce=Z.run({value:r[pe],issues:[]},s);ce instanceof Promise?e.push(ce.then(Re=>Uo(Re,o,pe,r))):Uo(ce,o,pe,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 $f=U("$ZodObject",(e,r)=>{Ve.init(e,r);const o=Pi(()=>bf(r));it(e._zod,"propValues",()=>{const f=r.shape,w={};for(const Z in f){const H=f[Z]._zod;if(H.values){w[Z]??(w[Z]=new Set);for(const pe of H.values)w[Z].add(pe)}}return w});const s=oi,t=r.catchall;let a;e._zod.parse=(f,w)=>{a??(a=o.value);const Z=f.value;if(!s(Z))return f.issues.push({expected:"object",code:"invalid_type",input:Z,inst:e}),f;f.value={};const H=[],pe=a.shape;for(const ce of a.keys){const he=pe[ce]._zod.run({value:Z[ce],issues:[]},w);he instanceof Promise?H.push(he.then(K=>Uo(K,f,ce,Z))):Uo(he,f,ce,Z)}return t?yf(H,Z,f,w,o.value,e):H.length?Promise.all(H).then(()=>f):f}}),_f=U("$ZodObjectJIT",(e,r)=>{$f.init(e,r);const o=e._zod.parse,s=Pi(()=>bf(r)),t=Re=>{const he=new Od(["shape","payload","ctx"]),K=s.value,ze=ct=>{const vt=Va(ct);return`shape[${vt}]._zod.run({ value: input[${vt}], issues: [] }, ctx)`};he.write("const input = payload.value;");const De=Object.create(null);let pt=0;for(const ct of K.keys)De[ct]=`key_${pt++}`;he.write("const newResult = {};");for(const ct of K.keys){const vt=De[ct],or=Va(ct);he.write(`const ${vt} = ${ze(ct)};`),he.write(`
|
|
26
26
|
if (${vt}.issues.length) {
|
|
27
27
|
payload.issues = payload.issues.concat(${vt}.issues.map(iss => ({
|
|
28
28
|
...iss,
|
|
@@ -39,11 +39,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
39
39
|
newResult[${or}] = ${vt}.value;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
`)}he.write("payload.value = newResult;"),he.write("return payload;");const ut=he.compile();return(ct,vt)=>ut(Re,ct,vt)};let a;const f=oi,w=!zo.jitless,K=w&&dc.value,me=r.catchall;let le;e._zod.parse=(Re,he)=>{le??(le=s.value);const Y=Re.value;return f(Y)?w&&K&&he?.async===!1&&he.jitless!==!0?(a||(a=t(r.shape)),Re=a(Re,he),me?yf([],Y,Re,he,le,e):Re):o(Re,he):(Re.issues.push({expected:"object",code:"invalid_type",input:Y,inst:e}),Re)}});function wf(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=>!En(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=>Cr(f,s,ir())))}),r)}const bs=A("$ZodUnion",(e,r)=>{Ge.init(e,r),it(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),it(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),it(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),it(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=>jo(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 w=[];for(const q of r.options){const K=q._zod.run({value:t.value,issues:[]},a);if(K instanceof Promise)w.push(K),f=!0;else{if(K.issues.length===0)return K;w.push(K)}}return f?Promise.all(w).then(q=>wf(q,t,e,a)):wf(w,t,e,a)}}),kf=A("$ZodDiscriminatedUnion",(e,r)=>{bs.init(e,r);const o=e._zod.parse;it(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[w,q]of Object.entries(f)){t[w]||(t[w]=new Set);for(const K of q)t[w].add(K)}}return t});const s=Ci(()=>{const t=r.options,a=new Map;for(const f of t){const w=f._zod.propValues?.[r.discriminator];if(!w||w.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(f)}"`);for(const q of w){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(!oi(f))return t.issues.push({code:"invalid_type",expected:"object",input:f,inst:e}),t;const w=s.value.get(f?.[r.discriminator]);return w?w._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)}}),xf=A("$ZodIntersection",(e,r)=>{Ge.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,K])=>Sf(o,q,K)):Sf(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(On(e)&&On(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 Sf(e,r,o){if(r.issues.length&&e.issues.push(...r.issues),o.issues.length&&e.issues.push(...o.issues),En(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=A("$ZodTuple",(e,r)=>{Ge.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 w=[];if(!r.rest){const K=f.length>o.length,me=f.length<s-1;if(K||me)return t.issues.push({...K?{code:"too_big",maximum:o.length}:{code:"too_small",minimum:o.length},input:f,inst:e,origin:"array"}),t}let q=-1;for(const K of o){if(q++,q>=f.length&&q>=s)continue;const me=K._zod.run({value:f[q],issues:[]},a);me instanceof Promise?w.push(me.then(le=>Ao(le,t,q))):Ao(me,t,q)}if(r.rest){const K=f.slice(o.length);for(const me of K){q++;const le=r.rest._zod.run({value:me,issues:[]},a);le instanceof Promise?w.push(le.then(Re=>Ao(Re,t,q))):Ao(le,t,q)}}return w.length?Promise.all(w).then(()=>t):t}});function Ao(e,r,o){e.issues.length&&r.issues.push(...Pr(o,e.issues)),r.value[o]=e.value}const If=A("$ZodRecord",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!On(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 K=r.valueType._zod.run({value:t[q],issues:[]},s);K instanceof Promise?a.push(K.then(me=>{me.issues.length&&o.issues.push(...Pr(q,me.issues)),o.value[q]=me.value})):(K.issues.length&&o.issues.push(...Pr(q,K.issues)),o.value[q]=K.value)}let w;for(const q in t)f.has(q)||(w=w??[],w.push(q));w&&w.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:w})}else{o.value={};for(const f of Reflect.ownKeys(t)){if(f==="__proto__")continue;const w=r.keyType._zod.run({value:f,issues:[]},s);if(w instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(w.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:w.issues.map(K=>Cr(K,s,ir())),input:f,path:[f],inst:e}),o.value[w.value]=w.value;continue}const q=r.valueType._zod.run({value:t[f],issues:[]},s);q instanceof Promise?a.push(q.then(K=>{K.issues.length&&o.issues.push(...Pr(f,K.issues)),o.value[w.value]=K.value})):(q.issues.length&&o.issues.push(...Pr(f,q.issues)),o.value[w.value]=q.value)}}return a.length?Promise.all(a).then(()=>o):o}}),zf=A("$ZodMap",(e,r)=>{Ge.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,w]of t){const q=r.keyType._zod.run({value:f,issues:[]},s),K=r.valueType._zod.run({value:w,issues:[]},s);q instanceof Promise||K instanceof Promise?a.push(Promise.all([q,K]).then(([me,le])=>{Nf(me,le,o,f,t,e,s)})):Nf(q,K,o,f,t,e,s)}return a.length?Promise.all(a).then(()=>o):o}});function Nf(e,r,o,s,t,a,f){e.issues.length&&(Eo.has(typeof s)?o.issues.push(...Pr(s,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(w=>Cr(w,f,ir()))})),r.issues.length&&(Eo.has(typeof s)?o.issues.push(...Pr(s,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:s,issues:r.issues.map(w=>Cr(w,f,ir()))})),o.value.set(e.value,r.value)}const jf=A("$ZodSet",(e,r)=>{Ge.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 w=r.valueType._zod.run({value:f,issues:[]},s);w instanceof Promise?a.push(w.then(q=>Tf(q,o))):Tf(w,o)}return a.length?Promise.all(a).then(()=>o):o}});function Tf(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}const Of=A("$ZodEnum",(e,r)=>{Ge.init(e,r);const o=Ga(r.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(t=>Eo.has(typeof t)).map(t=>typeof t=="string"?mn(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}}),Ef=A("$ZodLiteral",(e,r)=>{if(Ge.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"?mn(o):o?mn(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}}),Pf=A("$ZodFile",(e,r)=>{Ge.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}}),Cf=A("$ZodTransform",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new Io(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 jn;return o.value=t,o}});function Uf(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const Af=A("$ZodOptional",(e,r)=>{Ge.init(e,r),e._zod.optin="optional",e._zod.optout="optional",it(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),it(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${jo(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=>Uf(a,o.value)):Uf(t,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,s)}}),Df=A("$ZodNullable",(e,r)=>{Ge.init(e,r),it(e._zod,"optin",()=>r.innerType._zod.optin),it(e._zod,"optout",()=>r.innerType._zod.optout),it(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${jo(o.source)}|null)$`):void 0}),it(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)}),Lf=A("$ZodDefault",(e,r)=>{Ge.init(e,r),e._zod.optin="optional",it(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=>Mf(a,r)):Mf(t,r)}});function Mf(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const Zf=A("$ZodPrefault",(e,r)=>{Ge.init(e,r),e._zod.optin="optional",it(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))}),Rf=A("$ZodNonOptional",(e,r)=>{Ge.init(e,r),it(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 Ff=A("$ZodSuccess",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new Io("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)}}),Wf=A("$ZodCatch",(e,r)=>{Ge.init(e,r),it(e._zod,"optin",()=>r.innerType._zod.optin),it(e._zod,"optout",()=>r.innerType._zod.optout),it(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=>Cr(f,s,ir()))},input:o.value}),o.issues=[]),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>Cr(a,s,ir()))},input:o.value}),o.issues=[]),o)}}),Vf=A("$ZodNaN",(e,r)=>{Ge.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)}),Qf=A("$ZodPipe",(e,r)=>{Ge.init(e,r),it(e._zod,"values",()=>r.in._zod.values),it(e._zod,"optin",()=>r.in._zod.optin),it(e._zod,"optout",()=>r.out._zod.optout),it(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=>Do(f,r.in,s)):Do(a,r.in,s)}const t=r.in._zod.run(o,s);return t instanceof Promise?t.then(a=>Do(a,r.out,s)):Do(t,r.out,s)}});function Do(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},o)}const _s=A("$ZodCodec",(e,r)=>{Ge.init(e,r),it(e._zod,"values",()=>r.in._zod.values),it(e._zod,"optin",()=>r.in._zod.optin),it(e._zod,"optout",()=>r.out._zod.optout),it(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=>Lo(f,r,s)):Lo(a,r,s)}else{const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Lo(f,r,s)):Lo(a,r,s)}}});function Lo(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=>Mo(e,a,r.out,o)):Mo(e,t,r.out,o)}else{const t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>Mo(e,a,r.in,o)):Mo(e,t,r.in,o)}}function Mo(e,r,o,s){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},s)}const Gf=A("$ZodReadonly",(e,r)=>{Ge.init(e,r),it(e._zod,"propValues",()=>r.innerType._zod.propValues),it(e._zod,"values",()=>r.innerType._zod.values),it(e._zod,"optin",()=>r.innerType._zod.optin),it(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(Jf):Jf(t)}});function Jf(e){return e.value=Object.freeze(e.value),e}const Bf=A("$ZodTemplateLiteral",(e,r)=>{Ge.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||fc.has(typeof s))o.push(mn(`${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)}),Yf=A("$ZodFunction",(e,r)=>(Ge.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)),Kf=A("$ZodPromise",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},s))}),Hf=A("$ZodLazy",(e,r)=>{Ge.init(e,r),it(e._zod,"innerType",()=>r.getter()),it(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),it(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),it(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),it(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(o,s)=>e._zod.innerType._zod.run(o,s)}),Xf=A("$ZodCustom",(e,r)=>{Ct.init(e,r),Ge.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=>em(a,o,s,e));em(t,o,s,e)}});function em(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(ai(t))}}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":"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?`مدخلات غير مقبولة: يفترض إدخال ${Ve(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${ge(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?"ة":""}: ${ge(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function wy(){return{localeError:_y()}}const ky=()=>{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 ${Ve(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${ge(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":""}: ${ge(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 xy(){return{localeError:ky()}}function tm(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 Sy=()=>{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?`Няправільны ўвод: чакалася ${Ve(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const w=Number(t.maximum),q=tm(w,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 w=Number(t.minimum),q=tm(w,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?"ключы":"ключ"}: ${ge(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function Iy(){return{localeError:Sy()}}const zy=()=>{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 ${Ve(t.values[0])}`:`Opció invàlida: s'esperava una de ${ge(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":""}: ${ge(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 Ny(){return{localeError:zy()}}const jy=()=>{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 ${Ve(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${ge(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: ${ge(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 Ty(){return{localeError:jy()}}const Oy=()=>{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 w=typeof f;switch(w){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 w},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 ${Ve(f.values[0])}`:`Ugyldigt valg: forventede en af følgende ${ge(f.values,"|")}`;case"too_big":{const w=f.inclusive?"<=":"<",q=o(f.origin),K=s(f.origin);return q?`For stor: forventede ${K??"value"} ${q.verb} ${w} ${f.maximum.toString()} ${q.unit??"elementer"}`:`For stor: forventede ${K??"value"} havde ${w} ${f.maximum.toString()}`}case"too_small":{const w=f.inclusive?">=":">",q=o(f.origin),K=s(f.origin);return q?`For lille: forventede ${K} ${q.verb} ${w} ${f.minimum.toString()} ${q.unit}`:`For lille: forventede ${K} havde ${w} ${f.minimum.toString()}`}case"invalid_format":{const w=f;return w.format==="starts_with"?`Ugyldig streng: skal starte med "${w.prefix}"`:w.format==="ends_with"?`Ugyldig streng: skal ende med "${w.suffix}"`:w.format==="includes"?`Ugyldig streng: skal indeholde "${w.includes}"`:w.format==="regex"?`Ugyldig streng: skal matche mønsteret ${w.pattern}`:`Ugyldig ${a[w.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"}: ${ge(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 Ey(){return{localeError:Oy()}}const Py=()=>{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 ${Ve(t.values[0])}`:`Ungültige Option: erwartet eine von ${ge(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"}: ${ge(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 Cy(){return{localeError:Py()}}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},Ay=()=>{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 ${Ve(s.values[0])}`:`Invalid option: expected one of ${ge(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":""}: ${ge(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 rm(){return{localeError:Ay()}}const Dy=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},Ly=()=>{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 ${Dy(s.input)}`;case"invalid_value":return s.values.length===1?`Nevalida enigo: atendiĝis ${Ve(s.values[0])}`:`Nevalida opcio: atendiĝis unu el ${ge(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":""}: ${ge(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 My(){return{localeError:Ly()}}const Zy=()=>{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 w=typeof f;switch(w){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 w},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 ${Ve(f.values[0])}`:`Opción inválida: se esperaba una de ${ge(f.values,"|")}`;case"too_big":{const w=f.inclusive?"<=":"<",q=o(f.origin),K=s(f.origin);return q?`Demasiado grande: se esperaba que ${K??"valor"} tuviera ${w}${f.maximum.toString()} ${q.unit??"elementos"}`:`Demasiado grande: se esperaba que ${K??"valor"} fuera ${w}${f.maximum.toString()}`}case"too_small":{const w=f.inclusive?">=":">",q=o(f.origin),K=s(f.origin);return q?`Demasiado pequeño: se esperaba que ${K} tuviera ${w}${f.minimum.toString()} ${q.unit}`:`Demasiado pequeño: se esperaba que ${K} fuera ${w}${f.minimum.toString()}`}case"invalid_format":{const w=f;return w.format==="starts_with"?`Cadena inválida: debe comenzar con "${w.prefix}"`:w.format==="ends_with"?`Cadena inválida: debe terminar en "${w.suffix}"`:w.format==="includes"?`Cadena inválida: debe incluir "${w.includes}"`:w.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${w.pattern}`:`Inválido ${a[w.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":""}: ${ge(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 Ry(){return{localeError:Zy()}}const qy=()=>{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?`ورودی نامعتبر: میبایست ${Ve(t.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${ge(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?"های":""} ناشناس: ${ge(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function Fy(){return{localeError:qy()}}const Wy=()=>{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 ${Ve(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${ge(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"}: ${ge(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 Vy(){return{localeError:Wy()}}const Qy=()=>{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 : ${Ve(t.values[0])} attendu`:`Option invalide : une valeur parmi ${ge(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":""} : ${ge(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 Gy(){return{localeError:Qy()}}const Jy=()=>{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 ${Ve(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ge(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":""} : ${ge(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:Jy()}}const Yy=()=>{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?`קלט לא תקין: צריך ${Ve(t.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${ge(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?"ים":"ה"}: ${ge(t.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${t.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t.origin}`;default:return"קלט לא תקין"}}};function Ky(){return{localeError:Yy()}}const Hy=()=>{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 ${Ve(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${ge(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":""}: ${ge(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 Xy(){return{localeError:Hy()}}const e$=()=>{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 ${Ve(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ge(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":""}: ${ge(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 t$(){return{localeError:e$()}}const r$=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},n$=()=>{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 ${r$(s.input)} þar sem á að vera ${s.expected}`;case"invalid_value":return s.values.length===1?`Rangt gildi: gert ráð fyrir ${Ve(s.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${ge(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"}: ${ge(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 i$(){return{localeError:n$()}}const o$=()=>{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 ${Ve(t.values[0])}`:`Opzione non valida: atteso uno tra ${ge(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"}: ${ge(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 a$(){return{localeError:o$()}}const s$=()=>{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?`無効な入力: ${Ve(t.values[0])}が期待されました`:`無効な選択: ${ge(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?"群":""}: ${ge(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function u$(){return{localeError:s$()}}const l$=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},c$=()=>{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}, მიღებული ${l$(s.input)}`;case"invalid_value":return s.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Ve(s.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${ge(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?"ები":"ი"}: ${ge(s.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${s.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${s.origin}-ში`;default:return"არასწორი შეყვანა"}}};function d$(){return{localeError:c$()}}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)?"មិនមែនជាលេខ (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?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Ve(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${ge(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`រកឃើញសោមិនស្គាល់៖ ${ge(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function nm(){return{localeError:f$()}}function m$(){return nm()}const p$=()=>{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?`잘못된 입력: 값은 ${Ve(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${ge(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=t.inclusive?"이하":"미만",f=a==="미만"?"이어야 합니다":"여야 합니다",w=r(t.origin),q=w?.unit??"요소";return w?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${q} ${a}${f}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${a}${f}`}case"too_small":{const a=t.inclusive?"이상":"초과",f=a==="이상"?"이어야 합니다":"여야 합니다",w=r(t.origin),q=w?.unit??"요소";return w?`${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`인식할 수 없는 키: ${ge(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 v$=e=>Wi(typeof e,e),Wi=(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},Vi=e=>e.charAt(0).toUpperCase()+e.slice(1);function im(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 h$=()=>{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 w=e[s]??null;return w===null?w:{unit:w.unit[t],verb:w.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 ${v$(s.input)}, o tikėtasi - ${Wi(s.expected)}`;case"invalid_value":return s.values.length===1?`Privalo būti ${Ve(s.values[0])}`:`Privalo būti vienas iš ${ge(s.values,"|")} pasirinkimų`;case"too_big":{const t=Wi(s.origin),a=r(s.origin,im(Number(s.maximum)),s.inclusive??!1,"smaller");if(a?.verb)return`${Vi(t??s.origin??"reikšmė")} ${a.verb} ${s.maximum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Vi(t??s.origin??"reikšmė")} turi būti ${f} ${s.maximum.toString()} ${a?.unit}`}case"too_small":{const t=Wi(s.origin),a=r(s.origin,im(Number(s.minimum)),s.inclusive??!1,"bigger");if(a?.verb)return`${Vi(t??s.origin??"reikšmė")} ${a.verb} ${s.minimum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Vi(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"}: ${ge(s.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const t=Wi(s.origin);return`${Vi(t??s.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function b$(){return{localeError:h$()}}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?`Invalid input: expected ${Ve(t.values[0])}`:`Грешана опција: се очекува една ${ge(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?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${ge(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function $$(){return{localeError:y$()}}const _$=()=>{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 ${Ve(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ge(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: ${ge(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 w$(){return{localeError:_$()}}const k$=()=>{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 ${Ve(t.values[0])}`:`Ongeldige optie: verwacht één van ${ge(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":""}: ${ge(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 x$(){return{localeError:k$()}}const S$=()=>{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 ${Ve(t.values[0])}`:`Ugyldig valg: forventet en av ${ge(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"}: ${ge(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 I$(){return{localeError:S$()}}const z$=()=>{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 ${Ve(t.values[0])}`:`Fâsit tercih: mûteberler ${ge(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":""}: ${ge(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 N$(){return{localeError:z$()}}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)?"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?`ناسم ورودي: باید ${Ve(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${ge(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?"کلیډونه":"کلیډ"}: ${ge(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function T$(){return{localeError:j$()}}const O$=()=>{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 ${Ve(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${ge(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":""}: ${ge(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 E$(){return{localeError:O$()}}const P$=()=>{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 ${Ve(t.values[0])}`:`Opção inválida: esperada uma das ${ge(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":""}: ${ge(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 C$(){return{localeError:P$()}}function om(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?`Неверный ввод: ожидалось ${Ve(t.values[0])}`:`Неверный вариант: ожидалось одно из ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const w=Number(t.maximum),q=om(w,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 w=Number(t.minimum),q=om(w,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?"и":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function A$(){return{localeError:U$()}}const D$=()=>{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 ${Ve(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${ge(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č"}: ${ge(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 L$(){return{localeError:D$()}}const M$=()=>{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 ${Ve(t.values[0])}`:`Ogiltigt val: förväntade en av ${ge(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"}: ${ge(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 Z$(){return{localeError:M$()}}const R$=()=>{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?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Ve(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${ge(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?"கள்":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};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)?"ไม่ใช่ตัวเลข (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?`ค่าไม่ถูกต้อง: ควรเป็น ${Ve(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${ge(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`พบคีย์ที่ไม่รู้จัก: ${ge(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 V$=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},Q$=()=>{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 ${V$(s.input)}`;case"invalid_value":return s.values.length===1?`Geçersiz değer: beklenen ${Ve(s.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${ge(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":""}: ${ge(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 G$(){return{localeError:Q$()}}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)?"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?`Неправильні вхідні дані: очікується ${Ve(t.values[0])}`:`Неправильна опція: очікується одне з ${ge(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?"і":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function am(){return{localeError:J$()}}function B$(){return am()}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"نل";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?`غلط ان پٹ: ${Ve(t.values[0])} متوقع تھا`:`غلط آپشن: ${ge(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?"ز":""}: ${ge(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$=()=>{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 ${Ve(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${ge(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: ${ge(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 X$(){return{localeError:H$()}}const e_=()=>{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?`无效输入:期望 ${Ve(t.values[0])}`:`无效选项:期望以下之一 ${ge(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): ${ge(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function t_(){return{localeError:e_()}}const r_=()=>{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?`無效的輸入值:預期為 ${Ve(t.values[0])}`:`無效的選項:預期為以下其中之一 ${ge(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?"們":""}:${ge(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function n_(){return{localeError:r_()}}const i_=()=>{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 ${Ve(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${ge(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ọ̀: ${ge(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 o_(){return{localeError:i_()}}const sm=Object.freeze(Object.defineProperty({__proto__:null,ar:wy,az:xy,be:Iy,ca:Ny,cs:Ty,da:Ey,de:Cy,en:rm,eo:My,es:Ry,fa:Fy,fi:Vy,fr:Gy,frCA:By,he:Ky,hu:Xy,id:t$,is:i$,it:a$,ja:u$,ka:d$,kh:m$,km:nm,ko:g$,lt:b$,mk:$$,ms:w$,nl:x$,no:I$,ota:N$,pl:E$,ps:T$,pt:C$,ru:A$,sl:L$,sv:Z$,ta:q$,th:W$,tr:G$,ua:B$,uk:am,ur:K$,vi:X$,yo:o_,zhCN:t_,zhTW:n_},Symbol.toStringTag,{value:"Module"})),um=Symbol("ZodOutput"),lm=Symbol("ZodInput");class ws{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 ws}const Pn=ks();function cm(e,r){return new e({type:"string",...ae(r)})}function dm(e,r){return new e({type:"string",coerce:!0,...ae(r)})}function xs(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ae(r)})}function Zo(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ae(r)})}function Ss(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ae(r)})}function Is(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ae(r)})}function zs(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ae(r)})}function Ns(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ae(r)})}function Ro(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ae(r)})}function js(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ae(r)})}function Ts(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ae(r)})}function Os(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ae(r)})}function Es(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ae(r)})}function Ps(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ae(r)})}function Cs(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ae(r)})}function Us(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ae(r)})}function As(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ae(r)})}function Ds(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ae(r)})}function Ls(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ae(r)})}function Ms(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ae(r)})}function Zs(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ae(r)})}function Rs(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ae(r)})}function qs(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ae(r)})}function Fs(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ae(r)})}const fm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function mm(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ae(r)})}function pm(e,r){return new e({type:"string",format:"date",check:"string_format",...ae(r)})}function gm(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...ae(r)})}function vm(e,r){return new e({type:"string",format:"duration",check:"string_format",...ae(r)})}function hm(e,r){return new e({type:"number",checks:[],...ae(r)})}function bm(e,r){return new e({type:"number",coerce:!0,checks:[],...ae(r)})}function ym(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ae(r)})}function $m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ae(r)})}function _m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ae(r)})}function wm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ae(r)})}function km(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ae(r)})}function xm(e,r){return new e({type:"boolean",...ae(r)})}function Sm(e,r){return new e({type:"boolean",coerce:!0,...ae(r)})}function Im(e,r){return new e({type:"bigint",...ae(r)})}function zm(e,r){return new e({type:"bigint",coerce:!0,...ae(r)})}function Nm(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ae(r)})}function jm(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ae(r)})}function Tm(e,r){return new e({type:"symbol",...ae(r)})}function Om(e,r){return new e({type:"undefined",...ae(r)})}function Em(e,r){return new e({type:"null",...ae(r)})}function Pm(e){return new e({type:"any"})}function Cm(e){return new e({type:"unknown"})}function Um(e,r){return new e({type:"never",...ae(r)})}function Am(e,r){return new e({type:"void",...ae(r)})}function Dm(e,r){return new e({type:"date",...ae(r)})}function Lm(e,r){return new e({type:"date",coerce:!0,...ae(r)})}function Mm(e,r){return new e({type:"nan",...ae(r)})}function Cn(e,r){return new fs({check:"less_than",...ae(r),value:e,inclusive:!1})}function Ur(e,r){return new fs({check:"less_than",...ae(r),value:e,inclusive:!0})}function Un(e,r){return new ms({check:"greater_than",...ae(r),value:e,inclusive:!1})}function vr(e,r){return new ms({check:"greater_than",...ae(r),value:e,inclusive:!0})}function Zm(e){return Un(0,e)}function Rm(e){return Cn(0,e)}function qm(e){return Ur(0,e)}function Fm(e){return vr(0,e)}function Qi(e,r){return new fd({check:"multiple_of",...ae(r),value:e})}function qo(e,r){return new gd({check:"max_size",...ae(r),maximum:e})}function Gi(e,r){return new vd({check:"min_size",...ae(r),minimum:e})}function Ws(e,r){return new hd({check:"size_equals",...ae(r),size:e})}function Fo(e,r){return new bd({check:"max_length",...ae(r),maximum:e})}function ui(e,r){return new yd({check:"min_length",...ae(r),minimum:e})}function Wo(e,r){return new $d({check:"length_equals",...ae(r),length:e})}function Vs(e,r){return new _d({check:"string_format",format:"regex",...ae(r),pattern:e})}function Qs(e){return new wd({check:"string_format",format:"lowercase",...ae(e)})}function Gs(e){return new kd({check:"string_format",format:"uppercase",...ae(e)})}function Js(e,r){return new xd({check:"string_format",format:"includes",...ae(r),includes:e})}function Bs(e,r){return new Sd({check:"string_format",format:"starts_with",...ae(r),prefix:e})}function Ys(e,r){return new Id({check:"string_format",format:"ends_with",...ae(r),suffix:e})}function Wm(e,r,o){return new Nd({check:"property",property:e,schema:r,...ae(o)})}function Ks(e,r){return new jd({check:"mime_type",mime:e,...ae(r)})}function An(e){return new Td({check:"overwrite",tx:e})}function Hs(e){return An(r=>r.normalize(e))}function Xs(){return An(e=>e.trim())}function eu(){return An(e=>e.toLowerCase())}function tu(){return An(e=>e.toUpperCase())}function Vm(e,r,o){return new e({type:"array",element:r,...ae(o)})}function a_(e,r,o){return new e({type:"union",options:r,...ae(o)})}function s_(e,r,o,s){return new e({type:"union",options:o,discriminator:r,...ae(s)})}function u_(e,r,o){return new e({type:"intersection",left:r,right:o})}function l_(e,r,o,s){const t=o instanceof Ge,a=t?s:o,f=t?o:null;return new e({type:"tuple",items:r,rest:f,...ae(a)})}function c_(e,r,o,s){return new e({type:"record",keyType:r,valueType:o,...ae(s)})}function d_(e,r,o,s){return new e({type:"map",keyType:r,valueType:o,...ae(s)})}function f_(e,r,o){return new e({type:"set",valueType:r,...ae(o)})}function m_(e,r,o){const s=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:s,...ae(o)})}function p_(e,r,o){return new e({type:"enum",entries:r,...ae(o)})}function g_(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...ae(o)})}function Qm(e,r){return new e({type:"file",...ae(r)})}function v_(e,r){return new e({type:"transform",transform:r})}function h_(e,r){return new e({type:"optional",innerType:r})}function b_(e,r){return new e({type:"nullable",innerType:r})}function y_(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():Oo(o)}})}function $_(e,r,o){return new e({type:"nonoptional",innerType:r,...ae(o)})}function __(e,r){return new e({type:"success",innerType:r})}function w_(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function k_(e,r,o){return new e({type:"pipe",in:r,out:o})}function x_(e,r){return new e({type:"readonly",innerType:r})}function S_(e,r,o){return new e({type:"template_literal",parts:r,...ae(o)})}function I_(e,r){return new e({type:"lazy",getter:r})}function z_(e,r){return new e({type:"promise",innerType:r})}function Gm(e,r,o){const s=ae(o);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:r,...s})}function Jm(e,r,o){return new e({type:"custom",check:"custom",fn:r,...ae(o)})}function Bm(e){const r=Ym(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(ai(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(ai(t))}},e(o.value,o)));return r}function Ym(e,r){const o=new Ct({check:"custom",...ae(r)});return o._zod.check=e,o}function Km(e,r){const o=ae(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(he=>typeof he=="string"?he.toLowerCase():he),t=t.map(he=>typeof he=="string"?he.toLowerCase():he));const a=new Set(s),f=new Set(t),w=e.Codec??_s,q=e.Boolean??vs,K=e.String??Fi,me=new K({type:"string",error:o.error}),le=new q({type:"boolean",error:o.error}),Re=new w({type:"pipe",in:me,out:le,transform:((he,Y)=>{let Ie=he;return o.case!=="sensitive"&&(Ie=Ie.toLowerCase()),a.has(Ie)?!0:f.has(Ie)?!1:(Y.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...f],input:Y.value,inst:Re,continue:!1}),{})}),reverseTransform:((he,Y)=>he===!0?s[0]||"true":t[0]||"false"),error:o.error});return Re}function Ji(e,r,o,s={}){const t=ae(s),a={...ae(s),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:w=>o.test(w),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}class ru{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??Pn,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 w={schema:{},count:1,cycle:void 0,path:o.path};this.seen.set(r,w);const q=r._zod.toJSONSchema?.();if(q)w.schema=q;else{const le={...o,schemaPath:[...o.schemaPath,r],path:o.path},Re=r._zod.parent;if(Re)w.ref=Re,this.process(Re,le),this.seen.get(Re).isParent=!0;else{const he=w.schema;switch(t.type){case"string":{const Y=he;Y.type="string";const{minimum:Ie,maximum:Ae,format:pt,patterns:ut,contentEncoding:ct}=r._zod.bag;if(typeof Ie=="number"&&(Y.minLength=Ie),typeof Ae=="number"&&(Y.maxLength=Ae),pt&&(Y.format=a[pt]??pt,Y.format===""&&delete Y.format),ct&&(Y.contentEncoding=ct),ut&&ut.size>0){const vt=[...ut];vt.length===1?Y.pattern=vt[0].source:vt.length>1&&(w.schema.allOf=[...vt.map(or=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:or.source}))])}break}case"number":{const Y=he,{minimum:Ie,maximum:Ae,format:pt,multipleOf:ut,exclusiveMaximum:ct,exclusiveMinimum:vt}=r._zod.bag;typeof pt=="string"&&pt.includes("int")?Y.type="integer":Y.type="number",typeof vt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(Y.minimum=vt,Y.exclusiveMinimum=!0):Y.exclusiveMinimum=vt),typeof Ie=="number"&&(Y.minimum=Ie,typeof vt=="number"&&this.target!=="draft-4"&&(vt>=Ie?delete Y.minimum:delete Y.exclusiveMinimum)),typeof ct=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(Y.maximum=ct,Y.exclusiveMaximum=!0):Y.exclusiveMaximum=ct),typeof Ae=="number"&&(Y.maximum=Ae,typeof ct=="number"&&this.target!=="draft-4"&&(ct<=Ae?delete Y.maximum:delete Y.exclusiveMaximum)),typeof ut=="number"&&(Y.multipleOf=ut);break}case"boolean":{const Y=he;Y.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"?(he.type="string",he.nullable=!0,he.enum=[null]):he.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":{he.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const Y=he,{minimum:Ie,maximum:Ae}=r._zod.bag;typeof Ie=="number"&&(Y.minItems=Ie),typeof Ae=="number"&&(Y.maxItems=Ae),Y.type="array",Y.items=this.process(t.element,{...le,path:[...le.path,"items"]});break}case"object":{const Y=he;Y.type="object",Y.properties={};const Ie=t.shape;for(const ut in Ie)Y.properties[ut]=this.process(Ie[ut],{...le,path:[...le.path,"properties",ut]});const Ae=new Set(Object.keys(Ie)),pt=new Set([...Ae].filter(ut=>{const ct=t.shape[ut]._zod;return this.io==="input"?ct.optin===void 0:ct.optout===void 0}));pt.size>0&&(Y.required=Array.from(pt)),t.catchall?._zod.def.type==="never"?Y.additionalProperties=!1:t.catchall?t.catchall&&(Y.additionalProperties=this.process(t.catchall,{...le,path:[...le.path,"additionalProperties"]})):this.io==="output"&&(Y.additionalProperties=!1);break}case"union":{const Y=he,Ie=t.options.map((Ae,pt)=>this.process(Ae,{...le,path:[...le.path,"anyOf",pt]}));Y.anyOf=Ie;break}case"intersection":{const Y=he,Ie=this.process(t.left,{...le,path:[...le.path,"allOf",0]}),Ae=this.process(t.right,{...le,path:[...le.path,"allOf",1]}),pt=ct=>"allOf"in ct&&Object.keys(ct).length===1,ut=[...pt(Ie)?Ie.allOf:[Ie],...pt(Ae)?Ae.allOf:[Ae]];Y.allOf=ut;break}case"tuple":{const Y=he;Y.type="array";const Ie=this.target==="draft-2020-12"?"prefixItems":"items",Ae=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",pt=t.items.map((or,Wr)=>this.process(or,{...le,path:[...le.path,Ie,Wr]})),ut=t.rest?this.process(t.rest,{...le,path:[...le.path,Ae,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(Y.prefixItems=pt,ut&&(Y.items=ut)):this.target==="openapi-3.0"?(Y.items={anyOf:pt},ut&&Y.items.anyOf.push(ut),Y.minItems=pt.length,ut||(Y.maxItems=pt.length)):(Y.items=pt,ut&&(Y.additionalItems=ut));const{minimum:ct,maximum:vt}=r._zod.bag;typeof ct=="number"&&(Y.minItems=ct),typeof vt=="number"&&(Y.maxItems=vt);break}case"record":{const Y=he;Y.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(Y.propertyNames=this.process(t.keyType,{...le,path:[...le.path,"propertyNames"]})),Y.additionalProperties=this.process(t.valueType,{...le,path:[...le.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 Y=he,Ie=Ga(t.entries);Ie.every(Ae=>typeof Ae=="number")&&(Y.type="number"),Ie.every(Ae=>typeof Ae=="string")&&(Y.type="string"),Y.enum=Ie;break}case"literal":{const Y=he,Ie=[];for(const Ae of t.values)if(Ae===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Ae=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");Ie.push(Number(Ae))}else Ie.push(Ae);if(Ie.length!==0)if(Ie.length===1){const Ae=Ie[0];Y.type=Ae===null?"null":typeof Ae,this.target==="draft-4"||this.target==="openapi-3.0"?Y.enum=[Ae]:Y.const=Ae}else Ie.every(Ae=>typeof Ae=="number")&&(Y.type="number"),Ie.every(Ae=>typeof Ae=="string")&&(Y.type="string"),Ie.every(Ae=>typeof Ae=="boolean")&&(Y.type="string"),Ie.every(Ae=>Ae===null)&&(Y.type="null"),Y.enum=Ie;break}case"file":{const Y=he,Ie={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Ae,maximum:pt,mime:ut}=r._zod.bag;Ae!==void 0&&(Ie.minLength=Ae),pt!==void 0&&(Ie.maxLength=pt),ut?ut.length===1?(Ie.contentMediaType=ut[0],Object.assign(Y,Ie)):Y.anyOf=ut.map(ct=>({...Ie,contentMediaType:ct})):Object.assign(Y,Ie);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const Y=this.process(t.innerType,le);this.target==="openapi-3.0"?(w.ref=t.innerType,he.nullable=!0):he.anyOf=[Y,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,le),w.ref=t.innerType;break}case"success":{const Y=he;Y.type="boolean";break}case"default":{this.process(t.innerType,le),w.ref=t.innerType,he.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,le),w.ref=t.innerType,this.io==="input"&&(he._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,le),w.ref=t.innerType;let Y;try{Y=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}he.default=Y;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const Y=he,Ie=r._zod.pattern;if(!Ie)throw new Error("Pattern not found in template literal");Y.type="string",Y.pattern=Ie.source;break}case"pipe":{const Y=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(Y,le),w.ref=Y;break}case"readonly":{this.process(t.innerType,le),w.ref=t.innerType,he.readOnly=!0;break}case"promise":{this.process(t.innerType,le),w.ref=t.innerType;break}case"optional":{this.process(t.innerType,le),w.ref=t.innerType;break}case"lazy":{const Y=r._zod.innerType;this.process(Y,le),w.ref=Y;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 K=this.metadataRegistry.get(r);return K&&Object.assign(w.schema,K),this.io==="input"&&Vt(r)&&(delete w.schema.examples,delete w.schema.default),this.io==="input"&&w.schema._prefault&&((s=w.schema).default??(s.default=w.schema._prefault)),delete w.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 le=this.target==="draft-2020-12"?"$defs":"definitions";if(s.external){const Ie=s.external.registry.get(me[0])?.id,Ae=s.external.uri??(ut=>ut);if(Ie)return{ref:Ae(Ie)};const pt=me[1].defId??me[1].schema.id??`schema${this.counter++}`;return me[1].defId=pt,{defId:pt,ref:`${Ae("__shared")}#/${le}/${pt}`}}if(me[1]===t)return{ref:"#"};const he=`#/${le}/`,Y=me[1].schema.id??`__schema${this.counter++}`;return{defId:Y,ref:he+Y}},f=me=>{if(me[1].schema.$ref)return;const le=me[1],{ref:Re,defId:he}=a(me);le.def={...le.schema},he&&(le.defId=he);const Y=le.schema;for(const Ie in Y)delete Y[Ie];Y.$ref=Re};if(s.cycles==="throw")for(const me of this.seen.entries()){const le=me[1];if(le.cycle)throw new Error(`Cycle detected: #/${le.cycle?.join("/")}/<root>
|
|
42
|
+
`)}he.write("payload.value = newResult;"),he.write("return payload;");const ut=he.compile();return(ct,vt)=>ut(Re,ct,vt)};let a;const f=oi,w=!zo.jitless,H=w&&dc.value,pe=r.catchall;let ce;e._zod.parse=(Re,he)=>{ce??(ce=s.value);const K=Re.value;return f(K)?w&&H&&he?.async===!1&&he.jitless!==!0?(a||(a=t(r.shape)),Re=a(Re,he),pe?yf([],K,Re,he,ce,e):Re):o(Re,he):(Re.issues.push({expected:"object",code:"invalid_type",input:K,inst:e}),Re)}});function wf(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=>!En(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=>Cr(f,s,ir())))}),r)}const hs=U("$ZodUnion",(e,r)=>{Ve.init(e,r),it(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),it(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),it(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),it(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=>jo(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 w=[];for(const Z of r.options){const H=Z._zod.run({value:t.value,issues:[]},a);if(H instanceof Promise)w.push(H),f=!0;else{if(H.issues.length===0)return H;w.push(H)}}return f?Promise.all(w).then(Z=>wf(Z,t,e,a)):wf(w,t,e,a)}}),kf=U("$ZodDiscriminatedUnion",(e,r)=>{hs.init(e,r);const o=e._zod.parse;it(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[w,Z]of Object.entries(f)){t[w]||(t[w]=new Set);for(const H of Z)t[w].add(H)}}return t});const s=Pi(()=>{const t=r.options,a=new Map;for(const f of t){const w=f._zod.propValues?.[r.discriminator];if(!w||w.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(f)}"`);for(const Z of w){if(a.has(Z))throw new Error(`Duplicate discriminator value "${String(Z)}"`);a.set(Z,f)}}return a});e._zod.parse=(t,a)=>{const f=t.value;if(!oi(f))return t.issues.push({code:"invalid_type",expected:"object",input:f,inst:e}),t;const w=s.value.get(f?.[r.discriminator]);return w?w._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)}}),xf=U("$ZodIntersection",(e,r)=>{Ve.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(([Z,H])=>Sf(o,Z,H)):Sf(o,a,f)}});function bs(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(On(e)&&On(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=bs(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=bs(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 Sf(e,r,o){if(r.issues.length&&e.issues.push(...r.issues),o.issues.length&&e.issues.push(...o.issues),En(e))return e;const s=bs(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 ys=U("$ZodTuple",(e,r)=>{Ve.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 w=[];if(!r.rest){const H=f.length>o.length,pe=f.length<s-1;if(H||pe)return t.issues.push({...H?{code:"too_big",maximum:o.length}:{code:"too_small",minimum:o.length},input:f,inst:e,origin:"array"}),t}let Z=-1;for(const H of o){if(Z++,Z>=f.length&&Z>=s)continue;const pe=H._zod.run({value:f[Z],issues:[]},a);pe instanceof Promise?w.push(pe.then(ce=>Do(ce,t,Z))):Do(pe,t,Z)}if(r.rest){const H=f.slice(o.length);for(const pe of H){Z++;const ce=r.rest._zod.run({value:pe,issues:[]},a);ce instanceof Promise?w.push(ce.then(Re=>Do(Re,t,Z))):Do(ce,t,Z)}}return w.length?Promise.all(w).then(()=>t):t}});function Do(e,r,o){e.issues.length&&r.issues.push(...Pr(o,e.issues)),r.value[o]=e.value}const If=U("$ZodRecord",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!On(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 Z of f)if(typeof Z=="string"||typeof Z=="number"||typeof Z=="symbol"){const H=r.valueType._zod.run({value:t[Z],issues:[]},s);H instanceof Promise?a.push(H.then(pe=>{pe.issues.length&&o.issues.push(...Pr(Z,pe.issues)),o.value[Z]=pe.value})):(H.issues.length&&o.issues.push(...Pr(Z,H.issues)),o.value[Z]=H.value)}let w;for(const Z in t)f.has(Z)||(w=w??[],w.push(Z));w&&w.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:w})}else{o.value={};for(const f of Reflect.ownKeys(t)){if(f==="__proto__")continue;const w=r.keyType._zod.run({value:f,issues:[]},s);if(w instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(w.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:w.issues.map(H=>Cr(H,s,ir())),input:f,path:[f],inst:e}),o.value[w.value]=w.value;continue}const Z=r.valueType._zod.run({value:t[f],issues:[]},s);Z instanceof Promise?a.push(Z.then(H=>{H.issues.length&&o.issues.push(...Pr(f,H.issues)),o.value[w.value]=H.value})):(Z.issues.length&&o.issues.push(...Pr(f,Z.issues)),o.value[w.value]=Z.value)}}return a.length?Promise.all(a).then(()=>o):o}}),zf=U("$ZodMap",(e,r)=>{Ve.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,w]of t){const Z=r.keyType._zod.run({value:f,issues:[]},s),H=r.valueType._zod.run({value:w,issues:[]},s);Z instanceof Promise||H instanceof Promise?a.push(Promise.all([Z,H]).then(([pe,ce])=>{Nf(pe,ce,o,f,t,e,s)})):Nf(Z,H,o,f,t,e,s)}return a.length?Promise.all(a).then(()=>o):o}});function Nf(e,r,o,s,t,a,f){e.issues.length&&(Eo.has(typeof s)?o.issues.push(...Pr(s,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(w=>Cr(w,f,ir()))})),r.issues.length&&(Eo.has(typeof s)?o.issues.push(...Pr(s,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:s,issues:r.issues.map(w=>Cr(w,f,ir()))})),o.value.set(e.value,r.value)}const jf=U("$ZodSet",(e,r)=>{Ve.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 w=r.valueType._zod.run({value:f,issues:[]},s);w instanceof Promise?a.push(w.then(Z=>Tf(Z,o))):Tf(w,o)}return a.length?Promise.all(a).then(()=>o):o}});function Tf(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}const Of=U("$ZodEnum",(e,r)=>{Ve.init(e,r);const o=Ga(r.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(t=>Eo.has(typeof t)).map(t=>typeof t=="string"?mn(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}}),Ef=U("$ZodLiteral",(e,r)=>{if(Ve.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"?mn(o):o?mn(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}}),Pf=U("$ZodFile",(e,r)=>{Ve.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}}),Cf=U("$ZodTransform",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new Io(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 jn;return o.value=t,o}});function Uf(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const Df=U("$ZodOptional",(e,r)=>{Ve.init(e,r),e._zod.optin="optional",e._zod.optout="optional",it(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),it(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${jo(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=>Uf(a,o.value)):Uf(t,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,s)}}),Mf=U("$ZodNullable",(e,r)=>{Ve.init(e,r),it(e._zod,"optin",()=>r.innerType._zod.optin),it(e._zod,"optout",()=>r.innerType._zod.optout),it(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${jo(o.source)}|null)$`):void 0}),it(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=U("$ZodDefault",(e,r)=>{Ve.init(e,r),e._zod.optin="optional",it(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=>Lf(a,r)):Lf(t,r)}});function Lf(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const Zf=U("$ZodPrefault",(e,r)=>{Ve.init(e,r),e._zod.optin="optional",it(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))}),Rf=U("$ZodNonOptional",(e,r)=>{Ve.init(e,r),it(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 Ff=U("$ZodSuccess",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new Io("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)}}),Wf=U("$ZodCatch",(e,r)=>{Ve.init(e,r),it(e._zod,"optin",()=>r.innerType._zod.optin),it(e._zod,"optout",()=>r.innerType._zod.optout),it(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=>Cr(f,s,ir()))},input:o.value}),o.issues=[]),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>Cr(a,s,ir()))},input:o.value}),o.issues=[]),o)}}),Qf=U("$ZodNaN",(e,r)=>{Ve.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)}),Gf=U("$ZodPipe",(e,r)=>{Ve.init(e,r),it(e._zod,"values",()=>r.in._zod.values),it(e._zod,"optin",()=>r.in._zod.optin),it(e._zod,"optout",()=>r.out._zod.optout),it(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=>Mo(f,r.in,s)):Mo(a,r.in,s)}const t=r.in._zod.run(o,s);return t instanceof Promise?t.then(a=>Mo(a,r.out,s)):Mo(t,r.out,s)}});function Mo(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},o)}const $s=U("$ZodCodec",(e,r)=>{Ve.init(e,r),it(e._zod,"values",()=>r.in._zod.values),it(e._zod,"optin",()=>r.in._zod.optin),it(e._zod,"optout",()=>r.out._zod.optout),it(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=>Ao(f,r,s)):Ao(a,r,s)}else{const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Ao(f,r,s)):Ao(a,r,s)}}});function Ao(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=>Lo(e,a,r.out,o)):Lo(e,t,r.out,o)}else{const t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>Lo(e,a,r.in,o)):Lo(e,t,r.in,o)}}function Lo(e,r,o,s){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},s)}const Vf=U("$ZodReadonly",(e,r)=>{Ve.init(e,r),it(e._zod,"propValues",()=>r.innerType._zod.propValues),it(e._zod,"values",()=>r.innerType._zod.values),it(e._zod,"optin",()=>r.innerType._zod.optin),it(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(Jf):Jf(t)}});function Jf(e){return e.value=Object.freeze(e.value),e}const Bf=U("$ZodTemplateLiteral",(e,r)=>{Ve.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||fc.has(typeof s))o.push(mn(`${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)}),Yf=U("$ZodFunction",(e,r)=>(Ve.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?Ha(e._def.input,s):s,a=Reflect.apply(o,this,t);return e._def.output?Ha(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 Xa(e._def.input,s):s,a=await Reflect.apply(o,this,t);return e._def.output?await Xa(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 ys({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)),Kf=U("$ZodPromise",(e,r)=>{Ve.init(e,r),e._zod.parse=(o,s)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},s))}),Hf=U("$ZodLazy",(e,r)=>{Ve.init(e,r),it(e._zod,"innerType",()=>r.getter()),it(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),it(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),it(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),it(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(o,s)=>e._zod.innerType._zod.run(o,s)}),Xf=U("$ZodCustom",(e,r)=>{Ct.init(e,r),Ve.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=>em(a,o,s,e));em(t,o,s,e)}});function em(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(ai(t))}}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":"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?`مدخلات غير مقبولة: يفترض إدخال ${Qe(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${ve(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?"ة":""}: ${ve(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function wy(){return{localeError:_y()}}const ky=()=>{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 ${Qe(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${ve(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":""}: ${ve(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 xy(){return{localeError:ky()}}function tm(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 Sy=()=>{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?`Няправільны ўвод: чакалася ${Qe(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const w=Number(t.maximum),Z=tm(w,f.unit.one,f.unit.few,f.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${f.verb} ${a}${t.maximum.toString()} ${Z}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const w=Number(t.minimum),Z=tm(w,f.unit.one,f.unit.few,f.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${f.verb} ${a}${t.minimum.toString()} ${Z}`}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?"ключы":"ключ"}: ${ve(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function Iy(){return{localeError:Sy()}}const zy=()=>{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 ${Qe(t.values[0])}`:`Opció invàlida: s'esperava una de ${ve(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":""}: ${ve(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 Ny(){return{localeError:zy()}}const jy=()=>{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 ${Qe(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${ve(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: ${ve(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 Ty(){return{localeError:jy()}}const Oy=()=>{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 w=typeof f;switch(w){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 w},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 ${Qe(f.values[0])}`:`Ugyldigt valg: forventede en af følgende ${ve(f.values,"|")}`;case"too_big":{const w=f.inclusive?"<=":"<",Z=o(f.origin),H=s(f.origin);return Z?`For stor: forventede ${H??"value"} ${Z.verb} ${w} ${f.maximum.toString()} ${Z.unit??"elementer"}`:`For stor: forventede ${H??"value"} havde ${w} ${f.maximum.toString()}`}case"too_small":{const w=f.inclusive?">=":">",Z=o(f.origin),H=s(f.origin);return Z?`For lille: forventede ${H} ${Z.verb} ${w} ${f.minimum.toString()} ${Z.unit}`:`For lille: forventede ${H} havde ${w} ${f.minimum.toString()}`}case"invalid_format":{const w=f;return w.format==="starts_with"?`Ugyldig streng: skal starte med "${w.prefix}"`:w.format==="ends_with"?`Ugyldig streng: skal ende med "${w.suffix}"`:w.format==="includes"?`Ugyldig streng: skal indeholde "${w.includes}"`:w.format==="regex"?`Ugyldig streng: skal matche mønsteret ${w.pattern}`:`Ugyldig ${a[w.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"}: ${ve(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 Ey(){return{localeError:Oy()}}const Py=()=>{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 ${Qe(t.values[0])}`:`Ungültige Option: erwartet eine von ${ve(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"}: ${ve(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 Cy(){return{localeError:Py()}}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},Dy=()=>{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 ${Qe(s.values[0])}`:`Invalid option: expected one of ${ve(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":""}: ${ve(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 rm(){return{localeError:Dy()}}const My=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},Ay=()=>{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 ${My(s.input)}`;case"invalid_value":return s.values.length===1?`Nevalida enigo: atendiĝis ${Qe(s.values[0])}`:`Nevalida opcio: atendiĝis unu el ${ve(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":""}: ${ve(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 Ly(){return{localeError:Ay()}}const Zy=()=>{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 w=typeof f;switch(w){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 w},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 ${Qe(f.values[0])}`:`Opción inválida: se esperaba una de ${ve(f.values,"|")}`;case"too_big":{const w=f.inclusive?"<=":"<",Z=o(f.origin),H=s(f.origin);return Z?`Demasiado grande: se esperaba que ${H??"valor"} tuviera ${w}${f.maximum.toString()} ${Z.unit??"elementos"}`:`Demasiado grande: se esperaba que ${H??"valor"} fuera ${w}${f.maximum.toString()}`}case"too_small":{const w=f.inclusive?">=":">",Z=o(f.origin),H=s(f.origin);return Z?`Demasiado pequeño: se esperaba que ${H} tuviera ${w}${f.minimum.toString()} ${Z.unit}`:`Demasiado pequeño: se esperaba que ${H} fuera ${w}${f.minimum.toString()}`}case"invalid_format":{const w=f;return w.format==="starts_with"?`Cadena inválida: debe comenzar con "${w.prefix}"`:w.format==="ends_with"?`Cadena inválida: debe terminar en "${w.suffix}"`:w.format==="includes"?`Cadena inválida: debe incluir "${w.includes}"`:w.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${w.pattern}`:`Inválido ${a[w.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":""}: ${ve(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 Ry(){return{localeError:Zy()}}const qy=()=>{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?`ورودی نامعتبر: میبایست ${Qe(t.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${ve(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?"های":""} ناشناس: ${ve(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function Fy(){return{localeError:qy()}}const Wy=()=>{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 ${Qe(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${ve(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"}: ${ve(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 Qy(){return{localeError:Wy()}}const Gy=()=>{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 : ${Qe(t.values[0])} attendu`:`Option invalide : une valeur parmi ${ve(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":""} : ${ve(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 Vy(){return{localeError:Gy()}}const Jy=()=>{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 ${Qe(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ve(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":""} : ${ve(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:Jy()}}const Yy=()=>{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?`קלט לא תקין: צריך ${Qe(t.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${ve(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?"ים":"ה"}: ${ve(t.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${t.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t.origin}`;default:return"קלט לא תקין"}}};function Ky(){return{localeError:Yy()}}const Hy=()=>{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 ${Qe(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${ve(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":""}: ${ve(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 Xy(){return{localeError:Hy()}}const e$=()=>{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 ${Qe(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ve(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":""}: ${ve(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 t$(){return{localeError:e$()}}const r$=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},n$=()=>{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 ${r$(s.input)} þar sem á að vera ${s.expected}`;case"invalid_value":return s.values.length===1?`Rangt gildi: gert ráð fyrir ${Qe(s.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${ve(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"}: ${ve(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 i$(){return{localeError:n$()}}const o$=()=>{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 ${Qe(t.values[0])}`:`Opzione non valida: atteso uno tra ${ve(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"}: ${ve(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 a$(){return{localeError:o$()}}const s$=()=>{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?`無効な入力: ${Qe(t.values[0])}が期待されました`:`無効な選択: ${ve(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?"群":""}: ${ve(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function u$(){return{localeError:s$()}}const l$=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},c$=()=>{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}, მიღებული ${l$(s.input)}`;case"invalid_value":return s.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Qe(s.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${ve(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?"ები":"ი"}: ${ve(s.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${s.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${s.origin}-ში`;default:return"არასწორი შეყვანა"}}};function d$(){return{localeError:c$()}}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)?"មិនមែនជាលេខ (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?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Qe(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${ve(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`រកឃើញសោមិនស្គាល់៖ ${ve(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function nm(){return{localeError:f$()}}function m$(){return nm()}const p$=()=>{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?`잘못된 입력: 값은 ${Qe(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${ve(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=t.inclusive?"이하":"미만",f=a==="미만"?"이어야 합니다":"여야 합니다",w=r(t.origin),Z=w?.unit??"요소";return w?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${Z} ${a}${f}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${a}${f}`}case"too_small":{const a=t.inclusive?"이상":"초과",f=a==="이상"?"이어야 합니다":"여야 합니다",w=r(t.origin),Z=w?.unit??"요소";return w?`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${Z} ${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`인식할 수 없는 키: ${ve(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 v$=e=>Fi(typeof e,e),Fi=(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},Wi=e=>e.charAt(0).toUpperCase()+e.slice(1);function im(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 h$=()=>{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 w=e[s]??null;return w===null?w:{unit:w.unit[t],verb:w.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 ${v$(s.input)}, o tikėtasi - ${Fi(s.expected)}`;case"invalid_value":return s.values.length===1?`Privalo būti ${Qe(s.values[0])}`:`Privalo būti vienas iš ${ve(s.values,"|")} pasirinkimų`;case"too_big":{const t=Fi(s.origin),a=r(s.origin,im(Number(s.maximum)),s.inclusive??!1,"smaller");if(a?.verb)return`${Wi(t??s.origin??"reikšmė")} ${a.verb} ${s.maximum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Wi(t??s.origin??"reikšmė")} turi būti ${f} ${s.maximum.toString()} ${a?.unit}`}case"too_small":{const t=Fi(s.origin),a=r(s.origin,im(Number(s.minimum)),s.inclusive??!1,"bigger");if(a?.verb)return`${Wi(t??s.origin??"reikšmė")} ${a.verb} ${s.minimum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Wi(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"}: ${ve(s.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const t=Fi(s.origin);return`${Wi(t??s.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function b$(){return{localeError:h$()}}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?`Invalid input: expected ${Qe(t.values[0])}`:`Грешана опција: се очекува една ${ve(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?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${ve(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function $$(){return{localeError:y$()}}const _$=()=>{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 ${Qe(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ve(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: ${ve(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 w$(){return{localeError:_$()}}const k$=()=>{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 ${Qe(t.values[0])}`:`Ongeldige optie: verwacht één van ${ve(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":""}: ${ve(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 x$(){return{localeError:k$()}}const S$=()=>{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 ${Qe(t.values[0])}`:`Ugyldig valg: forventet en av ${ve(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"}: ${ve(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 I$(){return{localeError:S$()}}const z$=()=>{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 ${Qe(t.values[0])}`:`Fâsit tercih: mûteberler ${ve(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":""}: ${ve(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 N$(){return{localeError:z$()}}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)?"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?`ناسم ورودي: باید ${Qe(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${ve(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?"کلیډونه":"کلیډ"}: ${ve(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function T$(){return{localeError:j$()}}const O$=()=>{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 ${Qe(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${ve(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":""}: ${ve(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 E$(){return{localeError:O$()}}const P$=()=>{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 ${Qe(t.values[0])}`:`Opção inválida: esperada uma das ${ve(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":""}: ${ve(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 C$(){return{localeError:P$()}}function om(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?`Неверный ввод: ожидалось ${Qe(t.values[0])}`:`Неверный вариант: ожидалось одно из ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const w=Number(t.maximum),Z=om(w,f.unit.one,f.unit.few,f.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${a}${t.maximum.toString()} ${Z}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const w=Number(t.minimum),Z=om(w,f.unit.one,f.unit.few,f.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${a}${t.minimum.toString()} ${Z}`}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?"и":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function D$(){return{localeError:U$()}}const M$=()=>{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 ${Qe(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${ve(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č"}: ${ve(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 A$(){return{localeError:M$()}}const L$=()=>{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 ${Qe(t.values[0])}`:`Ogiltigt val: förväntade en av ${ve(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"}: ${ve(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 Z$(){return{localeError:L$()}}const R$=()=>{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?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Qe(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${ve(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?"கள்":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};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)?"ไม่ใช่ตัวเลข (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?`ค่าไม่ถูกต้อง: ควรเป็น ${Qe(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${ve(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`พบคีย์ที่ไม่รู้จัก: ${ve(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 Q$=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},G$=()=>{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 ${Q$(s.input)}`;case"invalid_value":return s.values.length===1?`Geçersiz değer: beklenen ${Qe(s.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${ve(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":""}: ${ve(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 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)?"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?`Неправильні вхідні дані: очікується ${Qe(t.values[0])}`:`Неправильна опція: очікується одне з ${ve(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?"і":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function am(){return{localeError:J$()}}function B$(){return am()}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"نل";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?`غلط ان پٹ: ${Qe(t.values[0])} متوقع تھا`:`غلط آپشن: ${ve(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?"ز":""}: ${ve(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$=()=>{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 ${Qe(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${ve(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: ${ve(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 X$(){return{localeError:H$()}}const e_=()=>{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?`无效输入:期望 ${Qe(t.values[0])}`:`无效选项:期望以下之一 ${ve(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): ${ve(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function t_(){return{localeError:e_()}}const r_=()=>{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?`無效的輸入值:預期為 ${Qe(t.values[0])}`:`無效的選項:預期為以下其中之一 ${ve(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?"們":""}:${ve(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function n_(){return{localeError:r_()}}const i_=()=>{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 ${Qe(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${ve(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ọ̀: ${ve(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 o_(){return{localeError:i_()}}const sm=Object.freeze(Object.defineProperty({__proto__:null,ar:wy,az:xy,be:Iy,ca:Ny,cs:Ty,da:Ey,de:Cy,en:rm,eo:Ly,es:Ry,fa:Fy,fi:Qy,fr:Vy,frCA:By,he:Ky,hu:Xy,id:t$,is:i$,it:a$,ja:u$,ka:d$,kh:m$,km:nm,ko:g$,lt:b$,mk:$$,ms:w$,nl:x$,no:I$,ota:N$,pl:E$,ps:T$,pt:C$,ru:D$,sl:A$,sv:Z$,ta:q$,th:W$,tr:V$,ua:B$,uk:am,ur:K$,vi:X$,yo:o_,zhCN:t_,zhTW:n_},Symbol.toStringTag,{value:"Module"})),um=Symbol("ZodOutput"),lm=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 ws(){return new _s}const Pn=ws();function cm(e,r){return new e({type:"string",...se(r)})}function dm(e,r){return new e({type:"string",coerce:!0,...se(r)})}function ks(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...se(r)})}function Zo(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...se(r)})}function xs(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...se(r)})}function Ss(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...se(r)})}function Is(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...se(r)})}function zs(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...se(r)})}function Ro(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...se(r)})}function Ns(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...se(r)})}function js(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...se(r)})}function Ts(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...se(r)})}function Os(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...se(r)})}function Es(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...se(r)})}function Ps(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...se(r)})}function Cs(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...se(r)})}function Us(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...se(r)})}function Ds(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...se(r)})}function Ms(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...se(r)})}function As(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...se(r)})}function Ls(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...se(r)})}function Zs(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...se(r)})}function Rs(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 fm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function mm(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...se(r)})}function pm(e,r){return new e({type:"string",format:"date",check:"string_format",...se(r)})}function gm(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...se(r)})}function vm(e,r){return new e({type:"string",format:"duration",check:"string_format",...se(r)})}function hm(e,r){return new e({type:"number",checks:[],...se(r)})}function bm(e,r){return new e({type:"number",coerce:!0,checks:[],...se(r)})}function ym(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...se(r)})}function $m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...se(r)})}function _m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...se(r)})}function wm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...se(r)})}function km(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...se(r)})}function xm(e,r){return new e({type:"boolean",...se(r)})}function Sm(e,r){return new e({type:"boolean",coerce:!0,...se(r)})}function Im(e,r){return new e({type:"bigint",...se(r)})}function zm(e,r){return new e({type:"bigint",coerce:!0,...se(r)})}function Nm(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...se(r)})}function jm(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...se(r)})}function Tm(e,r){return new e({type:"symbol",...se(r)})}function Om(e,r){return new e({type:"undefined",...se(r)})}function Em(e,r){return new e({type:"null",...se(r)})}function Pm(e){return new e({type:"any"})}function Cm(e){return new e({type:"unknown"})}function Um(e,r){return new e({type:"never",...se(r)})}function Dm(e,r){return new e({type:"void",...se(r)})}function Mm(e,r){return new e({type:"date",...se(r)})}function Am(e,r){return new e({type:"date",coerce:!0,...se(r)})}function Lm(e,r){return new e({type:"nan",...se(r)})}function Cn(e,r){return new ds({check:"less_than",...se(r),value:e,inclusive:!1})}function Ur(e,r){return new ds({check:"less_than",...se(r),value:e,inclusive:!0})}function Un(e,r){return new fs({check:"greater_than",...se(r),value:e,inclusive:!1})}function vr(e,r){return new fs({check:"greater_than",...se(r),value:e,inclusive:!0})}function Zm(e){return Un(0,e)}function Rm(e){return Cn(0,e)}function qm(e){return Ur(0,e)}function Fm(e){return vr(0,e)}function Qi(e,r){return new fd({check:"multiple_of",...se(r),value:e})}function qo(e,r){return new gd({check:"max_size",...se(r),maximum:e})}function Gi(e,r){return new vd({check:"min_size",...se(r),minimum:e})}function Fs(e,r){return new hd({check:"size_equals",...se(r),size:e})}function Fo(e,r){return new bd({check:"max_length",...se(r),maximum:e})}function ui(e,r){return new yd({check:"min_length",...se(r),minimum:e})}function Wo(e,r){return new $d({check:"length_equals",...se(r),length:e})}function Ws(e,r){return new _d({check:"string_format",format:"regex",...se(r),pattern:e})}function Qs(e){return new wd({check:"string_format",format:"lowercase",...se(e)})}function Gs(e){return new kd({check:"string_format",format:"uppercase",...se(e)})}function Vs(e,r){return new xd({check:"string_format",format:"includes",...se(r),includes:e})}function Js(e,r){return new Sd({check:"string_format",format:"starts_with",...se(r),prefix:e})}function Bs(e,r){return new Id({check:"string_format",format:"ends_with",...se(r),suffix:e})}function Wm(e,r,o){return new Nd({check:"property",property:e,schema:r,...se(o)})}function Ys(e,r){return new jd({check:"mime_type",mime:e,...se(r)})}function Dn(e){return new Td({check:"overwrite",tx:e})}function Ks(e){return Dn(r=>r.normalize(e))}function Hs(){return Dn(e=>e.trim())}function Xs(){return Dn(e=>e.toLowerCase())}function eu(){return Dn(e=>e.toUpperCase())}function Qm(e,r,o){return new e({type:"array",element:r,...se(o)})}function a_(e,r,o){return new e({type:"union",options:r,...se(o)})}function s_(e,r,o,s){return new e({type:"union",options:o,discriminator:r,...se(s)})}function u_(e,r,o){return new e({type:"intersection",left:r,right:o})}function l_(e,r,o,s){const t=o instanceof Ve,a=t?s:o,f=t?o:null;return new e({type:"tuple",items:r,rest:f,...se(a)})}function c_(e,r,o,s){return new e({type:"record",keyType:r,valueType:o,...se(s)})}function d_(e,r,o,s){return new e({type:"map",keyType:r,valueType:o,...se(s)})}function f_(e,r,o){return new e({type:"set",valueType:r,...se(o)})}function m_(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 p_(e,r,o){return new e({type:"enum",entries:r,...se(o)})}function g_(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...se(o)})}function Gm(e,r){return new e({type:"file",...se(r)})}function v_(e,r){return new e({type:"transform",transform:r})}function h_(e,r){return new e({type:"optional",innerType:r})}function b_(e,r){return new e({type:"nullable",innerType:r})}function y_(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():Oo(o)}})}function $_(e,r,o){return new e({type:"nonoptional",innerType:r,...se(o)})}function __(e,r){return new e({type:"success",innerType:r})}function w_(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function k_(e,r,o){return new e({type:"pipe",in:r,out:o})}function x_(e,r){return new e({type:"readonly",innerType:r})}function S_(e,r,o){return new e({type:"template_literal",parts:r,...se(o)})}function I_(e,r){return new e({type:"lazy",getter:r})}function z_(e,r){return new e({type:"promise",innerType:r})}function Vm(e,r,o){const s=se(o);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:r,...s})}function Jm(e,r,o){return new e({type:"custom",check:"custom",fn:r,...se(o)})}function Bm(e){const r=Ym(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(ai(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(ai(t))}},e(o.value,o)));return r}function Ym(e,r){const o=new Ct({check:"custom",...se(r)});return o._zod.check=e,o}function Km(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(he=>typeof he=="string"?he.toLowerCase():he),t=t.map(he=>typeof he=="string"?he.toLowerCase():he));const a=new Set(s),f=new Set(t),w=e.Codec??$s,Z=e.Boolean??gs,H=e.String??qi,pe=new H({type:"string",error:o.error}),ce=new Z({type:"boolean",error:o.error}),Re=new w({type:"pipe",in:pe,out:ce,transform:((he,K)=>{let ze=he;return o.case!=="sensitive"&&(ze=ze.toLowerCase()),a.has(ze)?!0:f.has(ze)?!1:(K.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...f],input:K.value,inst:Re,continue:!1}),{})}),reverseTransform:((he,K)=>he===!0?s[0]||"true":t[0]||"false"),error:o.error});return Re}function Vi(e,r,o,s={}){const t=se(s),a={...se(s),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:w=>o.test(w),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}class tu{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??Pn,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 w={schema:{},count:1,cycle:void 0,path:o.path};this.seen.set(r,w);const Z=r._zod.toJSONSchema?.();if(Z)w.schema=Z;else{const ce={...o,schemaPath:[...o.schemaPath,r],path:o.path},Re=r._zod.parent;if(Re)w.ref=Re,this.process(Re,ce),this.seen.get(Re).isParent=!0;else{const he=w.schema;switch(t.type){case"string":{const K=he;K.type="string";const{minimum:ze,maximum:De,format:pt,patterns:ut,contentEncoding:ct}=r._zod.bag;if(typeof ze=="number"&&(K.minLength=ze),typeof De=="number"&&(K.maxLength=De),pt&&(K.format=a[pt]??pt,K.format===""&&delete K.format),ct&&(K.contentEncoding=ct),ut&&ut.size>0){const vt=[...ut];vt.length===1?K.pattern=vt[0].source:vt.length>1&&(w.schema.allOf=[...vt.map(or=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:or.source}))])}break}case"number":{const K=he,{minimum:ze,maximum:De,format:pt,multipleOf:ut,exclusiveMaximum:ct,exclusiveMinimum:vt}=r._zod.bag;typeof pt=="string"&&pt.includes("int")?K.type="integer":K.type="number",typeof vt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(K.minimum=vt,K.exclusiveMinimum=!0):K.exclusiveMinimum=vt),typeof ze=="number"&&(K.minimum=ze,typeof vt=="number"&&this.target!=="draft-4"&&(vt>=ze?delete K.minimum:delete K.exclusiveMinimum)),typeof ct=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(K.maximum=ct,K.exclusiveMaximum=!0):K.exclusiveMaximum=ct),typeof De=="number"&&(K.maximum=De,typeof ct=="number"&&this.target!=="draft-4"&&(ct<=De?delete K.maximum:delete K.exclusiveMaximum)),typeof ut=="number"&&(K.multipleOf=ut);break}case"boolean":{const K=he;K.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"?(he.type="string",he.nullable=!0,he.enum=[null]):he.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":{he.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const K=he,{minimum:ze,maximum:De}=r._zod.bag;typeof ze=="number"&&(K.minItems=ze),typeof De=="number"&&(K.maxItems=De),K.type="array",K.items=this.process(t.element,{...ce,path:[...ce.path,"items"]});break}case"object":{const K=he;K.type="object",K.properties={};const ze=t.shape;for(const ut in ze)K.properties[ut]=this.process(ze[ut],{...ce,path:[...ce.path,"properties",ut]});const De=new Set(Object.keys(ze)),pt=new Set([...De].filter(ut=>{const ct=t.shape[ut]._zod;return this.io==="input"?ct.optin===void 0:ct.optout===void 0}));pt.size>0&&(K.required=Array.from(pt)),t.catchall?._zod.def.type==="never"?K.additionalProperties=!1:t.catchall?t.catchall&&(K.additionalProperties=this.process(t.catchall,{...ce,path:[...ce.path,"additionalProperties"]})):this.io==="output"&&(K.additionalProperties=!1);break}case"union":{const K=he,ze=t.options.map((De,pt)=>this.process(De,{...ce,path:[...ce.path,"anyOf",pt]}));K.anyOf=ze;break}case"intersection":{const K=he,ze=this.process(t.left,{...ce,path:[...ce.path,"allOf",0]}),De=this.process(t.right,{...ce,path:[...ce.path,"allOf",1]}),pt=ct=>"allOf"in ct&&Object.keys(ct).length===1,ut=[...pt(ze)?ze.allOf:[ze],...pt(De)?De.allOf:[De]];K.allOf=ut;break}case"tuple":{const K=he;K.type="array";const ze=this.target==="draft-2020-12"?"prefixItems":"items",De=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",pt=t.items.map((or,Wr)=>this.process(or,{...ce,path:[...ce.path,ze,Wr]})),ut=t.rest?this.process(t.rest,{...ce,path:[...ce.path,De,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(K.prefixItems=pt,ut&&(K.items=ut)):this.target==="openapi-3.0"?(K.items={anyOf:pt},ut&&K.items.anyOf.push(ut),K.minItems=pt.length,ut||(K.maxItems=pt.length)):(K.items=pt,ut&&(K.additionalItems=ut));const{minimum:ct,maximum:vt}=r._zod.bag;typeof ct=="number"&&(K.minItems=ct),typeof vt=="number"&&(K.maxItems=vt);break}case"record":{const K=he;K.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(K.propertyNames=this.process(t.keyType,{...ce,path:[...ce.path,"propertyNames"]})),K.additionalProperties=this.process(t.valueType,{...ce,path:[...ce.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 K=he,ze=Ga(t.entries);ze.every(De=>typeof De=="number")&&(K.type="number"),ze.every(De=>typeof De=="string")&&(K.type="string"),K.enum=ze;break}case"literal":{const K=he,ze=[];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");ze.push(Number(De))}else ze.push(De);if(ze.length!==0)if(ze.length===1){const De=ze[0];K.type=De===null?"null":typeof De,this.target==="draft-4"||this.target==="openapi-3.0"?K.enum=[De]:K.const=De}else ze.every(De=>typeof De=="number")&&(K.type="number"),ze.every(De=>typeof De=="string")&&(K.type="string"),ze.every(De=>typeof De=="boolean")&&(K.type="string"),ze.every(De=>De===null)&&(K.type="null"),K.enum=ze;break}case"file":{const K=he,ze={type:"string",format:"binary",contentEncoding:"binary"},{minimum:De,maximum:pt,mime:ut}=r._zod.bag;De!==void 0&&(ze.minLength=De),pt!==void 0&&(ze.maxLength=pt),ut?ut.length===1?(ze.contentMediaType=ut[0],Object.assign(K,ze)):K.anyOf=ut.map(ct=>({...ze,contentMediaType:ct})):Object.assign(K,ze);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const K=this.process(t.innerType,ce);this.target==="openapi-3.0"?(w.ref=t.innerType,he.nullable=!0):he.anyOf=[K,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,ce),w.ref=t.innerType;break}case"success":{const K=he;K.type="boolean";break}case"default":{this.process(t.innerType,ce),w.ref=t.innerType,he.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,ce),w.ref=t.innerType,this.io==="input"&&(he._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,ce),w.ref=t.innerType;let K;try{K=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}he.default=K;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const K=he,ze=r._zod.pattern;if(!ze)throw new Error("Pattern not found in template literal");K.type="string",K.pattern=ze.source;break}case"pipe":{const K=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(K,ce),w.ref=K;break}case"readonly":{this.process(t.innerType,ce),w.ref=t.innerType,he.readOnly=!0;break}case"promise":{this.process(t.innerType,ce),w.ref=t.innerType;break}case"optional":{this.process(t.innerType,ce),w.ref=t.innerType;break}case"lazy":{const K=r._zod.innerType;this.process(K,ce),w.ref=K;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 H=this.metadataRegistry.get(r);return H&&Object.assign(w.schema,H),this.io==="input"&&Qt(r)&&(delete w.schema.examples,delete w.schema.default),this.io==="input"&&w.schema._prefault&&((s=w.schema).default??(s.default=w.schema._prefault)),delete w.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=pe=>{const ce=this.target==="draft-2020-12"?"$defs":"definitions";if(s.external){const ze=s.external.registry.get(pe[0])?.id,De=s.external.uri??(ut=>ut);if(ze)return{ref:De(ze)};const pt=pe[1].defId??pe[1].schema.id??`schema${this.counter++}`;return pe[1].defId=pt,{defId:pt,ref:`${De("__shared")}#/${ce}/${pt}`}}if(pe[1]===t)return{ref:"#"};const he=`#/${ce}/`,K=pe[1].schema.id??`__schema${this.counter++}`;return{defId:K,ref:he+K}},f=pe=>{if(pe[1].schema.$ref)return;const ce=pe[1],{ref:Re,defId:he}=a(pe);ce.def={...ce.schema},he&&(ce.defId=he);const K=ce.schema;for(const ze in K)delete K[ze];K.$ref=Re};if(s.cycles==="throw")for(const pe of this.seen.entries()){const ce=pe[1];if(ce.cycle)throw new Error(`Cycle detected: #/${ce.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 le=me[1];if(r===me[0]){f(me);continue}if(s.external){const he=s.external.registry.get(me[0])?.id;if(r!==me[0]&&he){f(me);continue}}if(this.metadataRegistry.get(me[0])?.id){f(me);continue}if(le.cycle){f(me);continue}if(le.count>1&&s.reused==="ref"){f(me);continue}}const w=(me,le)=>{const Re=this.seen.get(me),he=Re.def??Re.schema,Y={...he};if(Re.ref===null)return;const Ie=Re.ref;if(Re.ref=null,Ie){w(Ie,le);const Ae=this.seen.get(Ie).schema;Ae.$ref&&(le.target==="draft-7"||le.target==="draft-4"||le.target==="openapi-3.0")?(he.allOf=he.allOf??[],he.allOf.push(Ae)):(Object.assign(he,Ae),Object.assign(he,Y))}Re.isParent||this.override({zodSchema:me,jsonSchema:he,path:Re.path??[]})};for(const me of[...this.seen.entries()].reverse())w(me[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 me=s.external.registry.get(r)?.id;if(!me)throw new Error("Schema is missing an `id` property");q.$id=s.external.uri(me)}Object.assign(q,t.def);const K=s.external?.defs??{};for(const me of this.seen.entries()){const le=me[1];le.def&&le.defId&&(K[le.defId]=le.def)}s.external||Object.keys(K).length>0&&(this.target==="draft-2020-12"?q.$defs=K:q.definitions=K);try{return JSON.parse(JSON.stringify(q))}catch{throw new Error("Error converting schema to JSON.")}}}function Hm(e,r){if(e instanceof ws){const s=new ru(r),t={};for(const w of e._idmap.entries()){const[q,K]=w;s.process(K)}const a={},f={registry:e,uri:r?.uri,defs:t};for(const w of e._idmap.entries()){const[q,K]=w;a[q]=s.emit(K,{...r,external:f})}if(Object.keys(t).length>0){const w=s.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[w]: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 N_=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:df,$ZodArray:hf,$ZodAsyncError:jn,$ZodBase64:Hd,$ZodBase64URL:ef,$ZodBigInt:hs,$ZodBigIntFormat:sf,$ZodBoolean:vs,$ZodCIDRv4:Yd,$ZodCIDRv6:Kd,$ZodCUID:Md,$ZodCUID2:Zd,$ZodCatch:Wf,$ZodCheck:Ct,$ZodCheckBigIntFormat:pd,$ZodCheckEndsWith:Id,$ZodCheckGreaterThan:ms,$ZodCheckIncludes:xd,$ZodCheckLengthEquals:$d,$ZodCheckLessThan:fs,$ZodCheckLowerCase:wd,$ZodCheckMaxLength:bd,$ZodCheckMaxSize:gd,$ZodCheckMimeType:jd,$ZodCheckMinLength:yd,$ZodCheckMinSize:vd,$ZodCheckMultipleOf:fd,$ZodCheckNumberFormat:md,$ZodCheckOverwrite:Td,$ZodCheckProperty:Nd,$ZodCheckRegex:_d,$ZodCheckSizeEquals:hd,$ZodCheckStartsWith:Sd,$ZodCheckStringFormat:qi,$ZodCheckUpperCase:kd,$ZodCodec:_s,$ZodCustom:Xf,$ZodCustomStringFormat:of,$ZodDate:gf,$ZodDefault:Lf,$ZodDiscriminatedUnion:kf,$ZodE164:tf,$ZodEmail:Ud,$ZodEmoji:Dd,$ZodEncodeError:Io,$ZodEnum:Of,$ZodError:Ya,$ZodFile:Pf,$ZodFunction:Yf,$ZodGUID:Pd,$ZodIPv4:Jd,$ZodIPv6:Bd,$ZodISODate:Vd,$ZodISODateTime:Wd,$ZodISODuration:Gd,$ZodISOTime:Qd,$ZodIntersection:xf,$ZodJWT:nf,$ZodKSUID:Fd,$ZodLazy:Hf,$ZodLiteral:Ef,$ZodMap:zf,$ZodNaN:Vf,$ZodNanoID:Ld,$ZodNever:mf,$ZodNonOptional:Rf,$ZodNull:cf,$ZodNullable:Df,$ZodNumber:gs,$ZodNumberFormat:af,$ZodObject:$f,$ZodObjectJIT:_f,$ZodOptional:Af,$ZodPipe:Qf,$ZodPrefault:Zf,$ZodPromise:Kf,$ZodReadonly:Gf,$ZodRealError:gr,$ZodRecord:If,$ZodRegistry:ws,$ZodSet:jf,$ZodString:Fi,$ZodStringFormat:It,$ZodSuccess:Ff,$ZodSymbol:uf,$ZodTemplateLiteral:Bf,$ZodTransform:Cf,$ZodTuple:$s,$ZodType:Ge,$ZodULID:Rd,$ZodURL:Ad,$ZodUUID:Cd,$ZodUndefined:lf,$ZodUnion:bs,$ZodUnknown:ff,$ZodVoid:pf,$ZodXID:qd,$brand:uc,$constructor:A,$input:lm,$output:um,Doc:Od,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:ru,NEVER:sc,TimePrecision:fm,_any:Pm,_array:Vm,_base64:Zs,_base64url:Rs,_bigint:Im,_boolean:xm,_catch:w_,_check:Ym,_cidrv4:Ls,_cidrv6:Ms,_coercedBigint:zm,_coercedBoolean:Sm,_coercedDate:Lm,_coercedNumber:bm,_coercedString:dm,_cuid:Os,_cuid2:Es,_custom:Gm,_date:Dm,_decode:rs,_decodeAsync:is,_default:y_,_discriminatedUnion:s_,_e164:qs,_email:xs,_emoji:js,_encode:ts,_encodeAsync:ns,_endsWith:Ys,_enum:m_,_file:Qm,_float32:$m,_float64:_m,_gt:Un,_gte:vr,_guid:Zo,_includes:Js,_int:ym,_int32:wm,_int64:Nm,_intersection:u_,_ipv4:As,_ipv6:Ds,_isoDate:pm,_isoDateTime:mm,_isoDuration:vm,_isoTime:gm,_jwt:Fs,_ksuid:Us,_lazy:I_,_length:Wo,_literal:g_,_lowercase:Qs,_lt:Cn,_lte:Ur,_map:d_,_max:Ur,_maxLength:Fo,_maxSize:qo,_mime:Ks,_min:vr,_minLength:ui,_minSize:Gi,_multipleOf:Qi,_nan:Mm,_nanoid:Ts,_nativeEnum:p_,_negative:Rm,_never:Um,_nonnegative:Fm,_nonoptional:$_,_nonpositive:qm,_normalize:Hs,_null:Em,_nullable:b_,_number:hm,_optional:h_,_overwrite:An,_parse:Ai,_parseAsync:Di,_pipe:k_,_positive:Zm,_promise:z_,_property:Wm,_readonly:x_,_record:c_,_refine:Jm,_regex:Vs,_safeDecode:as,_safeDecodeAsync:us,_safeEncode:os,_safeEncodeAsync:ss,_safeParse:Li,_safeParseAsync:Mi,_set:f_,_size:Ws,_startsWith:Bs,_string:cm,_stringFormat:Ji,_stringbool:Km,_success:__,_superRefine:Bm,_symbol:Tm,_templateLiteral:S_,_toLowerCase:eu,_toUpperCase:tu,_transform:v_,_trim:Xs,_tuple:l_,_uint32:km,_uint64:jm,_ulid:Ps,_undefined:Om,_union:a_,_unknown:Cm,_uppercase:Gs,_url:Ro,_uuid:Ss,_uuidv4:Is,_uuidv6:zs,_uuidv7:Ns,_void:Am,_xid:Cs,clone:xr,config:ir,decode:oy,decodeAsync:sy,encode:iy,encodeAsync:ay,flattenError:Ka,formatError:Ha,globalConfig:zo,globalRegistry:Pn,isValidBase64:ps,isValidBase64URL:Xd,isValidJWT:rf,locales:sm,parse:Xa,parseAsync:es,prettifyError:jc,regexes:ds,registry:ks,safeDecode:ly,safeDecodeAsync:dy,safeEncode:uy,safeEncodeAsync:cy,safeParse:Tc,safeParseAsync:Oc,toDotPath:Nc,toJSONSchema:Hm,treeifyError:zc,util:Sc,version:Ed},Symbol.toStringTag,{value:"Module"})),nu=A("ZodISODateTime",(e,r)=>{Wd.init(e,r),Nt.init(e,r)});function Xm(e){return mm(nu,e)}const iu=A("ZodISODate",(e,r)=>{Vd.init(e,r),Nt.init(e,r)});function ep(e){return pm(iu,e)}const ou=A("ZodISOTime",(e,r)=>{Qd.init(e,r),Nt.init(e,r)});function tp(e){return gm(ou,e)}const au=A("ZodISODuration",(e,r)=>{Gd.init(e,r),Nt.init(e,r)});function rp(e){return vm(au,e)}const j_=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:iu,ZodISODateTime:nu,ZodISODuration:au,ZodISOTime:ou,date:ep,datetime:Xm,duration:rp,time:tp},Symbol.toStringTag,{value:"Module"})),np=(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,No,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,No,2)}},isEmpty:{get(){return e.issues.length===0}}})},T_=A("ZodError",np),hr=A("ZodError",np,{Parent:Error}),ip=Ai(hr),op=Di(hr),ap=Li(hr),sp=Mi(hr),up=ts(hr),lp=rs(hr),cp=ns(hr),dp=is(hr),fp=os(hr),mp=as(hr),pp=ss(hr),gp=us(hr),et=A("ZodType",(e,r)=>(Ge.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)=>xr(e,o,s),e.brand=()=>e,e.register=((o,s)=>(o.add(e,s),e)),e.parse=(o,s)=>ip(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>ap(e,o,s),e.parseAsync=async(o,s)=>op(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>sp(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>up(e,o,s),e.decode=(o,s)=>lp(e,o,s),e.encodeAsync=async(o,s)=>cp(e,o,s),e.decodeAsync=async(o,s)=>dp(e,o,s),e.safeEncode=(o,s)=>fp(e,o,s),e.safeDecode=(o,s)=>mp(e,o,s),e.safeEncodeAsync=async(o,s)=>pp(e,o,s),e.safeDecodeAsync=async(o,s)=>gp(e,o,s),e.refine=(o,s)=>e.check(Hp(o,s)),e.superRefine=o=>e.check(Xp(o)),e.overwrite=o=>e.check(An(o)),e.optional=()=>Xo(e),e.nullable=()=>ea(e),e.nullish=()=>Xo(ea(e)),e.nonoptional=o=>Rp(e,o),e.array=()=>ht(e),e.or=o=>Hr([e,o]),e.and=o=>Np(e,o),e.transform=o=>ta(e,Ou(o)),e.default=o=>Lp(e,o),e.prefault=o=>Zp(e,o),e.catch=o=>Wp(e,o),e.pipe=o=>ta(e,o),e.readonly=()=>Gp(e),e.describe=o=>{const s=e.clone();return Pn.add(s,{description:o}),s},Object.defineProperty(e,"description",{get(){return Pn.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Pn.get(e);const s=e.clone();return Pn.add(s,o[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),su=A("_ZodString",(e,r)=>{Fi.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(Js(...s)),e.startsWith=(...s)=>e.check(Bs(...s)),e.endsWith=(...s)=>e.check(Ys(...s)),e.min=(...s)=>e.check(ui(...s)),e.max=(...s)=>e.check(Fo(...s)),e.length=(...s)=>e.check(Wo(...s)),e.nonempty=(...s)=>e.check(ui(1,...s)),e.lowercase=s=>e.check(Qs(s)),e.uppercase=s=>e.check(Gs(s)),e.trim=()=>e.check(Xs()),e.normalize=(...s)=>e.check(Hs(...s)),e.toLowerCase=()=>e.check(eu()),e.toUpperCase=()=>e.check(tu())}),Vo=A("ZodString",(e,r)=>{Fi.init(e,r),su.init(e,r),e.email=o=>e.check(xs(uu,o)),e.url=o=>e.check(Ro(Go,o)),e.jwt=o=>e.check(Fs(ku,o)),e.emoji=o=>e.check(js(lu,o)),e.guid=o=>e.check(Zo(Qo,o)),e.uuid=o=>e.check(Ss(Kr,o)),e.uuidv4=o=>e.check(Is(Kr,o)),e.uuidv6=o=>e.check(zs(Kr,o)),e.uuidv7=o=>e.check(Ns(Kr,o)),e.nanoid=o=>e.check(Ts(cu,o)),e.guid=o=>e.check(Zo(Qo,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(_u,o)),e.xid=o=>e.check(Cs(pu,o)),e.ksuid=o=>e.check(Us(gu,o)),e.ipv4=o=>e.check(As(vu,o)),e.ipv6=o=>e.check(Ds(hu,o)),e.cidrv4=o=>e.check(Ls(bu,o)),e.cidrv6=o=>e.check(Ms(yu,o)),e.e164=o=>e.check(qs(wu,o)),e.datetime=o=>e.check(Xm(o)),e.date=o=>e.check(ep(o)),e.time=o=>e.check(tp(o)),e.duration=o=>e.check(rp(o))});function E(e){return cm(Vo,e)}const Nt=A("ZodStringFormat",(e,r)=>{It.init(e,r),su.init(e,r)}),uu=A("ZodEmail",(e,r)=>{Ud.init(e,r),Nt.init(e,r)});function O_(e){return xs(uu,e)}const Qo=A("ZodGUID",(e,r)=>{Pd.init(e,r),Nt.init(e,r)});function E_(e){return Zo(Qo,e)}const Kr=A("ZodUUID",(e,r)=>{Cd.init(e,r),Nt.init(e,r)});function vp(e){return Ss(Kr,e)}function P_(e){return Is(Kr,e)}function C_(e){return zs(Kr,e)}function U_(e){return Ns(Kr,e)}const Go=A("ZodURL",(e,r)=>{Ad.init(e,r),Nt.init(e,r)});function A_(e){return Ro(Go,e)}function D_(e){return Ro(Go,{protocol:/^https?$/,hostname:Jc,...ae(e)})}const lu=A("ZodEmoji",(e,r)=>{Dd.init(e,r),Nt.init(e,r)});function L_(e){return js(lu,e)}const cu=A("ZodNanoID",(e,r)=>{Ld.init(e,r),Nt.init(e,r)});function M_(e){return Ts(cu,e)}const du=A("ZodCUID",(e,r)=>{Md.init(e,r),Nt.init(e,r)});function Z_(e){return Os(du,e)}const fu=A("ZodCUID2",(e,r)=>{Zd.init(e,r),Nt.init(e,r)});function R_(e){return Es(fu,e)}const mu=A("ZodULID",(e,r)=>{Rd.init(e,r),Nt.init(e,r)});function q_(e){return Ps(mu,e)}const pu=A("ZodXID",(e,r)=>{qd.init(e,r),Nt.init(e,r)});function F_(e){return Cs(pu,e)}const gu=A("ZodKSUID",(e,r)=>{Fd.init(e,r),Nt.init(e,r)});function W_(e){return Us(gu,e)}const vu=A("ZodIPv4",(e,r)=>{Jd.init(e,r),Nt.init(e,r)});function V_(e){return As(vu,e)}const hu=A("ZodIPv6",(e,r)=>{Bd.init(e,r),Nt.init(e,r)});function Q_(e){return Ds(hu,e)}const bu=A("ZodCIDRv4",(e,r)=>{Yd.init(e,r),Nt.init(e,r)});function G_(e){return Ls(bu,e)}const yu=A("ZodCIDRv6",(e,r)=>{Kd.init(e,r),Nt.init(e,r)});function J_(e){return Ms(yu,e)}const $u=A("ZodBase64",(e,r)=>{Hd.init(e,r),Nt.init(e,r)});function B_(e){return Zs($u,e)}const _u=A("ZodBase64URL",(e,r)=>{ef.init(e,r),Nt.init(e,r)});function Y_(e){return Rs(_u,e)}const wu=A("ZodE164",(e,r)=>{tf.init(e,r),Nt.init(e,r)});function K_(e){return qs(wu,e)}const ku=A("ZodJWT",(e,r)=>{nf.init(e,r),Nt.init(e,r)});function H_(e){return Fs(ku,e)}const Bi=A("ZodCustomStringFormat",(e,r)=>{of.init(e,r),Nt.init(e,r)});function X_(e,r,o={}){return Ji(Bi,e,r,o)}function ew(e){return Ji(Bi,"hostname",cs,e)}function tw(e){return Ji(Bi,"hex",cd,e)}function rw(e,r){const o=r?.enc??"hex",s=`${e}_${o}`,t=ds[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return Ji(Bi,s,t,r)}const Jo=A("ZodNumber",(e,r)=>{gs.init(e,r),et.init(e,r),e.gt=(s,t)=>e.check(Un(s,t)),e.gte=(s,t)=>e.check(vr(s,t)),e.min=(s,t)=>e.check(vr(s,t)),e.lt=(s,t)=>e.check(Cn(s,t)),e.lte=(s,t)=>e.check(Ur(s,t)),e.max=(s,t)=>e.check(Ur(s,t)),e.int=s=>e.check(xu(s)),e.safe=s=>e.check(xu(s)),e.positive=s=>e.check(Un(0,s)),e.nonnegative=s=>e.check(vr(0,s)),e.negative=s=>e.check(Cn(0,s)),e.nonpositive=s=>e.check(Ur(0,s)),e.multipleOf=(s,t)=>e.check(Qi(s,t)),e.step=(s,t)=>e.check(Qi(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 hm(Jo,e)}const li=A("ZodNumberFormat",(e,r)=>{af.init(e,r),Jo.init(e,r)});function xu(e){return ym(li,e)}function nw(e){return $m(li,e)}function iw(e){return _m(li,e)}function ow(e){return wm(li,e)}function aw(e){return km(li,e)}const Bo=A("ZodBoolean",(e,r)=>{vs.init(e,r),et.init(e,r)});function rt(e){return xm(Bo,e)}const Yo=A("ZodBigInt",(e,r)=>{hs.init(e,r),et.init(e,r),e.gte=(s,t)=>e.check(vr(s,t)),e.min=(s,t)=>e.check(vr(s,t)),e.gt=(s,t)=>e.check(Un(s,t)),e.gte=(s,t)=>e.check(vr(s,t)),e.min=(s,t)=>e.check(vr(s,t)),e.lt=(s,t)=>e.check(Cn(s,t)),e.lte=(s,t)=>e.check(Ur(s,t)),e.max=(s,t)=>e.check(Ur(s,t)),e.positive=s=>e.check(Un(BigInt(0),s)),e.negative=s=>e.check(Cn(BigInt(0),s)),e.nonpositive=s=>e.check(Ur(BigInt(0),s)),e.nonnegative=s=>e.check(vr(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(Qi(s,t));const o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function sw(e){return Im(Yo,e)}const Su=A("ZodBigIntFormat",(e,r)=>{sf.init(e,r),Yo.init(e,r)});function uw(e){return Nm(Su,e)}function lw(e){return jm(Su,e)}const hp=A("ZodSymbol",(e,r)=>{uf.init(e,r),et.init(e,r)});function cw(e){return Tm(hp,e)}const bp=A("ZodUndefined",(e,r)=>{lf.init(e,r),et.init(e,r)});function dw(e){return Om(bp,e)}const yp=A("ZodNull",(e,r)=>{cf.init(e,r),et.init(e,r)});function $p(e){return Em(yp,e)}const _p=A("ZodAny",(e,r)=>{df.init(e,r),et.init(e,r)});function Ko(){return Pm(_p)}const wp=A("ZodUnknown",(e,r)=>{ff.init(e,r),et.init(e,r)});function Dn(){return Cm(wp)}const kp=A("ZodNever",(e,r)=>{mf.init(e,r),et.init(e,r)});function Iu(e){return Um(kp,e)}const xp=A("ZodVoid",(e,r)=>{pf.init(e,r),et.init(e,r)});function zu(e){return Am(xp,e)}const Nu=A("ZodDate",(e,r)=>{gf.init(e,r),et.init(e,r),e.min=(s,t)=>e.check(vr(s,t)),e.max=(s,t)=>e.check(Ur(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 fw(e){return Dm(Nu,e)}const Sp=A("ZodArray",(e,r)=>{hf.init(e,r),et.init(e,r),e.element=r.element,e.min=(o,s)=>e.check(ui(o,s)),e.nonempty=o=>e.check(ui(1,o)),e.max=(o,s)=>e.check(Fo(o,s)),e.length=(o,s)=>e.check(Wo(o,s)),e.unwrap=()=>e.element});function ht(e,r){return Vm(Sp,e,r)}function mw(e){const r=e._zod.def.shape;return Ut(Object.keys(r))}const Ho=A("ZodObject",(e,r)=>{_f.init(e,r),et.init(e,r),it(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:Dn()}),e.loose=()=>e.clone({...e._zod.def,catchall:Dn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Iu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>bc(e,o),e.safeExtend=o=>yc(e,o),e.merge=o=>$c(e,o),e.pick=o=>vc(e,o),e.omit=o=>hc(e,o),e.partial=(...o)=>_c(Eu,e,o[0]),e.required=(...o)=>wc(Pu,e,o[0])});function ye(e,r){const o={type:"object",get shape(){return Er(this,"shape",e?To(e):{}),this.shape},...ae(r)};return new Ho(o)}function pw(e,r){return new Ho({type:"object",get shape(){return Er(this,"shape",To(e)),this.shape},catchall:Iu(),...ae(r)})}function gw(e,r){return new Ho({type:"object",get shape(){return Er(this,"shape",To(e)),this.shape},catchall:Dn(),...ae(r)})}const ju=A("ZodUnion",(e,r)=>{bs.init(e,r),et.init(e,r),e.options=r.options});function Hr(e,r){return new ju({type:"union",options:e,...ae(r)})}const Ip=A("ZodDiscriminatedUnion",(e,r)=>{ju.init(e,r),kf.init(e,r)});function Yi(e,r,o){return new Ip({type:"union",options:r,discriminator:e,...ae(o)})}const zp=A("ZodIntersection",(e,r)=>{xf.init(e,r),et.init(e,r)});function Np(e,r){return new zp({type:"intersection",left:e,right:r})}const jp=A("ZodTuple",(e,r)=>{$s.init(e,r),et.init(e,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Tp(e,r,o){const s=r instanceof Ge,t=s?o:r,a=s?r:null;return new jp({type:"tuple",items:e,rest:a,...ae(t)})}const Tu=A("ZodRecord",(e,r)=>{If.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Qt(e,r,o){return new Tu({type:"record",keyType:e,valueType:r,...ae(o)})}function vw(e,r,o){const s=xr(e);return s._zod.values=void 0,new Tu({type:"record",keyType:s,valueType:r,...ae(o)})}const Op=A("ZodMap",(e,r)=>{zf.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function hw(e,r,o){return new Op({type:"map",keyType:e,valueType:r,...ae(o)})}const Ep=A("ZodSet",(e,r)=>{jf.init(e,r),et.init(e,r),e.min=(...o)=>e.check(Gi(...o)),e.nonempty=o=>e.check(Gi(1,o)),e.max=(...o)=>e.check(qo(...o)),e.size=(...o)=>e.check(Ws(...o))});function bw(e,r){return new Ep({type:"set",valueType:e,...ae(r)})}const Ki=A("ZodEnum",(e,r)=>{Of.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 Ki({...r,checks:[],...ae(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 Ki({...r,checks:[],...ae(t),entries:a})}});function Ut(e,r){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new Ki({type:"enum",entries:o,...ae(r)})}function yw(e,r){return new Ki({type:"enum",entries:e,...ae(r)})}const Pp=A("ZodLiteral",(e,r)=>{Ef.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 wt(e,r){return new Pp({type:"literal",values:Array.isArray(e)?e:[e],...ae(r)})}const Cp=A("ZodFile",(e,r)=>{Pf.init(e,r),et.init(e,r),e.min=(o,s)=>e.check(Gi(o,s)),e.max=(o,s)=>e.check(qo(o,s)),e.mime=(o,s)=>e.check(Ks(Array.isArray(o)?o:[o],s))});function $w(e){return Qm(Cp,e)}const Up=A("ZodTransform",(e,r)=>{Cf.init(e,r),et.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new Io(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(ai(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(ai(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 Up({type:"transform",transform:e})}const Eu=A("ZodOptional",(e,r)=>{Af.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Xo(e){return new Eu({type:"optional",innerType:e})}const Ap=A("ZodNullable",(e,r)=>{Df.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ea(e){return new Ap({type:"nullable",innerType:e})}function _w(e){return Xo(ea(e))}const Dp=A("ZodDefault",(e,r)=>{Lf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Lp(e,r){return new Dp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Oo(r)}})}const Mp=A("ZodPrefault",(e,r)=>{Zf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Zp(e,r){return new Mp({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():Oo(r)}})}const Pu=A("ZodNonOptional",(e,r)=>{Rf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Rp(e,r){return new Pu({type:"nonoptional",innerType:e,...ae(r)})}const qp=A("ZodSuccess",(e,r)=>{Ff.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ww(e){return new qp({type:"success",innerType:e})}const Fp=A("ZodCatch",(e,r)=>{Wf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Wp(e,r){return new Fp({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const Vp=A("ZodNaN",(e,r)=>{Vf.init(e,r),et.init(e,r)});function kw(e){return Mm(Vp,e)}const Cu=A("ZodPipe",(e,r)=>{Qf.init(e,r),et.init(e,r),e.in=r.in,e.out=r.out});function ta(e,r){return new Cu({type:"pipe",in:e,out:r})}const Uu=A("ZodCodec",(e,r)=>{Cu.init(e,r),_s.init(e,r)});function xw(e,r,o){return new Uu({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}const Qp=A("ZodReadonly",(e,r)=>{Gf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Gp(e){return new Qp({type:"readonly",innerType:e})}const Jp=A("ZodTemplateLiteral",(e,r)=>{Bf.init(e,r),et.init(e,r)});function Sw(e,r){return new Jp({type:"template_literal",parts:e,...ae(r)})}const Bp=A("ZodLazy",(e,r)=>{Hf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.getter()});function Au(e){return new Bp({type:"lazy",getter:e})}const Yp=A("ZodPromise",(e,r)=>{Kf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Iw(e){return new Yp({type:"promise",innerType:e})}const Kp=A("ZodFunction",(e,r)=>{Yf.init(e,r),et.init(e,r)});function ra(e){return new Kp({type:"function",input:Array.isArray(e?.input)?Tp(e?.input):e?.input??ht(Dn()),output:e?.output??Dn()})}const na=A("ZodCustom",(e,r)=>{Xf.init(e,r),et.init(e,r)});function zw(e){const r=new Ct({check:"custom"});return r._zod.check=e,r}function Nw(e,r){return Gm(na,e??(()=>!0),r)}function Hp(e,r={}){return Jm(na,e,r)}function Xp(e){return Bm(e)}function jw(e,r={error:`Input not instance of ${e.name}`}){const o=new na({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...ae(r)});return o._zod.bag.Class=e,o}const Tw=(...e)=>Km({Codec:Uu,Boolean:Bo,String:Vo},...e);function Ow(e){const r=Au(()=>Hr([E(e),mt(),rt(),$p(),ht(r),Qt(E(),r)]));return r}function Ew(e,r){return ta(Ou(e),r)}const Pw={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 Cw(e){ir({customError:e})}function Uw(){return ir().customError}var Du;Du||(Du={});function Aw(e){return dm(Vo,e)}function Dw(e){return bm(Jo,e)}function Lw(e){return Sm(Bo,e)}function Mw(e){return zm(Yo,e)}function Zw(e){return Lm(Nu,e)}const Rw=Object.freeze(Object.defineProperty({__proto__:null,bigint:Mw,boolean:Lw,date:Zw,number:Dw,string:Aw},Symbol.toStringTag,{value:"Module"}));ir(rm());const qw=Object.freeze(Object.defineProperty({__proto__:null,$brand:uc,$input:lm,$output:um,NEVER:sc,TimePrecision:fm,ZodAny:_p,ZodArray:Sp,ZodBase64:$u,ZodBase64URL:_u,ZodBigInt:Yo,ZodBigIntFormat:Su,ZodBoolean:Bo,ZodCIDRv4:bu,ZodCIDRv6:yu,ZodCUID:du,ZodCUID2:fu,ZodCatch:Fp,ZodCodec:Uu,ZodCustom:na,ZodCustomStringFormat:Bi,ZodDate:Nu,ZodDefault:Dp,ZodDiscriminatedUnion:Ip,ZodE164:wu,ZodEmail:uu,ZodEmoji:lu,ZodEnum:Ki,ZodError:T_,ZodFile:Cp,get ZodFirstPartyTypeKind(){return Du},ZodFunction:Kp,ZodGUID:Qo,ZodIPv4:vu,ZodIPv6:hu,ZodISODate:iu,ZodISODateTime:nu,ZodISODuration:au,ZodISOTime:ou,ZodIntersection:zp,ZodIssueCode:Pw,ZodJWT:ku,ZodKSUID:gu,ZodLazy:Bp,ZodLiteral:Pp,ZodMap:Op,ZodNaN:Vp,ZodNanoID:cu,ZodNever:kp,ZodNonOptional:Pu,ZodNull:yp,ZodNullable:Ap,ZodNumber:Jo,ZodNumberFormat:li,ZodObject:Ho,ZodOptional:Eu,ZodPipe:Cu,ZodPrefault:Mp,ZodPromise:Yp,ZodReadonly:Qp,ZodRealError:hr,ZodRecord:Tu,ZodSet:Ep,ZodString:Vo,ZodStringFormat:Nt,ZodSuccess:qp,ZodSymbol:hp,ZodTemplateLiteral:Jp,ZodTransform:Up,ZodTuple:jp,ZodType:et,ZodULID:mu,ZodURL:Go,ZodUUID:Kr,ZodUndefined:bp,ZodUnion:ju,ZodUnknown:wp,ZodVoid:xp,ZodXID:pu,_ZodString:su,_default:Lp,_function:ra,any:Ko,array:ht,base64:B_,base64url:Y_,bigint:sw,boolean:rt,catch:Wp,check:zw,cidrv4:G_,cidrv6:J_,clone:xr,codec:xw,coerce:Rw,config:ir,core:N_,cuid:Z_,cuid2:R_,custom:Nw,date:fw,decode:lp,decodeAsync:dp,discriminatedUnion:Yi,e164:K_,email:O_,emoji:L_,encode:up,encodeAsync:cp,endsWith:Ys,enum:Ut,file:$w,flattenError:Ka,float32:nw,float64:iw,formatError:Ha,function:ra,getErrorMap:Uw,globalRegistry:Pn,gt:Un,gte:vr,guid:E_,hash:rw,hex:tw,hostname:ew,httpUrl:D_,includes:Js,instanceof:jw,int:xu,int32:ow,int64:uw,intersection:Np,ipv4:V_,ipv6:Q_,iso:j_,json:Ow,jwt:H_,keyof:mw,ksuid:W_,lazy:Au,length:Wo,literal:wt,locales:sm,looseObject:gw,lowercase:Qs,lt:Cn,lte:Ur,map:hw,maxLength:Fo,maxSize:qo,mime:Ks,minLength:ui,minSize:Gi,multipleOf:Qi,nan:kw,nanoid:M_,nativeEnum:yw,negative:Rm,never:Iu,nonnegative:Fm,nonoptional:Rp,nonpositive:qm,normalize:Hs,null:$p,nullable:ea,nullish:_w,number:mt,object:ye,optional:Xo,overwrite:An,parse:ip,parseAsync:op,partialRecord:vw,pipe:ta,positive:Zm,prefault:Zp,preprocess:Ew,prettifyError:jc,promise:Iw,property:Wm,readonly:Gp,record:Qt,refine:Hp,regex:Vs,regexes:ds,registry:ks,safeDecode:mp,safeDecodeAsync:gp,safeEncode:fp,safeEncodeAsync:pp,safeParse:ap,safeParseAsync:sp,set:bw,setErrorMap:Cw,size:Ws,startsWith:Bs,strictObject:pw,string:E,stringFormat:X_,stringbool:Tw,success:ww,superRefine:Xp,symbol:cw,templateLiteral:Sw,toJSONSchema:Hm,toLowerCase:eu,toUpperCase:tu,transform:Ou,treeifyError:zc,trim:Xs,tuple:Tp,uint32:aw,uint64:lw,ulid:q_,undefined:dw,union:Hr,unknown:Dn,uppercase:Gs,url:A_,util:Sc,uuid:vp,uuidv4:P_,uuidv6:C_,uuidv7:U_,void:zu,xid:F_},Symbol.toStringTag,{value:"Module"}));var Fw=Object.defineProperty,Xr=(e,r)=>Fw(e,"name",{value:r,configurable:!0}),eg=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"),Ww={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"},tg=Ut(["required","min","max","minLength","maxLength","pattern","email","url","custom"]).describe("Enumeration of all supported validation rule types"),Vw={REQUIRED:"required",MIN:"min",MAX:"max",MIN_LENGTH:"minLength",MAX_LENGTH:"maxLength",PATTERN:"pattern",EMAIL:"email",URL:"url",CUSTOM:"custom"},rg=ye({type:tg.describe("Type of validation rule to apply"),value:Hr([E(),mt(),rt()]).optional().describe("Value for the validation rule (string, number, or boolean)"),message:E().optional().describe("Custom error message when validation fails"),describe:E().max(500).optional().describe("LLM tool call description for this validation rule")}).describe("Schema defining validation rules for question responses"),Qw=Ut(["equals","not_equals","contains","not_contains","greater_than","less_than","is_empty","is_not_empty"]).describe("Enumeration of all supported visibility condition operators"),Gw={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"},ng=ye({field:E().describe("ID of the field to check against"),operator:Qw.describe("Comparison operator for the condition"),value:Hr([E(),mt(),rt()]).optional().describe("Value to compare against (string, number, or boolean)"),describe:E().max(500).optional().describe("LLM tool call description for this visibility condition")}).describe("Schema defining conditions that control when questions are visible"),ia=ye({id:E().describe("Unique identifier for the section"),title:E().min(1).max(200).describe("Display title for the section"),questionIds:ht(E()).min(1).describe("Array of question IDs that belong to this section")}).describe("Schema defining sections that organize questions into logical groups"),ig=Ut(["D","P","A","S"]),Jw={DRAFT:"D",PUBLISHED:"P",ARCHIVED:"A",SUSPENDED:"S"},og=Ut(["star","heart","thumbs-up","diamond","emoji","emoji-exp"]),Bw={STAR:"star",HEART:"heart",THUMBS_UP:"thumbs_up",DIAMOND:"diamond",EMOJI:"emoji",EMOJI_EXP:"emoji_exp"},ag=Ut(["small","medium","large"]),Yw={SMALL:"small",MEDIUM:"medium",LARGE:"large"},sg=Ut(["radio","list","chip","dropdown"]),Kw={RADIO:"radio",LIST:"list",CHIP:"chip",DROPDOWN:"dropdown"},ug=Ut(["checkbox","list","chip"]),Hw={CHECKBOX:"checkbox",LIST:"list",CHIP:"chip"},lg=Ut(["randomize","flip","rotate","ascending","none"]),Xw={RANDOMIZE:"randomize",FLIP:"flip",ROTATE:"rotate",ASCENDING:"ascending",NONE:"none"},en=ye({id:E().describe("Unique identifier for the question"),type:eg.describe("The type of question (rating, single_choice, etc.)"),title:E().min(1).max(200).describe("The main title/question text displayed to users"),description:E().max(1e3).optional().describe("Optional detailed description or help text"),describe:E().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:E().max(500).optional().describe("Custom error message when validation fails"),validations:ht(rg).optional().default([]).describe("Array of validation rules to apply"),visibility:ht(ng).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:E().optional().describe("ID of the section this question belongs to"),status:ig.describe("Current status of the question (Draft, Published, etc.)")}).describe("Base schema for all question types with common properties"),cg=en.extend({type:wt("rating").describe("Must be exactly 'rating'"),showLabels:rt().optional().describe("Whether to show min/max labels"),minLabel:E().max(100).optional().describe("Label for the minimum rating value"),maxLabel:E().max(100).optional().describe("Label for the maximum rating value"),displayStyle:og.optional().describe("Visual style for rating display"),numberOfRatings:mt().int().min(1).max(10).describe("Number of rating options (1-10)"),representationSize:ag.optional().describe("Size of rating visual elements"),color:E().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"),dg=en.extend({type:wt("annotation").describe("Must be exactly 'annotation'"),annotationText:E().max(1e3).optional().describe("Text to display when annotation is provided"),noAnnotationText:E().max(500).optional().describe("Text to display when no annotation is provided")}).describe("Schema for annotation questions that provide additional context or instructions"),Lu=ye({id:E().describe("Unique identifier for this option (system time milliseconds)"),value:E().min(1).max(100).describe("The internal value used for this option"),label:E().min(1).max(200).describe("The display text shown to users for this option"),describe:E().max(500).optional().describe("LLM tool call description providing context about this option"),imageUrl:E().url().optional().describe("Optional image URL to display with this option")}).describe("Schema for individual options in choice-based questions"),Mu=Au(()=>ye({id:E().describe("Unique identifier for this nested option (system time milliseconds)"),value:E().min(1).max(100).describe("The internal value used for this nested option"),label:E().min(1).max(200).describe("The display text shown for this nested option"),describe:E().max(500).optional().describe("LLM tool call description for this nested option context"),imageUrl:E().url().optional().describe("Optional image URL for this nested option"),hint:E().max(500).optional().describe("Optional hint text to help users understand this nested option"),children:ht(Mu).optional().default([]).describe("Array of child options for hierarchical structure")}).describe("Schema for nested options with hierarchical structure support")),fg=en.extend({type:wt("single_choice").describe("Must be exactly 'single_choice'"),displayStyle:sg.optional().describe("Visual style for displaying options"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:ht(Lu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).describe("Schema for single-choice multiple selection questions"),mg=en.extend({type:wt("multiple_choice_multiple").describe("Must be exactly 'multiple_choice_multiple'"),displayStyle:ug.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:ht(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"),pg=en.extend({type:wt("nps").describe("Must be exactly 'nps'"),min:wt(0).describe("NPS always starts at 0"),max:wt(10).describe("NPS always ends at 10"),minLabel:E().max(100).optional().describe("Label for the minimum NPS value (0)"),maxLabel:E().max(100).optional().describe("Label for the maximum NPS value (10)"),scaleLabels:Qt(E().regex(/^\d+$/),E().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"),gg=en.extend({type:wt("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:E().max(200).optional().describe("Placeholder text shown in the input field"),enableRegexValidation:rt().optional().default(!1).describe("Whether to enable regex pattern validation"),regexPattern:E().optional().describe("Regular expression pattern for validation"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:E().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"),vg=en.extend({type:wt("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:E().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:E().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"),hg=en.extend({type:wt("nested_selection").describe("Must be exactly 'nested_selection'"),placeholder:E().max(200).optional().describe("Placeholder text for the nested dropdown"),options:ht(Mu).min(1).max(100).describe("Array of nested options for hierarchical selection (1-100 options)"),displayStyle:wt("list").describe("Fixed display style for nested dropdowns"),choiceOrderOption:lg.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:E().max(1e3).optional().describe("Default value to pre-populate"),allowOther:rt().optional().default(!1).describe('Whether to allow custom "other" options'),otherColumnName:E().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"),oa=Yi("type",[cg,dg,fg,mg,pg,gg,vg,hg]),bg=ye({markerNo:E(),timeline:E(),comment:E()}),yg=ye({fileType:E(),fileName:E(),markers:ht(bg)}),$g=ye({nps:mt().optional().describe("Net Promoter Score value (e.g., 0-10)"),nestedSelection:ht(E()).optional().describe("Array of selected nested option IDs"),longText:E().optional().describe("Long text answer, e.g., paragraph or essay"),shortAnswer:E().optional().describe("Short text answer, e.g., single sentence or word"),singleChoice:E().optional().describe("single selected option ID (for single choice questions)"),rating:mt().optional().describe("Star rating value (e.g., 1-5)"),multipleChoiceMultiple:ht(E()).optional().describe("Array of selected option IDs for multiple choice questions"),annotation:yg.optional().describe("Annotation object containing file and marker details"),others:E().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=$g,wg=Ut(["R","S"]).describe("Enumeration of feedback types: R=Recurring, O=One-time"),ek={RECURRING:"R",ONE_TIME:"S"},kg=Ut(["Y","N"]).describe("Yes/No enumeration using Y/N values"),tk={YES:"Y",NO:"N"},xg=Ut(["minutes","hours","days","weeks","months","years"]).describe("Time units for recurring feedback schedules"),rk={MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",YEARS:"years"},Sg=ye({surveyType:wg.describe("Type of feedback: R for recurring, O for one-time"),showOnce:kg.describe("Whether the feedback should be shown only once per user"),stopWhenResponsesCount:E().regex(/^\d+$/,"Must be a valid number string").describe("Stop feedback when this number of responses is reached (as string)"),recurringValue:E().regex(/^\d+$/,"Must be a valid number string").describe("Value for recurring schedule (e.g., every 15 days)"),recurringUnit:xg.describe("Time unit for recurring schedule"),startDate:E().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:E().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"),Ig=ye({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"),zg=Ut(["P","D","A","S"]).describe("Publication status: P=Published, D=Draft, A=Archived, S=Stopped"),nk={PUBLISHED:"P",DRAFT:"D",ARCHIVED:"A",STOPPED:"S"},Ng=ye({formTitle:E().describe("Title of the feedback form"),formDescription:E().describe("Description of the feedback form"),isPublished:zg.describe("Publication status of the feedback form")}).describe("Schema defining feedback configuration properties"),tt=E().min(1).describe("Translated text content"),jg=ye({type:wt("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"),Tg=ye({type:wt("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"),Og=ye({type:wt("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"),Eg=ye({type:wt("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"),Pg=ye({type:wt("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"),Cg=ye({type:wt("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"),Ug=ye({type:wt("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=ye({type:wt("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"),Dg=Hr([jg,Tg,Og,Eg,Pg,Cg,Ug,Ag]).describe("Union of all question type translation schemas"),ik=E().min(2).max(10).describe("Language code (e.g., 'en', 'es', 'hi')"),ok=Qt(ik,Dg).describe("Question translations keyed by language code"),Lg=Qt(E().uuid(),ok).describe("Question-centric translations keyed by question ID, then by language code"),Zu=Lg.describe("Question-centric translations at root level"),Mg=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}};Xr(Mg,"TranslationProvider");var Zg=Mg;function Rg(e,r="en"){return new Zg(e,r)}Xr(Rg,"createTranslationProvider");var qg=Ut(["fade","manual"]).describe("How the end screen should be dismissed (fade out or manual dismissal)"),ak={FADE:"fade",MANUAL:"manual"},Ru=ye({title:E().min(1).max(200).describe("The main title displayed on the welcome screen"),description:E().min(1).max(1e3).describe("Description text shown on the welcome screen"),buttonLabel:E().min(1).max(50).describe("Text displayed on the welcome screen button")}).describe("Schema for welcome screen configuration fields"),qu=ye({title:E().min(1).max(200).describe("The main title displayed on the end screen"),message:E().min(1).max(1e3).describe("Message text shown on the end screen"),buttonLabel:E().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"),Fu=ye({title:E().min(1).max(200).describe("Translated title text for welcome screen"),description:E().min(1).max(1e3).describe("Translated description text for welcome screen"),buttonLabel:E().min(1).max(50).describe("Translated text for the welcome button label")}).describe("Schema for welcome screen translation fields"),Wu=ye({buttonLabel:E().min(1).max(50).describe("Translated text for the end button label"),title:E().min(1).max(200).describe("Translated title text for end screen"),message:E().min(1).max(1e3).describe("Translated message text for end screen")}).describe("Schema for end screen translation fields"),Vu=ye({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:E().min(1).max(50).describe("Text for the submit button"),previousButtonLabel:E().min(1).max(50).describe("Text for the previous button in pagination"),nextButtonLabel:E().min(1).max(50).describe("Text for the next button in pagination"),aiEnhancementSuccessMessage:E().min(1).max(100).describe("Message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:E().min(1).max(100).describe("Message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:E().min(1).max(100).describe("Message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration fields"),Qu=ye({value:E().min(1).max(10).describe("Language code (e.g., 'en', 'es', 'fr')"),label:E().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"),aa=ht(Qu).describe("Schema for array of available languages"),Gu=ye({submitButtonLabel:E().min(1).max(50).describe("Translated text for the submit button"),previousButtonLabel:E().min(1).max(50).describe("Translated text for the previous button in pagination"),nextButtonLabel:E().min(1).max(50).describe("Translated text for the next button in pagination"),aiEnhancementSuccessMessage:E().min(1).max(100).describe("Translated message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:E().min(1).max(100).describe("Translated message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:E().min(1).max(100).describe("Translated message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration field translations"),Ju=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"),sk={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"},uk=Ut(["light","dark"]).describe("Available theme modes for the widget"),lk={LIGHT:"light",DARK:"dark"},Fg=ye({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:E().optional().describe("Custom CSS link to apply for the feedback form")}).describe("Feature settings controlling widget UI behavior and appearance"),Bu=ye({brandColor:E().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:E().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:E().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:Hr([E().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i),E().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=ye({light:Bu,dark:Bu}).describe("Complete theme configuration with light and dark variants"),Ku=ye({themes:Yu.describe("Color themes for light and dark modes"),featureSettings:Fg.describe("UI feature settings controlling widget behavior"),selectedPosition:Ju.describe("Selected position for the main widget"),selectedIconPosition:Ju.describe("Selected position for the widget icon")}).describe("Complete theme and UI configuration including colors, features, and positioning"),Wg=ye({name:E().describe("The operator name (e.g., '=', '!=', 'contains', 'beginsWith', 'matches')"),label:E().describe("Human-readable label for the operator (e.g., 'equals', 'not equals', 'contains')")}).describe("Schema defining an operator for custom event fields"),Vg=ye({name:E().describe("The field name (e.g., 'event_name', 'add_to_cart', 'cart_item_number')"),label:E().describe("Human-readable label for the field"),placeholder:E().describe("Placeholder text for input fields"),operators:ht(Wg).min(1).describe("Array of available operators for this field")}).describe("Schema defining a custom event field with its operators"),Qg=ye({customEventFields:ht(Vg).optional().describe("Array of custom event fields with their operators and labels")}).describe("Schema defining metadata for conditional if clauses"),Gg=ye({query:E().describe("The structured query definition as a JSON string"),naturalLanguage:E().describe("Human-readable description of the query conditions"),jsonLogic:E().describe("JSON Logic representation of the query as a JSON string"),sqlQuery:E().describe("SQL representation of the query for database operations")}).describe("Schema defining query output structure with all fields as strings"),Jg=ye({id:E().describe("Unique identifier for this condition"),event:E().describe("The event that triggers evaluation of this condition (e.g., 'pageLoad', 'pageView', 'scroll', 'custom')"),queryOutput:Gg.describe("The query conditions to evaluate when the event occurs"),metadata:Qg.optional().describe("Optional metadata containing custom event fields and their configurations")}).describe("Schema defining the 'if' condition for auto-trigger logic"),Bg=ye({triggerType:E().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:Hr([E(),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"),Yg=ye({if:Jg.describe("The condition that must be met"),then:Bg.describe("The action to perform when the condition is met")}).describe("Schema defining a conditional when clause with if-then logic"),sa=ye({id:E().describe("Unique identifier for this filter condition"),category:E().describe("The category this filter belongs to (e.g., 'device', 'user', 'geo_location')"),property:E().describe("The property to filter on (e.g., 'device_type', 'age', 'country')"),operator:E().describe("The comparison operator (e.g., 'equals', 'greaterThan', 'lessThan')"),values:ht(E()).min(1).describe("Array of values to compare against"),tbl_key:E().describe("The database table key for this property")}).describe("Schema defining a single filter condition within a category"),Kg=ye({device:ht(sa).optional().describe("Array of device-specific filter conditions"),user:ht(sa).optional().describe("Array of user-specific filter conditions"),geo_location:ht(sa).optional().describe("Array of geo-location specific filter conditions")}).describe("Schema defining category-specific filters for audience targeting"),Hg=ye({applications:ht(E()).min(1).describe("Array of application names this targeting applies to"),userType:E().describe("The type of user this targeting applies to (e.g., 'both', 'new', 'returning')"),categorySpecificFilters:Kg.optional().describe("Optional category-specific filters for more granular targeting")}).describe("Schema defining who the audience targeting applies to"),Xg=ye({id:E().describe("Unique identifier for the audience segment"),name:E().min(1).max(200).describe("Display name for the audience segment"),isImportant:rt().describe("Whether this segment is marked as important for targeting"),when:ht(Yg).min(1).describe("Array of conditional when clauses with if-then logic"),who:Hg.describe("User criteria and conditions defining who belongs to this segment")}).describe("Schema defining an audience segment for targeting with conditional logic"),Hu=ye({isAuto:rt().describe("Whether automatic triggering is enabled for this audience"),isManual:rt().describe("Whether manual triggering is enabled for this audience"),segments:ht(Xg).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"),ua=Yi("isEnabled",[ye({isEnabled:wt(!1).describe("Whether other configuration properties are enabled"),otherFields:Vu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Qt(E(),Gu).optional().describe("Translations for other configuration field labels and buttons keyed by language code")}),ye({isEnabled:wt(!0).describe("Whether other configuration properties are enabled"),otherFields:Vu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Qt(E(),Gu).describe("Translations for other configuration field labels and buttons keyed by language code")})]).describe("Schema for other configuration properties including fields and translations"),la=Yi("isEnabled",[ye({isEnabled:wt(!1).describe("Whether welcome screen is enabled"),welcomeFields:Ru.optional().describe("Welcome screen configuration fields including title, description, and button label"),translations:Qt(E(),Fu).optional().describe("Translations for welcome screen content keyed by language code")}),ye({isEnabled:wt(!0).describe("Whether welcome screen is enabled"),welcomeFields:Ru.describe("Welcome screen configuration fields including title, description, and button label"),translations:Qt(E(),Fu).describe("Translations for welcome screen content keyed by language code")})]).describe("Schema for welcome screen properties including fields and translations"),ca=Yi("isEnabled",[ye({isEnabled:wt(!1).describe("Whether end screen is enabled"),endFields:qu.optional().describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Qt(E(),Wu).optional().describe("Translations for end screen content keyed by language code")}),ye({isEnabled:wt(!0).describe("Whether end screen is enabled"),endFields:qu.describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Qt(E(),Wu).describe("Translations for end screen content keyed by language code")})]).describe("Schema for end screen properties including fields and translations"),ev=ye({themeConfiguration:Ku.describe("Theme configuration including colors, features, and positioning")}).describe("Schema for appearance properties including theme configuration"),ck=ye({feedbackConfigurationId:vp().describe("Unique identifier for the feedback configuration"),feedbackConfiguration:Ng.describe("Configuration properties for the feedback form"),questionnaireFields:ye({questions:Qt(E(),oa).describe("Collection of questions keyed by their string identifiers"),sections:ht(ia).describe("Array of sections that organize questions into logical groups"),selectedLanguages:aa.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:Sg.describe("Properties controlling when and how often the feedback is shown"),externalPublishingProperties:Ig.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:ua.describe("Additional configuration properties including form display options and translations"),welcomeScreenProperties:la.describe("Welcome screen configuration including content and translations"),endScreenProperties:ca.describe("End screen configuration including content, dismissal behavior, and translations"),appearanceProperties:ev.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"),tv=ye({mandatoryFetchConfigAtPaths:ht(E()).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"),rv=Ut(["light","dark","system"]).describe("Enumeration of supported theme modes"),dk={LIGHT:"light",DARK:"dark",SYSTEM:"system"},Hi=ye({$deviceType:E().describe("Type of device being used"),$timezone:E().describe("Device timezone (e.g., 'Asia/Calcutta')"),$theme:rv.describe("Current theme mode preference"),$os:E().describe("Operating system running on the device"),$osVersion:E().describe("Version of the operating system"),$appVersion:E().describe("Version of the application"),$app:E().describe("Browser or application being used"),$language:E().describe("Language preference (e.g., 'en-GB')")}).describe("Device information collected from the client"),Xi=ye({$sessionId:E().uuid().describe("Unique session identifier"),$timestamp:E().optional().describe("ISO timestamp of the session")}).describe("Session information for tracking user sessions"),fk=ye({deviceInfo:Hi.describe("Device information"),sessionInfo:Xi.describe("Session information")}).describe("Combined device and session information"),nv=ye({$counter:Qt(E(),mt().int()).describe("Counter properties for user tracking (can be positive or negative)").optional(),$set:Qt(E(),Ko()).describe("Properties to set for the user").optional(),$setOnce:Qt(E(),Ko()).describe("Properties to set once for the user (won't overwrite existing values)").optional(),$unset:ht(E()).describe("Array of property names to unset/remove from the user").optional()}).loose().describe("User properties including counters, set operations, and other dynamic data"),da=ye({userName:E().email().describe("User's email address as username"),properties:nv.describe("User properties and counters")}).describe("User information including identification and properties"),iv=Ut(["V","S"]).describe("User action: V for view, S for submit"),mk={VIEW:"V",SUBMIT:"S"},fa=ye({feedbackIdentifier:E().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),completionTimeInSeconds:mt().int().min(0).describe("Time taken to complete the feedback in seconds"),userAction:iv.describe("Action performed by the user"),responseLanguageCode:E().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Configuration information for the feedback form"),ov=ye({questionId:E().uuid().describe("Unique identifier for the question"),answer:_g.describe("The answer provided for this question"),type:E().describe("Type of the question (e.g., 'rating', 'single_choice')"),error:E().optional().describe("Error message if any validation failed")}).describe("Response to a specific question in the feedback form"),av=ye({questions:ht(ov).min(1).describe("Array of question responses")}).describe("User responses to feedback questions"),sv=ye({customEventName:E().nullable().describe("Custom event name that triggered the feedback"),currentPath:E().describe("Current page path where feedback was triggered"),eventType:E().describe("Type of event that triggered the feedback")}).passthrough().describe("Properties of the trigger that matched for this feedback"),Xu=ye({formConfig:fa.describe("Form configuration information"),deviceInfo:Hi.describe("Device information"),sessionInfo:Xi.describe("Session information"),userInfo:da.optional().describe("User information (optional)"),matchedTriggerProperties:sv.describe("Properties of the matched trigger"),customProperties:Qt(E(),Dn()).optional().describe("Custom properties for advanced use cases")}).describe("Base submit feedback request schema"),uv=Xu.extend({formConfig:fa.extend({userAction:wt("V").describe("Action performed by the user (view)")})}).strict().describe("View feedback request schema (no response required)"),lv=Xu.extend({formConfig:fa.extend({userAction:wt("S").describe("Action performed by the user (submit)")}),response:av.describe("User responses (required for submit)")}).strict().describe("Submit feedback request schema (response required)"),pk=Hr([uv,lv]).describe("Union schema for both view and submit feedback requests"),cv=ye({feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),feedbackTitle:E().describe("Title of the feedback configuration"),triggerProperties:Hu.describe("Trigger properties including auto/manual settings and audience segments"),appearanceProperties:ye({themes:ye({light:ye({brandColor:E().describe("Brand color for light theme"),overlayColor:E().describe("Overlay color for light theme"),textColor:E().describe("Text color for light theme"),backgroundColor:E().describe("Background color for light theme")}).describe("Light theme colors"),dark:ye({brandColor:E().describe("Brand color for dark theme"),overlayColor:E().describe("Overlay color for dark theme"),textColor:E().describe("Text color for dark theme"),backgroundColor:E().describe("Background color for dark theme")}).describe("Dark theme colors")}).nullable().optional().describe("Theme configuration (optional)"),featureSettings:ye({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:E().nullable().optional().describe("Custom CSS link (optional)")}).describe("Feature settings for the feedback form"),selectedIconPosition:E().describe("Selected position for the feedback icon"),selectedPosition:E().describe("Selected position for the feedback form")}).describe("Appearance properties for the feedback form")}).describe("Individual feedback configuration item in the list"),dv=ye({feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),responseLanguageCode:E().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Form configuration for fetching feedback details"),gk=ye({deviceInfo:Hi.describe("Device information"),sessionInfo:Xi.describe("Session information"),userInfo:da.optional().describe("User information (optional)"),force:rt().optional().describe("Forcefully fetch eligible feedback list (optional)")}).strict().describe("Request schema for fetching available feedback configurations"),vk=ye({formConfig:dv.describe("Form configuration for the specific feedback"),deviceInfo:Hi.describe("Device information"),sessionInfo:Xi.describe("Session information"),userInfo:da.optional().describe("User information (optional)")}).strict().describe("Request schema for fetching specific feedback form details"),fv=ye({formTitle:E().describe("Title of the feedback form"),formDescription:E().describe("Description of the feedback form")}).describe("Form configuration response with title and description"),mv=ye({questions:Qt(E(),oa).describe("Collection of questions keyed by their string identifiers"),sections:ht(ia).describe("Array of sections that organize questions into logical groups"),translations:Qt(E(),Ko()).describe("Translations object (can be empty or contain language-specific translations)"),selectedLanguages:aa.describe("Array of languages selected for this questionnaire")}).describe("Questionnaire fields response including questions, sections, translations, and selected languages"),hk=ye({feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),feedbackIdentifier:E().uuid().describe("Unique identifier for this specific feedback instance"),formConfiguration:fv.describe("Form configuration with title and description"),questionnaireFields:mv.describe("Questionnaire structure including questions, sections, translations, and languages"),otherConfigurationProperties:ua.describe("Other configuration properties using existing schema"),welcomeScreenProperties:la.describe("Welcome screen properties using existing schema"),endScreenProperties:ca.describe("End screen properties using existing schema")}).strict().describe("Complete response schema for fetchFeedbackDetails API using existing field schemas"),bk=ye({masterProperties:tv.describe("Master properties for global survey settings"),feedbackConfiguration:ht(cv).describe("Array of available feedback configurations")}).strict().describe("Response schema for fetchConfigurationList API"),yk=ye({questionId:E().describe("Unique identifier for the question"),identifier:E().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),userText:E().describe("Original text input from the user")}).strict().describe("Request schema for refining user text input"),pv=ye({userText:E().describe("Original text input from the user"),refinedText:E().describe("Refined/improved version of the user text")}).describe("Data containing original and refined text"),$k=ye({success:rt().describe("Indicates whether the operation was successful"),code:E().describe("Response code indicating the status"),message:E().describe("Human-readable message describing the result"),messageId:E().describe("Unique identifier for the response message"),data:pv.describe("Response data containing original and refined text"),error:E().optional().describe("Error message if the operation failed (optional)")}).strict().describe("Response schema for refine text API operation");function ci(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)?ci(f,r):f):t instanceof Uint8Array||t instanceof Date?t:typeof t=="object"?ci(t,r):t}return o}Xr(ci,"convertObject");function ma(e){return e.length===1?e.toLowerCase():e.replace(/^([A-Z])/,r=>r[0].toLowerCase()).replace(/[_-]([a-z0-9])/g,r=>r[1].toUpperCase())}Xr(ma,"toCamel");function gv(e){return ci(e,ma)}Xr(gv,"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()}Xr(el,"toSnake");function vv(e){return ci(e,el)}Xr(vv,"objectToSnake");function tl(e){return ma(e).replace(/^([a-z])/,r=>r[0].toUpperCase())}Xr(tl,"toPascal");function hv(e){return ci(e,tl)}Xr(hv,"objectToPascal");var bv=Ut(["light","dark"]).describe("Current theme mode of the application"),_k={LIGHT:"light",DARK:"dark"},wk=ye({theme:Yu.describe("Theme configuration including light and dark theme colors"),currentMode:bv.describe("Current theme mode (light or dark)"),currentLanguage:Qu.describe("Currently selected language configuration"),questions:Qt(E(),oa).describe("Collection of questions keyed by their string identifiers"),questionLanguages:aa.describe("Available languages for questions"),otherConfigurationProperties:ua.describe("Other configuration properties including form display options and translations"),welcomeScreenProperties:la.optional().describe("Welcome screen configuration (optional)"),endScreenProperties:ca.optional().describe("End screen configuration (optional)"),translations:Zu.optional().describe("Multi-language translations for questions and form content (optional)"),onSectionChange:ra({input:[mt()],output:zu()}).optional().describe("Optional callback function triggered when section changes"),onClose:ra({input:[],output:zu()}).optional().describe("Optional callback function triggered when the form is closed"),sections:ht(ia).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 kk=Cb(Object.freeze(Object.defineProperty({__proto__:null,AnnotationMarkerSchema:bg,AnnotationSchema:yg,AnswerItemSchema:$g,AnswerSchema:_g,ChoiceOrderOptions:Xw,CurrentModes:_k,DeviceThemes:dk,DismissBehaviors:ak,EndFieldsTranslationSchema:Wu,EndScreenFieldsSchema:qu,LanguageFieldSchema:Qu,LanguagesSchema:aa,MultipleChoiceDisplayStyles:Kw,MultipleChoiceMultipleDisplayStyles:Hw,OtherFieldsSchema:Vu,OtherFieldsTranslationSchema:Gu,Positions:sk,PublicationStatuses:nk,QuestionStatuses:Jw,QuestionTypes:Ww,RatingDisplayStyles:Bw,RatingRepresentationSizes:Yw,RecurringUnits:rk,SurveyTypes:ek,ThemeModes:lk,TranslationProvider:Zg,UserActions:mk,ValidationRuleTypes:Vw,VisibilityConditionOperators:Gw,WelcomeFieldsTranslationSchema:Fu,WelcomeScreenFieldsSchema:Ru,YesNoValues:tk,annotationQuestionSchema:dg,annotationQuestionTranslationSchema:Ag,appPropsSchema:wk,appearancePropertiesSchema:ev,audienceSegmentSchema:Xg,audienceTriggerPropertiesSchema:Hu,baseSubmitFeedbackSchema:Xu,categorySpecificFiltersSchema:Kg,choiceOrderOptionSchema:lg,combinedQuestionSchema:oa,conditionalIfMetadataSchema:Qg,conditionalIfSchema:Jg,conditionalWhenSchema:Yg,createTranslationProvider:Rg,currentModeSchema:bv,customEventFieldOperatorSchema:Wg,customEventFieldSchema:Vg,deviceInfoSchema:Hi,deviceSessionInfoSchema:fk,deviceThemeSchema:rv,dismissBehaviorSchema:qg,endScreenPropertiesSchema:ca,externalPublishingPropertiesSchema:Ig,featureSettingsSchema:Fg,feedbackConfigurationItemSchema:cv,feedbackConfigurationSchema:Ng,feedbackRequestSchema:pk,fetchConfigurationListResponseSchema:bk,fetchConfigurationListSchema:gk,fetchFeedbackDetailsResponseSchema:hk,fetchFeedbackDetailsSchema:vk,fetchFormConfigSchema:dv,filterConditionSchema:sa,formConfigSchema:fa,formConfigurationResponseSchema:fv,formPropertiesSchema:ck,frequencyAndSchedulingPropertiesSchema:Sg,longAnswerQuestionSchema:vg,longAnswerQuestionTranslationSchema:Cg,masterPropertiesSchema:tv,matchedTriggerPropertiesSchema:sv,multipleChoiceDisplayStyleSchema:sg,multipleChoiceMultipleDisplayStyleSchema:ug,multipleChoiceMultipleQuestionSchema:mg,multipleChoiceQuestionTranslationSchema:Og,multipleChoiceSingleQuestionSchema:fg,nestedDropdownQuestionSchema:hg,nestedOptionSchema:Mu,nestedSelectionQuestionTranslationSchema:Ug,npsQuestionSchema:pg,npsQuestionTranslationSchema:Eg,objectToCamel:gv,objectToPascal:hv,objectToSnake:vv,otherConfigurationPropertiesSchema:ua,positionSchema:Ju,publicationStatusSchema:zg,queryOutputSchema:Gg,questionCentricTranslationsSchema:Lg,questionOptionSchema:Lu,questionResponseSchema:ov,questionSchema:en,questionStatusSchema:ig,questionTranslationSchema:Dg,questionTypeSchema:eg,questionnaireFieldsResponseSchema:mv,ratingDisplayStyleSchema:og,ratingQuestionSchema:cg,ratingQuestionTranslationSchema:jg,ratingRepresentationSizeSchema:ag,recurringUnitSchema:xg,refineTextDataSchema:pv,refineTextParamsSchema:yk,refineTextResponseSchema:$k,responseSchema:av,sectionSchema:ia,sessionInfoSchema:Xi,shortAnswerQuestionSchema:gg,shortAnswerQuestionTranslationSchema:Pg,singleChoiceQuestionTranslationSchema:Tg,submitFeedbackSchema:lv,surveyTypeSchema:wg,themeColorsSchema:Bu,themeConfigurationSchema:Ku,themeModeSchema:uk,themesSchema:Yu,toCamel:ma,toPascal:tl,toSnake:el,translationEntrySchema:tt,translationsSchema:Zu,triggerActionSchema:Bg,userActionSchema:iv,userInfoSchema:da,userPropertiesSchema:nv,validationRuleSchema:rg,validationRuleTypeSchema:tg,viewFeedbackSchema:uv,visibilityConditionSchema:ng,welcomeScreenPropertiesSchema:la,whoSchema:Hg,yesNoSchema:kg,z:qw},Symbol.toStringTag,{value:"Module"})));var xk=Pi.exports,yv;function Sk(){return yv||(yv=1,(function(e,r){(function(o,s){s(r,kk)})(xk,(function(o,s){typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let t=!1,a=!1;function f(){t=!0}f();const w=1,q=2,K=4,me=8,le=16,Re=1,he=2,Y=4,Ie=8,Ae=16,pt=1,ut=2,ct="[",vt="[!",or="]",Wr={},Ft=Symbol(),pa="http://www.w3.org/1999/xhtml",rl="http://www.w3.org/2000/svg",ga="@attach",eo=!1;var pn=Array.isArray,nl=Array.prototype.indexOf,Ln=Array.from,Mn=Object.keys,Vr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,to=Object.getOwnPropertyDescriptors,ro=Object.prototype,pe=Array.prototype,Be=Object.getPrototypeOf,zt=Object.isExtensible;function At(i){return typeof i=="function"}const gt=()=>{};function Ir(i){return i()}function Zn(i){for(var n=0;n<i.length;n++)i[n]()}function di(){var i,n,u=new Promise((l,d)=>{i=l,n=d});return{promise:u,resolve:i,reject:n}}function Gt(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,Rn=4,fi=8,qn=16,tn=32,gn=64,il=128,zr=256,va=512,er=1024,br=2048,rn=4096,Ar=8192,Fn=16384,ol=32768,Wn=65536,$v=1<<17,Nk=1<<18,Vn=1<<19,_v=1<<20,al=1<<21,ha=1<<22,Qn=1<<23,Qr=Symbol("$state"),sl=Symbol("legacy props"),jk=Symbol(""),no=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Tk=1,ba=3,Gn=8;function ul(i){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ok(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ek(i){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pk(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ck(i){throw new Error("https://svelte.dev/e/effect_orphan")}function Uk(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ak(){throw new Error("https://svelte.dev/e/hydration_failed")}function Dk(i){throw new Error("https://svelte.dev/e/props_invalid_value")}function Lk(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mk(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zk(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Rk(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ya(i){console.warn("https://svelte.dev/e/hydration_mismatch")}function qk(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Fk(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let De=!1;function ar(i){De=i}let Je;function Yt(i){if(i===null)throw ya(),Wr;return Je=i}function nn(){return Yt(Jr(Je))}function L(i){if(De){if(Jr(Je)!==null)throw ya(),Wr;Je=i}}function yr(i=1){if(De){for(var n=i,u=Je;n--;)u=Jr(u);Je=u}}function $a(i=!0){for(var n=0,u=Je;;){if(u.nodeType===Gn){var l=u.data;if(l===or){if(n===0)return u;n-=1}else(l===ct||l===vt)&&(n+=1)}var d=Jr(u);i&&u.remove(),u=d}}function wv(i){if(!i||i.nodeType!==Gn)throw ya(),Wr;return i.data}function kv(i){return i===this.v}function xv(i,n){return i!=i?n==n:i!==n||i!==null&&typeof i=="object"||typeof i=="function"}function Sv(i){return!xv(i,this.v)}const Wk=[];function Vk(i,n=!1,u=!1){return _a(i,new Map,"",Wk,null,u)}function _a(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(pn(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]=_a(b,n,u,l,null,m))}return g}if(Be(i)===ro){g={},n.set(i,g),d!==null&&n.set(d,g);for(var h in i)g[h]=_a(i[h],n,u,l,null,m);return g}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!m)return _a(i.toJSON(),n,u,l,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}let xt=null;function mi(i){xt=i}function Iv(i){return ll().get(i)}function Qk(i,n){return ll().set(i,n),n}function Gk(i){return ll().has(i)}function Ye(i,n=!1,u){xt={p:xt,c:null,e:null,s:i,x:null,l:t&&!n?{s:null,u:null,$:[]}:null}}function Ke(i){var n=xt,u=n.e;if(u!==null){n.e=null;for(var l of u)Kv(l)}return i!==void 0&&(n.x=i),xt=n.p,i??{}}function io(){return!t||xt!==null&&xt.l===null}function ll(i){return xt===null&&ul(),xt.c??=new Map(Jk(xt)||void 0)}function Jk(i){let n=i.p;for(;n!==null;){const u=n.c;if(u!==null)return u;n=n.p}return null}let Jn=[];function zv(){var i=Jn;Jn=[],Zn(i)}function on(i){if(Jn.length===0&&!oo){var n=Jn;queueMicrotask(()=>{n===Jn&&zv()})}Jn.push(i)}function Bk(){for(;Jn.length>0;)zv()}const Yk=new WeakMap;function Nv(i){var n=Xe;if(n===null)return at.f|=Qn,i;if((n.f&ol)===0){if((n.f&il)===0)throw!n.parent&&i instanceof Error&&jv(i),i;n.b.error(i)}else pi(i,n)}function pi(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&&jv(i),i}function jv(i){const n=Yk.get(i);n&&(Vr(i,"message",{value:n.message}),Vr(i,"stack",{value:n.stack}))}const wa=new Set;let Tt=null,ka=null,cl=new Set,Gr=[],xa=null,dl=!1,oo=!1;class Dr{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){Gr=[],ka=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=[],ka=this,Tt=null,Ov(u),Ov(l),ka=null,this.#o?.resolve()}else this.#l(this.#a),this.#l(this.#r),this.#l(this.#s);for(const d of this.#i)hi(d);this.#i=[]}#d(n){n.f^=er;for(var u=n.first;u!==null;){var l=u.f,d=(l&(tn|gn))!==0,m=d&&(l&er)!==0,p=m||(l&Ar)!==0||this.skipped_effects.has(u);if(!p&&u.fn!==null){d?u.f^=er:(l&Rn)!==0?this.#r.push(u):(l&er)===0&&((l&ha)!==0&&u.b?.is_pending()?this.#i.push(u):co(u)&&((u.f&qn)!==0&&this.#s.push(u),hi(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&br)!==0?this.#u:this.#c).push(u),rr(u,er);n.length=0}capture(n,u){this.#e.has(n)||this.#e.set(n,u),this.current.set(n,n.v)}activate(){Tt=this}deactivate(){Tt=null}flush(){if(Gr.length>0){if(this.activate(),Tv(),Tt!==null&&Tt!==this)return}else this.#n===0&&this.#f();this.deactivate();for(const n of cl)if(cl.delete(n),n(),Tt!==null)break}#f(){for(const n of this.#t)n();if(this.#t.clear(),wa.size>1){this.#e.clear();let n=!0;for(const u of wa){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;Ev(l)}if(Gr.length>0){Tt=u;for(const l of Gr)u.#d(l);Gr=[]}}Tt=null}wa.delete(this)}increment(){this.#n+=1}decrement(){this.#n-=1;for(const n of this.#u)rr(n,br),Yn(n);for(const n of this.#c)rr(n,rn),Yn(n);this.flush()}add_callback(n){this.#t.add(n)}settled(){return(this.#o??=di()).promise}static ensure(){if(Tt===null){const n=Tt=new Dr;wa.add(Tt),oo||Dr.enqueue(()=>{Tt===n&&n.flush()})}return Tt}static enqueue(n){on(n)}static apply(n){return gt}}function dt(i){var n=oo;oo=!0;try{for(var u;;){if(Bk(),Gr.length===0&&(Tt?.flush(),Gr.length===0))return xa=null,u;Tv()}}finally{oo=n}}function Tv(){var i=vi;dl=!0;try{var n=0;for(ih(!0);Gr.length>0;){var u=Dr.ensure();if(n++>1e3){var l,d;Kk()}u.process(Gr),vn.clear()}}finally{dl=!1,ih(i),xa=null}}function Kk(){try{Uk()}catch(i){pi(i,xa)}}let Bn=null;function Ov(i){var n=i.length;if(n!==0){for(var u=0;u<n;){var l=i[u++];if((l.f&(Fn|Ar))===0&&co(l)&&(Bn=[],hi(l),l.deps===null&&l.first===null&&l.nodes_start===null&&(l.teardown===null&&l.ac===null?th(l):l.fn=null),Bn?.length>0)){vn.clear();for(const d of Bn)hi(d);Bn=[]}}Bn=null}}function Ev(i){if(i.reactions!==null)for(const n of i.reactions){const u=n.f;(u&Zt)!==0?Ev(n):(u&(ha|qn))!==0&&(rr(n,br),Yn(n))}}function Yn(i){for(var n=xa=i;n.parent!==null;){n=n.parent;var u=n.f;if(dl&&n===Xe&&(u&qn)!==0)return;if((u&(gn|tn))!==0){if((u&er)===0)return;n.f^=er}}Gr.push(n)}function Pv(i){let n=0,u=hn(0),l;return()=>{lx()&&(c(u),Kn(()=>(n===0&&(l=U(()=>i(()=>so(u)))),n+=1,()=>{on(()=>{n-=1,n===0&&(l?.(),l=void 0,so(u))})})))}}var Hk=Wn|Vn|il;function Xk(i,n,u){new ex(i,n,u)}class ex{parent;#e=!1;#t;#n=De?Je:null;#o;#i;#a;#r=null;#s=null;#u=null;#c=null;#d=0;#l=0;#f=!1;#m=null;#h=()=>{this.#m&&gi(this.#m,this.#d)};#b=Pv(()=>(this.#m=hn(this.#d),()=>{this.#m=null}));constructor(n,u,l){this.#t=n,this.#o=u,this.#i=l,this.parent=Xe.b,this.#e=!!this.#o.pending,this.#a=yn(()=>{if(Xe.b=this,De){const d=this.#n;nn(),d.nodeType===Gn&&d.data===vt?this.#$():this.#y()}else{try{this.#r=tr(()=>l(this.#t))}catch(d){this.error(d)}this.#l>0?this.#g():this.#e=!1}},Hk),De&&(this.#t=Je)}#y(){try{this.#r=tr(()=>this.#i(this.#t))}catch(n){this.error(n)}this.#e=!1}#$(){const n=this.#o.pending;n&&(this.#s=tr(()=>n(this.#t)),Dr.enqueue(()=>{this.#r=this.#p(()=>(Dr.ensure(),tr(()=>this.#i(this.#t)))),this.#l>0?this.#g():($n(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,l=at,d=xt;jr(this.#a),cr(this.#a),mi(this.#a.ctx);try{return n()}catch(m){return Nv(m),null}finally{jr(u),cr(l),mi(d)}}#g(){const n=this.#o.pending;this.#r!==null&&(this.#c=document.createDocumentFragment(),tx(this.#r,this.#c)),this.#s===null&&(this.#s=tr(()=>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&&$n(this.#s,()=>{this.#s=null}),this.#c&&(this.#t.before(this.#c),this.#c=null),on(()=>{Dr.ensure().flush()}))}update_pending_count(n){this.#v(n),this.#d+=n,cl.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&&(Kt(this.#r),this.#r=null),this.#s&&(Kt(this.#s),this.#s=null),this.#u&&(Kt(this.#u),this.#u=null),De&&(Yt(this.#n),yr(),Yt($a()));var d=!1,m=!1;const p=()=>{if(d){Fk();return}d=!0,m&&Rk(),Dr.ensure(),this.#d=0,this.#u!==null&&$n(this.#u,()=>{this.#u=null}),this.#e=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#f=!1,tr(()=>this.#i(this.#t)))),this.#l>0?this.#g():this.#e=!1};var g=at;try{cr(null),m=!0,u?.(n,p),m=!1}catch(v){pi(v,this.#a&&this.#a.parent)}finally{cr(g)}l&&on(()=>{this.#u=this.#p(()=>{this.#f=!0;try{return tr(()=>{l(this.#t,()=>n,()=>p)})}catch(v){return pi(v,this.#a.parent),null}finally{this.#f=!1}})})}}function tx(i,n){for(var u=i.nodes_start,l=i.nodes_end;u!==null;){var d=u===l?null:Jr(u);n.append(u),u=d}}function Cv(i,n,u){const l=io()?ao:Le;if(n.length===0){u(i.map(l));return}var d=Tt,m=Xe,p=rx(),g=De;Promise.all(n.map(v=>nx(v))).then(v=>{p();try{u([...i.map(l),...v])}catch(b){(m.f&Fn)===0&&pi(b,m)}g&&ar(!1),d?.deactivate(),Uv()}).catch(v=>{pi(v,m)})}function rx(){var i=Xe,n=at,u=xt,l=Tt,d=De;if(d)var m=Je;return function(){jr(i),cr(n),mi(u),l?.activate(),d&&(ar(!0),Yt(m))}}function Uv(){jr(null),cr(null),mi(null)}function ao(i){var n=Zt|br,u=at!==null&&(at.f&Zt)!==0?at:null;return Xe===null||u!==null&&(u.f&zr)!==0?n|=zr:Xe.f|=Vn,{ctx:xt,deps:null,effects:null,equals:kv,f:n,fn:i,reactions:null,rv:0,v:Ft,wv:0,parent:u??Xe,ac:null}}function nx(i,n){let u=Xe;u===null&&Ok();var l=u.b,d=void 0,m=hn(Ft),p=!at,g=new Map;return fx(()=>{var v=di();d=v.promise;try{Promise.resolve(i()).then(v.resolve,v.reject)}catch(y){v.reject(y)}var b=Tt,h=l.is_pending();p&&(l.update_pending_count(1),h||(b.increment(),g.get(b)?.reject(no),g.set(b,v)));const k=(y,I=void 0)=>{h||b.activate(),I?I!==no&&(m.f|=Qn,gi(m,I)):((m.f&Qn)!==0&&(m.f^=Qn),gi(m,y)),p&&(l.update_pending_count(-1),h||b.decrement()),Uv()};v.promise.then(k,y=>k(null,y||"unknown"))}),gl(()=>{for(const v of g.values())v.reject(no)}),new Promise(v=>{function b(h){function k(){h===d?v(m):b(d)}h.then(k,k)}b(d)})}function lt(i){const n=ao(i);return ah(n),n}function Le(i){const n=ao(i);return n.equals=Sv,n}function Av(i){var n=i.effects;if(n!==null){i.effects=null;for(var u=0;u<n.length;u+=1)Kt(n[u])}}function ix(i){for(var n=i.parent;n!==null;){if((n.f&Zt)===0)return n;n=n.parent}return null}function fl(i){var n,u=Xe;jr(ix(i));try{Av(i),n=dh(i)}finally{jr(u)}return n}function Dv(i){var n=fl(i);if(i.equals(n)||(i.v=n,i.wv=lh()),!Hn){var u=(_n||(i.f&zr)!==0)&&i.deps!==null?rn:er;rr(i,u)}}const vn=new Map;function hn(i,n){var u={f:0,v:i,reactions:null,equals:kv,rv:0,wv:0};return u}function Lr(i,n){const u=hn(i);return ah(u),u}function X(i,n=!1,u=!0){const l=hn(i);return n||(l.equals=Sv),t&&u&&xt!==null&&xt.l!==null&&(xt.l.s??=[]).push(l),l}function Lv(i,n){return $(i,U(()=>c(i))),n}function $(i,n,u=!1){at!==null&&(!Rr||(at.f&$v)!==0)&&io()&&(at.f&(Zt|qn|ha|$v))!==0&&!an?.includes(i)&&Zk();let l=u?bn(n):n;return gi(i,l)}function gi(i,n){if(!i.equals(n)){var u=i.v;Hn?vn.set(i,n):vn.set(i,u),i.v=n;var l=Dr.ensure();l.capture(i,u),(i.f&Zt)!==0&&((i.f&br)!==0&&fl(i),rr(i,(i.f&zr)===0?er:rn)),i.wv=lh(),Zv(i,br),io()&&Xe!==null&&(Xe.f&er)!==0&&(Xe.f&(tn|gn))===0&&(Tr===null?gx([i]):Tr.push(i))}return n}function Mv(i,n=1){var u=c(i),l=n===1?u++:u--;return $(i,u),l}function so(i){$(i,i.v+1)}function Zv(i,n){var u=i.reactions;if(u!==null)for(var l=io(),d=u.length,m=0;m<d;m++){var p=u[m],g=p.f;if(!(!l&&p===Xe)){var v=(g&br)===0;v&&rr(p,n),(g&Zt)!==0?Zv(p,rn):v&&((g&qn)!==0&&Bn!==null&&Bn.push(p),Yn(p))}}}function bn(i){if(typeof i!="object"||i===null||Qr in i)return i;const n=Be(i);if(n!==ro&&n!==pe)return i;var u=new Map,l=pn(i),d=Lr(0),m=Xn,p=g=>{if(Xn===m)return g();var v=at,b=Xn;cr(null),uh(m);var h=g();return cr(v),uh(b),h};return l&&u.set("length",Lr(i.length)),new Proxy(i,{defineProperty(g,v,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Lk();var h=u.get(v);return h===void 0?h=p(()=>{var k=Lr(b.value);return u.set(v,k),k}):$(h,b.value,!0),!0},deleteProperty(g,v){var b=u.get(v);if(b===void 0){if(v in g){const h=p(()=>Lr(Ft));u.set(v,h),so(d)}}else $(b,Ft),so(d);return!0},get(g,v,b){if(v===Qr)return i;var h=u.get(v),k=v in g;if(h===void 0&&(!k||Sr(g,v)?.writable)&&(h=p(()=>{var I=bn(k?g[v]:Ft),x=Lr(I);return x}),u.set(v,h)),h!==void 0){var y=c(h);return y===Ft?void 0:y}return Reflect.get(g,v,b)},getOwnPropertyDescriptor(g,v){var b=Reflect.getOwnPropertyDescriptor(g,v);if(b&&"value"in b){var h=u.get(v);h&&(b.value=c(h))}else if(b===void 0){var k=u.get(v),y=k?.v;if(k!==void 0&&y!==Ft)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return b},has(g,v){if(v===Qr)return!0;var b=u.get(v),h=b!==void 0&&b.v!==Ft||Reflect.has(g,v);if(b!==void 0||Xe!==null&&(!h||Sr(g,v)?.writable)){b===void 0&&(b=p(()=>{var y=h?bn(g[v]):Ft,I=Lr(y);return I}),u.set(v,b));var k=c(b);if(k===Ft)return!1}return h},set(g,v,b,h){var k=u.get(v),y=v in g;if(l&&v==="length")for(var I=b;I<k.v;I+=1){var x=u.get(I+"");x!==void 0?$(x,Ft):I in g&&(x=p(()=>Lr(Ft)),u.set(I+"",x))}if(k===void 0)(!y||Sr(g,v)?.writable)&&(k=p(()=>Lr(void 0)),$(k,bn(b)),u.set(v,k));else{y=k.v!==Ft;var O=p(()=>bn(b));$(k,O)}var j=Reflect.getOwnPropertyDescriptor(g,v);if(j?.set&&j.set.call(h,b),!y){if(l&&typeof v=="string"){var J=u.get("length"),re=Number(v);Number.isInteger(re)&&re>=J.v&&$(J,re+1)}so(d)}return!0},ownKeys(g){c(d);var v=Reflect.ownKeys(g).filter(k=>{var y=u.get(k);return y===void 0||y.v!==Ft});for(var[b,h]of u)h.v!==Ft&&!(b in g)&&v.push(b);return v},setPrototypeOf(){Mk()}})}function Rv(i){try{if(i!==null&&typeof i=="object"&&Qr in i)return i[Qr]}catch{}return i}function ox(i,n){return Object.is(Rv(i),Rv(n))}var qv,Fv,Wv,Vv;function ml(){if(qv===void 0){qv=window,Fv=/Firefox/.test(navigator.userAgent);var i=Element.prototype,n=Node.prototype,u=Text.prototype;Wv=Sr(n,"firstChild").get,Vv=Sr(n,"nextSibling").get,zt(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),zt(u)&&(u.__t=void 0)}}function Nr(i=""){return document.createTextNode(i)}function Mr(i){return Wv.call(i)}function Jr(i){return Vv.call(i)}function R(i,n){if(!De)return Mr(i);var u=Mr(Je);if(u===null)u=Je.appendChild(Nr());else if(n&&u.nodeType!==ba){var l=Nr();return u?.before(l),Yt(l),l}return Yt(u),u}function ze(i,n=!1){if(!De){var u=Mr(i);return u instanceof Comment&&u.data===""?Jr(u):u}if(n&&Je?.nodeType!==ba){var l=Nr();return Je?.before(l),Yt(l),l}return Je}function fe(i,n=1,u=!1){let l=De?Je:i;for(var d;n--;)d=l,l=Jr(l);if(!De)return l;if(u&&l?.nodeType!==ba){var m=Nr();return l===null?d?.after(m):l.before(m),Yt(m),m}return Yt(l),l}function pl(i){i.textContent=""}function Qv(){return!1}function ax(i,n){if(n){const u=document.body;i.autofocus=!0,on(()=>{document.activeElement===u&&i.focus()})}}function sx(i){De&&Mr(i)!==null&&pl(i)}let Gv=!1;function Jv(){Gv||(Gv=!0,document.addEventListener("reset",i=>{Promise.resolve().then(()=>{if(!i.defaultPrevented)for(const n of i.target.elements)n.__on_r?.()})},{capture:!0}))}function Sa(i){var n=at,u=Xe;cr(null),jr(null);try{return i()}finally{cr(n),jr(u)}}function Bv(i,n,u,l=u){i.addEventListener(n,()=>Sa(u));const d=i.__on_r;d?i.__on_r=()=>{d(),l(!0)}:i.__on_r=()=>l(!0),Jv()}function Yv(i){Xe===null&&at===null&&Ck(),at!==null&&(at.f&zr)!==0&&Xe===null&&Pk(),Hn&&Ek()}function ux(i,n){var u=n.last;u===null?n.last=n.first=i:(u.next=i,i.prev=u,n.last=i)}function Zr(i,n,u,l=!0){var d=Xe;d!==null&&(d.f&Ar)!==0&&(i|=Ar);var m={ctx:xt,deps:null,nodes_start:null,nodes_end:null,f:i|br,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{hi(m),m.f|=ol}catch(v){throw Kt(m),v}else n!==null&&Yn(m);if(l){var p=m;if(u&&p.deps===null&&p.teardown===null&&p.nodes_start===null&&p.first===p.last&&(p.f&Vn)===0&&(p=p.first),p!==null&&(p.parent=d,d!==null&&ux(p,d),at!==null&&(at.f&Zt)!==0&&(i&gn)===0)){var g=at;(g.effects??=[]).push(p)}}return m}function lx(){return at!==null&&!Rr}function gl(i){const n=Zr(fi,null,!1);return rr(n,er),n.teardown=i,n}function uo(i){Yv();var n=Xe.f,u=!at&&(n&tn)!==0&&(n&ol)===0;if(u){var l=xt;(l.e??=[]).push(i)}else return Kv(i)}function Kv(i){return Zr(Rn|_v,i,!1)}function Hv(i){return Yv(),Zr(fi|_v,i,!0)}function cx(i){Dr.ensure();const n=Zr(gn|Vn,i,!0);return()=>{Kt(n)}}function dx(i){Dr.ensure();const n=Zr(gn|Vn,i,!0);return(u={})=>new Promise(l=>{u.outro?$n(n,()=>{Kt(n),l(void 0)}):(Kt(n),l(void 0))})}function Ia(i){return Zr(Rn,i,!1)}function de(i,n){var u=xt,l={effect:null,ran:!1,deps:i};u.l.$.push(l),l.effect=Kn(()=>{i(),!l.ran&&(l.ran=!0,U(n))})}function sr(){var i=xt;Kn(()=>{for(var n of i.l.$){n.deps();var u=n.effect;(u.f&er)!==0&&rr(u,rn),co(u)&&hi(u),n.ran=!1}})}function fx(i){return Zr(ha|Vn,i,!0)}function Kn(i,n=0){return Zr(fi|n,i,!0)}function xe(i,n=[],u=[]){Cv(n,u,l=>{Zr(fi,()=>i(...l.map(c)),!0)})}function yn(i,n=0){var u=Zr(qn|n,i,!0);return u}function tr(i,n=!0){return Zr(tn|Vn,i,!0,n)}function Xv(i){var n=i.teardown;if(n!==null){const u=Hn,l=at;oh(!0),cr(null);try{n.call(null)}finally{oh(u),cr(l)}}}function eh(i,n=!1){var u=i.first;for(i.first=i.last=null;u!==null;){const d=u.ac;d!==null&&Sa(()=>{d.abort(no)});var l=u.next;(u.f&gn)!==0?u.parent=null:Kt(u,n),u=l}}function mx(i){for(var n=i.first;n!==null;){var u=n.next;(n.f&tn)===0&&Kt(n),n=u}}function Kt(i,n=!0){var u=!1;(n||(i.f&Nk)!==0)&&i.nodes_start!==null&&i.nodes_end!==null&&(px(i.nodes_start,i.nodes_end),u=!0),eh(i,n&&!u),Na(i,0),rr(i,Fn);var l=i.transitions;if(l!==null)for(const m of l)m.stop();Xv(i);var d=i.parent;d!==null&&d.first!==null&&th(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes_start=i.nodes_end=i.ac=null}function px(i,n){for(;i!==null;){var u=i===n?null:Jr(i);i.remove(),i=u}}function th(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 $n(i,n){var u=[];vl(i,u,!0),rh(u,()=>{Kt(i),n&&n()})}function rh(i,n){var u=i.length;if(u>0){var l=()=>--u||n();for(var d of i)d.out(l)}else n()}function vl(i,n,u){if((i.f&Ar)===0){if(i.f^=Ar,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&Wn)!==0||(l.f&tn)!==0;vl(l,n,m?u:!1),l=d}}}function za(i){nh(i,!0)}function nh(i,n){if((i.f&Ar)!==0){i.f^=Ar,(i.f&er)===0&&(rr(i,br),Yn(i));for(var u=i.first;u!==null;){var l=u.next,d=(u.f&Wn)!==0||(u.f&tn)!==0;nh(u,d?n:!1),u=l}if(i.transitions!==null)for(const m of i.transitions)(m.is_global||n)&&m.in()}}let vi=!1;function ih(i){vi=i}let Hn=!1;function oh(i){Hn=i}let at=null,Rr=!1;function cr(i){at=i}let Xe=null;function jr(i){Xe=i}let an=null;function ah(i){at!==null&&(an===null?an=[i]:an.push(i))}let ur=null,$r=0,Tr=null;function gx(i){Tr=i}let sh=1,lo=0,Xn=lo;function uh(i){Xn=i}let _n=!1;function lh(){return++sh}function co(i){var n=i.f;if((n&br)!==0)return!0;if((n&rn)!==0){var u=i.deps,l=(n&zr)!==0;if(u!==null){var d,m,p=(n&va)!==0,g=l&&Xe!==null&&!_n,v=u.length;if((p||g)&&(Xe===null||(Xe.f&Fn)===0)){var b=i,h=b.parent;for(d=0;d<v;d++)m=u[d],(p||!m?.reactions?.includes(b))&&(m.reactions??=[]).push(b);p&&(b.f^=va),g&&h!==null&&(h.f&zr)===0&&(b.f^=zr)}for(d=0;d<v;d++)if(m=u[d],co(m)&&Dv(m),m.wv>i.wv)return!0}(!l||Xe!==null&&!_n)&&rr(i,er)}return!1}function ch(i,n,u=!0){var l=i.reactions;if(l!==null&&!an?.includes(i))for(var d=0;d<l.length;d++){var m=l[d];(m.f&Zt)!==0?ch(m,n,!1):n===m&&(u?rr(m,br):(m.f&er)!==0&&rr(m,rn),Yn(m))}}function dh(i){var n=ur,u=$r,l=Tr,d=at,m=_n,p=an,g=xt,v=Rr,b=Xn,h=i.f;ur=null,$r=0,Tr=null,_n=(h&zr)!==0&&(Rr||!vi||at===null),at=(h&(tn|gn))===0?i:null,an=null,mi(i.ctx),Rr=!1,Xn=++lo,i.ac!==null&&(Sa(()=>{i.ac.abort(no)}),i.ac=null);try{i.f|=al;var k=i.fn,y=k(),I=i.deps;if(ur!==null){var x;if(Na(i,$r),I!==null&&$r>0)for(I.length=$r+ur.length,x=0;x<ur.length;x++)I[$r+x]=ur[x];else i.deps=I=ur;if(!_n||(h&Zt)!==0&&i.reactions!==null)for(x=$r;x<I.length;x++)(I[x].reactions??=[]).push(i)}else I!==null&&$r<I.length&&(Na(i,$r),I.length=$r);if(io()&&Tr!==null&&!Rr&&I!==null&&(i.f&(Zt|rn|br))===0)for(x=0;x<Tr.length;x++)ch(Tr[x],i);return d!==null&&d!==i&&(lo++,Tr!==null&&(l===null?l=Tr:l.push(...Tr))),(i.f&Qn)!==0&&(i.f^=Qn),y}catch(O){return Nv(O)}finally{i.f^=al,ur=n,$r=u,Tr=l,at=d,_n=m,an=p,mi(g),Rr=v,Xn=b}}function vx(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&&(ur===null||!ur.includes(n))&&(rr(n,rn),(n.f&(zr|va))===0&&(n.f^=va),Av(n),Na(n,0))}function Na(i,n){var u=i.deps;if(u!==null)for(var l=n;l<u.length;l++)vx(i,u[l])}function hi(i){var n=i.f;if((n&Fn)===0){rr(i,er);var u=Xe,l=vi;Xe=i,vi=!0;try{(n&qn)!==0?mx(i):eh(i),Xv(i);var d=dh(i);i.teardown=typeof d=="function"?d:null,i.wv=sh;var m;eo&&a&&(i.f&br)!==0&&i.deps}finally{vi=l,Xe=u}}}async function hx(){await Promise.resolve(),dt()}function c(i){var n=i.f,u=(n&Zt)!==0;if(at!==null&&!Rr){var l=Xe!==null&&(Xe.f&Fn)!==0;if(!l&&!an?.includes(i)){var d=at.deps;if((at.f&al)!==0)i.rv<lo&&(i.rv=lo,ur===null&&d!==null&&d[$r]===i?$r++:ur===null?ur=[i]:(!_n||!ur.includes(i))&&ur.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&zr)===0&&(p.f^=zr)}if(Hn){if(vn.has(i))return vn.get(i);if(u){p=i;var v=p.v;return((p.f&er)===0&&p.reactions!==null||fh(p))&&(v=fl(p)),vn.set(p,v),v}}else u&&(p=i,co(p)&&Dv(p));if((i.f&Qn)!==0)throw i.v;return i.v}function fh(i){if(i.v===Ft)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(vn.has(n)||(n.f&Zt)!==0&&fh(n))return!0;return!1}function U(i){var n=Rr;try{return Rr=!0,i()}finally{Rr=n}}const bx=-7169;function rr(i,n){i.f=i.f&bx|n}function z(i){if(!(typeof i!="object"||!i||i instanceof EventTarget)){if(Qr in i)hl(i);else if(!Array.isArray(i))for(let n in i){const u=i[n];typeof u=="object"&&u&&Qr in u&&hl(u)}}}function hl(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{hl(i[l],n)}catch{}const u=Be(i);if(u!==Object.prototype&&u!==Array.prototype&&u!==Map.prototype&&u!==Set.prototype&&u!==Date.prototype){const l=to(u);for(let d in l){const m=l[d].get;if(m)try{m.call(i)}catch{}}}}}const mh=new Set,bl=new Set;function ph(i,n,u,l={}){function d(m){if(l.capture||fo.call(n,m),!m.cancelBubble)return Sa(()=>u?.call(this,m))}return i.startsWith("pointer")||i.startsWith("touch")||i==="wheel"?on(()=>{n.addEventListener(i,d,l)}):n.addEventListener(i,d,l),d}function gh(i,n,u,l={}){var d=ph(n,i,u,l);return()=>{i.removeEventListener(n,d,l)}}function yl(i){for(var n=0;n<i.length;n++)mh.add(i[n]);for(var u of bl)u(i)}let vh=null;function fo(i){var n=this,u=n.ownerDocument,l=i.type,d=i.composedPath?.()||[],m=d[0]||i.target;vh=i;var p=0,g=vh===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){Vr(i,"currentTarget",{configurable:!0,get(){return m||u}});var h=at,k=Xe;cr(null),jr(null);try{for(var y,I=[];m!==null;){var x=m.assignedSlot||m.parentNode||m.host||null;try{var O=m["__"+l];if(O!=null&&(!m.disabled||i.target===m))if(pn(O)){var[j,...J]=O;j.apply(m,[i,...J])}else O.call(m,i)}catch(re){y?I.push(re):y=re}if(i.cancelBubble||x===n||x===null)break;m=x}if(y){for(let re of I)queueMicrotask(()=>{throw re});throw y}}finally{i.__root=n,delete i.currentTarget,cr(h),jr(k)}}}function hh(i){var n=document.createElement("template");return n.innerHTML=i.replaceAll("<!>","<!---->"),n.content}function qr(i,n){var u=Xe;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(De)return qr(Je,null),Je;d===void 0&&(d=hh(m?i:"<!>"+i),u||(d=Mr(d)));var p=l||Fv?document.importNode(d,!0):d.cloneNode(!0);if(u){var g=Mr(p),v=p.lastChild;qr(g,v)}else qr(p,p);return p}}function yx(i,n,u="svg"){var l=!i.startsWith("<!>"),d=`<${u}>${l?i:"<!>"+i}</${u}>`,m;return()=>{if(De)return qr(Je,null),Je;if(!m){var p=hh(d),g=Mr(p);m=Mr(g)}var v=m.cloneNode(!0);return qr(v,v),v}}function wn(i,n){return yx(i,n,"svg")}function kn(i=""){if(!De){var n=Nr(i+"");return qr(n,n),n}var u=Je;return u.nodeType!==ba&&(u.before(u=Nr()),Yt(u)),qr(u,u),u}function Ze(){if(De)return qr(Je,null),Je;var i=document.createDocumentFragment(),n=document.createComment(""),u=Nr();return i.append(n,u),qr(n,u),i}function T(i,n){if(De){Xe.nodes_end=Je,nn();return}i!==null&&i.before(n)}function ja(){if(De&&Je&&Je.nodeType===Gn&&Je.textContent?.startsWith("$")){const i=Je.textContent.substring(1);return nn(),i}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function $x(i){return i.endsWith("capture")&&i!=="gotpointercapture"&&i!=="lostpointercapture"}const _x=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function wx(i){return _x.includes(i)}const kx={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 xx(i){return i=i.toLowerCase(),kx[i]??i}const Sx=["touchstart","touchmove"];function Ix(i){return Sx.includes(i)}const zx=["textarea","script","style","title"];function Nx(i){return zx.includes(i)}function Ne(i,n){var u=n==null?"":typeof n=="object"?n+"":n;u!==(i.__t??=i.nodeValue)&&(i.__t=u,i.nodeValue=u+"")}function bh(i,n){return yh(i,n)}function jx(i,n){ml(),n.intro=n.intro??!1;const u=n.target,l=De,d=Je;try{for(var m=Mr(u);m&&(m.nodeType!==Gn||m.data!==ct);)m=Jr(m);if(!m)throw Wr;ar(!0),Yt(m);const p=yh(i,{...n,anchor:m});return ar(!1),p}catch(p){if(p instanceof Error&&p.message.split(`
|
|
45
|
-
`).some(g=>g.startsWith("https://svelte.dev/e/")))throw p;return p!==Wr&&console.warn("Failed to hydrate: ",p),n.recover===!1&&
|
|
46
|
-
\r\f \v\uFEFF`];function Mx(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||kh.includes(l[p-1]))&&(g===l.length||kh.includes(l[g]))?l=(p===0?"":l.substring(0,p))+l.substring(g+1):p=g}}return l===""?null:l}function xh(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 wl(i){return i[0]!=="-"||i[1]!=="-"?i.toLowerCase():i}function Zx(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(wl)),d&&v.push(...Object.keys(d).map(wl));var b=0,h=-1;const O=i.length;for(var k=0;k<O;k++){var y=i[k];if(g?y==="/"&&i[k-1]==="*"&&(g=!1):m?m===y&&(m=!1):y==="/"&&i[k+1]==="*"?g=!0:y==='"'||y==="'"?m=y:y==="("?p++:y===")"&&p--,!g&&m===!1&&p===0){if(y===":"&&h===-1)h=k;else if(y===";"||k===O-1){if(h!==-1){var I=wl(i.substring(b,h).trim());if(!v.includes(I)){y!==";"&&k++;var x=i.substring(b,k).trim();u+=" "+x+";"}}b=k+1,h=-1}}}}return l&&(u+=xh(l)),d&&(u+=xh(d,!0)),u=u.trim(),u===""?null:u}return i==null?null:String(i)}function sn(i,n,u,l,d,m){var p=i.__className;if(De||p!==u||p===void 0){var g=Mx(u,l,m);(!De||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 kl(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 yi(i,n,u,l){var d=i.__style;if(De||d!==n){var m=Zx(n,l);(!De||m!==i.getAttribute("style"))&&(m==null?i.removeAttribute("style"):i.style.cssText=m),i.__style=n}else l&&(Array.isArray(l)?(kl(i,u?.[0],l[0]),kl(i,u?.[1],l[1],"important")):kl(i,u,l));return l}function xl(i,n,u=!1){if(i.multiple){if(n==null)return;if(!pn(n))return qk();for(var l of i.options)l.selected=n.includes(Sh(l));return}for(l of i.options){var d=Sh(l);if(ox(d,n)){l.selected=!0;return}}(!u||n!==void 0)&&(i.selectedIndex=-1)}function Rx(i){var n=new MutationObserver(()=>{xl(i,i.__value)});n.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),gl(()=>{n.disconnect()})}function Sh(i){return"__value"in i?i.__value:i.value}const po=Symbol("class"),go=Symbol("style"),Ih=Symbol("is custom element"),zh=Symbol("is html");function qx(i){if(De){var n=!1,u=()=>{if(!n){if(n=!0,i.hasAttribute("value")){var l=i.value;ei(i,"value",null),i.value=l}if(i.hasAttribute("checked")){var d=i.checked;ei(i,"checked",null),i.checked=d}}};i.__on_r=u,on(u),Jv()}}function Fx(i,n){n?i.hasAttribute("selected")||i.setAttribute("selected",""):i.removeAttribute("selected")}function ei(i,n,u,l){var d=Nh(i);De&&(d[n]=i.getAttribute(n),n==="src"||n==="srcset"||n==="href"&&i.nodeName==="LINK")||d[n]!==(d[n]=u)&&(n==="loading"&&(i[jk]=u),u==null?i.removeAttribute(n):typeof u!="string"&&Th(i).includes(n)?i[n]=u:i.setAttribute(n,u))}function Wx(i,n,u,l,d=!1,m=!1){if(De&&d&&i.tagName==="INPUT"){var p=i,g=p.type==="checkbox"?"defaultChecked":"defaultValue";g in u||qx(p)}var v=Nh(i),b=v[Ih],h=!v[zh];let k=De&&b;k&&ar(!1);var y=n||{},I=i.tagName==="OPTION";for(var x in n)x in u||(u[x]=null);u.class?u.class=Lx(u.class):u[po]&&(u.class=null),u[go]&&(u.style??=null);var O=Th(i);for(const M in u){let te=u[M];if(I&&M==="value"&&te==null){i.value=i.__value="",y[M]=te;continue}if(M==="class"){var j=i.namespaceURI==="http://www.w3.org/1999/xhtml";sn(i,j,te,l,n?.[po],u[po]),y[M]=te,y[po]=u[po];continue}if(M==="style"){yi(i,te,n?.[go],u[go]),y[M]=te,y[go]=u[go];continue}var J=y[M];if(!(te===J&&!(te===void 0&&i.hasAttribute(M)))){y[M]=te;var re=M[0]+M[1];if(re!=="$$")if(re==="on"){const ne={},$e="$$"+M;let je=M.slice(2);var W=wx(je);if($x(je)&&(je=je.slice(0,-7),ne.capture=!0),!W&&J){if(te!=null)continue;i.removeEventListener(je,y[$e],ne),y[$e]=null}if(te!=null)if(W)i[`__${je}`]=te,yl([je]);else{let Se=function(ke){y[M].call(this,ke)};y[$e]=ph(je,i,Se,ne)}else W&&(i[`__${je}`]=void 0)}else if(M==="style")ei(i,M,te);else if(M==="autofocus")ax(i,!!te);else if(!b&&(M==="__value"||M==="value"&&te!=null))i.value=i.__value=te;else if(M==="selected"&&I)Fx(i,te);else{var G=M;h||(G=xx(G));var V=G==="defaultValue"||G==="defaultChecked";if(te==null&&!b&&!V)if(v[M]=null,G==="value"||G==="checked"){let ne=i;const $e=n===void 0;if(G==="value"){let je=ne.defaultValue;ne.removeAttribute(G),ne.defaultValue=je,ne.value=ne.__value=$e?je:null}else{let je=ne.defaultChecked;ne.removeAttribute(G),ne.defaultChecked=je,ne.checked=$e?je:!1}}else i.removeAttribute(M);else V||O.includes(G)&&(b||typeof te!="string")?(i[G]=te,G in v&&(v[G]=Ft)):typeof te!="function"&&ei(i,G,te)}}}return k&&ar(!0),y}function Wt(i,n,u=[],l=[],d,m=!1,p=!1){Cv(u,l,g=>{var v=void 0,b={},h=i.nodeName==="SELECT",k=!1;if(yn(()=>{var I=n(...g.map(c)),x=Wx(i,v,I,d,m,p);k&&h&&"value"in I&&xl(i,I.value);for(let j of Object.getOwnPropertySymbols(b))I[j]||Kt(b[j]);for(let j of Object.getOwnPropertySymbols(I)){var O=I[j];j.description===ga&&(!v||O!==v[j])&&(b[j]&&Kt(b[j]),b[j]=tr(()=>Dx(i,()=>O))),x[j]=O}v=x}),h){var y=i;Ia(()=>{xl(y,v.value,!0),Rx(y)})}k=!0})}function Nh(i){return i.__attributes??={[Ih]:i.nodeName.includes("-"),[zh]:i.namespaceURI===pa}}var jh=new Map;function Th(i){var n=i.getAttribute("is")||i.nodeName,u=jh.get(n);if(u)return u;jh.set(n,u=[]);for(var l,d=i,m=Element.prototype;m!==d;){l=to(d);for(var p in l)l[p].set&&u.push(p);d=Be(d)}return u}function Ea(i,n,u=n){var l=new WeakSet;Bv(i,"input",async d=>{var m=d?i.defaultValue:i.value;if(m=Sl(i)?Il(m):m,u(m),Tt!==null&&l.add(Tt),await hx(),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))}}}),(De&&i.defaultValue!==i.value||U(n)==null&&i.value)&&(u(Sl(i)?Il(i.value):i.value),Tt!==null&&l.add(Tt)),Kn(()=>{var d=n();if(i===document.activeElement){var m=ka??Tt;if(l.has(m))return}Sl(i)&&d===Il(i.value)||i.type==="date"&&!d&&!i.value||d!==i.value&&(i.value=d??"")})}function Sl(i){var n=i.type;return n==="number"||n==="range"}function Il(i){return i===""?null:+i}function Vx(i,n,u=n){Bv(i,"change",()=>{u(i.files)}),De&&i.files&&u(i.files),Kn(()=>{i.files=n()})}function Oh(i,n){return i===n||i?.[Qr]===n}function Or(i={},n,u,l){return Ia(()=>{var d,m;return Kn(()=>{d=m,m=[],U(()=>{i!==u(...m)&&(n(i,...m),d&&Oh(u(...d),i)&&n(null,...d))})}),()=>{on(()=>{m&&Oh(u(...m),i)&&n(null,...m)})}}),i}function Ht(i=!1){const n=xt,u=n.l.u;if(!u)return;let l=()=>z(n.s);if(i){let d=0,m={};const p=ao(()=>{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&&Hv(()=>{Eh(n,l),Zn(u.b)}),uo(()=>{const d=U(()=>u.m.map(Ir));return()=>{for(const m of d)typeof m=="function"&&m()}}),u.a.length&&uo(()=>{Eh(n,l),Zn(u.a)})}function Eh(i,n){if(i.l.s)for(const u of i.l.s)c(u);n()}function Ph(i,n,u){if(i==null)return n(void 0),gt;const l=U(()=>i.subscribe(n,u));return l.unsubscribe?()=>l.unsubscribe():l}const $i=[];function Qx(i,n=gt){let u=null;const l=new Set;function d(g){if(xv(i,g)&&(i=g,u)){const v=!$i.length;for(const b of l)b[1](),$i.push(b,i);if(v){for(let b=0;b<$i.length;b+=2)$i[b][0]($i[b+1]);$i.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 vo(i){let n;return Ph(i,u=>n=u)(),n}let Pa=!1,zl=Symbol();function Gx(i,n,u){const l=u[n]??={store:null,source:X(void 0),unsubscribe:gt};if(l.store!==i&&!(zl 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=Ph(i,m=>{d?l.source.v=m:$(l.source,m)}),d=!1}return i&&zl in u?vo(i):c(l.source)}function Jx(){const i={};function n(){gl(()=>{for(var u in i)i[u].unsubscribe();Vr(i,zl,{enumerable:!1,value:!0})})}return[i,n]}function Bx(i){var n=Pa;try{return Pa=!1,[i(),Pa]}finally{Pa=n}}const Yx={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 Dt(i,n,u){return new Proxy({props:i,exclude:n},Yx)}const Kx={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=Xe;try{jr(i.parent_effect),i.special[n]=_({get[n](){return i.props[n]}},n,Y)}finally{jr(l)}}return i.special[n](u),Mv(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),Mv(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 un(i,n){return new Proxy({props:i,exclude:n,special:{},version:hn(0),parent_effect:Xe},Kx)}const Hx={get(i,n){let u=i.props.length;for(;u--;){let l=i.props[u];if(At(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];At(d)&&(d=d());const m=Sr(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(At(l)&&(l=l()),typeof l=="object"&&l!==null&&n in l){const d=Sr(l,n);return d&&!d.configurable&&(d.configurable=!0),d}}},has(i,n){if(n===Qr||n===sl)return!1;for(let u of i.props)if(At(u)&&(u=u()),u!=null&&n in u)return!0;return!1},ownKeys(i){const n=[];for(let u of i.props)if(At(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 jt(...i){return new Proxy({props:i},Hx)}function _(i,n,u,l){var d=!t||(u&he)!==0,m=(u&Ie)!==0,p=(u&Ae)!==0,g=l,v=!0,b=()=>(v&&(v=!1,g=p?U(l):l),g),h;if(m){var k=Qr in i||sl in i;h=Sr(i,n)?.set??(k&&n in i?W=>i[n]=W:void 0)}var y,I=!1;m?[y,I]=Bx(()=>i[n]):y=i[n],y===void 0&&l!==void 0&&(y=b(),h&&(d&&Dk(),h(y)));var x;if(d?x=()=>{var W=i[n];return W===void 0?b():(v=!0,W)}:x=()=>{var W=i[n];return W!==void 0&&(g=void 0),W===void 0?g:W},d&&(u&Y)===0)return x;if(h){var O=i.$$legacy;return(function(W,G){return arguments.length>0?((!d||!G||O||I)&&h(G?x():W),W):x()})}var j=!1,J=((u&Re)!==0?ao:Le)(()=>(j=!1,x()));m&&c(J);var re=Xe;return(function(W,G){if(arguments.length>0){const V=G?c(J):d&&m?bn(W):W;return $(J,V),j=!0,g!==void 0&&(g=V),W}return Hn&&j||(re.f&Fn)!==0?J.v:c(J)})}function Xx(i){return new e0(i)}class e0{#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?jx:bh)(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)&&dt(),this.#e=d.$$events;for(const m of Object.keys(this.#t))m==="$set"||m==="$destroy"||m==="$on"||Vr(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=()=>{Tx(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 Ch;typeof HTMLElement=="function"&&(Ch=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),T(d,m)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},u=t0(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=Xx({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=cx(()=>{Kn(()=>{this.$$r=!0;for(const l of Mn(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 Mn(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 t0(i){const n={};return i.childNodes.forEach(u=>{n[u.slot||"default"]=!0}),n}function Uh(i,n,u,l,d,m){let p=class extends Ch{constructor(){super(i,u,d),this.$$p_d=n}static get observedAttributes(){return Mn(n).map(g=>(n[g].attribute||g).toLowerCase())}};return Mn(n).forEach(g=>{Vr(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 h=Sr(b,g)?.get;h?b[g]=v:b.$set({[g]:v})}}})}),l.forEach(g=>{Vr(p.prototype,g,{get(){return this.$$c?.[g]}})}),i.element=p,p}const r0={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 n0=wn("<svg><!><!></svg>");function ti(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=un(u,["type","name","color","size","stroke","iconNode"]);Ye(n,!1);let d=_(n,"type",8),m=_(n,"name",8),p=_(n,"color",8,"currentColor"),g=_(n,"size",8,24),v=_(n,"stroke",8,2),b=_(n,"iconNode",8);Ht();var h=n0();Wt(h,()=>({...r0[d()],...l,width:g(),height:g(),class:(z(m()),z(u),U(()=>`tabler-icon tabler-icon-${m()} ${u.class??""}`)),...d()==="filled"?{fill:p()}:{"stroke-width":v(),stroke:p()}}));var k=R(h);dr(k,1,b,_r,(I,x)=>{var O=lt(()=>Gt(c(x),2));let j=()=>c(O)[0],J=()=>c(O)[1];var re=Ze(),W=ze(re);_h(W,j,!0,(G,V)=>{Wt(G,()=>({...J()}))}),T(I,re)});var y=fe(k);Sn(y,n,"default",{}),L(h),T(i,h),Ke()}function Ah(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M9 14l-4 -4l4 -4"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"}]];ti(i,jt({type:"outline",name:"arrow-back-up"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Dh(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M15 6l-6 6l6 6"}]];ti(i,jt({type:"outline",name:"chevron-left"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Ua(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M9 6l6 6l-6 6"}]];ti(i,jt({type:"outline",name:"chevron-right"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function i0(i,n){const u=un(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"}]];ti(i,jt({type:"outline",name:"home-2"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Lh(i,n){const u=un(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"}]];ti(i,jt({type:"outline",name:"photo"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Mh(i,n){const u=un(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"}]];ti(i,jt({type:"outline",name:"wand"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Zh(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M18 6l-12 12"}],["path",{d:"M6 6l12 12"}]];ti(i,jt({type:"outline",name:"x"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}const Fr=Qx({questions:[],questionsData:{}}),lr=(i,n,u,l)=>{if((n==null||n===""||Array.isArray(n)&&n.length===0)&&!l){jl(i);return}let d;switch(u){case"rating":d={rating:n};break;case"nps":d={nps:n};break;case"long_text":d={longText:n};break;case"short_answer":d={shortAnswer:n};break;case"single_choice":d={singleChoice:n};break;case"multiple_choice_multiple":d={multipleChoiceMultiple:Array.isArray(n)?n:[n]};break;case"nested_selection":d={nestedSelection:Array.isArray(n)?n:[n]};break;case"annotation":d={annotation:n};break;default:d=n}Fr.update(m=>{const p=m.questions.findIndex(g=>g.questionId===i);return p!==-1?{...m,questions:m.questions.map((g,v)=>v===p?{...g,answer:d,type:u,error:l}:g)}:{...m,questions:[...m.questions,{questionId:i,answer:d,type:u,error:l}]}})},_i=(i,n)=>{a0(i)&&Fr.update(u=>({...u,questions:u.questions.map(l=>l.questionId===i?{...l,error:n}:l)}))},o0=()=>{Fr.update(i=>({...i,questions:i.questions.map(n=>({...n,error:void 0}))}))},Nl=()=>vo(Fr).questions.some(i=>i.error!==void 0&&i.error!==null&&i.error!==""),jl=i=>{Fr.update(n=>({...n,questions:n.questions.filter(u=>u.questionId!==i)}))},a0=i=>vo(Fr).questions.find(n=>n.questionId===i),s0=()=>{Fr.update(i=>({...i,questions:[]}))},Rh=i=>{Fr.update(n=>({...n,questionsData:i}))},qh=i=>vo(Fr).questionsData[i],Tl="-",u0=i=>{const n=c0(i),{conflictingClassGroups:u,conflictingClassGroupModifiers:l}=i;return{getClassGroupId:d=>{const m=d.split(Tl);return m[0]===""&&m.length!==1&&m.shift(),Fh(m,n)||l0(d)},getConflictingClassGroupIds:(d,m)=>{const p=u[d]||[];return m&&l[d]?[...p,...l[d]]:p}}},Fh=(i,n)=>{if(i.length===0)return n.classGroupId;const u=i[0],l=n.nextPart.get(u),d=l?Fh(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},Wh=/^\[(.+)\]$/,l0=i=>{if(Wh.test(i)){const n=Wh.exec(i)[1],u=n?.substring(0,n.indexOf(":"));if(u)return"arbitrary.."+u}},c0=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:Vh(n,d);m.classGroupId=u;return}if(typeof d=="function"){if(d0(d)){Ol(d(l),n,u,l);return}n.validators.push({validator:d,classGroupId:u});return}Object.entries(d).forEach(([m,p])=>{Ol(p,Vh(n,m),u,l)})})},Vh=(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},d0=i=>i.isThemeGetter,f0=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=":",m0=Pl.length,p0=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 O=d[x];if(p===0&&g===0){if(O===Pl){m.push(d.slice(v,x)),v=x+m0;continue}if(O==="/"){b=x;continue}}O==="["?p++:O==="]"?p--:O==="("?g++:O===")"&&g--}const h=m.length===0?d:d.substring(v),k=g0(h),y=k!==h,I=b&&b>v?b-v:void 0;return{modifiers:m,hasImportantModifier:y,baseClassName:k,maybePostfixModifierPosition:I}};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},g0=i=>i.endsWith(El)?i.substring(0,i.length-1):i.startsWith(El)?i.substring(1):i,v0=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}},h0=i=>({cache:f0(i.cacheSize),parseClassName:p0(i),sortModifiers:v0(i),...u0(i)}),b0=/\s+/,y0=(i,n)=>{const{parseClassName:u,getClassGroupId:l,getConflictingClassGroupIds:d,sortModifiers:m}=n,p=[],g=i.trim().split(b0);let v="";for(let b=g.length-1;b>=0;b-=1){const h=g[b],{isExternal:k,modifiers:y,hasImportantModifier:I,baseClassName:x,maybePostfixModifierPosition:O}=u(h);if(k){v=h+(v.length>0?" "+v:v);continue}let j=!!O,J=l(j?x.substring(0,O):x);if(!J){if(!j){v=h+(v.length>0?" "+v:v);continue}if(J=l(x),!J){v=h+(v.length>0?" "+v:v);continue}j=!1}const re=m(y).join(":"),W=I?re+El:re,G=W+J;if(p.includes(G))continue;p.push(G);const V=d(J,j);for(let M=0;M<V.length;++M){const te=V[M];p.push(W+te)}v=h+(v.length>0?" "+v:v)}return v};function $0(){let i=0,n,u,l="";for(;i<arguments.length;)(n=arguments[i++])&&(u=Qh(n))&&(l&&(l+=" "),l+=u);return l}const Qh=i=>{if(typeof i=="string")return i;let n,u="";for(let l=0;l<i.length;l++)i[l]&&(n=Qh(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((h,k)=>k(h),i());return u=h0(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 h=y0(v,u);return d(v,h),h}return function(){return m($0.apply(null,arguments))}}const Jt=i=>{const n=u=>u[i]||[];return n.isThemeGetter=!0,n},Gh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_0=/^\d+\/\d+$/,w0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k0=/\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$/,x0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wi=i=>_0.test(i),nt=i=>!!i&&!Number.isNaN(Number(i)),In=i=>!!i&&Number.isInteger(Number(i)),Ul=i=>i.endsWith("%")&&nt(i.slice(0,-1)),ln=i=>w0.test(i),z0=()=>!0,N0=i=>k0.test(i)&&!x0.test(i),Bh=()=>!1,j0=i=>S0.test(i),T0=i=>I0.test(i),O0=i=>!Te(i)&&!Oe(i),E0=i=>ki(i,eb,Bh),Te=i=>Gh.test(i),ri=i=>ki(i,tb,N0),Al=i=>ki(i,D0,nt),Yh=i=>ki(i,Hh,Bh),P0=i=>ki(i,Xh,T0),Aa=i=>ki(i,rb,j0),Oe=i=>Jh.test(i),ho=i=>xi(i,tb),C0=i=>xi(i,L0),Kh=i=>xi(i,Hh),U0=i=>xi(i,eb),A0=i=>xi(i,Xh),Da=i=>xi(i,rb,!0),ki=(i,n,u)=>{const l=Gh.exec(i);return l?l[1]?n(l[1]):u(l[2]):!1},xi=(i,n,u=!1)=>{const l=Jh.exec(i);return l?l[1]?n(l[1]):u:!1},Hh=i=>i==="position"||i==="percentage",Xh=i=>i==="image"||i==="url",eb=i=>i==="length"||i==="size"||i==="bg-size",tb=i=>i==="length",D0=i=>i==="number",L0=i=>i==="family-name",rb=i=>i==="shadow",Dl=()=>{const i=Jt("color"),n=Jt("font"),u=Jt("text"),l=Jt("font-weight"),d=Jt("tracking"),m=Jt("leading"),p=Jt("breakpoint"),g=Jt("container"),v=Jt("spacing"),b=Jt("radius"),h=Jt("shadow"),k=Jt("inset-shadow"),y=Jt("text-shadow"),I=Jt("drop-shadow"),x=Jt("blur"),O=Jt("perspective"),j=Jt("aspect"),J=Jt("ease"),re=Jt("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...G(),Oe,Te],M=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto","contain","none"],ne=()=>[Oe,Te,v],$e=()=>[wi,"full","auto",...ne()],je=()=>[In,"none","subgrid",Oe,Te],Se=()=>["auto",{span:["full",In,Oe,Te]},In,Oe,Te],ke=()=>[In,"auto",Oe,Te],ve=()=>["auto","min","max","fr",Oe,Te],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...ne()],C=()=>[wi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ne()],S=()=>[i,Oe,Te],D=()=>[...G(),Kh,Yh,{position:[Oe,Te]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",U0,E0,{size:[Oe,Te]}],_e=()=>[Ul,ho,ri],ce=()=>["","none","full",b,Oe,Te],we=()=>["",nt,ho,ri],Ee=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[nt,Ul,Kh,Yh],Pe=()=>["","none",x,Oe,Te],Ue=()=>["none",nt,Oe,Te],qe=()=>["none",nt,Oe,Te],We=()=>[nt,Oe,Te],Qe=()=>[wi,"full",...ne()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ln],breakpoint:[ln],color:[z0],container:[ln],"drop-shadow":[ln],ease:["in","out","in-out"],font:[O0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ln],shadow:[ln],spacing:["px",nt],text:[ln],"text-shadow":[ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wi,Te,Oe,j]}],container:["container"],columns:[{columns:[nt,Te,Oe,g]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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:V()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],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:[In,"auto",Oe,Te]}],basis:[{basis:[wi,"full","auto",g,...ne()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[nt,wi,"auto","initial","none",Te]}],grow:[{grow:["",nt,Oe,Te]}],shrink:[{shrink:["",nt,Oe,Te]}],order:[{order:[In,"first","last","none",Oe,Te]}],"grid-cols":[{"grid-cols":je()}],"col-start-end":[{col:Se()}],"col-start":[{"col-start":ke()}],"col-end":[{"col-end":ke()}],"grid-rows":[{"grid-rows":je()}],"row-start-end":[{row:Se()}],"row-start":[{"row-start":ke()}],"row-end":[{"row-end":ke()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:ne()}],"gap-x":[{"gap-x":ne()}],"gap-y":[{"gap-y":ne()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:ne()}],px:[{px:ne()}],py:[{py:ne()}],ps:[{ps:ne()}],pe:[{pe:ne()}],pt:[{pt:ne()}],pr:[{pr:ne()}],pb:[{pb:ne()}],pl:[{pl:ne()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":ne()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ne()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[g,"screen",...C()]}],"min-w":[{"min-w":[g,"screen","none",...C()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",u,ho,ri]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,Oe,Al]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ul,Te]}],"font-family":[{font:[C0,Te,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,Oe,Te]}],"line-clamp":[{"line-clamp":[nt,"none",Oe,Al]}],leading:[{leading:[m,...ne()]}],"list-image":[{"list-image":["none",Oe,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Oe,Te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[nt,"from-font","auto",Oe,ri]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[nt,"auto",Oe,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ne()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe,Te]}],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",Oe,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},In,Oe,Te],radial:["",Oe,Te],conic:[In,Oe,Te]},A0,P0]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:_e()}],"gradient-via-pos":[{via:_e()}],"gradient-to-pos":[{to:_e()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:we()}],"border-w-x":[{"border-x":we()}],"border-w-y":[{"border-y":we()}],"border-w-s":[{"border-s":we()}],"border-w-e":[{"border-e":we()}],"border-w-t":[{"border-t":we()}],"border-w-r":[{"border-r":we()}],"border-w-b":[{"border-b":we()}],"border-w-l":[{"border-l":we()}],"divide-x":[{"divide-x":we()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":we()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[nt,Oe,Te]}],"outline-w":[{outline:["",nt,ho,ri]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",h,Da,Aa]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",k,Da,Aa]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[nt,ri]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",y,Da,Aa]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[nt,Oe,Te]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"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":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[Oe,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"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":G()}],"mask-image-conic-pos":[{"mask-conic":[nt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Oe,Te]}],filter:[{filter:["","none",Oe,Te]}],blur:[{blur:Pe()}],brightness:[{brightness:[nt,Oe,Te]}],contrast:[{contrast:[nt,Oe,Te]}],"drop-shadow":[{"drop-shadow":["","none",I,Da,Aa]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",nt,Oe,Te]}],"hue-rotate":[{"hue-rotate":[nt,Oe,Te]}],invert:[{invert:["",nt,Oe,Te]}],saturate:[{saturate:[nt,Oe,Te]}],sepia:[{sepia:["",nt,Oe,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Oe,Te]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[nt,Oe,Te]}],"backdrop-contrast":[{"backdrop-contrast":[nt,Oe,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",nt,Oe,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[nt,Oe,Te]}],"backdrop-invert":[{"backdrop-invert":["",nt,Oe,Te]}],"backdrop-opacity":[{"backdrop-opacity":[nt,Oe,Te]}],"backdrop-saturate":[{"backdrop-saturate":[nt,Oe,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",nt,Oe,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ne()}],"border-spacing-x":[{"border-spacing-x":ne()}],"border-spacing-y":[{"border-spacing-y":ne()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Oe,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[nt,"initial",Oe,Te]}],ease:[{ease:["linear","initial",J,Oe,Te]}],delay:[{delay:[nt,Oe,Te]}],animate:[{animate:["none",re,Oe,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,Oe,Te]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:Ue()}],"rotate-x":[{"rotate-x":Ue()}],"rotate-y":[{"rotate-y":Ue()}],"rotate-z":[{"rotate-z":Ue()}],scale:[{scale:qe()}],"scale-x":[{"scale-x":qe()}],"scale-y":[{"scale-y":qe()}],"scale-z":[{"scale-z":qe()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}],"skew-y":[{"skew-y":We()}],transform:[{transform:[Oe,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qe()}],"translate-x":[{"translate-x":Qe()}],"translate-y":[{"translate-y":Qe()}],"translate-z":[{"translate-z":Qe()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"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",Oe,Te]}],"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":ne()}],"scroll-mx":[{"scroll-mx":ne()}],"scroll-my":[{"scroll-my":ne()}],"scroll-ms":[{"scroll-ms":ne()}],"scroll-me":[{"scroll-me":ne()}],"scroll-mt":[{"scroll-mt":ne()}],"scroll-mr":[{"scroll-mr":ne()}],"scroll-mb":[{"scroll-mb":ne()}],"scroll-ml":[{"scroll-ml":ne()}],"scroll-p":[{"scroll-p":ne()}],"scroll-px":[{"scroll-px":ne()}],"scroll-py":[{"scroll-py":ne()}],"scroll-ps":[{"scroll-ps":ne()}],"scroll-pe":[{"scroll-pe":ne()}],"scroll-pt":[{"scroll-pt":ne()}],"scroll-pr":[{"scroll-pr":ne()}],"scroll-pb":[{"scroll-pb":ne()}],"scroll-pl":[{"scroll-pl":ne()}],"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",Oe,Te]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[nt,ho,ri,Al]}],stroke:[{stroke:["none",...S()]}],"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"]}},M0=(i,{cacheSize:n,prefix:u,experimentalParseClassName:l,extend:d={},override:m={}})=>(bo(i,"cacheSize",n),bo(i,"prefix",u),bo(i,"experimentalParseClassName",l),La(i.theme,m.theme),La(i.classGroups,m.classGroups),La(i.conflictingClassGroups,m.conflictingClassGroups),La(i.conflictingClassGroupModifiers,m.conflictingClassGroupModifiers),bo(i,"orderSensitiveModifiers",m.orderSensitiveModifiers),Ma(i.theme,d.theme),Ma(i.classGroups,d.classGroups),Ma(i.conflictingClassGroups,d.conflictingClassGroups),Ma(i.conflictingClassGroupModifiers,d.conflictingClassGroupModifiers),nb(i,d,"orderSensitiveModifiers"),i),bo=(i,n,u)=>{u!==void 0&&(i[n]=u)},La=(i,n)=>{if(n)for(const u in n)bo(i,u,n[u])},Ma=(i,n)=>{if(n)for(const u in n)nb(i,n,u)},nb=(i,n,u)=>{const l=n[u];l!==void 0&&(i[u]=i[u]?i[u].concat(l):l)},Z0=(i,...n)=>typeof i=="function"?Cl(Dl,i,...n):Cl(()=>M0(Dl(),i),...n),ib=Cl(Dl);function wr(...i){return ib(mo(i))}var R0=/\s+/g,Ll=i=>typeof i!="string"||!i?i:i.replace(R0," ").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},ob=i=>i===!1?"false":i===!0?"true":i===0?"0":i,fr=i=>{if(!i||typeof i!="object")return!0;for(let n in i)return!1;return!0},q0=(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},ab=(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},sb=(i,n)=>{for(let u=0;u<i.length;u++){let l=i[u];Array.isArray(l)?sb(l,n):l&&n.push(l)}},ub=(...i)=>{let n=[];sb(i,n);let u=[];for(let l=0;l<n.length;l++)n[l]&&u.push(n[l]);return u},Ml=(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]=ub(m,d):typeof d=="object"&&typeof m=="object"&&d&&m?u[l]=Ml(d,m):u[l]=m+" "+d}else u[l]=d}for(let l in n)l in i||(u[l]=n[l]);return u},F0={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function W0(){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 cn=W0(),V0=i=>{let n=(u,l)=>{let{extend:d=null,slots:m={},variants:p={},compoundVariants:g=[],compoundSlots:v=[],defaultVariants:b={}}=u,h={...F0,...l},k=d?.base?Za(d.base,u?.base):u?.base,y=d?.variants&&!fr(d.variants)?Ml(p,d.variants):p,I=d?.defaultVariants&&!fr(d.defaultVariants)?{...d.defaultVariants,...b}:b;!fr(h.twMergeConfig)&&!q0(h.twMergeConfig,cn.cachedTwMergeConfig)&&(cn.didTwMergeConfigChange=!0,cn.cachedTwMergeConfig=h.twMergeConfig);let x=fr(d?.slots),O=fr(m)?{}:{base:Za(u?.base,x&&d?.base),...m},j=x?O:ab({...d?.slots},fr(O)?{base:u?.base}:O),J=fr(d?.compoundVariants)?g:ub(d?.compoundVariants,g),re=G=>{if(fr(y)&&fr(m)&&x)return i(k,G?.class,G?.className)(h);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 V=(B,P,Z=[],C)=>{let S=Z;if(typeof P=="string"){let D=Ll(P).split(" ");for(let F=0;F<D.length;F++)S.push(`${B}:${D[F]}`)}else if(Array.isArray(P))for(let D=0;D<P.length;D++)S.push(`${B}:${P[D]}`);else if(typeof P=="object"&&typeof C=="string"&&C in P){let D=P[C];if(D&&typeof D=="string"){let F=Ll(D).split(" "),ue=[];for(let _e=0;_e<F.length;_e++)ue.push(`${B}:${F[_e]}`);S[C]=S[C]?S[C].concat(ue):ue}else if(Array.isArray(D)&&D.length>0){let F=[];for(let ue=0;ue<D.length;ue++)F.push(`${B}:${D[ue]}`);S[C]=F}}return S},M=(B,P=y,Z=null,C=null)=>{let S=P[B];if(!S||fr(S))return null;let D=C?.[B]??G?.[B];if(D===null)return null;let F=ob(D),ue=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||h.responsiveVariants===!0,_e=I?.[B],ce=[];if(typeof F=="object"&&ue)for(let[se,ie]of Object.entries(F)){let Pe=S[ie];if(se==="initial"){_e=ie;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(se)||(ce=V(se,Pe,ce,Z))}let we=F!=null&&typeof F!="object"?F:ob(_e),Ee=S[we||"false"];return typeof ce=="object"&&typeof Z=="string"&&ce[Z]?ab(ce,Ee):ce.length>0?(ce.push(Ee),Z==="base"?ce.join(" "):ce):Ee},te=()=>{if(!y)return null;let B=Object.keys(y),P=[];for(let Z=0;Z<B.length;Z++){let C=M(B[Z],y);C&&P.push(C)}return P},ne=(B,P)=>{if(!y||typeof y!="object")return null;let Z=[];for(let C in y){let S=M(C,y,B,P),D=B==="base"&&typeof S=="string"?S:S&&S[B];D&&Z.push(D)}return Z},$e={};for(let B in G){let P=G[B];P!==void 0&&($e[B]=P)}let je=(B,P)=>{let Z=typeof G?.[B]=="object"?{[B]:G[B]?.initial}:{};return{...I,...$e,...Z,...P}},Se=(B=[],P)=>{let Z=[],C=B.length;for(let S=0;S<C;S++){let{class:D,className:F,...ue}=B[S],_e=!0,ce=je(null,P);for(let we in ue){let Ee=ue[we],se=ce[we];if(Array.isArray(Ee)){if(!Ee.includes(se)){_e=!1;break}}else{if((Ee==null||Ee===!1)&&(se==null||se===!1))continue;if(se!==Ee){_e=!1;break}}}_e&&(D&&Z.push(D),F&&Z.push(F))}return Z},ke=B=>{let P=Se(J,B);if(!Array.isArray(P))return P;let Z={},C=i;for(let S=0;S<P.length;S++){let D=P[S];if(typeof D=="string")Z.base=C(Z.base,D)(h);else if(typeof D=="object")for(let F in D)Z[F]=C(Z[F],D[F])(h)}return Z},ve=B=>{if(v.length<1)return null;let P={},Z=je(null,B);for(let C=0;C<v.length;C++){let{slots:S=[],class:D,className:F,...ue}=v[C];if(!fr(ue)){let _e=!0;for(let ce in ue){let we=Z[ce],Ee=ue[ce];if(we===void 0||(Array.isArray(Ee)?!Ee.includes(we):Ee!==we)){_e=!1;break}}if(!_e)continue}for(let _e=0;_e<S.length;_e++){let ce=S[_e];P[ce]||(P[ce]=[]),P[ce].push([D,F])}}return P};if(!fr(m)||!x){let B={};if(typeof j=="object"&&!fr(j)){let P=i;for(let Z in j)B[Z]=C=>{let S=ke(C),D=ve(C);return P(j[Z],ne(Z,C),S?S[Z]:void 0,D?D[Z]:void 0,C?.class,C?.className)(h)}}return B}return i(k,te(),Se(J),G?.class,G?.className)(h)},W=()=>{if(!(!y||typeof y!="object"))return Object.keys(y)};return re.variantKeys=W(),re.extend=d,re.base=k,re.slots=j,re.variants=y,re.defaultVariants=I,re.compoundSlots=v,re.compoundVariants=J,re};return{tv:n,createTV:u=>(l,d)=>n(l,d?Ml(u,d):u)}},Q0=i=>fr(i)?ib:Z0({...i,extend:{theme:i.theme,classGroups:i.classGroups,conflictingClassGroupModifiers:i.conflictingClassGroupModifiers,conflictingClassGroups:i.conflictingClassGroups,...i.extend}}),G0=(...i)=>n=>{let u=Za(i);return!u||!n.twMerge?u:((!cn.cachedTwMerge||cn.didTwMergeConfigChange)&&(cn.didTwMergeConfigChange=!1,cn.cachedTwMerge=Q0(cn.cachedTwMergeConfig)),cn.cachedTwMerge(u)||void 0)},{tv:J0}=V0(G0);const lb=J0({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 B0=ee("<a><!></a>"),Y0=ee("<button><!></button>");function qt(i,n){Ye(n,!0);let u=_(n,"variant",3,"default"),l=_(n,"size",3,"default"),d=_(n,"ref",15,null),m=_(n,"href",3,void 0),p=_(n,"type",3,"button"),g=Dt(n,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children","onclick"]);var v=Ze(),b=ze(v);{var h=y=>{var I=B0();Wt(I,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}),[()=>wr(lb({variant:u(),size:l()}),n.class)]);var x=R(I);Rt(x,()=>n.children??gt),L(I),Or(I,O=>d(O),()=>d()),T(y,I)},k=y=>{var I=Y0();Wt(I,O=>({"data-slot":"button",class:O,type:p(),disabled:n.disabled,onclick:n.onclick,...g}),[()=>wr(lb({variant:u(),size:l()}),n.class)]);var x=R(I);Rt(x,()=>n.children??gt),L(I),Or(I,O=>d(O),()=>d()),T(y,I)};oe(b,y=>{m()?y(h):y(k,!1)})}T(i,v),Ke()}var K0=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),H0=ee('<span class="text-destructive ml-1">*</span>'),X0=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),eS=ee('<span class="text-[10px] xs:text-xs text-muted-foreground font-medium"> </span>'),tS=ee('<span class="text-[10px] xs:text-xs text-muted-foreground font-medium text-right"> </span>'),rS=ee('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),nS=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>'),iS=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 oS(i,n){Ye(n,!1);const u=X(),l=X();let d=_(n,"question",8),m=_(n,"value",24,()=>-1),p=_(n,"onChange",8),g=_(n,"error",8,void 0),v=_(n,"currentMode",8,void 0),b=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let h=X(m()??-1);function k(ve){c(h)===ve?($(h,-1),p()(-1),jl(d().id)):($(h,ve),p()(ve),lr(d().id,ve,s.QuestionTypes.NPS))}de(()=>z(v()),()=>{$(u,v()==="dark")}),de(()=>z(m()),()=>{m()!==void 0&&$(h,m())}),de(()=>z(d()),()=>{$(l,Array.from({length:(d().max??10)-(d().min??0)+1},(ve,B)=>B+(d().min??0)))}),sr(),Ht();var y=iS(),I=R(y),x=R(I);{var O=ve=>{var B=K0(),P=R(B);L(B),xe(()=>Ne(P,`${b()??""}.`)),T(ve,B)};oe(x,ve=>{b()!==void 0&&ve(O)})}var j=fe(x,2),J=R(j),re=R(J),W=fe(re);{var G=ve=>{var B=H0();T(ve,B)};oe(W,ve=>{z(d()),U(()=>d().required)&&ve(G)})}L(J);var V=fe(J,2);{var M=ve=>{var B=X0(),P=R(B,!0);L(B),xe(()=>Ne(P,(z(d()),U(()=>d().description)))),T(ve,B)};oe(V,ve=>{z(d()),U(()=>d().description)&&ve(M)})}L(j),L(I);var te=fe(I,2),ne=R(te);dr(ne,5,()=>c(l),_r,(ve,B)=>{{let P=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(B)?"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":"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(ve,{type:"button",variant:"outline",size:"sm",get class(){return c(P)},onclick:()=>k(c(B)),children:(Z,C)=>{yr();var S=kn();xe(()=>Ne(S,c(B))),T(Z,S)},$$slots:{default:!0}})}}),L(ne);var $e=fe(ne,2);{var je=ve=>{var B=rS(),P=R(B);{var Z=D=>{var F=eS(),ue=R(F,!0);L(F),xe(()=>Ne(ue,(z(d()),U(()=>d().minLabel)))),T(D,F)};oe(P,D=>{z(d()),U(()=>d().minLabel)&&D(Z)})}var C=fe(P,2);{var S=D=>{var F=tS(),ue=R(F,!0);L(F),xe(()=>Ne(ue,(z(d()),U(()=>d().maxLabel)))),T(D,F)};oe(C,D=>{z(d()),U(()=>d().maxLabel)&&D(S)})}L(B),T(ve,B)};oe($e,ve=>{z(d()),U(()=>d().minLabel||d().maxLabel)&&ve(je)})}L(te);var Se=fe(te,2);{var ke=ve=>{var B=nS(),P=R(B),Z=R(P,!0);L(P),L(B),xe(()=>Ne(Z,g())),T(ve,B)};oe(Se,ve=>{g()&&ve(ke)})}L(y),xe(()=>Ne(re,`${z(d()),U(()=>d().title)??""} `)),T(i,y),Ke()}var aS=ee("<nav><!></nav>");function sS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Dt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=aS();Wt(d,()=>({"data-slot":"breadcrumb",class:n.class,"aria-label":"breadcrumb",...l}));var m=R(d);Rt(m,()=>n.children??gt),L(d),Or(d,p=>u(p),()=>u()),T(i,d),Ke()}/**
|
|
44
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const pe of this.seen.entries()){const ce=pe[1];if(r===pe[0]){f(pe);continue}if(s.external){const he=s.external.registry.get(pe[0])?.id;if(r!==pe[0]&&he){f(pe);continue}}if(this.metadataRegistry.get(pe[0])?.id){f(pe);continue}if(ce.cycle){f(pe);continue}if(ce.count>1&&s.reused==="ref"){f(pe);continue}}const w=(pe,ce)=>{const Re=this.seen.get(pe),he=Re.def??Re.schema,K={...he};if(Re.ref===null)return;const ze=Re.ref;if(Re.ref=null,ze){w(ze,ce);const De=this.seen.get(ze).schema;De.$ref&&(ce.target==="draft-7"||ce.target==="draft-4"||ce.target==="openapi-3.0")?(he.allOf=he.allOf??[],he.allOf.push(De)):(Object.assign(he,De),Object.assign(he,K))}Re.isParent||this.override({zodSchema:pe,jsonSchema:he,path:Re.path??[]})};for(const pe of[...this.seen.entries()].reverse())w(pe[0],{target:this.target});const Z={};if(this.target==="draft-2020-12"?Z.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?Z.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?Z.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),s.external?.uri){const pe=s.external.registry.get(r)?.id;if(!pe)throw new Error("Schema is missing an `id` property");Z.$id=s.external.uri(pe)}Object.assign(Z,t.def);const H=s.external?.defs??{};for(const pe of this.seen.entries()){const ce=pe[1];ce.def&&ce.defId&&(H[ce.defId]=ce.def)}s.external||Object.keys(H).length>0&&(this.target==="draft-2020-12"?Z.$defs=H:Z.definitions=H);try{return JSON.parse(JSON.stringify(Z))}catch{throw new Error("Error converting schema to JSON.")}}}function Hm(e,r){if(e instanceof _s){const s=new tu(r),t={};for(const w of e._idmap.entries()){const[Z,H]=w;s.process(H)}const a={},f={registry:e,uri:r?.uri,defs:t};for(const w of e._idmap.entries()){const[Z,H]=w;a[Z]=s.emit(H,{...r,external:f})}if(Object.keys(t).length>0){const w=s.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[w]:t}}return{schemas:a}}const o=new tu(r);return o.process(e),o.emit(e,r)}function Qt(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 Qt(t.element,o);case"object":{for(const a in t.shape)if(Qt(t.shape[a],o))return!0;return!1}case"union":{for(const a of t.options)if(Qt(a,o))return!0;return!1}case"intersection":return Qt(t.left,o)||Qt(t.right,o);case"tuple":{for(const a of t.items)if(Qt(a,o))return!0;return!!(t.rest&&Qt(t.rest,o))}case"record":return Qt(t.keyType,o)||Qt(t.valueType,o);case"map":return Qt(t.keyType,o)||Qt(t.valueType,o);case"set":return Qt(t.valueType,o);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Qt(t.innerType,o);case"lazy":return Qt(t.getter(),o);case"default":return Qt(t.innerType,o);case"prefault":return Qt(t.innerType,o);case"custom":return!1;case"transform":return!0;case"pipe":return Qt(t.in,o)||Qt(t.out,o);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${t.type}`)}const N_=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:df,$ZodArray:hf,$ZodAsyncError:jn,$ZodBase64:Hd,$ZodBase64URL:ef,$ZodBigInt:vs,$ZodBigIntFormat:sf,$ZodBoolean:gs,$ZodCIDRv4:Yd,$ZodCIDRv6:Kd,$ZodCUID:Ld,$ZodCUID2:Zd,$ZodCatch:Wf,$ZodCheck:Ct,$ZodCheckBigIntFormat:pd,$ZodCheckEndsWith:Id,$ZodCheckGreaterThan:fs,$ZodCheckIncludes:xd,$ZodCheckLengthEquals:$d,$ZodCheckLessThan:ds,$ZodCheckLowerCase:wd,$ZodCheckMaxLength:bd,$ZodCheckMaxSize:gd,$ZodCheckMimeType:jd,$ZodCheckMinLength:yd,$ZodCheckMinSize:vd,$ZodCheckMultipleOf:fd,$ZodCheckNumberFormat:md,$ZodCheckOverwrite:Td,$ZodCheckProperty:Nd,$ZodCheckRegex:_d,$ZodCheckSizeEquals:hd,$ZodCheckStartsWith:Sd,$ZodCheckStringFormat:Ri,$ZodCheckUpperCase:kd,$ZodCodec:$s,$ZodCustom:Xf,$ZodCustomStringFormat:of,$ZodDate:gf,$ZodDefault:Af,$ZodDiscriminatedUnion:kf,$ZodE164:tf,$ZodEmail:Ud,$ZodEmoji:Md,$ZodEncodeError:Io,$ZodEnum:Of,$ZodError:Ba,$ZodFile:Pf,$ZodFunction:Yf,$ZodGUID:Pd,$ZodIPv4:Jd,$ZodIPv6:Bd,$ZodISODate:Qd,$ZodISODateTime:Wd,$ZodISODuration:Vd,$ZodISOTime:Gd,$ZodIntersection:xf,$ZodJWT:nf,$ZodKSUID:Fd,$ZodLazy:Hf,$ZodLiteral:Ef,$ZodMap:zf,$ZodNaN:Qf,$ZodNanoID:Ad,$ZodNever:mf,$ZodNonOptional:Rf,$ZodNull:cf,$ZodNullable:Mf,$ZodNumber:ps,$ZodNumberFormat:af,$ZodObject:$f,$ZodObjectJIT:_f,$ZodOptional:Df,$ZodPipe:Gf,$ZodPrefault:Zf,$ZodPromise:Kf,$ZodReadonly:Vf,$ZodRealError:gr,$ZodRecord:If,$ZodRegistry:_s,$ZodSet:jf,$ZodString:qi,$ZodStringFormat:It,$ZodSuccess:Ff,$ZodSymbol:uf,$ZodTemplateLiteral:Bf,$ZodTransform:Cf,$ZodTuple:ys,$ZodType:Ve,$ZodULID:Rd,$ZodURL:Dd,$ZodUUID:Cd,$ZodUndefined:lf,$ZodUnion:hs,$ZodUnknown:ff,$ZodVoid:pf,$ZodXID:qd,$brand:uc,$constructor:U,$input:lm,$output:um,Doc:Od,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:tu,NEVER:sc,TimePrecision:fm,_any:Pm,_array:Qm,_base64:Ls,_base64url:Zs,_bigint:Im,_boolean:xm,_catch:w_,_check:Ym,_cidrv4:Ms,_cidrv6:As,_coercedBigint:zm,_coercedBoolean:Sm,_coercedDate:Am,_coercedNumber:bm,_coercedString:dm,_cuid:Ts,_cuid2:Os,_custom:Vm,_date:Mm,_decode:ts,_decodeAsync:ns,_default:y_,_discriminatedUnion:s_,_e164:Rs,_email:ks,_emoji:Ns,_encode:es,_encodeAsync:rs,_endsWith:Bs,_enum:m_,_file:Gm,_float32:$m,_float64:_m,_gt:Un,_gte:vr,_guid:Zo,_includes:Vs,_int:ym,_int32:wm,_int64:Nm,_intersection:u_,_ipv4:Us,_ipv6:Ds,_isoDate:pm,_isoDateTime:mm,_isoDuration:vm,_isoTime:gm,_jwt:qs,_ksuid:Cs,_lazy:I_,_length:Wo,_literal:g_,_lowercase:Qs,_lt:Cn,_lte:Ur,_map:d_,_max:Ur,_maxLength:Fo,_maxSize:qo,_mime:Ys,_min:vr,_minLength:ui,_minSize:Gi,_multipleOf:Qi,_nan:Lm,_nanoid:js,_nativeEnum:p_,_negative:Rm,_never:Um,_nonnegative:Fm,_nonoptional:$_,_nonpositive:qm,_normalize:Ks,_null:Em,_nullable:b_,_number:hm,_optional:h_,_overwrite:Dn,_parse:Ui,_parseAsync:Di,_pipe:k_,_positive:Zm,_promise:z_,_property:Wm,_readonly:x_,_record:c_,_refine:Jm,_regex:Ws,_safeDecode:os,_safeDecodeAsync:ss,_safeEncode:is,_safeEncodeAsync:as,_safeParse:Mi,_safeParseAsync:Ai,_set:f_,_size:Fs,_startsWith:Js,_string:cm,_stringFormat:Vi,_stringbool:Km,_success:__,_superRefine:Bm,_symbol:Tm,_templateLiteral:S_,_toLowerCase:Xs,_toUpperCase:eu,_transform:v_,_trim:Hs,_tuple:l_,_uint32:km,_uint64:jm,_ulid:Es,_undefined:Om,_union:a_,_unknown:Cm,_uppercase:Gs,_url:Ro,_uuid:xs,_uuidv4:Ss,_uuidv6:Is,_uuidv7:zs,_void:Dm,_xid:Ps,clone:xr,config:ir,decode:oy,decodeAsync:sy,encode:iy,encodeAsync:ay,flattenError:Ya,formatError:Ka,globalConfig:zo,globalRegistry:Pn,isValidBase64:ms,isValidBase64URL:Xd,isValidJWT:rf,locales:sm,parse:Ha,parseAsync:Xa,prettifyError:jc,regexes:cs,registry:ws,safeDecode:ly,safeDecodeAsync:dy,safeEncode:uy,safeEncodeAsync:cy,safeParse:Tc,safeParseAsync:Oc,toDotPath:Nc,toJSONSchema:Hm,treeifyError:zc,util:Sc,version:Ed},Symbol.toStringTag,{value:"Module"})),ru=U("ZodISODateTime",(e,r)=>{Wd.init(e,r),Nt.init(e,r)});function Xm(e){return mm(ru,e)}const nu=U("ZodISODate",(e,r)=>{Qd.init(e,r),Nt.init(e,r)});function ep(e){return pm(nu,e)}const iu=U("ZodISOTime",(e,r)=>{Gd.init(e,r),Nt.init(e,r)});function tp(e){return gm(iu,e)}const ou=U("ZodISODuration",(e,r)=>{Vd.init(e,r),Nt.init(e,r)});function rp(e){return vm(ou,e)}const j_=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:nu,ZodISODateTime:ru,ZodISODuration:ou,ZodISOTime:iu,date:ep,datetime:Xm,duration:rp,time:tp},Symbol.toStringTag,{value:"Module"})),np=(e,r)=>{Ba.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>Ka(e,o)},flatten:{value:o=>Ya(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,No,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,No,2)}},isEmpty:{get(){return e.issues.length===0}}})},T_=U("ZodError",np),hr=U("ZodError",np,{Parent:Error}),ip=Ui(hr),op=Di(hr),ap=Mi(hr),sp=Ai(hr),up=es(hr),lp=ts(hr),cp=rs(hr),dp=ns(hr),fp=is(hr),mp=os(hr),pp=as(hr),gp=ss(hr),et=U("ZodType",(e,r)=>(Ve.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)=>xr(e,o,s),e.brand=()=>e,e.register=((o,s)=>(o.add(e,s),e)),e.parse=(o,s)=>ip(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>ap(e,o,s),e.parseAsync=async(o,s)=>op(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>sp(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>up(e,o,s),e.decode=(o,s)=>lp(e,o,s),e.encodeAsync=async(o,s)=>cp(e,o,s),e.decodeAsync=async(o,s)=>dp(e,o,s),e.safeEncode=(o,s)=>fp(e,o,s),e.safeDecode=(o,s)=>mp(e,o,s),e.safeEncodeAsync=async(o,s)=>pp(e,o,s),e.safeDecodeAsync=async(o,s)=>gp(e,o,s),e.refine=(o,s)=>e.check(Hp(o,s)),e.superRefine=o=>e.check(Xp(o)),e.overwrite=o=>e.check(Dn(o)),e.optional=()=>Xo(e),e.nullable=()=>ea(e),e.nullish=()=>Xo(ea(e)),e.nonoptional=o=>Rp(e,o),e.array=()=>ht(e),e.or=o=>Hr([e,o]),e.and=o=>Np(e,o),e.transform=o=>ta(e,Tu(o)),e.default=o=>Ap(e,o),e.prefault=o=>Zp(e,o),e.catch=o=>Wp(e,o),e.pipe=o=>ta(e,o),e.readonly=()=>Vp(e),e.describe=o=>{const s=e.clone();return Pn.add(s,{description:o}),s},Object.defineProperty(e,"description",{get(){return Pn.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Pn.get(e);const s=e.clone();return Pn.add(s,o[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),au=U("_ZodString",(e,r)=>{qi.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(Ws(...s)),e.includes=(...s)=>e.check(Vs(...s)),e.startsWith=(...s)=>e.check(Js(...s)),e.endsWith=(...s)=>e.check(Bs(...s)),e.min=(...s)=>e.check(ui(...s)),e.max=(...s)=>e.check(Fo(...s)),e.length=(...s)=>e.check(Wo(...s)),e.nonempty=(...s)=>e.check(ui(1,...s)),e.lowercase=s=>e.check(Qs(s)),e.uppercase=s=>e.check(Gs(s)),e.trim=()=>e.check(Hs()),e.normalize=(...s)=>e.check(Ks(...s)),e.toLowerCase=()=>e.check(Xs()),e.toUpperCase=()=>e.check(eu())}),Qo=U("ZodString",(e,r)=>{qi.init(e,r),au.init(e,r),e.email=o=>e.check(ks(su,o)),e.url=o=>e.check(Ro(Vo,o)),e.jwt=o=>e.check(qs(wu,o)),e.emoji=o=>e.check(Ns(uu,o)),e.guid=o=>e.check(Zo(Go,o)),e.uuid=o=>e.check(xs(Kr,o)),e.uuidv4=o=>e.check(Ss(Kr,o)),e.uuidv6=o=>e.check(Is(Kr,o)),e.uuidv7=o=>e.check(zs(Kr,o)),e.nanoid=o=>e.check(js(lu,o)),e.guid=o=>e.check(Zo(Go,o)),e.cuid=o=>e.check(Ts(cu,o)),e.cuid2=o=>e.check(Os(du,o)),e.ulid=o=>e.check(Es(fu,o)),e.base64=o=>e.check(Ls(yu,o)),e.base64url=o=>e.check(Zs($u,o)),e.xid=o=>e.check(Ps(mu,o)),e.ksuid=o=>e.check(Cs(pu,o)),e.ipv4=o=>e.check(Us(gu,o)),e.ipv6=o=>e.check(Ds(vu,o)),e.cidrv4=o=>e.check(Ms(hu,o)),e.cidrv6=o=>e.check(As(bu,o)),e.e164=o=>e.check(Rs(_u,o)),e.datetime=o=>e.check(Xm(o)),e.date=o=>e.check(ep(o)),e.time=o=>e.check(tp(o)),e.duration=o=>e.check(rp(o))});function E(e){return cm(Qo,e)}const Nt=U("ZodStringFormat",(e,r)=>{It.init(e,r),au.init(e,r)}),su=U("ZodEmail",(e,r)=>{Ud.init(e,r),Nt.init(e,r)});function O_(e){return ks(su,e)}const Go=U("ZodGUID",(e,r)=>{Pd.init(e,r),Nt.init(e,r)});function E_(e){return Zo(Go,e)}const Kr=U("ZodUUID",(e,r)=>{Cd.init(e,r),Nt.init(e,r)});function vp(e){return xs(Kr,e)}function P_(e){return Ss(Kr,e)}function C_(e){return Is(Kr,e)}function U_(e){return zs(Kr,e)}const Vo=U("ZodURL",(e,r)=>{Dd.init(e,r),Nt.init(e,r)});function D_(e){return Ro(Vo,e)}function M_(e){return Ro(Vo,{protocol:/^https?$/,hostname:Jc,...se(e)})}const uu=U("ZodEmoji",(e,r)=>{Md.init(e,r),Nt.init(e,r)});function A_(e){return Ns(uu,e)}const lu=U("ZodNanoID",(e,r)=>{Ad.init(e,r),Nt.init(e,r)});function L_(e){return js(lu,e)}const cu=U("ZodCUID",(e,r)=>{Ld.init(e,r),Nt.init(e,r)});function Z_(e){return Ts(cu,e)}const du=U("ZodCUID2",(e,r)=>{Zd.init(e,r),Nt.init(e,r)});function R_(e){return Os(du,e)}const fu=U("ZodULID",(e,r)=>{Rd.init(e,r),Nt.init(e,r)});function q_(e){return Es(fu,e)}const mu=U("ZodXID",(e,r)=>{qd.init(e,r),Nt.init(e,r)});function F_(e){return Ps(mu,e)}const pu=U("ZodKSUID",(e,r)=>{Fd.init(e,r),Nt.init(e,r)});function W_(e){return Cs(pu,e)}const gu=U("ZodIPv4",(e,r)=>{Jd.init(e,r),Nt.init(e,r)});function Q_(e){return Us(gu,e)}const vu=U("ZodIPv6",(e,r)=>{Bd.init(e,r),Nt.init(e,r)});function G_(e){return Ds(vu,e)}const hu=U("ZodCIDRv4",(e,r)=>{Yd.init(e,r),Nt.init(e,r)});function V_(e){return Ms(hu,e)}const bu=U("ZodCIDRv6",(e,r)=>{Kd.init(e,r),Nt.init(e,r)});function J_(e){return As(bu,e)}const yu=U("ZodBase64",(e,r)=>{Hd.init(e,r),Nt.init(e,r)});function B_(e){return Ls(yu,e)}const $u=U("ZodBase64URL",(e,r)=>{ef.init(e,r),Nt.init(e,r)});function Y_(e){return Zs($u,e)}const _u=U("ZodE164",(e,r)=>{tf.init(e,r),Nt.init(e,r)});function K_(e){return Rs(_u,e)}const wu=U("ZodJWT",(e,r)=>{nf.init(e,r),Nt.init(e,r)});function H_(e){return qs(wu,e)}const Ji=U("ZodCustomStringFormat",(e,r)=>{of.init(e,r),Nt.init(e,r)});function X_(e,r,o={}){return Vi(Ji,e,r,o)}function ew(e){return Vi(Ji,"hostname",ls,e)}function tw(e){return Vi(Ji,"hex",cd,e)}function rw(e,r){const o=r?.enc??"hex",s=`${e}_${o}`,t=cs[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return Vi(Ji,s,t,r)}const Jo=U("ZodNumber",(e,r)=>{ps.init(e,r),et.init(e,r),e.gt=(s,t)=>e.check(Un(s,t)),e.gte=(s,t)=>e.check(vr(s,t)),e.min=(s,t)=>e.check(vr(s,t)),e.lt=(s,t)=>e.check(Cn(s,t)),e.lte=(s,t)=>e.check(Ur(s,t)),e.max=(s,t)=>e.check(Ur(s,t)),e.int=s=>e.check(ku(s)),e.safe=s=>e.check(ku(s)),e.positive=s=>e.check(Un(0,s)),e.nonnegative=s=>e.check(vr(0,s)),e.negative=s=>e.check(Cn(0,s)),e.nonpositive=s=>e.check(Ur(0,s)),e.multipleOf=(s,t)=>e.check(Qi(s,t)),e.step=(s,t)=>e.check(Qi(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 hm(Jo,e)}const li=U("ZodNumberFormat",(e,r)=>{af.init(e,r),Jo.init(e,r)});function ku(e){return ym(li,e)}function nw(e){return $m(li,e)}function iw(e){return _m(li,e)}function ow(e){return wm(li,e)}function aw(e){return km(li,e)}const Bo=U("ZodBoolean",(e,r)=>{gs.init(e,r),et.init(e,r)});function rt(e){return xm(Bo,e)}const Yo=U("ZodBigInt",(e,r)=>{vs.init(e,r),et.init(e,r),e.gte=(s,t)=>e.check(vr(s,t)),e.min=(s,t)=>e.check(vr(s,t)),e.gt=(s,t)=>e.check(Un(s,t)),e.gte=(s,t)=>e.check(vr(s,t)),e.min=(s,t)=>e.check(vr(s,t)),e.lt=(s,t)=>e.check(Cn(s,t)),e.lte=(s,t)=>e.check(Ur(s,t)),e.max=(s,t)=>e.check(Ur(s,t)),e.positive=s=>e.check(Un(BigInt(0),s)),e.negative=s=>e.check(Cn(BigInt(0),s)),e.nonpositive=s=>e.check(Ur(BigInt(0),s)),e.nonnegative=s=>e.check(vr(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(Qi(s,t));const o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function sw(e){return Im(Yo,e)}const xu=U("ZodBigIntFormat",(e,r)=>{sf.init(e,r),Yo.init(e,r)});function uw(e){return Nm(xu,e)}function lw(e){return jm(xu,e)}const hp=U("ZodSymbol",(e,r)=>{uf.init(e,r),et.init(e,r)});function cw(e){return Tm(hp,e)}const bp=U("ZodUndefined",(e,r)=>{lf.init(e,r),et.init(e,r)});function dw(e){return Om(bp,e)}const yp=U("ZodNull",(e,r)=>{cf.init(e,r),et.init(e,r)});function $p(e){return Em(yp,e)}const _p=U("ZodAny",(e,r)=>{df.init(e,r),et.init(e,r)});function Ko(){return Pm(_p)}const wp=U("ZodUnknown",(e,r)=>{ff.init(e,r),et.init(e,r)});function Mn(){return Cm(wp)}const kp=U("ZodNever",(e,r)=>{mf.init(e,r),et.init(e,r)});function Su(e){return Um(kp,e)}const xp=U("ZodVoid",(e,r)=>{pf.init(e,r),et.init(e,r)});function Iu(e){return Dm(xp,e)}const zu=U("ZodDate",(e,r)=>{gf.init(e,r),et.init(e,r),e.min=(s,t)=>e.check(vr(s,t)),e.max=(s,t)=>e.check(Ur(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 fw(e){return Mm(zu,e)}const Sp=U("ZodArray",(e,r)=>{hf.init(e,r),et.init(e,r),e.element=r.element,e.min=(o,s)=>e.check(ui(o,s)),e.nonempty=o=>e.check(ui(1,o)),e.max=(o,s)=>e.check(Fo(o,s)),e.length=(o,s)=>e.check(Wo(o,s)),e.unwrap=()=>e.element});function ht(e,r){return Qm(Sp,e,r)}function mw(e){const r=e._zod.def.shape;return Ut(Object.keys(r))}const Ho=U("ZodObject",(e,r)=>{_f.init(e,r),et.init(e,r),it(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:Mn()}),e.loose=()=>e.clone({...e._zod.def,catchall:Mn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Su()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>bc(e,o),e.safeExtend=o=>yc(e,o),e.merge=o=>$c(e,o),e.pick=o=>vc(e,o),e.omit=o=>hc(e,o),e.partial=(...o)=>_c(Ou,e,o[0]),e.required=(...o)=>wc(Eu,e,o[0])});function ye(e,r){const o={type:"object",get shape(){return Er(this,"shape",e?To(e):{}),this.shape},...se(r)};return new Ho(o)}function pw(e,r){return new Ho({type:"object",get shape(){return Er(this,"shape",To(e)),this.shape},catchall:Su(),...se(r)})}function gw(e,r){return new Ho({type:"object",get shape(){return Er(this,"shape",To(e)),this.shape},catchall:Mn(),...se(r)})}const Nu=U("ZodUnion",(e,r)=>{hs.init(e,r),et.init(e,r),e.options=r.options});function Hr(e,r){return new Nu({type:"union",options:e,...se(r)})}const Ip=U("ZodDiscriminatedUnion",(e,r)=>{Nu.init(e,r),kf.init(e,r)});function Bi(e,r,o){return new Ip({type:"union",options:r,discriminator:e,...se(o)})}const zp=U("ZodIntersection",(e,r)=>{xf.init(e,r),et.init(e,r)});function Np(e,r){return new zp({type:"intersection",left:e,right:r})}const jp=U("ZodTuple",(e,r)=>{ys.init(e,r),et.init(e,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Tp(e,r,o){const s=r instanceof Ve,t=s?o:r,a=s?r:null;return new jp({type:"tuple",items:e,rest:a,...se(t)})}const ju=U("ZodRecord",(e,r)=>{If.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Gt(e,r,o){return new ju({type:"record",keyType:e,valueType:r,...se(o)})}function vw(e,r,o){const s=xr(e);return s._zod.values=void 0,new ju({type:"record",keyType:s,valueType:r,...se(o)})}const Op=U("ZodMap",(e,r)=>{zf.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function hw(e,r,o){return new Op({type:"map",keyType:e,valueType:r,...se(o)})}const Ep=U("ZodSet",(e,r)=>{jf.init(e,r),et.init(e,r),e.min=(...o)=>e.check(Gi(...o)),e.nonempty=o=>e.check(Gi(1,o)),e.max=(...o)=>e.check(qo(...o)),e.size=(...o)=>e.check(Fs(...o))});function bw(e,r){return new Ep({type:"set",valueType:e,...se(r)})}const Yi=U("ZodEnum",(e,r)=>{Of.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 Yi({...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 Yi({...r,checks:[],...se(t),entries:a})}});function Ut(e,r){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new Yi({type:"enum",entries:o,...se(r)})}function yw(e,r){return new Yi({type:"enum",entries:e,...se(r)})}const Pp=U("ZodLiteral",(e,r)=>{Ef.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 wt(e,r){return new Pp({type:"literal",values:Array.isArray(e)?e:[e],...se(r)})}const Cp=U("ZodFile",(e,r)=>{Pf.init(e,r),et.init(e,r),e.min=(o,s)=>e.check(Gi(o,s)),e.max=(o,s)=>e.check(qo(o,s)),e.mime=(o,s)=>e.check(Ys(Array.isArray(o)?o:[o],s))});function $w(e){return Gm(Cp,e)}const Up=U("ZodTransform",(e,r)=>{Cf.init(e,r),et.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new Io(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(ai(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(ai(f))}};const t=r.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o)):(o.value=t,o)}});function Tu(e){return new Up({type:"transform",transform:e})}const Ou=U("ZodOptional",(e,r)=>{Df.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Xo(e){return new Ou({type:"optional",innerType:e})}const Dp=U("ZodNullable",(e,r)=>{Mf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ea(e){return new Dp({type:"nullable",innerType:e})}function _w(e){return Xo(ea(e))}const Mp=U("ZodDefault",(e,r)=>{Af.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ap(e,r){return new Mp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Oo(r)}})}const Lp=U("ZodPrefault",(e,r)=>{Zf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Zp(e,r){return new Lp({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():Oo(r)}})}const Eu=U("ZodNonOptional",(e,r)=>{Rf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Rp(e,r){return new Eu({type:"nonoptional",innerType:e,...se(r)})}const qp=U("ZodSuccess",(e,r)=>{Ff.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ww(e){return new qp({type:"success",innerType:e})}const Fp=U("ZodCatch",(e,r)=>{Wf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Wp(e,r){return new Fp({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const Qp=U("ZodNaN",(e,r)=>{Qf.init(e,r),et.init(e,r)});function kw(e){return Lm(Qp,e)}const Pu=U("ZodPipe",(e,r)=>{Gf.init(e,r),et.init(e,r),e.in=r.in,e.out=r.out});function ta(e,r){return new Pu({type:"pipe",in:e,out:r})}const Cu=U("ZodCodec",(e,r)=>{Pu.init(e,r),$s.init(e,r)});function xw(e,r,o){return new Cu({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}const Gp=U("ZodReadonly",(e,r)=>{Vf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Vp(e){return new Gp({type:"readonly",innerType:e})}const Jp=U("ZodTemplateLiteral",(e,r)=>{Bf.init(e,r),et.init(e,r)});function Sw(e,r){return new Jp({type:"template_literal",parts:e,...se(r)})}const Bp=U("ZodLazy",(e,r)=>{Hf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.getter()});function Uu(e){return new Bp({type:"lazy",getter:e})}const Yp=U("ZodPromise",(e,r)=>{Kf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Iw(e){return new Yp({type:"promise",innerType:e})}const Kp=U("ZodFunction",(e,r)=>{Yf.init(e,r),et.init(e,r)});function ra(e){return new Kp({type:"function",input:Array.isArray(e?.input)?Tp(e?.input):e?.input??ht(Mn()),output:e?.output??Mn()})}const na=U("ZodCustom",(e,r)=>{Xf.init(e,r),et.init(e,r)});function zw(e){const r=new Ct({check:"custom"});return r._zod.check=e,r}function Nw(e,r){return Vm(na,e??(()=>!0),r)}function Hp(e,r={}){return Jm(na,e,r)}function Xp(e){return Bm(e)}function jw(e,r={error:`Input not instance of ${e.name}`}){const o=new na({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...se(r)});return o._zod.bag.Class=e,o}const Tw=(...e)=>Km({Codec:Cu,Boolean:Bo,String:Qo},...e);function Ow(e){const r=Uu(()=>Hr([E(e),mt(),rt(),$p(),ht(r),Gt(E(),r)]));return r}function Ew(e,r){return ta(Tu(e),r)}const Pw={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 Cw(e){ir({customError:e})}function Uw(){return ir().customError}var Du;Du||(Du={});function Dw(e){return dm(Qo,e)}function Mw(e){return bm(Jo,e)}function Aw(e){return Sm(Bo,e)}function Lw(e){return zm(Yo,e)}function Zw(e){return Am(zu,e)}const Rw=Object.freeze(Object.defineProperty({__proto__:null,bigint:Lw,boolean:Aw,date:Zw,number:Mw,string:Dw},Symbol.toStringTag,{value:"Module"}));ir(rm());const qw=Object.freeze(Object.defineProperty({__proto__:null,$brand:uc,$input:lm,$output:um,NEVER:sc,TimePrecision:fm,ZodAny:_p,ZodArray:Sp,ZodBase64:yu,ZodBase64URL:$u,ZodBigInt:Yo,ZodBigIntFormat:xu,ZodBoolean:Bo,ZodCIDRv4:hu,ZodCIDRv6:bu,ZodCUID:cu,ZodCUID2:du,ZodCatch:Fp,ZodCodec:Cu,ZodCustom:na,ZodCustomStringFormat:Ji,ZodDate:zu,ZodDefault:Mp,ZodDiscriminatedUnion:Ip,ZodE164:_u,ZodEmail:su,ZodEmoji:uu,ZodEnum:Yi,ZodError:T_,ZodFile:Cp,get ZodFirstPartyTypeKind(){return Du},ZodFunction:Kp,ZodGUID:Go,ZodIPv4:gu,ZodIPv6:vu,ZodISODate:nu,ZodISODateTime:ru,ZodISODuration:ou,ZodISOTime:iu,ZodIntersection:zp,ZodIssueCode:Pw,ZodJWT:wu,ZodKSUID:pu,ZodLazy:Bp,ZodLiteral:Pp,ZodMap:Op,ZodNaN:Qp,ZodNanoID:lu,ZodNever:kp,ZodNonOptional:Eu,ZodNull:yp,ZodNullable:Dp,ZodNumber:Jo,ZodNumberFormat:li,ZodObject:Ho,ZodOptional:Ou,ZodPipe:Pu,ZodPrefault:Lp,ZodPromise:Yp,ZodReadonly:Gp,ZodRealError:hr,ZodRecord:ju,ZodSet:Ep,ZodString:Qo,ZodStringFormat:Nt,ZodSuccess:qp,ZodSymbol:hp,ZodTemplateLiteral:Jp,ZodTransform:Up,ZodTuple:jp,ZodType:et,ZodULID:fu,ZodURL:Vo,ZodUUID:Kr,ZodUndefined:bp,ZodUnion:Nu,ZodUnknown:wp,ZodVoid:xp,ZodXID:mu,_ZodString:au,_default:Ap,_function:ra,any:Ko,array:ht,base64:B_,base64url:Y_,bigint:sw,boolean:rt,catch:Wp,check:zw,cidrv4:V_,cidrv6:J_,clone:xr,codec:xw,coerce:Rw,config:ir,core:N_,cuid:Z_,cuid2:R_,custom:Nw,date:fw,decode:lp,decodeAsync:dp,discriminatedUnion:Bi,e164:K_,email:O_,emoji:A_,encode:up,encodeAsync:cp,endsWith:Bs,enum:Ut,file:$w,flattenError:Ya,float32:nw,float64:iw,formatError:Ka,function:ra,getErrorMap:Uw,globalRegistry:Pn,gt:Un,gte:vr,guid:E_,hash:rw,hex:tw,hostname:ew,httpUrl:M_,includes:Vs,instanceof:jw,int:ku,int32:ow,int64:uw,intersection:Np,ipv4:Q_,ipv6:G_,iso:j_,json:Ow,jwt:H_,keyof:mw,ksuid:W_,lazy:Uu,length:Wo,literal:wt,locales:sm,looseObject:gw,lowercase:Qs,lt:Cn,lte:Ur,map:hw,maxLength:Fo,maxSize:qo,mime:Ys,minLength:ui,minSize:Gi,multipleOf:Qi,nan:kw,nanoid:L_,nativeEnum:yw,negative:Rm,never:Su,nonnegative:Fm,nonoptional:Rp,nonpositive:qm,normalize:Ks,null:$p,nullable:ea,nullish:_w,number:mt,object:ye,optional:Xo,overwrite:Dn,parse:ip,parseAsync:op,partialRecord:vw,pipe:ta,positive:Zm,prefault:Zp,preprocess:Ew,prettifyError:jc,promise:Iw,property:Wm,readonly:Vp,record:Gt,refine:Hp,regex:Ws,regexes:cs,registry:ws,safeDecode:mp,safeDecodeAsync:gp,safeEncode:fp,safeEncodeAsync:pp,safeParse:ap,safeParseAsync:sp,set:bw,setErrorMap:Cw,size:Fs,startsWith:Js,strictObject:pw,string:E,stringFormat:X_,stringbool:Tw,success:ww,superRefine:Xp,symbol:cw,templateLiteral:Sw,toJSONSchema:Hm,toLowerCase:Xs,toUpperCase:eu,transform:Tu,treeifyError:zc,trim:Hs,tuple:Tp,uint32:aw,uint64:lw,ulid:q_,undefined:dw,union:Hr,unknown:Mn,uppercase:Gs,url:D_,util:Sc,uuid:vp,uuidv4:P_,uuidv6:C_,uuidv7:U_,void:Iu,xid:F_},Symbol.toStringTag,{value:"Module"}));var Fw=Object.defineProperty,Xr=(e,r)=>Fw(e,"name",{value:r,configurable:!0}),eg=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"),Ww={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"},tg=Ut(["required","min","max","minLength","maxLength","pattern","email","url","custom"]).describe("Enumeration of all supported validation rule types"),Qw={REQUIRED:"required",MIN:"min",MAX:"max",MIN_LENGTH:"minLength",MAX_LENGTH:"maxLength",PATTERN:"pattern",EMAIL:"email",URL:"url",CUSTOM:"custom"},rg=ye({type:tg.describe("Type of validation rule to apply"),value:Hr([E(),mt(),rt()]).optional().describe("Value for the validation rule (string, number, or boolean)"),message:E().optional().describe("Custom error message when validation fails"),describe:E().max(500).optional().describe("LLM tool call description for this validation rule")}).describe("Schema defining validation rules for question responses"),Gw=Ut(["equals","not_equals","contains","not_contains","greater_than","less_than","is_empty","is_not_empty"]).describe("Enumeration of all supported visibility condition operators"),Vw={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"},ng=ye({field:E().describe("ID of the field to check against"),operator:Gw.describe("Comparison operator for the condition"),value:Hr([E(),mt(),rt()]).optional().describe("Value to compare against (string, number, or boolean)"),describe:E().max(500).optional().describe("LLM tool call description for this visibility condition")}).describe("Schema defining conditions that control when questions are visible"),ia=ye({id:E().describe("Unique identifier for the section"),title:E().min(1).max(200).describe("Display title for the section"),questionIds:ht(E()).min(1).describe("Array of question IDs that belong to this section")}).describe("Schema defining sections that organize questions into logical groups"),ig=Ut(["D","P","A","S"]),Jw={DRAFT:"D",PUBLISHED:"P",ARCHIVED:"A",SUSPENDED:"S"},og=Ut(["star","heart","thumbs-up","diamond","emoji","emoji-exp"]),Bw={STAR:"star",HEART:"heart",THUMBS_UP:"thumbs_up",DIAMOND:"diamond",EMOJI:"emoji",EMOJI_EXP:"emoji_exp"},ag=Ut(["small","medium","large"]),Yw={SMALL:"small",MEDIUM:"medium",LARGE:"large"},sg=Ut(["radio","list","chip","dropdown"]),Kw={RADIO:"radio",LIST:"list",CHIP:"chip",DROPDOWN:"dropdown"},ug=Ut(["checkbox","list","chip"]),Hw={CHECKBOX:"checkbox",LIST:"list",CHIP:"chip"},lg=Ut(["randomize","flip","rotate","ascending","none"]),Xw={RANDOMIZE:"randomize",FLIP:"flip",ROTATE:"rotate",ASCENDING:"ascending",NONE:"none"},en=ye({id:E().describe("Unique identifier for the question"),type:eg.describe("The type of question (rating, single_choice, etc.)"),title:E().min(1).max(200).describe("The main title/question text displayed to users"),description:E().max(1e3).optional().describe("Optional detailed description or help text"),describe:E().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:E().max(500).optional().describe("Custom error message when validation fails"),validations:ht(rg).optional().default([]).describe("Array of validation rules to apply"),visibility:ht(ng).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:E().optional().describe("ID of the section this question belongs to"),status:ig.describe("Current status of the question (Draft, Published, etc.)")}).describe("Base schema for all question types with common properties"),cg=en.extend({type:wt("rating").describe("Must be exactly 'rating'"),showLabels:rt().optional().describe("Whether to show min/max labels"),minLabel:E().max(100).optional().describe("Label for the minimum rating value"),maxLabel:E().max(100).optional().describe("Label for the maximum rating value"),displayStyle:og.optional().describe("Visual style for rating display"),numberOfRatings:mt().int().min(1).max(10).describe("Number of rating options (1-10)"),representationSize:ag.optional().describe("Size of rating visual elements"),color:E().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"),dg=en.extend({type:wt("annotation").describe("Must be exactly 'annotation'"),annotationText:E().max(1e3).optional().describe("Text to display when annotation is provided"),noAnnotationText:E().max(500).optional().describe("Text to display when no annotation is provided")}).describe("Schema for annotation questions that provide additional context or instructions"),Mu=ye({id:E().describe("Unique identifier for this option (system time milliseconds)"),value:E().min(1).max(100).describe("The internal value used for this option"),label:E().min(1).max(200).describe("The display text shown to users for this option"),describe:E().max(500).optional().describe("LLM tool call description providing context about this option"),imageUrl:E().url().optional().describe("Optional image URL to display with this option")}).describe("Schema for individual options in choice-based questions"),Au=Uu(()=>ye({id:E().describe("Unique identifier for this nested option (system time milliseconds)"),value:E().min(1).max(100).describe("The internal value used for this nested option"),label:E().min(1).max(200).describe("The display text shown for this nested option"),describe:E().max(500).optional().describe("LLM tool call description for this nested option context"),imageUrl:E().url().optional().describe("Optional image URL for this nested option"),hint:E().max(500).optional().describe("Optional hint text to help users understand this nested option"),children:ht(Au).optional().default([]).describe("Array of child options for hierarchical structure")}).describe("Schema for nested options with hierarchical structure support")),fg=en.extend({type:wt("single_choice").describe("Must be exactly 'single_choice'"),displayStyle:sg.optional().describe("Visual style for displaying options"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:ht(Mu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).describe("Schema for single-choice multiple selection questions"),mg=en.extend({type:wt("multiple_choice_multiple").describe("Must be exactly 'multiple_choice_multiple'"),displayStyle:ug.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:ht(Mu).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"),pg=en.extend({type:wt("nps").describe("Must be exactly 'nps'"),min:wt(0).describe("NPS always starts at 0"),max:wt(10).describe("NPS always ends at 10"),minLabel:E().max(100).optional().describe("Label for the minimum NPS value (0)"),maxLabel:E().max(100).optional().describe("Label for the maximum NPS value (10)"),scaleLabels:Gt(E().regex(/^\d+$/),E().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"),gg=en.extend({type:wt("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:E().max(200).optional().describe("Placeholder text shown in the input field"),enableRegexValidation:rt().optional().default(!1).describe("Whether to enable regex pattern validation"),regexPattern:E().optional().describe("Regular expression pattern for validation"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:E().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"),vg=en.extend({type:wt("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:E().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:E().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"),hg=en.extend({type:wt("nested_selection").describe("Must be exactly 'nested_selection'"),placeholder:E().max(200).optional().describe("Placeholder text for the nested dropdown"),options:ht(Au).min(1).max(100).describe("Array of nested options for hierarchical selection (1-100 options)"),displayStyle:wt("list").describe("Fixed display style for nested dropdowns"),choiceOrderOption:lg.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:E().max(1e3).optional().describe("Default value to pre-populate"),allowOther:rt().optional().default(!1).describe('Whether to allow custom "other" options'),otherColumnName:E().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"),oa=Bi("type",[cg,dg,fg,mg,pg,gg,vg,hg]),bg=ye({markerNo:E(),timeline:E(),comment:E()}),yg=ye({fileType:E(),fileName:E(),markers:ht(bg)}),$g=ye({nps:mt().optional().describe("Net Promoter Score value (e.g., 0-10)"),nestedSelection:ht(E()).optional().describe("Array of selected nested option IDs"),longText:E().optional().describe("Long text answer, e.g., paragraph or essay"),shortAnswer:E().optional().describe("Short text answer, e.g., single sentence or word"),singleChoice:E().optional().describe("single selected option ID (for single choice questions)"),rating:mt().optional().describe("Star rating value (e.g., 1-5)"),multipleChoiceMultiple:ht(E()).optional().describe("Array of selected option IDs for multiple choice questions"),annotation:yg.optional().describe("Annotation object containing file and marker details"),others:E().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=$g,wg=Ut(["R","S"]).describe("Enumeration of feedback types: R=Recurring, O=One-time"),ek={RECURRING:"R",ONE_TIME:"S"},kg=Ut(["Y","N"]).describe("Yes/No enumeration using Y/N values"),tk={YES:"Y",NO:"N"},xg=Ut(["minutes","hours","days","weeks","months","years"]).describe("Time units for recurring feedback schedules"),rk={MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",YEARS:"years"},Sg=ye({surveyType:wg.describe("Type of feedback: R for recurring, O for one-time"),showOnce:kg.describe("Whether the feedback should be shown only once per user"),stopWhenResponsesCount:E().regex(/^\d+$/,"Must be a valid number string").describe("Stop feedback when this number of responses is reached (as string)"),recurringValue:E().regex(/^\d+$/,"Must be a valid number string").describe("Value for recurring schedule (e.g., every 15 days)"),recurringUnit:xg.describe("Time unit for recurring schedule"),startDate:E().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:E().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"),Ig=ye({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"),zg=Ut(["P","D","A","S"]).describe("Publication status: P=Published, D=Draft, A=Archived, S=Stopped"),nk={PUBLISHED:"P",DRAFT:"D",ARCHIVED:"A",STOPPED:"S"},Ng=ye({formTitle:E().describe("Title of the feedback form"),formDescription:E().describe("Description of the feedback form"),isPublished:zg.describe("Publication status of the feedback form")}).describe("Schema defining feedback configuration properties"),tt=E().min(1).describe("Translated text content"),jg=ye({type:wt("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"),Tg=ye({type:wt("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"),Og=ye({type:wt("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"),Eg=ye({type:wt("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"),Pg=ye({type:wt("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"),Cg=ye({type:wt("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"),Ug=ye({type:wt("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"),Dg=ye({type:wt("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"),Mg=Hr([jg,Tg,Og,Eg,Pg,Cg,Ug,Dg]).describe("Union of all question type translation schemas"),ik=E().min(2).max(10).describe("Language code (e.g., 'en', 'es', 'hi')"),ok=Gt(ik,Mg).describe("Question translations keyed by language code"),Ag=Gt(E().uuid(),ok).describe("Question-centric translations keyed by question ID, then by language code"),Lu=Ag.describe("Question-centric translations at root level"),Lg=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}};Xr(Lg,"TranslationProvider");var Zg=Lg;function Rg(e,r="en"){return new Zg(e,r)}Xr(Rg,"createTranslationProvider");var qg=Ut(["fade","manual"]).describe("How the end screen should be dismissed (fade out or manual dismissal)"),ak={FADE:"fade",MANUAL:"manual"},Zu=ye({title:E().min(1).max(200).describe("The main title displayed on the welcome screen"),description:E().min(1).max(1e3).describe("Description text shown on the welcome screen"),buttonLabel:E().min(1).max(50).describe("Text displayed on the welcome screen button")}).describe("Schema for welcome screen configuration fields"),Ru=ye({title:E().min(1).max(200).describe("The main title displayed on the end screen"),message:E().min(1).max(1e3).describe("Message text shown on the end screen"),buttonLabel:E().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=ye({title:E().min(1).max(200).describe("Translated title text for welcome screen"),description:E().min(1).max(1e3).describe("Translated description text for welcome screen"),buttonLabel:E().min(1).max(50).describe("Translated text for the welcome button label")}).describe("Schema for welcome screen translation fields"),Fu=ye({buttonLabel:E().min(1).max(50).describe("Translated text for the end button label"),title:E().min(1).max(200).describe("Translated title text for end screen"),message:E().min(1).max(1e3).describe("Translated message text for end screen")}).describe("Schema for end screen translation fields"),Wu=ye({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:E().min(1).max(50).describe("Text for the submit button"),previousButtonLabel:E().min(1).max(50).describe("Text for the previous button in pagination"),nextButtonLabel:E().min(1).max(50).describe("Text for the next button in pagination"),aiEnhancementSuccessMessage:E().min(1).max(100).describe("Message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:E().min(1).max(100).describe("Message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:E().min(1).max(100).describe("Message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration fields"),Qu=ye({value:E().min(1).max(10).describe("Language code (e.g., 'en', 'es', 'fr')"),label:E().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"),aa=ht(Qu).describe("Schema for array of available languages"),Gu=ye({submitButtonLabel:E().min(1).max(50).describe("Translated text for the submit button"),previousButtonLabel:E().min(1).max(50).describe("Translated text for the previous button in pagination"),nextButtonLabel:E().min(1).max(50).describe("Translated text for the next button in pagination"),aiEnhancementSuccessMessage:E().min(1).max(100).describe("Translated message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:E().min(1).max(100).describe("Translated message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:E().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"),sk={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"},uk=Ut(["light","dark"]).describe("Available theme modes for the widget"),lk={LIGHT:"light",DARK:"dark"},Fg=ye({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:E().optional().describe("Custom CSS link to apply for the feedback form")}).describe("Feature settings controlling widget UI behavior and appearance"),Ju=ye({brandColor:E().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:E().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:E().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:Hr([E().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i),E().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"),Bu=ye({light:Ju,dark:Ju}).describe("Complete theme configuration with light and dark variants"),Yu=ye({themes:Bu.describe("Color themes for light and dark modes"),featureSettings:Fg.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"),Wg=ye({name:E().describe("The operator name (e.g., '=', '!=', 'contains', 'beginsWith', 'matches')"),label:E().describe("Human-readable label for the operator (e.g., 'equals', 'not equals', 'contains')")}).describe("Schema defining an operator for custom event fields"),Qg=ye({name:E().describe("The field name (e.g., 'event_name', 'add_to_cart', 'cart_item_number')"),label:E().describe("Human-readable label for the field"),placeholder:E().describe("Placeholder text for input fields"),operators:ht(Wg).min(1).describe("Array of available operators for this field")}).describe("Schema defining a custom event field with its operators"),Gg=ye({customEventFields:ht(Qg).optional().describe("Array of custom event fields with their operators and labels")}).describe("Schema defining metadata for conditional if clauses"),Vg=ye({query:E().describe("The structured query definition as a JSON string"),naturalLanguage:E().describe("Human-readable description of the query conditions"),jsonLogic:E().describe("JSON Logic representation of the query as a JSON string"),sqlQuery:E().describe("SQL representation of the query for database operations")}).describe("Schema defining query output structure with all fields as strings"),Jg=ye({id:E().describe("Unique identifier for this condition"),event:E().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:Gg.optional().describe("Optional metadata containing custom event fields and their configurations")}).describe("Schema defining the 'if' condition for auto-trigger logic"),Bg=ye({triggerType:E().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:Hr([E(),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"),Yg=ye({if:Jg.describe("The condition that must be met"),then:Bg.describe("The action to perform when the condition is met")}).describe("Schema defining a conditional when clause with if-then logic"),sa=ye({id:E().describe("Unique identifier for this filter condition"),category:E().describe("The category this filter belongs to (e.g., 'device', 'user', 'geo_location')"),property:E().describe("The property to filter on (e.g., 'device_type', 'age', 'country')"),operator:E().describe("The comparison operator (e.g., 'equals', 'greaterThan', 'lessThan')"),values:ht(E()).min(1).describe("Array of values to compare against"),tbl_key:E().describe("The database table key for this property")}).describe("Schema defining a single filter condition within a category"),Kg=ye({device:ht(sa).optional().describe("Array of device-specific filter conditions"),user:ht(sa).optional().describe("Array of user-specific filter conditions"),geo_location:ht(sa).optional().describe("Array of geo-location specific filter conditions")}).describe("Schema defining category-specific filters for audience targeting"),Hg=ye({applications:ht(E()).min(1).describe("Array of application names this targeting applies to"),userType:E().describe("The type of user this targeting applies to (e.g., 'both', 'new', 'returning')"),categorySpecificFilters:Kg.optional().describe("Optional category-specific filters for more granular targeting")}).describe("Schema defining who the audience targeting applies to"),Xg=ye({id:E().describe("Unique identifier for the audience segment"),name:E().min(1).max(200).describe("Display name for the audience segment"),isImportant:rt().describe("Whether this segment is marked as important for targeting"),when:ht(Yg).min(1).describe("Array of conditional when clauses with if-then logic"),who:Hg.describe("User criteria and conditions defining who belongs to this segment")}).describe("Schema defining an audience segment for targeting with conditional logic"),Ku=ye({isAuto:rt().describe("Whether automatic triggering is enabled for this audience"),isManual:rt().describe("Whether manual triggering is enabled for this audience"),segments:ht(Xg).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"),ua=Bi("isEnabled",[ye({isEnabled:wt(!1).describe("Whether other configuration properties are enabled"),otherFields:Wu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Gt(E(),Gu).optional().describe("Translations for other configuration field labels and buttons keyed by language code")}),ye({isEnabled:wt(!0).describe("Whether other configuration properties are enabled"),otherFields:Wu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Gt(E(),Gu).describe("Translations for other configuration field labels and buttons keyed by language code")})]).describe("Schema for other configuration properties including fields and translations"),la=Bi("isEnabled",[ye({isEnabled:wt(!1).describe("Whether welcome screen is enabled"),welcomeFields:Zu.optional().describe("Welcome screen configuration fields including title, description, and button label"),translations:Gt(E(),qu).optional().describe("Translations for welcome screen content keyed by language code")}),ye({isEnabled:wt(!0).describe("Whether welcome screen is enabled"),welcomeFields:Zu.describe("Welcome screen configuration fields including title, description, and button label"),translations:Gt(E(),qu).describe("Translations for welcome screen content keyed by language code")})]).describe("Schema for welcome screen properties including fields and translations"),ca=Bi("isEnabled",[ye({isEnabled:wt(!1).describe("Whether end screen is enabled"),endFields:Ru.optional().describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Gt(E(),Fu).optional().describe("Translations for end screen content keyed by language code")}),ye({isEnabled:wt(!0).describe("Whether end screen is enabled"),endFields:Ru.describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Gt(E(),Fu).describe("Translations for end screen content keyed by language code")})]).describe("Schema for end screen properties including fields and translations"),ev=ye({themeConfiguration:Yu.describe("Theme configuration including colors, features, and positioning")}).describe("Schema for appearance properties including theme configuration"),ck=ye({feedbackConfigurationId:vp().describe("Unique identifier for the feedback configuration"),feedbackConfiguration:Ng.describe("Configuration properties for the feedback form"),questionnaireFields:ye({questions:Gt(E(),oa).describe("Collection of questions keyed by their string identifiers"),sections:ht(ia).describe("Array of sections that organize questions into logical groups"),selectedLanguages:aa.describe("Array of languages selected for this questionnaire"),translations:Lu.describe("Multi-language translations for questions and form content")}).describe("Fields defining the questionnaire structure, questions, sections, selected languages, and translations"),frequencyAndSchedulingProperties:Sg.describe("Properties controlling when and how often the feedback is shown"),externalPublishingProperties:Ig.describe("Properties controlling external sharing and publishing of feedback results"),audienceTriggerProperties:Ku.describe("Properties defining audience targeting and trigger conditions for the feedback form"),otherConfigurationProperties:ua.describe("Additional configuration properties including form display options and translations"),welcomeScreenProperties:la.describe("Welcome screen configuration including content and translations"),endScreenProperties:ca.describe("End screen configuration including content, dismissal behavior, and translations"),appearanceProperties:ev.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"),tv=ye({mandatoryFetchConfigAtPaths:ht(E()).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"),rv=Ut(["light","dark","system"]).describe("Enumeration of supported theme modes"),dk={LIGHT:"light",DARK:"dark",SYSTEM:"system"},Ki=ye({$deviceType:E().describe("Type of device being used"),$timezone:E().describe("Device timezone (e.g., 'Asia/Calcutta')"),$theme:rv.describe("Current theme mode preference"),$os:E().describe("Operating system running on the device"),$osVersion:E().describe("Version of the operating system"),$appVersion:E().describe("Version of the application"),$app:E().describe("Browser or application being used"),$language:E().describe("Language preference (e.g., 'en-GB')")}).describe("Device information collected from the client"),Hi=ye({$sessionId:E().uuid().describe("Unique session identifier"),$timestamp:E().optional().describe("ISO timestamp of the session")}).describe("Session information for tracking user sessions"),fk=ye({deviceInfo:Ki.describe("Device information"),sessionInfo:Hi.describe("Session information")}).describe("Combined device and session information"),nv=ye({$counter:Gt(E(),mt().int()).describe("Counter properties for user tracking (can be positive or negative)").optional(),$set:Gt(E(),Ko()).describe("Properties to set for the user").optional(),$setOnce:Gt(E(),Ko()).describe("Properties to set once for the user (won't overwrite existing values)").optional(),$unset:ht(E()).describe("Array of property names to unset/remove from the user").optional()}).loose().describe("User properties including counters, set operations, and other dynamic data"),da=ye({userName:E().email().describe("User's email address as username"),properties:nv.describe("User properties and counters")}).describe("User information including identification and properties"),iv=Ut(["V","S"]).describe("User action: V for view, S for submit"),mk={VIEW:"V",SUBMIT:"S"},fa=ye({feedbackIdentifier:E().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),completionTimeInSeconds:mt().int().min(0).describe("Time taken to complete the feedback in seconds"),userAction:iv.describe("Action performed by the user"),responseLanguageCode:E().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Configuration information for the feedback form"),ov=ye({questionId:E().uuid().describe("Unique identifier for the question"),answer:_g.describe("The answer provided for this question"),type:E().describe("Type of the question (e.g., 'rating', 'single_choice')"),error:E().optional().describe("Error message if any validation failed")}).describe("Response to a specific question in the feedback form"),av=ye({questions:ht(ov).min(1).describe("Array of question responses")}).describe("User responses to feedback questions"),sv=ye({customEventName:E().nullable().describe("Custom event name that triggered the feedback"),currentPath:E().describe("Current page path where feedback was triggered"),eventType:E().describe("Type of event that triggered the feedback")}).passthrough().describe("Properties of the trigger that matched for this feedback"),Hu=ye({formConfig:fa.describe("Form configuration information"),deviceInfo:Ki.describe("Device information"),sessionInfo:Hi.describe("Session information"),userInfo:da.optional().describe("User information (optional)"),matchedTriggerProperties:sv.describe("Properties of the matched trigger"),customProperties:Gt(E(),Mn()).optional().describe("Custom properties for advanced use cases")}).describe("Base submit feedback request schema"),uv=Hu.extend({formConfig:fa.extend({userAction:wt("V").describe("Action performed by the user (view)")})}).strict().describe("View feedback request schema (no response required)"),lv=Hu.extend({formConfig:fa.extend({userAction:wt("S").describe("Action performed by the user (submit)")}),response:av.describe("User responses (required for submit)")}).strict().describe("Submit feedback request schema (response required)"),pk=Hr([uv,lv]).describe("Union schema for both view and submit feedback requests"),cv=ye({feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),feedbackTitle:E().describe("Title of the feedback configuration"),triggerProperties:Ku.describe("Trigger properties including auto/manual settings and audience segments"),appearanceProperties:ye({themes:ye({light:ye({brandColor:E().describe("Brand color for light theme"),overlayColor:E().describe("Overlay color for light theme"),textColor:E().describe("Text color for light theme"),backgroundColor:E().describe("Background color for light theme")}).describe("Light theme colors"),dark:ye({brandColor:E().describe("Brand color for dark theme"),overlayColor:E().describe("Overlay color for dark theme"),textColor:E().describe("Text color for dark theme"),backgroundColor:E().describe("Background color for dark theme")}).describe("Dark theme colors")}).nullable().optional().describe("Theme configuration (optional)"),featureSettings:ye({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:E().nullable().optional().describe("Custom CSS link (optional)")}).describe("Feature settings for the feedback form"),selectedIconPosition:E().describe("Selected position for the feedback icon"),selectedPosition:E().describe("Selected position for the feedback form")}).describe("Appearance properties for the feedback form")}).describe("Individual feedback configuration item in the list"),dv=ye({feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),responseLanguageCode:E().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Form configuration for fetching feedback details"),gk=ye({deviceInfo:Ki.describe("Device information"),sessionInfo:Hi.describe("Session information"),userInfo:da.optional().describe("User information (optional)"),force:rt().optional().describe("Forcefully fetch eligible feedback list (optional)")}).strict().describe("Request schema for fetching available feedback configurations"),vk=ye({formConfig:dv.describe("Form configuration for the specific feedback"),deviceInfo:Ki.describe("Device information"),sessionInfo:Hi.describe("Session information"),userInfo:da.optional().describe("User information (optional)")}).strict().describe("Request schema for fetching specific feedback form details"),fv=ye({formTitle:E().describe("Title of the feedback form"),formDescription:E().describe("Description of the feedback form")}).describe("Form configuration response with title and description"),mv=ye({questions:Gt(E(),oa).describe("Collection of questions keyed by their string identifiers"),sections:ht(ia).describe("Array of sections that organize questions into logical groups"),translations:Gt(E(),Ko()).describe("Translations object (can be empty or contain language-specific translations)"),selectedLanguages:aa.describe("Array of languages selected for this questionnaire")}).describe("Questionnaire fields response including questions, sections, translations, and selected languages"),hk=ye({feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),feedbackIdentifier:E().uuid().describe("Unique identifier for this specific feedback instance"),formConfiguration:fv.describe("Form configuration with title and description"),questionnaireFields:mv.describe("Questionnaire structure including questions, sections, translations, and languages"),otherConfigurationProperties:ua.describe("Other configuration properties using existing schema"),welcomeScreenProperties:la.describe("Welcome screen properties using existing schema"),endScreenProperties:ca.describe("End screen properties using existing schema")}).strict().describe("Complete response schema for fetchFeedbackDetails API using existing field schemas"),bk=ye({masterProperties:tv.describe("Master properties for global survey settings"),feedbackConfiguration:ht(cv).describe("Array of available feedback configurations")}).strict().describe("Response schema for fetchConfigurationList API"),yk=ye({questionId:E().describe("Unique identifier for the question"),identifier:E().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),userText:E().describe("Original text input from the user")}).strict().describe("Request schema for refining user text input"),pv=ye({userText:E().describe("Original text input from the user"),refinedText:E().describe("Refined/improved version of the user text")}).describe("Data containing original and refined text"),$k=ye({success:rt().describe("Indicates whether the operation was successful"),code:E().describe("Response code indicating the status"),message:E().describe("Human-readable message describing the result"),messageId:E().describe("Unique identifier for the response message"),data:pv.describe("Response data containing original and refined text"),error:E().optional().describe("Error message if the operation failed (optional)")}).strict().describe("Response schema for refine text API operation");function ci(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)?ci(f,r):f):t instanceof Uint8Array||t instanceof Date?t:typeof t=="object"?ci(t,r):t}return o}Xr(ci,"convertObject");function ma(e){return e.length===1?e.toLowerCase():e.replace(/^([A-Z])/,r=>r[0].toLowerCase()).replace(/[_-]([a-z0-9])/g,r=>r[1].toUpperCase())}Xr(ma,"toCamel");function gv(e){return ci(e,ma)}Xr(gv,"objectToCamel");function Xu(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()}Xr(Xu,"toSnake");function vv(e){return ci(e,Xu)}Xr(vv,"objectToSnake");function el(e){return ma(e).replace(/^([a-z])/,r=>r[0].toUpperCase())}Xr(el,"toPascal");function hv(e){return ci(e,el)}Xr(hv,"objectToPascal");var bv=Ut(["light","dark"]).describe("Current theme mode of the application"),_k={LIGHT:"light",DARK:"dark"},wk=ye({theme:Bu.describe("Theme configuration including light and dark theme colors"),currentMode:bv.describe("Current theme mode (light or dark)"),currentLanguage:Qu.describe("Currently selected language configuration"),questions:Gt(E(),oa).describe("Collection of questions keyed by their string identifiers"),questionLanguages:aa.describe("Available languages for questions"),otherConfigurationProperties:ua.describe("Other configuration properties including form display options and translations"),welcomeScreenProperties:la.optional().describe("Welcome screen configuration (optional)"),endScreenProperties:ca.optional().describe("End screen configuration (optional)"),translations:Lu.optional().describe("Multi-language translations for questions and form content (optional)"),onSectionChange:ra({input:[mt()],output:Iu()}).optional().describe("Optional callback function triggered when section changes"),onClose:ra({input:[],output:Iu()}).optional().describe("Optional callback function triggered when the form is closed"),sections:ht(ia).describe("Array of sections that organize questions into logical groups"),themeSettings:Yu.describe("Complete theme configuration including colors, features, and positioning")}).describe("Schema for application props interface containing all form configuration and state");const kk=Cb(Object.freeze(Object.defineProperty({__proto__:null,AnnotationMarkerSchema:bg,AnnotationSchema:yg,AnswerItemSchema:$g,AnswerSchema:_g,ChoiceOrderOptions:Xw,CurrentModes:_k,DeviceThemes:dk,DismissBehaviors:ak,EndFieldsTranslationSchema:Fu,EndScreenFieldsSchema:Ru,LanguageFieldSchema:Qu,LanguagesSchema:aa,MultipleChoiceDisplayStyles:Kw,MultipleChoiceMultipleDisplayStyles:Hw,OtherFieldsSchema:Wu,OtherFieldsTranslationSchema:Gu,Positions:sk,PublicationStatuses:nk,QuestionStatuses:Jw,QuestionTypes:Ww,RatingDisplayStyles:Bw,RatingRepresentationSizes:Yw,RecurringUnits:rk,SurveyTypes:ek,ThemeModes:lk,TranslationProvider:Zg,UserActions:mk,ValidationRuleTypes:Qw,VisibilityConditionOperators:Vw,WelcomeFieldsTranslationSchema:qu,WelcomeScreenFieldsSchema:Zu,YesNoValues:tk,annotationQuestionSchema:dg,annotationQuestionTranslationSchema:Dg,appPropsSchema:wk,appearancePropertiesSchema:ev,audienceSegmentSchema:Xg,audienceTriggerPropertiesSchema:Ku,baseSubmitFeedbackSchema:Hu,categorySpecificFiltersSchema:Kg,choiceOrderOptionSchema:lg,combinedQuestionSchema:oa,conditionalIfMetadataSchema:Gg,conditionalIfSchema:Jg,conditionalWhenSchema:Yg,createTranslationProvider:Rg,currentModeSchema:bv,customEventFieldOperatorSchema:Wg,customEventFieldSchema:Qg,deviceInfoSchema:Ki,deviceSessionInfoSchema:fk,deviceThemeSchema:rv,dismissBehaviorSchema:qg,endScreenPropertiesSchema:ca,externalPublishingPropertiesSchema:Ig,featureSettingsSchema:Fg,feedbackConfigurationItemSchema:cv,feedbackConfigurationSchema:Ng,feedbackRequestSchema:pk,fetchConfigurationListResponseSchema:bk,fetchConfigurationListSchema:gk,fetchFeedbackDetailsResponseSchema:hk,fetchFeedbackDetailsSchema:vk,fetchFormConfigSchema:dv,filterConditionSchema:sa,formConfigSchema:fa,formConfigurationResponseSchema:fv,formPropertiesSchema:ck,frequencyAndSchedulingPropertiesSchema:Sg,longAnswerQuestionSchema:vg,longAnswerQuestionTranslationSchema:Cg,masterPropertiesSchema:tv,matchedTriggerPropertiesSchema:sv,multipleChoiceDisplayStyleSchema:sg,multipleChoiceMultipleDisplayStyleSchema:ug,multipleChoiceMultipleQuestionSchema:mg,multipleChoiceQuestionTranslationSchema:Og,multipleChoiceSingleQuestionSchema:fg,nestedDropdownQuestionSchema:hg,nestedOptionSchema:Au,nestedSelectionQuestionTranslationSchema:Ug,npsQuestionSchema:pg,npsQuestionTranslationSchema:Eg,objectToCamel:gv,objectToPascal:hv,objectToSnake:vv,otherConfigurationPropertiesSchema:ua,positionSchema:Vu,publicationStatusSchema:zg,queryOutputSchema:Vg,questionCentricTranslationsSchema:Ag,questionOptionSchema:Mu,questionResponseSchema:ov,questionSchema:en,questionStatusSchema:ig,questionTranslationSchema:Mg,questionTypeSchema:eg,questionnaireFieldsResponseSchema:mv,ratingDisplayStyleSchema:og,ratingQuestionSchema:cg,ratingQuestionTranslationSchema:jg,ratingRepresentationSizeSchema:ag,recurringUnitSchema:xg,refineTextDataSchema:pv,refineTextParamsSchema:yk,refineTextResponseSchema:$k,responseSchema:av,sectionSchema:ia,sessionInfoSchema:Hi,shortAnswerQuestionSchema:gg,shortAnswerQuestionTranslationSchema:Pg,singleChoiceQuestionTranslationSchema:Tg,submitFeedbackSchema:lv,surveyTypeSchema:wg,themeColorsSchema:Ju,themeConfigurationSchema:Yu,themeModeSchema:uk,themesSchema:Bu,toCamel:ma,toPascal:el,toSnake:Xu,translationEntrySchema:tt,translationsSchema:Lu,triggerActionSchema:Bg,userActionSchema:iv,userInfoSchema:da,userPropertiesSchema:nv,validationRuleSchema:rg,validationRuleTypeSchema:tg,viewFeedbackSchema:uv,visibilityConditionSchema:ng,welcomeScreenPropertiesSchema:la,whoSchema:Hg,yesNoSchema:kg,z:qw},Symbol.toStringTag,{value:"Module"})));var xk=Ei.exports,yv;function Sk(){return yv||(yv=1,(function(e,r){(function(o,s){s(r,kk)})(xk,(function(o,s){typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let t=!1,a=!1;function f(){t=!0}f();const w=1,Z=2,H=4,pe=8,ce=16,Re=1,he=2,K=4,ze=8,De=16,pt=1,ut=2,ct="[",vt="[!",or="]",Wr={},Ft=Symbol(),pa="http://www.w3.org/1999/xhtml",tl="http://www.w3.org/2000/svg",ga="@attach",Xi=!1;var pn=Array.isArray,rl=Array.prototype.indexOf,An=Array.from,Ln=Object.keys,Qr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,eo=Object.getOwnPropertyDescriptors,to=Object.prototype,ge=Array.prototype,Be=Object.getPrototypeOf,zt=Object.isExtensible;function Dt(i){return typeof i=="function"}const gt=()=>{};function Ir(i){return i()}function Zn(i){for(var n=0;n<i.length;n++)i[n]()}function di(){var i,n,u=new Promise((l,d)=>{i=l,n=d});return{promise:u,resolve:i,reject:n}}function Vt(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,Rn=4,fi=8,qn=16,tn=32,gn=64,nl=128,zr=256,va=512,er=1024,br=2048,rn=4096,Dr=8192,Fn=16384,il=32768,Wn=65536,$v=1<<17,Nk=1<<18,Qn=1<<19,_v=1<<20,ol=1<<21,ha=1<<22,Gn=1<<23,Gr=Symbol("$state"),al=Symbol("legacy props"),jk=Symbol(""),ro=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Tk=1,ba=3,Vn=8;function sl(i){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ok(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ek(i){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pk(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ck(i){throw new Error("https://svelte.dev/e/effect_orphan")}function Uk(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dk(){throw new Error("https://svelte.dev/e/hydration_failed")}function Mk(i){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ak(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Lk(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zk(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Rk(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ya(i){console.warn("https://svelte.dev/e/hydration_mismatch")}function qk(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Fk(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Me=!1;function ar(i){Me=i}let Je;function Yt(i){if(i===null)throw ya(),Wr;return Je=i}function nn(){return Yt(Jr(Je))}function M(i){if(Me){if(Jr(Je)!==null)throw ya(),Wr;Je=i}}function yr(i=1){if(Me){for(var n=i,u=Je;n--;)u=Jr(u);Je=u}}function $a(i=!0){for(var n=0,u=Je;;){if(u.nodeType===Vn){var l=u.data;if(l===or){if(n===0)return u;n-=1}else(l===ct||l===vt)&&(n+=1)}var d=Jr(u);i&&u.remove(),u=d}}function wv(i){if(!i||i.nodeType!==Vn)throw ya(),Wr;return i.data}function kv(i){return i===this.v}function xv(i,n){return i!=i?n==n:i!==n||i!==null&&typeof i=="object"||typeof i=="function"}function Sv(i){return!xv(i,this.v)}const Wk=[];function Qk(i,n=!1,u=!1){return _a(i,new Map,"",Wk,null,u)}function _a(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(pn(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]=_a(b,n,u,l,null,m))}return g}if(Be(i)===to){g={},n.set(i,g),d!==null&&n.set(d,g);for(var h in i)g[h]=_a(i[h],n,u,l,null,m);return g}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!m)return _a(i.toJSON(),n,u,l,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}let xt=null;function mi(i){xt=i}function Iv(i){return ul().get(i)}function Gk(i,n){return ul().set(i,n),n}function Vk(i){return ul().has(i)}function Ye(i,n=!1,u){xt={p:xt,c:null,e:null,s:i,x:null,l:t&&!n?{s:null,u:null,$:[]}:null}}function Ke(i){var n=xt,u=n.e;if(u!==null){n.e=null;for(var l of u)Kv(l)}return i!==void 0&&(n.x=i),xt=n.p,i??{}}function no(){return!t||xt!==null&&xt.l===null}function ul(i){return xt===null&&sl(),xt.c??=new Map(Jk(xt)||void 0)}function Jk(i){let n=i.p;for(;n!==null;){const u=n.c;if(u!==null)return u;n=n.p}return null}let Jn=[];function zv(){var i=Jn;Jn=[],Zn(i)}function on(i){if(Jn.length===0&&!io){var n=Jn;queueMicrotask(()=>{n===Jn&&zv()})}Jn.push(i)}function Bk(){for(;Jn.length>0;)zv()}const Yk=new WeakMap;function Nv(i){var n=Xe;if(n===null)return at.f|=Gn,i;if((n.f&il)===0){if((n.f&nl)===0)throw!n.parent&&i instanceof Error&&jv(i),i;n.b.error(i)}else pi(i,n)}function pi(i,n){for(;n!==null;){if((n.f&nl)!==0)try{n.b.error(i);return}catch(u){i=u}n=n.parent}throw i instanceof Error&&jv(i),i}function jv(i){const n=Yk.get(i);n&&(Qr(i,"message",{value:n.message}),Qr(i,"stack",{value:n.stack}))}const wa=new Set;let Tt=null,ka=null,ll=new Set,Vr=[],xa=null,cl=!1,io=!1;class Mr{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){Vr=[],ka=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=[],ka=this,Tt=null,Ov(u),Ov(l),ka=null,this.#o?.resolve()}else this.#l(this.#a),this.#l(this.#r),this.#l(this.#s);for(const d of this.#i)hi(d);this.#i=[]}#d(n){n.f^=er;for(var u=n.first;u!==null;){var l=u.f,d=(l&(tn|gn))!==0,m=d&&(l&er)!==0,p=m||(l&Dr)!==0||this.skipped_effects.has(u);if(!p&&u.fn!==null){d?u.f^=er:(l&Rn)!==0?this.#r.push(u):(l&er)===0&&((l&ha)!==0&&u.b?.is_pending()?this.#i.push(u):lo(u)&&((u.f&qn)!==0&&this.#s.push(u),hi(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&br)!==0?this.#u:this.#c).push(u),rr(u,er);n.length=0}capture(n,u){this.#e.has(n)||this.#e.set(n,u),this.current.set(n,n.v)}activate(){Tt=this}deactivate(){Tt=null}flush(){if(Vr.length>0){if(this.activate(),Tv(),Tt!==null&&Tt!==this)return}else this.#n===0&&this.#f();this.deactivate();for(const n of ll)if(ll.delete(n),n(),Tt!==null)break}#f(){for(const n of this.#t)n();if(this.#t.clear(),wa.size>1){this.#e.clear();let n=!0;for(const u of wa){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;Ev(l)}if(Vr.length>0){Tt=u;for(const l of Vr)u.#d(l);Vr=[]}}Tt=null}wa.delete(this)}increment(){this.#n+=1}decrement(){this.#n-=1;for(const n of this.#u)rr(n,br),Yn(n);for(const n of this.#c)rr(n,rn),Yn(n);this.flush()}add_callback(n){this.#t.add(n)}settled(){return(this.#o??=di()).promise}static ensure(){if(Tt===null){const n=Tt=new Mr;wa.add(Tt),io||Mr.enqueue(()=>{Tt===n&&n.flush()})}return Tt}static enqueue(n){on(n)}static apply(n){return gt}}function dt(i){var n=io;io=!0;try{for(var u;;){if(Bk(),Vr.length===0&&(Tt?.flush(),Vr.length===0))return xa=null,u;Tv()}}finally{io=n}}function Tv(){var i=vi;cl=!0;try{var n=0;for(ih(!0);Vr.length>0;){var u=Mr.ensure();if(n++>1e3){var l,d;Kk()}u.process(Vr),vn.clear()}}finally{cl=!1,ih(i),xa=null}}function Kk(){try{Uk()}catch(i){pi(i,xa)}}let Bn=null;function Ov(i){var n=i.length;if(n!==0){for(var u=0;u<n;){var l=i[u++];if((l.f&(Fn|Dr))===0&&lo(l)&&(Bn=[],hi(l),l.deps===null&&l.first===null&&l.nodes_start===null&&(l.teardown===null&&l.ac===null?th(l):l.fn=null),Bn?.length>0)){vn.clear();for(const d of Bn)hi(d);Bn=[]}}Bn=null}}function Ev(i){if(i.reactions!==null)for(const n of i.reactions){const u=n.f;(u&Zt)!==0?Ev(n):(u&(ha|qn))!==0&&(rr(n,br),Yn(n))}}function Yn(i){for(var n=xa=i;n.parent!==null;){n=n.parent;var u=n.f;if(cl&&n===Xe&&(u&qn)!==0)return;if((u&(gn|tn))!==0){if((u&er)===0)return;n.f^=er}}Vr.push(n)}function Pv(i){let n=0,u=hn(0),l;return()=>{lx()&&(c(u),Kn(()=>(n===0&&(l=C(()=>i(()=>ao(u)))),n+=1,()=>{on(()=>{n-=1,n===0&&(l?.(),l=void 0,ao(u))})})))}}var Hk=Wn|Qn|nl;function Xk(i,n,u){new ex(i,n,u)}class ex{parent;#e=!1;#t;#n=Me?Je:null;#o;#i;#a;#r=null;#s=null;#u=null;#c=null;#d=0;#l=0;#f=!1;#m=null;#h=()=>{this.#m&&gi(this.#m,this.#d)};#b=Pv(()=>(this.#m=hn(this.#d),()=>{this.#m=null}));constructor(n,u,l){this.#t=n,this.#o=u,this.#i=l,this.parent=Xe.b,this.#e=!!this.#o.pending,this.#a=yn(()=>{if(Xe.b=this,Me){const d=this.#n;nn(),d.nodeType===Vn&&d.data===vt?this.#$():this.#y()}else{try{this.#r=tr(()=>l(this.#t))}catch(d){this.error(d)}this.#l>0?this.#g():this.#e=!1}},Hk),Me&&(this.#t=Je)}#y(){try{this.#r=tr(()=>this.#i(this.#t))}catch(n){this.error(n)}this.#e=!1}#$(){const n=this.#o.pending;n&&(this.#s=tr(()=>n(this.#t)),Mr.enqueue(()=>{this.#r=this.#p(()=>(Mr.ensure(),tr(()=>this.#i(this.#t)))),this.#l>0?this.#g():($n(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,l=at,d=xt;jr(this.#a),cr(this.#a),mi(this.#a.ctx);try{return n()}catch(m){return Nv(m),null}finally{jr(u),cr(l),mi(d)}}#g(){const n=this.#o.pending;this.#r!==null&&(this.#c=document.createDocumentFragment(),tx(this.#r,this.#c)),this.#s===null&&(this.#s=tr(()=>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&&$n(this.#s,()=>{this.#s=null}),this.#c&&(this.#t.before(this.#c),this.#c=null),on(()=>{Mr.ensure().flush()}))}update_pending_count(n){this.#v(n),this.#d+=n,ll.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&&(Kt(this.#r),this.#r=null),this.#s&&(Kt(this.#s),this.#s=null),this.#u&&(Kt(this.#u),this.#u=null),Me&&(Yt(this.#n),yr(),Yt($a()));var d=!1,m=!1;const p=()=>{if(d){Fk();return}d=!0,m&&Rk(),Mr.ensure(),this.#d=0,this.#u!==null&&$n(this.#u,()=>{this.#u=null}),this.#e=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#f=!1,tr(()=>this.#i(this.#t)))),this.#l>0?this.#g():this.#e=!1};var g=at;try{cr(null),m=!0,u?.(n,p),m=!1}catch(v){pi(v,this.#a&&this.#a.parent)}finally{cr(g)}l&&on(()=>{this.#u=this.#p(()=>{this.#f=!0;try{return tr(()=>{l(this.#t,()=>n,()=>p)})}catch(v){return pi(v,this.#a.parent),null}finally{this.#f=!1}})})}}function tx(i,n){for(var u=i.nodes_start,l=i.nodes_end;u!==null;){var d=u===l?null:Jr(u);n.append(u),u=d}}function Cv(i,n,u){const l=no()?oo:Ae;if(n.length===0){u(i.map(l));return}var d=Tt,m=Xe,p=rx(),g=Me;Promise.all(n.map(v=>nx(v))).then(v=>{p();try{u([...i.map(l),...v])}catch(b){(m.f&Fn)===0&&pi(b,m)}g&&ar(!1),d?.deactivate(),Uv()}).catch(v=>{pi(v,m)})}function rx(){var i=Xe,n=at,u=xt,l=Tt,d=Me;if(d)var m=Je;return function(){jr(i),cr(n),mi(u),l?.activate(),d&&(ar(!0),Yt(m))}}function Uv(){jr(null),cr(null),mi(null)}function oo(i){var n=Zt|br,u=at!==null&&(at.f&Zt)!==0?at:null;return Xe===null||u!==null&&(u.f&zr)!==0?n|=zr:Xe.f|=Qn,{ctx:xt,deps:null,effects:null,equals:kv,f:n,fn:i,reactions:null,rv:0,v:Ft,wv:0,parent:u??Xe,ac:null}}function nx(i,n){let u=Xe;u===null&&Ok();var l=u.b,d=void 0,m=hn(Ft),p=!at,g=new Map;return fx(()=>{var v=di();d=v.promise;try{Promise.resolve(i()).then(v.resolve,v.reject)}catch(y){v.reject(y)}var b=Tt,h=l.is_pending();p&&(l.update_pending_count(1),h||(b.increment(),g.get(b)?.reject(ro),g.set(b,v)));const k=(y,I=void 0)=>{h||b.activate(),I?I!==ro&&(m.f|=Gn,gi(m,I)):((m.f&Gn)!==0&&(m.f^=Gn),gi(m,y)),p&&(l.update_pending_count(-1),h||b.decrement()),Uv()};v.promise.then(k,y=>k(null,y||"unknown"))}),pl(()=>{for(const v of g.values())v.reject(ro)}),new Promise(v=>{function b(h){function k(){h===d?v(m):b(d)}h.then(k,k)}b(d)})}function lt(i){const n=oo(i);return ah(n),n}function Ae(i){const n=oo(i);return n.equals=Sv,n}function Dv(i){var n=i.effects;if(n!==null){i.effects=null;for(var u=0;u<n.length;u+=1)Kt(n[u])}}function ix(i){for(var n=i.parent;n!==null;){if((n.f&Zt)===0)return n;n=n.parent}return null}function dl(i){var n,u=Xe;jr(ix(i));try{Dv(i),n=dh(i)}finally{jr(u)}return n}function Mv(i){var n=dl(i);if(i.equals(n)||(i.v=n,i.wv=lh()),!Hn){var u=(_n||(i.f&zr)!==0)&&i.deps!==null?rn:er;rr(i,u)}}const vn=new Map;function hn(i,n){var u={f:0,v:i,reactions:null,equals:kv,rv:0,wv:0};return u}function Ar(i,n){const u=hn(i);return ah(u),u}function ee(i,n=!1,u=!0){const l=hn(i);return n||(l.equals=Sv),t&&u&&xt!==null&&xt.l!==null&&(xt.l.s??=[]).push(l),l}function Av(i,n){return $(i,C(()=>c(i))),n}function $(i,n,u=!1){at!==null&&(!Rr||(at.f&$v)!==0)&&no()&&(at.f&(Zt|qn|ha|$v))!==0&&!an?.includes(i)&&Zk();let l=u?bn(n):n;return gi(i,l)}function gi(i,n){if(!i.equals(n)){var u=i.v;Hn?vn.set(i,n):vn.set(i,u),i.v=n;var l=Mr.ensure();l.capture(i,u),(i.f&Zt)!==0&&((i.f&br)!==0&&dl(i),rr(i,(i.f&zr)===0?er:rn)),i.wv=lh(),Zv(i,br),no()&&Xe!==null&&(Xe.f&er)!==0&&(Xe.f&(tn|gn))===0&&(Tr===null?gx([i]):Tr.push(i))}return n}function Lv(i,n=1){var u=c(i),l=n===1?u++:u--;return $(i,u),l}function ao(i){$(i,i.v+1)}function Zv(i,n){var u=i.reactions;if(u!==null)for(var l=no(),d=u.length,m=0;m<d;m++){var p=u[m],g=p.f;if(!(!l&&p===Xe)){var v=(g&br)===0;v&&rr(p,n),(g&Zt)!==0?Zv(p,rn):v&&((g&qn)!==0&&Bn!==null&&Bn.push(p),Yn(p))}}}function bn(i){if(typeof i!="object"||i===null||Gr in i)return i;const n=Be(i);if(n!==to&&n!==ge)return i;var u=new Map,l=pn(i),d=Ar(0),m=Xn,p=g=>{if(Xn===m)return g();var v=at,b=Xn;cr(null),uh(m);var h=g();return cr(v),uh(b),h};return l&&u.set("length",Ar(i.length)),new Proxy(i,{defineProperty(g,v,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Ak();var h=u.get(v);return h===void 0?h=p(()=>{var k=Ar(b.value);return u.set(v,k),k}):$(h,b.value,!0),!0},deleteProperty(g,v){var b=u.get(v);if(b===void 0){if(v in g){const h=p(()=>Ar(Ft));u.set(v,h),ao(d)}}else $(b,Ft),ao(d);return!0},get(g,v,b){if(v===Gr)return i;var h=u.get(v),k=v in g;if(h===void 0&&(!k||Sr(g,v)?.writable)&&(h=p(()=>{var I=bn(k?g[v]:Ft),x=Ar(I);return x}),u.set(v,h)),h!==void 0){var y=c(h);return y===Ft?void 0:y}return Reflect.get(g,v,b)},getOwnPropertyDescriptor(g,v){var b=Reflect.getOwnPropertyDescriptor(g,v);if(b&&"value"in b){var h=u.get(v);h&&(b.value=c(h))}else if(b===void 0){var k=u.get(v),y=k?.v;if(k!==void 0&&y!==Ft)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return b},has(g,v){if(v===Gr)return!0;var b=u.get(v),h=b!==void 0&&b.v!==Ft||Reflect.has(g,v);if(b!==void 0||Xe!==null&&(!h||Sr(g,v)?.writable)){b===void 0&&(b=p(()=>{var y=h?bn(g[v]):Ft,I=Ar(y);return I}),u.set(v,b));var k=c(b);if(k===Ft)return!1}return h},set(g,v,b,h){var k=u.get(v),y=v in g;if(l&&v==="length")for(var I=b;I<k.v;I+=1){var x=u.get(I+"");x!==void 0?$(x,Ft):I in g&&(x=p(()=>Ar(Ft)),u.set(I+"",x))}if(k===void 0)(!y||Sr(g,v)?.writable)&&(k=p(()=>Ar(void 0)),$(k,bn(b)),u.set(v,k));else{y=k.v!==Ft;var O=p(()=>bn(b));$(k,O)}var j=Reflect.getOwnPropertyDescriptor(g,v);if(j?.set&&j.set.call(h,b),!y){if(l&&typeof v=="string"){var Y=u.get("length"),ne=Number(v);Number.isInteger(ne)&&ne>=Y.v&&$(Y,ne+1)}ao(d)}return!0},ownKeys(g){c(d);var v=Reflect.ownKeys(g).filter(k=>{var y=u.get(k);return y===void 0||y.v!==Ft});for(var[b,h]of u)h.v!==Ft&&!(b in g)&&v.push(b);return v},setPrototypeOf(){Lk()}})}function Rv(i){try{if(i!==null&&typeof i=="object"&&Gr in i)return i[Gr]}catch{}return i}function ox(i,n){return Object.is(Rv(i),Rv(n))}var qv,Fv,Wv,Qv;function fl(){if(qv===void 0){qv=window,Fv=/Firefox/.test(navigator.userAgent);var i=Element.prototype,n=Node.prototype,u=Text.prototype;Wv=Sr(n,"firstChild").get,Qv=Sr(n,"nextSibling").get,zt(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),zt(u)&&(u.__t=void 0)}}function Nr(i=""){return document.createTextNode(i)}function Lr(i){return Wv.call(i)}function Jr(i){return Qv.call(i)}function L(i,n){if(!Me)return Lr(i);var u=Lr(Je);if(u===null)u=Je.appendChild(Nr());else if(n&&u.nodeType!==ba){var l=Nr();return u?.before(l),Yt(l),l}return Yt(u),u}function Ne(i,n=!1){if(!Me){var u=Lr(i);return u instanceof Comment&&u.data===""?Jr(u):u}if(n&&Je?.nodeType!==ba){var l=Nr();return Je?.before(l),Yt(l),l}return Je}function me(i,n=1,u=!1){let l=Me?Je:i;for(var d;n--;)d=l,l=Jr(l);if(!Me)return l;if(u&&l?.nodeType!==ba){var m=Nr();return l===null?d?.after(m):l.before(m),Yt(m),m}return Yt(l),l}function ml(i){i.textContent=""}function Gv(){return!1}function ax(i,n){if(n){const u=document.body;i.autofocus=!0,on(()=>{document.activeElement===u&&i.focus()})}}function sx(i){Me&&Lr(i)!==null&&ml(i)}let Vv=!1;function Jv(){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 Sa(i){var n=at,u=Xe;cr(null),jr(null);try{return i()}finally{cr(n),jr(u)}}function Bv(i,n,u,l=u){i.addEventListener(n,()=>Sa(u));const d=i.__on_r;d?i.__on_r=()=>{d(),l(!0)}:i.__on_r=()=>l(!0),Jv()}function Yv(i){Xe===null&&at===null&&Ck(),at!==null&&(at.f&zr)!==0&&Xe===null&&Pk(),Hn&&Ek()}function ux(i,n){var u=n.last;u===null?n.last=n.first=i:(u.next=i,i.prev=u,n.last=i)}function Zr(i,n,u,l=!0){var d=Xe;d!==null&&(d.f&Dr)!==0&&(i|=Dr);var m={ctx:xt,deps:null,nodes_start:null,nodes_end:null,f:i|br,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{hi(m),m.f|=il}catch(v){throw Kt(m),v}else n!==null&&Yn(m);if(l){var p=m;if(u&&p.deps===null&&p.teardown===null&&p.nodes_start===null&&p.first===p.last&&(p.f&Qn)===0&&(p=p.first),p!==null&&(p.parent=d,d!==null&&ux(p,d),at!==null&&(at.f&Zt)!==0&&(i&gn)===0)){var g=at;(g.effects??=[]).push(p)}}return m}function lx(){return at!==null&&!Rr}function pl(i){const n=Zr(fi,null,!1);return rr(n,er),n.teardown=i,n}function so(i){Yv();var n=Xe.f,u=!at&&(n&tn)!==0&&(n&il)===0;if(u){var l=xt;(l.e??=[]).push(i)}else return Kv(i)}function Kv(i){return Zr(Rn|_v,i,!1)}function Hv(i){return Yv(),Zr(fi|_v,i,!0)}function cx(i){Mr.ensure();const n=Zr(gn|Qn,i,!0);return()=>{Kt(n)}}function dx(i){Mr.ensure();const n=Zr(gn|Qn,i,!0);return(u={})=>new Promise(l=>{u.outro?$n(n,()=>{Kt(n),l(void 0)}):(Kt(n),l(void 0))})}function gl(i){return Zr(Rn,i,!1)}function fe(i,n){var u=xt,l={effect:null,ran:!1,deps:i};u.l.$.push(l),l.effect=Kn(()=>{i(),!l.ran&&(l.ran=!0,C(n))})}function sr(){var i=xt;Kn(()=>{for(var n of i.l.$){n.deps();var u=n.effect;(u.f&er)!==0&&rr(u,rn),lo(u)&&hi(u),n.ran=!1}})}function fx(i){return Zr(ha|Qn,i,!0)}function Kn(i,n=0){return Zr(fi|n,i,!0)}function Se(i,n=[],u=[]){Cv(n,u,l=>{Zr(fi,()=>i(...l.map(c)),!0)})}function yn(i,n=0){var u=Zr(qn|n,i,!0);return u}function tr(i,n=!0){return Zr(tn|Qn,i,!0,n)}function Xv(i){var n=i.teardown;if(n!==null){const u=Hn,l=at;oh(!0),cr(null);try{n.call(null)}finally{oh(u),cr(l)}}}function eh(i,n=!1){var u=i.first;for(i.first=i.last=null;u!==null;){const d=u.ac;d!==null&&Sa(()=>{d.abort(ro)});var l=u.next;(u.f&gn)!==0?u.parent=null:Kt(u,n),u=l}}function mx(i){for(var n=i.first;n!==null;){var u=n.next;(n.f&tn)===0&&Kt(n),n=u}}function Kt(i,n=!0){var u=!1;(n||(i.f&Nk)!==0)&&i.nodes_start!==null&&i.nodes_end!==null&&(px(i.nodes_start,i.nodes_end),u=!0),eh(i,n&&!u),za(i,0),rr(i,Fn);var l=i.transitions;if(l!==null)for(const m of l)m.stop();Xv(i);var d=i.parent;d!==null&&d.first!==null&&th(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes_start=i.nodes_end=i.ac=null}function px(i,n){for(;i!==null;){var u=i===n?null:Jr(i);i.remove(),i=u}}function th(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 $n(i,n){var u=[];vl(i,u,!0),rh(u,()=>{Kt(i),n&&n()})}function rh(i,n){var u=i.length;if(u>0){var l=()=>--u||n();for(var d of i)d.out(l)}else n()}function vl(i,n,u){if((i.f&Dr)===0){if(i.f^=Dr,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&Wn)!==0||(l.f&tn)!==0;vl(l,n,m?u:!1),l=d}}}function Ia(i){nh(i,!0)}function nh(i,n){if((i.f&Dr)!==0){i.f^=Dr,(i.f&er)===0&&(rr(i,br),Yn(i));for(var u=i.first;u!==null;){var l=u.next,d=(u.f&Wn)!==0||(u.f&tn)!==0;nh(u,d?n:!1),u=l}if(i.transitions!==null)for(const m of i.transitions)(m.is_global||n)&&m.in()}}let vi=!1;function ih(i){vi=i}let Hn=!1;function oh(i){Hn=i}let at=null,Rr=!1;function cr(i){at=i}let Xe=null;function jr(i){Xe=i}let an=null;function ah(i){at!==null&&(an===null?an=[i]:an.push(i))}let ur=null,$r=0,Tr=null;function gx(i){Tr=i}let sh=1,uo=0,Xn=uo;function uh(i){Xn=i}let _n=!1;function lh(){return++sh}function lo(i){var n=i.f;if((n&br)!==0)return!0;if((n&rn)!==0){var u=i.deps,l=(n&zr)!==0;if(u!==null){var d,m,p=(n&va)!==0,g=l&&Xe!==null&&!_n,v=u.length;if((p||g)&&(Xe===null||(Xe.f&Fn)===0)){var b=i,h=b.parent;for(d=0;d<v;d++)m=u[d],(p||!m?.reactions?.includes(b))&&(m.reactions??=[]).push(b);p&&(b.f^=va),g&&h!==null&&(h.f&zr)===0&&(b.f^=zr)}for(d=0;d<v;d++)if(m=u[d],lo(m)&&Mv(m),m.wv>i.wv)return!0}(!l||Xe!==null&&!_n)&&rr(i,er)}return!1}function ch(i,n,u=!0){var l=i.reactions;if(l!==null&&!an?.includes(i))for(var d=0;d<l.length;d++){var m=l[d];(m.f&Zt)!==0?ch(m,n,!1):n===m&&(u?rr(m,br):(m.f&er)!==0&&rr(m,rn),Yn(m))}}function dh(i){var n=ur,u=$r,l=Tr,d=at,m=_n,p=an,g=xt,v=Rr,b=Xn,h=i.f;ur=null,$r=0,Tr=null,_n=(h&zr)!==0&&(Rr||!vi||at===null),at=(h&(tn|gn))===0?i:null,an=null,mi(i.ctx),Rr=!1,Xn=++uo,i.ac!==null&&(Sa(()=>{i.ac.abort(ro)}),i.ac=null);try{i.f|=ol;var k=i.fn,y=k(),I=i.deps;if(ur!==null){var x;if(za(i,$r),I!==null&&$r>0)for(I.length=$r+ur.length,x=0;x<ur.length;x++)I[$r+x]=ur[x];else i.deps=I=ur;if(!_n||(h&Zt)!==0&&i.reactions!==null)for(x=$r;x<I.length;x++)(I[x].reactions??=[]).push(i)}else I!==null&&$r<I.length&&(za(i,$r),I.length=$r);if(no()&&Tr!==null&&!Rr&&I!==null&&(i.f&(Zt|rn|br))===0)for(x=0;x<Tr.length;x++)ch(Tr[x],i);return d!==null&&d!==i&&(uo++,Tr!==null&&(l===null?l=Tr:l.push(...Tr))),(i.f&Gn)!==0&&(i.f^=Gn),y}catch(O){return Nv(O)}finally{i.f^=ol,ur=n,$r=u,Tr=l,at=d,_n=m,an=p,mi(g),Rr=v,Xn=b}}function vx(i,n){let u=n.reactions;if(u!==null){var l=rl.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&&(ur===null||!ur.includes(n))&&(rr(n,rn),(n.f&(zr|va))===0&&(n.f^=va),Dv(n),za(n,0))}function za(i,n){var u=i.deps;if(u!==null)for(var l=n;l<u.length;l++)vx(i,u[l])}function hi(i){var n=i.f;if((n&Fn)===0){rr(i,er);var u=Xe,l=vi;Xe=i,vi=!0;try{(n&qn)!==0?mx(i):eh(i),Xv(i);var d=dh(i);i.teardown=typeof d=="function"?d:null,i.wv=sh;var m;Xi&&a&&(i.f&br)!==0&&i.deps}finally{vi=l,Xe=u}}}async function hx(){await Promise.resolve(),dt()}function c(i){var n=i.f,u=(n&Zt)!==0;if(at!==null&&!Rr){var l=Xe!==null&&(Xe.f&Fn)!==0;if(!l&&!an?.includes(i)){var d=at.deps;if((at.f&ol)!==0)i.rv<uo&&(i.rv=uo,ur===null&&d!==null&&d[$r]===i?$r++:ur===null?ur=[i]:(!_n||!ur.includes(i))&&ur.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&zr)===0&&(p.f^=zr)}if(Hn){if(vn.has(i))return vn.get(i);if(u){p=i;var v=p.v;return((p.f&er)===0&&p.reactions!==null||fh(p))&&(v=dl(p)),vn.set(p,v),v}}else u&&(p=i,lo(p)&&Mv(p));if((i.f&Gn)!==0)throw i.v;return i.v}function fh(i){if(i.v===Ft)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(vn.has(n)||(n.f&Zt)!==0&&fh(n))return!0;return!1}function C(i){var n=Rr;try{return Rr=!0,i()}finally{Rr=n}}const bx=-7169;function rr(i,n){i.f=i.f&bx|n}function z(i){if(!(typeof i!="object"||!i||i instanceof EventTarget)){if(Gr in i)hl(i);else if(!Array.isArray(i))for(let n in i){const u=i[n];typeof u=="object"&&u&&Gr in u&&hl(u)}}}function hl(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{hl(i[l],n)}catch{}const u=Be(i);if(u!==Object.prototype&&u!==Array.prototype&&u!==Map.prototype&&u!==Set.prototype&&u!==Date.prototype){const l=eo(u);for(let d in l){const m=l[d].get;if(m)try{m.call(i)}catch{}}}}}const mh=new Set,bl=new Set;function ph(i,n,u,l={}){function d(m){if(l.capture||co.call(n,m),!m.cancelBubble)return Sa(()=>u?.call(this,m))}return i.startsWith("pointer")||i.startsWith("touch")||i==="wheel"?on(()=>{n.addEventListener(i,d,l)}):n.addEventListener(i,d,l),d}function gh(i,n,u,l={}){var d=ph(n,i,u,l);return()=>{i.removeEventListener(n,d,l)}}function yl(i){for(var n=0;n<i.length;n++)mh.add(i[n]);for(var u of bl)u(i)}let vh=null;function co(i){var n=this,u=n.ownerDocument,l=i.type,d=i.composedPath?.()||[],m=d[0]||i.target;vh=i;var p=0,g=vh===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){Qr(i,"currentTarget",{configurable:!0,get(){return m||u}});var h=at,k=Xe;cr(null),jr(null);try{for(var y,I=[];m!==null;){var x=m.assignedSlot||m.parentNode||m.host||null;try{var O=m["__"+l];if(O!=null&&(!m.disabled||i.target===m))if(pn(O)){var[j,...Y]=O;j.apply(m,[i,...Y])}else O.call(m,i)}catch(ne){y?I.push(ne):y=ne}if(i.cancelBubble||x===n||x===null)break;m=x}if(y){for(let ne of I)queueMicrotask(()=>{throw ne});throw y}}finally{i.__root=n,delete i.currentTarget,cr(h),jr(k)}}}function hh(i){var n=document.createElement("template");return n.innerHTML=i.replaceAll("<!>","<!---->"),n.content}function qr(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,l=(n&ut)!==0,d,m=!i.startsWith("<!>");return()=>{if(Me)return qr(Je,null),Je;d===void 0&&(d=hh(m?i:"<!>"+i),u||(d=Lr(d)));var p=l||Fv?document.importNode(d,!0):d.cloneNode(!0);if(u){var g=Lr(p),v=p.lastChild;qr(g,v)}else qr(p,p);return p}}function yx(i,n,u="svg"){var l=!i.startsWith("<!>"),d=`<${u}>${l?i:"<!>"+i}</${u}>`,m;return()=>{if(Me)return qr(Je,null),Je;if(!m){var p=hh(d),g=Lr(p);m=Lr(g)}var v=m.cloneNode(!0);return qr(v,v),v}}function wn(i,n){return yx(i,n,"svg")}function kn(i=""){if(!Me){var n=Nr(i+"");return qr(n,n),n}var u=Je;return u.nodeType!==ba&&(u.before(u=Nr()),Yt(u)),qr(u,u),u}function Ze(){if(Me)return qr(Je,null),Je;var i=document.createDocumentFragment(),n=document.createComment(""),u=Nr();return i.append(n,u),qr(n,u),i}function T(i,n){if(Me){Xe.nodes_end=Je,nn();return}i!==null&&i.before(n)}function Na(){if(Me&&Je&&Je.nodeType===Vn&&Je.textContent?.startsWith("$")){const i=Je.textContent.substring(1);return nn(),i}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function $x(i){return i.endsWith("capture")&&i!=="gotpointercapture"&&i!=="lostpointercapture"}const _x=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function wx(i){return _x.includes(i)}const kx={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 xx(i){return i=i.toLowerCase(),kx[i]??i}const Sx=["touchstart","touchmove"];function Ix(i){return Sx.includes(i)}const zx=["textarea","script","style","title"];function Nx(i){return zx.includes(i)}function je(i,n){var u=n==null?"":typeof n=="object"?n+"":n;u!==(i.__t??=i.nodeValue)&&(i.__t=u,i.nodeValue=u+"")}function bh(i,n){return yh(i,n)}function jx(i,n){fl(),n.intro=n.intro??!1;const u=n.target,l=Me,d=Je;try{for(var m=Lr(u);m&&(m.nodeType!==Vn||m.data!==ct);)m=Jr(m);if(!m)throw Wr;ar(!0),Yt(m);const p=yh(i,{...n,anchor:m});return ar(!1),p}catch(p){if(p instanceof Error&&p.message.split(`
|
|
45
|
+
`).some(g=>g.startsWith("https://svelte.dev/e/")))throw p;return p!==Wr&&console.warn("Failed to hydrate: ",p),n.recover===!1&&Dk(),fl(),ml(u),ar(!1),bh(i,n)}finally{ar(l),Yt(d)}}const bi=new Map;function yh(i,{target:n,anchor:u,props:l={},events:d,context:m,intro:p=!0}){fl();var g=new Set,v=k=>{for(var y=0;y<k.length;y++){var I=k[y];if(!g.has(I)){g.add(I);var x=Ix(I);n.addEventListener(I,co,{passive:x});var O=bi.get(I);O===void 0?(document.addEventListener(I,co,{passive:x}),bi.set(I,1)):bi.set(I,O+1)}}};v(An(mh)),bl.add(v);var b=void 0,h=dx(()=>{var k=u??n.appendChild(Nr());return Xk(k,{pending:()=>{}},y=>{if(m){Ye({});var I=xt;I.c=m}if(d&&(l.$$events=d),Me&&qr(y,null),b=i(y,l)||{},Me&&(Xe.nodes_end=Je,Je===null||Je.nodeType!==Vn||Je.data!==or))throw ya(),Wr;m&&Ke()}),()=>{for(var y of g){n.removeEventListener(y,co);var I=bi.get(y);--I===0?(document.removeEventListener(y,co),bi.delete(y)):bi.set(y,I)}bl.delete(v),k!==u&&k.parentNode?.removeChild(k)}});return $l.set(b,h),b}let $l=new WeakMap;function Tx(i,n){const u=$l.get(i);return u?($l.delete(i),u(n)):Promise.resolve()}function Rt(i,n,...u){var l=i,d=gt,m;yn(()=>{d!==(d=n())&&(m&&(Kt(m),m=null),m=tr(()=>d(l,...u)))},Wn),Me&&(l=Je)}function xn(i){xt===null&&sl(),t&&xt.l!==null?Ox(xt).m.push(i):so(()=>{const n=C(i);if(typeof n=="function")return n})}function ja(i){xt===null&&sl(),xn(()=>()=>C(i))}function Ox(i){var n=i.l;return n.u??={a:[],b:[],m:[]}}function Ex(){return Symbol(ga)}function ae(i,n,u=!1){Me&&nn();var l=i,d=null,m=null,p=Ft,g=u?Wn:0,v=!1;const b=(y,I=!0)=>{v=!0,k(I,y)};function h(){var y=p?d:m,I=p?m:d;y&&Ia(y),I&&$n(I,()=>{p?m=null:d=null})}const k=(y,I)=>{if(p===(p=y))return;let x=!1;if(Me){const Y=wv(l)===vt;!!p===Y&&(l=$a(),Yt(l),ar(!1),x=!0)}var O=Gv(),j=l;p?d??=I&&tr(()=>I(j)):m??=I&&tr(()=>I(j)),O||h(),x&&ar(!0)};yn(()=>{v=!1,n(b),v||k(null,null)},g),Me&&(l=Je)}function _r(i,n){return n}function Px(i,n,u){for(var l=i.items,d=[],m=n.length,p=0;p<m;p++)vl(n[p].e,d,!0);var g=m>0&&d.length===0&&u!==null;if(g){var v=u.parentNode;ml(v),v.append(u),l.clear(),Br(i,n[0].prev,n[m-1].next)}rh(d,()=>{for(var b=0;b<m;b++){var h=n[b];g||(l.delete(h.k),Br(i,h.prev,h.next)),Kt(h.e,!g)}})}function dr(i,n,u,l,d,m=null){var p=i,g={flags:n,items:new Map,first:null},v=(n&H)!==0;if(v){var b=i;p=Me?Yt(Lr(b)):b.appendChild(Nr())}Me&&nn();var h=null,k=!1,y=new Map,I=Ae(()=>{var Y=u();return pn(Y)?Y:Y==null?[]:An(Y)}),x,O;function j(){Cx(O,x,g,y,p,d,n,l,u),m!==null&&(x.length===0?h?Ia(h):h=tr(()=>m(p)):h!==null&&$n(h,()=>{h=null}))}yn(()=>{O??=Xe,x=c(I);var Y=x.length;if(k&&Y===0)return;k=Y===0;let ne=!1;if(Me){var R=wv(p)===vt;R!==(Y===0)&&(p=$a(),Yt(p),ar(!1),ne=!0)}if(Me){for(var V=null,J,A=0;A<Y;A++){if(Je.nodeType===Vn&&Je.data===or){p=Je,ne=!0,ar(!1);break}var re=x[A],oe=l(re,A);J=$h(Je,g,V,null,re,oe,A,d,n,u),g.items.set(oe,J),V=J}Y>0&&Yt($a())}Me?Y===0&&m&&(h=tr(()=>m(p))):j(),ne&&ar(!0),c(I)}),Me&&(p=Je)}function Cx(i,n,u,l,d,m,p,g,v){var b=(p&pe)!==0,h=(p&(w|Z))!==0,k=n.length,y=u.items,I=u.first,x=I,O,j=null,Y,ne=[],R=[],V,J,A,re;if(b)for(re=0;re<k;re+=1)V=n[re],J=g(V,re),A=y.get(J),A!==void 0&&(A.a?.measure(),(Y??=new Set).add(A));for(re=0;re<k;re+=1){if(V=n[re],J=g(V,re),A=y.get(J),A===void 0){var oe=l.get(J);if(oe!==void 0){l.delete(J),y.set(J,oe);var we=j?j.next:x;Br(u,j,oe),Br(u,oe,we),_l(oe,we,d),j=oe}else{var Ie=x?x.e.nodes_start:d;j=$h(Ie,u,j,j===null?u.first:j.next,V,J,re,m,p,v)}y.set(J,j),ne=[],R=[],x=j.next;continue}if(h&&Ux(A,V,re,p),(A.e.f&Dr)!==0&&(Ia(A.e),b&&(A.a?.unfix(),(Y??=new Set).delete(A))),A!==x){if(O!==void 0&&O.has(A)){if(ne.length<R.length){var ke=R[0],xe;j=ke.prev;var Q=ne[0],G=ne[ne.length-1];for(xe=0;xe<ne.length;xe+=1)_l(ne[xe],ke,d);for(xe=0;xe<R.length;xe+=1)O.delete(R[xe]);Br(u,Q.prev,G.next),Br(u,j,Q),Br(u,G,ke),x=ke,j=G,re-=1,ne=[],R=[]}else O.delete(A),_l(A,x,d),Br(u,A.prev,A.next),Br(u,A,j===null?u.first:j.next),Br(u,j,A),j=A;continue}for(ne=[],R=[];x!==null&&x.k!==J;)(x.e.f&Dr)===0&&(O??=new Set).add(x),R.push(x),x=x.next;if(x===null)continue;A=x}ne.push(A),j=A,x=A.next}if(x!==null||O!==void 0){for(var B=O===void 0?[]:An(O);x!==null;)(x.e.f&Dr)===0&&B.push(x),x=x.next;var F=B.length;if(F>0){var P=(p&H)!==0&&k===0?d:null;if(b){for(re=0;re<F;re+=1)B[re].a?.measure();for(re=0;re<F;re+=1)B[re].a?.fix()}Px(u,B,P)}}b&&on(()=>{if(Y!==void 0)for(A of Y)A.a?.apply()}),i.first=u.first&&u.first.e,i.last=j&&j.e;for(var S of l.values())Kt(S.e);l.clear()}function Ux(i,n,u,l){(l&w)!==0&&gi(i.v,n),(l&Z)!==0?gi(i.i,u):i.i=u}function $h(i,n,u,l,d,m,p,g,v,b,h){var k=(v&w)!==0,y=(v&ce)===0,I=k?y?ee(d,!1,!1):hn(d):d,x=(v&Z)===0?p:hn(p),O={i:x,v:I,k:m,a:null,e:null,prev:u,next:l};try{if(i===null){var j=document.createDocumentFragment();j.append(i=Nr())}return O.e=tr(()=>g(i,I,x,b),Me),O.e.prev=u&&u.e,O.e.next=l&&l.e,u===null?h||(n.first=O):(u.next=O,u.e.next=O.e),l!==null&&(l.prev=O,l.e.prev=O.e),O}finally{}}function _l(i,n,u){for(var l=i.next?i.next.e.nodes_start:u,d=n?n.e.nodes_start:u,m=i.e.nodes_start;m!==null&&m!==l;){var p=Jr(m);d.before(m),m=p}}function Br(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 Sn(i,n,u,l,d){Me&&nn();var m=n.$$slots?.[u],p=!1;m===!0&&(m=n.children,p=!0),m===void 0||m(i,p?()=>l:l)}function Ta(i,n,u){Me&&nn();var l=i,d,m,p=null,g=null;function v(){m&&($n(m),m=null),p&&(p.lastChild.remove(),l.before(p),p=null),m=g,g=null}yn(()=>{if(d!==(d=n())){var b=Gv();if(d){var h=l;b&&(p=document.createDocumentFragment(),p.append(h=Nr()),m&&Tt.skipped_effects.add(m)),g=tr(()=>u(h,d))}b?Tt.add_callback(v):v()}},Wn),Me&&(l=Je)}function _h(i,n,u,l,d,m){let p=Me;Me&&nn();var g,v,b=null;Me&&Je.nodeType===Tk&&(b=Je,nn());var h=Me?Je:i,k;yn(()=>{const y=n()||null;var I=tl;y!==g&&(k&&(y===null?$n(k,()=>{k=null,v=null}):y===v?Ia(k):Kt(k)),y&&y!==v&&(k=tr(()=>{if(b=Me?b:document.createElementNS(I,y),qr(b,b),l){Me&&Nx(y)&&b.append(document.createComment(""));var x=Me?Lr(b):b.appendChild(Nr());Me&&(x===null?ar(!1):Yt(x)),l(b,x)}Xe.nodes_end=b,h.before(b)})),g=y,g&&(v=g))},Wn),p&&(ar(!0),Yt(h))}function Dx(i,n){var u=void 0,l;yn(()=>{u!==(u=n())&&(l&&(Kt(l),l=null),u&&(l=tr(()=>{gl(()=>u(i))})))})}function wh(i){var n,u,l="";if(typeof i=="string"||typeof i=="number")l+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(n=0;n<d;n++)i[n]&&(u=wh(i[n]))&&(l&&(l+=" "),l+=u)}else for(u in i)i[u]&&(l&&(l+=" "),l+=u);return l}function fo(){for(var i,n,u=0,l="",d=arguments.length;u<d;u++)(i=arguments[u])&&(n=wh(i))&&(l&&(l+=" "),l+=n);return l}function Mx(i){return typeof i=="object"?fo(i):i??""}const kh=[...`
|
|
46
|
+
\r\f \v\uFEFF`];function Ax(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||kh.includes(l[p-1]))&&(g===l.length||kh.includes(l[g]))?l=(p===0?"":l.substring(0,p))+l.substring(g+1):p=g}}return l===""?null:l}function xh(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 wl(i){return i[0]!=="-"||i[1]!=="-"?i.toLowerCase():i}function Lx(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(wl)),d&&v.push(...Object.keys(d).map(wl));var b=0,h=-1;const O=i.length;for(var k=0;k<O;k++){var y=i[k];if(g?y==="/"&&i[k-1]==="*"&&(g=!1):m?m===y&&(m=!1):y==="/"&&i[k+1]==="*"?g=!0:y==='"'||y==="'"?m=y:y==="("?p++:y===")"&&p--,!g&&m===!1&&p===0){if(y===":"&&h===-1)h=k;else if(y===";"||k===O-1){if(h!==-1){var I=wl(i.substring(b,h).trim());if(!v.includes(I)){y!==";"&&k++;var x=i.substring(b,k).trim();u+=" "+x+";"}}b=k+1,h=-1}}}}return l&&(u+=xh(l)),d&&(u+=xh(d,!0)),u=u.trim(),u===""?null:u}return i==null?null:String(i)}function sn(i,n,u,l,d,m){var p=i.__className;if(Me||p!==u||p===void 0){var g=Ax(u,l,m);(!Me||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 kl(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 mo(i,n,u,l){var d=i.__style;if(Me||d!==n){var m=Lx(n,l);(!Me||m!==i.getAttribute("style"))&&(m==null?i.removeAttribute("style"):i.style.cssText=m),i.__style=n}else l&&(Array.isArray(l)?(kl(i,u?.[0],l[0]),kl(i,u?.[1],l[1],"important")):kl(i,u,l));return l}function xl(i,n,u=!1){if(i.multiple){if(n==null)return;if(!pn(n))return qk();for(var l of i.options)l.selected=n.includes(Sh(l));return}for(l of i.options){var d=Sh(l);if(ox(d,n)){l.selected=!0;return}}(!u||n!==void 0)&&(i.selectedIndex=-1)}function Zx(i){var n=new MutationObserver(()=>{xl(i,i.__value)});n.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),pl(()=>{n.disconnect()})}function Sh(i){return"__value"in i?i.__value:i.value}const po=Symbol("class"),go=Symbol("style"),Ih=Symbol("is custom element"),zh=Symbol("is html");function Rx(i){if(Me){var n=!1,u=()=>{if(!n){if(n=!0,i.hasAttribute("value")){var l=i.value;ei(i,"value",null),i.value=l}if(i.hasAttribute("checked")){var d=i.checked;ei(i,"checked",null),i.checked=d}}};i.__on_r=u,on(u),Jv()}}function qx(i,n){n?i.hasAttribute("selected")||i.setAttribute("selected",""):i.removeAttribute("selected")}function ei(i,n,u,l){var d=Nh(i);Me&&(d[n]=i.getAttribute(n),n==="src"||n==="srcset"||n==="href"&&i.nodeName==="LINK")||d[n]!==(d[n]=u)&&(n==="loading"&&(i[jk]=u),u==null?i.removeAttribute(n):typeof u!="string"&&Th(i).includes(n)?i[n]=u:i.setAttribute(n,u))}function Fx(i,n,u,l,d=!1,m=!1){if(Me&&d&&i.tagName==="INPUT"){var p=i,g=p.type==="checkbox"?"defaultChecked":"defaultValue";g in u||Rx(p)}var v=Nh(i),b=v[Ih],h=!v[zh];let k=Me&&b;k&&ar(!1);var y=n||{},I=i.tagName==="OPTION";for(var x in n)x in u||(u[x]=null);u.class?u.class=Mx(u.class):u[po]&&(u.class=null),u[go]&&(u.style??=null);var O=Th(i);for(const A in u){let re=u[A];if(I&&A==="value"&&re==null){i.value=i.__value="",y[A]=re;continue}if(A==="class"){var j=i.namespaceURI==="http://www.w3.org/1999/xhtml";sn(i,j,re,l,n?.[po],u[po]),y[A]=re,y[po]=u[po];continue}if(A==="style"){mo(i,re,n?.[go],u[go]),y[A]=re,y[go]=u[go];continue}var Y=y[A];if(!(re===Y&&!(re===void 0&&i.hasAttribute(A)))){y[A]=re;var ne=A[0]+A[1];if(ne!=="$$")if(ne==="on"){const oe={},we="$$"+A;let Ie=A.slice(2);var R=wx(Ie);if($x(Ie)&&(Ie=Ie.slice(0,-7),oe.capture=!0),!R&&Y){if(re!=null)continue;i.removeEventListener(Ie,y[we],oe),y[we]=null}if(re!=null)if(R)i[`__${Ie}`]=re,yl([Ie]);else{let ke=function(xe){y[A].call(this,xe)};y[we]=ph(Ie,i,ke,oe)}else R&&(i[`__${Ie}`]=void 0)}else if(A==="style")ei(i,A,re);else if(A==="autofocus")ax(i,!!re);else if(!b&&(A==="__value"||A==="value"&&re!=null))i.value=i.__value=re;else if(A==="selected"&&I)qx(i,re);else{var V=A;h||(V=xx(V));var J=V==="defaultValue"||V==="defaultChecked";if(re==null&&!b&&!J)if(v[A]=null,V==="value"||V==="checked"){let oe=i;const we=n===void 0;if(V==="value"){let Ie=oe.defaultValue;oe.removeAttribute(V),oe.defaultValue=Ie,oe.value=oe.__value=we?Ie:null}else{let Ie=oe.defaultChecked;oe.removeAttribute(V),oe.defaultChecked=Ie,oe.checked=we?Ie:!1}}else i.removeAttribute(A);else J||O.includes(V)&&(b||typeof re!="string")?(i[V]=re,V in v&&(v[V]=Ft)):typeof re!="function"&&ei(i,V,re)}}}return k&&ar(!0),y}function Wt(i,n,u=[],l=[],d,m=!1,p=!1){Cv(u,l,g=>{var v=void 0,b={},h=i.nodeName==="SELECT",k=!1;if(yn(()=>{var I=n(...g.map(c)),x=Fx(i,v,I,d,m,p);k&&h&&"value"in I&&xl(i,I.value);for(let j of Object.getOwnPropertySymbols(b))I[j]||Kt(b[j]);for(let j of Object.getOwnPropertySymbols(I)){var O=I[j];j.description===ga&&(!v||O!==v[j])&&(b[j]&&Kt(b[j]),b[j]=tr(()=>Dx(i,()=>O))),x[j]=O}v=x}),h){var y=i;gl(()=>{xl(y,v.value,!0),Zx(y)})}k=!0})}function Nh(i){return i.__attributes??={[Ih]:i.nodeName.includes("-"),[zh]:i.namespaceURI===pa}}var jh=new Map;function Th(i){var n=i.getAttribute("is")||i.nodeName,u=jh.get(n);if(u)return u;jh.set(n,u=[]);for(var l,d=i,m=Element.prototype;m!==d;){l=eo(d);for(var p in l)l[p].set&&u.push(p);d=Be(d)}return u}function Oa(i,n,u=n){var l=new WeakSet;Bv(i,"input",async d=>{var m=d?i.defaultValue:i.value;if(m=Sl(i)?Il(m):m,u(m),Tt!==null&&l.add(Tt),await hx(),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))}}}),(Me&&i.defaultValue!==i.value||C(n)==null&&i.value)&&(u(Sl(i)?Il(i.value):i.value),Tt!==null&&l.add(Tt)),Kn(()=>{var d=n();if(i===document.activeElement){var m=ka??Tt;if(l.has(m))return}Sl(i)&&d===Il(i.value)||i.type==="date"&&!d&&!i.value||d!==i.value&&(i.value=d??"")})}function Sl(i){var n=i.type;return n==="number"||n==="range"}function Il(i){return i===""?null:+i}function Wx(i,n,u=n){Bv(i,"change",()=>{u(i.files)}),Me&&i.files&&u(i.files),Kn(()=>{i.files=n()})}function Oh(i,n){return i===n||i?.[Gr]===n}function Or(i={},n,u,l){return gl(()=>{var d,m;return Kn(()=>{d=m,m=[],C(()=>{i!==u(...m)&&(n(i,...m),d&&Oh(u(...d),i)&&n(null,...d))})}),()=>{on(()=>{m&&Oh(u(...m),i)&&n(null,...m)})}}),i}function Ht(i=!1){const n=xt,u=n.l.u;if(!u)return;let l=()=>z(n.s);if(i){let d=0,m={};const p=oo(()=>{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&&Hv(()=>{Eh(n,l),Zn(u.b)}),so(()=>{const d=C(()=>u.m.map(Ir));return()=>{for(const m of d)typeof m=="function"&&m()}}),u.a.length&&so(()=>{Eh(n,l),Zn(u.a)})}function Eh(i,n){if(i.l.s)for(const u of i.l.s)c(u);n()}function Ph(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 yi=[];function Qx(i,n=gt){let u=null;const l=new Set;function d(g){if(xv(i,g)&&(i=g,u)){const v=!yi.length;for(const b of l)b[1](),yi.push(b,i);if(v){for(let b=0;b<yi.length;b+=2)yi[b][0](yi[b+1]);yi.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 vo(i){let n;return Ph(i,u=>n=u)(),n}let Ea=!1,zl=Symbol();function Gx(i,n,u){const l=u[n]??={store:null,source:ee(void 0),unsubscribe:gt};if(l.store!==i&&!(zl 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=Ph(i,m=>{d?l.source.v=m:$(l.source,m)}),d=!1}return i&&zl in u?vo(i):c(l.source)}function Vx(){const i={};function n(){pl(()=>{for(var u in i)i[u].unsubscribe();Qr(i,zl,{enumerable:!1,value:!0})})}return[i,n]}function Jx(i){var n=Ea;try{return Ea=!1,[i(),Ea]}finally{Ea=n}}const Bx={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 Mt(i,n,u){return new Proxy({props:i,exclude:n},Bx)}const Yx={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=Xe;try{jr(i.parent_effect),i.special[n]=_({get[n](){return i.props[n]}},n,K)}finally{jr(l)}}return i.special[n](u),Lv(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),Lv(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 un(i,n){return new Proxy({props:i,exclude:n,special:{},version:hn(0),parent_effect:Xe},Yx)}const Kx={get(i,n){let u=i.props.length;for(;u--;){let l=i.props[u];if(Dt(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];Dt(d)&&(d=d());const m=Sr(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(Dt(l)&&(l=l()),typeof l=="object"&&l!==null&&n in l){const d=Sr(l,n);return d&&!d.configurable&&(d.configurable=!0),d}}},has(i,n){if(n===Gr||n===al)return!1;for(let u of i.props)if(Dt(u)&&(u=u()),u!=null&&n in u)return!0;return!1},ownKeys(i){const n=[];for(let u of i.props)if(Dt(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 jt(...i){return new Proxy({props:i},Kx)}function _(i,n,u,l){var d=!t||(u&he)!==0,m=(u&ze)!==0,p=(u&De)!==0,g=l,v=!0,b=()=>(v&&(v=!1,g=p?C(l):l),g),h;if(m){var k=Gr in i||al in i;h=Sr(i,n)?.set??(k&&n in i?R=>i[n]=R:void 0)}var y,I=!1;m?[y,I]=Jx(()=>i[n]):y=i[n],y===void 0&&l!==void 0&&(y=b(),h&&(d&&Mk(),h(y)));var x;if(d?x=()=>{var R=i[n];return R===void 0?b():(v=!0,R)}:x=()=>{var R=i[n];return R!==void 0&&(g=void 0),R===void 0?g:R},d&&(u&K)===0)return x;if(h){var O=i.$$legacy;return(function(R,V){return arguments.length>0?((!d||!V||O||I)&&h(V?x():R),R):x()})}var j=!1,Y=((u&Re)!==0?oo:Ae)(()=>(j=!1,x()));m&&c(Y);var ne=Xe;return(function(R,V){if(arguments.length>0){const J=V?c(Y):d&&m?bn(R):R;return $(Y,J),j=!0,g!==void 0&&(g=J),R}return Hn&&j||(ne.f&Fn)!==0?Y.v:c(Y)})}function Hx(i){return new Xx(i)}class Xx{#e;#t;constructor(n){var u=new Map,l=(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 c(u.get(p)??l(p,Reflect.get(m,p)))},has(m,p){return p===al?!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?jx:bh)(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)&&dt(),this.#e=d.$$events;for(const m of Object.keys(this.#t))m==="$set"||m==="$destroy"||m==="$on"||Qr(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=()=>{Tx(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 Ch;typeof HTMLElement=="function"&&(Ch=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),T(d,m)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},u=e0(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]=Pa(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=Hx({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=cx(()=>{Kn(()=>{this.$$r=!0;for(const l of Ln(this.$$c)){if(!this.$$p_d[l]?.reflect)continue;this.$$d[l]=this.$$c[l];const d=Pa(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]=Pa(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 Ln(this.$$p_d).find(n=>this.$$p_d[n].attribute===i||!this.$$p_d[n].attribute&&n.toLowerCase()===i)||i}});function Pa(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 e0(i){const n={};return i.childNodes.forEach(u=>{n[u.slot||"default"]=!0}),n}function Uh(i,n,u,l,d,m){let p=class extends Ch{constructor(){super(i,u,d),this.$$p_d=n}static get observedAttributes(){return Ln(n).map(g=>(n[g].attribute||g).toLowerCase())}};return Ln(n).forEach(g=>{Qr(p.prototype,g,{get(){return this.$$c&&g in this.$$c?this.$$c[g]:this.$$d[g]},set(v){v=Pa(g,v,n),this.$$d[g]=v;var b=this.$$c;if(b){var h=Sr(b,g)?.get;h?b[g]=v:b.$set({[g]:v})}}})}),l.forEach(g=>{Qr(p.prototype,g,{get(){return this.$$c?.[g]}})}),i.element=p,p}const t0={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 r0=wn("<svg><!><!></svg>");function ti(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=un(u,["type","name","color","size","stroke","iconNode"]);Ye(n,!1);let d=_(n,"type",8),m=_(n,"name",8),p=_(n,"color",8,"currentColor"),g=_(n,"size",8,24),v=_(n,"stroke",8,2),b=_(n,"iconNode",8);Ht();var h=r0();Wt(h,()=>({...t0[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 k=L(h);dr(k,1,b,_r,(I,x)=>{var O=lt(()=>Vt(c(x),2));let j=()=>c(O)[0],Y=()=>c(O)[1];var ne=Ze(),R=Ne(ne);_h(R,j,!0,(V,J)=>{Wt(V,()=>({...Y()}))}),T(I,ne)});var y=me(k);Sn(y,n,"default",{}),M(h),T(i,h),Ke()}function Dh(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M9 14l-4 -4l4 -4"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"}]];ti(i,jt({type:"outline",name:"arrow-back-up"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Mh(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M15 6l-6 6l6 6"}]];ti(i,jt({type:"outline",name:"chevron-left"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Ca(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M9 6l6 6l-6 6"}]];ti(i,jt({type:"outline",name:"chevron-right"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function n0(i,n){const u=un(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"}]];ti(i,jt({type:"outline",name:"home-2"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Ah(i,n){const u=un(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"}]];ti(i,jt({type:"outline",name:"photo"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Lh(i,n){const u=un(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"}]];ti(i,jt({type:"outline",name:"wand"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Zh(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M18 6l-12 12"}],["path",{d:"M6 6l12 12"}]];ti(i,jt({type:"outline",name:"x"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}const Fr=Qx({questions:[],questionsData:{}}),lr=(i,n,u,l)=>{if((n==null||n===""||Array.isArray(n)&&n.length===0)&&!l){jl(i);return}let d;switch(u){case"rating":d={rating:n};break;case"nps":d={nps:n};break;case"long_text":d={longText:n};break;case"short_answer":d={shortAnswer:n};break;case"single_choice":d={singleChoice:n};break;case"multiple_choice_multiple":d={multipleChoiceMultiple:Array.isArray(n)?n:[n]};break;case"nested_selection":d={nestedSelection:Array.isArray(n)?n:[n]};break;case"annotation":d={annotation:n};break;default:d=n}Fr.update(m=>{const p=m.questions.findIndex(g=>g.questionId===i);return p!==-1?{...m,questions:m.questions.map((g,v)=>v===p?{...g,answer:d,type:u,error:l}:g)}:{...m,questions:[...m.questions,{questionId:i,answer:d,type:u,error:l}]}})},$i=(i,n)=>{o0(i)&&Fr.update(u=>({...u,questions:u.questions.map(l=>l.questionId===i?{...l,error:n}:l)}))},i0=()=>{Fr.update(i=>({...i,questions:i.questions.map(n=>({...n,error:void 0}))}))},Nl=()=>vo(Fr).questions.some(i=>i.error!==void 0&&i.error!==null&&i.error!==""),jl=i=>{Fr.update(n=>({...n,questions:n.questions.filter(u=>u.questionId!==i)}))},o0=i=>vo(Fr).questions.find(n=>n.questionId===i),a0=()=>{Fr.update(i=>({...i,questions:[]}))},Rh=i=>{Fr.update(n=>({...n,questionsData:i}))},qh=i=>vo(Fr).questionsData[i],Tl="-",s0=i=>{const n=l0(i),{conflictingClassGroups:u,conflictingClassGroupModifiers:l}=i;return{getClassGroupId:d=>{const m=d.split(Tl);return m[0]===""&&m.length!==1&&m.shift(),Fh(m,n)||u0(d)},getConflictingClassGroupIds:(d,m)=>{const p=u[d]||[];return m&&l[d]?[...p,...l[d]]:p}}},Fh=(i,n)=>{if(i.length===0)return n.classGroupId;const u=i[0],l=n.nextPart.get(u),d=l?Fh(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},Wh=/^\[(.+)\]$/,u0=i=>{if(Wh.test(i)){const n=Wh.exec(i)[1],u=n?.substring(0,n.indexOf(":"));if(u)return"arbitrary.."+u}},l0=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(c0(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},c0=i=>i.isThemeGetter,d0=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=":",f0=Pl.length,m0=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 O=d[x];if(p===0&&g===0){if(O===Pl){m.push(d.slice(v,x)),v=x+f0;continue}if(O==="/"){b=x;continue}}O==="["?p++:O==="]"?p--:O==="("?g++:O===")"&&g--}const h=m.length===0?d:d.substring(v),k=p0(h),y=k!==h,I=b&&b>v?b-v:void 0;return{modifiers:m,hasImportantModifier:y,baseClassName:k,maybePostfixModifierPosition:I}};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},p0=i=>i.endsWith(El)?i.substring(0,i.length-1):i.startsWith(El)?i.substring(1):i,g0=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}},v0=i=>({cache:d0(i.cacheSize),parseClassName:m0(i),sortModifiers:g0(i),...s0(i)}),h0=/\s+/,b0=(i,n)=>{const{parseClassName:u,getClassGroupId:l,getConflictingClassGroupIds:d,sortModifiers:m}=n,p=[],g=i.trim().split(h0);let v="";for(let b=g.length-1;b>=0;b-=1){const h=g[b],{isExternal:k,modifiers:y,hasImportantModifier:I,baseClassName:x,maybePostfixModifierPosition:O}=u(h);if(k){v=h+(v.length>0?" "+v:v);continue}let j=!!O,Y=l(j?x.substring(0,O):x);if(!Y){if(!j){v=h+(v.length>0?" "+v:v);continue}if(Y=l(x),!Y){v=h+(v.length>0?" "+v:v);continue}j=!1}const ne=m(y).join(":"),R=I?ne+El:ne,V=R+Y;if(p.includes(V))continue;p.push(V);const J=d(Y,j);for(let A=0;A<J.length;++A){const re=J[A];p.push(R+re)}v=h+(v.length>0?" "+v:v)}return v};function y0(){let i=0,n,u,l="";for(;i<arguments.length;)(n=arguments[i++])&&(u=Gh(n))&&(l&&(l+=" "),l+=u);return l}const Gh=i=>{if(typeof i=="string")return i;let n,u="";for(let l=0;l<i.length;l++)i[l]&&(n=Gh(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((h,k)=>k(h),i());return u=v0(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 h=b0(v,u);return d(v,h),h}return function(){return m(y0.apply(null,arguments))}}const Jt=i=>{const n=u=>u[i]||[];return n.isThemeGetter=!0,n},Vh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$0=/^\d+\/\d+$/,_0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,w0=/\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$/,k0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,x0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_i=i=>$0.test(i),nt=i=>!!i&&!Number.isNaN(Number(i)),In=i=>!!i&&Number.isInteger(Number(i)),Ul=i=>i.endsWith("%")&&nt(i.slice(0,-1)),ln=i=>_0.test(i),I0=()=>!0,z0=i=>w0.test(i)&&!k0.test(i),Bh=()=>!1,N0=i=>x0.test(i),j0=i=>S0.test(i),T0=i=>!Te(i)&&!Oe(i),O0=i=>wi(i,eb,Bh),Te=i=>Vh.test(i),ri=i=>wi(i,tb,z0),Dl=i=>wi(i,D0,nt),Yh=i=>wi(i,Hh,Bh),E0=i=>wi(i,Xh,j0),Ua=i=>wi(i,rb,N0),Oe=i=>Jh.test(i),ho=i=>ki(i,tb),P0=i=>ki(i,M0),Kh=i=>ki(i,Hh),C0=i=>ki(i,eb),U0=i=>ki(i,Xh),Da=i=>ki(i,rb,!0),wi=(i,n,u)=>{const l=Vh.exec(i);return l?l[1]?n(l[1]):u(l[2]):!1},ki=(i,n,u=!1)=>{const l=Jh.exec(i);return l?l[1]?n(l[1]):u:!1},Hh=i=>i==="position"||i==="percentage",Xh=i=>i==="image"||i==="url",eb=i=>i==="length"||i==="size"||i==="bg-size",tb=i=>i==="length",D0=i=>i==="number",M0=i=>i==="family-name",rb=i=>i==="shadow",Ml=()=>{const i=Jt("color"),n=Jt("font"),u=Jt("text"),l=Jt("font-weight"),d=Jt("tracking"),m=Jt("leading"),p=Jt("breakpoint"),g=Jt("container"),v=Jt("spacing"),b=Jt("radius"),h=Jt("shadow"),k=Jt("inset-shadow"),y=Jt("text-shadow"),I=Jt("drop-shadow"),x=Jt("blur"),O=Jt("perspective"),j=Jt("aspect"),Y=Jt("ease"),ne=Jt("animate"),R=()=>["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"],J=()=>[...V(),Oe,Te],A=()=>["auto","hidden","clip","visible","scroll"],re=()=>["auto","contain","none"],oe=()=>[Oe,Te,v],we=()=>[_i,"full","auto",...oe()],Ie=()=>[In,"none","subgrid",Oe,Te],ke=()=>["auto",{span:["full",In,Oe,Te]},In,Oe,Te],xe=()=>[In,"auto",Oe,Te],Q=()=>["auto","min","max","fr",Oe,Te],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...oe()],P=()=>[_i,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...oe()],S=()=>[i,Oe,Te],D=()=>[...V(),Kh,Yh,{position:[Oe,Te]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],le=()=>["auto","cover","contain",C0,O0,{size:[Oe,Te]}],$e=()=>[Ul,ho,ri],de=()=>["","none","full",b,Oe,Te],_e=()=>["",nt,ho,ri],Ee=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[nt,Ul,Kh,Yh],Pe=()=>["","none",x,Oe,Te],Ue=()=>["none",nt,Oe,Te],qe=()=>["none",nt,Oe,Te],We=()=>[nt,Oe,Te],Ge=()=>[_i,"full",...oe()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ln],breakpoint:[ln],color:[I0],container:[ln],"drop-shadow":[ln],ease:["in","out","in-out"],font:[T0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ln],shadow:[ln],spacing:["px",nt],text:[ln],"text-shadow":[ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_i,Te,Oe,j]}],container:["container"],columns:[{columns:[nt,Te,Oe,g]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:J()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:we()}],"inset-x":[{"inset-x":we()}],"inset-y":[{"inset-y":we()}],start:[{start:we()}],end:[{end:we()}],top:[{top:we()}],right:[{right:we()}],bottom:[{bottom:we()}],left:[{left:we()}],visibility:["visible","invisible","collapse"],z:[{z:[In,"auto",Oe,Te]}],basis:[{basis:[_i,"full","auto",g,...oe()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[nt,_i,"auto","initial","none",Te]}],grow:[{grow:["",nt,Oe,Te]}],shrink:[{shrink:["",nt,Oe,Te]}],order:[{order:[In,"first","last","none",Oe,Te]}],"grid-cols":[{"grid-cols":Ie()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":xe()}],"col-end":[{"col-end":xe()}],"grid-rows":[{"grid-rows":Ie()}],"row-start-end":[{row:ke()}],"row-start":[{"row-start":xe()}],"row-end":[{"row-end":xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:oe()}],"gap-x":[{"gap-x":oe()}],"gap-y":[{"gap-y":oe()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:oe()}],px:[{px:oe()}],py:[{py:oe()}],ps:[{ps:oe()}],pe:[{pe:oe()}],pt:[{pt:oe()}],pr:[{pr:oe()}],pb:[{pb:oe()}],pl:[{pl:oe()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":oe()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":oe()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[g,"screen",...P()]}],"min-w":[{"min-w":[g,"screen","none",...P()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",u,ho,ri]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,Oe,Dl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ul,Te]}],"font-family":[{font:[P0,Te,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,Oe,Te]}],"line-clamp":[{"line-clamp":[nt,"none",Oe,Dl]}],leading:[{leading:[m,...oe()]}],"list-image":[{"list-image":["none",Oe,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Oe,Te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[nt,"from-font","auto",Oe,ri]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[nt,"auto",Oe,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:oe()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe,Te]}],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",Oe,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},In,Oe,Te],radial:["",Oe,Te],conic:[In,Oe,Te]},U0,E0]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:$e()}],"gradient-via-pos":[{via:$e()}],"gradient-to-pos":[{to:$e()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:_e()}],"border-w-x":[{"border-x":_e()}],"border-w-y":[{"border-y":_e()}],"border-w-s":[{"border-s":_e()}],"border-w-e":[{"border-e":_e()}],"border-w-t":[{"border-t":_e()}],"border-w-r":[{"border-r":_e()}],"border-w-b":[{"border-b":_e()}],"border-w-l":[{"border-l":_e()}],"divide-x":[{"divide-x":_e()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_e()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[nt,Oe,Te]}],"outline-w":[{outline:["",nt,ho,ri]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",h,Da,Ua]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",k,Da,Ua]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:_e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[nt,ri]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":_e()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",y,Da,Ua]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[nt,Oe,Te]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[Oe,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"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":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Oe,Te]}],filter:[{filter:["","none",Oe,Te]}],blur:[{blur:Pe()}],brightness:[{brightness:[nt,Oe,Te]}],contrast:[{contrast:[nt,Oe,Te]}],"drop-shadow":[{"drop-shadow":["","none",I,Da,Ua]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",nt,Oe,Te]}],"hue-rotate":[{"hue-rotate":[nt,Oe,Te]}],invert:[{invert:["",nt,Oe,Te]}],saturate:[{saturate:[nt,Oe,Te]}],sepia:[{sepia:["",nt,Oe,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Oe,Te]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[nt,Oe,Te]}],"backdrop-contrast":[{"backdrop-contrast":[nt,Oe,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",nt,Oe,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[nt,Oe,Te]}],"backdrop-invert":[{"backdrop-invert":["",nt,Oe,Te]}],"backdrop-opacity":[{"backdrop-opacity":[nt,Oe,Te]}],"backdrop-saturate":[{"backdrop-saturate":[nt,Oe,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",nt,Oe,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":oe()}],"border-spacing-x":[{"border-spacing-x":oe()}],"border-spacing-y":[{"border-spacing-y":oe()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Oe,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[nt,"initial",Oe,Te]}],ease:[{ease:["linear","initial",Y,Oe,Te]}],delay:[{delay:[nt,Oe,Te]}],animate:[{animate:["none",ne,Oe,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,Oe,Te]}],"perspective-origin":[{"perspective-origin":J()}],rotate:[{rotate:Ue()}],"rotate-x":[{"rotate-x":Ue()}],"rotate-y":[{"rotate-y":Ue()}],"rotate-z":[{"rotate-z":Ue()}],scale:[{scale:qe()}],"scale-x":[{"scale-x":qe()}],"scale-y":[{"scale-y":qe()}],"scale-z":[{"scale-z":qe()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}],"skew-y":[{"skew-y":We()}],transform:[{transform:[Oe,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:J()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"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",Oe,Te]}],"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":oe()}],"scroll-mx":[{"scroll-mx":oe()}],"scroll-my":[{"scroll-my":oe()}],"scroll-ms":[{"scroll-ms":oe()}],"scroll-me":[{"scroll-me":oe()}],"scroll-mt":[{"scroll-mt":oe()}],"scroll-mr":[{"scroll-mr":oe()}],"scroll-mb":[{"scroll-mb":oe()}],"scroll-ml":[{"scroll-ml":oe()}],"scroll-p":[{"scroll-p":oe()}],"scroll-px":[{"scroll-px":oe()}],"scroll-py":[{"scroll-py":oe()}],"scroll-ps":[{"scroll-ps":oe()}],"scroll-pe":[{"scroll-pe":oe()}],"scroll-pt":[{"scroll-pt":oe()}],"scroll-pr":[{"scroll-pr":oe()}],"scroll-pb":[{"scroll-pb":oe()}],"scroll-pl":[{"scroll-pl":oe()}],"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",Oe,Te]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[nt,ho,ri,Dl]}],stroke:[{stroke:["none",...S()]}],"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"]}},A0=(i,{cacheSize:n,prefix:u,experimentalParseClassName:l,extend:d={},override:m={}})=>(bo(i,"cacheSize",n),bo(i,"prefix",u),bo(i,"experimentalParseClassName",l),Ma(i.theme,m.theme),Ma(i.classGroups,m.classGroups),Ma(i.conflictingClassGroups,m.conflictingClassGroups),Ma(i.conflictingClassGroupModifiers,m.conflictingClassGroupModifiers),bo(i,"orderSensitiveModifiers",m.orderSensitiveModifiers),Aa(i.theme,d.theme),Aa(i.classGroups,d.classGroups),Aa(i.conflictingClassGroups,d.conflictingClassGroups),Aa(i.conflictingClassGroupModifiers,d.conflictingClassGroupModifiers),nb(i,d,"orderSensitiveModifiers"),i),bo=(i,n,u)=>{u!==void 0&&(i[n]=u)},Ma=(i,n)=>{if(n)for(const u in n)bo(i,u,n[u])},Aa=(i,n)=>{if(n)for(const u in n)nb(i,n,u)},nb=(i,n,u)=>{const l=n[u];l!==void 0&&(i[u]=i[u]?i[u].concat(l):l)},L0=(i,...n)=>typeof i=="function"?Cl(Ml,i,...n):Cl(()=>A0(Ml(),i),...n),ib=Cl(Ml);function wr(...i){return ib(fo(i))}var Z0=/\s+/g,Al=i=>typeof i!="string"||!i?i:i.replace(Z0," ").trim(),La=(...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?Al(n.join(" ")):void 0},ob=i=>i===!1?"false":i===!0?"true":i===0?"0":i,fr=i=>{if(!i||typeof i!="object")return!0;for(let n in i)return!1;return!0},R0=(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},ab=(i,n)=>{for(let u in n)if(Object.prototype.hasOwnProperty.call(n,u)){let l=n[u];u in i?i[u]=La(i[u],l):i[u]=l}return i},sb=(i,n)=>{for(let u=0;u<i.length;u++){let l=i[u];Array.isArray(l)?sb(l,n):l&&n.push(l)}},ub=(...i)=>{let n=[];sb(i,n);let u=[];for(let l=0;l<n.length;l++)n[l]&&u.push(n[l]);return u},Ll=(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]=ub(m,d):typeof d=="object"&&typeof m=="object"&&d&&m?u[l]=Ll(d,m):u[l]=m+" "+d}else u[l]=d}for(let l in n)l in i||(u[l]=n[l]);return u},q0={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function F0(){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 cn=F0(),W0=i=>{let n=(u,l)=>{let{extend:d=null,slots:m={},variants:p={},compoundVariants:g=[],compoundSlots:v=[],defaultVariants:b={}}=u,h={...q0,...l},k=d?.base?La(d.base,u?.base):u?.base,y=d?.variants&&!fr(d.variants)?Ll(p,d.variants):p,I=d?.defaultVariants&&!fr(d.defaultVariants)?{...d.defaultVariants,...b}:b;!fr(h.twMergeConfig)&&!R0(h.twMergeConfig,cn.cachedTwMergeConfig)&&(cn.didTwMergeConfigChange=!0,cn.cachedTwMergeConfig=h.twMergeConfig);let x=fr(d?.slots),O=fr(m)?{}:{base:La(u?.base,x&&d?.base),...m},j=x?O:ab({...d?.slots},fr(O)?{base:u?.base}:O),Y=fr(d?.compoundVariants)?g:ub(d?.compoundVariants,g),ne=V=>{if(fr(y)&&fr(m)&&x)return i(k,V?.class,V?.className)(h);if(Y&&!Array.isArray(Y))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof Y}`);if(v&&!Array.isArray(v))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof v}`);let J=(G,B,F=[],P)=>{let S=F;if(typeof B=="string"){let D=Al(B).split(" ");for(let q=0;q<D.length;q++)S.push(`${G}:${D[q]}`)}else if(Array.isArray(B))for(let D=0;D<B.length;D++)S.push(`${G}:${B[D]}`);else if(typeof B=="object"&&typeof P=="string"&&P in B){let D=B[P];if(D&&typeof D=="string"){let q=Al(D).split(" "),le=[];for(let $e=0;$e<q.length;$e++)le.push(`${G}:${q[$e]}`);S[P]=S[P]?S[P].concat(le):le}else if(Array.isArray(D)&&D.length>0){let q=[];for(let le=0;le<D.length;le++)q.push(`${G}:${D[le]}`);S[P]=q}}return S},A=(G,B=y,F=null,P=null)=>{let S=B[G];if(!S||fr(S))return null;let D=P?.[G]??V?.[G];if(D===null)return null;let q=ob(D),le=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||h.responsiveVariants===!0,$e=I?.[G],de=[];if(typeof q=="object"&&le)for(let[ue,ie]of Object.entries(q)){let Pe=S[ie];if(ue==="initial"){$e=ie;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(ue)||(de=J(ue,Pe,de,F))}let _e=q!=null&&typeof q!="object"?q:ob($e),Ee=S[_e||"false"];return typeof de=="object"&&typeof F=="string"&&de[F]?ab(de,Ee):de.length>0?(de.push(Ee),F==="base"?de.join(" "):de):Ee},re=()=>{if(!y)return null;let G=Object.keys(y),B=[];for(let F=0;F<G.length;F++){let P=A(G[F],y);P&&B.push(P)}return B},oe=(G,B)=>{if(!y||typeof y!="object")return null;let F=[];for(let P in y){let S=A(P,y,G,B),D=G==="base"&&typeof S=="string"?S:S&&S[G];D&&F.push(D)}return F},we={};for(let G in V){let B=V[G];B!==void 0&&(we[G]=B)}let Ie=(G,B)=>{let F=typeof V?.[G]=="object"?{[G]:V[G]?.initial}:{};return{...I,...we,...F,...B}},ke=(G=[],B)=>{let F=[],P=G.length;for(let S=0;S<P;S++){let{class:D,className:q,...le}=G[S],$e=!0,de=Ie(null,B);for(let _e in le){let Ee=le[_e],ue=de[_e];if(Array.isArray(Ee)){if(!Ee.includes(ue)){$e=!1;break}}else{if((Ee==null||Ee===!1)&&(ue==null||ue===!1))continue;if(ue!==Ee){$e=!1;break}}}$e&&(D&&F.push(D),q&&F.push(q))}return F},xe=G=>{let B=ke(Y,G);if(!Array.isArray(B))return B;let F={},P=i;for(let S=0;S<B.length;S++){let D=B[S];if(typeof D=="string")F.base=P(F.base,D)(h);else if(typeof D=="object")for(let q in D)F[q]=P(F[q],D[q])(h)}return F},Q=G=>{if(v.length<1)return null;let B={},F=Ie(null,G);for(let P=0;P<v.length;P++){let{slots:S=[],class:D,className:q,...le}=v[P];if(!fr(le)){let $e=!0;for(let de in le){let _e=F[de],Ee=le[de];if(_e===void 0||(Array.isArray(Ee)?!Ee.includes(_e):Ee!==_e)){$e=!1;break}}if(!$e)continue}for(let $e=0;$e<S.length;$e++){let de=S[$e];B[de]||(B[de]=[]),B[de].push([D,q])}}return B};if(!fr(m)||!x){let G={};if(typeof j=="object"&&!fr(j)){let B=i;for(let F in j)G[F]=P=>{let S=xe(P),D=Q(P);return B(j[F],oe(F,P),S?S[F]:void 0,D?D[F]:void 0,P?.class,P?.className)(h)}}return G}return i(k,re(),ke(Y),V?.class,V?.className)(h)},R=()=>{if(!(!y||typeof y!="object"))return Object.keys(y)};return ne.variantKeys=R(),ne.extend=d,ne.base=k,ne.slots=j,ne.variants=y,ne.defaultVariants=I,ne.compoundSlots=v,ne.compoundVariants=Y,ne};return{tv:n,createTV:u=>(l,d)=>n(l,d?Ll(u,d):u)}},Q0=i=>fr(i)?ib:L0({...i,extend:{theme:i.theme,classGroups:i.classGroups,conflictingClassGroupModifiers:i.conflictingClassGroupModifiers,conflictingClassGroups:i.conflictingClassGroups,...i.extend}}),G0=(...i)=>n=>{let u=La(i);return!u||!n.twMerge?u:((!cn.cachedTwMerge||cn.didTwMergeConfigChange)&&(cn.didTwMergeConfigChange=!1,cn.cachedTwMerge=Q0(cn.cachedTwMergeConfig)),cn.cachedTwMerge(u)||void 0)},{tv:V0}=W0(G0);const lb=V0({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 J0=te("<a><!></a>"),B0=te("<button><!></button>");function qt(i,n){Ye(n,!0);let u=_(n,"variant",3,"default"),l=_(n,"size",3,"default"),d=_(n,"ref",15,null),m=_(n,"href",3,void 0),p=_(n,"type",3,"button"),g=Mt(n,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children","onclick"]);var v=Ze(),b=Ne(v);{var h=y=>{var I=J0();Wt(I,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}),[()=>wr(lb({variant:u(),size:l()}),n.class)]);var x=L(I);Rt(x,()=>n.children??gt),M(I),Or(I,O=>d(O),()=>d()),T(y,I)},k=y=>{var I=B0();Wt(I,O=>({"data-slot":"button",class:O,type:p(),disabled:n.disabled,onclick:n.onclick,...g}),[()=>wr(lb({variant:u(),size:l()}),n.class)]);var x=L(I);Rt(x,()=>n.children??gt),M(I),Or(I,O=>d(O),()=>d()),T(y,I)};ae(b,y=>{m()?y(h):y(k,!1)})}T(i,v),Ke()}var Y0=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),K0=te('<span class="text-destructive ml-1">*</span>'),H0=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),X0=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium"> </span>'),eS=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium text-right"> </span>'),tS=te('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),rS=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>'),nS=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 iS(i,n){Ye(n,!1);const u=ee(),l=ee();let d=_(n,"question",8),m=_(n,"value",24,()=>-1),p=_(n,"onChange",8),g=_(n,"error",8,void 0),v=_(n,"currentMode",8,void 0),b=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let h=ee(m()??-1);function k(Q){c(h)===Q?($(h,-1),p()(-1),jl(d().id)):($(h,Q),p()(Q),lr(d().id,Q,s.QuestionTypes.NPS))}fe(()=>z(v()),()=>{$(u,v()==="dark")}),fe(()=>z(m()),()=>{m()!==void 0&&$(h,m())}),fe(()=>z(d()),()=>{$(l,Array.from({length:(d().max??10)-(d().min??0)+1},(Q,G)=>G+(d().min??0)))}),sr(),Ht();var y=nS(),I=L(y),x=L(I);{var O=Q=>{var G=Y0(),B=L(G);M(G),Se(()=>je(B,`${b()??""}.`)),T(Q,G)};ae(x,Q=>{b()!==void 0&&Q(O)})}var j=me(x,2),Y=L(j),ne=L(Y),R=me(ne);{var V=Q=>{var G=K0();T(Q,G)};ae(R,Q=>{z(d()),C(()=>d().required)&&Q(V)})}M(Y);var J=me(Y,2);{var A=Q=>{var G=H0(),B=L(G,!0);M(G),Se(()=>je(B,(z(d()),C(()=>d().description)))),T(Q,G)};ae(J,Q=>{z(d()),C(()=>d().description)&&Q(A)})}M(j),M(I);var re=me(I,2),oe=L(re);dr(oe,5,()=>c(l),_r,(Q,G)=>{{let B=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 ${c(h)===c(G)?"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(Q,{type:"button",variant:"outline",size:"sm",get class(){return c(B)},onclick:()=>k(c(G)),children:(F,P)=>{yr();var S=kn();Se(()=>je(S,c(G))),T(F,S)},$$slots:{default:!0}})}}),M(oe);var we=me(oe,2);{var Ie=Q=>{var G=tS(),B=L(G);{var F=D=>{var q=X0(),le=L(q,!0);M(q),Se(()=>je(le,(z(d()),C(()=>d().minLabel)))),T(D,q)};ae(B,D=>{z(d()),C(()=>d().minLabel)&&D(F)})}var P=me(B,2);{var S=D=>{var q=eS(),le=L(q,!0);M(q),Se(()=>je(le,(z(d()),C(()=>d().maxLabel)))),T(D,q)};ae(P,D=>{z(d()),C(()=>d().maxLabel)&&D(S)})}M(G),T(Q,G)};ae(we,Q=>{z(d()),C(()=>d().minLabel||d().maxLabel)&&Q(Ie)})}M(re);var ke=me(re,2);{var xe=Q=>{var G=rS(),B=L(G),F=L(B,!0);M(B),M(G),Se(()=>je(F,g())),T(Q,G)};ae(ke,Q=>{g()&&Q(xe)})}M(y),Se(()=>je(ne,`${z(d()),C(()=>d().title)??""} `)),T(i,y),Ke()}var oS=te("<nav><!></nav>");function aS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Mt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=oS();Wt(d,()=>({"data-slot":"breadcrumb",class:n.class,"aria-label":"breadcrumb",...l}));var m=L(d);Rt(m,()=>n.children??gt),M(d),Or(d,p=>u(p),()=>u()),T(i,d),Ke()}/**
|
|
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 sS={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 uS=wn("<svg><!><!></svg>");function Za(i,n){Ye(n,!0);const u=_(n,"color",3,"currentColor"),l=_(n,"size",3,24),d=_(n,"strokeWidth",3,2),m=_(n,"absoluteStrokeWidth",3,!1),p=_(n,"iconNode",19,()=>[]),g=Mt(n,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var v=uS();Wt(v,k=>({...sS,...g,width:l(),height:l(),stroke:u(),"stroke-width":k,class:["lucide-icon lucide",n.name&&`lucide-${n.name}`,n.class]}),[()=>m()?Number(d())*24/Number(l()):d()]);var b=L(v);dr(b,17,p,_r,(k,y)=>{var I=lt(()=>Vt(c(y),2));let x=()=>c(I)[0],O=()=>c(I)[1];var j=Ze(),Y=Ne(j);_h(Y,x,!0,(ne,R)=>{Wt(ne,()=>({...O()}))}),T(k,j)});var h=me(b);Rt(h,()=>n.children??gt),M(v),T(i,v),Ke()}var lS=te("<li><!></li>");function cb(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Mt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=lS();Wt(d,p=>({"data-slot":"breadcrumb-item",class:p,...l}),[()=>wr("inline-flex items-center gap-1.5",n.class)]);var m=L(d);Rt(m,()=>n.children??gt),M(d),Or(d,p=>u(p),()=>u()),T(i,d),Ke()}function cS(i,n){Ye(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=Dt(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"m9 18 6-6-6-6"}]];Ra(i,jt({name:"chevron-right"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}var fS=ee("<li><!></li>");function mS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Dt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=fS();Wt(d,v=>({"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",class:v,...l}),[()=>wr("[&>svg]:size-3.5",n.class)]);var m=R(d);{var p=v=>{var b=Ze(),h=ze(b);Rt(h,()=>n.children??gt),T(v,b)},g=v=>{dS(v,{})};oe(m,v=>{n.children?v(p):v(g,!1)})}L(d),Or(d,v=>u(v),()=>u()),T(i,d),Ke()}var pS=ee("<a><!></a>");function gS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"href",3,void 0),d=Dt(n,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const m=lt(()=>({"data-slot":"breadcrumb-link",class:wr("hover:text-foreground transition-colors",n.class),href:l(),...d}));var p=Ze(),g=ze(p);{var v=h=>{var k=Ze(),y=ze(k);Rt(y,()=>n.child,()=>({props:c(m)})),T(h,k)},b=h=>{var k=pS();Wt(k,()=>({...c(m)}));var y=R(k);Rt(y,()=>n.children??gt),L(k),Or(k,I=>u(I),()=>u()),T(h,k)};oe(g,h=>{n.child?h(v):h(b,!1)})}T(i,p),Ke()}var vS=ee("<ol><!></ol>");function hS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Dt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=vS();Wt(d,p=>({"data-slot":"breadcrumb-list",class:p,...l}),[()=>wr("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),Or(d,p=>u(p),()=>u()),T(i,d),Ke()}var bS=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),yS=ee('<span class="text-destructive ml-1">*</span>'),$S=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),_S=ee("<!> <!>",1),wS=ee("<!> <!>",1),kS=wn('<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>'),xS=ee('<span class="flex items-center gap-3 w-full"><span class="flex-1 text-sm font-medium"> </span> <!></span>'),SS=ee('<div class="p-2 space-y-1"></div>'),IS=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>'),zS=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>'),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="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 jS(i,n){Ye(n,!1);const u=X();let l=_(n,"question",8),d=_(n,"value",24,()=>[]),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);const b=d()?Array.isArray(d())?d():[d()]:[];let h=X(b),k=X(O()),y=X(!1),I=X([]),x=X([]);function O(){return b.length===0?[]:b.slice(0,-1)}function j(se,ie){console.log("handleChange called",{option:se,path:ie,hasChildren:se.children&&se.children.length>0}),$(y,!0),se.children&&se.children.length>0?(console.log("Navigating to children, setting navPath to:",ie),$(k,ie),console.log("navPath is now:",c(k))):(console.log("Leaf node selected, setting selectedValue to:",ie),$(h,ie),$(k,ie.slice(0,-1)),m()(ie))}function J(se){const ie=c(h);return ie.length!==se.length?!1:se.every((Pe,Ue)=>ie[Ue]===Pe)}function re(se){console.log("getCurrentLevelOptions called with path:",se);let ie=l().options;for(let Pe=0;Pe<se.length;Pe++){const Ue=ie.find(qe=>qe.value===se[Pe]);if(Ue&&Ue.children)ie=Ue.children;else return[]}return console.log("Returning options:",ie),ie}function W(se){console.log("getBreadcrumbs called with path:",se);const ie=[];let Pe=l().options;for(let Ue=0;Ue<se.length;Ue++){const qe=Pe.find(We=>We.value===se[Ue]);qe&&(ie.push({value:se[Ue],label:qe.label,index:Ue}),qe.children&&(Pe=qe.children))}return console.log("Returning breadcrumbs:",ie),ie}function G(se){$(y,!0),$(k,c(k).slice(0,se+1))}function V(){$(y,!0),$(k,[]),$(h,[]),m()([])}de(()=>z(g()),()=>{$(u,g()==="dark")}),de(()=>(z(d()),c(y)),()=>{if(d()!==void 0&&!c(y)){const se=Array.isArray(d())?d():[d()];$(h,se),se.length>0?$(k,se.slice(0,-1)):$(k,[])}else d()===void 0&&!c(y)&&($(h,[]),$(k,[]))}),de(()=>c(k),()=>{$(I,re(c(k)))}),de(()=>c(k),()=>{$(x,W(c(k)))}),sr(),Ht();var M=NS(),te=R(M),ne=R(te);{var $e=se=>{var ie=bS(),Pe=R(ie);L(ie),xe(()=>Ne(Pe,`${v()??""}.`)),T(se,ie)};oe(ne,se=>{v()!==void 0&&se($e)})}var je=fe(ne,2),Se=R(je),ke=R(Se),ve=fe(ke);{var B=se=>{var ie=yS();T(se,ie)};oe(ve,se=>{z(l()),U(()=>l().required)&&se(B)})}L(Se);var P=fe(Se,2);{var Z=se=>{var ie=$S(),Pe=R(ie,!0);L(ie),xe(()=>Ne(Pe,(z(l()),U(()=>l().description)))),T(se,ie)};oe(P,se=>{z(l()),U(()=>l().description)&&se(Z)})}L(je),L(te);var C=fe(te,2),S=R(C),D=R(S);sS(D,{children:(se,ie)=>{hS(se,{class:"flex items-center gap-1.5 flex-wrap",children:(Pe,Ue)=>{var qe=wS(),We=ze(qe);cb(We,{children:(ot,Ce)=>{qt(ot,{type:"button",variant:"ghost",size:"sm",class:"h-8 w-8 p-0 hover:bg-background/80 rounded-md transition-colors",onclick:V,"aria-label":"Home",children:(yt,kt)=>{i0(yt,{size:18,class:"text-muted-foreground hover:text-foreground transition-colors"})},$$slots:{default:!0}})},$$slots:{default:!0}});var Qe=fe(We,2);dr(Qe,1,()=>c(x),_r,(ot,Ce)=>{var yt=_S(),kt=ze(yt);mS(kt,{class:"text-muted-foreground/50",children:(Lt,Mt)=>{Ua(Lt,{size:14})},$$slots:{default:!0}});var Ot=fe(kt,2);cb(Ot,{children:(Lt,Mt)=>{gS(Lt,{onclick:()=>G(c(Ce).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:(Et,st)=>{yr();var Bt=kn();xe(()=>Ne(Bt,(c(Ce),U(()=>c(Ce).label)))),T(Et,Bt)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(ot,yt)}),T(Pe,qe)},$$slots:{default:!0}})},$$slots:{default:!0}}),L(S);var F=fe(S,2),ue=R(F);{var _e=se=>{var ie=SS();dr(ie,5,()=>c(I),_r,(Pe,Ue)=>{const qe=Le(()=>(c(k),c(Ue),U(()=>J([...c(k),c(Ue).value])))),We=Le(()=>(c(Ue),U(()=>c(Ue).children&&c(Ue).children.length>0)));{let Qe=Le(()=>`w-full justify-start px-4 py-3.5 h-auto rounded-lg text-left transition-all relative group ${c(qe)&&!c(We)?"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(Pe,{type:"button",variant:"ghost",get class(){return c(Qe)},onclick:()=>j(c(Ue),[...c(k),c(Ue).value]),children:(ot,Ce)=>{var yt=xS(),kt=R(yt),Ot=R(kt,!0);L(kt);var Lt=fe(kt,2);{var Mt=st=>{{let Bt=Le(()=>`flex-shrink-0 transition-transform group-hover:translate-x-0.5 ${c(qe)?"text-primary":"text-muted-foreground"}`);Ua(st,{size:18,get class(){return c(Bt)}})}},Et=st=>{var Bt=Ze(),Yr=ze(Bt);{var Q=N=>{var H=kS();T(N,H)};oe(Yr,N=>{c(qe)&&N(Q)},!0)}T(st,Bt)};oe(Lt,st=>{c(We)?st(Mt):st(Et,!1)})}L(yt),xe(()=>Ne(Ot,(c(Ue),U(()=>c(Ue).label)))),T(ot,yt)},$$slots:{default:!0}})}}),L(ie),T(se,ie)},ce=se=>{var ie=IS();T(se,ie)};oe(ue,se=>{c(I),U(()=>c(I).length>0)?se(_e):se(ce,!1)})}L(F),L(C);var we=fe(C,2);{var Ee=se=>{var ie=zS(),Pe=fe(R(ie),2),Ue=R(Pe,!0);L(Pe),L(ie),xe(()=>Ne(Ue,p())),T(se,ie)};oe(we,se=>{p()&&se(Ee)})}L(M),xe(()=>Ne(ke,`${z(l()),U(()=>l().title)??""} `)),T(i,M),Ke()}var TS=ee("<textarea></textarea>");function OS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"value",15),d=_(n,"data-slot",3,"textarea"),m=Dt(n,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var p=TS();sx(p),Wt(p,g=>({"data-slot":d(),class:g,...m}),[()=>wr("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)]),Or(p,g=>u(g),()=>u()),Ea(p,l),T(i,p),Ke()}function db(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 fb(i,n,u){let l=i;n(l);const d=setInterval(()=>{l--,n(l),l<=0&&(clearInterval(d),u())},1e3);return d}function mb(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 pb(i){return await window.encatch._internal.refineText({questionId:i.questionId,identifier:i.identifier,feedbackConfigurationId:i.feedbackConfigurationId,userText:i.userText})}var ES=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),PS=ee('<span class="text-destructive ml-1">*</span>'),CS=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),US=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>'),AS=wn('<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>'),LS=ee("<!> <span>Reset</span>",1),MS=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>'),ZS=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>'),RS=ee('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),qS=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 FS(i,n){Ye(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X(),g=X(),v=X(),b=X();let h=_(n,"question",8),k=_(n,"value",8,""),y=_(n,"onChange",8),I=_(n,"error",8,void 0),x=_(n,"currentMode",8,void 0),O=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0),_(n,"apiKey",8,void 0),_(n,"hostUrl",8,void 0);let j=_(n,"identifier",8,void 0),J=_(n,"feedbackConfigurationId",8,void 0),re=_(n,"otherConfigurationProperties",8,void 0),W=X(k()??""),G=X(null),V=X(0),M=X(I()),te=X(!1),ne=X(!1),$e=X(!1),je=X(null),Se=X(null),ke=X(!1),ve=X(!1),B=X(""),P=X(0),Z=null,C=X(c(W));xn(()=>{setTimeout(()=>{const N=D(c(W));$(M,N),N&&_i(h().id,N),$(ke,!0)},0)}),Ta(()=>{Z!==null&&clearInterval(Z)});function S(){c(te)||$(te,!0)}function D(N){if(h().required&&(!N||N.trim()===""))return h().errorMessage||"This field is required";if(h().maxCharacters!==void 0&&N.length>h().maxCharacters||h().minCharacters!==void 0&&N.length>0&&N.length<h().minCharacters)return h().errorMessage}function F(N){Z!==null&&clearInterval(Z),Z=fb(N,H=>{$(P,H)},()=>{Z=null,$(je,null)})}async function ue(){if(!Ee()||!j()||!J())return;const N=c(W);try{$($e,!0),$(je,null);const H=await pb({questionId:h().id,identifier:j(),feedbackConfigurationId:J(),userText:N});if(H?.data?.refinedText){const be=H.data.refinedText;$(Se,re()?.otherFields?.aiEnhancementSuccessMessage||H.message||"Text refined successfully"),c(G)?($(G,{original:c(G).original,enhanced:[...c(G).enhanced,be]}),$(V,c(G).enhanced.length)):($(G,{original:N,enhanced:[be]}),$(V,1)),$(W,be),$(ne,!0);const Me=D(be);$(M,Me),y()(be),lr(h().id,be,s.QuestionTypes.LONG_TEXT,Me)}else{if(H?.message){const{code:be,message:Me,seconds:Fe}=db(H.message);be==="1001"&&Fe!==void 0&&F(Fe),$(je,mb(be,Me,re(),Fe))}$(ne,!1)}}catch(H){console.error("Error enhancing text:",H),$(je,"An error occurred while enhancing text"),$(ne,!1)}finally{$($e,!1)}}function _e(){if(!c(G))return;const N=c(G).original;$(W,N),$(V,0);const H=D(N);$(M,H),y()(N),lr(h().id,N,s.QuestionTypes.LONG_TEXT,H)}function ce(N){if(!c(G))return;let H;if(N===0)H=c(G).original;else{const Me=N-1;if(Me>=c(G).enhanced.length)return;H=c(G).enhanced[Me]}$(W,H),$(V,N);const be=D(H);$(M,be),y()(H),lr(h().id,H,s.QuestionTypes.LONG_TEXT,be)}function we(){return c(G)?c(G).enhanced.length+1:0}function Ee(){const N=c(W).trim();return N?h().minCharactersToEnhance!==void 0?N.length>=h().minCharactersToEnhance:!0:!1}de(()=>z(x()),()=>{$(u,x()==="dark")}),de(()=>(z(k()),c(W),c(te)),()=>{k()!==void 0&&k()!==c(W)&&!c(te)&&($(W,k()),$(C,k()))}),de(()=>c(W),()=>{$(l,c(W).length)}),de(()=>z(h()),()=>{$(d,h().minCharacters)}),de(()=>z(h()),()=>{$(m,h().maxCharacters)}),de(()=>(c(m),c(l)),()=>{$(p,c(m)!==void 0&&c(l)>c(m))}),de(()=>(c(d),c(l)),()=>{$(g,c(d)!==void 0&&c(l)<c(d)&&c(l)>0)}),de(()=>(c(p),c(g)),()=>{$(v,c(p)||c(g))}),de(()=>(c(d),c(m)),()=>{$(b,c(d)!==void 0||c(m)!==void 0)}),de(()=>(c(W),z(h())),()=>{const N=c(W).trim();N?h().minCharactersToEnhance!==void 0?$(ve,N.length>=h().minCharactersToEnhance):$(ve,!0):$(ve,!1)}),de(()=>(c(d),c(m),c(l),z(h())),()=>{c(d)!==void 0&&c(m)!==void 0?$(B,`${c(l)} / (${c(d)} - ${c(m)})`):c(m)!==void 0&&h().required?$(B,`${c(l)} / (1 - ${c(m)})`):c(d)!==void 0?$(B,`${c(l)} / (${c(d)} - 5000)`):$(B,"")}),de(()=>(c(P),z(re())),()=>{c(P)>0&&re()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(je,`${re().otherFields.aiEnhancementCooldownErrorMessage} (${c(P)}s)`)}),de(()=>z(I()),()=>{I()!==void 0&&$(M,I())}),de(()=>(c(ke),c(te),c(W),c(C),z(y()),z(h()),s.QuestionTypes),()=>{if(c(ke)&&c(te)&&c(W)!==c(C)){$(C,c(W));const N=D(c(W));$(M,N),y()(c(W)),lr(h().id,c(W),s.QuestionTypes.LONG_TEXT,N)}}),sr(),Ht();var se=qS(),ie=R(se),Pe=R(ie);{var Ue=N=>{var H=ES(),be=R(H);L(H),xe(()=>Ne(be,`${O()??""}.`)),T(N,H)};oe(Pe,N=>{O()!==void 0&&N(Ue)})}var qe=fe(Pe,2),We=R(qe),Qe=R(We),ot=fe(Qe);{var Ce=N=>{var H=PS();T(N,H)};oe(ot,N=>{z(h()),U(()=>h().required)&&N(Ce)})}L(We);var yt=fe(We,2);{var kt=N=>{var H=CS(),be=R(H,!0);L(H),xe(()=>Ne(be,(z(h()),U(()=>h().description)))),T(N,H)};oe(yt,N=>{z(h()),U(()=>h().description)&&N(kt)})}L(qe),L(ie);var Ot=fe(ie,2);{var Lt=N=>{var H=US(),be=R(H),Me=R(be,!0);L(be),L(H),xe(()=>Ne(Me,c(M))),T(N,H)};oe(Ot,N=>{c(M)&&c(te)&&N(Lt)})}var Mt=fe(Ot,2),Et=R(Mt);{let N=Le(()=>(z(h()),U(()=>h().rows||4)));OS(Et,{class:"w-full min-h-[120px] text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",onfocus:S,get placeholder(){return z(h()),U(()=>h().placeholder)},get rows(){return c(N)},onblur:()=>{if(c(ke)){const H=D(c(W));$(M,H),_i(h().id,H)}},get value(){return c(W)},set value(H){$(W,H)},$$legacy:!0})}var st=fe(Et,2),Bt=R(st);L(st),L(Mt);var Yr=fe(Mt,2);{var Q=N=>{var H=RS(),be=ze(H),Me=R(be);{let He=Le(()=>c($e)||!c(ve));qt(Me,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:ue,get disabled(){return c(He)},children:(ft,Pt)=>{var _t=Ze(),kr=ze(_t);{var pr=St=>{var dn=AS();T(St,dn)},Xt=St=>{Mh(St,{size:16})};oe(kr,St=>{c($e)?St(pr):St(Xt,!1)})}T(ft,_t)},$$slots:{default:!0}})}var Fe=fe(Me,2);{var $t=He=>{var ft=DS(),Pt=R(ft);{let Xt=Le(()=>c(V)===0);qt(Pt,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{c(V)>0&&ce(c(V)-1)},get disabled(){return c(Xt)},title:"Previous version",children:(St,dn)=>{Dh(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var _t=fe(Pt,2),kr=R(_t);L(_t);var pr=fe(_t,2);{let Xt=Le(()=>(c(V),U(()=>c(V)>=we()-1)));qt(pr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const St=we();c(V)<St-1&&ce(c(V)+1)},get disabled(){return c(Xt)},title:"Next version",children:(St,dn)=>{Ua(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}L(ft),xe(Xt=>Ne(kr,`${c(V)+1} / ${Xt??""}`),[()=>U(we)]),T(He,ft)};oe(Fe,He=>{c(G),c($e),U(()=>c(G)&&!c($e)&&c(G).enhanced&&c(G).enhanced.length>1)&&He($t)})}var mr=fe(Fe,2);{var nr=He=>{qt(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:_e,title:"Back to original text",children:(ft,Pt)=>{var _t=LS(),kr=ze(_t);Ah(kr,{size:16}),yr(2),T(ft,_t)},$$slots:{default:!0}})};oe(mr,He=>{c(G)&&!c($e)&&c(V)!==0&&He(nr)})}L(be);var zn=fe(be,2);{var wo=He=>{var ft=MS(),Pt=fe(R(ft),2),_t=R(Pt,!0);L(Pt),L(ft),xe(()=>Ne(_t,c(Se))),T(He,ft)};oe(zn,He=>{c(ne)&&!c(je)&&He(wo)})}var ko=fe(zn,2);{var xo=He=>{var ft=ZS(),Pt=fe(R(ft),2),_t=R(Pt,!0);L(Pt),L(ft),xe(()=>Ne(_t,c(je))),T(He,ft)};oe(ko,He=>{c(je)&&He(xo)})}T(N,H)};oe(Yr,N=>{z(h()),U(()=>h().enableEnhanceWithAi)&&N(Q)})}L(se),xe(N=>{Ne(Qe,`${z(h()),U(()=>h().title)??""} `),sn(st,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"}`),Ne(Bt,`${c(W),U(()=>c(W)?.length||0)??""}${N??""}`)},[()=>(c(B),U(()=>c(B)?` ${c(B).split("/")[1]||""}`:""))]),T(i,se),Ke()}var WS=ee("<input/>"),VS=ee("<input/>");function QS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"value",15),d=_(n,"files",15),m=_(n,"data-slot",3,"input"),p=Dt(n,["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]);var g=Ze(),v=ze(g);{var b=k=>{var y=WS();Wt(y,I=>({"data-slot":m(),class:I,type:"file",...p}),[()=>wr("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),Or(y,I=>u(I),()=>u()),Vx(y,d),Ea(y,l),T(k,y)},h=k=>{var y=VS();Wt(y,I=>({"data-slot":m(),class:I,type:n.type,...p}),[()=>wr("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),Or(y,I=>u(I),()=>u()),Ea(y,l),T(k,y)};oe(v,k=>{n.type==="file"?k(b):k(h,!1)})}T(i,g),Ke()}var GS=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),JS=ee('<span class="text-destructive ml-1">*</span>'),BS=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),YS=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>'),KS=wn('<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>'),HS=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>'),XS=ee("<!> <span>Reset</span>",1),eI=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>'),tI=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>'),rI=ee('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),nI=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 iI(i,n){Ye(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X(),g=X(),v=X(),b=X();let h=_(n,"question",8),k=_(n,"value",8,""),y=_(n,"onChange",8),I=_(n,"error",8,void 0),x=_(n,"currentMode",8,void 0),O=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0),_(n,"apiKey",8,void 0),_(n,"hostUrl",8,void 0);let j=_(n,"identifier",8,void 0),J=_(n,"feedbackConfigurationId",8,void 0),re=_(n,"otherConfigurationProperties",8,void 0),W=X(k()||""),G=X(null),V=X(0),M=X(I()),te=X(!1),ne=X(!1),$e=X(!1),je=X(null),Se=X(null),ke=X(!1),ve=X(!1),B=X(""),P=X(0),Z=null,C=X(c(W));xn(()=>{setTimeout(()=>{const N=we(c(W));$(M,N),N&&_i(h().id,N),$(ke,!0)},0)}),Ta(()=>{Z!==null&&clearInterval(Z)});function S(){c(te)||$(te,!0)}function D(N){Z!==null&&clearInterval(Z),Z=fb(N,H=>{$(P,H)},()=>{Z=null,$(je,null)})}async function F(){if(!Ee())return;const N=c(W);try{$($e,!0),$(je,null);const H=await pb({questionId:h().id,identifier:j(),feedbackConfigurationId:J(),userText:N});if(H?.data?.refinedText){const be=H.data.refinedText;$(Se,re()?.otherFields?.aiEnhancementSuccessMessage||H.message||"Text refined successfully"),c(G)?($(G,{original:c(G).original,enhanced:[...c(G).enhanced,be]}),$(V,c(G).enhanced.length)):($(G,{original:N,enhanced:[be]}),$(V,1)),$(W,be),$(ne,!0);const Me=we(be);$(M,Me),y()(be),lr(h().id,be,s.QuestionTypes.SHORT_ANSWER,Me)}else{if(H?.message){const{code:be,message:Me,seconds:Fe}=db(H.message);be==="1001"&&Fe!==void 0&&D(Fe),$(je,mb(be,Me,re(),Fe))}$(ne,!1)}}catch(H){console.error("Error enhancing text:",H),$(je,"An error occurred while enhancing text!"),$(ne,!1)}finally{$($e,!1)}}function ue(){if(!c(G))return;const N=c(G).original;$(W,N),$(V,0);const H=we(N);$(M,H),y()(N),lr(h().id,N,s.QuestionTypes.SHORT_ANSWER,H)}function _e(N){if(!c(G))return;let H;if(N===0)H=c(G).original;else{const Me=N-1;if(Me>=c(G).enhanced.length)return;H=c(G).enhanced[Me]}$(W,H),$(V,N);const be=we(H);$(M,be),y()(H),lr(h().id,H,s.QuestionTypes.SHORT_ANSWER,be)}function ce(){return c(G)?c(G).enhanced.length+1:0}function we(N){if(h().required&&(!N||N.trim()===""))return h().errorMessage||"This field is required";if(h().maxCharacters!==void 0&&N.length>h().maxCharacters||h().minCharacters!==void 0&&N.length>0&&N.length<h().minCharacters)return h().errorMessage;if(h().enableRegexValidation&&h().regexPattern)try{const H=new RegExp(h().regexPattern);if(N.length>0&&!H.test(N))return h().errorMessage||"Input does not match required pattern"}catch{}}function Ee(){const N=c(W).trim();return N?h().minCharactersToEnhance!==void 0?N.length>=h().minCharactersToEnhance:!0:!1}de(()=>z(x()),()=>{$(u,x()==="dark")}),de(()=>(z(k()),c(W),c(te)),()=>{k()!==void 0&&k()!==c(W)&&!c(te)&&($(W,k()),$(C,k()))}),de(()=>c(W),()=>{$(l,c(W).length||0)}),de(()=>z(h()),()=>{$(d,h().minCharacters)}),de(()=>z(h()),()=>{$(m,h().maxCharacters)}),de(()=>(c(m),c(l)),()=>{$(p,c(m)!==void 0&&c(l)>c(m))}),de(()=>(c(d),c(l)),()=>{$(g,c(d)!==void 0&&c(l)<c(d)&&c(l)>0)}),de(()=>(c(p),c(g)),()=>{$(v,c(p)||c(g))}),de(()=>(c(d),c(m)),()=>{$(b,c(d)!==void 0||c(m)!==void 0)}),de(()=>(c(W),z(h())),()=>{const N=c(W).trim();N?h().minCharactersToEnhance!==void 0?$(ve,N.length>=h().minCharactersToEnhance):$(ve,!0):$(ve,!1)}),de(()=>(c(W),c(d),c(m),z(h())),()=>{const N=c(W)?.length||0;c(d)!==void 0&&c(m)!==void 0?$(B,`${N} / (${c(d)} - ${c(m)})`):c(m)!==void 0&&h().required?$(B,`${N} / (1 - ${c(m)})`):c(d)!==void 0?$(B,`${N} / (${c(d)} - 5000)`):$(B,`${N}`)}),de(()=>(c(P),z(re())),()=>{c(P)>0&&re()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(je,`${re().otherFields.aiEnhancementCooldownErrorMessage} (${c(P)}s)`)}),de(()=>z(I()),()=>{I()!==void 0&&$(M,I())}),de(()=>(c(ke),c(te),c(W),c(C),z(y()),z(h()),s.QuestionTypes),()=>{if(c(ke)&&c(te)&&c(W)!==c(C)){$(C,c(W));const N=we(c(W));$(M,N),y()(c(W)),lr(h().id,c(W),s.QuestionTypes.SHORT_ANSWER,N)}}),sr(),Ht();var se=nI(),ie=R(se),Pe=R(ie);{var Ue=N=>{var H=GS(),be=R(H);L(H),xe(()=>Ne(be,`${O()??""}.`)),T(N,H)};oe(Pe,N=>{O()!==void 0&&N(Ue)})}var qe=fe(Pe,2),We=R(qe),Qe=R(We),ot=fe(Qe);{var Ce=N=>{var H=JS();T(N,H)};oe(ot,N=>{z(h()),U(()=>h().required)&&N(Ce)})}L(We);var yt=fe(We,2);{var kt=N=>{var H=BS(),be=R(H,!0);L(H),xe(()=>Ne(be,(z(h()),U(()=>h().description)))),T(N,H)};oe(yt,N=>{z(h()),U(()=>h().description)&&N(kt)})}L(qe),L(ie);var Ot=fe(ie,2);{var Lt=N=>{var H=YS(),be=R(H),Me=R(be,!0);L(be),L(H),xe(()=>Ne(Me,c(M))),T(N,H)};oe(Ot,N=>{c(M)&&c(te)&&N(Lt)})}var Mt=fe(Ot,2),Et=R(Mt);{let N=Le(()=>`w-full pr-20 text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 ${c(b)?"pr-20":""}`);QS(Et,{get class(){return c(N)},onfocus:S,get placeholder(){return z(h()),U(()=>h().placeholder)},onblur:()=>{if(c(ke)){const H=we(c(W));$(M,H),_i(h().id,H)}},get value(){return c(W)},set value(H){$(W,H)},$$legacy:!0})}var st=fe(Et,2),Bt=R(st,!0);L(st),L(Mt);var Yr=fe(Mt,2);{var Q=N=>{var H=rI(),be=ze(H),Me=R(be);{let He=Le(()=>c($e)||!c(ve));qt(Me,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:F,get disabled(){return c(He)},children:(ft,Pt)=>{var _t=Ze(),kr=ze(_t);{var pr=St=>{var dn=KS();T(St,dn)},Xt=St=>{Mh(St,{size:16})};oe(kr,St=>{c($e)?St(pr):St(Xt,!1)})}T(ft,_t)},$$slots:{default:!0}})}var Fe=fe(Me,2);{var $t=He=>{var ft=HS(),Pt=R(ft);{let Xt=Le(()=>c(V)===0);qt(Pt,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{c(V)>0&&_e(c(V)-1)},get disabled(){return c(Xt)},title:"Previous version",children:(St,dn)=>{Dh(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var _t=fe(Pt,2),kr=R(_t);L(_t);var pr=fe(_t,2);{let Xt=Le(()=>(c(V),U(()=>c(V)>=ce()-1)));qt(pr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const St=ce();c(V)<St-1&&_e(c(V)+1)},get disabled(){return c(Xt)},title:"Next version",children:(St,dn)=>{Ua(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}L(ft),xe(Xt=>Ne(kr,`${c(V)+1} / ${Xt??""}`),[()=>U(ce)]),T(He,ft)};oe(Fe,He=>{c(G),c($e),U(()=>c(G)&&!c($e)&&c(G).enhanced&&c(G).enhanced.length>1)&&He($t)})}var mr=fe(Fe,2);{var nr=He=>{qt(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:ue,title:"Back to original text",children:(ft,Pt)=>{var _t=XS(),kr=ze(_t);Ah(kr,{size:16}),yr(2),T(ft,_t)},$$slots:{default:!0}})};oe(mr,He=>{c(G)&&!c($e)&&c(V)!==0&&He(nr)})}L(be);var zn=fe(be,2);{var wo=He=>{var ft=eI(),Pt=fe(R(ft),2),_t=R(Pt,!0);L(Pt),L(ft),xe(()=>Ne(_t,c(Se))),T(He,ft)};oe(zn,He=>{c(ne)&&!c(je)&&He(wo)})}var ko=fe(zn,2);{var xo=He=>{var ft=tI(),Pt=fe(R(ft),2),_t=R(Pt,!0);L(Pt),L(ft),xe(()=>Ne(_t,c(je))),T(He,ft)};oe(ko,He=>{c(je)&&He(xo)})}T(N,H)};oe(Yr,N=>{z(h()),U(()=>h().enableEnhanceWithAi)&&N(Q)})}L(se),xe(()=>{Ne(Qe,`${z(h()),U(()=>h().title)??""} `),sn(st,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"}`),Ne(Bt,(c(W),U(()=>c(W)?.length||0)))}),T(i,se),Ke()}function oI(i){return typeof i=="function"}function aI(i){return i!==null&&typeof i=="object"}const sI=["string","number","bigint","boolean"];function Zl(i){return i==null||sI.includes(typeof i)?!0:Array.isArray(i)?i.every(n=>Zl(n)):typeof i=="object"?Object.getPrototypeOf(i)===Object.prototype:!1}const Si=Symbol("box"),qa=Symbol("is-writable");function bt(i,n){const u=lt(i);return n?{[Si]:!0,[qa]:!0,get current(){return c(u)},set current(l){n(l)}}:{[Si]:!0,get current(){return i()}}}function yo(i){return aI(i)&&Si in i}function Rl(i){return yo(i)&&qa in i}function uI(i){return yo(i)?i:oI(i)?bt(i):dI(i)}function lI(i){return Object.entries(i).reduce((n,[u,l])=>yo(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 cI(i){return Rl(i)?{[Si]:!0,get current(){return i.current}}:i}function dI(i){let n=Lr(bn(i));return{[Si]:!0,[qa]:!0,get current(){return c(n)},set current(u){$(n,u,!0)}}}function ni(i){let n=Lr(bn(i));return{[Si]:!0,[qa]:!0,get current(){return c(n)},set current(u){$(n,u,!0)}}}ni.from=uI,ni.with=bt,ni.flatten=lI,ni.readonly=cI,ni.isBox=yo,ni.isWritableBox=Rl;function fI(...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 gb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mI=/\n/g,pI=/^\s*/,gI=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,vI=/^:\s*/,hI=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,bI=/^[;\s]*/,yI=/^\s+|\s+$/g,$I=`
|
|
133
|
-
`,vb="/",hb="*",ii=""
|
|
134
|
-
`)}function $b(i={}){return
|
|
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 MI=$b({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%)"}),ZI=typeof window<"u"?window:void 0;function RI(i){let n=i.activeElement;for(;n?.shadowRoot;){const u=n.shadowRoot.activeElement;if(u===n)break;n=u}return n}class qI{#e;#t;constructor(n={}){const{window:u=ZI,document:l=u?.document}=n;u!==void 0&&(this.#e=l,this.#t=Pv(d=>{const m=gh(u,"focusin",d),p=gh(u,"focusout",d);return()=>{m(),p()}}))}get current(){return this.#t?.(),this.#e?RI(this.#e):null}}new qI;class ql{#e;#t;constructor(n){this.#e=n,this.#t=Symbol(n)}get key(){return this.#t}exists(){return Gk(this.#t)}get(){const n=Iv(this.#t);if(n===void 0)throw new Error(`Context "${this.#e}" not found`);return n}getOr(n){const u=Iv(this.#t);return u===void 0?n:u}set(n){return Qk(this.#t,n)}}function FI(i,n){switch(i){case"post":uo(n);break;case"pre":Hv(n);break}}function _b(i,n,u,l={}){const{lazy:d=!1}=l;let m=!d,p=Array.isArray(i)?[]:void 0;FI(n,()=>{const g=Array.isArray(i)?i.map(b=>b()):i();if(!m){m=!0,p=g;return}const v=U(()=>u(g,p));return p=g,v})}function _o(i,n,u){_b(i,"post",n,u)}function WI(i,n,u){_b(i,"pre",n,u)}_o.pre=WI;function Wa(i,n){return{[Ex()]:u=>yo(i)?(i.current=u,U(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||(i.current=null)}):(i(u),U(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||i(null)})}}function Va(i){return i?"true":"false"}function Ii(i){return i?"":void 0}function wb(i,n){return n?"mixed":i?"true":"false"}class VI{#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 VI(i);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}const Wl="ArrowDown",Vl="ArrowLeft",Ql="ArrowRight",Gl="ArrowUp",QI="End",GI="Enter",JI="Home",kb=" ";function BI(i){return window.getComputedStyle(i).getPropertyValue("direction")}function YI(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Vl:Ql,vertical:Wl}[n]}function KI(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Ql:Vl,vertical:Gl}[n]}function HI(i="ltr",n="horizontal"){return["ltr","rtl"].includes(i)||(i="ltr"),["horizontal","vertical"].includes(n)||(n="horizontal"),{nextKey:YI(i,n),prevKey:KI(i,n)}}function xb(i){return i instanceof HTMLElement}class XI{#e;#t=ni(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=BI(d),{nextKey:v,prevKey:b}=HI(g,this.#e.orientation.current),h=this.#e.loop.current,k={[v]:p+1,[b]:p-1,[JI]:0,[QI]:m.length-1};if(l){const x=v===Wl?Ql:Wl,O=b===Gl?Vl:Gl;k[x]=p+1,k[O]=p-1}let y=k[u.key];if(y===void 0)return;u.preventDefault(),y<0&&h?y=m.length-1:y===m.length&&h&&(y=0);const I=m[y];if(I)return I.focus(),this.#t.current=I.id,this.#e.onCandidateFocus?.(I),I}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||!xb(u)||u.focus()}}function e1(){}function Qa(i,n){return`bits-${i}`}const t1=Fl({component:"checkbox",parts:["root","group","group-label","input"]}),r1=new ql("Checkbox.Group"),Sb=new ql("Checkbox.Root");class Jl{static create(n,u=null){return Sb.set(new Jl(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 c(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 c(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 c(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 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),_o.pre([()=>Vk(this.group?.opts.value.current),()=>this.opts.value.current],([l,d])=>{!l||!d||(this.opts.checked.current=l.includes(d))}),_o.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===GI&&n.preventDefault(),n.key===kb&&(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 c(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":wb(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Va(this.trueRequired),"aria-readonly":Va(this.trueReadonly),"data-disabled":Ii(this.trueDisabled),"data-readonly":Ii(this.trueReadonly),"data-state":n1(this.opts.checked.current,this.opts.indeterminate.current),[t1.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(Sb.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 c(this.#e)}set trueChecked(n){$(this.#e,n)}#t=lt(()=>!!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){xb(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 c(this.#n)}set props(n){$(this.#n,n)}}function n1(i,n){return n?"indeterminate":i?"checked":"unchecked"}var i1=ee("<input/>"),o1=ee("<input/>");function Ib(i,n){Ye(n,!0);let u=_(n,"value",15),l=Dt(n,["$$slots","$$events","$$legacy","value"]);const d=lt(()=>$o(l,{"aria-hidden":"true",tabindex:-1,style:MI}));var m=Ze(),p=ze(m);{var g=b=>{var h=i1();Wt(h,()=>({...c(d),value:u()}),void 0,void 0,void 0,!0),T(b,h)},v=b=>{var h=o1();Wt(h,()=>({...c(d)}),void 0,void 0,void 0,!0),Ea(h,u),T(b,h)};oe(p,b=>{c(d).type==="checkbox"?b(g):b(v,!1)})}T(i,m),Ke()}function a1(i,n){Ye(n,!1);const u=Bl.create();Ht();var l=Ze(),d=ze(l);{var m=p=>{Ib(p,jt(()=>u.props))};oe(d,p=>{u.shouldRender&&p(m)})}T(i,l),Ke()}var s1=ee("<button><!></button>"),u1=ee("<!> <!>",1);function l1(i,n){const u=ja();Ye(n,!0);let l=_(n,"checked",15,!1),d=_(n,"ref",15,null),m=_(n,"disabled",3,!1),p=_(n,"required",3,!1),g=_(n,"name",3,void 0),v=_(n,"value",3,"on"),b=_(n,"id",19,()=>Qa(u)),h=_(n,"indeterminate",15,!1),k=_(n,"type",3,"button"),y=Dt(n,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const I=r1.getOr(null);I&&v()&&(I.opts.value.current.includes(v())?l(!0):l(!1)),_o.pre(()=>v(),()=>{I&&v()&&(I.opts.value.current.includes(v())?l(!0):l(!1))});const x=Jl.create({checked:bt(()=>l(),V=>{l(V),n.onCheckedChange?.(V)}),disabled:bt(()=>m()??!1),required:bt(()=>p()),name:bt(()=>g()),value:bt(()=>v()),id:bt(()=>b()),ref:bt(()=>d(),V=>d(V)),indeterminate:bt(()=>h(),V=>{h(V),n.onIndeterminateChange?.(V)}),type:bt(()=>k()),readonly:bt(()=>!!n.readonly)},I),O=lt(()=>$o({...y},x.props));var j=u1(),J=ze(j);{var re=V=>{var M=Ze(),te=ze(M);{let ne=lt(()=>({props:c(O),...x.snippetProps}));Rt(te,()=>n.child,()=>c(ne))}T(V,M)},W=V=>{var M=s1();Wt(M,()=>({...c(O)}));var te=R(M);Rt(te,()=>n.children??gt,()=>x.snippetProps),L(M),T(V,M)};oe(J,V=>{n.child?V(re):V(W,!1)})}var G=fe(J,2);a1(G,{}),T(i,j),Ke()}const c1=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=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":d1(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,[c1.root]:"",...this.attachment}));get props(){return c(this.#e)}set props(n){$(this.#e,n)}}function d1(i,n){return i===null?"indeterminate":i===n?"loaded":"loading"}var f1=ee("<div><!></div>");function m1(i,n){const u=ja();Ye(n,!0);let l=_(n,"value",3,0),d=_(n,"max",3,100),m=_(n,"min",3,0),p=_(n,"id",19,()=>Qa(u)),g=_(n,"ref",15,null),v=Dt(n,["$$slots","$$events","$$legacy","child","children","value","max","min","id","ref"]);const b=Yl.create({value:bt(()=>l()),max:bt(()=>d()),min:bt(()=>m()),id:bt(()=>p()),ref:bt(()=>g(),O=>g(O))}),h=lt(()=>$o(v,b.props));var k=Ze(),y=ze(k);{var I=O=>{var j=Ze(),J=ze(j);Rt(J,()=>n.child,()=>({props:c(h)})),T(O,j)},x=O=>{var j=f1();Wt(j,()=>({...c(h)}));var J=R(j);Rt(J,()=>n.children??gt),L(j),T(O,j)};oe(y,O=>{n.child?O(I):O(x,!1)})}T(i,k),Ke()}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=lt(()=>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 XI({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=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":Ii(this.opts.disabled.current),"data-readonly":Ii(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=lt(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return c(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=Lr(-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),uo(()=>{$(this.#i,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),_o([()=>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===kb){n.preventDefault(),c(this.#n)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,n,!0)}}#a=lt(()=>({checked:c(this.#o)}));get snippetProps(){return c(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({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":Ii(c(this.#t)),"data-readonly":Ii(c(this.#n)),"data-state":c(this.#o)?"checked":"unchecked","aria-checked":wb(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=lt(()=>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=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 c(this.#t)}set props(n){$(this.#t,n)}}function p1(i,n){Ye(n,!1);const u=tc.create();Ht();var l=Ze(),d=ze(l);{var m=p=>{Ib(p,jt(()=>u.props))};oe(d,p=>{u.shouldRender&&p(m)})}T(i,l),Ke()}var g1=ee("<div><!></div>"),v1=ee("<!> <!>",1);function h1(i,n){const u=ja();Ye(n,!0);let l=_(n,"disabled",3,!1),d=_(n,"value",15,""),m=_(n,"ref",15,null),p=_(n,"orientation",3,"vertical"),g=_(n,"loop",3,!0),v=_(n,"name",3,void 0),b=_(n,"required",3,!1),h=_(n,"readonly",3,!1),k=_(n,"id",19,()=>Qa(u)),y=_(n,"onValueChange",3,e1),I=Dt(n,["$$slots","$$events","$$legacy","disabled","children","child","value","ref","orientation","loop","name","required","readonly","id","onValueChange"]);const x=Xl.create({orientation:bt(()=>p()),disabled:bt(()=>l()),loop:bt(()=>g()),name:bt(()=>v()),required:bt(()=>b()),readonly:bt(()=>h()),id:bt(()=>k()),value:bt(()=>d(),V=>{V!==d()&&(d(V),y()?.(V))}),ref:bt(()=>m(),V=>m(V))}),O=lt(()=>$o(I,x.props));var j=v1(),J=ze(j);{var re=V=>{var M=Ze(),te=ze(M);Rt(te,()=>n.child,()=>({props:c(O)})),T(V,M)},W=V=>{var M=g1();Wt(M,()=>({...c(O)}));var te=R(M);Rt(te,()=>n.children??gt),L(M),T(V,M)};oe(J,V=>{n.child?V(re):V(W,!1)})}var G=fe(J,2);p1(G,{}),T(i,j),Ke()}var b1=ee("<button><!></button>");function y1(i,n){const u=ja();Ye(n,!0);let l=_(n,"id",19,()=>Qa(u)),d=_(n,"disabled",3,!1),m=_(n,"ref",15,null),p=Dt(n,["$$slots","$$events","$$legacy","id","children","child","value","disabled","ref"]);const g=ec.create({value:bt(()=>n.value),disabled:bt(()=>d()??!1),id:bt(()=>l()),ref:bt(()=>m(),I=>m(I))}),v=lt(()=>$o(p,g.props));var b=Ze(),h=ze(b);{var k=I=>{var x=Ze(),O=ze(x);{let j=lt(()=>({props:c(v),...g.snippetProps}));Rt(O,()=>n.child,()=>c(j))}T(I,x)},y=I=>{var x=b1();Wt(x,()=>({...c(v)}));var O=R(x);Rt(O,()=>n.children??gt,()=>g.snippetProps),L(x),T(I,x)};oe(h,I=>{n.child?I(k):I(y,!1)})}T(i,b),Ke()}function $1(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"value",15,""),d=Dt(n,["$$slots","$$events","$$legacy","ref","class","value"]);var m=Ze(),p=ze(m);{let g=lt(()=>wr("grid gap-3",n.class));Oa(p,()=>h1,(v,b)=>{b(v,jt({"data-slot":"radio-group",get class(){return c(g)}},()=>d,{get ref(){return u()},set ref(h){u(h)},get value(){return l()},set value(h){l(h)}}))})}T(i,m),Ke()}function _1(i,n){Ye(n,!0);/**
|
|
132
|
+
*/let u=Mt(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"m9 18 6-6-6-6"}]];Za(i,jt({name:"chevron-right"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}var dS=te("<li><!></li>");function fS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Mt(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}),[()=>wr("[&>svg]:size-3.5",n.class)]);var m=L(d);{var p=v=>{var b=Ze(),h=Ne(b);Rt(h,()=>n.children??gt),T(v,b)},g=v=>{cS(v,{})};ae(m,v=>{n.children?v(p):v(g,!1)})}M(d),Or(d,v=>u(v),()=>u()),T(i,d),Ke()}var mS=te("<a><!></a>");function pS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"href",3,void 0),d=Mt(n,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const m=lt(()=>({"data-slot":"breadcrumb-link",class:wr("hover:text-foreground transition-colors",n.class),href:l(),...d}));var p=Ze(),g=Ne(p);{var v=h=>{var k=Ze(),y=Ne(k);Rt(y,()=>n.child,()=>({props:c(m)})),T(h,k)},b=h=>{var k=mS();Wt(k,()=>({...c(m)}));var y=L(k);Rt(y,()=>n.children??gt),M(k),Or(k,I=>u(I),()=>u()),T(h,k)};ae(g,h=>{n.child?h(v):h(b,!1)})}T(i,p),Ke()}var gS=te("<ol><!></ol>");function vS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Mt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=gS();Wt(d,p=>({"data-slot":"breadcrumb-list",class:p,...l}),[()=>wr("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",n.class)]);var m=L(d);Rt(m,()=>n.children??gt),M(d),Or(d,p=>u(p),()=>u()),T(i,d),Ke()}var hS=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),bS=te('<span class="text-destructive ml-1">*</span>'),yS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),$S=te("<!> <!>",1),_S=te("<!> <!>",1),wS=wn('<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=te('<span class="flex items-center gap-3 w-full"><span class="flex-1 text-sm font-medium"> </span> <!></span>'),xS=te('<div class="p-2 space-y-1"></div>'),SS=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>'),IS=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>'),zS=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 NS(i,n){Ye(n,!1);const u=ee();let l=_(n,"question",8),d=_(n,"value",24,()=>[]),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);const b=d()?Array.isArray(d())?d():[d()]:[];let h=ee(b),k=ee(O()),y=ee(!1),I=ee([]),x=ee([]);function O(){return b.length===0?[]:b.slice(0,-1)}function j(ue,ie){console.log("handleChange called",{option:ue,path:ie,hasChildren:ue.children&&ue.children.length>0}),$(y,!0),ue.children&&ue.children.length>0?(console.log("Navigating to children, setting navPath to:",ie),$(k,ie),console.log("navPath is now:",c(k))):(console.log("Leaf node selected, setting selectedValue to:",ie),$(h,ie),$(k,ie.slice(0,-1)),m()(ie))}function Y(ue){const ie=c(h);return ie.length!==ue.length?!1:ue.every((Pe,Ue)=>ie[Ue]===Pe)}function ne(ue){console.log("getCurrentLevelOptions called with path:",ue);let ie=l().options;for(let Pe=0;Pe<ue.length;Pe++){const Ue=ie.find(qe=>qe.value===ue[Pe]);if(Ue&&Ue.children)ie=Ue.children;else return[]}return console.log("Returning options:",ie),ie}function R(ue){console.log("getBreadcrumbs called with path:",ue);const ie=[];let Pe=l().options;for(let Ue=0;Ue<ue.length;Ue++){const qe=Pe.find(We=>We.value===ue[Ue]);qe&&(ie.push({value:ue[Ue],label:qe.label,index:Ue}),qe.children&&(Pe=qe.children))}return console.log("Returning breadcrumbs:",ie),ie}function V(ue){$(y,!0),$(k,c(k).slice(0,ue+1))}function J(){$(y,!0),$(k,[]),$(h,[]),m()([])}fe(()=>z(g()),()=>{$(u,g()==="dark")}),fe(()=>(z(d()),c(y)),()=>{if(d()!==void 0&&!c(y)){const ue=Array.isArray(d())?d():[d()];$(h,ue),ue.length>0?$(k,ue.slice(0,-1)):$(k,[])}else d()===void 0&&!c(y)&&($(h,[]),$(k,[]))}),fe(()=>c(k),()=>{$(I,ne(c(k)))}),fe(()=>c(k),()=>{$(x,R(c(k)))}),sr(),Ht();var A=zS(),re=L(A),oe=L(re);{var we=ue=>{var ie=hS(),Pe=L(ie);M(ie),Se(()=>je(Pe,`${v()??""}.`)),T(ue,ie)};ae(oe,ue=>{v()!==void 0&&ue(we)})}var Ie=me(oe,2),ke=L(Ie),xe=L(ke),Q=me(xe);{var G=ue=>{var ie=bS();T(ue,ie)};ae(Q,ue=>{z(l()),C(()=>l().required)&&ue(G)})}M(ke);var B=me(ke,2);{var F=ue=>{var ie=yS(),Pe=L(ie,!0);M(ie),Se(()=>je(Pe,(z(l()),C(()=>l().description)))),T(ue,ie)};ae(B,ue=>{z(l()),C(()=>l().description)&&ue(F)})}M(Ie),M(re);var P=me(re,2),S=L(P),D=L(S);aS(D,{children:(ue,ie)=>{vS(ue,{class:"flex items-center gap-1.5 flex-wrap",children:(Pe,Ue)=>{var qe=_S(),We=Ne(qe);cb(We,{children:(ot,Ce)=>{qt(ot,{type:"button",variant:"ghost",size:"sm",class:"h-8 w-8 p-0 hover:bg-background/80 rounded-md transition-colors",onclick:J,"aria-label":"Home",children:(yt,kt)=>{n0(yt,{size:18,class:"text-muted-foreground hover:text-foreground transition-colors"})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ge=me(We,2);dr(Ge,1,()=>c(x),_r,(ot,Ce)=>{var yt=$S(),kt=Ne(yt);fS(kt,{class:"text-muted-foreground/50",children:(At,Lt)=>{Ca(At,{size:14})},$$slots:{default:!0}});var Ot=me(kt,2);cb(Ot,{children:(At,Lt)=>{pS(At,{onclick:()=>V(c(Ce).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:(Et,st)=>{yr();var Bt=kn();Se(()=>je(Bt,(c(Ce),C(()=>c(Ce).label)))),T(Et,Bt)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(ot,yt)}),T(Pe,qe)},$$slots:{default:!0}})},$$slots:{default:!0}}),M(S);var q=me(S,2),le=L(q);{var $e=ue=>{var ie=xS();dr(ie,5,()=>c(I),_r,(Pe,Ue)=>{const qe=Ae(()=>(c(k),c(Ue),C(()=>Y([...c(k),c(Ue).value])))),We=Ae(()=>(c(Ue),C(()=>c(Ue).children&&c(Ue).children.length>0)));{let Ge=Ae(()=>`w-full justify-start px-4 py-3.5 h-auto rounded-lg text-left transition-all relative group ${c(qe)&&!c(We)?"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(Pe,{type:"button",variant:"ghost",get class(){return c(Ge)},onclick:()=>j(c(Ue),[...c(k),c(Ue).value]),children:(ot,Ce)=>{var yt=kS(),kt=L(yt),Ot=L(kt,!0);M(kt);var At=me(kt,2);{var Lt=st=>{{let Bt=Ae(()=>`flex-shrink-0 transition-transform group-hover:translate-x-0.5 ${c(qe)?"text-primary":"text-muted-foreground"}`);Ca(st,{size:18,get class(){return c(Bt)}})}},Et=st=>{var Bt=Ze(),Yr=Ne(Bt);{var W=N=>{var X=wS();T(N,X)};ae(Yr,N=>{c(qe)&&N(W)},!0)}T(st,Bt)};ae(At,st=>{c(We)?st(Lt):st(Et,!1)})}M(yt),Se(()=>je(Ot,(c(Ue),C(()=>c(Ue).label)))),T(ot,yt)},$$slots:{default:!0}})}}),M(ie),T(ue,ie)},de=ue=>{var ie=SS();T(ue,ie)};ae(le,ue=>{c(I),C(()=>c(I).length>0)?ue($e):ue(de,!1)})}M(q),M(P);var _e=me(P,2);{var Ee=ue=>{var ie=IS(),Pe=me(L(ie),2),Ue=L(Pe,!0);M(Pe),M(ie),Se(()=>je(Ue,p())),T(ue,ie)};ae(_e,ue=>{p()&&ue(Ee)})}M(A),Se(()=>je(xe,`${z(l()),C(()=>l().title)??""} `)),T(i,A),Ke()}var jS=te("<textarea></textarea>");function TS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"value",15),d=_(n,"data-slot",3,"textarea"),m=Mt(n,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var p=jS();sx(p),Wt(p,g=>({"data-slot":d(),class:g,...m}),[()=>wr("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)]),Or(p,g=>u(g),()=>u()),Oa(p,l),T(i,p),Ke()}function db(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 fb(i,n,u){let l=i;n(l);const d=setInterval(()=>{l--,n(l),l<=0&&(clearInterval(d),u())},1e3);return d}function mb(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 pb(i){return await window.encatch._internal.refineText({questionId:i.questionId,identifier:i.identifier,feedbackConfigurationId:i.feedbackConfigurationId,userText:i.userText})}var OS=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),ES=te('<span class="text-destructive ml-1">*</span>'),PS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),CS=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=wn('<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=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>'),MS=te("<!> <span>Reset</span>",1),AS=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>'),LS=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>'),ZS=te('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),RS=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 qS(i,n){Ye(n,!1);const u=ee(),l=ee(),d=ee(),m=ee(),p=ee(),g=ee(),v=ee(),b=ee();let h=_(n,"question",8),k=_(n,"value",8,""),y=_(n,"onChange",8),I=_(n,"error",8,void 0),x=_(n,"currentMode",8,void 0),O=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0),_(n,"apiKey",8,void 0),_(n,"hostUrl",8,void 0);let j=_(n,"identifier",8,void 0),Y=_(n,"feedbackConfigurationId",8,void 0),ne=_(n,"otherConfigurationProperties",8,void 0),R=ee(k()??""),V=ee(null),J=ee(0),A=ee(I()),re=ee(!1),oe=ee(!1),we=ee(!1),Ie=ee(null),ke=ee(null),xe=ee(!1),Q=ee(!1),G=ee(""),B=ee(0),F=null,P=ee(c(R));xn(()=>{setTimeout(()=>{const N=D(c(R));$(A,N),N&&$i(h().id,N),$(xe,!0)},0)}),ja(()=>{F!==null&&clearInterval(F)});function S(){c(re)||$(re,!0)}function D(N){if(h().required&&(!N||N.trim()===""))return h().errorMessage||"This field is required";if(h().maxCharacters!==void 0&&N.length>h().maxCharacters||h().minCharacters!==void 0&&N.length>0&&N.length<h().minCharacters)return h().errorMessage}function q(N){F!==null&&clearInterval(F),F=fb(N,X=>{$(B,X)},()=>{F=null,$(Ie,null)})}async function le(){if(!Ee()||!j()||!Y())return;const N=c(R);try{$(we,!0),$(Ie,null);const X=await pb({questionId:h().id,identifier:j(),feedbackConfigurationId:Y(),userText:N});if(X?.data?.refinedText){const be=X.data.refinedText;$(ke,ne()?.otherFields?.aiEnhancementSuccessMessage||X.message||"Text refined successfully"),c(V)?($(V,{original:c(V).original,enhanced:[...c(V).enhanced,be]}),$(J,c(V).enhanced.length)):($(V,{original:N,enhanced:[be]}),$(J,1)),$(R,be),$(oe,!0);const Le=D(be);$(A,Le),y()(be),lr(h().id,be,s.QuestionTypes.LONG_TEXT,Le)}else{if(X?.message){const{code:be,message:Le,seconds:Fe}=db(X.message);be==="1001"&&Fe!==void 0&&q(Fe),$(Ie,mb(be,Le,ne(),Fe))}$(oe,!1)}}catch(X){console.error("Error enhancing text:",X),$(Ie,"An error occurred while enhancing text"),$(oe,!1)}finally{$(we,!1)}}function $e(){if(!c(V))return;const N=c(V).original;$(R,N),$(J,0);const X=D(N);$(A,X),y()(N),lr(h().id,N,s.QuestionTypes.LONG_TEXT,X)}function de(N){if(!c(V))return;let X;if(N===0)X=c(V).original;else{const Le=N-1;if(Le>=c(V).enhanced.length)return;X=c(V).enhanced[Le]}$(R,X),$(J,N);const be=D(X);$(A,be),y()(X),lr(h().id,X,s.QuestionTypes.LONG_TEXT,be)}function _e(){return c(V)?c(V).enhanced.length+1:0}function Ee(){const N=c(R).trim();return N?h().minCharactersToEnhance!==void 0?N.length>=h().minCharactersToEnhance:!0:!1}fe(()=>z(x()),()=>{$(u,x()==="dark")}),fe(()=>(z(k()),c(R),c(re)),()=>{k()!==void 0&&k()!==c(R)&&!c(re)&&($(R,k()),$(P,k()))}),fe(()=>c(R),()=>{$(l,c(R).length)}),fe(()=>z(h()),()=>{$(d,h().minCharacters)}),fe(()=>z(h()),()=>{$(m,h().maxCharacters)}),fe(()=>(c(m),c(l)),()=>{$(p,c(m)!==void 0&&c(l)>c(m))}),fe(()=>(c(d),c(l)),()=>{$(g,c(d)!==void 0&&c(l)<c(d)&&c(l)>0)}),fe(()=>(c(p),c(g)),()=>{$(v,c(p)||c(g))}),fe(()=>(c(d),c(m)),()=>{$(b,c(d)!==void 0||c(m)!==void 0)}),fe(()=>(c(R),z(h())),()=>{const N=c(R).trim();N?h().minCharactersToEnhance!==void 0?$(Q,N.length>=h().minCharactersToEnhance):$(Q,!0):$(Q,!1)}),fe(()=>(c(d),c(m),c(l),z(h())),()=>{c(d)!==void 0&&c(m)!==void 0?$(G,`${c(l)} / (${c(d)} - ${c(m)})`):c(m)!==void 0&&h().required?$(G,`${c(l)} / (1 - ${c(m)})`):c(d)!==void 0?$(G,`${c(l)} / (${c(d)} - 5000)`):$(G,"")}),fe(()=>(c(B),z(ne())),()=>{c(B)>0&&ne()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(Ie,`${ne().otherFields.aiEnhancementCooldownErrorMessage} (${c(B)}s)`)}),fe(()=>z(I()),()=>{I()!==void 0&&$(A,I())}),fe(()=>(c(xe),c(re),c(R),c(P),z(y()),z(h()),s.QuestionTypes),()=>{if(c(xe)&&c(re)&&c(R)!==c(P)){$(P,c(R));const N=D(c(R));$(A,N),y()(c(R)),lr(h().id,c(R),s.QuestionTypes.LONG_TEXT,N)}}),sr(),Ht();var ue=RS(),ie=L(ue),Pe=L(ie);{var Ue=N=>{var X=OS(),be=L(X);M(X),Se(()=>je(be,`${O()??""}.`)),T(N,X)};ae(Pe,N=>{O()!==void 0&&N(Ue)})}var qe=me(Pe,2),We=L(qe),Ge=L(We),ot=me(Ge);{var Ce=N=>{var X=ES();T(N,X)};ae(ot,N=>{z(h()),C(()=>h().required)&&N(Ce)})}M(We);var yt=me(We,2);{var kt=N=>{var X=PS(),be=L(X,!0);M(X),Se(()=>je(be,(z(h()),C(()=>h().description)))),T(N,X)};ae(yt,N=>{z(h()),C(()=>h().description)&&N(kt)})}M(qe),M(ie);var Ot=me(ie,2);{var At=N=>{var X=CS(),be=L(X),Le=L(be,!0);M(be),M(X),Se(()=>je(Le,c(A))),T(N,X)};ae(Ot,N=>{c(A)&&c(re)&&N(At)})}var Lt=me(Ot,2),Et=L(Lt);{let N=Ae(()=>(z(h()),C(()=>h().rows||4)));TS(Et,{class:"w-full min-h-[120px] text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",onfocus:S,get placeholder(){return z(h()),C(()=>h().placeholder)},get rows(){return c(N)},onblur:()=>{if(c(xe)){const X=D(c(R));$(A,X),$i(h().id,X)}},get value(){return c(R)},set value(X){$(R,X)},$$legacy:!0})}var st=me(Et,2),Bt=L(st);M(st),M(Lt);var Yr=me(Lt,2);{var W=N=>{var X=ZS(),be=Ne(X),Le=L(be);{let He=Ae(()=>c(we)||!c(Q));qt(Le,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:le,get disabled(){return c(He)},children:(ft,Pt)=>{var _t=Ze(),kr=Ne(_t);{var pr=St=>{var dn=US();T(St,dn)},Xt=St=>{Lh(St,{size:16})};ae(kr,St=>{c(we)?St(pr):St(Xt,!1)})}T(ft,_t)},$$slots:{default:!0}})}var Fe=me(Le,2);{var $t=He=>{var ft=DS(),Pt=L(ft);{let Xt=Ae(()=>c(J)===0);qt(Pt,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{c(J)>0&&de(c(J)-1)},get disabled(){return c(Xt)},title:"Previous version",children:(St,dn)=>{Mh(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var _t=me(Pt,2),kr=L(_t);M(_t);var pr=me(_t,2);{let Xt=Ae(()=>(c(J),C(()=>c(J)>=_e()-1)));qt(pr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const St=_e();c(J)<St-1&&de(c(J)+1)},get disabled(){return c(Xt)},title:"Next version",children:(St,dn)=>{Ca(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}M(ft),Se(Xt=>je(kr,`${c(J)+1} / ${Xt??""}`),[()=>C(_e)]),T(He,ft)};ae(Fe,He=>{c(V),c(we),C(()=>c(V)&&!c(we)&&c(V).enhanced&&c(V).enhanced.length>1)&&He($t)})}var mr=me(Fe,2);{var nr=He=>{qt(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:$e,title:"Back to original text",children:(ft,Pt)=>{var _t=MS(),kr=Ne(_t);Dh(kr,{size:16}),yr(2),T(ft,_t)},$$slots:{default:!0}})};ae(mr,He=>{c(V)&&!c(we)&&c(J)!==0&&He(nr)})}M(be);var zn=me(be,2);{var wo=He=>{var ft=AS(),Pt=me(L(ft),2),_t=L(Pt,!0);M(Pt),M(ft),Se(()=>je(_t,c(ke))),T(He,ft)};ae(zn,He=>{c(oe)&&!c(Ie)&&He(wo)})}var ko=me(zn,2);{var xo=He=>{var ft=LS(),Pt=me(L(ft),2),_t=L(Pt,!0);M(Pt),M(ft),Se(()=>je(_t,c(Ie))),T(He,ft)};ae(ko,He=>{c(Ie)&&He(xo)})}T(N,X)};ae(Yr,N=>{z(h()),C(()=>h().enableEnhanceWithAi)&&N(W)})}M(ue),Se(N=>{je(Ge,`${z(h()),C(()=>h().title)??""} `),sn(st,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"}`),je(Bt,`${c(R),C(()=>c(R)?.length||0)??""}${N??""}`)},[()=>(c(G),C(()=>c(G)?` ${c(G).split("/")[1]||""}`:""))]),T(i,ue),Ke()}var FS=te("<input/>"),WS=te("<input/>");function QS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"value",15),d=_(n,"files",15),m=_(n,"data-slot",3,"input"),p=Mt(n,["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]);var g=Ze(),v=Ne(g);{var b=k=>{var y=FS();Wt(y,I=>({"data-slot":m(),class:I,type:"file",...p}),[()=>wr("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),Or(y,I=>u(I),()=>u()),Wx(y,d),Oa(y,l),T(k,y)},h=k=>{var y=WS();Wt(y,I=>({"data-slot":m(),class:I,type:n.type,...p}),[()=>wr("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),Or(y,I=>u(I),()=>u()),Oa(y,l),T(k,y)};ae(v,k=>{n.type==="file"?k(b):k(h,!1)})}T(i,g),Ke()}var GS=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),VS=te('<span class="text-destructive ml-1">*</span>'),JS=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),BS=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>'),YS=wn('<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=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>'),HS=te("<!> <span>Reset</span>",1),XS=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>'),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"><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=te('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),rI=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 nI(i,n){Ye(n,!1);const u=ee(),l=ee(),d=ee(),m=ee(),p=ee(),g=ee(),v=ee(),b=ee();let h=_(n,"question",8),k=_(n,"value",8,""),y=_(n,"onChange",8),I=_(n,"error",8,void 0),x=_(n,"currentMode",8,void 0),O=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0),_(n,"apiKey",8,void 0),_(n,"hostUrl",8,void 0);let j=_(n,"identifier",8,void 0),Y=_(n,"feedbackConfigurationId",8,void 0),ne=_(n,"otherConfigurationProperties",8,void 0),R=ee(k()||""),V=ee(null),J=ee(0),A=ee(I()),re=ee(!1),oe=ee(!1),we=ee(!1),Ie=ee(null),ke=ee(null),xe=ee(!1),Q=ee(!1),G=ee(""),B=ee(0),F=null,P=ee(c(R));xn(()=>{setTimeout(()=>{const N=_e(c(R));$(A,N),N&&$i(h().id,N),$(xe,!0)},0)}),ja(()=>{F!==null&&clearInterval(F)});function S(){c(re)||$(re,!0)}function D(N){F!==null&&clearInterval(F),F=fb(N,X=>{$(B,X)},()=>{F=null,$(Ie,null)})}async function q(){if(!Ee())return;const N=c(R);try{$(we,!0),$(Ie,null);const X=await pb({questionId:h().id,identifier:j(),feedbackConfigurationId:Y(),userText:N});if(X?.data?.refinedText){const be=X.data.refinedText;$(ke,ne()?.otherFields?.aiEnhancementSuccessMessage||X.message||"Text refined successfully"),c(V)?($(V,{original:c(V).original,enhanced:[...c(V).enhanced,be]}),$(J,c(V).enhanced.length)):($(V,{original:N,enhanced:[be]}),$(J,1)),$(R,be),$(oe,!0);const Le=_e(be);$(A,Le),y()(be),lr(h().id,be,s.QuestionTypes.SHORT_ANSWER,Le)}else{if(X?.message){const{code:be,message:Le,seconds:Fe}=db(X.message);be==="1001"&&Fe!==void 0&&D(Fe),$(Ie,mb(be,Le,ne(),Fe))}$(oe,!1)}}catch(X){console.error("Error enhancing text:",X),$(Ie,"An error occurred while enhancing text!"),$(oe,!1)}finally{$(we,!1)}}function le(){if(!c(V))return;const N=c(V).original;$(R,N),$(J,0);const X=_e(N);$(A,X),y()(N),lr(h().id,N,s.QuestionTypes.SHORT_ANSWER,X)}function $e(N){if(!c(V))return;let X;if(N===0)X=c(V).original;else{const Le=N-1;if(Le>=c(V).enhanced.length)return;X=c(V).enhanced[Le]}$(R,X),$(J,N);const be=_e(X);$(A,be),y()(X),lr(h().id,X,s.QuestionTypes.SHORT_ANSWER,be)}function de(){return c(V)?c(V).enhanced.length+1:0}function _e(N){if(h().required&&(!N||N.trim()===""))return h().errorMessage||"This field is required";if(h().maxCharacters!==void 0&&N.length>h().maxCharacters||h().minCharacters!==void 0&&N.length>0&&N.length<h().minCharacters)return h().errorMessage;if(h().enableRegexValidation&&h().regexPattern)try{const X=new RegExp(h().regexPattern);if(N.length>0&&!X.test(N))return h().errorMessage||"Input does not match required pattern"}catch{}}function Ee(){const N=c(R).trim();return N?h().minCharactersToEnhance!==void 0?N.length>=h().minCharactersToEnhance:!0:!1}fe(()=>z(x()),()=>{$(u,x()==="dark")}),fe(()=>(z(k()),c(R),c(re)),()=>{k()!==void 0&&k()!==c(R)&&!c(re)&&($(R,k()),$(P,k()))}),fe(()=>c(R),()=>{$(l,c(R).length||0)}),fe(()=>z(h()),()=>{$(d,h().minCharacters)}),fe(()=>z(h()),()=>{$(m,h().maxCharacters)}),fe(()=>(c(m),c(l)),()=>{$(p,c(m)!==void 0&&c(l)>c(m))}),fe(()=>(c(d),c(l)),()=>{$(g,c(d)!==void 0&&c(l)<c(d)&&c(l)>0)}),fe(()=>(c(p),c(g)),()=>{$(v,c(p)||c(g))}),fe(()=>(c(d),c(m)),()=>{$(b,c(d)!==void 0||c(m)!==void 0)}),fe(()=>(c(R),z(h())),()=>{const N=c(R).trim();N?h().minCharactersToEnhance!==void 0?$(Q,N.length>=h().minCharactersToEnhance):$(Q,!0):$(Q,!1)}),fe(()=>(c(R),c(d),c(m),z(h())),()=>{const N=c(R)?.length||0;c(d)!==void 0&&c(m)!==void 0?$(G,`${N} / (${c(d)} - ${c(m)})`):c(m)!==void 0&&h().required?$(G,`${N} / (1 - ${c(m)})`):c(d)!==void 0?$(G,`${N} / (${c(d)} - 5000)`):$(G,`${N}`)}),fe(()=>(c(B),z(ne())),()=>{c(B)>0&&ne()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(Ie,`${ne().otherFields.aiEnhancementCooldownErrorMessage} (${c(B)}s)`)}),fe(()=>z(I()),()=>{I()!==void 0&&$(A,I())}),fe(()=>(c(xe),c(re),c(R),c(P),z(y()),z(h()),s.QuestionTypes),()=>{if(c(xe)&&c(re)&&c(R)!==c(P)){$(P,c(R));const N=_e(c(R));$(A,N),y()(c(R)),lr(h().id,c(R),s.QuestionTypes.SHORT_ANSWER,N)}}),sr(),Ht();var ue=rI(),ie=L(ue),Pe=L(ie);{var Ue=N=>{var X=GS(),be=L(X);M(X),Se(()=>je(be,`${O()??""}.`)),T(N,X)};ae(Pe,N=>{O()!==void 0&&N(Ue)})}var qe=me(Pe,2),We=L(qe),Ge=L(We),ot=me(Ge);{var Ce=N=>{var X=VS();T(N,X)};ae(ot,N=>{z(h()),C(()=>h().required)&&N(Ce)})}M(We);var yt=me(We,2);{var kt=N=>{var X=JS(),be=L(X,!0);M(X),Se(()=>je(be,(z(h()),C(()=>h().description)))),T(N,X)};ae(yt,N=>{z(h()),C(()=>h().description)&&N(kt)})}M(qe),M(ie);var Ot=me(ie,2);{var At=N=>{var X=BS(),be=L(X),Le=L(be,!0);M(be),M(X),Se(()=>je(Le,c(A))),T(N,X)};ae(Ot,N=>{c(A)&&c(re)&&N(At)})}var Lt=me(Ot,2),Et=L(Lt);{let N=Ae(()=>`w-full pr-20 text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 ${c(b)?"pr-20":""}`);QS(Et,{get class(){return c(N)},onfocus:S,get placeholder(){return z(h()),C(()=>h().placeholder)},onblur:()=>{if(c(xe)){const X=_e(c(R));$(A,X),$i(h().id,X)}},get value(){return c(R)},set value(X){$(R,X)},$$legacy:!0})}var st=me(Et,2),Bt=L(st,!0);M(st),M(Lt);var Yr=me(Lt,2);{var W=N=>{var X=tI(),be=Ne(X),Le=L(be);{let He=Ae(()=>c(we)||!c(Q));qt(Le,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:q,get disabled(){return c(He)},children:(ft,Pt)=>{var _t=Ze(),kr=Ne(_t);{var pr=St=>{var dn=YS();T(St,dn)},Xt=St=>{Lh(St,{size:16})};ae(kr,St=>{c(we)?St(pr):St(Xt,!1)})}T(ft,_t)},$$slots:{default:!0}})}var Fe=me(Le,2);{var $t=He=>{var ft=KS(),Pt=L(ft);{let Xt=Ae(()=>c(J)===0);qt(Pt,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{c(J)>0&&$e(c(J)-1)},get disabled(){return c(Xt)},title:"Previous version",children:(St,dn)=>{Mh(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var _t=me(Pt,2),kr=L(_t);M(_t);var pr=me(_t,2);{let Xt=Ae(()=>(c(J),C(()=>c(J)>=de()-1)));qt(pr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const St=de();c(J)<St-1&&$e(c(J)+1)},get disabled(){return c(Xt)},title:"Next version",children:(St,dn)=>{Ca(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}M(ft),Se(Xt=>je(kr,`${c(J)+1} / ${Xt??""}`),[()=>C(de)]),T(He,ft)};ae(Fe,He=>{c(V),c(we),C(()=>c(V)&&!c(we)&&c(V).enhanced&&c(V).enhanced.length>1)&&He($t)})}var mr=me(Fe,2);{var nr=He=>{qt(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:le,title:"Back to original text",children:(ft,Pt)=>{var _t=HS(),kr=Ne(_t);Dh(kr,{size:16}),yr(2),T(ft,_t)},$$slots:{default:!0}})};ae(mr,He=>{c(V)&&!c(we)&&c(J)!==0&&He(nr)})}M(be);var zn=me(be,2);{var wo=He=>{var ft=XS(),Pt=me(L(ft),2),_t=L(Pt,!0);M(Pt),M(ft),Se(()=>je(_t,c(ke))),T(He,ft)};ae(zn,He=>{c(oe)&&!c(Ie)&&He(wo)})}var ko=me(zn,2);{var xo=He=>{var ft=eI(),Pt=me(L(ft),2),_t=L(Pt,!0);M(Pt),M(ft),Se(()=>je(_t,c(Ie))),T(He,ft)};ae(ko,He=>{c(Ie)&&He(xo)})}T(N,X)};ae(Yr,N=>{z(h()),C(()=>h().enableEnhanceWithAi)&&N(W)})}M(ue),Se(()=>{je(Ge,`${z(h()),C(()=>h().title)??""} `),sn(st,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"}`),je(Bt,(c(R),C(()=>c(R)?.length||0)))}),T(i,ue),Ke()}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 xi=Symbol("box"),Ra=Symbol("is-writable");function bt(i,n){const u=lt(i);return n?{[xi]:!0,[Ra]:!0,get current(){return c(u)},set current(l){n(l)}}:{[xi]:!0,get current(){return i()}}}function yo(i){return oI(i)&&xi in i}function Rl(i){return yo(i)&&Ra in i}function sI(i){return yo(i)?i:iI(i)?bt(i):cI(i)}function uI(i){return Object.entries(i).reduce((n,[u,l])=>yo(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)?{[xi]:!0,get current(){return i.current}}:i}function cI(i){let n=Ar(bn(i));return{[xi]:!0,[Ra]:!0,get current(){return c(n)},set current(u){$(n,u,!0)}}}function ni(i){let n=Ar(bn(i));return{[xi]:!0,[Ra]:!0,get current(){return c(n)},set current(u){$(n,u,!0)}}}ni.from=sI,ni.with=bt,ni.flatten=uI,ni.readonly=lI,ni.isBox=yo,ni.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 gb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,fI=/\n/g,mI=/^\s*/,pI=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,gI=/^:\s*/,vI=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,hI=/^[;\s]*/,bI=/^\s+|\s+$/g,yI=`
|
|
133
|
+
`,vb="/",hb="*",ii="",$I="comment",_I="declaration";function wI(i,n){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];n=n||{};var u=1,l=1;function d(x){var O=x.match(fI);O&&(u+=O.length);var j=x.lastIndexOf(yI);l=~j?x.length-j:l+x.length}function m(){var x={line:u,column:l};return function(O){return O.position=new p(x),b(),O}}function p(x){this.start=x,this.end={line:u,column:l},this.source=n.source}p.prototype.content=i;function g(x){var O=new Error(n.source+":"+u+":"+l+": "+x);if(O.reason=x,O.filename=n.source,O.line=u,O.column=l,O.source=i,!n.silent)throw O}function v(x){var O=x.exec(i);if(O){var j=O[0];return d(j),i=i.slice(j.length),O}}function b(){v(mI)}function h(x){var O;for(x=x||[];O=k();)O!==!1&&x.push(O);return x}function k(){var x=m();if(!(vb!=i.charAt(0)||hb!=i.charAt(1))){for(var O=2;ii!=i.charAt(O)&&(hb!=i.charAt(O)||vb!=i.charAt(O+1));)++O;if(O+=2,ii===i.charAt(O-1))return g("End of comment missing");var j=i.slice(2,O-2);return l+=2,d(j),i=i.slice(O),l+=2,x({type:$I,comment:j})}}function y(){var x=m(),O=v(pI);if(O){if(k(),!v(gI))return g("property missing ':'");var j=v(vI),Y=x({type:_I,property:bb(O[0].replace(gb,ii)),value:j?bb(j[0].replace(gb,ii)):ii});return v(hI),Y}}function I(){var x=[];h(x);for(var O;O=y();)O!==!1&&(x.push(O),h(x));return x}return b(),I()}function bb(i){return i?i.replace(bI,ii):ii}function kI(i,n){let u=null;if(!i||typeof i!="string")return u;const l=wI(i),d=typeof n=="function";return l.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 xI=/\d/,SI=["-","_","/","."];function II(i=""){if(!xI.test(i))return i!==i.toLowerCase()}function zI(i){const n=[];let u="",l,d;for(const m of i){const p=SI.includes(m);if(p===!0){n.push(u),u="",l=void 0;continue}const g=II(m);if(d===!1){if(l===!1&&g===!0){n.push(u),u=m,l=g;continue}if(l===!0&&g===!1&&u.length>1){const v=u.at(-1);n.push(u.slice(0,Math.max(0,u.length-1))),u=v+m,l=g;continue}}u+=m,l=g,d=p}return n.push(u),n}function yb(i){return i?zI(i).map(n=>jI(n)).join(""):""}function NI(i){return TI(yb(i||""))}function jI(i){return i?i[0].toUpperCase()+i.slice(1):""}function TI(i){return i?i[0].toLowerCase()+i.slice(1):""}function qa(i){if(!i)return{};const n={};function u(l,d){if(l.startsWith("-moz-")||l.startsWith("-webkit-")||l.startsWith("-ms-")||l.startsWith("-o-")){n[yb(l)]=d;return}if(l.startsWith("--")){n[l]=d;return}n[NI(l)]=d}return kI(i,u),n}function OI(...i){return(...n)=>{for(const u of i)typeof u=="function"&&u(...n)}}function EI(i,n){const u=RegExp(i,"g");return l=>{if(typeof l!="string")throw new TypeError(`expected an argument of type string, but got ${typeof l}`);return l.match(u)?l.replace(u,n):l}}const PI=EI(/[A-Z]/,i=>`-${i.toLowerCase()}`);function CI(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=>`${PI(n)}: ${i[n]};`).join(`
|
|
134
|
+
`)}function $b(i={}){return CI(i).replace(`
|
|
135
|
+
`," ")}const UI=["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"],DI=new Set(UI);function MI(i){return DI.has(i)}function $o(...i){const n={...i[0]};for(let u=1;u<i.length;u++){const l=i[u];if(l){for(const d of Object.keys(l)){const m=n[d],p=l[d],g=typeof m=="function",v=typeof p=="function";if(g&&MI(d)){const b=m,h=p;n[d]=dI(b,h)}else if(g&&v)n[d]=OI(m,p);else if(d==="class"){const b=Zl(m),h=Zl(p);b&&h?n[d]=fo(m,p):b?n[d]=fo(m):h&&(n[d]=fo(p))}else if(d==="style"){const b=typeof m=="object",h=typeof p=="object",k=typeof m=="string",y=typeof p=="string";if(b&&h)n[d]={...m,...p};else if(b&&y){const I=qa(p);n[d]={...m,...I}}else if(k&&h){const I=qa(m);n[d]={...I,...p}}else if(k&&y){const I=qa(m),x=qa(p);n[d]={...I,...x}}else b?n[d]=m:h?n[d]=p:k?n[d]=m:y&&(n[d]=p)}else n[d]=p!==void 0?p:m}for(const d of Object.getOwnPropertySymbols(l)){const m=n[d],p=l[d];n[d]=p!==void 0?p:m}}}return typeof n.style=="object"&&(n.style=$b(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 AI=$b({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%)"}),LI=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=LI,document:l=u?.document}=n;u!==void 0&&(this.#e=l,this.#t=Pv(d=>{const m=gh(u,"focusin",d),p=gh(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=Iv(this.#t);if(n===void 0)throw new Error(`Context "${this.#e}" not found`);return n}getOr(n){const u=Iv(this.#t);return u===void 0?n:u}set(n){return Gk(this.#t,n)}}function qI(i,n){switch(i){case"post":so(n);break;case"pre":Hv(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 _o(i,n,u){_b(i,"post",n,u)}function FI(i,n,u){_b(i,"pre",n,u)}_o.pre=FI;function Fa(i,n){return{[Ex()]:u=>yo(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 Wa(i){return i?"true":"false"}function Si(i){return i?"":void 0}function wb(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",Ql="ArrowLeft",Gl="ArrowRight",Vl="ArrowUp",QI="End",GI="Enter",VI="Home",kb=" ";function JI(i){return window.getComputedStyle(i).getPropertyValue("direction")}function BI(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Ql:Gl,vertical:Wl}[n]}function YI(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Gl:Ql,vertical:Vl}[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 xb(i){return i instanceof HTMLElement}class HI{#e;#t=ni(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=JI(d),{nextKey:v,prevKey:b}=KI(g,this.#e.orientation.current),h=this.#e.loop.current,k={[v]:p+1,[b]:p-1,[VI]:0,[QI]:m.length-1};if(l){const x=v===Wl?Gl:Wl,O=b===Vl?Ql:Vl;k[x]=p+1,k[O]=p-1}let y=k[u.key];if(y===void 0)return;u.preventDefault(),y<0&&h?y=m.length-1:y===m.length&&h&&(y=0);const I=m[y];if(I)return I.focus(),this.#t.current=I.id,this.#e.onCandidateFocus?.(I),I}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||!xb(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"),Sb=new ql("Checkbox.Root");class Jl{static create(n,u=null){return Sb.set(new Jl(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 c(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 c(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 c(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 c(this.#o)}set trueReadonly(n){$(this.#o,n)}attachment;constructor(n,u){this.opts=n,this.group=u,this.attachment=Fa(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),_o.pre([()=>Qk(this.group?.opts.value.current),()=>this.opts.value.current],([l,d])=>{!l||!d||(this.opts.checked.current=l.includes(d))}),_o.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===GI&&n.preventDefault(),n.key===kb&&(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 c(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":wb(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Wa(this.trueRequired),"aria-readonly":Wa(this.trueReadonly),"data-disabled":Si(this.trueDisabled),"data-readonly":Si(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(Sb.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 c(this.#e)}set trueChecked(n){$(this.#e,n)}#t=lt(()=>!!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){xb(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 c(this.#n)}set props(n){$(this.#n,n)}}function r1(i,n){return n?"indeterminate":i?"checked":"unchecked"}var n1=te("<input/>"),i1=te("<input/>");function Ib(i,n){Ye(n,!0);let u=_(n,"value",15),l=Mt(n,["$$slots","$$events","$$legacy","value"]);const d=lt(()=>$o(l,{"aria-hidden":"true",tabindex:-1,style:AI}));var m=Ze(),p=Ne(m);{var g=b=>{var h=n1();Wt(h,()=>({...c(d),value:u()}),void 0,void 0,void 0,!0),T(b,h)},v=b=>{var h=i1();Wt(h,()=>({...c(d)}),void 0,void 0,void 0,!0),Oa(h,u),T(b,h)};ae(p,b=>{c(d).type==="checkbox"?b(g):b(v,!1)})}T(i,m),Ke()}function o1(i,n){Ye(n,!1);const u=Bl.create();Ht();var l=Ze(),d=Ne(l);{var m=p=>{Ib(p,jt(()=>u.props))};ae(d,p=>{u.shouldRender&&p(m)})}T(i,l),Ke()}var a1=te("<button><!></button>"),s1=te("<!> <!>",1);function u1(i,n){const u=Na();Ye(n,!0);let l=_(n,"checked",15,!1),d=_(n,"ref",15,null),m=_(n,"disabled",3,!1),p=_(n,"required",3,!1),g=_(n,"name",3,void 0),v=_(n,"value",3,"on"),b=_(n,"id",19,()=>Qa(u)),h=_(n,"indeterminate",15,!1),k=_(n,"type",3,"button"),y=Mt(n,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const I=t1.getOr(null);I&&v()&&(I.opts.value.current.includes(v())?l(!0):l(!1)),_o.pre(()=>v(),()=>{I&&v()&&(I.opts.value.current.includes(v())?l(!0):l(!1))});const x=Jl.create({checked:bt(()=>l(),J=>{l(J),n.onCheckedChange?.(J)}),disabled:bt(()=>m()??!1),required:bt(()=>p()),name:bt(()=>g()),value:bt(()=>v()),id:bt(()=>b()),ref:bt(()=>d(),J=>d(J)),indeterminate:bt(()=>h(),J=>{h(J),n.onIndeterminateChange?.(J)}),type:bt(()=>k()),readonly:bt(()=>!!n.readonly)},I),O=lt(()=>$o({...y},x.props));var j=s1(),Y=Ne(j);{var ne=J=>{var A=Ze(),re=Ne(A);{let oe=lt(()=>({props:c(O),...x.snippetProps}));Rt(re,()=>n.child,()=>c(oe))}T(J,A)},R=J=>{var A=a1();Wt(A,()=>({...c(O)}));var re=L(A);Rt(re,()=>n.children??gt,()=>x.snippetProps),M(A),T(J,A)};ae(Y,J=>{n.child?J(ne):J(R,!1)})}var V=me(Y,2);o1(V,{}),T(i,j),Ke()}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=Fa(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":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=te("<div><!></div>");function f1(i,n){const u=Na();Ye(n,!0);let l=_(n,"value",3,0),d=_(n,"max",3,100),m=_(n,"min",3,0),p=_(n,"id",19,()=>Qa(u)),g=_(n,"ref",15,null),v=Mt(n,["$$slots","$$events","$$legacy","child","children","value","max","min","id","ref"]);const b=Yl.create({value:bt(()=>l()),max:bt(()=>d()),min:bt(()=>m()),id:bt(()=>p()),ref:bt(()=>g(),O=>g(O))}),h=lt(()=>$o(v,b.props));var k=Ze(),y=Ne(k);{var I=O=>{var j=Ze(),Y=Ne(j);Rt(Y,()=>n.child,()=>({props:c(h)})),T(O,j)},x=O=>{var j=d1();Wt(j,()=>({...c(h)}));var Y=L(j);Rt(Y,()=>n.children??gt),M(j),T(O,j)};ae(y,O=>{n.child?O(I):O(x,!1)})}T(i,k),Ke()}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=lt(()=>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=Fa(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=lt(()=>({id:this.opts.id.current,role:"radiogroup","aria-required":Wa(this.opts.required.current),"aria-disabled":Wa(this.opts.disabled.current),"aria-readonly":this.opts.readonly.current?"true":void 0,"data-disabled":Si(this.opts.disabled.current),"data-readonly":Si(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=lt(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return c(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=Ar(-1);constructor(n,u){this.opts=n,this.root=u,this.attachment=Fa(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),so(()=>{$(this.#i,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),_o([()=>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===kb){n.preventDefault(),c(this.#n)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,n,!0)}}#a=lt(()=>({checked:c(this.#o)}));get snippetProps(){return c(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({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":Si(c(this.#t)),"data-readonly":Si(c(this.#n)),"data-state":c(this.#o)?"checked":"unchecked","aria-checked":wb(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=lt(()=>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=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 c(this.#t)}set props(n){$(this.#t,n)}}function m1(i,n){Ye(n,!1);const u=tc.create();Ht();var l=Ze(),d=Ne(l);{var m=p=>{Ib(p,jt(()=>u.props))};ae(d,p=>{u.shouldRender&&p(m)})}T(i,l),Ke()}var p1=te("<div><!></div>"),g1=te("<!> <!>",1);function v1(i,n){const u=Na();Ye(n,!0);let l=_(n,"disabled",3,!1),d=_(n,"value",15,""),m=_(n,"ref",15,null),p=_(n,"orientation",3,"vertical"),g=_(n,"loop",3,!0),v=_(n,"name",3,void 0),b=_(n,"required",3,!1),h=_(n,"readonly",3,!1),k=_(n,"id",19,()=>Qa(u)),y=_(n,"onValueChange",3,XI),I=Mt(n,["$$slots","$$events","$$legacy","disabled","children","child","value","ref","orientation","loop","name","required","readonly","id","onValueChange"]);const x=Xl.create({orientation:bt(()=>p()),disabled:bt(()=>l()),loop:bt(()=>g()),name:bt(()=>v()),required:bt(()=>b()),readonly:bt(()=>h()),id:bt(()=>k()),value:bt(()=>d(),J=>{J!==d()&&(d(J),y()?.(J))}),ref:bt(()=>m(),J=>m(J))}),O=lt(()=>$o(I,x.props));var j=g1(),Y=Ne(j);{var ne=J=>{var A=Ze(),re=Ne(A);Rt(re,()=>n.child,()=>({props:c(O)})),T(J,A)},R=J=>{var A=p1();Wt(A,()=>({...c(O)}));var re=L(A);Rt(re,()=>n.children??gt),M(A),T(J,A)};ae(Y,J=>{n.child?J(ne):J(R,!1)})}var V=me(Y,2);m1(V,{}),T(i,j),Ke()}var h1=te("<button><!></button>");function b1(i,n){const u=Na();Ye(n,!0);let l=_(n,"id",19,()=>Qa(u)),d=_(n,"disabled",3,!1),m=_(n,"ref",15,null),p=Mt(n,["$$slots","$$events","$$legacy","id","children","child","value","disabled","ref"]);const g=ec.create({value:bt(()=>n.value),disabled:bt(()=>d()??!1),id:bt(()=>l()),ref:bt(()=>m(),I=>m(I))}),v=lt(()=>$o(p,g.props));var b=Ze(),h=Ne(b);{var k=I=>{var x=Ze(),O=Ne(x);{let j=lt(()=>({props:c(v),...g.snippetProps}));Rt(O,()=>n.child,()=>c(j))}T(I,x)},y=I=>{var x=h1();Wt(x,()=>({...c(v)}));var O=L(x);Rt(O,()=>n.children??gt,()=>g.snippetProps),M(x),T(I,x)};ae(h,I=>{n.child?I(k):I(y,!1)})}T(i,b),Ke()}function y1(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"value",15,""),d=Mt(n,["$$slots","$$events","$$legacy","ref","class","value"]);var m=Ze(),p=Ne(m);{let g=lt(()=>wr("grid gap-3",n.class));Ta(p,()=>v1,(v,b)=>{b(v,jt({"data-slot":"radio-group",get class(){return c(g)}},()=>d,{get ref(){return u()},set ref(h){u(h)},get value(){return l()},set value(h){l(h)}}))})}T(i,m),Ke()}function $1(i,n){Ye(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=
|
|
179
|
+
*/let u=Mt(n,["$$slots","$$events","$$legacy"]);const l=[["circle",{cx:"12",cy:"12",r:"10"}]];Za(i,jt({name:"circle"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}var _1=te('<div data-slot="radio-group-indicator" class="relative flex items-center justify-center"><!></div>');function w1(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Mt(n,["$$slots","$$events","$$legacy","ref","class"]);var d=Ze(),m=Ne(d);{const p=(v,b)=>{let h=()=>b?.().checked;var k=_1(),y=L(k);{var I=x=>{$1(x,{class:"fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})};ae(y,x=>{h()&&x(I)})}M(k),T(v,k)};let g=lt(()=>wr("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));Ta(m,()=>b1,(v,b)=>{b(v,jt({"data-slot":"radio-group-item",get class(){return c(g)}},()=>l,{get ref(){return u()},set ref(h){u(h)},children:p,$$slots:{default:!0}}))})}T(i,d),Ke()}var k1=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),x1=te('<span class="text-destructive ml-1">*</span>'),S1=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),I1=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>'),z1=te('<div class="flex flex-wrap gap-2"></div>'),N1=wn('<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>'),j1=te('<span class="flex-1"> </span> <!>',1),T1=te('<div class="flex flex-col gap-2 w-full"></div>'),O1=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>'),E1=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 P1(i,n){Ye(n,!1);const u=ee();let l=_(n,"question",8),d=_(n,"value",8,""),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let b=ee(d()||"");function h(ke){c(b)===ke?($(b,""),m()("")):($(b,ke),m()(ke))}fe(()=>z(g()),()=>{$(u,g()==="dark")}),fe(()=>z(d()),()=>{d()!==void 0&&$(b,d())}),sr(),Ht();var k=E1(),y=L(k),I=L(y);{var x=ke=>{var xe=k1(),Q=L(xe);M(xe),Se(()=>je(Q,`${v()??""}.`)),T(ke,xe)};ae(I,ke=>{v()!==void 0&&ke(x)})}var O=me(I,2),j=L(O),Y=L(j),ne=me(Y);{var R=ke=>{var xe=x1();T(ke,xe)};ae(ne,ke=>{z(l()),C(()=>l().required)&&ke(R)})}M(j);var V=me(j,2);{var J=ke=>{var xe=S1(),Q=L(xe,!0);M(xe),Se(()=>je(Q,(z(l()),C(()=>l().description)))),T(ke,xe)};ae(V,ke=>{z(l()),C(()=>l().description)&&ke(J)})}M(O),M(y);var A=me(y,2);{var re=ke=>{y1(ke,{get value(){return c(b)},class:"flex flex-col gap-3",children:(xe,Q)=>{var G=Ze(),B=Ne(G);dr(B,1,()=>(z(l()),C(()=>l().options)),_r,(F,P)=>{var S=I1(),D=L(S);{let $e=Ae(()=>(z(l()),c(P),C(()=>`${l().id}-${c(P).value}`)));w1(D,{get value(){return c(P),C(()=>c(P).value)},get id(){return c($e)},onclick:()=>h(c(P).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
|
|
192
|
+
dark:[&_[data-slot=radio-group-indicator]_svg]:stroke-primary-foreground`})}var q=me(D,2),le=L(q,!0);M(q),M(S),Se(()=>{ei(q,"for",(z(l()),c(P),C(()=>`${l().id}-${c(P).value}`))),je(le,(c(P),C(()=>c(P).label)))}),T(F,S)}),T(xe,G)},$$slots:{default:!0}})},oe=ke=>{var xe=Ze(),Q=Ne(xe);{var G=F=>{var P=z1();dr(P,5,()=>(z(l()),C(()=>l().options)),_r,(S,D)=>{{let q=Ae(()=>(c(b),c(D),C(()=>`rounded-full px-4 py-2 text-sm font-medium transition-all hover:scale-105 ${c(b)===c(D).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"}`)));qt(S,{type:"button",variant:"outline",get class(){return c(q)},onclick:()=>h(c(D).value),children:(le,$e)=>{yr();var de=kn();Se(()=>je(de,(c(D),C(()=>c(D).label)))),T(le,de)},$$slots:{default:!0}})}}),M(P),T(F,P)},B=F=>{var P=Ze(),S=Ne(P);{var D=q=>{var le=T1();dr(le,5,()=>(z(l()),C(()=>l().options)),_r,($e,de)=>{{let _e=Ae(()=>(c(b),c(de),C(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${c(b)===c(de).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"}`)));qt($e,{type:"button",variant:"outline",get class(){return c(_e)},onclick:()=>h(c(de).value),onkeydown:Ee=>Ee.key==="Enter"&&h(c(de).value),children:(Ee,ue)=>{var ie=j1(),Pe=Ne(ie),Ue=L(Pe,!0);M(Pe);var qe=me(Pe,2);{var We=Ge=>{var ot=N1();T(Ge,ot)};ae(qe,Ge=>{c(b),c(de),C(()=>c(b)===c(de).value)&&Ge(We)})}Se(()=>je(Ue,(c(de),C(()=>c(de).label)))),T(Ee,ie)},$$slots:{default:!0}})}}),M(le),T(q,le)};ae(S,q=>{z(l()),C(()=>l().displayStyle==="list")&&q(D)},!0)}T(F,P)};ae(Q,F=>{z(l()),C(()=>l().displayStyle==="chip")?F(G):F(B,!1)},!0)}T(ke,xe)};ae(A,ke=>{z(l()),C(()=>l().displayStyle==="radio"||!l().displayStyle)?ke(re):ke(oe,!1)})}var we=me(A,2);{var Ie=ke=>{var xe=O1(),Q=L(xe),G=L(Q,!0);M(Q),M(xe),Se(()=>je(G,p())),T(ke,xe)};ae(we,ke=>{p()&&ke(Ie)})}M(k),Se(()=>je(Y,`${z(l()),C(()=>l().title)??""} `)),T(i,k),Ke()}var C1=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),U1=te('<span class="text-destructive ml-1">*</span>'),D1=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),M1=te("<span> </span>"),A1=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium"> </span>'),L1=te('<span class="text-xs xs:text-xs text-muted-foreground font-medium text-right"> </span>'),Z1=te('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),R1=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>'),q1=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 F1(i,n){Ye(n,!1);const u=ee(),l=ee(),d=ee();let m=_(n,"question",8),p=_(n,"value",8,0),g=_(n,"onChange",8),v=_(n,"error",8,void 0),b=_(n,"currentMode",8,void 0),h=_(n,"questionNumber",8,void 0),k=_(n,"themeSettings",8,void 0);_(n,"currentLanguage",8,void 0);let y=ee(p()??0),I=ee(p()??0),x=ee(0);function O(S){c(I)===S?($(y,0),$(I,0),g()(0),jl(m().id)):($(y,S),$(I,S),g()(S))}function j(S,D,q){const{displayStyle:le="star",representationSize:$e="medium",numberOfRatings:de=5,color:_e}=m(),Ee=typeof window<"u"&&window.innerWidth<640?"small":$e,ue=D>=S,ie=D===S,Pe=q===S,Ue=q>=S,qe=`rating-icon ${Ee}-size ${ue?"selected":""} ${c(l)?"dark-mode":""}`,We=le==="emoji"||le==="thumbs-up",Ge=_e??c(d)?.brandColor??"var(--brand-color)";let ot="";if(We?ot=`opacity: ${(le==="thumbs-up"?ue||Ue:ie||Pe)?"1":"0.4"}; transform: scale(${le==="thumbs-up"&&ie||le==="emoji"&&ie?"1.1":"1"}); transition: opacity 0.2s ease, transform 0.2s ease;`:ot=`color: ${ue?Ge:c(l)?"#4b5563":"#d1d5db"}; transition: color 0.25s ease;`,le==="emoji"){const yt=["😡","😞","😕","😐","🙂","😊","😄","😁","🤩","😍"],kt=Math.floor((S-1)*(yt.length/de)),Ot=Math.min(Math.max(kt,0),yt.length-1);return{content:yt[Ot],type:"emoji",style:ot,baseClass:`${qe} rating-${le}-icon`}}const Ce={star:"★",heart:"♥","thumbs-up":"👍",diamond:"◆"}[le];return Ce?{content:Ce,type:le,style:ot,baseClass:`${qe} rating-${le}-icon`}:null}fe(()=>z(m()),()=>{$(u,m().displayStyle==="emoji"||m().displayStyle==="thumbs-up")}),fe(()=>z(b()),()=>{$(l,b()==="dark")}),fe(()=>(z(k()),z(b())),()=>{$(d,k()?.[b()==="dark"?"dark":"light"]||null)}),fe(()=>z(p()),()=>{p()!==void 0&&($(y,p()),$(I,p()))}),sr(),Ht();var Y=q1(),ne=L(Y),R=L(ne);{var V=S=>{var D=C1(),q=L(D);M(D),Se(()=>je(q,`${h()??""}.`)),T(S,D)};ae(R,S=>{h()!==void 0&&S(V)})}var J=me(R,2),A=L(J),re=L(A),oe=me(re);{var we=S=>{var D=U1();T(S,D)};ae(oe,S=>{z(m()),C(()=>m().required)&&S(we)})}M(A);var Ie=me(A,2);{var ke=S=>{var D=D1(),q=L(D,!0);M(D),Se(()=>je(q,(z(m()),C(()=>m().description)))),T(S,D)};ae(Ie,S=>{z(m()),C(()=>m().description)&&S(ke)})}M(J),M(ne);var xe=me(ne,2),Q=L(xe);dr(Q,5,()=>(z(m()),C(()=>Array.from({length:m().numberOfRatings??5},(S,D)=>D+1))),_r,(S,D)=>{const q=Ae(()=>(c(D),c(y),c(x),C(()=>j(c(D),c(y),c(x))))),le=Ae(()=>(z(m()),C(()=>m().numberOfRatings??5))),$e=Ae(()=>c(le)>10?"p-0.5 xs:p-1 sm:p-1.5":c(le)>7?"p-1 xs:p-1.5 sm:p-2":"p-1.5 xs:p-2 sm:p-2.5"),de=Ae(()=>c(le)>10?"text-base xs:text-lg sm:text-xl":c(le)>7?"text-lg xs:text-xl sm:text-2xl":"text-xl xs:text-2xl sm:text-3xl");var _e=Ze(),Ee=Ne(_e);{var ue=ie=>{{let Pe=Ae(()=>c($e)),Ue=Ae(()=>c(u)?"":"hover:scale-110");qt(ie,{type:"button",variant:"ghost",size:"icon",get class(){return`h-auto w-auto ${c(Pe)??""} rounded-lg hover:bg-accent transition-all flex-shrink-0 ${c(Ue)??""}`},onclick:()=>O(c(D)),onmouseenter:()=>{$(y,c(D)),$(x,c(D))},onmouseleave:()=>{$(x,0),$(y,c(I))},children:(qe,We)=>{var Ge=M1(),ot=L(Ge,!0);M(Ge),Se(()=>{sn(Ge,1,`${z(c(q)),C(()=>c(q).baseClass)??""} ${c(u)?`${c(de)} leading-none`:""}`),mo(Ge,(z(c(q)),C(()=>c(q).style))),je(ot,(z(c(q)),C(()=>c(q).content)))}),T(qe,Ge)},$$slots:{default:!0}})}};ae(Ee,ie=>{c(q)&&ie(ue)})}T(S,_e)}),M(Q);var G=me(Q,2);{var B=S=>{var D=Z1(),q=L(D);{var le=_e=>{var Ee=A1(),ue=L(Ee,!0);M(Ee),Se(()=>je(ue,(z(m()),C(()=>m().minLabel)))),T(_e,Ee)};ae(q,_e=>{z(m()),C(()=>m().minLabel)&&_e(le)})}var $e=me(q,2);{var de=_e=>{var Ee=L1(),ue=L(Ee,!0);M(Ee),Se(()=>je(ue,(z(m()),C(()=>m().maxLabel)))),T(_e,Ee)};ae($e,_e=>{z(m()),C(()=>m().maxLabel)&&_e(de)})}M(D),T(S,D)};ae(G,S=>{z(m()),C(()=>m().showLabels)&&S(B)})}M(xe);var F=me(xe,2);{var P=S=>{var D=R1(),q=L(D),le=L(q,!0);M(q),M(D),Se(()=>je(le,v())),T(S,D)};ae(F,S=>{v()&&S(P)})}M(Y),Se(()=>{je(re,`${z(m()),C(()=>m().title)??""} `),sn(Q,1,`flex ${c(u)?"gap-0":"gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2"} justify-center items-center w-full`)}),T(i,Y),Ke()}function W1(i,n){Ye(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=
|
|
235
|
+
*/let u=Mt(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M20 6 9 17l-5-5"}]];Za(i,jt({name:"check"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}function Q1(i,n){Ye(n,!0);/**
|
|
236
236
|
* @license @lucide/svelte v0.544.0 - ISC
|
|
237
237
|
*
|
|
238
238
|
* ISC License
|
|
@@ -275,4 +275,4 @@ 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=Dt(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M5 12h14"}]];Ra(i,jt({name:"minus"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}var G1=ee('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function J1(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"checked",15,!1),d=_(n,"indeterminate",15,!1),m=Dt(n,["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]);var p=Ze(),g=ze(p);{const v=(h,k)=>{let y=()=>k?.().checked,I=()=>k?.().indeterminate;var x=G1(),O=R(x);{var j=re=>{V1(re,{class:"size-3.5"})},J=re=>{var W=Ze(),G=ze(W);{var V=M=>{Q1(M,{class:"size-3.5"})};oe(G,M=>{I()&&M(V)},!0)}T(re,W)};oe(O,re=>{y()?re(j):re(J,!1)})}L(x),T(h,x)};let b=lt(()=>wr("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,()=>l1,(h,k)=>{k(h,jt({"data-slot":"checkbox",get class(){return c(b)}},()=>m,{get ref(){return u()},set ref(y){u(y)},get checked(){return l()},set checked(y){l(y)},get indeterminate(){return d()},set indeterminate(y){d(y)},children:v,$$slots:{default:!0}}))})}T(i,p),Ke()}var B1=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),Y1=ee('<span class="text-destructive ml-1">*</span>'),K1=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),H1=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>'),X1=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>'),ez=ee('<div class="flex items-center space-x-3"><!> <label> </label></div>'),tz=ee('<div class="flex flex-col gap-3"></div>'),rz=(i,n,u)=>n(c(u).value),nz=ee('<button type="button"> </button>'),iz=ee('<div class="flex flex-wrap gap-2"></div>'),oz=wn('<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>'),az=ee('<span class="flex-1"> </span> <!>',1),sz=ee('<div class="flex flex-col gap-2 w-full"></div>'),uz=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 lz(i,n){Ye(n,!1);const u=X();let l=_(n,"question",8),d=_(n,"value",24,()=>[]),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let b=X(d()||[]),h=X(p()),k=X(void 0),y=!1,I=X(!1);xn(()=>{setTimeout(()=>{const S=x(c(b));$(h,S),S&&_i(l().id,S),y=!0},0)});function x(S){if(l().required&&(!S||S.length===0))return l().errorMessage;const D=l().maxSelections;if(D!==void 0&&S.length>D)return l().errorMessage;const F=l().minSelections;if(F!==void 0&&S.length>0&&S.length<F)return l().errorMessage}function O(S){if(!y)return;$(I,!0);const D=[...c(b)];if(D.includes(S)){const F=D.filter(_e=>_e!==S);$(b,F),m()(F),$(k,void 0);const ue=x(F);$(h,ue),lr(l().id,F,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,ue)}else{const F=l().maxSelections;if(F!==void 0&&D.length>=F){const ue=l().errorMessage;$(k,ue),lr(l().id,D,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,void 0)}else{const ue=[...D,S];$(b,ue),m()(ue),$(k,void 0);const _e=x(ue);$(h,_e),lr(l().id,ue,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,_e)}}}de(()=>z(g()),()=>{$(u,g()==="dark")}),de(()=>(z(d()),c(I)),()=>{d()!==void 0&&!c(I)&&$(b,d())}),de(()=>z(p()),()=>{p()!==void 0&&$(h,p())}),sr(),Ht();var j=uz(),J=R(j),re=R(J);{var W=S=>{var D=B1(),F=R(D);L(D),xe(()=>Ne(F,`${v()??""}.`)),T(S,D)};oe(re,S=>{v()!==void 0&&S(W)})}var G=fe(re,2),V=R(G),M=R(V),te=fe(M);{var ne=S=>{var D=Y1();T(S,D)};oe(te,S=>{z(l()),U(()=>l().required)&&S(ne)})}L(V);var $e=fe(V,2);{var je=S=>{var D=K1(),F=R(D,!0);L(D),xe(()=>Ne(F,(z(l()),U(()=>l().description)))),T(S,D)};oe($e,S=>{z(l()),U(()=>l().description)&&S(je)})}L(G),L(J);var Se=fe(J,2);{var ke=S=>{var D=H1(),F=R(D),ue=R(F,!0);L(F),L(D),xe(()=>Ne(ue,c(h))),T(S,D)};oe(Se,S=>{c(h)&&S(ke)})}var ve=fe(Se,2);{var B=S=>{var D=X1(),F=R(D),ue=R(F,!0);L(F),L(D),xe(()=>Ne(ue,c(k))),T(S,D)};oe(ve,S=>{c(k)&&S(B)})}var P=fe(ve,2);{var Z=S=>{var D=tz();dr(D,5,()=>(z(l()),U(()=>l().options)),_r,(F,ue)=>{const _e=Le(()=>(c(b),c(ue),U(()=>c(b).includes(c(ue).value)))),ce=Le(()=>(z(l()),c(b),z(c(_e)),U(()=>l().maxSelections!==void 0&&c(b).length>=l().maxSelections&&!c(_e))));var we=ez(),Ee=R(we);{let Pe=Le(()=>(z(l()),c(ue),U(()=>`${l().id}-${c(ue).value}`))),Ue=Le(()=>(c(b),c(ue),U(()=>c(b).includes(c(ue).value))));J1(Ee,{get id(){return c(Pe)},get checked(){return c(Ue)},onCheckedChange:()=>O(c(ue).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=fe(Ee,2),ie=R(se,!0);L(se),L(we),xe(()=>{ei(se,"for",(z(l()),c(ue),U(()=>`${l().id}-${c(ue).value}`))),sn(se,1,`text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none ${c(ce)?"opacity-50 cursor-not-allowed":""}`),Ne(ie,(c(ue),U(()=>c(ue).label)))}),T(F,we)}),L(D),T(S,D)},C=S=>{var D=Ze(),F=ze(D);{var ue=ce=>{var we=iz();dr(we,5,()=>(z(l()),U(()=>l().options)),_r,(Ee,se)=>{const ie=Le(()=>(c(b),c(se),U(()=>c(b).includes(c(se).value)))),Pe=Le(()=>(z(l()),c(b),z(c(ie)),U(()=>l().maxSelections!==void 0&&c(b).length>=l().maxSelections&&!c(ie))));var Ue=nz();Ue.__click=[rz,O,se];var qe=R(Ue,!0);L(Ue),xe(()=>{Ue.disabled=c(Pe),sn(Ue,1,`rounded-full px-4 py-2 text-sm font-medium transition-all border-2 ${c(ie)?"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(Pe)?"opacity-50 cursor-not-allowed":"hover:scale-105 cursor-pointer"}`),Ne(qe,(c(se),U(()=>c(se).label)))}),T(Ee,Ue)}),L(we),T(ce,we)},_e=ce=>{var we=Ze(),Ee=ze(we);{var se=ie=>{var Pe=sz();dr(Pe,5,()=>(z(l()),U(()=>l().options)),_r,(Ue,qe)=>{const We=Le(()=>(c(b),c(qe),U(()=>c(b).includes(c(qe).value)))),Qe=Le(()=>(z(l()),c(b),z(c(We)),U(()=>l().maxSelections!==void 0&&c(b).length>=l().maxSelections&&!c(We))));{let ot=Le(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${c(We)?"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(Qe)?"opacity-50 cursor-not-allowed":""}`);qt(Ue,{type:"button",variant:"outline",get disabled(){return c(Qe)},get class(){return c(ot)},onclick:()=>O(c(qe).value),onkeydown:Ce=>Ce.key==="Enter"&&O(c(qe).value),children:(Ce,yt)=>{var kt=az(),Ot=ze(kt),Lt=R(Ot,!0);L(Ot);var Mt=fe(Ot,2);{var Et=st=>{var Bt=oz();T(st,Bt)};oe(Mt,st=>{c(We)&&st(Et)})}xe(()=>Ne(Lt,(c(qe),U(()=>c(qe).label)))),T(Ce,kt)},$$slots:{default:!0}})}}),L(Pe),T(ie,Pe)};oe(Ee,ie=>{z(l()),U(()=>l().displayStyle==="list")&&ie(se)},!0)}T(ce,we)};oe(F,ce=>{z(l()),U(()=>l().displayStyle==="chip")?ce(ue):ce(_e,!1)},!0)}T(S,D)};oe(P,S=>{z(l()),U(()=>l().displayStyle==="checkbox"||!l().displayStyle)?S(Z):S(C,!1)})}L(j),xe(()=>Ne(M,`${z(l()),U(()=>l().title)??""} `)),T(i,j),Ke()}yl(["click"]);function cz(i,n,u,l,d,m,p,g){c(n)||$(n,!0),$(u,!1),$(l,void 0),d()(void 0);const v=m(void 0);$(p,v),lr(g().id,void 0,s.QuestionTypes.ANNOTATION,v)}var dz=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),fz=ee('<span class="text-destructive ml-1">*</span>'),mz=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),pz=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>'),gz=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>'),vz=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>'),hz=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 bz(i,n){Ye(n,!1);const u=X();let l=_(n,"question",8),d=_(n,"value",8,void 0),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let b=X(!1),h=X(void 0),k=X(p()),y=X(!1);xn(()=>{const Z=vo(Fr).questions.find(C=>C.questionId===l().id);if(Z?.answer&&"annotation"in Z.answer){const C=Z.answer.annotation;console.log("Found annotation data in store on mount for question:",l().id,C),$(h,C),$(b,!0),typeof C=="object"&&C!==null&&m()(C)}setTimeout(()=>{const C=c(h),S=I(C);$(k,S),S&&_i(l().id,S)},0)});function I(Z){let C="";if(typeof Z=="string"?C=Z:Z&&typeof Z=="object"&&(C="has_annotation_data"),l().required&&(!C||C.trim()===""))return l().errorMessage??"This field is required"}de(()=>z(g()),()=>{$(u,g()==="dark")}),de(()=>(z(d()),z(m())),()=>{if(d()!==void 0){if(console.log("props.value changed:",d()),typeof d()=="string"){const Z=d().trim()!=="";$(b,Z),$(h,d())}else if(typeof d()=="object"&&d()!==null&&"annotation"in d()){const Z=d().annotation;console.log("Extracted annotation from props.value:",Z),$(b,!0),$(h,Z),m()(Z)}}else $(h,void 0),$(b,!1)}),de(()=>z(p()),()=>{p()!==void 0&&$(k,p())}),sr(),Ht();var x=hz(),O=R(x),j=R(O);{var J=Z=>{var C=dz(),S=R(C);L(C),xe(()=>Ne(S,`${v()??""}.`)),T(Z,C)};oe(j,Z=>{v()!==void 0&&Z(J)})}var re=fe(j,2),W=R(re),G=R(W),V=fe(G);{var M=Z=>{var C=fz();T(Z,C)};oe(V,Z=>{z(l()),U(()=>l().required)&&Z(M)})}L(W);var te=fe(W,2);{var ne=Z=>{var C=mz(),S=R(C,!0);L(C),xe(()=>Ne(S,(z(l()),U(()=>l().description)))),T(Z,C)};oe(te,Z=>{z(l()),U(()=>l().description)&&Z(ne)})}L(re),L(O);var $e=fe(O,2);{var je=Z=>{var C=pz(),S=fe(R(C),2),D=R(S,!0);L(S),L(C),xe(()=>Ne(D,c(k))),T(Z,C)};oe($e,Z=>{c(k)&&c(y)&&Z(je)})}var Se=fe($e,2),ke=R(Se);{var ve=Z=>{var C=gz(),S=R(C),D=R(S),F=R(D);Lh(F,{size:24,class:"text-muted-foreground group-hover:text-primary transition-colors"}),L(D);var ue=fe(D,2),_e=R(ue),ce=R(_e,!0);L(_e),yr(2),L(ue),L(S),L(C),xe(()=>Ne(ce,(z(l()),U(()=>l().noAnnotationText??"No Annotation")))),T(Z,C)};oe(ke,Z=>{c(b)||Z(ve)})}var B=fe(ke,2);{var P=Z=>{var C=vz(),S=R(C),D=R(S),F=R(D),ue=R(F);Lh(ue,{size:20,class:"text-primary"}),L(F);var _e=fe(F,2),ce=R(_e),we=R(ce,!0);L(ce),yr(2),L(_e),L(D);var Ee=fe(D,2);Ee.__click=[cz,y,b,h,m,I,k,l];var se=R(Ee);Zh(se,{size:16}),L(Ee),L(S),L(C),xe(()=>Ne(we,(z(l()),U(()=>l().annotationText??"Annotation")))),T(Z,C)};oe(B,Z=>{c(b)&&Z(P)})}L(Se),L(x),xe(()=>Ne(G,`${z(l()),U(()=>l().title)??""} `)),T(i,x),Ke()}yl(["click"]);var yz=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 _z(i,n){Ye(n,!1);const u=X(),l=X();let d=_(n,"welcomeScreenProperties",8);_(n,"onStart",8,void 0);let m=_(n,"currentMode",8,void 0),p=_(n,"currentLanguage",8,void 0);_(n,"themeSettings",8,void 0),de(()=>z(m()),()=>{$(u,m()==="dark")}),de(()=>(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"})}),sr(),Ht();var g=$z(),v=R(g),b=R(v,!0);L(v);var h=fe(v,2);{var k=y=>{var I=yz(),x=R(I,!0);L(I),xe(()=>Ne(x,(c(l),U(()=>c(l).description)))),T(y,I)};oe(h,y=>{c(l),U(()=>c(l).description)&&y(k)})}L(g),xe(()=>Ne(b,(c(l),U(()=>c(l).title)))),T(i,g),Ke()}var wz=ee('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),kz=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 xz(i,n){Ye(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X();let g=_(n,"endScreenProperties",8),v=_(n,"onExit",8,void 0),b=_(n,"currentMode",8,void 0),h=_(n,"currentLanguage",8,void 0);_(n,"themeSettings",8,void 0);let k=_(n,"isScreenVisible",8,void 0);console.log("isScreenVisible in end-screen :",k()===!0);let y=X(null);Ta(()=>{c(y)!==null&&(clearTimeout(c(y)),console.log("Cleared auto-dismiss timer on destroy"))}),de(()=>z(b()),()=>{$(u,b()==="dark")}),de(()=>(z(g()),z(h())),()=>{$(l,g().translations&&h()&&g().translations[h()]?g().translations[h()]:g().endFields??{title:"Thank you for participating!",message:"Your feedback is important to us.",buttonLabel:"Exit",dismissBehavior:"close",fadeDuration:300})}),de(()=>z(k()),()=>{$(d,k()===!0)}),de(()=>z(g()),()=>{$(m,g().endFields?.dismissBehavior)}),de(()=>z(g()),()=>{$(p,g().endFields?.fadeDuration||0)}),de(()=>(c(y),c(d),c(m),z(v()),c(p)),()=>{c(y)!==null&&(clearTimeout(c(y)),$(y,null),console.log("Cleared auto-dismiss timer")),c(d)&&c(m)==="fade"&&typeof v()=="function"&&c(p)>0?(console.log(`Setting up auto-dismiss timer for ${c(p)} seconds as user has reached end-screen with ${c(m)} behavior`),$(y,setTimeout(()=>{console.log("Auto-dismissing end screen"),v()?.()},c(p)*1e3))):console.log("Not setting up auto-dismiss timer - conditions not met:",{isScreenVisible:c(d),dismissBehavior:c(m),hasOnExit:typeof v()=="function",fadeDuration:c(p)})}),sr(),Ht();var I=kz(),x=R(I),O=R(x,!0);L(x);var j=fe(x,2);{var J=re=>{var W=wz(),G=R(W,!0);L(W),xe(()=>Ne(G,(c(l),U(()=>c(l).message)))),T(re,W)};oe(j,re=>{c(l),U(()=>c(l).message)&&re(J)})}L(I),xe(()=>Ne(O,(c(l),U(()=>c(l).title)))),T(i,I),Ke()}var Sz=ee("<h2> </h2>"),Iz=ee('<div class="question-wrapper"><div class="question-container"><!></div></div>'),zz=ee("<!> <!>",1),Nz=ee('<div id="section-container"><!> <!> <!></div>');function jz(i,n){Ye(n,!1);const u=X(),l=X();let d=_(n,"questions",8),m=_(n,"sections",8),p=_(n,"formData",8),g=_(n,"errors",8),v=_(n,"onChange",8),b=_(n,"currentMode",8,void 0),h=_(n,"welcomeScreenProperties",8),k=_(n,"otherConfigurationProperties",8),y=_(n,"currentSectionIndex",8),I=_(n,"endScreenProperties",8,void 0),x=_(n,"currentLanguage",8,void 0),O=_(n,"themeSettings",8),j=_(n,"onClose",8,void 0),J=_(n,"isScreenVisible",8,void 0),re=_(n,"apiKey",8,void 0),W=_(n,"hostUrl",8,void 0),G=_(n,"identifier",8,void 0),V=_(n,"feedbackConfigurationId",8,void 0);function M(P){return c(u).get(P)??-1}function te(P){switch(P){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 ne(P){return Array.isArray(P)?P:typeof P=="object"&&P!==null?Object.values(P).filter(Z=>Z!==void 0):typeof P=="string"?[P]:[]}function $e(P){return typeof P=="number"?P:typeof P=="string"?Number(P):0}function je(P){return typeof P=="string"?P:String(typeof P=="object"&&P!==null?Object.values(P)[0]||"":P||"")}function Se(P,Z){if(P==null){const C=te(Z);return C!==void 0?C:P}switch(Z){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return ne(P);case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return $e(P);case s.QuestionTypes.SINGLE_CHOICE:return je(P);default:return P}}de(()=>(z(d()),Rh),()=>{d()&&Object.keys(d()).length>0&&Rh(d())}),de(()=>z(m()),()=>{$(u,(()=>{const P=new Map;let Z=0;return m().forEach(C=>{C.id!=="welcome_screen"&&C.id!=="thankyou_screen"&&C.questionIds.forEach(S=>{P.set(S,Z++)})}),P})())}),de(()=>(z(m()),z(y())),()=>{$(l,m()[y()])}),de(()=>(z(y()),c(l)),()=>{console.log("FormRenderer: currentSectionIndex =",y(),"section =",c(l)?.id)}),sr(),Ht();var ke=Ze(),ve=ze(ke);{var B=P=>{var Z=Ze(),C=ze(Z);dr(C,1,()=>(z(m()),z(y()),U(()=>[m()[y()]])),S=>S.id,(S,D)=>{var F=Nz(),ue=R(F);{var _e=ie=>{_z(ie,{get welcomeScreenProperties(){return h()},get currentMode(){return b()},get currentLanguage(){return x()},get themeSettings(){return O()}})};oe(ue,ie=>{c(D),U(()=>c(D).id==="welcome_screen")&&ie(_e)})}var ce=fe(ue,2);{var we=ie=>{{let Pe=Le(()=>I()?I():{});xz(ie,{get endScreenProperties(){return c(Pe)},get onExit(){return j()},get currentMode(){return b()},get currentLanguage(){return x()},get themeSettings(){return O()},get isScreenVisible(){return J()}})}};oe(ce,ie=>{c(D),U(()=>c(D).id==="thankyou_screen")&&ie(we)})}var Ee=fe(ce,2);{var se=ie=>{var Pe=zz(),Ue=ze(Pe);{var qe=Qe=>{var ot=Sz(),Ce=R(ot,!0);L(ot),xe(()=>{sn(ot,1,`section-title ${b()==="dark"?"dark-mode":""}`),Ne(Ce,(c(D),U(()=>c(D).title)))}),T(Qe,ot)};oe(Ue,Qe=>{z(k()),U(()=>k().isEnabled&&k().otherFields.pageTitle)&&Qe(qe)})}var We=fe(Ue,2);dr(We,1,()=>(c(D),U(()=>c(D).questionIds)),_r,(Qe,ot)=>{const Ce=Le(()=>(z(qh),c(ot),U(()=>qh(c(ot)))));var yt=Ze(),kt=ze(yt);{var Ot=Lt=>{const Mt=Le(()=>(z(k()),U(()=>k()?.isEnabled&&k().otherFields.questionNumber))),Et=Le(()=>(z(c(Ce)),U(()=>M(c(Ce).id)))),st=Le(()=>(z(c(Ce)),z(p()),z(v()),z(g()),z(b()),z(x()),z(O()),z(c(Mt)),z(c(Et)),U(()=>({question:c(Ce),value:Se(p()[c(Ce).id],c(Ce).type),onChange:be=>v()(c(Ce).id,be,c(Ce).type),error:g()[c(Ce).id],currentMode:b(),currentLanguage:x(),themeSettings:O(),questionNumber:c(Mt)?c(Et)+1:void 0}))));var Bt=Iz(),Yr=R(Bt),Q=R(Yr);{var N=be=>{oS(be,jt(()=>c(st),{get question(){return c(Ce)}}))},H=be=>{var Me=Ze(),Fe=ze(Me);{var $t=nr=>{jS(nr,jt(()=>c(st),{get question(){return c(Ce)}}))},mr=nr=>{var zn=Ze(),wo=ze(zn);{var ko=He=>{FS(He,jt(()=>c(st),{get question(){return c(Ce)},get apiKey(){return re()},get hostUrl(){return W()},get identifier(){return G()},get feedbackConfigurationId(){return V()},get otherConfigurationProperties(){return k()}}))},xo=He=>{var ft=Ze(),Pt=ze(ft);{var _t=pr=>{iI(pr,jt(()=>c(st),{get question(){return c(Ce)},get apiKey(){return re()},get hostUrl(){return W()},get identifier(){return G()},get feedbackConfigurationId(){return V()},get otherConfigurationProperties(){return k()}}))},kr=pr=>{var Xt=Ze(),St=ze(Xt);{var dn=zi=>{C1(zi,jt(()=>c(st),{get question(){return c(Ce)}}))},Bz=zi=>{var Tb=Ze(),Yz=ze(Tb);{var Kz=Ni=>{W1(Ni,jt(()=>c(st),{get question(){return c(Ce)}}))},Hz=Ni=>{var Ob=Ze(),Xz=ze(Ob);{var eN=ji=>{lz(ji,jt(()=>c(st),{get question(){return c(Ce)}}))},tN=ji=>{var Eb=Ze(),rN=ze(Eb);{var nN=nc=>{bz(nc,jt(()=>c(st),{get question(){return c(Ce)}}))};oe(rN,nc=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.ANNOTATION)&&nc(nN)},!0)}T(ji,Eb)};oe(Xz,ji=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE)?ji(eN):ji(tN,!1)},!0)}T(Ni,Ob)};oe(Yz,Ni=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.RATING)?Ni(Kz):Ni(Hz,!1)},!0)}T(zi,Tb)};oe(St,zi=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.SINGLE_CHOICE)?zi(dn):zi(Bz,!1)},!0)}T(pr,Xt)};oe(Pt,pr=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.SHORT_ANSWER)?pr(_t):pr(kr,!1)},!0)}T(He,ft)};oe(wo,He=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.LONG_TEXT)?He(ko):He(xo,!1)},!0)}T(nr,zn)};oe(Fe,nr=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.NESTED_SELECTION)?nr($t):nr(mr,!1)},!0)}T(be,Me)};oe(Q,be=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.NPS)?be(N):be(H,!1)})}L(Yr),L(Bt),T(Lt,Bt)};oe(kt,Lt=>{c(Ce)&&Lt(Ot)})}T(Qe,yt)}),T(ie,Pe)};oe(Ee,ie=>{c(D),U(()=>c(D).id!=="welcome_screen"&&c(D).id!=="thankyou_screen")&&ie(se)})}L(F),T(S,F)}),T(P,Z)};oe(ve,P=>{z(y()),z(m()),U(()=>y()<m().length&&m().length>0)&&P(B)})}T(i,ke),Ke()}var Tz=ee('<div class="flex justify-center"><!></div>'),Oz=ee('<div class="flex justify-center"><!></div>'),Ez=ee('<div class="flex-1"></div>'),Pz=wn('<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>'),Cz=ee('<div class="flex items-center justify-between gap-3"><!> <!></div>'),Uz=ee('<div class="w-full py-6 px-4"><!></div>');function Az(i,n){Ye(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X(),g=X();let v=_(n,"isWelcomeScreen",8),b=_(n,"isThankYouScreen",8),h=_(n,"isFirstSection",8),k=_(n,"isFirstPageAfterWelcome",8,!1),y=_(n,"isLastSection",8),I=_(n,"welcomeScreenProperties",8),x=_(n,"endScreenProperties",8,void 0),O=_(n,"otherConfigurationProperties",8),j=_(n,"currentMode",8),J=_(n,"currentLanguage",8),re=_(n,"handlePrevious",8),W=_(n,"handleNext",8),G=_(n,"handleSubmit",8),V=_(n,"onClose",8,void 0);_(n,"themeSettings",8);let M=_(n,"nextButtonDisabled",8,!1),te=_(n,"submitButtonDisabled",8,!1),ne=_(n,"isSinglePageSurvey",8,!1),$e=X(!1);const je=()=>{console.log("Exit button clicked"),V()&&V()()},Se=()=>{if(!b()&&!x()?.isEnabled){$($e,!0),window.setTimeout(()=>{$($e,!1),V()&&V()()},3e3);try{G()()}catch(S){console.error("Error during form submission:",S)}}else G()()},ke=()=>{console.log("handlePreviousClick called"),o0(),re()()},ve=()=>{console.log("handleNextClick called"),W()()};de(()=>(z(O()),z(J())),()=>{$(u,(()=>{const S={previousButtonLabel:"Previous",nextButtonLabel:"Next",submitButtonLabel:"Submit"};return O().isEnabled?O().translations&&J()&&O().translations[J()]?O().translations[J()]:O().otherFields??S:S})())}),de(()=>(z(I()),z(J())),()=>{$(l,I().translations&&J()&&I().translations[J()]?I().translations[J()]:I().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),de(()=>(z(x()),z(J())),()=>{$(d,x()?.translations&&J()&&x().translations[J()]?x().translations[J()]:x()?.endFields??{buttonLabel:"Exit",dismissBehavior:"close"})}),de(()=>z(j()),()=>{$(m,j()==="dark")}),de(()=>z(M()),()=>{$(p,Nl()||M())}),de(()=>z(te()),()=>{$(g,Nl()||te())}),de(()=>(z(M()),z(te()),c(p),c(g)),()=>{console.log("NavigationButtons disabled state:",{nextButtonDisabled:M(),submitButtonDisabled:te(),hasValidationErrors:Nl(),isNextDisabled:c(p),isSubmitDisabled:c(g)})}),de(()=>(z(v()),z(b()),z(y())),()=>{console.log("NavigationButtons: isWelcomeScreen =",v(),"isThankYouScreen =",b(),"isLastSection =",y())}),sr(),Ht();var B=Uz(),P=R(B);{var Z=S=>{var D=Tz(),F=R(D);qt(F,{onclick:ve,size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(ue,_e)=>{yr();var ce=kn();xe(()=>Ne(ce,(c(l),U(()=>c(l).buttonLabel)))),T(ue,ce)},$$slots:{default:!0}}),L(D),T(S,D)},C=S=>{var D=Ze(),F=ze(D);{var ue=ce=>{var we=Oz(),Ee=R(we);qt(Ee,{onclick:()=>je(),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,ie)=>{yr();var Pe=kn();xe(()=>Ne(Pe,(c(d),U(()=>c(d).buttonLabel)))),T(se,Pe)},$$slots:{default:!0}}),L(we),T(ce,we)},_e=ce=>{var we=Cz(),Ee=R(we);{var se=We=>{{let Qe=Le(()=>h()||k());qt(We,{onclick:()=>ke(),get disabled(){return c(Qe)},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:(ot,Ce)=>{yr();var yt=kn();xe(()=>Ne(yt,(c(u),U(()=>c(u).previousButtonLabel)))),T(ot,yt)},$$slots:{default:!0}})}},ie=We=>{var Qe=Ez();T(We,Qe)};oe(Ee,We=>{ne()?We(ie,!1):We(se)})}var Pe=fe(Ee,2);{var Ue=We=>{{let Qe=Le(()=>c(g)||c($e)),ot=Le(()=>ne()?"mx-auto":"");qt(We,{onclick:()=>Se(),get disabled(){return c(Qe)},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(ot)??""}`},children:(Ce,yt)=>{var kt=Ze(),Ot=ze(kt);{var Lt=Et=>{var st=Pz();T(Et,st)},Mt=Et=>{var st=kn();xe(()=>Ne(st,(c(u),U(()=>c(u).submitButtonLabel)))),T(Et,st)};oe(Ot,Et=>{c($e)?Et(Lt):Et(Mt,!1)})}T(Ce,kt)},$$slots:{default:!0}})}},qe=We=>{var Qe=Ze(),ot=ze(Qe);{var Ce=yt=>{qt(yt,{onclick:ve,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:(kt,Ot)=>{yr();var Lt=kn();xe(()=>Ne(Lt,(c(u),U(()=>c(u).nextButtonLabel)))),T(kt,Lt)},$$slots:{default:!0}})};oe(ot,yt=>{ne()||yt(Ce)},!0)}T(We,Qe)};oe(Pe,We=>{y()?We(Ue):We(qe,!1)})}L(we),T(ce,we)};oe(F,ce=>{b()?ce(ue):ce(_e,!1)},!0)}T(S,D)};oe(P,S=>{v()?S(Z):S(C,!1)})}L(B),T(i,B),Ke()}var Dz=ee('<div data-slot="progress-indicator" class="bg-primary h-full w-full flex-1 transition-all"></div>');function Lz(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"max",3,100),d=Dt(n,["$$slots","$$events","$$legacy","ref","class","max","value"]);var m=Ze(),p=ze(m);{let g=lt(()=>wr("bg-primary/20 relative w-full overflow-hidden rounded-full",n.class));Oa(p,()=>m1,(v,b)=>{b(v,jt({"data-slot":"progress",get class(){return c(g)},get value(){return n.value},get max(){return l()}},()=>d,{get ref(){return u()},set ref(h){u(h)},children:(h,k)=>{var y=Dz();xe(()=>yi(y,`transform: translateX(-${100-100*(n.value??0)/(l()??1)}%)`)),T(h,y)},$$slots:{default:!0}}))})}T(i,m),Ke()}var Mz=ee('<div class="flex-shrink-0" style="height: 3px; min-height: 3px; max-height: 3px;"><!></div>'),Zz=ee('<div class="branding-container"><img alt="encatch Logo" class="mr-2 h-5 w-5"/> <p class="m-0 text-[10px] font-medium text-muted-foreground">Powered by encatch</p></div>'),Rz=ee('<div id="encatch-form-id"><!> <div class="form-content-container custom-scrollbar"><!></div> <!> <!></div>');function rc(i,n){Ye(n,!1);const u=()=>Gx(Fr,"$formResponses",l),[l,d]=Jx(),m=X(),p=X(),g=X(),v=X(),b=X(),h=X(),k=X(),y=X(),I=X(),x=X();let O=_(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),j=_(n,"currentMode",12,"light"),J=_(n,"currentLanguage",28,()=>({value:"en",label:"en"})),re=_(n,"questions",28,()=>({})),W=_(n,"questionLanguages",28,()=>[]),G=_(n,"otherConfigurationProperties",12,null),V=_(n,"welcomeScreenProperties",12,null),M=_(n,"endScreenProperties",12,null),te=_(n,"translations",28,()=>({})),ne=_(n,"sections",24,()=>[]),$e=_(n,"themeSettings",12,null),je=_(n,"onClose",12,void 0),Se=_(n,"onSectionChange",8,void 0),ke=_(n,"apiKey",8,void 0),ve=_(n,"hostUrl",8,void 0),B=_(n,"feedbackConfigId",8,void 0),P=_(n,"identifier",8,void 0),Z=X(0),C=X(0),S=X(!1),D=X({}),F=X((()=>{let Q=[...ne()||[]];const N=V()?.isEnabled??!0,H=M()?.isEnabled??!0;return N&&Q.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),H&&Q.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),Q})()),ue=X(!1);const _e=()=>{const Q=window;return typeof window<"u"&&Q.encatchAnnotate!==void 0&&typeof Q.encatchAnnotate=="object"&&Q.encatchAnnotate!==null&&typeof Q.encatchAnnotate.getAnnotation=="function"},ce=()=>{if(_e()){const Q=window;console.log("Encatch Annotate plugin is available",_e());const N=Q.encatchAnnotate?.getAnnotation?.();console.log("Annotation Data from App.tsx:",N),N?(console.log("Found annotation data in App.tsx:",N),Object.entries(re()).forEach(([H,be])=>{be.type===s.QuestionTypes.ANNOTATION&&(console.log(`Updating annotation question ${H} with data:`,N),lr(H,N,s.QuestionTypes.ANNOTATION))})):(console.log("No annotation data found in App.tsx"),console.log("Annotation Data:",N))}},we=(Q,N,H,be,Me="")=>Q.map(Fe=>{let $t=Me?`${Me}.children.${Fe.id}.label`:`option.${Fe.id}.label`,mr=be[N]?.[H]?.[$t],nr={...Fe};return mr&&(nr.label=mr),Fe.children&&Fe.children.length>0&&(nr.children=we(Fe.children,N,H,be,Me?`${Me}.children.${Fe.id}`:`option.${Fe.id}`)),nr}),Ee=Q=>{const N=te()||{},H=Object.fromEntries(Object.entries(re()).map(([be,Me])=>{const Fe=N[be]?.[Q]||{};let $t={...Me};return Fe.title&&($t.title=Fe.title),Fe.description&&($t.description=Fe.description),Fe.errorMessage&&($t.errorMessage=Fe.errorMessage),Fe.placeholder&&($t.placeholder=Fe.placeholder),Fe.minLabel&&($t.minLabel=Fe.minLabel),Fe.maxLabel&&($t.maxLabel=Fe.maxLabel),Fe.annotationText&&($t.annotationText=Fe.annotationText),Fe.noAnnotationText&&($t.noAnnotationText=Fe.noAnnotationText),Me.options&&Array.isArray(Me.options)&&($t.options=we(Me.options,be,Q,N)),[be,$t]}));re(H)},se=()=>c(F).reduce((Q,N)=>Q+N.questionIds.length,0),ie=()=>u().questions.filter(Q=>{try{if(Q.type===s.QuestionTypes.SHORT_ANSWER){if(!Q.answer||typeof Q.answer!="object")return!1;const N=Q.answer.shortAnswer;if(N==null||typeof N=="string"&&N.trim()==="")return!1}if(Q.type===s.QuestionTypes.LONG_TEXT){if(!Q.answer||typeof Q.answer!="object")return!1;const N=Q.answer.longText;if(N==null||typeof N=="string"&&N.trim()==="")return!1}return!0}catch(N){return console.error("Error checking answer:",Q.questionId,N),!0}}).length,Pe=()=>(console.log("answeredQuestions",ie(),"totalQuestions",se()),ie()/se()*100),Ue=(Q,N,H)=>{let be=N;Array.isArray(N)&&(be=[...N]),lr(Q,be,H),$(D,{...c(D),[Q]:""})},qe=()=>{if(c(C)>0){const Q=c(C)-1;$(C,Q),Se()?.(Q)}},We=()=>{if(console.log("=== handleNext called ==="),console.log("currentSectionIndex BEFORE:",c(C)),console.log("internalSections.length:",c(F).length),console.log("internalSections:",c(F)),c(C)<c(F).length-1){const Q=c(C)+1;console.log("Will set currentSectionIndex to:",Q),$(C,Q),console.log("currentSectionIndex AFTER assignment:",c(C)),Se()?.(Q)}else console.log("❌ Cannot navigate next: already at last section")},Qe=()=>{console.log("Form submitted:",u().questions);const Q=c(F).findIndex(N=>N.id==="thankyou_screen");Q!==-1&&($(C,Q),Se()?.(Q)),$(S,!0),window.encatch?._internal?.submitFeedback?(console.log("$formResponses.questions:",JSON.stringify(u().questions,null,2)),console.log("First question answer:",u().questions[0]?.answer),window.encatch._internal.submitFeedback({response:{questions:u().questions},action:"S",feedbackConfigurationId:B()||"",feedbackIdentifier:P()||"",duration:0})):console.error("window.encatch._internal.submitFeedback is not available")},ot=()=>{je()?.()},Ce="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik00MDQuOCwyMTAuOEMzMDkuMSwyNDEuOSwyMzQsMzE3LjYsMjAzLjIsNDEzLjRjLTYxLjMsMTkwLjEsNDcuOSwzNjguNSwyMTIuNSw0MjBjNS43LDEuOCwxMS42LTIuNSwxMS42LTguNQoJCXYtNjkuN2MwLTMuNi0yLjItNi44LTUuNi04LjJDMzMyLjQsNzEwLjcsMjY5LjMsNjIzLDI2OS4zLDUyMC44YzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45djQ3LjJjMCwxMS4xLDMuOSwyMC42LDE1LDIwLjZsNDUuNi0wLjNoNDEuN3YtMC4yaDM0LjEKCQljNC4yLDAsNy42LTMuNCw3LjYtNy42di0zMy44Qzg0MS4xLDMwNC45LDYzMS40LDEzNy4yLDQwNC44LDIxMC44eiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTI2NSw3MTYuOGwtMTUuNCwxMTYuNmMtMC40LDIuOCwyLjUsNC45LDUsMy43TDM2OCw3ODUuN2MyLjYtMS4yLDIuOC00LjcsMC41LTYuMmwtOTcuOS02NS4yCgkJQzI2OC40LDcxMi44LDI2NS40LDcxNC4xLDI2NSw3MTYuOHoiLz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik02NjYuMyw1NjMuM2gtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY3MC45LDU2MS4yLDY2OC44LDU2My4zLDY2Ni4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTQ0NC4yLDU2My4zaC03Ni41Yy0zLjEsMC01LjUtMi41LTUuNS01LjV2LTc2LjVjMC0zLjEsMi41LTUuNSw1LjUtNS41aDc2LjVjMy4xLDAsNS41LDIuNSw1LjUsNS41djc2LjUKCQlDNDQ5LjcsNTYwLjgsNDQ3LjIsNTYzLjMsNDQ0LjIsNTYzLjN6Ii8+Cgk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNNTU1LjMsNTYzLjNoLTc3LjZjLTIuOCwwLTUtMi4zLTUtNXYtNzcuNmMwLTIuOCwyLjMtNSw1LTVoNzcuNmMyLjgsMCw1LDIuMyw1LDV2NzcuNgoJCUM1NjAuMyw1NjEsNTU4LDU2My4zLDU1NS4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTY4My45LDI1NC45Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZjNjIuNS0xMDEuNiwxODcuNy0xNDEuNCwyOTUuMS0xMDAuMSIvPgo8L2c+Cjwvc3ZnPgo=",yt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zODEuOSwxOTkuNmMtOTUuNywzMS4xLTE3MC44LDEwNi44LTIwMS43LDIwMi42Yy02MS4zLDE5MC4xLDQ3LjksMzY4LjUsMjEyLjUsNDIwYzUuNywxLjgsMTEuNi0yLjUsMTEuNi04LjUKCQlWNzQ0YzAtMy42LTIuMi02LjgtNS42LTguMmMtODkuMy0zNi4zLTE1Mi40LTEyNC4xLTE1Mi40LTIyNi4yYzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45VjUzMWMwLDExLjEsMy45LDIwLjYsMTUsMjAuNmw0NS42LTAuM2g0MS43di0wLjJoMzQuMQoJCWM0LjIsMCw3LjYtMy40LDcuNi03LjZ2LTMzLjhDODE4LjIsMjkzLjcsNjA4LjUsMTI2LDM4MS45LDE5OS42eiIvPgoJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI0Mi4xLDcwNS42bC0xNS40LDExNi42Yy0wLjQsMi44LDIuNSw0LjksNSwzLjdMMzQ1LDc3NC41YzIuNi0xLjIsMi44LTQuNywwLjUtNi4yTDI0Ny42LDcwMwoJCUMyNDUuNCw3MDEuNiwyNDIuNCw3MDIuOSwyNDIuMSw3MDUuNnoiLz4KCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02NDMuNCw1NTIuMWgtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY0Ny45LDU1MCw2NDUuOSw1NTIuMSw2NDMuNCw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik00MjEuMiw1NTIuMWgtNzYuNWMtMy4xLDAtNS41LTIuNS01LjUtNS41VjQ3MGMwLTMuMSwyLjUtNS41LDUuNS01LjVoNzYuNWMzLjEsMCw1LjUsMi41LDUuNSw1LjV2NzYuNQoJCUM0MjYuOCw1NDkuNiw0MjQuMyw1NTIuMSw0MjEuMiw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDQiIGQ9Ik01MzIuMyw1NTIuMWgtNzcuNmMtMi44LDAtNS0yLjMtNS01di03Ny42YzAtMi44LDIuMy01LDUtNWg3Ny42YzIuOCwwLDUsMi4zLDUsNVY1NDcKCQlDNTM3LjQsNTQ5LjgsNTM1LjEsNTUyLjEsNTMyLjMsNTUyLjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjYxLDI0My42Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZDMzQ1LjIsMjc5LDQ3MC40LDIzOS4yLDU3Ny45LDI4MC41Ii8+CjwvZz4KPC9zdmc+Cg==";xn(()=>{ce(),window.updateEncatchForm=Q=>{if(console.log("updateEncatchForm received props:",Q),Q.theme&&O(Q.theme),Q.currentMode&&j(Q.currentMode),Q.currentLanguage&&(console.log("currentLanguage at App.tsx",Q.currentLanguage),J(Q.currentLanguage),J()?.value&&Ee(J().value)),Q.questions&&re(Q.questions),Q.questionLanguages&&W(Q.questionLanguages),Q.otherConfigurationProperties&&G(Q.otherConfigurationProperties),Q.welcomeScreenProperties&&V(Q.welcomeScreenProperties),Q.endScreenProperties){const N=M()?.isEnabled,H=Q.endScreenProperties.isEnabled;if(N&&!H){const be=c(F).findIndex(Me=>Me.id==="thankyou_screen");be===c(C)&&$(C,Math.max(0,be-1))}M(Q.endScreenProperties)}if(Q.sections){const N=[...Q.sections],H=Q.welcomeScreenProperties?.isEnabled??V()?.isEnabled??!0,be=Q.endScreenProperties?.isEnabled??M()?.isEnabled??!0;H&&!N.some(Me=>Me.id==="welcome_screen")&&N.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),be&&!N.some(Me=>Me.id==="thankyou_screen")&&N.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),$(F,N),H&&c(C)===0&&$(C,0)}Q.translations&&(te(Q.translations),J()?.value&&Ee(J().value)),Q.themeSettings&&$e(Q.themeSettings),Q.onClose&&je(Q.onClose)}}),de(()=>(z($e()),z(j())),()=>{if($e()&&$e().themes&&j()&&$e().themes[j()]){const Q=document.documentElement,N=$e().themes[j()];N&&(Q.style.setProperty("--brand-color",N.brandColor||"#2563eb"),Q.style.setProperty("--text-color",N.textColor||"#333"),Q.style.setProperty("--background-color",N.backgroundColor||"#ffffff"))}}),de(()=>z(j()),()=>{$(m,j()==="dark"?Ce:yt)}),de(()=>(z(J()),z(V()),z(M()),z(G())),()=>{if(J()&&J().value){const Q=J().value;Ee(Q),V()?.translations?.[Q]&&V({...V(),welcomeFields:{...V().welcomeFields,...V().translations[Q]}}),M()?.translations?.[Q]&&M({...M(),endFields:{...M().endFields,...M().translations[Q]}}),G()?.translations?.[Q]&&G({...G(),otherFields:{...G().otherFields,...G().translations[Q]}})}}),de(()=>(z(ne()),z(V()),z(M()),c(C),c(ue),c(S)),()=>{const Q=[...ne()];let N=!1;const H=Q.some($t=>$t.id==="welcome_screen"),be=Q.some($t=>$t.id==="thankyou_screen"),Me=V()?.isEnabled??!0,Fe=M()?.isEnabled??!0;if(Me&&!H)Q.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),N=!0;else if(!Me&&H){const $t=Q.filter(mr=>mr.id!=="welcome_screen");$t.length!==Q.length&&($(F,$t),N=!0)}if(Fe&&!be)Q.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),N=!0;else if(!Fe&&be){const $t=Q.filter(mr=>mr.id!=="thankyou_screen");if($t.length!==Q.length){const mr=Q.findIndex(nr=>nr.id==="thankyou_screen");(c(C)===mr||c(C)>=$t.length)&&$(C,Math.max(0,$t.length-1)),$(F,$t),N=!0}}N&&(console.log("REACTIVE BLOCK: sectionUpdated is true"),$(F,Q),c(ue)||(console.log("REACTIVE BLOCK: Initial setup, setting currentSectionIndex to 0"),!c(S)&&!(!Fe&&be)&&$(C,0),$(ue,!0)))}),de(()=>(z(M()),c(C),c(F)),()=>{$(p,M()?.isEnabled&&c(C)===c(F).length-1)}),de(()=>c(F),()=>{$(g,c(F).filter(Q=>Q.id!=="welcome_screen"&&Q.id!=="thankyou_screen").length===1)}),de(()=>(c(C),c(F)),()=>{$(v,c(C)===0&&c(F)[0]?.id==="welcome_screen")}),de(()=>(c(F),c(C)),()=>{$(b,c(F)[c(C)]?.id==="thankyou_screen")}),de(()=>c(C),()=>{$(h,c(C)===0)}),de(()=>(c(F),c(C)),()=>{$(k,c(F)[0]?.id==="welcome_screen"&&c(C)===1)}),de(()=>(c(F),c(C)),()=>{$(y,(()=>{const Q=c(F).findIndex(N=>N.id==="thankyou_screen");return Q!==-1?c(C)===Q-1:c(C)===c(F).length-1})())}),de(()=>(c(F),c(C),c(v),c(b),u(),z(re())),()=>{$(I,(()=>{const Q=c(F)[c(C)];if(!Q||c(v)||c(b))return!1;const N=Q.questionIds||[],H=u().questions.reduce((be,Me)=>(be[Me.questionId]=Me,be),{});console.log("=== Validation Check ==="),console.log("Current section:",Q.id,Q.title),console.log("Question IDs in section:",N),console.log("All responses:",H),console.log("All form responses:",u().questions);for(const be of N){const Me=re()[be],Fe=!!H[be];if(console.log(`Question ${be}:`,{title:Me?.title,required:Me?.required,hasResponse:Fe,response:H[be]}),Me?.required&&!Fe)return console.log(`❌ Required question not answered: ${be}`,Me?.title),!0}return console.log("✅ All required questions answered"),!1})())}),de(()=>c(I),()=>{console.log("App.svelte: _hasUnansweredRequired =",c(I))}),de(()=>(c(C),c(F)),()=>{console.log("🔄 REACTIVE: currentSectionIndex =",c(C)),c(C)>=0&&c(C)<c(F).length&&console.log("🔄 Current section:",c(F)[c(C)])}),de(()=>(u(),s.QuestionTypes),()=>{$(x,u().questions.reduce((Q,N)=>{if(N.answer)switch(N.type){case s.QuestionTypes.RATING:Q[N.questionId]=N.answer.rating;break;case s.QuestionTypes.NPS:Q[N.questionId]=N.answer.nps;break;case s.QuestionTypes.LONG_TEXT:Q[N.questionId]=N.answer.longText;break;case s.QuestionTypes.SHORT_ANSWER:Q[N.questionId]=N.answer.shortAnswer;break;case s.QuestionTypes.SINGLE_CHOICE:Q[N.questionId]=N.answer.singleChoice;break;case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:Q[N.questionId]=[...N.answer.multipleChoiceMultiple||[]];break;case s.QuestionTypes.NESTED_SELECTION:Q[N.questionId]=[...N.answer.nestedSelection||[]];break;default:Q[N.questionId]=N.answer}else Q[N.questionId]=null;return Q},{}))}),de(()=>u(),()=>{const Q=Pe();$(Z,Q),console.log("Form Responses Store Updated:",u()),console.log("Questions answered:",u().questions.length)}),de(()=>z(re()),()=>{re()&&(console.log("Questions changed"),ce())}),de(()=>c(g),()=>{console.log("Is single page survey:",c(g))}),sr(),Ht();var kt=Rz(),Ot=R(kt);{var Lt=Q=>{var N=Mz(),H=R(N);Lz(H,{get value(){return c(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(N),T(Q,N)};oe(Ot,Q=>{z($e()),c(v),c(b),U(()=>$e()?.featureSettings?.progressBar&&!c(v)&&!c(b))&&Q(Lt)})}var Mt=fe(Ot,2),Et=R(Mt);{let Q=Le(()=>(z(J()),U(()=>J()?.value||"en"))),N=Le(()=>(z($e()),U(()=>$e()?.themes||null))),H=Le(()=>c(p)===!0);jz(Et,{get questions(){return re()},get sections(){return c(F)},get formData(){return c(x)},get errors(){return c(D)},onChange:Ue,get currentMode(){return j()},get currentSectionIndex(){return c(C)},get otherConfigurationProperties(){return G()},get welcomeScreenProperties(){return V()},get endScreenProperties(){return M()},get currentLanguage(){return c(Q)},get themeSettings(){return c(N)},onClose:ot,get isScreenVisible(){return c(H)},get apiKey(){return ke()},get feedbackConfigurationId(){return B()},get hostUrl(){return ve()},get identifier(){return P()}})}L(Mt);var st=fe(Mt,2);{let Q=Le(()=>(z(J()),U(()=>J()?.value||"en"))),N=Le(()=>(z($e()),U(()=>$e()?.themes||null)));Az(st,{get isWelcomeScreen(){return c(v)},get isThankYouScreen(){return c(b)},get isFirstSection(){return c(h)},get isFirstPageAfterWelcome(){return c(k)},get isLastSection(){return c(y)},get welcomeScreenProperties(){return V()},get endScreenProperties(){return M()},get otherConfigurationProperties(){return G()},get currentMode(){return j()},get currentLanguage(){return c(Q)},handlePrevious:qe,handleNext:We,handleSubmit:Qe,onClose:ot,get themeSettings(){return c(N)},get nextButtonDisabled(){return c(I)},get submitButtonDisabled(){return c(I)},get isSinglePageSurvey(){return c(g)}})}var Bt=fe(st,2);{var Yr=Q=>{var N=Zz(),H=R(N);yr(2),L(N),xe(()=>ei(H,"src",c(m))),T(Q,N)};oe(Bt,Q=>{z($e()),U(()=>$e()?.featureSettings?.showBranding)&&Q(Yr)})}L(kt),xe(()=>sn(kt,1,`encatch-form ${j()==="dark"?"theme-dark dark":"theme-light"}`)),T(i,kt),Ke(),d()}var qz=ee('<div class="fixed inset-0 transition-opacity duration-300"></div>'),Fz=ee('<!> <div id="encatch-feedback-popup" class="rounded-xl shadow-2xl overflow-hidden"><!> <!></div>',1),Wz=ee('<link rel="stylesheet" href="http://127.0.0.1:5500/encatch-typescript/packages/web-sdk/public/web-form-engine-core.css"/> <!>',1);function zb(i,n){Ye(n,!1);const u=X(),l=X();let d=_(n,"themeMode",8,"light"),m=_(n,"feedbackConfiguration",8,null),p=_(n,"apiKey",8,""),g=_(n,"hostUrl",8,"");_(n,"deviceInfo",8,null),_(n,"sessionId",8,""),_(n,"userInfo",8,null);let v=_(n,"language",8,"en"),b=_(n,"configurationData",8,null),h=_(n,"onClose",8,void 0),k=_(n,"trackPopupHeight",8,void 0),y=_(n,"feedbackConfigId",8,void 0),I=_(n,"identifier",8,void 0),x=X(document.documentElement.clientWidth),O=X(!1),j=X(null),J=!1,re=null,W=X(),G;const V=()=>{if(c(W)){const ve=c(W).querySelector("#section-container");if(ve){const B=window.innerHeight*.75,P=ve.clientHeight,Z=84,C=60,S=Math.min(P+Z+C,B);c(W).style.transition.includes("height")||Lv(W,c(W).style.transition="height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"),Lv(W,c(W).style.height=`${S}px`),ve.style.overflowY=P+Z+C>B?"auto":"hidden"}}},M=()=>{$(x,document.documentElement.clientWidth)},te=()=>{s0(),$(O,!1),setTimeout(()=>{h()?.()},300)},ne=ve=>{const B={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(ve){case"top-left":return{...B,top:"12px",left:"12px",transform:"translate(0, 0)"};case"top-center":return{...B,top:"12px",left:"50%",transform:"translate(-50%, 0)"};case"top-right":return{...B,top:"12px",right:"12px",transform:"translate(0, 0)"};case"center-left":return{...B,top:"50%",left:"12px",transform:"translateY(-50%)"};case"center":return{...B,top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)"};case"center-right":return{...B,top:"50%",right:"12px",transform:"translateY(-50%)"};case"bottom-left":return{...B,bottom:"12px",left:"12px",transform:"translate(0, 0)"};case"bottom-center":return{...B,bottom:"12px",left:"50%",transform:"translate(-50%, 0)"};case"bottom-right":return{...B,bottom:"12px",right:"12px",transform:"translate(0, 0)"};case"bottom-full":return{...B,bottom:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"top-full":return{...B,top:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"full":return{...B,top:"0",left:"0",width:"100%","max-width":"100%",height:"100%",transform:"translate(0, 0)"};default:return B}},$e=ve=>Object.entries(ve).map(([B,P])=>`${B}: ${P}`).join("; ");xn(()=>{console.log("[POPUP-UI] onMount called"),console.log("[POPUP-UI] Props on mount:",{feedbackConfiguration:m(),configurationData:b(),themeMode:d(),apiKey:p(),hostUrl:g(),hasAppearanceProperties:!!m()?.appearanceProperties,hasDetails:!!c(j)}),window.addEventListener("resize",M),setTimeout(()=>{$(O,!0),console.log("[POPUP-UI] isVisible set to true")},100),G=window.setInterval(V,5e3),k()&&k()(V),requestAnimationFrame(()=>{setTimeout(()=>V(),0)}),console.log("[POPUP-UI] loaded")}),Ta(()=>{window.removeEventListener("resize",M),G&&window.clearInterval(G)}),de(()=>c(x),()=>{$(u,c(x)<=768?"95%":"600px")}),de(()=>z(b()),()=>{$(j,b())}),de(()=>c(j),()=>{c(j)?.feedbackIdentifier&&console.log("[POPUP-UI] feedback identifier data",c(j)?.feedbackIdentifier)}),de(()=>c(j),()=>{console.log("[POPUP-UI] Reactive update - details:",c(j),"loading:",J,"error:",re)}),de(()=>z(m()),()=>{console.log("[POPUP-UI] feedbackConfiguration:",m())}),de(()=>z(b()),()=>{console.log("[POPUP-UI] configurationData:",b())}),de(()=>z(m()),()=>{console.log("[POPUP-UI] feedbackConfiguration?.appearanceProperties:",m()?.appearanceProperties)}),de(()=>(z(m()),c(j)),()=>{console.log("[POPUP-UI] Render condition check:",{hasFeedbackConfiguration:!!m(),hasAppearanceProperties:!!m()?.appearanceProperties,hasDetails:!!c(j),shouldRenderApp:!!(m()?.appearanceProperties&&c(j))})}),de(()=>z(m()),()=>{$(l,m()&&m().appearanceProperties&&m().appearanceProperties.selectedPosition?ne(m().appearanceProperties.selectedPosition):{})}),de(()=>c(O),()=>{console.log("Current visible state (reactive): ",c(O))}),sr(),Ht();var je=Wz(),Se=fe(ze(je),2);{var ke=ve=>{var B=Fz(),P=ze(B);{var Z=_e=>{var ce=qz();xe(()=>yi(ce,`background-color: ${z(m()),z(d()),U(()=>m().appearanceProperties.themes[d()].overlayColor)??""}; z-index: 1000; opacity: ${c(O)?"0.4":"0"};`)),T(_e,ce)};oe(P,_e=>{z(m()),U(()=>m()?.appearanceProperties?.featureSettings?.darkOverlay)&&_e(Z)})}var C=fe(P,2),S=R(C);{var D=_e=>{qt(_e,{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:te,"aria-label":"Close popup",children:(ce,we)=>{Zh(ce,{size:20,stroke:2})},$$slots:{default:!0}})};oe(S,_e=>{z(m()),U(()=>m()?.appearanceProperties?.featureSettings?.closeButton)&&_e(D)})}var F=fe(S,2);{var ue=_e=>{{let ce=Le(()=>({value:v(),label:v()})),we=Le(()=>(c(j),U(()=>c(j)?.questionnaireFields.questions||{}))),Ee=Le(()=>(c(j),U(()=>c(j)?.questionnaireFields.selectedLanguages||[]))),se=Le(()=>(c(j),U(()=>c(j)?.questionnaireFields.translations||{}))),ie=Le(()=>(c(j),U(()=>c(j)?.otherConfigurationProperties))),Pe=Le(()=>(c(j),U(()=>c(j)?.welcomeScreenProperties))),Ue=Le(()=>(c(j),U(()=>c(j)?.endScreenProperties))),qe=Le(()=>(c(j),U(()=>c(j)?.questionnaireFields.sections||[])));rc(_e,{get theme(){return z(m()),U(()=>m().appearanceProperties.themes)},get themeSettings(){return z(m()),U(()=>m().appearanceProperties)},get currentMode(){return d()},get currentLanguage(){return c(ce)},get questions(){return c(we)},get questionLanguages(){return c(Ee)},get translations(){return c(se)},get otherConfigurationProperties(){return c(ie)},get welcomeScreenProperties(){return c(Pe)},get endScreenProperties(){return c(Ue)},get sections(){return c(qe)},onSectionChange:()=>{requestAnimationFrame(()=>{setTimeout(()=>V(),0)})},onClose:te,get apiKey(){return p()},get hostUrl(){return g()},get feedbackConfigId(){return y()},get identifier(){return I()}})}};oe(F,_e=>{z(m()),c(j),U(()=>m()?.appearanceProperties&&c(j))&&_e(ue)})}L(C),Or(C,_e=>$(W,_e),()=>c(W)),xe(_e=>yi(C,`${_e??""}; background-color: ${z(m()),z(d()),U(()=>m()?.appearanceProperties?.themes?.[d()]?.overlayColor||"transparent")??""}; z-index: 1001;`),[()=>(c(l),U(()=>$e(c(l))))]),T(ve,B)};oe(Se,ve=>{ve(ke)})}T(i,je),Ke()}function Nb(i,n){Ye(n,!1);let u=_(n,"themeMode",12,"light"),l=_(n,"feedbackConfiguration",12,null),d=_(n,"apiKey",12,""),m=_(n,"hostUrl",12,""),p=_(n,"deviceInfo",12,null),g=_(n,"sessionId",12,""),v=_(n,"userInfo",12,null),b=_(n,"language",12,"en"),h=_(n,"configurationData",12,null),k=_(n,"onClose",12,void 0),y=_(n,"trackPopupHeight",12,void 0),I=_(n,"feedbackConfigId",12,void 0),x=_(n,"identifier",12,void 0);console.log("[Encatch-Form] Props received:",{themeMode:u(),feedbackConfiguration:l(),apiKey:d(),hostUrl:m(),deviceInfo:p(),sessionId:g(),userInfo:v(),language:b(),configurationData:h(),feedbackConfigId:I(),identifier:x()});var O={get themeMode(){return u()},set themeMode(j){u(j),dt()},get feedbackConfiguration(){return l()},set feedbackConfiguration(j){l(j),dt()},get apiKey(){return d()},set apiKey(j){d(j),dt()},get hostUrl(){return m()},set hostUrl(j){m(j),dt()},get deviceInfo(){return p()},set deviceInfo(j){p(j),dt()},get sessionId(){return g()},set sessionId(j){g(j),dt()},get userInfo(){return v()},set userInfo(j){v(j),dt()},get language(){return b()},set language(j){b(j),dt()},get configurationData(){return h()},set configurationData(j){h(j),dt()},get onClose(){return k()},set onClose(j){k(j),dt()},get trackPopupHeight(){return y()},set trackPopupHeight(j){y(j),dt()},get feedbackConfigId(){return I()},set feedbackConfigId(j){I(j),dt()},get identifier(){return x()},set identifier(j){x(j),dt()}};return zb(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 h()},get onClose(){return k()},get trackPopupHeight(){return y()},get feedbackConfigId(){return I()},get identifier(){return x()}}),Ke(O)}customElements.define("encatch-form",Uh(Nb,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{}},[],[],!0));var Vz=ee('<div class="encatch-scale-wrapper svelte-ycyc1j"><!></div>');const Qz={hash:"svelte-ycyc1j",code:".encatch-scale-wrapper.svelte-ycyc1j {transform-origin:top left;transition:transform 0.2s ease-in-out;}"};function jb(i,n){Ye(n,!1),Ax(i,Qz);const u=X(),l=X();let d=_(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),m=_(n,"currentMode",12,"light"),p=_(n,"currentLanguage",28,()=>({value:"en",label:"en",isFixed:!0})),g=_(n,"questions",28,()=>({})),v=_(n,"questionLanguages",28,()=>[]),b=_(n,"otherConfigurationProperties",12,null),h=_(n,"welcomeScreenProperties",12,null),k=_(n,"endScreenProperties",12,null),y=_(n,"translations",28,()=>({})),I=_(n,"sections",28,()=>[]),x=_(n,"themeSettings",12,null),O=_(n,"onClose",12,void 0),j=_(n,"onSectionChange",12,void 0),J=_(n,"apiKey",12,void 0),re=_(n,"hostUrl",12,void 0),W=_(n,"feedbackConfigId",12,void 0),G=_(n,"identifier",12,void 0),V=_(n,"cssLink",12,void 0),M=_(n,"scale",12,1),te=X(!1),ne=X(!1),$e=X();const je=P=>{if(!P)return null;let Z=P;for(;Z;){if(Z instanceof ShadowRoot)return Z;Z=Z.parentNode}return null};xn(()=>{console.log("[EncatchApp] Props received:",{theme:d(),currentMode:m(),currentLanguage:p(),questions:g(),questionLanguages:v(),otherConfigurationProperties:b(),welcomeScreenProperties:h(),endScreenProperties:k(),translations:y(),sections:I(),themeSettings:x(),feedbackConfigId:W(),identifier:G(),scale:M(),cssLink:V()}),V()||(console.log("[EncatchApp] No cssLink provided, rendering immediately"),$(te,!0))}),de(()=>z(M()),()=>{$(u,`scale(${M()})`)}),de(()=>{},()=>{$(l,"top left")}),de(()=>(c($e),z(V()),c(te),c(ne)),()=>{c($e)&&V()&&!c(te)&&!c(ne)&&(console.log("[EncatchApp] Container element bound, loading CSS"),setTimeout(()=>{const P=je(c($e));console.log("[EncatchApp] Shadow root found:",!!P);const Z=document.createElement("link");Z.rel="stylesheet",Z.href=V(),Z.onload=()=>{console.log("[EncatchApp] CSS loaded successfully"),$(te,!0)},Z.onerror=()=>{console.error("[EncatchApp] Failed to load CSS"),$(ne,!0)},P?(console.log("[EncatchApp] Appending CSS to shadow root"),P.appendChild(Z)):(console.log("[EncatchApp] Shadow root not found, appending to document head"),document.head.appendChild(Z))},0))}),sr();var Se={get theme(){return d()},set theme(P){d(P),dt()},get currentMode(){return m()},set currentMode(P){m(P),dt()},get currentLanguage(){return p()},set currentLanguage(P){p(P),dt()},get questions(){return g()},set questions(P){g(P),dt()},get questionLanguages(){return v()},set questionLanguages(P){v(P),dt()},get otherConfigurationProperties(){return b()},set otherConfigurationProperties(P){b(P),dt()},get welcomeScreenProperties(){return h()},set welcomeScreenProperties(P){h(P),dt()},get endScreenProperties(){return k()},set endScreenProperties(P){k(P),dt()},get translations(){return y()},set translations(P){y(P),dt()},get sections(){return I()},set sections(P){I(P),dt()},get themeSettings(){return x()},set themeSettings(P){x(P),dt()},get onClose(){return O()},set onClose(P){O(P),dt()},get onSectionChange(){return j()},set onSectionChange(P){j(P),dt()},get apiKey(){return J()},set apiKey(P){J(P),dt()},get hostUrl(){return re()},set hostUrl(P){re(P),dt()},get feedbackConfigId(){return W()},set feedbackConfigId(P){W(P),dt()},get identifier(){return G()},set identifier(P){G(P),dt()},get cssLink(){return V()},set cssLink(P){V(P),dt()},get scale(){return M()},set scale(P){M(P),dt()}};Ht();var ke=Vz(),ve=R(ke);{var B=P=>{rc(P,{get theme(){return d()},get currentMode(){return m()},get currentLanguage(){return p()},get questions(){return g()},get questionLanguages(){return v()},get otherConfigurationProperties(){return b()},get welcomeScreenProperties(){return h()},get endScreenProperties(){return k()},get translations(){return y()},get sections(){return I()},get themeSettings(){return x()},get onClose(){return O()},get onSectionChange(){return j()},get apiKey(){return J()},get hostUrl(){return re()},get feedbackConfigId(){return W()},get identifier(){return G()}})};oe(ve,P=>{c(te)&&P(B)})}return L(ke),Or(ke,P=>$($e,P),()=>c($e)),xe(()=>yi(ke,`transform: ${c(u)??""}; transform-origin: ${c(l)??""}; width: ${100/M()}%; height: ${100/M()}%;`)),T(i,ke),Ke(Se)}customElements.define("encatch-app",Uh(jb,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{},scale:{}},[],[],!0));const Gz=Nb,Jz=jb;o.App=rc,o.EncatchAppElement=Jz,o.EncatchFormElement=Gz,o.PopupUi=zb,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(Pi,Pi.exports)),Pi.exports}var Ik=Sk();const zk=Pb({__proto__:null},[Ik]);Nn.EncatchPreview=Mb,Object.defineProperty(Nn,Symbol.toStringTag,{value:"Module"})}));
|
|
278
|
+
*/let u=Mt(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M5 12h14"}]];Za(i,jt({name:"minus"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=Ne(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}var G1=te('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function V1(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"checked",15,!1),d=_(n,"indeterminate",15,!1),m=Mt(n,["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]);var p=Ze(),g=Ne(p);{const v=(h,k)=>{let y=()=>k?.().checked,I=()=>k?.().indeterminate;var x=G1(),O=L(x);{var j=ne=>{W1(ne,{class:"size-3.5"})},Y=ne=>{var R=Ze(),V=Ne(R);{var J=A=>{Q1(A,{class:"size-3.5"})};ae(V,A=>{I()&&A(J)},!0)}T(ne,R)};ae(O,ne=>{y()?ne(j):ne(Y,!1)})}M(x),T(h,x)};let b=lt(()=>wr("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));Ta(g,()=>u1,(h,k)=>{k(h,jt({"data-slot":"checkbox",get class(){return c(b)}},()=>m,{get ref(){return u()},set ref(y){u(y)},get checked(){return l()},set checked(y){l(y)},get indeterminate(){return d()},set indeterminate(y){d(y)},children:v,$$slots:{default:!0}}))})}T(i,p),Ke()}var J1=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),B1=te('<span class="text-destructive ml-1">*</span>'),Y1=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),K1=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>'),H1=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>'),X1=te('<div class="flex items-center space-x-3"><!> <label> </label></div>'),ez=te('<div class="flex flex-col gap-3"></div>'),tz=(i,n,u)=>n(c(u).value),rz=te('<button type="button"> </button>'),nz=te('<div class="flex flex-wrap gap-2"></div>'),iz=wn('<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=te('<span class="flex-1"> </span> <!>',1),az=te('<div class="flex flex-col gap-2 w-full"></div>'),sz=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 uz(i,n){Ye(n,!1);const u=ee();let l=_(n,"question",8),d=_(n,"value",24,()=>[]),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let b=ee(d()||[]),h=ee(p()),k=ee(void 0),y=!1,I=ee(!1);xn(()=>{setTimeout(()=>{const S=x(c(b));$(h,S),S&&$i(l().id,S),y=!0},0)});function x(S){if(l().required&&(!S||S.length===0))return l().errorMessage;const D=l().maxSelections;if(D!==void 0&&S.length>D)return l().errorMessage;const q=l().minSelections;if(q!==void 0&&S.length>0&&S.length<q)return l().errorMessage}function O(S){if(!y)return;$(I,!0);const D=[...c(b)];if(D.includes(S)){const q=D.filter($e=>$e!==S);$(b,q),m()(q),$(k,void 0);const le=x(q);$(h,le),lr(l().id,q,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,le)}else{const q=l().maxSelections;if(q!==void 0&&D.length>=q){const le=l().errorMessage;$(k,le),lr(l().id,D,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,void 0)}else{const le=[...D,S];$(b,le),m()(le),$(k,void 0);const $e=x(le);$(h,$e),lr(l().id,le,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,$e)}}}fe(()=>z(g()),()=>{$(u,g()==="dark")}),fe(()=>(z(d()),c(I)),()=>{d()!==void 0&&!c(I)&&$(b,d())}),fe(()=>z(p()),()=>{p()!==void 0&&$(h,p())}),sr(),Ht();var j=sz(),Y=L(j),ne=L(Y);{var R=S=>{var D=J1(),q=L(D);M(D),Se(()=>je(q,`${v()??""}.`)),T(S,D)};ae(ne,S=>{v()!==void 0&&S(R)})}var V=me(ne,2),J=L(V),A=L(J),re=me(A);{var oe=S=>{var D=B1();T(S,D)};ae(re,S=>{z(l()),C(()=>l().required)&&S(oe)})}M(J);var we=me(J,2);{var Ie=S=>{var D=Y1(),q=L(D,!0);M(D),Se(()=>je(q,(z(l()),C(()=>l().description)))),T(S,D)};ae(we,S=>{z(l()),C(()=>l().description)&&S(Ie)})}M(V),M(Y);var ke=me(Y,2);{var xe=S=>{var D=K1(),q=L(D),le=L(q,!0);M(q),M(D),Se(()=>je(le,c(h))),T(S,D)};ae(ke,S=>{c(h)&&S(xe)})}var Q=me(ke,2);{var G=S=>{var D=H1(),q=L(D),le=L(q,!0);M(q),M(D),Se(()=>je(le,c(k))),T(S,D)};ae(Q,S=>{c(k)&&S(G)})}var B=me(Q,2);{var F=S=>{var D=ez();dr(D,5,()=>(z(l()),C(()=>l().options)),_r,(q,le)=>{const $e=Ae(()=>(c(b),c(le),C(()=>c(b).includes(c(le).value)))),de=Ae(()=>(z(l()),c(b),z(c($e)),C(()=>l().maxSelections!==void 0&&c(b).length>=l().maxSelections&&!c($e))));var _e=X1(),Ee=L(_e);{let Pe=Ae(()=>(z(l()),c(le),C(()=>`${l().id}-${c(le).value}`))),Ue=Ae(()=>(c(b),c(le),C(()=>c(b).includes(c(le).value))));V1(Ee,{get id(){return c(Pe)},get checked(){return c(Ue)},onCheckedChange:()=>O(c(le).value),get disabled(){return c(de)},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 ue=me(Ee,2),ie=L(ue,!0);M(ue),M(_e),Se(()=>{ei(ue,"for",(z(l()),c(le),C(()=>`${l().id}-${c(le).value}`))),sn(ue,1,`text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none ${c(de)?"opacity-50 cursor-not-allowed":""}`),je(ie,(c(le),C(()=>c(le).label)))}),T(q,_e)}),M(D),T(S,D)},P=S=>{var D=Ze(),q=Ne(D);{var le=de=>{var _e=nz();dr(_e,5,()=>(z(l()),C(()=>l().options)),_r,(Ee,ue)=>{const ie=Ae(()=>(c(b),c(ue),C(()=>c(b).includes(c(ue).value)))),Pe=Ae(()=>(z(l()),c(b),z(c(ie)),C(()=>l().maxSelections!==void 0&&c(b).length>=l().maxSelections&&!c(ie))));var Ue=rz();Ue.__click=[tz,O,ue];var qe=L(Ue,!0);M(Ue),Se(()=>{Ue.disabled=c(Pe),sn(Ue,1,`rounded-full px-4 py-2 text-sm font-medium transition-all border-2 ${c(ie)?"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(Pe)?"opacity-50 cursor-not-allowed":"hover:scale-105 cursor-pointer"}`),je(qe,(c(ue),C(()=>c(ue).label)))}),T(Ee,Ue)}),M(_e),T(de,_e)},$e=de=>{var _e=Ze(),Ee=Ne(_e);{var ue=ie=>{var Pe=az();dr(Pe,5,()=>(z(l()),C(()=>l().options)),_r,(Ue,qe)=>{const We=Ae(()=>(c(b),c(qe),C(()=>c(b).includes(c(qe).value)))),Ge=Ae(()=>(z(l()),c(b),z(c(We)),C(()=>l().maxSelections!==void 0&&c(b).length>=l().maxSelections&&!c(We))));{let ot=Ae(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${c(We)?"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(Ge)?"opacity-50 cursor-not-allowed":""}`);qt(Ue,{type:"button",variant:"outline",get disabled(){return c(Ge)},get class(){return c(ot)},onclick:()=>O(c(qe).value),onkeydown:Ce=>Ce.key==="Enter"&&O(c(qe).value),children:(Ce,yt)=>{var kt=oz(),Ot=Ne(kt),At=L(Ot,!0);M(Ot);var Lt=me(Ot,2);{var Et=st=>{var Bt=iz();T(st,Bt)};ae(Lt,st=>{c(We)&&st(Et)})}Se(()=>je(At,(c(qe),C(()=>c(qe).label)))),T(Ce,kt)},$$slots:{default:!0}})}}),M(Pe),T(ie,Pe)};ae(Ee,ie=>{z(l()),C(()=>l().displayStyle==="list")&&ie(ue)},!0)}T(de,_e)};ae(q,de=>{z(l()),C(()=>l().displayStyle==="chip")?de(le):de($e,!1)},!0)}T(S,D)};ae(B,S=>{z(l()),C(()=>l().displayStyle==="checkbox"||!l().displayStyle)?S(F):S(P,!1)})}M(j),Se(()=>je(A,`${z(l()),C(()=>l().title)??""} `)),T(i,j),Ke()}yl(["click"]);function lz(i,n,u,l,d,m,p,g){c(n)||$(n,!0),$(u,!1),$(l,void 0),d()(void 0);const v=m(void 0);$(p,v),lr(g().id,void 0,s.QuestionTypes.ANNOTATION,v)}var cz=te('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),dz=te('<span class="text-destructive ml-1">*</span>'),fz=te('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),mz=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>'),pz=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>'),gz=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>'),vz=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 hz(i,n){Ye(n,!1);const u=ee();let l=_(n,"question",8),d=_(n,"value",8,void 0),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let b=ee(!1),h=ee(void 0),k=ee(p()),y=ee(!1);xn(()=>{const F=vo(Fr).questions.find(P=>P.questionId===l().id);if(F?.answer&&"annotation"in F.answer){const P=F.answer.annotation;console.log("Found annotation data in store on mount for question:",l().id,P),$(h,P),$(b,!0),typeof P=="object"&&P!==null&&m()(P)}setTimeout(()=>{const P=c(h),S=I(P);$(k,S),S&&$i(l().id,S)},0)});function I(F){let P="";if(typeof F=="string"?P=F:F&&typeof F=="object"&&(P="has_annotation_data"),l().required&&(!P||P.trim()===""))return l().errorMessage??"This field is required"}fe(()=>z(g()),()=>{$(u,g()==="dark")}),fe(()=>(z(d()),z(m())),()=>{if(d()!==void 0){if(console.log("props.value changed:",d()),typeof d()=="string"){const F=d().trim()!=="";$(b,F),$(h,d())}else if(typeof d()=="object"&&d()!==null&&"annotation"in d()){const F=d().annotation;console.log("Extracted annotation from props.value:",F),$(b,!0),$(h,F),m()(F)}}else $(h,void 0),$(b,!1)}),fe(()=>z(p()),()=>{p()!==void 0&&$(k,p())}),sr(),Ht();var x=vz(),O=L(x),j=L(O);{var Y=F=>{var P=cz(),S=L(P);M(P),Se(()=>je(S,`${v()??""}.`)),T(F,P)};ae(j,F=>{v()!==void 0&&F(Y)})}var ne=me(j,2),R=L(ne),V=L(R),J=me(V);{var A=F=>{var P=dz();T(F,P)};ae(J,F=>{z(l()),C(()=>l().required)&&F(A)})}M(R);var re=me(R,2);{var oe=F=>{var P=fz(),S=L(P,!0);M(P),Se(()=>je(S,(z(l()),C(()=>l().description)))),T(F,P)};ae(re,F=>{z(l()),C(()=>l().description)&&F(oe)})}M(ne),M(O);var we=me(O,2);{var Ie=F=>{var P=mz(),S=me(L(P),2),D=L(S,!0);M(S),M(P),Se(()=>je(D,c(k))),T(F,P)};ae(we,F=>{c(k)&&c(y)&&F(Ie)})}var ke=me(we,2),xe=L(ke);{var Q=F=>{var P=pz(),S=L(P),D=L(S),q=L(D);Ah(q,{size:24,class:"text-muted-foreground group-hover:text-primary transition-colors"}),M(D);var le=me(D,2),$e=L(le),de=L($e,!0);M($e),yr(2),M(le),M(S),M(P),Se(()=>je(de,(z(l()),C(()=>l().noAnnotationText??"No Annotation")))),T(F,P)};ae(xe,F=>{c(b)||F(Q)})}var G=me(xe,2);{var B=F=>{var P=gz(),S=L(P),D=L(S),q=L(D),le=L(q);Ah(le,{size:20,class:"text-primary"}),M(q);var $e=me(q,2),de=L($e),_e=L(de,!0);M(de),yr(2),M($e),M(D);var Ee=me(D,2);Ee.__click=[lz,y,b,h,m,I,k,l];var ue=L(Ee);Zh(ue,{size:16}),M(Ee),M(S),M(P),Se(()=>je(_e,(z(l()),C(()=>l().annotationText??"Annotation")))),T(F,P)};ae(G,F=>{c(b)&&F(B)})}M(ke),M(x),Se(()=>je(V,`${z(l()),C(()=>l().title)??""} `)),T(i,x),Ke()}yl(["click"]);var bz=te('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),yz=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 $z(i,n){Ye(n,!1);const u=ee(),l=ee();let d=_(n,"welcomeScreenProperties",8);_(n,"onStart",8,void 0);let m=_(n,"currentMode",8,void 0),p=_(n,"currentLanguage",8,void 0);_(n,"themeSettings",8,void 0),fe(()=>z(m()),()=>{$(u,m()==="dark")}),fe(()=>(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"})}),sr(),Ht();var g=yz(),v=L(g),b=L(v,!0);M(v);var h=me(v,2);{var k=y=>{var I=bz(),x=L(I,!0);M(I),Se(()=>je(x,(c(l),C(()=>c(l).description)))),T(y,I)};ae(h,y=>{c(l),C(()=>c(l).description)&&y(k)})}M(g),Se(()=>je(b,(c(l),C(()=>c(l).title)))),T(i,g),Ke()}var _z=te('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),wz=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 kz(i,n){Ye(n,!1);const u=ee(),l=ee(),d=ee(),m=ee(),p=ee();let g=_(n,"endScreenProperties",8),v=_(n,"onExit",8,void 0),b=_(n,"currentMode",8,void 0),h=_(n,"currentLanguage",8,void 0);_(n,"themeSettings",8,void 0);let k=_(n,"isScreenVisible",8,void 0);console.log("isScreenVisible in end-screen :",k()===!0);let y=ee(null);ja(()=>{c(y)!==null&&(clearTimeout(c(y)),console.log("Cleared auto-dismiss timer on destroy"))}),fe(()=>z(b()),()=>{$(u,b()==="dark")}),fe(()=>(z(g()),z(h())),()=>{$(l,g().translations&&h()&&g().translations[h()]?g().translations[h()]:g().endFields??{title:"Thank you for participating!",message:"Your feedback is important to us.",buttonLabel:"Exit",dismissBehavior:"close",fadeDuration:300})}),fe(()=>z(k()),()=>{$(d,k()===!0)}),fe(()=>z(g()),()=>{$(m,g().endFields?.dismissBehavior)}),fe(()=>z(g()),()=>{$(p,g().endFields?.fadeDuration||0)}),fe(()=>(c(y),c(d),c(m),z(v()),c(p)),()=>{c(y)!==null&&(clearTimeout(c(y)),$(y,null),console.log("Cleared auto-dismiss timer")),c(d)&&c(m)==="fade"&&typeof v()=="function"&&c(p)>0?(console.log(`Setting up auto-dismiss timer for ${c(p)} seconds as user has reached end-screen with ${c(m)} behavior`),$(y,setTimeout(()=>{console.log("Auto-dismissing end screen"),v()?.()},c(p)*1e3))):console.log("Not setting up auto-dismiss timer - conditions not met:",{isScreenVisible:c(d),dismissBehavior:c(m),hasOnExit:typeof v()=="function",fadeDuration:c(p)})}),sr(),Ht();var I=wz(),x=L(I),O=L(x,!0);M(x);var j=me(x,2);{var Y=ne=>{var R=_z(),V=L(R,!0);M(R),Se(()=>je(V,(c(l),C(()=>c(l).message)))),T(ne,R)};ae(j,ne=>{c(l),C(()=>c(l).message)&&ne(Y)})}M(I),Se(()=>je(O,(c(l),C(()=>c(l).title)))),T(i,I),Ke()}var xz=te("<h2> </h2>"),Sz=te('<div class="question-wrapper"><div class="question-container"><!></div></div>'),Iz=te("<!> <!>",1),zz=te('<div id="section-container"><!> <!> <!></div>');function Nz(i,n){Ye(n,!1);const u=ee(),l=ee();let d=_(n,"questions",8),m=_(n,"sections",8),p=_(n,"formData",8),g=_(n,"errors",8),v=_(n,"onChange",8),b=_(n,"currentMode",8,void 0),h=_(n,"welcomeScreenProperties",8),k=_(n,"otherConfigurationProperties",8),y=_(n,"currentSectionIndex",8),I=_(n,"endScreenProperties",8,void 0),x=_(n,"currentLanguage",8,void 0),O=_(n,"themeSettings",8),j=_(n,"onClose",8,void 0),Y=_(n,"isScreenVisible",8,void 0),ne=_(n,"apiKey",8,void 0),R=_(n,"hostUrl",8,void 0),V=_(n,"identifier",8,void 0),J=_(n,"feedbackConfigurationId",8,void 0);function A(B){return c(u).get(B)??-1}function re(B){switch(B){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(B){return Array.isArray(B)?B:typeof B=="object"&&B!==null?Object.values(B).filter(F=>F!==void 0):typeof B=="string"?[B]:[]}function we(B){return typeof B=="number"?B:typeof B=="string"?Number(B):0}function Ie(B){return typeof B=="string"?B:String(typeof B=="object"&&B!==null?Object.values(B)[0]||"":B||"")}function ke(B,F){if(B==null){const P=re(F);return P!==void 0?P:B}switch(F){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return oe(B);case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return we(B);case s.QuestionTypes.SINGLE_CHOICE:return Ie(B);default:return B}}fe(()=>(z(d()),Rh),()=>{d()&&Object.keys(d()).length>0&&Rh(d())}),fe(()=>z(m()),()=>{$(u,(()=>{const B=new Map;let F=0;return m().forEach(P=>{P.id!=="welcome_screen"&&P.id!=="thankyou_screen"&&P.questionIds.forEach(S=>{B.set(S,F++)})}),B})())}),fe(()=>(z(m()),z(y())),()=>{$(l,m()[y()])}),fe(()=>(z(y()),c(l)),()=>{console.log("FormRenderer: currentSectionIndex =",y(),"section =",c(l)?.id)}),sr(),Ht();var xe=Ze(),Q=Ne(xe);{var G=B=>{var F=Ze(),P=Ne(F);dr(P,1,()=>(z(m()),z(y()),C(()=>[m()[y()]])),S=>S.id,(S,D)=>{var q=zz(),le=L(q);{var $e=ie=>{$z(ie,{get welcomeScreenProperties(){return h()},get currentMode(){return b()},get currentLanguage(){return x()},get themeSettings(){return O()}})};ae(le,ie=>{c(D),C(()=>c(D).id==="welcome_screen")&&ie($e)})}var de=me(le,2);{var _e=ie=>{{let Pe=Ae(()=>I()?I():{});kz(ie,{get endScreenProperties(){return c(Pe)},get onExit(){return j()},get currentMode(){return b()},get currentLanguage(){return x()},get themeSettings(){return O()},get isScreenVisible(){return Y()}})}};ae(de,ie=>{c(D),C(()=>c(D).id==="thankyou_screen")&&ie(_e)})}var Ee=me(de,2);{var ue=ie=>{var Pe=Iz(),Ue=Ne(Pe);{var qe=Ge=>{var ot=xz(),Ce=L(ot,!0);M(ot),Se(()=>{sn(ot,1,`section-title ${b()==="dark"?"dark-mode":""}`),je(Ce,(c(D),C(()=>c(D).title)))}),T(Ge,ot)};ae(Ue,Ge=>{z(k()),C(()=>k().isEnabled&&k().otherFields.pageTitle)&&Ge(qe)})}var We=me(Ue,2);dr(We,1,()=>(c(D),C(()=>c(D).questionIds)),_r,(Ge,ot)=>{const Ce=Ae(()=>(z(qh),c(ot),C(()=>qh(c(ot)))));var yt=Ze(),kt=Ne(yt);{var Ot=At=>{const Lt=Ae(()=>(z(k()),C(()=>k()?.isEnabled&&k().otherFields.questionNumber))),Et=Ae(()=>(z(c(Ce)),C(()=>A(c(Ce).id)))),st=Ae(()=>(z(c(Ce)),z(p()),z(v()),z(g()),z(b()),z(x()),z(O()),z(c(Lt)),z(c(Et)),C(()=>({question:c(Ce),value:ke(p()[c(Ce).id],c(Ce).type),onChange:be=>v()(c(Ce).id,be,c(Ce).type),error:g()[c(Ce).id],currentMode:b(),currentLanguage:x(),themeSettings:O(),questionNumber:c(Lt)?c(Et)+1:void 0}))));var Bt=Sz(),Yr=L(Bt),W=L(Yr);{var N=be=>{iS(be,jt(()=>c(st),{get question(){return c(Ce)}}))},X=be=>{var Le=Ze(),Fe=Ne(Le);{var $t=nr=>{NS(nr,jt(()=>c(st),{get question(){return c(Ce)}}))},mr=nr=>{var zn=Ze(),wo=Ne(zn);{var ko=He=>{qS(He,jt(()=>c(st),{get question(){return c(Ce)},get apiKey(){return ne()},get hostUrl(){return R()},get identifier(){return V()},get feedbackConfigurationId(){return J()},get otherConfigurationProperties(){return k()}}))},xo=He=>{var ft=Ze(),Pt=Ne(ft);{var _t=pr=>{nI(pr,jt(()=>c(st),{get question(){return c(Ce)},get apiKey(){return ne()},get hostUrl(){return R()},get identifier(){return V()},get feedbackConfigurationId(){return J()},get otherConfigurationProperties(){return k()}}))},kr=pr=>{var Xt=Ze(),St=Ne(Xt);{var dn=Ii=>{P1(Ii,jt(()=>c(st),{get question(){return c(Ce)}}))},Vz=Ii=>{var Tb=Ze(),Jz=Ne(Tb);{var Bz=zi=>{F1(zi,jt(()=>c(st),{get question(){return c(Ce)}}))},Yz=zi=>{var Ob=Ze(),Kz=Ne(Ob);{var Hz=Ni=>{uz(Ni,jt(()=>c(st),{get question(){return c(Ce)}}))},Xz=Ni=>{var Eb=Ze(),eN=Ne(Eb);{var tN=nc=>{hz(nc,jt(()=>c(st),{get question(){return c(Ce)}}))};ae(eN,nc=>{z(c(Ce)),z(s.QuestionTypes),C(()=>c(Ce).type===s.QuestionTypes.ANNOTATION)&&nc(tN)},!0)}T(Ni,Eb)};ae(Kz,Ni=>{z(c(Ce)),z(s.QuestionTypes),C(()=>c(Ce).type===s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE)?Ni(Hz):Ni(Xz,!1)},!0)}T(zi,Ob)};ae(Jz,zi=>{z(c(Ce)),z(s.QuestionTypes),C(()=>c(Ce).type===s.QuestionTypes.RATING)?zi(Bz):zi(Yz,!1)},!0)}T(Ii,Tb)};ae(St,Ii=>{z(c(Ce)),z(s.QuestionTypes),C(()=>c(Ce).type===s.QuestionTypes.SINGLE_CHOICE)?Ii(dn):Ii(Vz,!1)},!0)}T(pr,Xt)};ae(Pt,pr=>{z(c(Ce)),z(s.QuestionTypes),C(()=>c(Ce).type===s.QuestionTypes.SHORT_ANSWER)?pr(_t):pr(kr,!1)},!0)}T(He,ft)};ae(wo,He=>{z(c(Ce)),z(s.QuestionTypes),C(()=>c(Ce).type===s.QuestionTypes.LONG_TEXT)?He(ko):He(xo,!1)},!0)}T(nr,zn)};ae(Fe,nr=>{z(c(Ce)),z(s.QuestionTypes),C(()=>c(Ce).type===s.QuestionTypes.NESTED_SELECTION)?nr($t):nr(mr,!1)},!0)}T(be,Le)};ae(W,be=>{z(c(Ce)),z(s.QuestionTypes),C(()=>c(Ce).type===s.QuestionTypes.NPS)?be(N):be(X,!1)})}M(Yr),M(Bt),T(At,Bt)};ae(kt,At=>{c(Ce)&&At(Ot)})}T(Ge,yt)}),T(ie,Pe)};ae(Ee,ie=>{c(D),C(()=>c(D).id!=="welcome_screen"&&c(D).id!=="thankyou_screen")&&ie(ue)})}M(q),T(S,q)}),T(B,F)};ae(Q,B=>{z(y()),z(m()),C(()=>y()<m().length&&m().length>0)&&B(G)})}T(i,xe),Ke()}var jz=te('<div class="flex justify-center"><!></div>'),Tz=te('<div class="flex justify-center"><!></div>'),Oz=te('<div class="flex-1"></div>'),Ez=wn('<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=te('<div class="flex items-center justify-between gap-3"><!> <!></div>'),Cz=te('<div class="w-full py-6 px-4 bg-primary-foreground"><!></div>');function Uz(i,n){Ye(n,!1);const u=ee(),l=ee(),d=ee(),m=ee(),p=ee(),g=ee();let v=_(n,"isWelcomeScreen",8),b=_(n,"isThankYouScreen",8),h=_(n,"isFirstSection",8),k=_(n,"isFirstPageAfterWelcome",8,!1),y=_(n,"isLastSection",8),I=_(n,"welcomeScreenProperties",8),x=_(n,"endScreenProperties",8,void 0),O=_(n,"otherConfigurationProperties",8),j=_(n,"currentMode",8),Y=_(n,"currentLanguage",8),ne=_(n,"handlePrevious",8),R=_(n,"handleNext",8),V=_(n,"handleSubmit",8),J=_(n,"onClose",8,void 0);_(n,"themeSettings",8);let A=_(n,"nextButtonDisabled",8,!1),re=_(n,"submitButtonDisabled",8,!1),oe=_(n,"isSinglePageSurvey",8,!1),we=ee(!1);const Ie=()=>{console.log("Exit button clicked"),J()&&J()()},ke=()=>{if(!b()&&!x()?.isEnabled){$(we,!0),window.setTimeout(()=>{$(we,!1),J()&&J()()},3e3);try{V()()}catch(S){console.error("Error during form submission:",S)}}else V()()},xe=()=>{console.log("handlePreviousClick called"),i0(),ne()()},Q=()=>{console.log("handleNextClick called"),R()()};fe(()=>(z(O()),z(Y())),()=>{$(u,(()=>{const S={previousButtonLabel:"Previous",nextButtonLabel:"Next",submitButtonLabel:"Submit"};return O().isEnabled?O().translations&&Y()&&O().translations[Y()]?O().translations[Y()]:O().otherFields??S:S})())}),fe(()=>(z(I()),z(Y())),()=>{$(l,I().translations&&Y()&&I().translations[Y()]?I().translations[Y()]:I().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),fe(()=>(z(x()),z(Y())),()=>{$(d,x()?.translations&&Y()&&x().translations[Y()]?x().translations[Y()]:x()?.endFields??{buttonLabel:"Exit",dismissBehavior:"close"})}),fe(()=>z(j()),()=>{$(m,j()==="dark")}),fe(()=>z(A()),()=>{$(p,Nl()||A())}),fe(()=>z(re()),()=>{$(g,Nl()||re())}),fe(()=>(z(A()),z(re()),c(p),c(g)),()=>{console.log("NavigationButtons disabled state:",{nextButtonDisabled:A(),submitButtonDisabled:re(),hasValidationErrors:Nl(),isNextDisabled:c(p),isSubmitDisabled:c(g)})}),fe(()=>(z(v()),z(b()),z(y())),()=>{console.log("NavigationButtons: isWelcomeScreen =",v(),"isThankYouScreen =",b(),"isLastSection =",y())}),sr(),Ht();var G=Cz(),B=L(G);{var F=S=>{var D=jz(),q=L(D);qt(q,{onclick:Q,size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(le,$e)=>{yr();var de=kn();Se(()=>je(de,(c(l),C(()=>c(l).buttonLabel)))),T(le,de)},$$slots:{default:!0}}),M(D),T(S,D)},P=S=>{var D=Ze(),q=Ne(D);{var le=de=>{var _e=Tz(),Ee=L(_e);qt(Ee,{onclick:()=>Ie(),size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(ue,ie)=>{yr();var Pe=kn();Se(()=>je(Pe,(c(d),C(()=>c(d).buttonLabel)))),T(ue,Pe)},$$slots:{default:!0}}),M(_e),T(de,_e)},$e=de=>{var _e=Pz(),Ee=L(_e);{var ue=We=>{{let Ge=Ae(()=>h()||k());qt(We,{onclick:()=>xe(),get disabled(){return c(Ge)},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:(ot,Ce)=>{yr();var yt=kn();Se(()=>je(yt,(c(u),C(()=>c(u).previousButtonLabel)))),T(ot,yt)},$$slots:{default:!0}})}},ie=We=>{var Ge=Oz();T(We,Ge)};ae(Ee,We=>{oe()?We(ie,!1):We(ue)})}var Pe=me(Ee,2);{var Ue=We=>{{let Ge=Ae(()=>c(g)||c(we)),ot=Ae(()=>oe()?"mx-auto":"");qt(We,{onclick:()=>ke(),get disabled(){return c(Ge)},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(ot)??""}`},children:(Ce,yt)=>{var kt=Ze(),Ot=Ne(kt);{var At=Et=>{var st=Ez();T(Et,st)},Lt=Et=>{var st=kn();Se(()=>je(st,(c(u),C(()=>c(u).submitButtonLabel)))),T(Et,st)};ae(Ot,Et=>{c(we)?Et(At):Et(Lt,!1)})}T(Ce,kt)},$$slots:{default:!0}})}},qe=We=>{var Ge=Ze(),ot=Ne(Ge);{var Ce=yt=>{qt(yt,{onclick:Q,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:(kt,Ot)=>{yr();var At=kn();Se(()=>je(At,(c(u),C(()=>c(u).nextButtonLabel)))),T(kt,At)},$$slots:{default:!0}})};ae(ot,yt=>{oe()||yt(Ce)},!0)}T(We,Ge)};ae(Pe,We=>{y()?We(Ue):We(qe,!1)})}M(_e),T(de,_e)};ae(q,de=>{b()?de(le):de($e,!1)},!0)}T(S,D)};ae(B,S=>{v()?S(F):S(P,!1)})}M(G),T(i,G),Ke()}var Dz=te('<div data-slot="progress-indicator" class="bg-primary h-full w-full flex-1 transition-all"></div>');function Mz(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"max",3,100),d=Mt(n,["$$slots","$$events","$$legacy","ref","class","max","value"]);var m=Ze(),p=Ne(m);{let g=lt(()=>wr("bg-primary/20 relative w-full overflow-hidden rounded-full",n.class));Ta(p,()=>f1,(v,b)=>{b(v,jt({"data-slot":"progress",get class(){return c(g)},get value(){return n.value},get max(){return l()}},()=>d,{get ref(){return u()},set ref(h){u(h)},children:(h,k)=>{var y=Dz();Se(()=>mo(y,`transform: translateX(-${100-100*(n.value??0)/(l()??1)}%)`)),T(h,y)},$$slots:{default:!0}}))})}T(i,m),Ke()}var Az=te('<div class="flex-shrink-0" style="height: 3px; min-height: 3px; max-height: 3px;"><!></div>'),Lz=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>'),Zz=te('<div id="encatch-form-id"><!> <div class="form-content-container custom-scrollbar bg-primary-foreground"><!></div> <!> <!></div>');function rc(i,n){Ye(n,!1);const u=()=>Gx(Fr,"$formResponses",l),[l,d]=Vx(),m=ee(),p=ee(),g=ee(),v=ee(),b=ee(),h=ee(),k=ee(),y=ee(),I=ee(),x=ee();let O=_(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),j=_(n,"currentMode",12,"light"),Y=_(n,"currentLanguage",28,()=>({value:"en",label:"en"})),ne=_(n,"questions",28,()=>({})),R=_(n,"questionLanguages",28,()=>[]),V=_(n,"otherConfigurationProperties",12,null),J=_(n,"welcomeScreenProperties",12,null),A=_(n,"endScreenProperties",12,null),re=_(n,"translations",28,()=>({})),oe=_(n,"sections",24,()=>[]),we=_(n,"themeSettings",12,null),Ie=_(n,"onClose",12,void 0),ke=_(n,"onSectionChange",8,void 0),xe=_(n,"apiKey",8,void 0),Q=_(n,"hostUrl",8,void 0),G=_(n,"feedbackConfigId",8,void 0),B=_(n,"identifier",8,void 0),F=ee(0),P=ee(0),S=ee(!1),D=ee({}),q=ee((()=>{let W=[...oe()||[]];const N=J()?.isEnabled??!0,X=A()?.isEnabled??!0;return N&&W.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),X&&W.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),W})()),le=ee(!1);const $e=()=>{const W=window;return typeof window<"u"&&W.encatchAnnotate!==void 0&&typeof W.encatchAnnotate=="object"&&W.encatchAnnotate!==null&&typeof W.encatchAnnotate.getAnnotation=="function"},de=()=>{if($e()){const W=window;console.log("Encatch Annotate plugin is available",$e());const N=W.encatchAnnotate?.getAnnotation?.();console.log("Annotation Data from App.tsx:",N),N?(console.log("Found annotation data in App.tsx:",N),Object.entries(ne()).forEach(([X,be])=>{be.type===s.QuestionTypes.ANNOTATION&&(console.log(`Updating annotation question ${X} with data:`,N),lr(X,N,s.QuestionTypes.ANNOTATION))})):(console.log("No annotation data found in App.tsx"),console.log("Annotation Data:",N))}},_e=(W,N,X,be,Le="")=>W.map(Fe=>{let $t=Le?`${Le}.children.${Fe.id}.label`:`option.${Fe.id}.label`,mr=be[N]?.[X]?.[$t],nr={...Fe};return mr&&(nr.label=mr),Fe.children&&Fe.children.length>0&&(nr.children=_e(Fe.children,N,X,be,Le?`${Le}.children.${Fe.id}`:`option.${Fe.id}`)),nr}),Ee=W=>{const N=re()||{},X=Object.fromEntries(Object.entries(ne()).map(([be,Le])=>{const Fe=N[be]?.[W]||{};let $t={...Le};return Fe.title&&($t.title=Fe.title),Fe.description&&($t.description=Fe.description),Fe.errorMessage&&($t.errorMessage=Fe.errorMessage),Fe.placeholder&&($t.placeholder=Fe.placeholder),Fe.minLabel&&($t.minLabel=Fe.minLabel),Fe.maxLabel&&($t.maxLabel=Fe.maxLabel),Fe.annotationText&&($t.annotationText=Fe.annotationText),Fe.noAnnotationText&&($t.noAnnotationText=Fe.noAnnotationText),Le.options&&Array.isArray(Le.options)&&($t.options=_e(Le.options,be,W,N)),[be,$t]}));ne(X)},ue=()=>c(q).reduce((W,N)=>W+N.questionIds.length,0),ie=()=>u().questions.filter(W=>{try{if(W.type===s.QuestionTypes.SHORT_ANSWER){if(!W.answer||typeof W.answer!="object")return!1;const N=W.answer.shortAnswer;if(N==null||typeof N=="string"&&N.trim()==="")return!1}if(W.type===s.QuestionTypes.LONG_TEXT){if(!W.answer||typeof W.answer!="object")return!1;const N=W.answer.longText;if(N==null||typeof N=="string"&&N.trim()==="")return!1}return!0}catch(N){return console.error("Error checking answer:",W.questionId,N),!0}}).length,Pe=()=>(console.log("answeredQuestions",ie(),"totalQuestions",ue()),ie()/ue()*100),Ue=(W,N,X)=>{let be=N;Array.isArray(N)&&(be=[...N]),lr(W,be,X),$(D,{...c(D),[W]:""})},qe=()=>{if(c(P)>0){const W=c(P)-1;$(P,W),ke()?.(W)}},We=()=>{if(console.log("=== handleNext called ==="),console.log("currentSectionIndex BEFORE:",c(P)),console.log("internalSections.length:",c(q).length),console.log("internalSections:",c(q)),c(P)<c(q).length-1){const W=c(P)+1;console.log("Will set currentSectionIndex to:",W),$(P,W),console.log("currentSectionIndex AFTER assignment:",c(P)),ke()?.(W)}else console.log("❌ Cannot navigate next: already at last section")},Ge=()=>{console.log("Form submitted:",u().questions);const W=c(q).findIndex(N=>N.id==="thankyou_screen");W!==-1&&($(P,W),ke()?.(W)),$(S,!0),window.encatch?._internal?.submitFeedback?(console.log("$formResponses.questions:",JSON.stringify(u().questions,null,2)),console.log("First question answer:",u().questions[0]?.answer),window.encatch._internal.submitFeedback({response:{questions:u().questions},action:"S",feedbackConfigurationId:G()||"",feedbackIdentifier:B()||"",duration:0})):console.error("window.encatch._internal.submitFeedback is not available")},ot=()=>{Ie()?.()},Ce="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik00MDQuOCwyMTAuOEMzMDkuMSwyNDEuOSwyMzQsMzE3LjYsMjAzLjIsNDEzLjRjLTYxLjMsMTkwLjEsNDcuOSwzNjguNSwyMTIuNSw0MjBjNS43LDEuOCwxMS42LTIuNSwxMS42LTguNQoJCXYtNjkuN2MwLTMuNi0yLjItNi44LTUuNi04LjJDMzMyLjQsNzEwLjcsMjY5LjMsNjIzLDI2OS4zLDUyMC44YzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45djQ3LjJjMCwxMS4xLDMuOSwyMC42LDE1LDIwLjZsNDUuNi0wLjNoNDEuN3YtMC4yaDM0LjEKCQljNC4yLDAsNy42LTMuNCw3LjYtNy42di0zMy44Qzg0MS4xLDMwNC45LDYzMS40LDEzNy4yLDQwNC44LDIxMC44eiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTI2NSw3MTYuOGwtMTUuNCwxMTYuNmMtMC40LDIuOCwyLjUsNC45LDUsMy43TDM2OCw3ODUuN2MyLjYtMS4yLDIuOC00LjcsMC41LTYuMmwtOTcuOS02NS4yCgkJQzI2OC40LDcxMi44LDI2NS40LDcxNC4xLDI2NSw3MTYuOHoiLz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik02NjYuMyw1NjMuM2gtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY3MC45LDU2MS4yLDY2OC44LDU2My4zLDY2Ni4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTQ0NC4yLDU2My4zaC03Ni41Yy0zLjEsMC01LjUtMi41LTUuNS01LjV2LTc2LjVjMC0zLjEsMi41LTUuNSw1LjUtNS41aDc2LjVjMy4xLDAsNS41LDIuNSw1LjUsNS41djc2LjUKCQlDNDQ5LjcsNTYwLjgsNDQ3LjIsNTYzLjMsNDQ0LjIsNTYzLjN6Ii8+Cgk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNNTU1LjMsNTYzLjNoLTc3LjZjLTIuOCwwLTUtMi4zLTUtNXYtNzcuNmMwLTIuOCwyLjMtNSw1LTVoNzcuNmMyLjgsMCw1LDIuMyw1LDV2NzcuNgoJCUM1NjAuMyw1NjEsNTU4LDU2My4zLDU1NS4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTY4My45LDI1NC45Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZjNjIuNS0xMDEuNiwxODcuNy0xNDEuNCwyOTUuMS0xMDAuMSIvPgo8L2c+Cjwvc3ZnPgo=",yt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zODEuOSwxOTkuNmMtOTUuNywzMS4xLTE3MC44LDEwNi44LTIwMS43LDIwMi42Yy02MS4zLDE5MC4xLDQ3LjksMzY4LjUsMjEyLjUsNDIwYzUuNywxLjgsMTEuNi0yLjUsMTEuNi04LjUKCQlWNzQ0YzAtMy42LTIuMi02LjgtNS42LTguMmMtODkuMy0zNi4zLTE1Mi40LTEyNC4xLTE1Mi40LTIyNi4yYzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45VjUzMWMwLDExLjEsMy45LDIwLjYsMTUsMjAuNmw0NS42LTAuM2g0MS43di0wLjJoMzQuMQoJCWM0LjIsMCw3LjYtMy40LDcuNi03LjZ2LTMzLjhDODE4LjIsMjkzLjcsNjA4LjUsMTI2LDM4MS45LDE5OS42eiIvPgoJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI0Mi4xLDcwNS42bC0xNS40LDExNi42Yy0wLjQsMi44LDIuNSw0LjksNSwzLjdMMzQ1LDc3NC41YzIuNi0xLjIsMi44LTQuNywwLjUtNi4yTDI0Ny42LDcwMwoJCUMyNDUuNCw3MDEuNiwyNDIuNCw3MDIuOSwyNDIuMSw3MDUuNnoiLz4KCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02NDMuNCw1NTIuMWgtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY0Ny45LDU1MCw2NDUuOSw1NTIuMSw2NDMuNCw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik00MjEuMiw1NTIuMWgtNzYuNWMtMy4xLDAtNS41LTIuNS01LjUtNS41VjQ3MGMwLTMuMSwyLjUtNS41LDUuNS01LjVoNzYuNWMzLjEsMCw1LjUsMi41LDUuNSw1LjV2NzYuNQoJCUM0MjYuOCw1NDkuNiw0MjQuMyw1NTIuMSw0MjEuMiw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDQiIGQ9Ik01MzIuMyw1NTIuMWgtNzcuNmMtMi44LDAtNS0yLjMtNS01di03Ny42YzAtMi44LDIuMy01LDUtNWg3Ny42YzIuOCwwLDUsMi4zLDUsNVY1NDcKCQlDNTM3LjQsNTQ5LjgsNTM1LjEsNTUyLjEsNTMyLjMsNTUyLjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjYxLDI0My42Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZDMzQ1LjIsMjc5LDQ3MC40LDIzOS4yLDU3Ny45LDI4MC41Ii8+CjwvZz4KPC9zdmc+Cg==";xn(()=>{de(),window.updateEncatchForm=W=>{if(console.log("updateEncatchForm received props:",W),W.theme&&O(W.theme),W.currentMode&&j(W.currentMode),W.currentLanguage&&(console.log("currentLanguage at App.tsx",W.currentLanguage),Y(W.currentLanguage),Y()?.value&&Ee(Y().value)),W.questions&&ne(W.questions),W.questionLanguages&&R(W.questionLanguages),W.otherConfigurationProperties&&V(W.otherConfigurationProperties),W.welcomeScreenProperties&&J(W.welcomeScreenProperties),W.endScreenProperties){const N=A()?.isEnabled,X=W.endScreenProperties.isEnabled;if(N&&!X){const be=c(q).findIndex(Le=>Le.id==="thankyou_screen");be===c(P)&&$(P,Math.max(0,be-1))}A(W.endScreenProperties)}if(W.sections){const N=[...W.sections],X=W.welcomeScreenProperties?.isEnabled??J()?.isEnabled??!0,be=W.endScreenProperties?.isEnabled??A()?.isEnabled??!0;X&&!N.some(Le=>Le.id==="welcome_screen")&&N.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),be&&!N.some(Le=>Le.id==="thankyou_screen")&&N.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),$(q,N),X&&c(P)===0&&$(P,0)}W.translations&&(re(W.translations),Y()?.value&&Ee(Y().value)),W.themeSettings&&we(W.themeSettings),W.onClose&&Ie(W.onClose)}}),fe(()=>(z(we()),z(j())),()=>{if(we()&&we().themes&&j()&&we().themes[j()]){const W=document.documentElement,N=we().themes[j()];N&&(W.style.setProperty("--brand-color",N.brandColor||"#2563eb"),W.style.setProperty("--text-color",N.textColor||"#333"),W.style.setProperty("--background-color",N.backgroundColor||"#ffffff"))}}),fe(()=>z(j()),()=>{$(m,j()==="dark"?Ce:yt)}),fe(()=>(z(Y()),z(J()),z(A()),z(V())),()=>{if(Y()&&Y().value){const W=Y().value;Ee(W),J()?.translations?.[W]&&J({...J(),welcomeFields:{...J().welcomeFields,...J().translations[W]}}),A()?.translations?.[W]&&A({...A(),endFields:{...A().endFields,...A().translations[W]}}),V()?.translations?.[W]&&V({...V(),otherFields:{...V().otherFields,...V().translations[W]}})}}),fe(()=>(z(oe()),z(J()),z(A()),c(P),c(le),c(S)),()=>{const W=[...oe()];let N=!1;const X=W.some($t=>$t.id==="welcome_screen"),be=W.some($t=>$t.id==="thankyou_screen"),Le=J()?.isEnabled??!0,Fe=A()?.isEnabled??!0;if(Le&&!X)W.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),N=!0;else if(!Le&&X){const $t=W.filter(mr=>mr.id!=="welcome_screen");$t.length!==W.length&&($(q,$t),N=!0)}if(Fe&&!be)W.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),N=!0;else if(!Fe&&be){const $t=W.filter(mr=>mr.id!=="thankyou_screen");if($t.length!==W.length){const mr=W.findIndex(nr=>nr.id==="thankyou_screen");(c(P)===mr||c(P)>=$t.length)&&$(P,Math.max(0,$t.length-1)),$(q,$t),N=!0}}N&&(console.log("REACTIVE BLOCK: sectionUpdated is true"),$(q,W),c(le)||(console.log("REACTIVE BLOCK: Initial setup, setting currentSectionIndex to 0"),!c(S)&&!(!Fe&&be)&&$(P,0),$(le,!0)))}),fe(()=>(z(A()),c(P),c(q)),()=>{$(p,A()?.isEnabled&&c(P)===c(q).length-1)}),fe(()=>c(q),()=>{$(g,c(q).filter(W=>W.id!=="welcome_screen"&&W.id!=="thankyou_screen").length===1)}),fe(()=>(c(P),c(q)),()=>{$(v,c(P)===0&&c(q)[0]?.id==="welcome_screen")}),fe(()=>(c(q),c(P)),()=>{$(b,c(q)[c(P)]?.id==="thankyou_screen")}),fe(()=>c(P),()=>{$(h,c(P)===0)}),fe(()=>(c(q),c(P)),()=>{$(k,c(q)[0]?.id==="welcome_screen"&&c(P)===1)}),fe(()=>(c(q),c(P)),()=>{$(y,(()=>{const W=c(q).findIndex(N=>N.id==="thankyou_screen");return W!==-1?c(P)===W-1:c(P)===c(q).length-1})())}),fe(()=>(c(q),c(P),c(v),c(b),u(),z(ne())),()=>{$(I,(()=>{const W=c(q)[c(P)];if(!W||c(v)||c(b))return!1;const N=W.questionIds||[],X=u().questions.reduce((be,Le)=>(be[Le.questionId]=Le,be),{});console.log("=== Validation Check ==="),console.log("Current section:",W.id,W.title),console.log("Question IDs in section:",N),console.log("All responses:",X),console.log("All form responses:",u().questions);for(const be of N){const Le=ne()[be],Fe=!!X[be];if(console.log(`Question ${be}:`,{title:Le?.title,required:Le?.required,hasResponse:Fe,response:X[be]}),Le?.required&&!Fe)return console.log(`❌ Required question not answered: ${be}`,Le?.title),!0}return console.log("✅ All required questions answered"),!1})())}),fe(()=>c(I),()=>{console.log("App.svelte: _hasUnansweredRequired =",c(I))}),fe(()=>(c(P),c(q)),()=>{console.log("🔄 REACTIVE: currentSectionIndex =",c(P)),c(P)>=0&&c(P)<c(q).length&&console.log("🔄 Current section:",c(q)[c(P)])}),fe(()=>(u(),s.QuestionTypes),()=>{$(x,u().questions.reduce((W,N)=>{if(N.answer)switch(N.type){case s.QuestionTypes.RATING:W[N.questionId]=N.answer.rating;break;case s.QuestionTypes.NPS:W[N.questionId]=N.answer.nps;break;case s.QuestionTypes.LONG_TEXT:W[N.questionId]=N.answer.longText;break;case s.QuestionTypes.SHORT_ANSWER:W[N.questionId]=N.answer.shortAnswer;break;case s.QuestionTypes.SINGLE_CHOICE:W[N.questionId]=N.answer.singleChoice;break;case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:W[N.questionId]=[...N.answer.multipleChoiceMultiple||[]];break;case s.QuestionTypes.NESTED_SELECTION:W[N.questionId]=[...N.answer.nestedSelection||[]];break;default:W[N.questionId]=N.answer}else W[N.questionId]=null;return W},{}))}),fe(()=>u(),()=>{const W=Pe();$(F,W),console.log("Form Responses Store Updated:",u()),console.log("Questions answered:",u().questions.length)}),fe(()=>z(ne()),()=>{ne()&&(console.log("Questions changed"),de())}),fe(()=>c(g),()=>{console.log("Is single page survey:",c(g))}),sr(),Ht();var kt=Zz(),Ot=L(kt);{var At=W=>{var N=Az(),X=L(N);Mz(X,{get value(){return c(F)},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"}),M(N),T(W,N)};ae(Ot,W=>{z(we()),c(v),c(b),C(()=>we()?.featureSettings?.progressBar&&!c(v)&&!c(b))&&W(At)})}var Lt=me(Ot,2),Et=L(Lt);{let W=Ae(()=>(z(Y()),C(()=>Y()?.value||"en"))),N=Ae(()=>(z(we()),C(()=>we()?.themes||null))),X=Ae(()=>c(p)===!0);Nz(Et,{get questions(){return ne()},get sections(){return c(q)},get formData(){return c(x)},get errors(){return c(D)},onChange:Ue,get currentMode(){return j()},get currentSectionIndex(){return c(P)},get otherConfigurationProperties(){return V()},get welcomeScreenProperties(){return J()},get endScreenProperties(){return A()},get currentLanguage(){return c(W)},get themeSettings(){return c(N)},onClose:ot,get isScreenVisible(){return c(X)},get apiKey(){return xe()},get feedbackConfigurationId(){return G()},get hostUrl(){return Q()},get identifier(){return B()}})}M(Lt);var st=me(Lt,2);{let W=Ae(()=>(z(Y()),C(()=>Y()?.value||"en"))),N=Ae(()=>(z(we()),C(()=>we()?.themes||null)));Uz(st,{get isWelcomeScreen(){return c(v)},get isThankYouScreen(){return c(b)},get isFirstSection(){return c(h)},get isFirstPageAfterWelcome(){return c(k)},get isLastSection(){return c(y)},get welcomeScreenProperties(){return J()},get endScreenProperties(){return A()},get otherConfigurationProperties(){return V()},get currentMode(){return j()},get currentLanguage(){return c(W)},handlePrevious:qe,handleNext:We,handleSubmit:Ge,onClose:ot,get themeSettings(){return c(N)},get nextButtonDisabled(){return c(I)},get submitButtonDisabled(){return c(I)},get isSinglePageSurvey(){return c(g)}})}var Bt=me(st,2);{var Yr=W=>{var N=Lz(),X=L(N);yr(2),M(N),Se(()=>ei(X,"src",c(m))),T(W,N)};ae(Bt,W=>{z(we()),C(()=>we()?.featureSettings?.showBranding)&&W(Yr)})}M(kt),Se(()=>sn(kt,1,`encatch-form ${j()==="dark"?"theme-dark dark":"theme-light"}`)),T(i,kt),Ke(),d()}var Rz=te('<div class="fixed inset-0 transition-opacity duration-300"></div>'),qz=te('<!> <div id="encatch-feedback-popup" class="rounded-xl shadow-2xl overflow-hidden"><!> <!></div>',1),Fz=te('<link rel="stylesheet" href="http://127.0.0.1:5500/encatch-typescript/packages/web-sdk/public/web-form-engine-core.css"/> <!>',1);function zb(i,n){Ye(n,!1);const u=ee(),l=ee();let d=_(n,"themeMode",8,"light"),m=_(n,"feedbackConfiguration",8,null),p=_(n,"apiKey",8,""),g=_(n,"hostUrl",8,"");_(n,"deviceInfo",8,null),_(n,"sessionId",8,""),_(n,"userInfo",8,null);let v=_(n,"language",8,"en"),b=_(n,"configurationData",8,null),h=_(n,"onClose",8,void 0),k=_(n,"trackPopupHeight",8,void 0),y=_(n,"feedbackConfigId",8,void 0),I=_(n,"identifier",8,void 0),x=ee(document.documentElement.clientWidth),O=ee(!1),j=ee(null),Y=!1,ne=null,R=ee(),V;const J=()=>{if(c(R)){const Q=c(R).querySelector("#section-container");if(Q){const G=window.innerHeight*.75,B=Q.clientHeight,F=84,P=60,S=Math.min(B+F+P,G);c(R).style.transition.includes("height")||Av(R,c(R).style.transition="height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"),Av(R,c(R).style.height=`${S}px`),Q.style.overflowY=B+F+P>G?"auto":"hidden"}}},A=()=>{$(x,document.documentElement.clientWidth)},re=()=>{a0(),$(O,!1),setTimeout(()=>{h()?.()},300)},oe=Q=>{const G={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(Q){case"top-left":return{...G,top:"12px",left:"12px",transform:"translate(0, 0)"};case"top-center":return{...G,top:"12px",left:"50%",transform:"translate(-50%, 0)"};case"top-right":return{...G,top:"12px",right:"12px",transform:"translate(0, 0)"};case"center-left":return{...G,top:"50%",left:"12px",transform:"translateY(-50%)"};case"center":return{...G,top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)"};case"center-right":return{...G,top:"50%",right:"12px",transform:"translateY(-50%)"};case"bottom-left":return{...G,bottom:"12px",left:"12px",transform:"translate(0, 0)"};case"bottom-center":return{...G,bottom:"12px",left:"50%",transform:"translate(-50%, 0)"};case"bottom-right":return{...G,bottom:"12px",right:"12px",transform:"translate(0, 0)"};case"bottom-full":return{...G,bottom:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"top-full":return{...G,top:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"full":return{...G,top:"0",left:"0",width:"100%","max-width":"100%",height:"100%",transform:"translate(0, 0)"};default:return G}},we=Q=>Object.entries(Q).map(([G,B])=>`${G}: ${B}`).join("; ");xn(()=>{console.log("[POPUP-UI] onMount called"),console.log("[POPUP-UI] Props on mount:",{feedbackConfiguration:m(),configurationData:b(),themeMode:d(),apiKey:p(),hostUrl:g(),hasAppearanceProperties:!!m()?.appearanceProperties,hasDetails:!!c(j)}),window.addEventListener("resize",A),setTimeout(()=>{$(O,!0),console.log("[POPUP-UI] isVisible set to true")},100),V=window.setInterval(J,5e3),k()&&k()(J),requestAnimationFrame(()=>{setTimeout(()=>J(),0)}),console.log("[POPUP-UI] loaded")}),ja(()=>{window.removeEventListener("resize",A),V&&window.clearInterval(V)}),fe(()=>c(x),()=>{$(u,c(x)<=768?"95%":"600px")}),fe(()=>z(b()),()=>{$(j,b())}),fe(()=>c(j),()=>{c(j)?.feedbackIdentifier&&console.log("[POPUP-UI] feedback identifier data",c(j)?.feedbackIdentifier)}),fe(()=>c(j),()=>{console.log("[POPUP-UI] Reactive update - details:",c(j),"loading:",Y,"error:",ne)}),fe(()=>z(m()),()=>{console.log("[POPUP-UI] feedbackConfiguration:",m())}),fe(()=>z(b()),()=>{console.log("[POPUP-UI] configurationData:",b())}),fe(()=>z(m()),()=>{console.log("[POPUP-UI] feedbackConfiguration?.appearanceProperties:",m()?.appearanceProperties)}),fe(()=>(z(m()),c(j)),()=>{console.log("[POPUP-UI] Render condition check:",{hasFeedbackConfiguration:!!m(),hasAppearanceProperties:!!m()?.appearanceProperties,hasDetails:!!c(j),shouldRenderApp:!!(m()?.appearanceProperties&&c(j))})}),fe(()=>z(m()),()=>{$(l,m()&&m().appearanceProperties&&m().appearanceProperties.selectedPosition?oe(m().appearanceProperties.selectedPosition):{})}),fe(()=>c(O),()=>{console.log("Current visible state (reactive): ",c(O))}),sr(),Ht();var Ie=Fz(),ke=me(Ne(Ie),2);{var xe=Q=>{var G=qz(),B=Ne(G);{var F=$e=>{var de=Rz();Se(()=>mo(de,`background-color: ${z(m()),z(d()),C(()=>m().appearanceProperties.themes[d()].overlayColor)??""}; z-index: 1000; opacity: ${c(O)?"0.4":"0"};`)),T($e,de)};ae(B,$e=>{z(m()),C(()=>m()?.appearanceProperties?.featureSettings?.darkOverlay)&&$e(F)})}var P=me(B,2),S=L(P);{var D=$e=>{qt($e,{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:re,"aria-label":"Close popup",children:(de,_e)=>{Zh(de,{size:20,stroke:2})},$$slots:{default:!0}})};ae(S,$e=>{z(m()),C(()=>m()?.appearanceProperties?.featureSettings?.closeButton)&&$e(D)})}var q=me(S,2);{var le=$e=>{{let de=Ae(()=>({value:v(),label:v()})),_e=Ae(()=>(c(j),C(()=>c(j)?.questionnaireFields.questions||{}))),Ee=Ae(()=>(c(j),C(()=>c(j)?.questionnaireFields.selectedLanguages||[]))),ue=Ae(()=>(c(j),C(()=>c(j)?.questionnaireFields.translations||{}))),ie=Ae(()=>(c(j),C(()=>c(j)?.otherConfigurationProperties))),Pe=Ae(()=>(c(j),C(()=>c(j)?.welcomeScreenProperties))),Ue=Ae(()=>(c(j),C(()=>c(j)?.endScreenProperties))),qe=Ae(()=>(c(j),C(()=>c(j)?.questionnaireFields.sections||[])));rc($e,{get theme(){return z(m()),C(()=>m().appearanceProperties.themes)},get themeSettings(){return z(m()),C(()=>m().appearanceProperties)},get currentMode(){return d()},get currentLanguage(){return c(de)},get questions(){return c(_e)},get questionLanguages(){return c(Ee)},get translations(){return c(ue)},get otherConfigurationProperties(){return c(ie)},get welcomeScreenProperties(){return c(Pe)},get endScreenProperties(){return c(Ue)},get sections(){return c(qe)},onSectionChange:()=>{requestAnimationFrame(()=>{setTimeout(()=>J(),0)})},onClose:re,get apiKey(){return p()},get hostUrl(){return g()},get feedbackConfigId(){return y()},get identifier(){return I()}})}};ae(q,$e=>{z(m()),c(j),C(()=>m()?.appearanceProperties&&c(j))&&$e(le)})}M(P),Or(P,$e=>$(R,$e),()=>c(R)),Se($e=>mo(P,`${$e??""}; background-color: ${z(m()),z(d()),C(()=>m()?.appearanceProperties?.themes?.[d()]?.overlayColor||"transparent")??""}; z-index: 1001;`),[()=>(c(l),C(()=>we(c(l))))]),T(Q,G)};ae(ke,Q=>{Q(xe)})}T(i,Ie),Ke()}function Nb(i,n){Ye(n,!1);let u=_(n,"themeMode",12,"light"),l=_(n,"feedbackConfiguration",12,null),d=_(n,"apiKey",12,""),m=_(n,"hostUrl",12,""),p=_(n,"deviceInfo",12,null),g=_(n,"sessionId",12,""),v=_(n,"userInfo",12,null),b=_(n,"language",12,"en"),h=_(n,"configurationData",12,null),k=_(n,"onClose",12,void 0),y=_(n,"trackPopupHeight",12,void 0),I=_(n,"feedbackConfigId",12,void 0),x=_(n,"identifier",12,void 0);console.log("[Encatch-Form] Props received:",{themeMode:u(),feedbackConfiguration:l(),apiKey:d(),hostUrl:m(),deviceInfo:p(),sessionId:g(),userInfo:v(),language:b(),configurationData:h(),feedbackConfigId:I(),identifier:x()});var O={get themeMode(){return u()},set themeMode(j){u(j),dt()},get feedbackConfiguration(){return l()},set feedbackConfiguration(j){l(j),dt()},get apiKey(){return d()},set apiKey(j){d(j),dt()},get hostUrl(){return m()},set hostUrl(j){m(j),dt()},get deviceInfo(){return p()},set deviceInfo(j){p(j),dt()},get sessionId(){return g()},set sessionId(j){g(j),dt()},get userInfo(){return v()},set userInfo(j){v(j),dt()},get language(){return b()},set language(j){b(j),dt()},get configurationData(){return h()},set configurationData(j){h(j),dt()},get onClose(){return k()},set onClose(j){k(j),dt()},get trackPopupHeight(){return y()},set trackPopupHeight(j){y(j),dt()},get feedbackConfigId(){return I()},set feedbackConfigId(j){I(j),dt()},get identifier(){return x()},set identifier(j){x(j),dt()}};return zb(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 h()},get onClose(){return k()},get trackPopupHeight(){return y()},get feedbackConfigId(){return I()},get identifier(){return x()}}),Ke(O)}customElements.define("encatch-form",Uh(Nb,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{}},[],[],!0));var Wz=te('<div class="encatch-scale-wrapper"><!></div>');function jb(i,n){Ye(n,!1);let u=_(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),l=_(n,"currentMode",12,"light"),d=_(n,"currentLanguage",28,()=>({value:"en",label:"en",isFixed:!0})),m=_(n,"questions",28,()=>({})),p=_(n,"questionLanguages",28,()=>[]),g=_(n,"otherConfigurationProperties",12,null),v=_(n,"welcomeScreenProperties",12,null),b=_(n,"endScreenProperties",12,null),h=_(n,"translations",28,()=>({})),k=_(n,"sections",28,()=>[]),y=_(n,"themeSettings",12,null),I=_(n,"onClose",12,void 0),x=_(n,"onSectionChange",12,void 0),O=_(n,"apiKey",12,void 0),j=_(n,"hostUrl",12,void 0),Y=_(n,"feedbackConfigId",12,void 0),ne=_(n,"identifier",12,void 0),R=_(n,"cssLink",12,void 0),V=_(n,"scale",12,100),J=ee(!1),A=ee(!1),re=ee();const oe=Q=>{if(!Q)return null;let G=Q;for(;G;){if(G instanceof ShadowRoot)return G;G=G.parentNode}return null};xn(()=>{console.log("[EncatchApp] Props received:",{theme:u(),currentMode:l(),currentLanguage:d(),questions:m(),questionLanguages:p(),otherConfigurationProperties:g(),welcomeScreenProperties:v(),endScreenProperties:b(),translations:h(),sections:k(),themeSettings:y(),feedbackConfigId:Y(),identifier:ne(),scale:V(),cssLink:R()}),R()||(console.log("[EncatchApp] No cssLink provided, rendering immediately"),$(J,!0))}),fe(()=>z(V()),()=>{document.documentElement.style.fontSize=`${V()}%`}),fe(()=>(c(re),z(R()),c(J),c(A)),()=>{c(re)&&R()&&!c(J)&&!c(A)&&(console.log("[EncatchApp] Container element bound, loading CSS"),setTimeout(()=>{const Q=oe(c(re));console.log("[EncatchApp] Shadow root found:",!!Q);const G=document.createElement("link");G.rel="stylesheet",G.href=R(),G.onload=()=>{console.log("[EncatchApp] CSS loaded successfully"),$(J,!0)},G.onerror=()=>{console.error("[EncatchApp] Failed to load CSS"),$(A,!0)},Q?(console.log("[EncatchApp] Appending CSS to shadow root"),Q.appendChild(G)):(console.log("[EncatchApp] Shadow root not found, appending to document head"),document.head.appendChild(G))},0))}),sr();var we={get theme(){return u()},set theme(Q){u(Q),dt()},get currentMode(){return l()},set currentMode(Q){l(Q),dt()},get currentLanguage(){return d()},set currentLanguage(Q){d(Q),dt()},get questions(){return m()},set questions(Q){m(Q),dt()},get questionLanguages(){return p()},set questionLanguages(Q){p(Q),dt()},get otherConfigurationProperties(){return g()},set otherConfigurationProperties(Q){g(Q),dt()},get welcomeScreenProperties(){return v()},set welcomeScreenProperties(Q){v(Q),dt()},get endScreenProperties(){return b()},set endScreenProperties(Q){b(Q),dt()},get translations(){return h()},set translations(Q){h(Q),dt()},get sections(){return k()},set sections(Q){k(Q),dt()},get themeSettings(){return y()},set themeSettings(Q){y(Q),dt()},get onClose(){return I()},set onClose(Q){I(Q),dt()},get onSectionChange(){return x()},set onSectionChange(Q){x(Q),dt()},get apiKey(){return O()},set apiKey(Q){O(Q),dt()},get hostUrl(){return j()},set hostUrl(Q){j(Q),dt()},get feedbackConfigId(){return Y()},set feedbackConfigId(Q){Y(Q),dt()},get identifier(){return ne()},set identifier(Q){ne(Q),dt()},get cssLink(){return R()},set cssLink(Q){R(Q),dt()},get scale(){return V()},set scale(Q){V(Q),dt()}};Ht();var Ie=Wz(),ke=L(Ie);{var xe=Q=>{rc(Q,{get theme(){return u()},get currentMode(){return l()},get currentLanguage(){return d()},get questions(){return m()},get questionLanguages(){return p()},get otherConfigurationProperties(){return g()},get welcomeScreenProperties(){return v()},get endScreenProperties(){return b()},get translations(){return h()},get sections(){return k()},get themeSettings(){return y()},get onClose(){return I()},get onSectionChange(){return x()},get apiKey(){return O()},get hostUrl(){return j()},get feedbackConfigId(){return Y()},get identifier(){return ne()}})};ae(ke,Q=>{c(J)&&Q(xe)})}return M(Ie),Or(Ie,Q=>$(re,Q),()=>c(re)),T(i,Ie),Ke(we)}customElements.define("encatch-app",Uh(jb,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{},scale:{}},[],[],!0));const Qz=Nb,Gz=jb;o.App=rc,o.EncatchAppElement=Gz,o.EncatchFormElement=Qz,o.PopupUi=zb,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(Ei,Ei.exports)),Ei.exports}var Ik=Sk();const zk=Pb({__proto__:null},[Ik]);Nn.EncatchPreview=Lb,Object.defineProperty(Nn,Symbol.toStringTag,{value:"Module"})}));
|