1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"}; 2"use client";import{A as zS,B as ES,C as za,D as Oo,E as Ml,L as AS,Q as MS,a as $S,e as IS,i as TS,m as PS,r as Ug,s as CS,u as Ld,v as Ni,w as Al,x as ke,y as dr,z as Ro}from"/chunks/chunk-QGV5JN4E.js";import{A as Fg,a as Hn,b as DS,c as Ea,d as Aa,e as Fd,f as NS,g as RS,h as OS,i as jS,j as US,k as LS,l as FS,m as Bd,n as BS,o as Lg,p as ZS,q as VS,r as Ma,s as GS,t as qS,u as Zd,v as WS,w as Dl}from"/chunks/chunk-XF5GDGME.js";import{a as SS,b as bO,c as cr,d as H,e as pe,g as Te}from"/chunks/chunk-GYGEIEIV.js";var AP=bO((lpe,EP)=>{"use strict";function kq(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r,o=0;return function(...i){clearTimeout(r);let a=Date.now(),s=a-o,l=t-s;l<=0?(o=a,e.apply(this,i)):r=setTimeout(()=>{o=Date.now(),e.apply(this,i)},l)}}EP.exports=kq});var Wr=H(pe(),1);var _5="vercel.ai.error",xO=Symbol.for(_5),HS,JS,je=class k5 extends(JS=Error,HS=xO,JS){constructor({name:t,message:r,cause:o}){super(r),this[HS]=!0,this.name=t,this.cause=o}static isInstance(t){return k5.hasMarker(t,_5)}static hasMarker(t,r){let o=Symbol.for(r);return t!=null&&typeof t=="object"&&o in t&&typeof t[o]=="boolean"&&t[o]===!0}},S5="AI_APICallError",$5=`vercel.ai.error.${S5}`,wO=Symbol.for($5),KS,XS,Mre=class extends(XS=je,KS=wO,XS){constructor({message:e,url:t,requestBodyValues:r,statusCode:o,responseHeaders:n,responseBody:i,cause:a,isRetryable:s=o!=null&&(o===408||o===409||o===429||o>=500),data:l}){super({name:S5,message:e,cause:a}),this[KS]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=o,this.responseHeaders=n,this.responseBody=i,this.isRetryable=s,this.data=l}static isInstance(e){return je.hasMarker(e,$5)}},I5="AI_EmptyResponseBodyError",T5=`vercel.ai.error.${I5}`,_O=Symbol.for(T5),YS,QS,Dre=class extends(QS=je,YS=_O,QS){constructor({message:e="Empty response body"}={}){super({name:I5,message:e}),this[YS]=!0}static isInstance(e){return je.hasMarker(e,T5)}};function P5(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var C5="AI_InvalidArgumentError",z5=`vercel.ai.error.${C5}`,kO=Symbol.for(z5),e5,t5,E5=class extends(t5=je,e5=kO,t5){constructor({message:e,cause:t,argument:r}){super({name:C5,message:e,cause:t}),this[e5]=!0,this.argument=r}static isInstance(e){return je.hasMarker(e,z5)}},A5="AI_InvalidPromptError",M5=`vercel.ai.error.${A5}`,SO=Symbol.for(M5),r5,n5,Nre=class extends(n5=je,r5=SO,n5){constructor({prompt:e,message:t,cause:r}){super({name:A5,message:`Invalid prompt: ${t}`,cause:r}),this[r5]=!0,this.prompt=e}static isInstance(e){return je.hasMarker(e,M5)}},D5="AI_InvalidResponseDataError",N5=`vercel.ai.error.${D5}`,$O=Symbol.for(N5),o5,i5,Rre=class extends(i5=je,o5=$O,i5){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:D5,message:t}),this[o5]=!0,this.data=e}static isInstance(e){return je.hasMarker(e,N5)}},R5="AI_JSONParseError",O5=`vercel.ai.error.${R5}`,IO=Symbol.for(O5),a5,s5,Zg=class extends(s5=je,a5=IO,s5){constructor({text:e,cause:t}){super({name:R5,message:`JSON parsing failed: Text: ${e}. 3Error message: ${P5(t)}`,cause:t}),this[a5]=!0,this.text=e}static isInstance(e){return je.hasMarker(e,O5)}},j5="AI_LoadAPIKeyError",U5=`vercel.ai.error.${j5}`,TO=Symbol.for(U5),l5,u5,Ore=class extends(u5=je,l5=TO,u5){constructor({message:e}){super({name:j5,message:e}),this[l5]=!0}static isInstance(e){return je.hasMarker(e,U5)}},L5="AI_LoadSettingError",F5=`vercel.ai.error.${L5}`,PO=Symbol.for(F5),c5,d5,jre=class extends(d5=je,c5=PO,d5){constructor({message:e}){super({name:L5,message:e}),this[c5]=!0}static isInstance(e){return je.hasMarker(e,F5)}},B5="AI_NoContentGeneratedError",Z5=`vercel.ai.error.${B5}`,CO=Symbol.for(Z5),p5,m5,Ure=class extends(m5=je,p5=CO,m5){constructor({message:e="No content generated."}={}){super({name:B5,message:e}),this[p5]=!0}static isInstance(e){return je.hasMarker(e,Z5)}},V5="AI_NoSuchModelError",G5=`vercel.ai.error.${V5}`,zO=Symbol.for(G5),f5,h5,Lre=class extends(h5=je,f5=zO,h5){constructor({errorName:e=V5,modelId:t,modelType:r,message:o=`No such ${r}: ${t}`}){super({name:e,message:o}),this[f5]=!0,this.modelId=t,this.modelType=r}static isInstance(e){return je.hasMarker(e,G5)}},q5="AI_TooManyEmbeddingValuesForCallError",W5=`vercel.ai.error.${q5}`,EO=Symbol.for(W5),g5,v5,Fre=class extends(v5=je,g5=EO,v5){constructor(e){super({name:q5,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[g5]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return je.hasMarker(e,W5)}},H5="AI_TypeValidationError",J5=`vercel.ai.error.${H5}`,AO=Symbol.for(J5),y5,b5,bn=class Bg extends(b5=je,y5=AO,b5){constructor({value:t,cause:r,context:o}){let n="Type validation failed";if(o?.field&&(n+=` for ${o.field}`),o?.entityName||o?.entityId){n+=" (";let i=[];
3o.entityName&&i.push(o.entityName),o.entityId&&i.push(`id: "${o.entityId}"`),n+=i.join(", "),n+=")"}super({name:H5,message:`${n}: Value: ${JSON.stringify(t)}. 4Error message: ${P5(r)}`,cause:r}),this[y5]=!0,this.value=t,this.context=o}static isInstance(t){return je.hasMarker(t,J5)}static wrap({value:t,cause:r,context:o}){var n,i,a;return Bg.isInstance(r)&&r.value===t&&((n=r.context)==null?void 0:n.field)===o?.field&&((i=r.context)==null?void 0:i.entityName)===o?.entityName&&((a=r.context)==null?void 0:a.entityId)===o?.entityId?r:new Bg({value:t,cause:r,context:o})}},K5="AI_UnsupportedFunctionalityError",X5=`vercel.ai.error.${K5}`,MO=Symbol.for(X5),x5,w5,Bre=class extends(w5=je,x5=MO,w5){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:K5,message:t}),this[x5]=!0,this.functionality=e}static isInstance(e){return je.hasMarker(e,X5)}};var DO=Object.freeze({status:"aborted"});function A(e,t,r){function o(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let u=a.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){let p=c[d];p in s||(s[p]=u[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var l;let u=r?.Parent?new i:this;o(u,s),(l=u._zod).deferred??(l.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var xn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ri=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Vd={};function Rt(e){return e&&Object.assign(Vd,e),Vd}var G={};cr(G,{BIGINT_FORMAT_RANGES:()=>Yg,Class:()=>Gg,NUMBER_FORMAT_RANGES:()=>Xg,aborted:()=>Fo,allowsEval:()=>Hg,assert:()=>UO,assertEqual:()=>NO,assertIs:()=>OO,assertNever:()=>jO,assertNotEqual:()=>RO,assignProp:()=>Uo,base64ToUint8Array:()=>e3,base64urlToUint8Array:()=>rj,cached:()=>Na,captureStackTrace:()=>qd,cleanEnum:()=>tj,cleanRegex:()=>Ol,clone:()=>$r,cloneDef:()=>FO,createTransparentProxy:()=>WO,defineLazy:()=>ze,esc:()=>Gd,escapeRegex:()=>Br,extend:()=>KO,finalizeIssue:()=>pr,floatSafeRemainder:()=>qg,getElementAtPath:()=>BO,getEnumValues:()=>Rl,getLengthableOrigin:()=>Ll,getParsedType:()=>qO,getSizableOrigin:()=>Ul,hexToUint8Array:()=>oj,isObject:()=>Oi,isPlainObject:()=>Lo,issue:()=>Ra,joinValues:()=>ce,jsonStringifyReplacer:()=>Da,merge:()=>YO,mergeDefs:()=>Jn,normalizeParams:()=>Q,nullish:()=>jo,numKeys:()=>GO,objectClone:()=>LO,omit:()=>JO,optionalKeys:()=>Kg,parsedType:()=>me,partial:()=>QO,pick:()=>HO,prefixIssues:()=>Ir,primitiveTypes:()=>Jg,promiseAllObject:()=>ZO,propertyKeyTypes:()=>jl,randomString:()=>VO,required:()=>ej,safeExtend:()=>XO,shallowClone:()=>Q5,slugify:()=>Wg,stringifyPrimitive:()=>de,uint8ArrayToBase64:()=>t3,uint8ArrayToBase64url:()=>nj,uint8ArrayToHex:()=>ij,unwrapMessage:()=>Nl});function NO(e){return e}function RO(e){return e}function OO(e){}function jO(e){throw new Error("Unexpected value in exhaustive check")}function UO(e){}function Rl(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function ce(e,t="|"){return e.map(r=>de(r)).join(t)}function Da(e,t){return typeof t=="bigint"?t.toString():t}function Na(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function jo(e){return e==null}function Ol(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function qg(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}var Y5=Symbol("evaluating");function ze(e,t,r){let o;
vendor: 4,806 bytes, line 4
4Object.defineProperty(e,t,{get(){if(o!==Y5)return o===void 0&&(o=Y5,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function LO(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Uo(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Jn(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function FO(e){return Jn(e._zod.def)}function BO(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function ZO(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function VO(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Gd(e){return JSON.stringify(e)}function Wg(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var qd="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Oi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Hg=Na(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Lo(e){if(Oi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Oi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Q5(e){return Lo(e)?{...e}:Array.isArray(e)?[...e]:e}function GO(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var qO=e=>{let t=typeof e;switch(t){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: ${t}`)}},jl=new Set(["string","number","symbol"]),Jg=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Br(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $r(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function Q(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function WO(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function de(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Kg(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Xg={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]},Yg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function HO(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Jn(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Uo(this,"shape",a),a},checks:[]});return $r(e,i)}function JO(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Jn(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Uo(this,"shape",a),a},checks:[]});return $r(e,i)}function KO(e,t){if(!Lo(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot over
4write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Jn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Uo(this,"shape",i),i}});return $r(e,n)}function XO(e,t){if(!Lo(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Jn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Uo(this,"shape",o),o}});return $r(e,r)}function YO(e,t){let r=Jn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Uo(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return $r(e,r)}function QO(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Jn(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)l[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return Uo(this,"shape",l),l},checks:[]});return $r(t,a)}function ej(e,t,r){let o=Jn(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return Uo(this,"shape",i),i}});return $r(t,o)}function Fo(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Ir(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Nl(e){return typeof e=="string"?e:e?.message}function pr(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Nl(e.inst?._zod.def?.error?.(e))??Nl(t?.error?.(e))??Nl(r.customError?.(e))??Nl(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function Ul(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ll(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function me(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Ra(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function tj(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function e3(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function t3(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function rj(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return e3(t+r)}function nj(e){return t3(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function oj(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function ij(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Gg=class{constructor(...t){}};var r3=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Da,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wd=A("$ZodError",r3),Fl=A("$ZodError",r3,{Parent:Error});function Qg(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function ev(e,t=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,s=0;for(;s<i.path.length;){let l=i.path[s];s===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(i))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return o(e),r}var Bl=e=>(t,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new xn;
4if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>pr(l,i,Rt())));throw qd(s,n?.callee),s}return a.value},tv=Bl(Fl),Zl=e=>async(t,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>pr(l,i,Rt())));throw qd(s,n?.callee),s}return a.value},rv=Zl(Fl),Vl=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new xn;return i.issues.length?{success:!1,error:new(e??Wd)(i.issues.map(a=>pr(a,n,Rt())))}:{success:!0,data:i.value}},n3=Vl(Fl),Gl=e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>pr(a,n,Rt())))}:{success:!0,data:i.value}},o3=Gl(Fl),i3=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Bl(e)(t,r,n)};var a3=e=>(t,r,o)=>Bl(e)(t,r,o);var s3=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Zl(e)(t,r,n)};var l3=e=>async(t,r,o)=>Zl(e)(t,r,o);var u3=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Vl(e)(t,r,n)};var c3=e=>(t,r,o)=>Vl(e)(t,r,o);var d3=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};
vendor: 86,591 bytes, lines 4-42
4return Gl(e)(t,r,n)};var p3=e=>async(t,r,o)=>Gl(e)(t,r,o);var wn={};cr(wn,{base64:()=>yv,base64url:()=>Hd,bigint:()=>Sv,boolean:()=>Iv,browserEmail:()=>fj,cidrv4:()=>gv,cidrv6:()=>vv,cuid:()=>nv,cuid2:()=>ov,date:()=>xv,datetime:()=>_v,domain:()=>vj,duration:()=>uv,e164:()=>bv,email:()=>dv,emoji:()=>pv,extendedDuration:()=>sj,guid:()=>cv,hex:()=>yj,hostname:()=>gj,html5Email:()=>dj,idnEmail:()=>mj,integer:()=>$v,ipv4:()=>mv,ipv6:()=>fv,ksuid:()=>sv,lowercase:()=>Cv,mac:()=>hv,md5_base64:()=>xj,md5_base64url:()=>wj,md5_hex:()=>bj,nanoid:()=>lv,null:()=>Tv,number:()=>Jd,rfc5322Email:()=>pj,sha1_base64:()=>kj,sha1_base64url:()=>Sj,sha1_hex:()=>_j,sha256_base64:()=>Ij,sha256_base64url:()=>Tj,sha256_hex:()=>$j,sha384_base64:()=>Cj,sha384_base64url:()=>zj,sha384_hex:()=>Pj,sha512_base64:()=>Aj,sha512_base64url:()=>Mj,sha512_hex:()=>Ej,string:()=>kv,time:()=>wv,ulid:()=>iv,undefined:()=>Pv,unicodeEmail:()=>m3,uppercase:()=>zv,uuid:()=>ji,uuid4:()=>lj,uuid6:()=>uj,uuid7:()=>cj,xid:()=>av});var nv=/^[cC][^\s-]{8,}$/,ov=/^[0-9a-z]+$/,iv=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,av=/^[0-9a-vA-V]{20}$/,sv=/^[A-Za-z0-9]{27}$/,lv=/^[a-zA-Z0-9_-]{21}$/,uv=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sj=/^[-+]?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)?)??$/,cv=/^([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})$/,ji=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)$/,lj=ji(4),uj=ji(6),cj=ji(7),dv=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dj=/^[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])?)*$/,pj=/^(([^<>()\[\]\\.,;:\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,}))$/,m3=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,mj=m3,fj=/^[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])?)*$/,hj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function pv(){return new RegExp(hj,"u")}var mv=/^(?:(?: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])$/,fv=/^(([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}|:))$/,hv=e=>{let t=Br(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},gv=/^((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])$/,vv=/^(([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])$/,yv=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Hd=/^[A-Za-z0-9_-]*$/,gj=/^(?=.{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])?)*\.?$/,vj=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,bv=/^\+[1-9]\d{6,14}$/,f3="(?:(?:\\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])))",xv=new RegExp(`^${f3}$`);function h3(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function wv(e){return new RegExp(`^${h3(e)}$`)}function _v(e){let t=h3({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${f3}T(?:${o})$`)}var kv=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Sv=/^-?\d+n?$/,$v=/^-?\d+$/,Jd=/^-?\d+(?:\.\d+)?$/,Iv=/^(?:true|false)$/i,Tv=/^null$/i;var Pv=/^undefined$/i;var Cv=/^[^A-Z]*$/,zv=/^[^a-z]*$/,yj=/^[0-9a-fA-F]*$/;function ql(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Wl(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var bj=/^[0-9a-fA-F]{32}$/,xj=ql(22,"=="),wj=Wl(22),_j=/^[0-9a-fA-F]{40}$/,kj=ql(27,"="),Sj=Wl(27),$j=/^[0-9a-fA-F]{64}$/,Ij=ql(43,"="),Tj=Wl(43),Pj=/^[0-9a-fA-F]{96}$/,Cj=ql(64,""),zj=Wl(64),Ej=/^[0-9a-fA-F]{128}$/,Aj=ql(86,"=="),Mj=Wl(86);var rt=A("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),v3={number:"number",bigint:"bigint",object:"date"},Ev=A("$ZodCheckLessThan",(e,t)=>{rt.init(e,t);let r=v3[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Av=A("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);let r=v3[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),y3=A("$ZodCheckMultipleOf",(e,t)=>{rt.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):qg(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),b3=A("$ZodCheckNumberFormat",(e,t)=>{rt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Xg[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=$v)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),x3=A("$ZodCheckBigIntFormat",(e,t)=>{rt.init(e,t);let[r,o]=Yg[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),w3=A("$ZodCheckMaxSize",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!jo(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:Ul(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),_3=A("$ZodCheckMinSize",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!jo(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:Ul(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),k3=A("$ZodCheckSizeEquals",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!jo(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:Ul(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),S3=A("$ZodCheckMaxLength",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!jo(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=Ll(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),$3=A("$ZodCheckMinLength",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!jo(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=Ll(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),I3=A("$ZodCheckLengthEquals",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!jo(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=Ll(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Hl=A("$ZodCheckStringFormat",(e,t)=>{var r,o;rt.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),T3=A("$ZodCheckRegex",(e,t)=>{Hl.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),P3=A("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Cv),Hl.init(e,t)}),C3=A("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zv),Hl.init(e,t)}),z3=A("$ZodCheckIncludes",(e,t)=>{rt.init(e,t);let r=Br(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),E3=A("$ZodCheckStartsWith",(e,t)=>{rt.init(e,t);let r=new RegExp(`^${Br(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),A3=A("$ZodCheckEndsWith",(e,t)=>{rt.init(e,t);let r=new RegExp(`.*${Br(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function g3(e,t,r){e.issues.length&&t.issues.push(...Ir(r,e.issues))}var M3=A("$ZodCheckProperty",(e,t)=>{rt.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>g3(n,r,t.property));g3(o,r,t.property)}}),D3=A("$ZodCheckMimeType",(e,t)=>{rt.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),N3=A("$ZodCheckOverwrite",(e,t)=>{rt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Kd=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(` 5`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(` 6`))}};var O3={major:4,minor:3,patch:6};var xe=A("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=O3;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,l)=>{let u=Fo(a),c;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(u)continue;let p=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&l?.async===!1)throw new xn;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,a.issues.length!==p&&(u||(u=Fo(a,p)))});else{if(a.issues.length===p)continue;u||(u=Fo(a,p))}}return c?c.then(()=>a):a},i=(a,s,l)=>{if(Fo(a))return a.aborted=!0,a;let u=n(s,o,l);if(u instanceof Promise){if(l.async===!1)throw new xn;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(c=>i(c,a,s)):i(u,a,s)}let l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new xn;return l.then(u=>n(u,o,s))}return n(l,o,s)}}ze(e,"~standard",()=>({validate:n=>{try{let i=n3(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return o3(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Oa=A("$ZodString",(e,t)=>{xe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??kv(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Je=A("$ZodStringFormat",(e,t)=>{Hl.init(e,t),Oa.init(e,t)}),J3=A("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=cv),Je.init(e,t)}),K3=A("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ji(o))}else t.pattern??(t.pattern=ji());Je.init(e,t)}),X3=A("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=dv),Je.init(e,t)}),Y3=A("$ZodURL",(e,t)=>{Je.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Q3=A("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pv()),Je.init(e,t)}),e$=A("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=lv),Je.init(e,t)}),t$=A("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=nv),Je.init(e,t)}),r$=A("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ov),Je.init(e,t)}),n$=A("$ZodULID",(e,t)=>{t.pattern??(t.pattern=iv),Je.init(e,t)}),o$=A("$ZodXID",(e,t)=>{t.pattern??(t.pattern=av),Je.init(e,t)}),i$=A("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=sv),Je.init(e,t)}),a$=A("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=_v(t)),Je.init(e,t)}),s$=A("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=xv),Je.init(e,t)}),l$=A("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=wv(t)),Je.init(e,t)}),u$=A("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=uv),Je.init(e,t)}),c$=A("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=mv),Je.init(e,t),e._zod.bag.format="ipv4"}),d$=A("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=fv),Je.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),p$=A("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=hv(t.delimiter)),Je.init(e,t),e._zod.bag.format="mac"}),m$=A("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=gv),Je.init(e,t)}),f$=A("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=vv),Je.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function h$(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var g$=A("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=yv),Je.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{h$(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Dj(e){if(!Hd.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return h$(r)}var v$=A("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Hd),Je.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Dj(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),y$=A("$ZodE164",(e,t)=>{t.pattern??(t.pattern=bv),Je.init(e,t)});function Nj(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var b$=A("$ZodJWT",(e,t)=>{Je.init(e,t),e._zod.check=r=>{Nj(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),x$=A("$ZodCustomStringFormat",(e,t)=>{Je.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Dv=A("$ZodNumber",(e,t)=>{xe.init(e,t),e._zod.pattern=e._zod.bag.pattern??Jd,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),w$=A("$ZodNumberFormat",(e,t)=>{b3.init(e,t),Dv.init(e,t)}),rp=A("$ZodBoolean",(e,t)=>{xe.init(e,t),e._zod.pattern=Iv,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Nv=A("$ZodBigInt",(e,t)=>{xe.init(e,t),e._zod.pattern=Sv,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),_$=A("$ZodBigIntFormat",(e,t)=>{x3.init(e,t),Nv.init(e,t)}),k$=A("$ZodSymbol",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),S$=A("$ZodUndefined",(e,t)=>{xe.init(e,t),e._zod.pattern=Pv,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),$$=A("$ZodNull",(e,t)=>{xe.init(e,t),e._zod.pattern=Tv,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),I$=A("$ZodAny",(e,t)=>{xe.init(e,t),e._zod.parse=r=>r}),T$=A("$ZodUnknown",(e,t)=>{xe.init(e,t),e._zod.parse=r=>r}),P$=A("$ZodNever",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),C$=A("$ZodVoid",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),z$=A("$ZodDate",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function j3(e,t,r){e.issues.length&&t.issues.push(...Ir(r,e.issues)),t.value[r]=e.value}var E$=A("$ZodArray",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let s=n[a],l=t.element._zod.run({value:s,issues:[]},o);l instanceof Promise?i.push(l.then(u=>j3(u,r,a))):j3(l,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function tp(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...Ir(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function A$(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Kg(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function M$(e,t,r,o,n,i){let a=[],s=n.keySet,l=n.catchall._zod,u=l.def.type,c=l.optout==="optional";for(let d in t){if(s.has(d))continue;if(u==="never"){a.push(d);continue}let p=l.run({value:t[d],issues:[]},o);p instanceof Promise?e.push(p.then(m=>tp(m,r,d,t,c))):tp(p,r,d,t,c)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var Rj=A("$ZodObject",(e,t)=>{if(xe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}let o=Na(()=>A$(t));ze(e._zod,"propValues",()=>{let s=t.shape,l={};for(let u in s){let c=s[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let d of c.values)l[u].add(d)}}return l});let n=Oi,i=t.catchall,a;e._zod.parse=(s,l)=>{a??(a=o.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let c=[],d=a.shape;for(let p of a.keys){let m=d[p],g=m._zod.optout==="optional",x=m._zod.run({value:u[p],issues:[]},l);x instanceof Promise?c.push(x.then(w=>tp(w,s,p,u,g))):tp(x,s,p,u,g)}return i?M$(c,u,s,l,o.value,e):c.length?Promise.all(c).then(()=>s):s}}),D$=A("$ZodObjectJIT",(e,t)=>{Rj.init(e,t);let r=e._zod.parse,o=Na(()=>A$(t)),n=p=>{let m=new Kd(["shape","payload","ctx"]),g=o.value,x=b=>{let T=Gd(b);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};m.write("const input = payload.value;");let w=Object.create(null),S=0;for(let b of g.keys)w[b]=`key_${S++}`;m.write("const newResult = {};");for(let b of g.keys){let T=w[b],$=Gd(b),M=p[b]?._zod?.optout==="optional";m.write(`const ${T} = ${x(b)};`),M?m.write(` 7 if (${T}.issues.length) { 8 if (${$} in input) { 9 payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ 10 ...iss, 11 path: iss.path ? [${$}, ...iss.path] : [${$}] 12 }))); 13 } 14 } 15 16 if (${T}.value === undefined) { 17 if (${$} in input) { 18 newResult[${$}] = undefined; 19 } 20 } else { 21 newResult[${$}] = ${T}.value; 22 } 23 24 `):m.write(` 25 if (${T}.issues.length) { 26 payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ 27 ...iss, 28 path: iss.path ? [${$}, ...iss.path] : [${$}] 29 }))); 30 } 31 32 if (${T}.value === undefined) { 33 if (${$} in input) { 34 newResult[${$}] = undefined; 35 } 36 } else { 37 newResult[${$}] = ${T}.value; 38 } 39 40 `)}m.write("payload.value = newResult;"),m.write("return payload;");let _=m.compile();return(b,T)=>_(p,b,T)},i,a=Oi,s=!Vd.jitless,u=s&&Hg.value,c=t.catchall,d;e._zod.parse=(p,m)=>{d??(d=o.value);let g=p.value;return a(g)?s&&u&&m?.async===!1&&m.jitless!==!0?(i||(i=n(t.shape)),p=i(p,m),c?M$([],g,p,m,d,e):p):r(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function U3(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!Fo(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>pr(a,o,Rt())))}),t)}var np=A("$ZodUnion",(e,t)=>{xe.init(e,t),ze(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),ze(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ze(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),ze(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Ol(i.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},i);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(l=>U3(l,n,e,i)):U3(s,n,e,i)}});function L3(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>pr(a,o,Rt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var N$=A("$ZodXor",(e,t)=>{np.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},i);u instanceof Promise?(s.push(u),a=!0):s.push(u)}return a?Promise.all(s).then(l=>L3(l,n,e,i)):L3(s,n,e,i)}}),R$=A("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,np.init(e,t);let r=e._zod.parse;ze(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,l]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of l)n[s].add(u)}}return n});let o=Na(()=>{let n=t.options,i=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let l of s){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Oi(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),O$=A("$ZodIntersection",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([l,u])=>F3(r,l,u)):F3(r,i,a)}});function Mv(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Lo(e)&&Lo(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=Mv(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=Mv(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function F3(e,t,r){let o=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&n&&e.issues.push({...n,keys:i}),Fo(e))return e;let a=Mv(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Rv=A("$ZodTuple",(e,t)=>{xe.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=[...r].reverse().findIndex(c=>c._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let c=i.length>r.length,d=i.length<l-1;if(c||d)return o.issues.push({...c?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let u=-1;for(let c of r){if(u++,u>=i.length&&u>=l)continue;let d=c._zod.run({value:i[u],issues:[]},n);d instanceof Promise?a.push(d.then(p=>Xd(p,o,u))):Xd(d,o,u)}if(t.rest){let c=i.slice(r.length);for(let d of c){u++;let p=t.rest._zod.run({value:d,issues:[]},n);p instanceof Promise?a.push(p.then(m=>Xd(m,o,u))):Xd(p,o,u)}}return a.length?Promise.all(a).then(()=>o):o}});function Xd(e,t,r){e.issues.length&&t.issues.push(...Ir(r,e.issues)),t.value[r]=e.value}var j$=A("$ZodRecord",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Lo(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let c=t.valueType._zod.run({value:n[u],issues:[]},o);c instanceof Promise?i.push(c.then(d=>{d.issues.length&&r.issues.push(...Ir(u,d.issues)),r.value[u]=d.value})):(c.issues.length&&r.issues.push(...Ir(u,c.issues)),r.value[u]=c.value)}let l;for(let u in n)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Jd.test(s)&&l.issues.length){let d=t.keyType._zod.run({value:Number(s),issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>pr(d,o,Rt())),input:s,path:[s],inst:e});continue}let c=t.valueType._zod.run({value:n[s],issues:[]},o);c instanceof Promise?i.push(c.then(d=>{d.issues.length&&r.issues.push(...Ir(s,d.issues)),r.value[l.value]=d.value})):(c.issues.length&&r.issues.push(...Ir(s,c.issues)),r.value[l.value]=c.value)}}return i.length?Promise.all(i).then(()=>r):r}}),U$=A("$ZodMap",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of n){let l=t.keyType._zod.run({value:a,issues:[]},o),u=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||u instanceof Promise?i.push(Promise.all([l,u]).then(([c,d])=>{B3(c,d,r,a,n,e,o)})):B3(l,u,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function B3(e,t,r,o,n,i,a){e.issues.length&&(jl.has(typeof o)?r.issues.push(...Ir(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>pr(s,a,Rt()))})),t.issues.length&&(jl.has(typeof o)?r.issues.push(...Ir(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>pr(s,a,Rt()))})),r.value.set(e.value,t.value)}var L$=A("$ZodSet",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(l=>Z3(l,r))):Z3(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function Z3(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var F$=A("$ZodEnum",(e,t)=>{xe.init(e,t);let r=Rl(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>jl.has(typeof n)).map(n=>typeof n=="string"?Br(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),B$=A("$ZodLiteral",(e,t)=>{if(xe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Br(o):o?Br(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Z$=A("$ZodFile",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),V$=A("$ZodTransform",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ri(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new xn;return r.value=n,r}});function V3(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Ov=A("$ZodOptional",(e,t)=>{xe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ze(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ze(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ol(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>V3(i,r.value)):V3(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),G$=A("$ZodExactOptional",(e,t)=>{Ov.init(e,t),ze(e._zod,"values",()=>t.innerType._zod.values),ze(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),q$=A("$ZodNullable",(e,t)=>{xe.init(e,t),ze(e._zod,"optin",()=>t.innerType._zod.optin),ze(e._zod,"optout",()=>t.innerType._zod.optout),ze(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ol(r.source)}|null)$`):void 0}),ze(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),W$=A("$ZodDefault",(e,t)=>{xe.init(e,t),e._zod.optin="optional",ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>G3(i,t)):G3(n,t)}});function G3(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var H$=A("$ZodPrefault",(e,t)=>{xe.init(e,t),e._zod.optin="optional",ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),J$=A("$ZodNonOptional",(e,t)=>{xe.init(e,t),ze(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>q3(i,e)):q3(n,e)}});function q3(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var K$=A("$ZodSuccess",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ri("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),X$=A("$ZodCatch",(e,t)=>{xe.init(e,t),ze(e._zod,"optin",()=>t.innerType._zod.optin),ze(e._zod,"optout",()=>t.innerType._zod.optout),ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>pr(a,o,Rt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>pr(i,o,Rt()))},input:r.value}),r.issues=[]),r)}}),Y$=A("$ZodNaN",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Q$=A("$ZodPipe",(e,t)=>{xe.init(e,t),ze(e._zod,"values",()=>t.in._zod.values),ze(e._zod,"optin",()=>t.in._zod.optin),ze(e._zod,"optout",()=>t.out._zod.optout),ze(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Yd(a,t.in,o)):Yd(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Yd(i,t.out,o)):Yd(n,t.out,o)}});function Yd(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var op=A("$ZodCodec",(e,t)=>{xe.init(e,t),ze(e._zod,"values",()=>t.in._zod.values),ze(e._zod,"optin",()=>t.in._zod.optin),ze(e._zod,"optout",()=>t.out._zod.optout),ze(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>Qd(a,t,o)):Qd(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Qd(a,t,o)):Qd(i,t,o)}}});function Qd(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>ep(e,i,t.out,r)):ep(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>ep(e,i,t.in,r)):ep(e,n,t.in,r)}}function ep(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var e7=A("$ZodReadonly",(e,t)=>{xe.init(e,t),ze(e._zod,"propValues",()=>t.innerType._zod.propValues),ze(e._zod,"values",()=>t.innerType._zod.values),ze(e._zod,"optin",()=>t.innerType?._zod?.optin),ze(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(W3):W3(n)}});function W3(e){return e.value=Object.freeze(e.value),e}var t7=A("$ZodTemplateLiteral",(e,t)=>{xe.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||Jg.has(typeof o))r.push(Br(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),r7=A("$ZodFunction",(e,t)=>(xe.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?tv(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?tv(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await rv(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await rv(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new Rv({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),n7=A("$ZodPromise",(e,t)=>{xe.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),o7=A("$ZodLazy",(e,t)=>{xe.init(e,t),ze(e._zod,"innerType",()=>t.getter()),ze(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ze(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ze(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ze(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),i7=A("$ZodCustom",(e,t)=>{rt.init(e,t),xe.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>H3(i,r,o,e));H3(n,r,o,e)}});function H3(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Ra(n))}}var jj=()=>{let 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"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let r={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",mac:"MAC 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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=me(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${de(n.values[0])}`:`Invalid option: expected one of ${ce(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${ce(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function jv(){return{localeError:jj()}}var s7;var Uv=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function l7(){return new Uv}(s7=globalThis).__zod_globalRegistry??(s7.__zod_globalRegistry=l7());var mr=globalThis.__zod_globalRegistry;function u7(e,t){return new e({type:"string",...Q(t)})}function Lv(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Q(t)})}function ip(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Q(t)})}function Fv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Q(t)})}function Bv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Q(t)})}function Zv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Q(t)})}function Vv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Q(t)})}function ap(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Q(t)})}function Gv(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Q(t)})}function qv(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Q(t)})}function Wv(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Q(t)})}function Hv(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Q(t)})}function Jv(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Q(t)})}function Kv(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Q(t)})}function Xv(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Q(t)})}function Yv(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Q(t)})}function Qv(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Q(t)})}function c7(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...Q(t)})}function ey(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Q(t)})}function ty(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Q(t)})}function ry(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Q(t)})}function ny(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Q(t)})}function oy(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Q(t)})}function iy(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Q(t)})}function d7(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Q(t)})}function p7(e,t){return new e({type:"string",format:"date",check:"string_format",...Q(t)})}function m7(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Q(t)})}function f7(e,t){return new e({type:"string",format:"duration",check:"string_format",...Q(t)})}function h7(e,t){return new e({type:"number",checks:[],...Q(t)})}function g7(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Q(t)})}function v7(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Q(t)})}function y7(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Q(t)})}function b7(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Q(t)})}function x7(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Q(t)})}function w7(e,t){return new e({type:"boolean",...Q(t)})}function _7(e,t){return new e({type:"bigint",...Q(t)})}function k7(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Q(t)})}function S7(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Q(t)})}function $7(e,t){return new e({type:"symbol",...Q(t)})}function I7(e,t){return new e({type:"undefined",...Q(t)})}function T7(e,t){return new e({type:"null",...Q(t)})}function P7(e){return new e({type:"any"})}function C7(e){return new e({type:"unknown"})}function z7(e,t){return new e({type:"never",...Q(t)})}function E7(e,t){return new e({type:"void",...Q(t)})}function A7(e,t){return new e({type:"date",...Q(t)})}function M7(e,t){return new e({type:"nan",...Q(t)})}function Bo(e,t){return new Ev({check:"less_than",...Q(t),value:e,inclusive:!1})}function on(e,t){return new Ev({check:"less_than",...Q(t),value:e,inclusive:!0})}function Zo(e,t){return new Av({check:"greater_than",...Q(t),value:e,inclusive:!1})}function Tr(e,t){return new Av({check:"greater_than",...Q(t),value:e,inclusive:!0})}function D7(e){return Zo(0,e)}function N7(e){return Bo(0,e)}function R7(e){return on(0,e)}function O7(e){return Tr(0,e)}function ja(e,t){return new y3({check:"multiple_of",...Q(t),value:e})}function Ua(e,t){return new w3({check:"max_size",...Q(t),maximum:e})}function Vo(e,t){return new _3({check:"min_size",...Q(t),minimum:e})}function Jl(e,t){return new k3({check:"size_equals",...Q(t),size:e})}function Kl(e,t){return new S3({check:"max_length",...Q(t),maximum:e})}function Ui(e,t){return new $3({check:"min_length",...Q(t),minimum:e})}function Xl(e,t){return new I3({check:"length_equals",...Q(t),length:e})}function sp(e,t){return new T3({check:"string_format",format:"regex",...Q(t),pattern:e})}function lp(e){return new P3({check:"string_format",format:"lowercase",...Q(e)})}function up(e){return new C3({check:"string_format",format:"uppercase",...Q(e)})}function cp(e,t){return new z3({check:"string_format",format:"includes",...Q(t),includes:e})}function dp(e,t){return new E3({check:"string_format",format:"starts_with",...Q(t),prefix:e})}function pp(e,t){return new A3({check:"string_format",format:"ends_with",...Q(t),suffix:e})}function j7(e,t,r){return new M3({check:"property",property:e,schema:t,...Q(r)})}function mp(e,t){return new D3({check:"mime_type",mime:e,...Q(t)})}function Kn(e){return new N3({check:"overwrite",tx:e})}function fp(e){return Kn(t=>t.normalize(e))}function hp(){return Kn(e=>e.trim())}function gp(){return Kn(e=>e.toLowerCase())}function vp(){return Kn(e=>e.toUpperCase())}function yp(){return Kn(e=>Wg(e))}function U7(e,t,r){return new e({type:"array",element:t,...Q(r)})}function L7(e,t){return new e({type:"file",...Q(t)})}function F7(e,t,r){let o=Q(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function B7(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Q(r)})}function Z7(e){let t=Bj(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Ra(o,r.value,t._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(Ra(n))}},e(r.value,r)));return t}function Bj(e,t){let r=new rt({check:"custom",...Q(t)});return r._zod.check=e,r}function V7(e){let t=new rt({check:"describe"});return t._zod.onattach=[r=>{let o=mr.get(r)??{};mr.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function G7(e){let t=new rt({check:"meta"});return t._zod.onattach=[r=>{let o=mr.get(r)??{};mr.add(r,{...o,...e})}],t._zod.check=()=>{},t}function q7(e,t){let r=Q(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));let i=new Set(o),a=new Set(n),s=e.Codec??op,l=e.Boolean??rp,u=e.String??Oa,c=new u({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),p=new s({type:"pipe",in:c,out:d,transform:((m,g)=>{let x=m;return r.case!=="sensitive"&&(x=x.toLowerCase()),i.has(x)?!0:a.has(x)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:g.value,inst:p,continue:!1}),{})}),reverseTransform:((m,g)=>m===!0?o[0]||"true":n[0]||"false"),error:r.error});return p}function Yl(e,t,r,o={}){let n=Q(o),i={...Q(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function La(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??mr,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function qe(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let c={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,c);else{let p=a.schema,m=t.processors[n.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,p,c)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),qe(d,t,c),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&Kt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Fa(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let l=o.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,p=e.external.uri??(g=>g);if(d)return{ref:p(d)};let m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${p("__shared")}#/${s}/${m}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,c=a[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let c=s.schema;for(let d in c)delete c[d];c.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root> 41 42Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function Ba(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let s=e.seen.get(a);if(s.ref===null)return;let l=s.def??s.schema,u={...l},c=s.ref;if(s.ref=null,c){o(c);let p=e.seen.get(c),m=p.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(m)):Object.assign(l,m),Object.assign(l,u),a._zod.parent===c)for(let x in l)x==="$ref"||x==="allOf"||x in u||delete l[x];if(m.$ref&&p.def)for(let x in l)x==="$ref"||x==="allOf"||x in p.def&&JSON.stringify(l[x])===JSON.stringify(p.def[x])&&delete l[x]}let d=a._zod.parent;if(d&&d!==c){o(d);let p=e.seen.get(d);if(p?.schema.$ref&&(l.$ref=p.schema.$ref,p.def))for(let m in l)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(l[m])===JSON.stringify(p.def[m])&&delete l[m]}e.override({zodSchema:a,jsonSchema:l,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ql(t,"input",e.processors),output:Ql(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Kt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Kt(o.element,r);if(o.type==="set")return Kt(o.valueType,r);if(o.type==="lazy")return Kt(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Kt(o.innerType,r);if(o.type==="intersection")return Kt(o.left,r)||Kt(o.right,r);if(o.type==="record"||o.type==="map")return Kt(o.keyType,r)||Kt(o.valueType,r);if(o.type==="pipe")return Kt(o.in,r)||Kt(o.out,r);if(o.type==="object"){for(let n in o.shape)if(Kt(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(Kt(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(Kt(n,r))return!0;return!!(o.rest&&Kt(o.rest,r))}return!1}var W7=(e,t={})=>r=>{let o=La({...r,processors:t});return qe(e,o),Fa(o,e),Ba(o,e)},Ql=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=La({...n??{},target:i,io:t,processors:r});return qe(e,a),Fa(a,e),Ba(a,e)};var Zj={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sy=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=Zj[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?n.pattern=c[0].source:c.length>1&&(n.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},ly=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c),typeof i=="number"&&(n.minimum=i,typeof c=="number"&&t.target!=="draft-04"&&(c>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u),typeof a=="number"&&(n.maximum=a,typeof u=="number"&&t.target!=="draft-04"&&(u<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},uy=(e,t,r,o)=>{r.type="boolean"},cy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},dy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},py=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},my=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},fy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},hy=(e,t,r,o)=>{r.not={}},gy=(e,t,r,o)=>{},vy=(e,t,r,o)=>{},yy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},by=(e,t,r,o)=>{let n=e._zod.def,i=Rl(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},xy=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},wy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},_y=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},ky=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:l}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(n,i)},Sy=(e,t,r,o)=>{r.type="boolean"},$y=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Iy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ty=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Py=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Cy=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},zy=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=qe(i.element,t,{...o,path:[...o.path,"items"]})},Ey=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let u in a)n.properties[u]=qe(a[u],t,{...o,path:[...o.path,"properties",u]});let s=new Set(Object.keys(a)),l=new Set([...s].filter(u=>{let c=i.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=qe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},bp=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,l)=>qe(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=a:r.anyOf=a},Ay=(e,t,r,o)=>{let n=e._zod.def,i=qe(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=qe(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=l},My=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((p,m)=>qe(p,t,{...o,path:[...o.path,a,m]})),u=i.rest?qe(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:l},u&&n.items.anyOf.push(u),n.minItems=l.length,u||(n.maxItems=l.length)):(n.items=l,u&&(n.additionalItems=u));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(n.minItems=c),typeof d=="number"&&(n.maxItems=d)},Dy=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,l=a._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let c=qe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of l)n.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=qe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=qe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let u=a._zod.values;if(u){let c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(n.required=c)}},Ny=(e,t,r,o)=>{let n=e._zod.def,i=qe(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Ry=(e,t,r,o)=>{let n=e._zod.def;qe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Oy=(e,t,r,o)=>{let n=e._zod.def;qe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},jy=(e,t,r,o)=>{let n=e._zod.def;qe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Uy=(e,t,r,o)=>{let n=e._zod.def;qe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Ly=(e,t,r,o)=>{let n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;qe(i,t,o);let a=t.seen.get(e);a.ref=i},Fy=(e,t,r,o)=>{let n=e._zod.def;qe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},By=(e,t,r,o)=>{let n=e._zod.def;qe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},xp=(e,t,r,o)=>{let n=e._zod.def;qe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Zy=(e,t,r,o)=>{let n=e._zod.innerType;qe(n,t,o);let i=t.seen.get(e);i.ref=n},ay={string:sy,number:ly,boolean:uy,bigint:cy,symbol:dy,null:py,undefined:my,void:fy,never:hy,any:gy,unknown:vy,date:yy,enum:by,literal:xy,nan:wy,template_literal:_y,file:ky,success:Sy,custom:$y,function:Iy,transform:Ty,map:Py,set:Cy,array:zy,object:Ey,union:bp,intersection:Ay,tuple:My,record:Dy,nullable:Ny,nonoptional:Ry,default:Oy,prefault:jy,catch:Uy,pipe:Ly,readonly:Fy,promise:By,optional:xp,lazy:Zy};function wp(e,t){if("_idmap"in e){let o=e,n=La({...t,processors:ay}),i={};for(let l of o._idmap.entries()){let[u,c]=l;qe(c,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let l of o._idmap.entries()){let[u,c]=l;Fa(n,c),a[u]=Ba(n,c)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:i}}return{schemas:a}}let r=La({...t,processors:ay});return qe(e,r),Fa(r,e),Ba(r,e)}var tu={};cr(tu,{ZodAny:()=>m8,ZodArray:()=>v8,ZodBase64:()=>m1,ZodBase64URL:()=>f1,ZodBigInt:()=>Ap,ZodBigIntFormat:()=>v1,ZodBoolean:()=>Ep,ZodCIDRv4:()=>d1,ZodCIDRv6:()=>p1,ZodCUID:()=>o1,ZodCUID2:()=>i1,ZodCatch:()=>U8,ZodCodec:()=>I1,ZodCustom:()=>Op,ZodCustomStringFormat:()=>nu,ZodDate:()=>b1,ZodDefault:()=>M8,ZodDiscriminatedUnion:()=>b8,ZodE164:()=>h1,ZodEmail:()=>t1,ZodEmoji:()=>r1,ZodEnum:()=>ru,ZodExactOptional:()=>z8,ZodFile:()=>P8,ZodFunction:()=>H8,ZodGUID:()=>Sp,ZodIPv4:()=>u1,ZodIPv6:()=>c1,ZodIntersection:()=>x8,ZodJWT:()=>g1,ZodKSUID:()=>l1,ZodLazy:()=>G8,ZodLiteral:()=>T8,ZodMAC:()=>a8,ZodMap:()=>$8,ZodNaN:()=>F8,ZodNanoID:()=>n1,ZodNever:()=>h8,ZodNonOptional:()=>S1,ZodNull:()=>d8,ZodNullable:()=>A8,ZodNumber:()=>zp,ZodNumberFormat:()=>Va,ZodObject:()=>Dp,ZodOptional:()=>k1,ZodPipe:()=>$1,ZodPrefault:()=>N8,ZodPromise:()=>W8,ZodReadonly:()=>B8,ZodRecord:()=>Rp,ZodSet:()=>I8,ZodString:()=>Pp,ZodStringFormat:()=>Ke,ZodSuccess:()=>j8,ZodSymbol:()=>u8,ZodTemplateLiteral:()=>V8,ZodTransform:()=>C8,ZodTuple:()=>_8,ZodType:()=>Pe,ZodULID:()=>a1,ZodURL:()=>Cp,ZodUUID:()=>Xn,ZodUndefined:()=>c8,ZodUnion:()=>Np,ZodUnknown:()=>f8,ZodVoid:()=>g8,ZodXID:()=>s1,ZodXor:()=>y8,_ZodString:()=>e1,_default:()=>D8,_function:()=>XU,any:()=>CU,array:()=>Mp,base64:()=>pU,base64url:()=>mU,bigint:()=>SU,boolean:()=>l8,catch:()=>L8,check:()=>YU,cidrv4:()=>cU,cidrv6:()=>dU,codec:()=>HU,cuid:()=>rU,cuid2:()=>nU,custom:()=>QU,date:()=>EU,describe:()=>eL,discriminatedUnion:()=>OU,e164:()=>fU,email:()=>qj,emoji:()=>eU,enum:()=>w1,exactOptional:()=>E8,file:()=>VU,float32:()=>xU,float64:()=>wU,function:()=>XU,guid:()=>Wj,hash:()=>bU,hex:()=>yU,hostname:()=>vU,httpUrl:()=>Qj,instanceof:()=>rL,int:()=>Qy,int32:()=>_U,int64:()=>$U,intersection:()=>w8,ipv4:()=>sU,ipv6:()=>uU,json:()=>oL,jwt:()=>hU,keyof:()=>AU,ksuid:()=>aU,lazy:()=>q8,literal:()=>ZU,looseObject:()=>NU,looseRecord:()=>UU,mac:()=>lU,map:()=>LU,meta:()=>tL,nan:()=>WU,nanoid:()=>tU,nativeEnum:()=>BU,never:()=>y1,nonoptional:()=>O8,null:()=>p8,nullable:()=>Ip,nullish:()=>GU,number:()=>s8,object:()=>MU,optional:()=>$p,partialRecord:()=>jU,pipe:()=>Tp,prefault:()=>R8,preprocess:()=>iL,promise:()=>KU,readonly:()=>Z8,record:()=>S8,refine:()=>J8,set:()=>FU,strictObject:()=>DU,string:()=>Yy,stringFormat:()=>gU,stringbool:()=>nL,success:()=>qU,superRefine:()=>K8,symbol:()=>TU,templateLiteral:()=>JU,transform:()=>_1,tuple:()=>k8,uint32:()=>kU,uint64:()=>IU,ulid:()=>oU,undefined:()=>PU,union:()=>x1,unknown:()=>Za,url:()=>Yj,uuid:()=>Hj,uuidv4:()=>Jj,uuidv6:()=>Kj,uuidv7:()=>Xj,void:()=>zU,xid:()=>iU,xor:()=>RU});var _p={};cr(_p,{endsWith:()=>pp,gt:()=>Zo,gte:()=>Tr,includes:()=>cp,length:()=>Xl,lowercase:()=>lp,lt:()=>Bo,lte:()=>on,maxLength:()=>Kl,maxSize:()=>Ua,mime:()=>mp,minLength:()=>Ui,minSize:()=>Vo,multipleOf:()=>ja,negative:()=>N7,nonnegative:()=>O7,nonpositive:()=>R7,normalize:()=>fp,overwrite:()=>Kn,positive:()=>D7,property:()=>j7,regex:()=>sp,size:()=>Jl,slugify:()=>yp,startsWith:()=>dp,toLowerCase:()=>gp,toUpperCase:()=>vp,trim:()=>hp,uppercase:()=>up});var eu={};cr(eu,{ZodISODate:()=>qy,ZodISODateTime:()=>Vy,ZodISODuration:()=>Ky,ZodISOTime:()=>Hy,date:()=>Wy,datetime:()=>Gy,duration:()=>Xy,time:()=>Jy});var Vy=A("ZodISODateTime",(e,t)=>{a$.init(e,t),Ke.init(e,t)});function Gy(e){return d7(Vy,e)}var qy=A("ZodISODate",(e,t)=>{s$.init(e,t),Ke.init(e,t)});function Wy(e){return p7(qy,e)}var Hy=A("ZodISOTime",(e,t)=>{l$.init(e,t),Ke.init(e,t)});function Jy(e){return m7(Hy,e)}var Ky=A("ZodISODuration",(e,t)=>{u$.init(e,t),Ke.init(e,t)});function Xy(e){return f7(Ky,e)}var H7=(e,t)=>{Wd.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>ev(e,r)},flatten:{value:r=>Qg(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Da,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Da,2)}},isEmpty:{get(){return e.issues.length===0}}})},yae=A("ZodError",H7),Pr=A("ZodError",H7,{Parent:Error});var J7=Bl(Pr),K7=Zl(Pr),X7=Vl(Pr),kp=Gl(Pr),Y7=i3(Pr),Q7=a3(Pr),e8=s3(Pr),t8=l3(Pr),r8=u3(Pr),n8=c3(Pr),o8=d3(Pr),i8=p3(Pr);var Pe=A("ZodType",(e,t)=>(xe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ql(e,"input"),output:Ql(e,"output")}}),e.toJSONSchema=W7(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(G.mergeDefs(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>$r(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>J7(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>X7(e,r,o),e.parseAsync=async(r,o)=>K7(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>kp(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>Y7(e,r,o),e.decode=(r,o)=>Q7(e,r,o),e.encodeAsync=async(r,o)=>e8(e,r,o),e.decodeAsync=async(r,o)=>t8(e,r,o),e.safeEncode=(r,o)=>r8(e,r,o),e.safeDecode=(r,o)=>n8(e,r,o),e.safeEncodeAsync=async(r,o)=>o8(e,r,o),e.safeDecodeAsync=async(r,o)=>i8(e,r,o),e.refine=(r,o)=>e.check(J8(r,o)),e.superRefine=r=>e.check(K8(r)),e.overwrite=r=>e.check(Kn(r)),e.optional=()=>$p(e),e.exactOptional=()=>E8(e),e.nullable=()=>Ip(e),e.nullish=()=>$p(Ip(e)),e.nonoptional=r=>O8(e,r),e.array=()=>Mp(e),e.or=r=>x1([e,r]),e.and=r=>w8(e,r),e.transform=r=>Tp(e,_1(r)),e.default=r=>D8(e,r),e.prefault=r=>R8(e,r),e.catch=r=>L8(e,r),e.pipe=r=>Tp(e,r),e.readonly=()=>Z8(e),e.describe=r=>{let o=e.clone();return mr.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return mr.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return mr.get(e);let o=e.clone();return mr.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),e1=A("_ZodString",(e,t)=>{Oa.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>sy(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(sp(...o)),e.includes=(...o)=>e.check(cp(...o)),e.startsWith=(...o)=>e.check(dp(...o)),e.endsWith=(...o)=>e.check(pp(...o)),e.min=(...o)=>e.check(Ui(...o)),e.max=(...o)=>e.check(Kl(...o)),e.length=(...o)=>e.check(Xl(...o)),e.nonempty=(...o)=>e.check(Ui(1,...o)),e.lowercase=o=>e.check(lp(o)),e.uppercase=o=>e.check(up(o)),e.trim=()=>e.check(hp()),e.normalize=(...o)=>e.check(fp(...o)),e.toLowerCase=()=>e.check(gp()),e.toUpperCase=()=>e.check(vp()),e.slugify=()=>e.check(yp())}),Pp=A("ZodString",(e,t)=>{Oa.init(e,t),e1.init(e,t),e.email=r=>e.check(Lv(t1,r)),e.url=r=>e.check(ap(Cp,r)),e.jwt=r=>e.check(iy(g1,r)),e.emoji=r=>e.check(Gv(r1,r)),e.guid=r=>e.check(ip(Sp,r)),e.uuid=r=>e.check(Fv(Xn,r)),e.uuidv4=r=>e.check(Bv(Xn,r)),e.uuidv6=r=>e.check(Zv(Xn,r)),e.uuidv7=r=>e.check(Vv(Xn,r)),e.nanoid=r=>e.check(qv(n1,r)),e.guid=r=>e.check(ip(Sp,r)),e.cuid=r=>e.check(Wv(o1,r)),e.cuid2=r=>e.check(Hv(i1,r)),e.ulid=r=>e.check(Jv(a1,r)),e.base64=r=>e.check(ry(m1,r)),e.base64url=r=>e.check(ny(f1,r)),e.xid=r=>e.check(Kv(s1,r)),e.ksuid=r=>e.check(Xv(l1,r)),e.ipv4=r=>e.check(Yv(u1,r)),e.ipv6=r=>e.check(Qv(c1,r)),e.cidrv4=r=>e.check(ey(d1,r)),e.cidrv6=r=>e.check(ty(p1,r)),e.e164=r=>e.check(oy(h1,r)),e.datetime=r=>e.check(Gy(r)),e.date=r=>e.check(Wy(r)),e.time=r=>e.check(Jy(r)),e.duration=r=>e.check(Xy(r))});function Yy(e){return u7(Pp,e)}var Ke=A("ZodStringFormat",(e,t)=>{Je.init(e,t),e1.init(e,t)}),t1=A("ZodEmail",(e,t)=>{X3.init(e,t),Ke.init(e,t)});function qj(e){return Lv(t1,e)}var Sp=A("ZodGUID",(e,t)=>{J3.init(e,t),Ke.init(e,t)});function Wj(e){return ip(Sp,e)}var Xn=A("ZodUUID",(e,t)=>{K3.init(e,t),Ke.init(e,t)});function Hj(e){return Fv(Xn,e)}function Jj(e){return Bv(Xn,e)}function Kj(e){return Zv(Xn,e)}function Xj(e){return Vv(Xn,e)}var Cp=A("ZodURL",(e,t)=>{Y3.init(e,t),Ke.init(e,t)});function Yj(e){return ap(Cp,e)}function Qj(e){return ap(Cp,{protocol:/^https?$/,hostname:wn.domain,...G.normalizeParams(e)})}var r1=A("ZodEmoji",(e,t)=>{Q3.init(e,t),Ke.init(e,t)});function eU(e){return Gv(r1,e)}var n1=A("ZodNanoID",(e,t)=>{e$.init(e,t),Ke.init(e,t)});function tU(e){return qv(n1,e)}var o1=A("ZodCUID",(e,t)=>{t$.init(e,t),Ke.init(e,t)});function rU(e){return Wv(o1,e)}var i1=A("ZodCUID2",(e,t)=>{r$.init(e,t),Ke.init(e,t)});function nU(e){return Hv(i1,e)}var a1=A("ZodULID",(e,t)=>{n$.init(e,t),Ke.init(e,t)});function oU(e){return Jv(a1,e)}var s1=A("ZodXID",(e,t)=>{o$.init(e,t),Ke.init(e,t)});function iU(e){return Kv(s1,e)}var l1=A("ZodKSUID",(e,t)=>{i$.init(e,t),Ke.init(e,t)});function aU(e){return Xv(l1,e)}var u1=A("ZodIPv4",(e,t)=>{c$.init(e,t),Ke.init(e,t)});function sU(e){return Yv(u1,e)}var a8=A("ZodMAC",(e,t)=>{p$.init(e,t),Ke.init(e,t)});function lU(e){return c7(a8,e)}var c1=A("ZodIPv6",(e,t)=>{d$.init(e,t),Ke.init(e,t)});function uU(e){return Qv(c1,e)}var d1=A("ZodCIDRv4",(e,t)=>{m$.init(e,t),Ke.init(e,t)});function cU(e){return ey(d1,e)}var p1=A("ZodCIDRv6",(e,t)=>{f$.init(e,t),Ke.init(e,t)});function dU(e){return ty(p1,e)}var m1=A("ZodBase64",(e,t)=>{g$.init(e,t),Ke.init(e,t)});function pU(e){return ry(m1,e)}var f1=A("ZodBase64URL",(e,t)=>{v$.init(e,t),Ke.init(e,t)});function mU(e){return ny(f1,e)}var h1=A("ZodE164",(e,t)=>{y$.init(e,t),Ke.init(e,t)});function fU(e){return oy(h1,e)}var g1=A("ZodJWT",(e,t)=>{b$.init(e,t),Ke.init(e,t)});function hU(e){return iy(g1,e)}var nu=A("ZodCustomStringFormat",(e,t)=>{x$.init(e,t),Ke.init(e,t)});function gU(e,t,r={}){return Yl(nu,e,t,r)}function vU(e){return Yl(nu,"hostname",wn.hostname,e)}function yU(e){return Yl(nu,"hex",wn.hex,e)}function bU(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=wn[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Yl(nu,o,n,t)}var zp=A("ZodNumber",(e,t)=>{Dv.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>ly(e,o,n,i),e.gt=(o,n)=>e.check(Zo(o,n)),e.gte=(o,n)=>e.check(Tr(o,n)),e.min=(o,n)=>e.check(Tr(o,n)),e.lt=(o,n)=>e.check(Bo(o,n)),e.lte=(o,n)=>e.check(on(o,n)),e.max=(o,n)=>e.check(on(o,n)),e.int=o=>e.check(Qy(o)),e.safe=o=>e.check(Qy(o)),e.positive=o=>e.check(Zo(0,o)),e.nonnegative=o=>e.check(Tr(0,o)),e.negative=o=>e.check(Bo(0,o)),e.nonpositive=o=>e.check(on(0,o)),e.multipleOf=(o,n)=>e.check(ja(o,n)),e.step=(o,n)=>e.check(ja(o,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function s8(e){return h7(zp,e)}var Va=A("ZodNumberFormat",(e,t)=>{w$.init(e,t),zp.init(e,t)});function Qy(e){return g7(Va,e)}function xU(e){return v7(Va,e)}function wU(e){return y7(Va,e)}function _U(e){return b7(Va,e)}function kU(e){return x7(Va,e)}var Ep=A("ZodBoolean",(e,t)=>{rp.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>uy(e,r,o,n)});function l8(e){return w7(Ep,e)}var Ap=A("ZodBigInt",(e,t)=>{Nv.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>cy(e,o,n,i),e.gte=(o,n)=>e.check(Tr(o,n)),e.min=(o,n)=>e.check(Tr(o,n)),e.gt=(o,n)=>e.check(Zo(o,n)),e.gte=(o,n)=>e.check(Tr(o,n)),e.min=(o,n)=>e.check(Tr(o,n)),e.lt=(o,n)=>e.check(Bo(o,n)),e.lte=(o,n)=>e.check(on(o,n)),e.max=(o,n)=>e.check(on(o,n)),e.positive=o=>e.check(Zo(BigInt(0),o)),e.negative=o=>e.check(Bo(BigInt(0),o)),e.nonpositive=o=>e.check(on(BigInt(0),o)),e.nonnegative=o=>e.check(Tr(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(ja(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function SU(e){return _7(Ap,e)}var v1=A("ZodBigIntFormat",(e,t)=>{_$.init(e,t),Ap.init(e,t)});function $U(e){return k7(v1,e)}function IU(e){return S7(v1,e)}var u8=A("ZodSymbol",(e,t)=>{k$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>dy(e,r,o,n)});function TU(e){return $7(u8,e)}var c8=A("ZodUndefined",(e,t)=>{S$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>my(e,r,o,n)});function PU(e){return I7(c8,e)}var d8=A("ZodNull",(e,t)=>{$$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>py(e,r,o,n)});function p8(e){return T7(d8,e)}var m8=A("ZodAny",(e,t)=>{I$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>gy(e,r,o,n)});function CU(){return P7(m8)}var f8=A("ZodUnknown",(e,t)=>{T$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vy(e,r,o,n)});function Za(){return C7(f8)}var h8=A("ZodNever",(e,t)=>{P$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>hy(e,r,o,n)});function y1(e){return z7(h8,e)}var g8=A("ZodVoid",(e,t)=>{C$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fy(e,r,o,n)});function zU(e){return E7(g8,e)}var b1=A("ZodDate",(e,t)=>{z$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>yy(e,o,n,i),e.min=(o,n)=>e.check(Tr(o,n)),e.max=(o,n)=>e.check(on(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function EU(e){return A7(b1,e)}var v8=A("ZodArray",(e,t)=>{E$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zy(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(Ui(r,o)),e.nonempty=r=>e.check(Ui(1,r)),e.max=(r,o)=>e.check(Kl(r,o)),e.length=(r,o)=>e.check(Xl(r,o)),e.unwrap=()=>e.element});function Mp(e,t){return U7(v8,e,t)}function AU(e){let t=e._zod.def.shape;return w1(Object.keys(t))}var Dp=A("ZodObject",(e,t)=>{D$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ey(e,r,o,n),G.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>w1(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Za()}),e.loose=()=>e.clone({...e._zod.def,catchall:Za()}),e.strict=()=>e.clone({...e._zod.def,catchall:y1()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>G.extend(e,r),e.safeExtend=r=>G.safeExtend(e,r),e.merge=r=>G.merge(e,r),e.pick=r=>G.pick(e,r),e.omit=r=>G.omit(e,r),e.partial=(...r)=>G.partial(k1,e,r[0]),e.required=(...r)=>G.required(S1,e,r[0])});function MU(e,t){let r={type:"object",shape:e??{},...G.normalizeParams(t)};return new Dp(r)}function DU(e,t){return new Dp({type:"object",shape:e,catchall:y1(),...G.normalizeParams(t)})}function NU(e,t){return new Dp({type:"object",shape:e,catchall:Za(),...G.normalizeParams(t)})}var Np=A("ZodUnion",(e,t)=>{np.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>bp(e,r,o,n),e.options=t.options});function x1(e,t){return new Np({type:"union",options:e,...G.normalizeParams(t)})}var y8=A("ZodXor",(e,t)=>{Np.init(e,t),N$.init(e,t),e._zod.processJSONSchema=(r,o,n)=>bp(e,r,o,n),e.options=t.options});function RU(e,t){return new y8({type:"union",options:e,inclusive:!1,...G.normalizeParams(t)})}var b8=A("ZodDiscriminatedUnion",(e,t)=>{Np.init(e,t),R$.init(e,t)});function OU(e,t,r){return new b8({type:"union",options:t,discriminator:e,...G.normalizeParams(r)})}var x8=A("ZodIntersection",(e,t)=>{O$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ay(e,r,o,n)});function w8(e,t){return new x8({type:"intersection",left:e,right:t})}var _8=A("ZodTuple",(e,t)=>{Rv.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>My(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function k8(e,t,r){let o=t instanceof xe,n=o?r:t,i=o?t:null;return new _8({type:"tuple",items:e,rest:i,...G.normalizeParams(n)})}var Rp=A("ZodRecord",(e,t)=>{j$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dy(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function S8(e,t,r){return new Rp({type:"record",keyType:e,valueType:t,...G.normalizeParams(r)})}function jU(e,t,r){let o=$r(e);return o._zod.values=void 0,new Rp({type:"record",keyType:o,valueType:t,...G.normalizeParams(r)})}function UU(e,t,r){return new Rp({type:"record",keyType:e,valueType:t,mode:"loose",...G.normalizeParams(r)})}var $8=A("ZodMap",(e,t)=>{U$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Py(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Vo(...r)),e.nonempty=r=>e.check(Vo(1,r)),e.max=(...r)=>e.check(Ua(...r)),e.size=(...r)=>e.check(Jl(...r))});function LU(e,t,r){return new $8({type:"map",keyType:e,valueType:t,...G.normalizeParams(r)})}var I8=A("ZodSet",(e,t)=>{L$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Cy(e,r,o,n),e.min=(...r)=>e.check(Vo(...r)),e.nonempty=r=>e.check(Vo(1,r)),e.max=(...r)=>e.check(Ua(...r)),e.size=(...r)=>e.check(Jl(...r))});function FU(e,t){return new I8({type:"set",valueType:e,...G.normalizeParams(t)})}var ru=A("ZodEnum",(e,t)=>{F$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>by(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ru({...t,checks:[],...G.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ru({...t,checks:[],...G.normalizeParams(n),entries:i})}});function w1(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new ru({type:"enum",entries:r,...G.normalizeParams(t)})}function BU(e,t){return new ru({type:"enum",entries:e,...G.normalizeParams(t)})}var T8=A("ZodLiteral",(e,t)=>{B$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xy(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
42(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ZU(e,t){return new T8({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(t)})}var P8=A("ZodFile",(e,t)=>{Z$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ky(e,r,o,n),e.min=(r,o)=>e.check(Vo(r,o)),e.max=(r,o)=>e.check(Ua(r,o)),e.mime=(r,o)=>e.check(mp(Array.isArray(r)?r:[r],o))});function VU(e){return L7(P8,e)}var C8=A("ZodTransform",(e,t)=>{V$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ty(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ri(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(G.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(G.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function _1(e){return new C8({type:"transform",transform:e})}var k1=A("ZodOptional",(e,t)=>{Ov.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function $p(e){return new k1({type:"optional",innerType:e})}var z8=A("ZodExactOptional",(e,t)=>{G$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xp(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function E8(e){return new z8({type:"optional",innerType:e})}var A8=A("ZodNullable",(e,t)=>{q$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ny(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ip(e){return new A8({type:"nullable",innerType:e})}function GU(e){return $p(Ip(e))}var M8=A("ZodDefault",(e,t)=>{W$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Oy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function D8(e,t){return new M8({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var N8=A("ZodPrefault",(e,t)=>{H$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>jy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function R8(e,t){return new N8({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var S1=A("ZodNonOptional",(e,t)=>{J$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ry(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function O8(e,t){return new S1({type:"nonoptional",innerType:e,...G.normalizeParams(t)})}var j8=A("ZodSuccess",(e,t)=>{K$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Sy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function qU(e){return new j8({type:"success",innerType:e})}var U8=A("ZodCatch",(e,t)=>{X$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Uy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function L8(e,t){return new U8({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var F8=A("ZodNaN",(e,t)=>{Y$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wy(e,r,o,n)});function WU(e){return M7(F8,e)}var $1=A("ZodPipe",(e,t)=>{Q$.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ly(e,r,o,n),e.in=t.in,e.out=t.out});function Tp(e,t){return new $1({type:"pipe",in:e,out:t})}var I1=A("ZodCodec",(e,t)=>{$1.init(e,t),op.init(e,t)});function HU(e,t,r){return new I1({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var B8=A("ZodReadonly",(e,t)=>{e7.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Fy(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Z8(e){return new B8({type:"readonly",innerType:e})}var V8=A("ZodTemplateLiteral",(e,t)=>{t7.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_y(e,r,o,n)});function JU(e,t){return new V8({type:"template_literal",parts:e,...G.normalizeParams(t)})}var G8=A("ZodLazy",(e,t)=>{o7.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zy(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function q8(e){return new G8({type:"lazy",getter:e})}var W8=A("ZodPromise",(e,t)=>{n7.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>By(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function KU(e){return new W8({type:"promise",innerType:e})}var H8=A("ZodFunction",(e,t)=>{r7.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Iy(e,r,o,n)});function XU(e){return new H8({type:"function",input:Array.isArray(e?.input)?k8(e?.input):e?.input??Mp(Za()),output:e?.output??Za()})}var Op=A("ZodCustom",(e,t)=>{i7.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$y(e,r,o,n)});function YU(e){let t=new rt({check:"custom"});return t._zod.check=e,t}function QU(e,t){return F7(Op,e??(()=>!0),t)}function J8(e,t={}){return B7(Op,e,t)}function K8(e){return Z7(e)}var eL=V7,tL=G7;function rL(e,t={}){let r=new Op({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...G.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var nL=(...e)=>q7({Codec:I1,Boolean:Ep,String:Pp},...e);function oL(e){let t=q8(()=>x1([Yy(e),s8(),l8(),p8(),Mp(t),S8(Yy(),t)]));return t}function iL(e,t){return Tp(_1(e),t)}var X8;X8||(X8={});var Iae={...tu,..._p,iso:eu};Rt(jv());var Re;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let i={};for(let a of n)i[a]=a;return i},e.getValidEnumValues=n=>{let i=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),a={};for(let s of i)a[s]=n[s];return e.objectValues(a)},e.objectValues=n=>e.objectKeys(n).map(function(i){return n[i]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let i=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(a);return i},e.find=(n,i)=>{for(let a of n)if(i(a))return a}
vendor: 1,146 bytes, line 42
42,e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function o(n,i=" | "){return n.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=o,e.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(Re||(Re={}));var Y8;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Y8||(Y8={}));var re=Re.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yn=e=>{switch(typeof e){case"undefined":return re.undefined;case"string":return re.string;case"number":return Number.isNaN(e)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(e)?re.array:e===null?re.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?re.promise:typeof Map<"u"&&e instanceof Map?re.map:typeof Set<"u"&&e instanceof Set?re.set:typeof Date<"u"&&e instanceof Date?re.date:re.object;default:return re.unknown}};
vendor: 5,697 bytes, line 42
42var F=Re.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var Cr=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(i){return i.message},o={_errors:[]},n=i=>{for(let a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(n);else if(a.code==="invalid_return_type")n(a.returnTypeError);else if(a.code==="invalid_arguments")n(a.argumentsError);else if(a.path.length===0)o._errors.push(r(a));else{let s=o,l=0;for(;l<a.path.length;){let u=a.path[l];l===a.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(r(a))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return n(this),o}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Re.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),o=[];for(let n of this.issues)if(n.path.length>0){let i=n.path[0];r[i]=r[i]||[],r[i].push(t(n))}else o.push(t(n));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}};Cr.create=e=>new Cr(e);var cL=(e,t)=>{let r;switch(e.code){case F.invalid_type:e.received===re.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case F.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Re.jsonStringifyReplacer)}`;break;case F.unrecognized_keys:r=`Unrecognized key(s) in object: ${Re.joinValues(e.keys,", ")}`;break;case F.invalid_union:r="Invalid input";break;case F.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Re.joinValues(e.options)}`;break;case F.invalid_enum_value:r=`Invalid enum value. Expected ${Re.joinValues(e.options)}, received '${e.received}'`;break;case F.invalid_arguments:r="Invalid function arguments";break;case F.invalid_return_type:r="Invalid function return type";break;case F.invalid_date:r="Invalid date";break;case F.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Re.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case F.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case F.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case F.custom:r="Invalid input";break;case F.invalid_intersection_types:r="Intersection results could not be merged";break;case F.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case F.not_finite:r="Number must be finite";break;default:r=t.defaultError,Re.assertNever(e)}return{message:r}},Go=cL;var dL=Go;function ou(){return dL}var jp=e=>{let{data:t,path:r,errorMaps:o,issueData:n}=e,i=[...r,...n.path||[]],a={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let s="",l=o.filter(u=>!!u).slice().reverse();for(let u of l)s=u(a,{data:t,defaultError:s}).message;return{...n,path:i,message:s}};function X(e,t){let r=ou(),o=jp({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Go?void 0:Go].filter(n=>!!n)});e.common.issues.push(o)}var Vt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let o=[];for(let n of r){if(n.status==="aborted")return fe;n.status==="dirty"&&t.dirty(),o.push(n.value)}return{status:t.value,value:o}}static async mergeObjectAsync(t,r){let o=[];for(let n of r){let i=await n.key,a=await n.value;o.push({key:i,value:a})}return e.mergeObjectSync(t,o)}static mergeObjectSync(t,r){let o={};for(let n of r){let{key:i,value:a}=n;
vendor: 48,464 bytes, line 42
42if(i.status==="aborted"||a.status==="aborted")return fe;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||n.alwaysSet)&&(o[i.value]=a.value)}return{status:t.value,value:o}}},fe=Object.freeze({status:"aborted"}),Ga=e=>({status:"dirty",value:e}),Xt=e=>({status:"valid",value:e}),T1=e=>e.status==="aborted",P1=e=>e.status==="dirty",Fi=e=>e.status==="valid",iu=e=>typeof Promise<"u"&&e instanceof Promise;var ie;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ie||(ie={}));var Zr=class{constructor(t,r,o,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=o,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Q8=(e,t)=>{if(Fi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Cr(e.common.issues);return this._error=r,this._error}}};function Se(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:o,description:n}=e;if(t&&(r||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(a,s)=>{let{message:l}=e;return a.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??o??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:l??r??s.defaultError}},description:n}}var Me=class{get description(){return this._def.description}_getType(t){return Yn(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Vt,ctx:{common:t.parent.common,data:t.data,parsedType:Yn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(iu(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let o=this.safeParse(t,r);if(o.success)return o.data;throw o.error}safeParse(t,r){let o={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yn(t)},n=this._parseSync({data:t,path:o.path,parent:o});return Q8(o,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yn(t)};if(!this["~standard"].async)try{let o=this._parseSync({data:t,path:[],parent:r});return Fi(o)?{value:o.value}:{issues:r.common.issues}}catch(o){o?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(o=>Fi(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(t,r){let o=await this.safeParseAsync(t,r);if(o.success)return o.data;throw o.error}async safeParseAsync(t,r){let o={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yn(t)},n=this._parse({data:t,path:o.path,parent:o}),i=await(iu(n)?n:Promise.resolve(n));return Q8(o,i)}refine(t,r){let o=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,i)=>{let a=t(n),s=()=>i.addIssue({code:F.custom,...o(n)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,r){return this._refinement((o,n)=>t(o)?!0:(n.addIssue(typeof r=="function"?r(o,n):r),!1))}_refinement(t){return new sn({schema:this,typeName:q.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return an.create(this,this._def)}nullable(){return to.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wo.create(this)}promise(){return Bi.create(this,this._def)}or(t){return Ka.create([this,t],this._def)}and(t){return Xa.create(this,t,this._def)}transform(t){return new sn({...Se(this._def),schema:this,typeName:q.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new rs({...Se(this._def),innerType:this,defaultValue:r,typeName:q.ZodDefault})}brand(){return new Up({typeName:q.ZodBranded,type:this,...Se(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new ns({...Se(this._def),innerType:this,catchValue:r,typeName:q.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Lp.create(this,t)}readonly(){return os.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},pL=/^c[^\s-]{8,}$/i,mL=/^[0-9a-z]+$/,fL=/^[0-9A-HJKMNP-TV-Z]{26}$/i,hL=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,gL=/^[a-z0-9_-]{21}$/i,vL=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,yL=/^[-+]?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)?)??$/,bL=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,xL="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",C1,wL=/^(?:(?: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])$/,_L=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,kL=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,SL=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$L=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,IL=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,eI="((\\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])))",TL=new RegExp(`^${eI}$`);function tI(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function PL(e){return new RegExp(`^${tI(e)}$`)}function CL(e){let t=`${eI}T${tI(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function zL(e,t){return!!((t==="v4"||!t)&&wL.test(e)||(t==="v6"||!t)&&kL.test(e))}function EL(e,t){if(!vL.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(o));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function AL(e,t){return!!((t==="v4"||!t)&&_L.test(e)||(t==="v6"||!t)&&SL.test(e))}var Wa=class e extends Me{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==re.string){let i=this._getOrReturnCtx(t);return X(i,{code:F.invalid_type,expected:re.string,received:i.parsedType}),fe}let o=new Vt,n;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(n=this._getOrReturnCtx(t,n),X(n,{code:F.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="max")t.data.length>i.value&&(n=this._getOrReturnCtx(t,n),X(n,{code:F.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="length"){let a=t.data.length>i.value,s=t.data.length<i.value;(a||s)&&(n=this._getOrReturnCtx(t,n),a?X(n,{code:F.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&X(n,{code:F.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),o.dirty())}else if(i.kind==="email")bL.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"email",code:F.invalid_string,message:i.message}),o.dirty());else if(i.kind==="emoji")C1||(C1=new RegExp(xL,"u")),C1.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"emoji",code:F.invalid_string,message:i.message}),o.dirty());else if(i.kind==="uuid")hL.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"uuid",code:F.invalid_string,message:i.message}),o.dirty());else if(i.kind==="nanoid")gL.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"nanoid",code:F.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid")pL.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"cuid",code:F.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid2")mL.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"cuid2",code:F.invalid_string,message:i.message}),o.dirty());else if(i.kind==="ulid")fL.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"ulid",code:F.invalid_string,message:i.message}),o.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),X(n,{validation:"url",code:F.invalid_string,message:i.message}),o.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"regex",code:F.invalid_string,message:i.message}),o.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(t,n),X(n,{code:F.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),o.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(n=this._getOrReturnCtx(t,n),X(n,{code:F.invalid_string,validation:{startsWith:i.value},message:i.message}),o.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(n=this._getOrReturnCtx(t,n),X(n,{code:F.invalid_string,validation:{endsWith:i.value},message:i.message}),o.dirty()):i.kind==="datetime"?CL(i).test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{code:F.invalid_string,validation:"datetime",message:i.message}),o.dirty()):i.kind==="date"?TL.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{code:F.invalid_string,validation:"date",message:i.message}),o.dirty()):i.kind==="time"?PL(i).test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{code:F.invalid_string,validation:"time",message:i.message}),o.dirty()):i.kind==="duration"?yL.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"duration",code:F.invalid_string,message:i.message}),o.dirty()):i.kind==="ip"?zL(t.data,i.version)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"ip",code:F.invalid_string,message:i.message}),o.dirty()):i.kind==="jwt"?EL(t.data,i.alg)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"jwt",code:F.invalid_string,message:i.message}),o.dirty()):i.kind==="cidr"?AL(t.data,i.version)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"cidr",code:F.invalid_string,message:i.message}),o.dirty()):i.kind==="base64"?$L.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"base64",code:F.invalid_string,message:i.message}),o.dirty()):i.kind==="base64url"?IL.test(t.data)||(n=this._getOrReturnCtx(t,n),X(n,{validation:"base64url",code:F.invalid_string,message:i.message}),o.dirty()):Re.assertNever(i);return{status:o.value,value:t.data}}_regex(t,r,o){return this.refinement(n=>t.test(n),{validation:r,code:F.invalid_string,...ie.errToObj(o)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ie.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ie.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ie.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ie.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ie.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ie.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ie.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ie.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ie.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ie.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ie.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ie.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ie.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...ie.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...ie.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ie.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...ie.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...ie.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...ie.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...ie.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...ie.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...ie.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...ie.errToObj(r)})}nonempty(t){return this.min(1,ie.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Wa.create=e=>new Wa({checks:[],typeName:q.ZodString,coerce:e?.coerce??!1,...Se(e)});function ML(e,t){let r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,n=r>o?r:o,i=Number.parseInt(e.toFixed(n).replace(".","")),a=Number.parseInt(t.toFixed(n).replace(".",""));return i%a/10**n}var au=class e extends Me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==re.number){let i=this._getOrReturnCtx(t);return X(i,{code:F.invalid_type,expected:re.number,received:i.parsedType}),fe}let o,n=new Vt;for(let i of this._def.checks)i.kind==="int"?Re.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{code:F.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),X(o,{code:F.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),X(o,{code:F.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="multipleOf"?ML(t.data,i.value)!==0&&(o=this._getOrReturnCtx(t,o),X(o,{code:F.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{code:F.not_finite,message:i.message}),n.dirty()):Re.assertNever(i);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,ie.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ie.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ie.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ie.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:ie.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ie.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ie.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ie.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ie.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ie.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ie.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:ie.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ie.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ie.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Re.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(t===null||o.value<t)&&(t=o.value)}return Number.isFinite(r)&&Number.isFinite(t)}};au.create=e=>new au({checks:[],typeName:q.ZodNumber,coerce:e?.coerce||!1,...Se(e)});var su=class e extends Me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==re.bigint)return this._getInvalidInput(t);let o,n=new Vt;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),X(o,{code:F.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),X(o,{code:F.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(o=this._getOrReturnCtx(t,o),X(o,{code:F.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):Re.assertNever(i);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return X(r,{code:F.invalid_type,expected:re.bigint,received:r.parsedType}),fe}gte(t,r){return this.setLimit("min",t,!0,ie.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ie.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ie.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ie.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:ie.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ie.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ie.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ie.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ie.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ie.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};su.create=e=>new su({checks:[],typeName:q.ZodBigInt,coerce:e?.coerce??!1,...Se(e)});var lu=class extends Me{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==re.boolean){let o=this._getOrReturnCtx(t);return X(o,{code:F.invalid_type,expected:re.boolean,received:o.parsedType}),fe}return Xt(t.data)}};lu.create=e=>new lu({typeName:q.ZodBoolean,coerce:e?.coerce||!1,...Se(e)});var uu=class e extends Me{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==re.date){let i=this._getOrReturnCtx(t);return X(i,{code:F.invalid_type,expected:re.date,received:i.parsedType}),fe}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return X(i,{code:F.invalid_date}),fe}let o=new Vt,n;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(n=this._getOrReturnCtx(t,n),X(n,{code:F.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),o.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(n=this._getOrReturnCtx(t,n),X(n,{code:F.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),o.dirty()):Re.assertNever(i);return{status:o.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:ie.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:ie.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};uu.create=e=>new uu({checks:[],coerce:e?.coerce||!1,typeName:q.ZodDate,...Se(e)});var cu=class extends Me{_parse(t){if(this._getType(t)!==re.symbol){let o=this._getOrReturnCtx(t);return X(o,{code:F.invalid_type,expected:re.symbol,received:o.parsedType}),fe}return Xt(t.data)}};cu.create=e=>new cu({typeName:q.ZodSymbol,...Se(e)});var Ha=class extends Me{_parse(t){if(this._getType(t)!==re.undefined){let o=this._getOrReturnCtx(t);return X(o,{code:F.invalid_type,expected:re.undefined,received:o.parsedType}),fe}return Xt(t.data)}};Ha.create=e=>new Ha({typeName:q.ZodUndefined,...Se(e)});var Ja=class extends Me{_parse(t){if(this._getType(t)!==re.null){let o=this._getOrReturnCtx(t);return X(o,{code:F.invalid_type,expected:re.null,received:o.parsedType}),fe}return Xt(t.data)}};Ja.create=e=>new Ja({typeName:q.ZodNull,...Se(e)});var du=class extends Me{constructor(){super(...arguments),this._any=!0}_parse(t){return Xt(t.data)}};du.create=e=>new du({typeName:q.ZodAny,...Se(e)});var qo=class extends Me{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Xt(t.data)}};qo.create=e=>new qo({typeName:q.ZodUnknown,...Se(e)});var _n=class extends Me{_parse(t){let r=this._getOrReturnCtx(t);return X(r,{code:F.invalid_type,expected:re.never,received:r.parsedType}),fe}};_n.create=e=>new _n({typeName:q.ZodNever,...Se(e)});var pu=class extends Me{_parse(t){if(this._getType(t)!==re.undefined){let o=this._getOrReturnCtx(t);return X(o,{code:F.invalid_type,expected:re.void,received:o.parsedType}),fe}return Xt(t.data)}};pu.create=e=>new pu({typeName:q.ZodVoid,...Se(e)});var Wo=class e extends Me{_parse(t){let{ctx:r,status:o}=this._processInputParams(t),n=this._def;if(r.parsedType!==re.array)return X(r,{code:F.invalid_type,expected:re.array,received:r.parsedType}),fe;if(n.exactLength!==null){let a=r.data.length>n.exactLength.value,s=r.data.length<n.exactLength.value;(a||s)&&(X(r,{code:a?F.too_big:F.too_small,minimum:s?n.exactLength.value:void 0,maximum:a?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),o.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(X(r,{code:F.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),o.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(X(r,{code:F.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((a,s)=>n.type._parseAsync(new Zr(r,a,r.path,s)))).then(a=>Vt.mergeArray(o,a));let i=[...r.data].map((a,s)=>n.type._parseSync(new Zr(r,a,r.path,s)));return Vt.mergeArray(o,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:ie.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:ie.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:ie.toString(r)}})}nonempty(t){return this.min(1,t)}};Wo.create=(e,t)=>new Wo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...Se(t)});function qa(e){if(e instanceof zr){let t={};for(let r in e.shape){let o=e.shape[r];t[r]=an.create(qa(o))}return new zr({...e._def,shape:()=>t})}else return e instanceof Wo?new Wo({...e._def,type:qa(e.element)}):e instanceof an?an.create(qa(e.unwrap())):e instanceof to?to.create(qa(e.unwrap())):e instanceof eo?eo.create(e.items.map(t=>qa(t))):e}var zr=class e extends Me{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Re.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==re.object){let u=this._getOrReturnCtx(t);return X(u,{code:F.invalid_type,expected:re.object,received:u.parsedType}),fe}let{status:o,ctx:n}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof _n&&this._def.unknownKeys==="strip"))for(let u in n.data)a.includes(u)||s.push(u);let l=[];for(let u of a){let c=i[u],d=n.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Zr(n,d,n.path,u)),alwaysSet:u in n.data})}if(this._def.catchall instanceof _n){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of s)l.push({key:{status:"valid",value:c},value:{status:"valid",value:n.data[c]}});else if(u==="strict")s.length>0&&(X(n,{code:F.unrecognized_keys,keys:s}),o.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of s){let d=n.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Zr(n,d,n.path,c)),alwaysSet:c in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let d=await c.key,p=await c.value;u.push({key:d,value:p,alwaysSet:c.alwaysSet})}return u}).then(u=>Vt.mergeObjectSync(o,u)):Vt.mergeObjectSync(o,l)}get shape(){return this._def.shape()}strict(t){return ie.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,o)=>{let n=this._def.errorMap?.(r,o).message??o.defaultError;return r.code==="unrecognized_keys"?{message:ie.errToObj(t).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:q.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let o of Re.objectKeys(t))t[o]&&this.shape[o]&&(r[o]=this.shape[o]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let o of Re.objectKeys(this.shape))t[o]||(r[o]=this.shape[o]);return new e({...this._def,shape:()=>r})}deepPartial(){return qa(this)}partial(t){let r={};for(let o of Re.objectKeys(this.shape)){let n=this.shape[o];t&&!t[o]?r[o]=n:r[o]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let o of Re.objectKeys(this.shape))if(t&&!t[o])r[o]=this.shape[o];else{let i=this.shape[o];for(;i instanceof an;)i=i._def.innerType;r[o]=i}return new e({...this._def,shape:()=>r})}keyof(){return rI(Re.objectKeys(this.shape))}};zr.create=(e,t)=>new zr({shape:()=>e,unknownKeys:"strip",catchall:_n.create(),typeName:q.ZodObject,...Se(t)});zr.strictCreate=(e,t)=>new zr({shape:()=>e,unknownKeys:"strict",catchall:_n.create(),typeName:q.ZodObject,...Se(t)});zr.lazycreate=(e,t)=>new zr({shape:e,unknownKeys:"strip",catchall:_n.create(),typeName:q.ZodObject,...Se(t)});var Ka=class extends Me{_parse(t){let{ctx:r}=this._processInputParams(t),o=this._def.options;function n(i){for(let s of i)if(s.result.status==="valid")return s.result;for(let s of i)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(s=>new Cr(s.ctx.common.issues));return X(r,{code:F.invalid_union,unionErrors:a}),fe}if(r.common.async)return Promise.all(o.map(async i=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(n);{let i,a=[];for(let l of o){let u={...r,common:{...r.common,issues:[]},parent:null},c=l._parseSync({data:r.data,path:r.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let s=a.map(l=>new Cr(l));return X(r,{code:F.invalid_union,unionErrors:s}),fe}}get options(){return this._def.options}};Ka.create=(e,t)=>new Ka({options:e,typeName:q.ZodUnion,...Se(t)});var Qn=e=>e instanceof Ya?Qn(e.schema):e instanceof sn?Qn(e.innerType()):e instanceof Qa?[e.value]:e instanceof es?e.options:e instanceof ts?Re.objectValues(e.enum):e instanceof rs?Qn(e._def.innerType):e instanceof Ha?[void 0]:e instanceof Ja?[null]:e instanceof an?[void 0,...Qn(e.unwrap())]:e instanceof to?[null,...Qn(e.unwrap())]:e instanceof Up||e instanceof os?Qn(e.unwrap()):e instanceof ns?Qn(e._def.innerType):[],z1=class e extends Me{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==re.object)return X(r,{code:F.invalid_type,expected:re.object,received:r.parsedType}),fe;let o=this.discriminator,n=r.data[o],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(X(r,{code:F.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),fe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,o){let n=new Map;for(let i of r){let a=Qn(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of a){if(n.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);n.set(s,i)}}return new e({typeName:q.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...Se(o)})}};function E1(e,t){let r=Yn(e),o=Yn(t);if(e===t)return{valid:!0,data:e};if(r===re.object&&o===re.object){let n=Re.objectKeys(t),i=Re.objectKeys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};for(let s of i){let l=E1(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(r===re.array&&o===re.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let i=0;i<e.length;i++){let a=e[i],s=t[i],l=E1(a,s);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===re.date&&o===re.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Xa=class extends Me{_parse(t){let{status:r,ctx:o}=this._processInputParams(t),n=(i,a)=>{if(T1(i)||T1(a))return fe;let s=E1(i.value,a.value);return s.valid?((P1(i)||P1(a))&&r.dirty(),{status:r.value,value:s.data}):(X(o,{code:F.invalid_intersection_types}),fe)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([i,a])=>n(i,a)):n(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}};Xa.create=(e,t,r)=>new Xa({left:e,right:t,typeName:q.ZodIntersection,...Se(r)});var eo=class e extends Me{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==re.array)return X(o,{code:F.invalid_type,expected:re.array,received:o.parsedType}),fe;if(o.data.length<this._def.items.length)return X(o,{code:F.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),fe;!this._def.rest&&o.data.length>this._def.items.length&&(X(o,{code:F.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...o.data].map((a,s)=>{let l=this._def.items[s]||this._def.rest;return l?l._parse(new Zr(o,a,o.path,s)):null}).filter(a=>!!a);return o.common.async?Promise.all(i).then(a=>Vt.mergeArray(r,a)):Vt.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};eo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new eo({items:e,typeName:q.ZodTuple,rest:null,...Se(t)})};var A1=class e extends Me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==re.object)return X(o,{code:F.invalid_type,expected:re.object,received:o.parsedType}),fe;let n=[],i=this._def.keyType,a=this._def.valueType;for(let s in o.data)n.push({key:i._parse(new Zr(o,s,o.path,s)),value:a._parse(new Zr(o,o.data[s],o.path,s)),alwaysSet:s in o.data});return o.common.async?Vt.mergeObjectAsync(r,n):Vt.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,o){return r instanceof Me?new e({keyType:t,valueType:r,typeName:q.ZodRecord,...Se(o)}):new e({keyType:Wa.create(),valueType:t,typeName:q.ZodRecord,...Se(r)})}},mu=class extends Me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==re.map)return X(o,{code:F.invalid_type,expected:re.map,received:o.parsedType}),fe;let n=this._def.keyType,i=this._def.valueType,a=[...o.data.entries()].map(([s,l],u)=>({key:n._parse(new Zr(o,s,o.path,[u,"key"])),value:i._parse(new Zr(o,l,o.path,[u,"value"]))}));if(o.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let l of a){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return fe;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),s.set(u.value,c.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let l of a){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return fe;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),s.set(u.value,c.value)}return{status:r.value,value:s}}}};mu.create=(e,t,r)=>new mu({valueType:t,keyType:e,typeName:q.ZodMap,...Se(r)});var fu=class e extends Me{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==re.set)return X(o,{code:F.invalid_type,expected:re.set,received:o.parsedType}),fe;let n=this._def;n.minSize!==null&&o.data.size<n.minSize.value&&(X(o,{code:F.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&o.data.size>n.maxSize.value&&(X(o,{code:F.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let i=this._def.valueType;function a(l){let u=new Set;for(let c of l){if(c.status==="aborted")return fe;c.status==="dirty"&&r.dirty(),u.add(c.value)}return{status:r.value,value:u}}let s=[...o.data.values()].map((l,u)=>i._parse(new Zr(o,l,o.path,u)));return o.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:ie.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:ie.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};fu.create=(e,t)=>new fu({valueType:e,minSize:null,maxSize:null,typeName:q.ZodSet,...Se(t)});var M1=class e extends Me{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==re.function)return X(r,{code:F.invalid_type,expected:re.function,received:r.parsedType}),fe;function o(s,l){return jp({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ou(),Go].filter(u=>!!u),issueData:{code:F.invalid_arguments,argumentsError:l}})}function n(s,l){return jp({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ou(),Go].filter(u=>!!u),issueData:{code:F.invalid_return_type,returnTypeError:l}})}let i={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof Bi){let s=this;return Xt(async function(...l){let u=new Cr([]),c=await s._def.args.parseAsync(l,i).catch(m=>{throw u.addIssue(o(l,m)),u}),d=await Reflect.apply(a,this,c);return await s._def.returns._def.type.parseAsync(d,i).catch(m=>{throw u.addIssue(n(d,m)),u})})}else{let s=this;return Xt(function(...l){let u=s._def.args.safeParse(l,i);if(!u.success)throw new Cr([o(l,u.error)]);let c=Reflect.apply(a,this,u.data),d=s._def.returns.safeParse(c,i);if(!d.success)throw new Cr([n(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:eo.create(t).rest(qo.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,o){return new e({args:t||eo.create([]).rest(qo.create()),returns:r||qo.create(),typeName:q.ZodFunction,...Se(o)})}},Ya=class extends Me{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ya.create=(e,t)=>new Ya({getter:e,typeName:q.ZodLazy,...Se(t)});var Qa=class extends Me{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return X(r,{received:r.data,code:F.invalid_literal,expected:this._def.value}),fe}return{status:"valid",value:t.data}}get value(){return this._def.value}};Qa.create=(e,t)=>new Qa({value:e,typeName:q.ZodLiteral,...Se(t)});function rI(e,t){return new es({values:e,typeName:q.ZodEnum,...Se(t)})}var es=class e extends Me{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),o=this._def.values;return X(r,{expected:Re.joinValues(o),received:r.parsedType,code:F.invalid_type}),fe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),o=this._def.values;return X(r,{received:r.data,code:F.invalid_enum_value,options:o}),fe}return Xt(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(o=>!t.includes(o)),{...this._def,...r})}};es.create=rI;var ts=class extends Me{_parse(t){let r=Re.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==re.string&&o.parsedType!==re.number){let n=Re.objectValues(r);return X(o,{expected:Re.joinValues(n),received:o.parsedType,code:F.invalid_type}),fe}if(this._cache||(this._cache=new Set(Re.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=Re.objectValues(r);return X(o,{received:o.data,code:F.invalid_enum_value,options:n}),fe}return Xt(t.data)}get enum(){return this._def.values}};ts.create=(e,t)=>new ts({values:e,typeName:q.ZodNativeEnum,...Se(t)});var Bi=class extends Me{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==re.promise&&r.common.async===!1)return X(r,{code:F.invalid_type,expected:re.promise,received:r.parsedType}),fe;let o=r.parsedType===re.promise?r.data:Promise.resolve(r.data);return Xt(o.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Bi.create=(e,t)=>new Bi({type:e,typeName:q.ZodPromise,...Se(t)});var sn=class extends Me{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:o}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:a=>{X(o,a),a.fatal?r.abort():r.dirty()},get path(){return o.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){let a=n.transform(o.data,i);if(o.common.async)return Promise.resolve(a).then(async s=>{if(r.value==="aborted")return fe;let l=await this._def.schema._parseAsync({data:s,path:o.path,parent:o});return l.status==="aborted"?fe:l.status==="dirty"?Ga(l.value):r.value==="dirty"?Ga(l.value):l});{if(r.value==="aborted")return fe;let s=this._def.schema._parseSync({data:a,path:o.path,parent:o});return s.status==="aborted"?fe:s.status==="dirty"?Ga(s.value):r.value==="dirty"?Ga(s.value):s}}if(n.type==="refinement"){let a=s=>{let l=n.refinement(s,i);if(o.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(o.common.async===!1){let s=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?fe:(s.status==="dirty"&&r.dirty(),a(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(s=>s.status==="aborted"?fe:(s.status==="dirty"&&r.dirty(),a(s.value).then(()=>({status:r.value,value:s.value}))))}if(n.type==="transform")if(o.common.async===!1){let a=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!Fi(a))return fe;let s=n.transform(a.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(a=>Fi(a)?Promise.resolve(n.transform(a.value,i)).then(s=>({status:r.value,value:s})):fe);Re.assertNever(n)}};sn.create=(e,t,r)=>new sn({schema:e,typeName:q.ZodEffects,effect:t,...Se(r)});sn.createWithPreprocess=(e,t,r)=>new sn({schema:t,effect:{type:"preprocess",transform:e},typeName:q.ZodEffects,...Se(r)});var an=class extends Me{_parse(t){return this._getType(t)===re.undefined?Xt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};an.create=(e,t)=>new an({innerType:e,typeName:q.ZodOptional,...Se(t)});var to=class extends Me{_parse(t){return this._getType(t)===re.null?Xt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};to.create=(e,t)=>new to({innerType:e,typeName:q.ZodNullable,...Se(t)});var rs=class extends Me{_parse(t){let{ctx:r}=this._processInputParams(t),o=r.data;return r.parsedType===re.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};rs.create=(e,t)=>new rs({innerType:e,typeName:q.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Se(t)});var ns=class extends Me{_parse(t){let{ctx:r}=this._processInputParams(t),o={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return iu(n)?n.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Cr(o.common.issues)},input:o.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Cr(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};ns.create=(e,t)=>new ns({innerType:e,typeName:q.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Se(t)});var hu=class extends Me{_parse(t){if(this._getType(t)!==re.nan){let o=this._getOrReturnCtx(t);return X(o,{code:F.invalid_type,expected:re.nan,received:o.parsedType}),fe}return{status:"valid",value:t.data}}};hu.create=e=>new hu({typeName:q.ZodNaN,...Se(e)});var Up=class extends Me{_parse(t){let{ctx:r}=this._processInputParams(t),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}},Lp=class e extends Me{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?fe:i.status==="dirty"?(r.dirty(),Ga(i.value)):this._def.out._parseAsync({data:i.value,path:o.path,parent:o})})();{let n=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return n.status==="aborted"?fe:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:o.path,parent:o})}}static create(t,r){return new e({in:t,out:r,typeName:q.ZodPipeline})}},os=class extends Me{_parse(t){let r=this._def.innerType._parse(t),o=n=>(Fi(n)&&(n.value=Object.freeze(n.value)),n);return iu(r)?r.then(n=>o(n)):o(r)}unwrap(){return this._def.innerType}};os.create=(e,t)=>
42new os({innerType:e,typeName:q.ZodReadonly,...Se(t)});var yse={object:zr.lazycreate},q;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(q||(q={}));var bse=Wa.create,xse=au.create,wse=hu.create,_se=su.create,kse=lu.create,Sse=uu.create,$se=cu.create,Ise=Ha.create,Tse=Ja.create,Pse=du.create,Cse=qo.create,zse=_n.create,Ese=pu.create,Ase=Wo.create,Mse=zr.create,Dse=zr.strictCreate,Nse=Ka.create,Rse=z1.create,Ose=Xa.create,jse=eo.create,Use=A1.create,Lse=mu.create,Fse=fu.create,Bse=M1.create,Zse=Ya.create,Vse=Qa.create,Gse=es.create,qse=ts.create,Wse=Bi.create,Hse=sn.create,Jse=an.create,Kse=to.create,Xse=sn.createWithPreprocess,Yse=Lp.create;var gu=class extends Error{constructor(t,r){super(t),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}},nI=10,NL=13,Zi=32;function D1(e){}function aI(e){if(typeof e=="function")throw new TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{onEvent:t=D1,onError:r=D1,onRetry:o=D1,onComment:n,maxBufferSize:i}=e,a=[],s=0,l=!0,u,c="",d=0,p,m=!1;function g($){if(m)throw new Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(l&&(l=!1,$.charCodeAt(0)===239&&$.charCodeAt(1)===187&&$.charCodeAt(2)===191&&($=$.slice(3))),a.length===0){let R=w($);R!==""&&(a.push(R),s=R.length),x();return}if($.indexOf(` 43`)===-1&&$.indexOf("\r")===-1){a.push($),s+=$.length,x();return}a.push($);let C=a.join("");a.length=0,s=0;let M=w(C);M!==""&&(a.push(M),s=M.length),x()}function x(){i!==void 0&&(s+c.length<=i||(m=!0,a.length=0,s=0,u=void 0,c="",d=0,p=void 0,r(new gu(`Buffered data exceeded max buffer size of ${i} characters`,{type:"max-buffer-size-exceeded"}))))}function w($){let C=0;if($.indexOf("\r")===-1){let M=$.indexOf(` 44`,C);for(;M!==-1;){if(C===M){d>0&&t({id:u,event:p,data:c}),u=void 0,c="",d=0,p=void 0,C=M+1,M=$.indexOf(` 45`,C);continue}let R=$.charCodeAt(C);if(oI($,C,R)){let N=$.charCodeAt(C+5)===Zi?C+6:C+5,j=$.slice(N,M);if(d===0&&$.charCodeAt(M+1)===nI){t({id:u,event:p,data:j}),u=void 0,c="",p=void 0,C=M+2,M=$.indexOf(` 46`,C);continue}c=d===0?j:`${c} 47${j}`,d++}else iI($,C,R)?p=$.slice($.charCodeAt(C+6)===Zi?C+7:C+6,M)||void 0:S($,C,M);C=M+1,M=$.indexOf(` 48`,C)}return $.slice(C)}for(;C<$.length;){let M=$.indexOf("\r",C),R=$.indexOf(` 49`,C),N=-1;if(M!==-1&&R!==-1?N=M<R?M:R:M!==-1?M===$.length-1?N=-1:N=M:R!==-1&&(N=R),N===-1)break;S($,C,N),C=N+1,$.charCodeAt(C-1)===NL&&$.charCodeAt(C)===nI&&C++}return $.slice(C)}function S($,C,M){if(C===M){b();return}let R=$.charCodeAt(C);if(oI($,C,R)){let ye=$.charCodeAt(C+5)===Zi?C+6:C+5,Oe=$.slice(ye,M);c=d===0?Oe:`${c} 50${Oe}`,d++;return}if(iI($,C,R)){p=$.slice($.charCodeAt(C+6)===Zi?C+7:C+6,M)||void 0;return}if(R===105&&$.charCodeAt(C+1)===100&&$.charCodeAt(C+2)===58){let ye=$.slice($.charCodeAt(C+3)===Zi?C+4:C+3,M);u=ye.includes("\0")?void 0:ye;return}if(R===58){if(n){let ye=$.slice(C,M);n(ye.slice($.charCodeAt(C+1)===Zi?2:1))}return}let N=$.slice(C,M),j=N.indexOf(":");if(j===-1){_(N,"",N);return}let oe=N.slice(0,j),ae=N.charCodeAt(j+1)===Zi?2:1,nt=N.slice(j+ae);_(oe,nt,N)}function _($,C,M){switch($){case"event":p=C||void 0;break;case"data":c=d===0?C:`${c} 51${C}`,d++;break;case"id":u=C.includes("\0")?void 0:C;break;case"retry":/^\d+$/.test(C)?o(parseInt(C,10)):r(new gu(`Invalid \`retry\` value: "${C}"`,{type:"invalid-retry",value:C,line:M}));break;default:r(new gu(`Unknown field "${$.length>20?`${$.slice(0,20)}\u2026`:$}"`,{type:"unknown-field",field:$,value:C,line:M}));break}}function b(){d>0&&t({id:u,event:p,data:c}),u=void 0,c="",d=0,p=void 0}function T($={}){if($.consume&&a.length>0){let C=a.join("");S(C,0,C.length)}l=!0,u=void 0,c="",d=0,p=void 0,a.length=0,s=0,m=!1}return{feed:g,reset:T}}function oI(e,t,r){return r===100&&e.charCodeAt(t+1)===97&&e.charCodeAt(t+2)===116&&e.charCodeAt(t+3)===97&&e.charCodeAt(t+4)===58}function iI(e,t,r){return r===101&&e.charCodeAt(t+1)===118&&e.charCodeAt(t+2)===101&&e.charCodeAt(t+3)===110&&e.charCodeAt(t+4)===116&&e.charCodeAt(t+5)===58}var Fp=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:o,maxBufferSize:n}={}){let i;super({start(a){i=aI({onEvent:s=>{a.enqueue(s)},onError(s){typeof t=="function"&&t(s),(t==="terminate"||s.type==="max-buffer-size-exceeded")&&a.error(s)},onRetry:r,onComment:o,maxBufferSize:n})},transform(a){i.feed(a)}})}};var{btoa:dle,atob:ple}=globalThis;async function Bp(e){var t;try{await((t=e.body)==null?void 0:t.cancel())}catch{}}var pI="AI_DownloadError",mI=`vercel.ai.error.${pI}`,RL=Symbol.for(mI),sI,lI,fr=class extends(lI=je,sI=RL,lI){constructor({url:e,statusCode:t,statusText:r,cause:o,message:n=o==null?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${o}`}
51){super({name:pI,message:n,cause:o}),this[sI]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return je.hasMarker(e,mI)}};function OL(e=globalThis){return e.window!=null}function jL(e){let t;try{t=new URL(e)}catch{throw new fr({url:e,message:`Invalid URL: ${e}`})}if(t.protocol==="data:")return;if(t.protocol!=="http:"&&t.protocol!=="https:")throw new fr({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname.toLowerCase().replace(/\.+$/,"");if(!r)throw new fr({url:e,message:"URL must have a hostname"});if(r==="localhost"||r.endsWith(".local")||r.endsWith(".localhost"))throw new fr({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){let o=r.slice(1,-1);if(LL(o))throw new fr({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if(fI(r)){if(hI(r))throw new fr({url:e,message:`URL with IP address ${r} is not allowed`});return}}function fI(e){let t=e.split(".");return t.length!==4?!1:t.every(r=>{let o=Number(r);return Number.isInteger(o)&&o>=0&&o<=255&&String(o)===r})}function hI(e){let t=e.split(".").map(Number),[r,o,n]=t;return r===0||r===10||r===100&&o>=64&&o<=127||r===127||r===169&&o===254||r===172&&o>=16&&o<=31||r===192&&o===0&&n===0||r===192&&o===168||r===198&&(o===18||o===19)||r>=240}function UL(e){let t=e.toLowerCase(),r=t.indexOf("%");
51r!==-1&&(t=t.slice(0,r));let o=t.split("::");if(o.length>2)return null;let n=a=>{if(a==="")return[];let s=[],l=a.split(":");for(let u=0;u<l.length;u++){let c=l[u];if(c.includes(".")){if(u!==l.length-1||!fI(c))return null;let[d,p,m,g]=c.split(".").map(Number);s.push(d<<8|p,m<<8|g);continue}if(!/^[0-9a-f]{1,4}$/.test(c))return null;s.push(parseInt(c,16))}return s},i=n(o[0]);if(i===null)return null;if(o.length===2){let a=n(o[1]);if(a===null)return null;let s=8-i.length-a.length;return s<0?null:[...i,...new Array(s).fill(0),...a]}return i.length===8?i:null}function LL(e){let t=UL(e);if(t===null)return!0;let r=n=>t.slice(0,n).every(i=>i===0);if(r(7)&&(t[7]===0||t[7]===1)||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280)return!0;if(r(6)||r(5)&&t[5]===65535||r(4)&&t[4]===65535&&t[5]===0||t[0]===100&&t[1]===65435&&t[2]===0&&t[3]===0&&t[4]===0&&t[5]===0||t[0]===100&&t[1]===65435&&t[2]===1){let n=t[6]>>8&255,i=t[6]&255,a=t[7]>>8&255,s=t[7]&255;return hI(`${n}.${i}.${a}.${s}`)}return!1}var FL=10;async function gI({url:e,headers:t,abortSignal:r,maxRedirects:o=FL}){let n={signal:r};t!==void 0&&(n.headers=t);let i=e;for(let a=0;a<=o;a++){jL(i);let s=await fetch(i,{...n,redirect:"manual"});if(s.type==="opaqueredirect"){if(!OL())throw new fr({url:e,message:`Redirect from ${i} could not be validated and was blocked`});return await fetch(i,{...n,redirect:"follow"})}let l=s.headers.get("location");if(s.status>=300&&s.status<400&&l){await Bp(s),i=new URL(l,i).toString();continue}return s}throw new fr({url:e,message:`Too many redirects (max ${o})`})}var U1=2*1024*1024*1024;async function vI({response:e,url:t,maxBytes:r=U1}){let o=e.headers.get("content-length");if(o!=null){let c=parseInt(o,10);if(!isNaN(c)&&c>r)throw await Bp(e),new fr({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${c}).`})}let n=e.body;if(n==null)return new Uint8Array(0);let i=n.getReader(),a=[],s=0;try{for(;;){let{done:c,value:d}=await i.read();if(c)break;if(s+=d.length,s>r)throw new fr({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});a.push(d)}}finally{try{await i.cancel()}finally{i.releaseLock()}}let l=new Uint8Array(s),u=0;for(let c of a)l.set(c,u),u+=c.length;return l}var ro=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:o="-"}={})=>{let n=()=>{let i=r.length,a=new Array(t);for(let s=0;s<t;s++)a[s]=r[Math.random()*i|0];return a.join("")};if(e==null)return n;if(r.includes(o))throw new E5({argument:"separator",message:`The separator "${o}" must not be part of the alphabet "${r}".`});return()=>`${e}${o}${n()}`},yI=ro();function bI(e=globalThis){var t,r,o;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(o=(r=e.process)==null?void 0:r.versions)!=null&&o.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function Ho(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((r,o)=>{t[o.toLowerCase()]=r});else{Array.isArray(e)||(e=Object.entries(e));for(let[r,o]of e)o!=null&&(t[r.toLowerCase()]=o)}return t}function Zp(e,...t){let r=new Headers(Ho(e)),o=r.get("user-agent")||"";return r.set("user-agent",[o,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var BL=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,ZL=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function uI(e){let t=JSON.parse(e);return t===null||typeof t!="object"||BL.test(e)===!1&&ZL.test(e)===!1?t:VL(t)}function VL(e){let t=[e];for(;t.length;){let r=t;t=[];for(let o of r){if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&o.constructor!==null&&typeof o.constructor=="object"&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let n in o){let i=o[n];i&&typeof i=="object"&&t.push(i)}}}return e}function GL(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return uI(e)}try{return uI(e)}finally{Error.stackTraceLimit=t}}function L1(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:r}=e;if(r!=null)for(let o of Object.keys(r))r[o]=Vi(r[o])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(Vi):Vi(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(Vi)),e.allOf!=null&&(e.allOf=e.allOf.map(Vi)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(Vi));let{definitions:t}=e;if(t!=null)for(let r of Object.keys(t))t[r]=Vi(t[r]);return e}function Vi(e){return typeof e=="boolean"?e:L1(e)}var qL=Symbol("Let zodToJsonSchema decide on which parser to use"),cI={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},WL=e=>typeof e=="string"?{...cI,name:e}:{...cI,...e};function Er(){return{}}function HL(e,t){var r,o,n;let i={type:"array"};return(r=e.type)!=null&&r._def&&((n=(o=e.type)==null?void 0:o._def)==null?void 0:n.typeName)!==q.ZodAny&&(i.items=Ve(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(i.minItems=e.minLength.value),e.maxLength&&(i.maxItems=e.maxLength.value),e.exactLength&&(i.minItems=e.exactLength.value,i.maxItems=e.exactLength.value),i}function JL(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function KL(){return{type:"boolean"}}function xI(e,t){return Ve(e.type._def,t)}var XL=(e,t)=>Ve(e.innerType._def,t);function wI(e,t,r){let o=r??t.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((n,i)=>
51wI(e,t,n))};switch(o){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return YL(e)}}var YL=e=>{let t={type:"integer",format:"unix-time"};for(let r of e.checks)switch(r.kind){case"min":t.minimum=r.value;break;case"max":t.maximum=r.value;break}return t};function QL(e,t){return{...Ve(e.innerType._def,t),default:e.defaultValue()}}function eF(e,t){return t.effectStrategy==="input"?Ve(e.schema._def,t):Er()}function tF(e){return{type:"string",enum:Array.from(e.values)}}var rF=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function nF(e,t){let r=[Ve(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Ve(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(n=>!!n),o=[];return r.forEach(n=>{if(rF(n))o.push(...n.allOf);else{let i=n;if("additionalProperties"in n&&n.additionalProperties===!1){let{additionalProperties:a,...s}=n;i=s}o.push(i)}}),o.length?{allOf:o}:void 0}function oF(e){let t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var N1=void 0,ln={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(N1===void 0&&(N1=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),N1),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function _I(e,t){let r={type:"string"};if(e.checks)for(let o of e.checks)switch(o.kind){case"min":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,o.value):o.value;break;case"max":r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,o.value):o.value;break;case"email":switch(t.emailStrategy){case"format:email":un(r,"email",o.message,t);break;case"format:idn-email":un(r,"idn-email",o.message,t);break;case"pattern:zod":Yt(r,ln.email,o.message,t);break}break;case"url":un(r,"uri",o.message,t);break;case"uuid":un(r,"uuid",o.message,t);break;case"regex":Yt(r,o.regex,o.message,t);break;case"cuid":Yt(r,ln.cuid,o.message,t);break;case"cuid2":Yt(r,ln.cuid2,o.message,t);break;case"startsWith":Yt(r,RegExp(`^${R1(o.value,t)}`),o.message,t);break;case"endsWith":Yt(r,RegExp(`${R1(o.value,t)}$`),o.message,t);break;case"datetime":un(r,"date-time",o.message,t);break;case"date":un(r,"date",o.message,t);break;case"time":un(r,"time",o.message,t);break;case"duration":un(r,"duration",o.message,t);break;case"length":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,o.value):o.value,r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,o.value):o.value;break;case"includes":{Yt(r,RegExp(R1(o.value,t)),o.message,t);break}case"ip":{o.version!=="v6"&&un(r,"ipv4",o.message,t),o.version!=="v4"&&un(r,"ipv6",o.message,t);break}case"base64url":Yt(r,ln.base64url,o.message,t);break;case"jwt":Yt(r,ln.jwt,o.message,t);break;case"cidr":{o.version!=="v6"&&Yt(r,ln.ipv4Cidr,o.message,t),o.version!=="v4"&&Yt(r,ln.ipv6Cidr,o.message,t);break}case"emoji":Yt(r,ln.emoji(),o.message,t);break;case"ulid":{Yt(r,ln.ulid,o.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{un(r,"binary",o.message,t);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{Yt(r,ln.base64,o.message,t);break}}break}case"nanoid":Yt(r,ln.nanoid,o.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function R1(e,t){return t.patternStrategy==="escape"?aF(e):e}var iF=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function aF(e){let t="";for(let r=0;r<e.length;r++)iF.has(e[r])||(t+="\\"),t+=e[r];return t}function un(e,t,r,o){var n;e.format||(n=e.anyOf)!=null&&n.some(i=>i.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&o.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function Yt(e,t,r,o){var n;e.pattern||(n=e.allOf)!=null&&n.some(i=>i.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:dI(t,o),...r&&o.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=dI(t,o)}function dI(e,t){var r;
vendor: 4,944 bytes, lines 51-55
51if(!t.applyRegexFlags||!e.flags)return e.source;let o={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=o.i?e.source.toLowerCase():e.source,i="",a=!1,s=!1,l=!1;for(let u=0;u<n.length;u++){if(a){i+=n[u],a=!1;continue}if(o.i){if(s){if(n[u].match(/[a-z]/)){l?(i+=n[u],i+=`${n[u-2]}-${n[u]}`.toUpperCase(),l=!1):n[u+1]==="-"&&((r=n[u+2])!=null&&r.match(/[a-z]/))?(i+=n[u],l=!0):i+=`${n[u]}${n[u].toUpperCase()}`;continue}}else if(n[u].match(/[a-z]/)){i+=`[${n[u]}${n[u].toUpperCase()}]`;continue}}if(o.m){if(n[u]==="^"){i+=`(^|(?<=[\r 52]))`;continue}else if(n[u]==="$"){i+=`($|(?=[\r 53]))`;continue}}if(o.s&&n[u]==="."){i+=s?`${n[u]}\r 54`:`[${n[u]}\r 55]`;continue}i+=n[u],n[u]==="\\"?a=!0:s&&n[u]==="]"?s=!1:!s&&n[u]==="["&&(s=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function kI(e,t){var r,o,n,i,a,s;let l={type:"object",additionalProperties:(r=Ve(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((o=e.keyType)==null?void 0:o._def.typeName)===q.ZodString&&((n=e.keyType._def.checks)!=null&&n.length)){let{type:u,...c}=_I(e.keyType._def,t);return{...l,propertyNames:c}}else{if(((i=e.keyType)==null?void 0:i._def.typeName)===q.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((a=e.keyType)==null?void 0:a._def.typeName)===q.ZodBranded&&e.keyType._def.type._def.typeName===q.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){let{type:u,...c}=xI(e.keyType._def,t);return{...l,propertyNames:c}}}return l}function sF(e,t){if(t.mapStrategy==="record")return kI(e,t);let r=Ve(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||Er(),o=Ve(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||Er();return{type:"array",maxItems:125,items:{type:"array",items:[r,o],minItems:2,maxItems:2}}}function lF(e){let t=e.values,o=Object.keys(e.values).filter(i=>typeof t[t[i]]!="number").map(i=>t[i]),n=Array.from(new Set(o.map(i=>typeof i)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:o}}function uF(){return{not:Er()}}function cF(){return{type:"null"}}var O1={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function dF(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(o=>o._def.typeName in O1&&(!o._def.checks||!o._def.checks.length))){let o=r.reduce((n,i)=>{let a=O1[i._def.typeName];return a&&!n.includes(a)?[...n,a]:n},[]);return{type:o.length>1?o:o[0]}}else if(r.every(o=>o._def.typeName==="ZodLiteral"&&!o.description)){let o=r.reduce((n,i)=>{let a=typeof i._def.value;switch(a){case"string":case"number":case"boolean":return[...n,a];case"bigint":return[...n,"integer"];case"object":if(i._def.value===null)return[...n,"null"];default:return n}},[]);if(o.length===r.length){let n=o.filter((i,a,s)=>s.indexOf(i)===a);return{type:n.length>1?n:n[0],enum:r.reduce((i,a)=>i.includes(a._def.value)?i:[...i,a._def.value],[])}}}else if(r.every(o=>o._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((o,n)=>[...o,...n._def.values.filter(i=>!o.includes(i))],[])};return pF(e,t)}var pF=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((o,n)=>Ve(o._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(o=>!!o&&(!t.strictUnions||typeof o=="object"&&Object.keys(o).length>0));return r.length?{anyOf:r}:void 0};function mF(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[O1[e.innerType._def.typeName],"null"]};let r=Ve(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function fF(e){let t={type:"number"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"int":t.type="integer";break;case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function hF(e,t){let r={type:"object",properties:{}},o=[],n=e.shape();for(let a in n){let s=n[a];if(s===void 0||s._def===void 0)continue;let l=vF(s),u=Ve(s._def,{...t,currentPath:[...t.currentPath,"properties",a],propertyPath:[...t.currentPath,"properties",a]});u!==void 0&&(r.properties[a]=u,l||o.push(a))}o.length&&(r.required=o);let i=gF(e,t);return i!==void 0&&(r.additionalProperties=i),r}function gF(e,t){if(e.catchall._def.typeName!=="ZodNever")return Ve(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;
55case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function vF(e){try{return e.isOptional()}catch{return!0}}var yF=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return Ve(e.innerType._def,t);let o=Ve(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return o?{anyOf:[{not:Er()},o]}:Er()},bF=(e,t)=>{if(t.pipeStrategy==="input")return Ve(e.in._def,t);if(t.pipeStrategy==="output")return Ve(e.out._def,t);let r=Ve(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),o=Ve(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,o].filter(n=>n!==void 0)}};function xF(e,t){return Ve(e.type._def,t)}function wF(e,t){let o={type:"array",uniqueItems:!0,items:Ve(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(o.minItems=e.minSize.value),e.maxSize&&(o.maxItems=e.maxSize.value),o}function _F(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,o)=>Ve(r._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[]),additionalItems:Ve(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,o)=>Ve(r._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[])}}function kF(){return{not:Er()}}function SF(){return Er()}var $F=(e,t)=>Ve(e.innerType._def,t),IF=(e,t,r)=>{switch(t){case q.ZodString:return _I(e,r);case q.ZodNumber:return fF(e);case q.ZodObject:return hF(e,r);case q.ZodBigInt:return JL(e);case q.ZodBoolean:return KL();case q.ZodDate:return wI(e,r);case q.ZodUndefined:return kF();case q.ZodNull:return cF();case q.ZodArray:return HL(e,r);case q.ZodUnion:case q.ZodDiscriminatedUnion:return dF(e,r);case q.ZodIntersection:return nF(e,r);case q.ZodTuple:return _F(e,r);case q.ZodRecord:return kI(e,r);case q.ZodLiteral:return oF(e);case q.ZodEnum:return tF(e);case q.ZodNativeEnum:return lF(e);case q.ZodNullable:return mF(e,r);case q.ZodOptional:return yF(e,r);case q.ZodMap:return sF(e,r);case q.ZodSet:return wF(e,r);case q.ZodLazy:return()=>e.getter()._def;case q.ZodPromise:return xF(e,r);case q.ZodNaN:case q.ZodNever:return uF();case q.ZodEffects:return eF(e,r);case q.ZodAny:return Er();case q.ZodUnknown:return SF();case q.ZodDefault:return QL(e,r);case q.ZodBranded:return xI(e,r);case q.ZodReadonly:return $F(e,r);case q.ZodCatch:return XL(e,r);case q.ZodPipeline:return bF(e,r);case q.ZodFunction:case q.ZodVoid:case q.ZodSymbol:return;default:return(o=>{})(t)}},TF=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};function Ve(e,t,r=!1){var o;let n=t.seen.get(e);if(t.override){let l=(o=t.override)==null?void 0:o.call(t,e,t,n,r);if(l!==qL)return l}if(n&&!r){let l=PF(n,t);if(l!==void 0)return l}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let a=IF(e,e.typeName,t),s=typeof a=="function"?Ve(a(),t):a;if(s&&CF(e,t,s),t.postProcess){let l=t.postProcess(s,e,t);return i.jsonSchema=s,l}return i.jsonSchema=s,s}var PF=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:TF(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,o)=>t.currentPath[o]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),Er()):t.$refStrategy==="seen"?Er():void 0}},CF=(e,t,r)=>(e.description&&(r.description=e.description),r),zF=e=>{let t=WL(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([o,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,o],jsonSchema:void 0}]))}},EF=(e,t)=>{var r;let o=zF(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[c,d])=>{var p;return{...u,[c]:(p=Ve(d._def,{...o,currentPath:[...o.basePath,o.definitionPath,c]},!0))!=null?p:Er()}},{}):void 0,i=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,a=(r=Ve(e._def,i===void 0?o:{...o,currentPath:[...o.basePath,o.definitionPath,i]}
55,!1))!=null?r:Er(),s=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;s!==void 0&&(a.title=s);let l=i===void 0?n?{...a,[o.definitionPath]:n}:a:{$ref:[...o.$refStrategy==="relative"?[]:o.basePath,o.definitionPath,i].join("/"),[o.definitionPath]:{...n,[i]:a}};return l.$schema="http://json-schema.org/draft-07/schema#",l},j1=Symbol.for("vercel.ai.schema");function Vp(e){let t;return()=>(t==null&&(t=e()),t)}function Gp(e,{validate:t}={}){return{[j1]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function AF(e){return typeof e=="object"&&e!==null&&j1 in e&&e[j1]===!0&&"jsonSchema"in e&&"validate"in e}function qp(e){return e==null?Gp({properties:{},additionalProperties:!1}):AF(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?vu(e):MF(e):e()}function MF(e){return Gp(()=>L1(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{let r=await e["~standard"].validate(t);return"value"in r?{success:!0,value:r.value}:{success:!1,error:new bn({value:t,cause:r.issues})}}})}function DF(e,t){var r;let o=(r=t?.useReferences)!=null?r:!1;return Gp(()=>EF(e,{$refStrategy:o?"root":"none"}),{validate:async n=>{let i=await e.safeParseAsync(n);return i.success?{success:!0,value:i.data}:{success:!1,error:i.error}}})}function NF(e,t){var r;let o=(r=t?.useReferences)!=null?r:!1;return Gp(()=>L1(wp(e,{target:"draft-7",io:"input",reused:o?"ref":"inline"})),{validate:async n=>{let i=await kp(e,n);return i.success?{success:!0,value:i.data}:{success:!1,error:i.error}}})}function RF(e){return"_zod"in e}function vu(e,t){return RF(e)?NF(e,t):DF(e,t)}async function Wp({value:e,schema:t,context:r}){let o=await is({value:e,schema:t,context:r});if(!o.success)throw bn.wrap({value:e,cause:o.error,context:r});return o.value}async function is({value:e,schema:t,context:r}){let o=qp(t);try{if(o.validate==null)return{success:!0,value:e,rawValue:e};let n=await o.validate(e);return n.success?{success:!0,value:n.value,rawValue:e}:{success:!1,error:bn.wrap({value:e,cause:n.error,context:r}),rawValue:e}}catch(n){return{success:!1,error:bn.wrap({value:e,cause:n,context:r}),rawValue:e}}}async function no({text:e,schema:t}){try{let r=GL(e);return t==null?{success:!0,value:r,rawValue:r}:await is({value:r,schema:t})}catch(r){return{success:!1,error:Zg.isInstance(r)?r:new Zg({text:e,cause:r}),rawValue:void 0}}}function SI({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new Fp).pipeThrough(new TransformStream({async transform({data:r},o){r!=="[DONE]"&&o.enqueue(await no({text:r,schema:t}))}}))}async function kn(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var _le=new TextDecoder;var v={};cr(v,{$brand:()=>Hp,$input:()=>a4,$output:()=>i4,NEVER:()=>F1,TimePrecision:()=>c4,ZodAny:()=>Q2,ZodArray:()=>n6,ZodBase64:()=>_f,ZodBase64URL:()=>kf,ZodBigInt:()=>Ns,ZodBigIntFormat:()=>If,ZodBoolean:()=>Ds,ZodCIDRv4:()=>xf,ZodCIDRv6:()=>wf,ZodCUID:()=>mf,ZodCUID2:()=>ff,ZodCatch:()=>$6,ZodCodec:()=>Df,ZodCustom:()=>Ju,ZodCustomStringFormat:()=>As,ZodDate:()=>Vu,ZodDefault:()=>b6,ZodDiscriminatedUnion:()=>i6,ZodE164:()=>Sf,ZodEmail:()=>cf,ZodEmoji:()=>df,ZodEnum:()=>zs,ZodError:()=>cV,ZodExactOptional:()=>g6,ZodFile:()=>f6,ZodFirstPartyTypeKind:()=>O6,ZodFunction:()=>D6,ZodGUID:()=>Uu,ZodIPv4:()=>yf,ZodIPv6:()=>bf,ZodISODate:()=>nf,ZodISODateTime:()=>rf,ZodISODuration:()=>af,ZodISOTime:()=>of,ZodIntersection:()=>a6,ZodIssueCode:()=>pV,ZodJWT:()=>$f,ZodKSUID:()=>vf,ZodLazy:()=>E6,ZodLiteral:()=>m6,ZodMAC:()=>q2,ZodMap:()=>d6,ZodNaN:()=>T6,ZodNanoID:()=>pf,ZodNever:()=>t6,ZodNonOptional:()=>Af,ZodNull:()=>X2,ZodNullable:()=>y6,ZodNumber:()=>Ms,ZodNumberFormat:()=>Yi,ZodObject:()=>qu,ZodOptional:()=>Ef,ZodPipe:()=>Mf,ZodPrefault:()=>w6,ZodPromise:()=>M6,ZodReadonly:()=>P6,ZodRealError:()=>vr,ZodRecord:()=>Hu,ZodSet:()=>p6,ZodString:()=>Es,ZodStringFormat:()=>He,ZodSuccess:()=>S6,ZodSymbol:()=>J2,ZodTemplateLiteral:()=>z6,ZodTransform:()=>h6,ZodTuple:()=>l6,ZodType:()=>$e,ZodULID:()=>hf,ZodURL:()=>Zu,ZodUUID:()=>Tn,ZodUndefined:()=>K2,ZodUnion:()=>Wu,ZodUnknown:()=>e6,ZodVoid:()=>r6,ZodXID:()=>gf,ZodXor:()=>o6,_ZodString:()=>uf,_default:()=>x6,_function:()=>nP,any:()=>NT,array:()=>Gu,base64:()=>yT,base64url:()=>bT,bigint:()=>zT,boolean:()=>H2,catch:()=>I6,check:()=>oP,cidrv4:()=>gT,cidrv6:()=>vT,clone:()=>Qt,codec:()=>eP,coerce:()=>j6,config:()=>vt,core:()=>ao,cuid:()=>lT,cuid2:()=>uT,custom:()=>iP,date:()=>OT,decode:()=>U2,decodeAsync:()=>F2,describe:()=>aP,discriminatedUnion:()=>ZT,e164:()=>xT,email:()=>Y9,emoji:()=>aT,encode:()=>j2,encodeAsync:()=>L2,endsWith:()=>xs,enum:()=>Cf,exactOptional:()=>v6,file:()=>KT,flattenError:()=>Iu,float32:()=>IT,float64:()=>TT,formatError:()=>Tu,fromJSONSchema:()=>mP,function:()=>nP,getErrorMap:()=>fV,globalRegistry:()=>Ut,gt:()=>$n,gte:()=>er,guid:()=>Q9,hash:()=>$T,hex:()=>ST,hostname:()=>kT,httpUrl:()=>iT,includes:()=>ys,instanceof:()=>lP,int:()=>lf,int32:()=>PT,int64:()=>ET,intersection:()=>s6,ipv4:()=>mT,ipv6:()=>hT,iso:()=>Cs,json:()=>cP,jwt:()=>wT,keyof:()=>jT,ksuid:()=>pT,lazy:()=>A6,length:()=>Ki,literal:()=>JT,locales:()=>Nu,looseObject:()=>FT,looseRecord:()=>GT,lowercase:()=>gs,lt:()=>Sn,lte:()=>Mr,mac:()=>fT,map:()=>qT,maxLength:()=>Ji,maxSize:()=>ti,meta:()=>sP,mime:()=>ws,minLength:()=>io,minSize:()=>In,multipleOf:()=>ei,nan:()=>QT,nanoid:()=>sT,nativeEnum:()=>HT,negative:()=>qm,never:()=>Tf,nonnegative:()=>Hm,nonoptional:()=>k6,nonpositive:()=>Wm,normalize:()=>_s,null:()=>Y2,nullable:()=>Fu,nullish:()=>XT,number:()=>W2,object:()=>UT,optional:()=>Lu,overwrite:()=>dn,parse:()=>D2,parseAsync:()=>N2,partialRecord:()=>VT,pipe:()=>Bu,positive:()=>Gm,prefault:()=>_6,preprocess:()=>dP,prettifyError:()=>Q1,promise:()=>rP,property:()=>Jm,readonly:()=>C6,record:()=>c6,refine:()=>N6,regex:()=>hs,regexes:()=>Gr,registry:()=>Sm,safeDecode:()=>Z2,safeDecodeAsync:()=>G2,safeEncode:()=>B2,safeEncodeAsync:()=>V2,safeParse:()=>R2,safeParseAsync:()=>O2,set:()=>WT,setErrorMap:()=>mV,size:()=>Hi,slugify:()=>Is,startsWith:()=>bs,strictObject:()=>LT,string:()=>sf,stringFormat:()=>_T,stringbool:()=>uP,success:()=>YT,superRefine:()=>R6,symbol:()=>
55MT,templateLiteral:()=>tP,toJSONSchema:()=>Qm,toLowerCase:()=>Ss,toUpperCase:()=>$s,transform:()=>zf,treeifyError:()=>Y1,trim:()=>ks,tuple:()=>u6,uint32:()=>CT,uint64:()=>AT,ulid:()=>cT,undefined:()=>DT,union:()=>Pf,unknown:()=>Xi,uppercase:()=>vs,url:()=>oT,util:()=>Z,uuid:()=>eT,uuidv4:()=>tT,uuidv6:()=>rT,uuidv7:()=>nT,void:()=>RT,xid:()=>dT,xor:()=>BT});var ao={};cr(ao,{$ZodAny:()=>Tx,$ZodArray:()=>Ax,$ZodAsyncError:()=>cn,$ZodBase64:()=>vx,$ZodBase64URL:()=>yx,$ZodBigInt:()=>vm,$ZodBigIntFormat:()=>kx,$ZodBoolean:()=>Eu,$ZodCIDRv4:()=>fx,$ZodCIDRv6:()=>hx,$ZodCUID:()=>rx,$ZodCUID2:()=>nx,$ZodCatch:()=>Kx,$ZodCheck:()=>Xe,$ZodCheckBigIntFormat:()=>Ab,$ZodCheckEndsWith:()=>Vb,$ZodCheckGreaterThan:()=>cm,$ZodCheckIncludes:()=>Bb,$ZodCheckLengthEquals:()=>jb,$ZodCheckLessThan:()=>um,$ZodCheckLowerCase:()=>Lb,$ZodCheckMaxLength:()=>Rb,$ZodCheckMaxSize:()=>Mb,$ZodCheckMimeType:()=>qb,$ZodCheckMinLength:()=>Ob,$ZodCheckMinSize:()=>Db,$ZodCheckMultipleOf:()=>zb,$ZodCheckNumberFormat:()=>Eb,$ZodCheckOverwrite:()=>Wb,$ZodCheckProperty:()=>Gb,$ZodCheckRegex:()=>Ub,$ZodCheckSizeEquals:()=>Nb,$ZodCheckStartsWith:()=>Zb,$ZodCheckStringFormat:()=>ms,$ZodCheckUpperCase:()=>Fb,$ZodCodec:()=>Mu,$ZodCustom:()=>o4,$ZodCustomStringFormat:()=>wx,$ZodDate:()=>Ex,$ZodDefault:()=>qx,$ZodDiscriminatedUnion:()=>Nx,$ZodE164:()=>bx,$ZodEmail:()=>Yb,$ZodEmoji:()=>ex,$ZodEncodeError:()=>Jo,$ZodEnum:()=>Lx,$ZodError:()=>$u,$ZodExactOptional:()=>Vx,$ZodFile:()=>Bx,$ZodFunction:()=>t4,$ZodGUID:()=>Kb,$ZodIPv4:()=>dx,$ZodIPv6:()=>px,$ZodISODate:()=>lx,$ZodISODateTime:()=>sx,$ZodISODuration:()=>cx,$ZodISOTime:()=>ux,$ZodIntersection:()=>Rx,$ZodJWT:()=>xx,$ZodKSUID:()=>ax,$ZodLazy:()=>n4,$ZodLiteral:()=>Fx,$ZodMAC:()=>mx,$ZodMap:()=>jx,$ZodNaN:()=>Xx,$ZodNanoID:()=>tx,$ZodNever:()=>Cx,$ZodNonOptional:()=>Hx,$ZodNull:()=>Ix,$ZodNullable:()=>Gx,$ZodNumber:()=>gm,$ZodNumberFormat:()=>_x,$ZodObject:()=>XI,$ZodObjectJIT:()=>Mx,$ZodOptional:()=>bm,$ZodPipe:()=>Yx,$ZodPrefault:()=>Wx,$ZodPromise:()=>r4,$ZodReadonly:()=>Qx,$ZodRealError:()=>gr,$ZodRecord:()=>Ox,$ZodRegistry:()=>km,$ZodSet:()=>Ux,$ZodString:()=>Wi,$ZodStringFormat:()=>We,$ZodSuccess:()=>Jx,$ZodSymbol:()=>Sx,$ZodTemplateLiteral:()=>e4,$ZodTransform:()=>Zx,$ZodTuple:()=>ym,$ZodType:()=>ve,$ZodULID:()=>ox,$ZodURL:()=>Qb,$ZodUUID:()=>Xb,$ZodUndefined:()=>$x,$ZodUnion:()=>Au,$ZodUnknown:()=>Px,$ZodVoid:()=>zx,$ZodXID:()=>ix,$ZodXor:()=>Dx,$brand:()=>Hp,$constructor:()=>E,$input:()=>a4,$output:()=>i4,Doc:()=>zu,JSONSchema:()=>K9,JSONSchemaGenerator:()=>ef,NEVER:()=>F1,TimePrecision:()=>c4,_any:()=>E4,_array:()=>j4,_base64:()=>Fm,_base64url:()=>Bm,_bigint:()=>S4,_boolean:()=>_4,_catch:()=>rV,_check:()=>J9,_cidrv4:()=>Um,_cidrv6:()=>Lm,_coercedBigint:()=>$4,_coercedBoolean:()=>k4,_coercedDate:()=>R4,_coercedNumber:()=>g4,_coercedString:()=>l4,_cuid:()=>Am,_cuid2:()=>Mm,_custom:()=>L4,_date:()=>N4,_decode:()=>em,_decodeAsync:()=>rm,_default:()=>QZ,_discriminatedUnion:()=>FZ,_e164:()=>Zm,_email:()=>$m,_emoji:()=>zm,_encode:()=>Qp,_encodeAsync:()=>tm,_endsWith:()=>xs,_enum:()=>WZ,_file:()=>U4,_float32:()=>y4,_float64:()=>b4,_gt:()=>$n,_gte:()=>er,_guid:()=>Ru,_includes:()=>ys,_int:()=>v4,_int32:()=>x4,_int64:()=>I4,_intersection:()=>BZ,_ipv4:()=>Om,_ipv6:()=>jm,_isoDate:()=>p4,_isoDateTime:()=>d4,_isoDuration:()=>f4,_isoTime:()=>m4,_jwt:()=>Vm,_ksuid:()=>Rm,_lazy:()=>aV,_length:()=>Ki,_literal:()=>JZ,_lowercase:()=>gs,_lt:()=>Sn,_lte:()=>Mr,_mac:()=>u4,_map:()=>GZ,_max:()=>Mr,_maxLength:()=>Ji,_maxSize:()=>ti,_mime:()=>ws,_min:()=>er,_minLength:()=>io,_minSize:()=>In,_multipleOf:()=>ei,_nan:()=>O4,_nanoid:()=>Em,_nativeEnum:()=>HZ,_negative:()=>qm,_never:()=>M4,_nonnegative:()=>Hm,_nonoptional:()=>eV,_nonpositive:()=>Wm,_normalize:()=>_s,_null:()=>z4,_nullable:()=>YZ,_number:()=>h4,_optional:()=>XZ,_overwrite:()=>dn,_parse:()=>us,_parseAsync:()=>cs,_pipe:()=>nV,_positive:()=>Gm,_promise:()=>sV,_property:()=>Jm,_readonly:()=>oV,_record:()=>VZ,_refine:()=>F4,_regex:()=>hs,_safeDecode:()=>om,_safeDecodeAsync:()=>am,_safeEncode:()=>nm,_safeEncodeAsync:()=>im,_safeParse:()=>ds,_safeParseAsync:()=>ps,_set:()=>qZ,_size:()=>Hi,_slugify:()=>Is,_startsWith:()=>bs,_string:()=>s4,_stringFormat:()=>Ts,_stringbool:()=>G4,_success:()=>tV,_superRefine:()=>B4,_symbol:()=>
vendor: 9,241 bytes, line 55
55P4,_templateLiteral:()=>iV,_toLowerCase:()=>Ss,_toUpperCase:()=>$s,_transform:()=>KZ,_trim:()=>ks,_tuple:()=>ZZ,_uint32:()=>w4,_uint64:()=>T4,_ulid:()=>Dm,_undefined:()=>C4,_union:()=>UZ,_unknown:()=>A4,_uppercase:()=>vs,_url:()=>Ou,_uuid:()=>Im,_uuidv4:()=>Tm,_uuidv6:()=>Pm,_uuidv7:()=>Cm,_void:()=>D4,_xid:()=>Nm,_xor:()=>LZ,clone:()=>Qt,config:()=>vt,createStandardJSONSchemaMethod:()=>Ps,createToJSONSchemaMethod:()=>q4,decode:()=>cB,decodeAsync:()=>pB,describe:()=>Z4,encode:()=>uB,encodeAsync:()=>dB,extractDefs:()=>ni,finalize:()=>oi,flattenError:()=>Iu,formatError:()=>Tu,globalConfig:()=>yu,globalRegistry:()=>Ut,initializeContext:()=>ri,isValidBase64:()=>gx,isValidBase64URL:()=>WI,isValidJWT:()=>HI,locales:()=>Nu,meta:()=>V4,parse:()=>Xp,parseAsync:()=>Yp,prettifyError:()=>Q1,process:()=>Ze,regexes:()=>Gr,registry:()=>Sm,safeDecode:()=>fB,safeDecodeAsync:()=>gB,safeEncode:()=>mB,safeEncodeAsync:()=>hB,safeParse:()=>eb,safeParseAsync:()=>tb,toDotPath:()=>CI,toJSONSchema:()=>Qm,treeifyError:()=>Y1,util:()=>Z,version:()=>Hb});var F1=Object.freeze({status:"aborted"});function E(e,t,r){function o(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let u=a.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){let p=c[d];p in s||(s[p]=u[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var l;let u=r?.Parent?new i:this;o(u,s),(l=u._zod).deferred??(l.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Hp=Symbol("zod_brand"),cn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Jo=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},yu={};function vt(e){return e&&Object.assign(yu,e),yu}var Z={};cr(Z,{BIGINT_FORMAT_RANGES:()=>X1,Class:()=>Z1,NUMBER_FORMAT_RANGES:()=>K1,aborted:()=>Qo,allowsEval:()=>q1,assert:()=>FF,assertEqual:()=>OF,assertIs:()=>UF,assertNever:()=>LF,assertNotEqual:()=>jF,assignProp:()=>Xo,base64ToUint8Array:()=>II,base64urlToUint8Array:()=>oB,cached:()=>ss,captureStackTrace:()=>Kp,cleanEnum:()=>nB,cleanRegex:()=>wu,clone:()=>Qt,cloneDef:()=>ZF,createTransparentProxy:()=>JF,defineLazy:()=>Ee,esc:()=>Jp,escapeRegex:()=>Vr,extend:()=>YF,finalizeIssue:()=>hr,floatSafeRemainder:()=>V1,getElementAtPath:()=>VF,getEnumValues:()=>xu,getLengthableOrigin:()=>Su,getParsedType:()=>HF,getSizableOrigin:()=>ku,hexToUint8Array:()=>aB,isObject:()=>Gi,isPlainObject:()=>Yo,issue:()=>ls,joinValues:()=>D,jsonStringifyReplacer:()=>as,merge:()=>eB,mergeDefs:()=>oo,normalizeParams:()=>J,nullish:()=>Ko,numKeys:()=>WF,objectClone:()=>BF,omit:()=>XF,optionalKeys:()=>J1,parsedType:()=>B,partial:()=>tB,pick:()=>KF,prefixIssues:()=>Ar,primitiveTypes:()=>H1,promiseAllObject:()=>GF,propertyKeyTypes:()=>_u,randomString:()=>qF,required:()=>rB,safeExtend:()=>QF,shallowClone:()=>W1,slugify:()=>G1,stringifyPrimitive:()=>L,uint8ArrayToBase64:()=>TI,uint8ArrayToBase64url:()=>iB,uint8ArrayToHex:()=>sB,unwrapMessage:()=>bu});function OF(e){return e}function jF(e){return e}function UF(e){}function LF(e){throw new Error("Unexpected value in exhaustive check")}function FF(e){}function xu(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function D(e,t="|"){return e.map(r=>L(r)).join(t)}function as(e,t){return typeof t=="bigint"?t.toString():t}function ss(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ko(e){return e==null}function wu(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function V1(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}var $I=Symbol("evaluating");function Ee(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==$I)return o===void 0&&(o=$I,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function BF(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Xo(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function oo(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function ZF(e){return oo(e._zod.def)}function VF(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function GF(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function qF(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Jp(e){return JSON.stringify(e)}function G1(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Kp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var q1=ss(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Yo(e){if(Gi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Gi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function W1(e){return Yo(e)?{...e}:Array.isArray(e)?[...e]:e}function WF(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var HF=e=>{let t=typeof e;switch(t){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: ${t}`)}},_u=new Set(["string","number","symbol"]),H1=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Vr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function J(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function JF(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function L(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function J1(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var K1={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]},X1={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function KF(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=oo(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Xo(this,"shape",a),a},checks:[]});return Qt(e,i)}function XF(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=oo(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Xo(this,"shape",a),a},checks:[]});return Qt(e,i)}function YF(e,t){if(!Yo(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot over
55write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=oo(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Xo(this,"shape",i),i}});return Qt(e,n)}function QF(e,t){if(!Yo(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=oo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Xo(this,"shape",o),o}});return Qt(e,r)}function eB(e,t){let r=oo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Xo(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return Qt(e,r)}function tB(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=oo(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)l[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return Xo(this,"shape",l),l},checks:[]});return Qt(t,a)}function rB(e,t,r){let o=oo(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return Xo(this,"shape",i),i}});return Qt(t,o)}function Qo(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Ar(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function bu(e){return typeof e=="string"?e:e?.message}function hr(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=bu(e.inst?._zod.def?.error?.(e))??bu(t?.error?.(e))??bu(r.customError?.(e))??bu(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function ku(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Su(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function B(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function ls(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function nB(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function II(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function TI(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function oB(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return II(t+r)}function iB(e){return TI(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function aB(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function sB(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Z1=class{constructor(...t){}};var PI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,as,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},$u=E("$ZodError",PI),gr=E("$ZodError",PI,{Parent:Error});function Iu(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function Tu(e,t=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,s=0;for(;s<i.path.length;){let l=i.path[s];s===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(i))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return o(e),r}function Y1(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>o({issues:u},l.path));else if(l.code==="invalid_key")o({issues:l.issues},l.path);else if(l.code==="invalid_element")o({issues:l.issues},l.path);else{let u=[...i,...l.path];if(u.length===0){r.errors.push(t(l));continue}let c=r,d=0;for(;d<u.length;){let p=u[d],m=d===u.length-1;typeof p=="string"?(c.properties??(c.properties={}),(a=c.properties)[p]??(a[p]={errors:[]}),c=c.properties[p]):(c.items??(c.items=[]),(s=c.items)[p]??(s[p]={errors:[]}),c=c.items[p]),m&&c.errors.push(t(l)),d++}}};return o(e),r}function CI(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);
vendor: 95,420 bytes, lines 55-92
55for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function Q1(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${CI(o.path)}`);return t.join(` 56`)}var us=e=>(t,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new cn;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>hr(l,i,vt())));throw Kp(s,n?.callee),s}return a.value},Xp=us(gr),cs=e=>async(t,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>hr(l,i,vt())));throw Kp(s,n?.callee),s}return a.value},Yp=cs(gr),ds=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new cn;return i.issues.length?{success:!1,error:new(e??$u)(i.issues.map(a=>hr(a,n,vt())))}:{success:!0,data:i.value}},eb=ds(gr),ps=e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>hr(a,n,vt())))}:{success:!0,data:i.value}},tb=ps(gr),Qp=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return us(e)(t,r,n)},uB=Qp(gr),em=e=>(t,r,o)=>us(e)(t,r,o),cB=em(gr),tm=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return cs(e)(t,r,n)},dB=tm(gr),rm=e=>async(t,r,o)=>cs(e)(t,r,o),pB=rm(gr),nm=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return ds(e)(t,r,n)},mB=nm(gr),om=e=>(t,r,o)=>ds(e)(t,r,o),fB=om(gr),im=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return ps(e)(t,r,n)},hB=im(gr),am=e=>async(t,r,o)=>ps(e)(t,r,o),gB=am(gr);var Gr={};cr(Gr,{base64:()=>vb,base64url:()=>sm,bigint:()=>kb,boolean:()=>$b,browserEmail:()=>SB,cidrv4:()=>hb,cidrv6:()=>gb,cuid:()=>rb,cuid2:()=>nb,date:()=>bb,datetime:()=>wb,domain:()=>TB,duration:()=>lb,e164:()=>yb,email:()=>cb,emoji:()=>db,extendedDuration:()=>vB,guid:()=>ub,hex:()=>PB,hostname:()=>IB,html5Email:()=>wB,idnEmail:()=>kB,integer:()=>Sb,ipv4:()=>pb,ipv6:()=>mb,ksuid:()=>ab,lowercase:()=>Pb,mac:()=>fb,md5_base64:()=>zB,md5_base64url:()=>EB,md5_hex:()=>CB,nanoid:()=>sb,null:()=>Ib,number:()=>lm,rfc5322Email:()=>_B,sha1_base64:()=>MB,sha1_base64url:()=>DB,sha1_hex:()=>AB,sha256_base64:()=>RB,sha256_base64url:()=>OB,sha256_hex:()=>NB,sha384_base64:()=>UB,sha384_base64url:()=>LB,sha384_hex:()=>jB,sha512_base64:()=>BB,sha512_base64url:()=>ZB,sha512_hex:()=>FB,string:()=>_b,time:()=>xb,ulid:()=>ob,undefined:()=>Tb,unicodeEmail:()=>zI,uppercase:()=>Cb,uuid:()=>qi,uuid4:()=>yB,uuid6:()=>bB,uuid7:()=>xB,xid:()=>ib});var rb=/^[cC][^\s-]{8,}$/,nb=/^[0-9a-z]+$/,ob=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ib=/^[0-9a-vA-V]{20}$/,ab=/^[A-Za-z0-9]{27}$/,sb=/^[a-zA-Z0-9_-]{21}$/,lb=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vB=/^[-+]?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)?)??$/,ub=/^([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})$/,qi=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)$/,yB=qi(4),bB=qi(6),xB=qi(7),cb=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,wB=/^[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])?)*$/,_B=/^(([^<>()\[\]\\.,;:\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,}))$/,zI=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,kB=zI,SB=/^[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])?)*$/,$B="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function db(){return new RegExp($B,"u")}var pb=/^(?:(?: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])$/,mb=/^(([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}|:))$/,fb=e=>{let t=Vr(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},hb=/^((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])$/,gb=/^(([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])$/,vb=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,sm=/^[A-Za-z0-9_-]*$/,IB=/^(?=.{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])?)*\.?$/,TB=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,yb=/^\+[1-9]\d{6,14}$/,EI="(?:(?:\\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])))",bb=new RegExp(`^${EI}$`);function AI(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function xb(e){return new RegExp(`^${AI(e)}$`)}function wb(e){let t=AI({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${EI}T(?:${o})$`)}var _b=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},kb=/^-?\d+n?$/,Sb=/^-?\d+$/,lm=/^-?\d+(?:\.\d+)?$/,$b=/^(?:true|false)$/i,Ib=/^null$/i;var Tb=/^undefined$/i;var Pb=/^[^A-Z]*$/,Cb=/^[^a-z]*$/,PB=/^[0-9a-fA-F]*$/;function Pu(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Cu(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var CB=/^[0-9a-fA-F]{32}$/,zB=Pu(22,"=="),EB=Cu(22),AB=/^[0-9a-fA-F]{40}$/,MB=Pu(27,"="),DB=Cu(27),NB=/^[0-9a-fA-F]{64}$/,RB=Pu(43,"="),OB=Cu(43),jB=/^[0-9a-fA-F]{96}$/,UB=Pu(64,""),LB=Cu(64),FB=/^[0-9a-fA-F]{128}$/,BB=Pu(86,"=="),ZB=Cu(86);var Xe=E("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),DI={number:"number",bigint:"bigint",object:"date"},um=E("$ZodCheckLessThan",(e,t)=>{Xe.init(e,t);let r=DI[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cm=E("$ZodCheckGreaterThan",(e,t)=>{Xe.init(e,t);let r=DI[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zb=E("$ZodCheckMultipleOf",(e,t)=>{Xe.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):V1(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Eb=E("$ZodCheckNumberFormat",(e,t)=>{Xe.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=K1[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=Sb)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ab=E("$ZodCheckBigIntFormat",(e,t)=>{Xe.init(e,t);let[r,o]=X1[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Mb=E("$ZodCheckMaxSize",(e,t)=>{var r;Xe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ko(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:ku(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Db=E("$ZodCheckMinSize",(e,t)=>{var r;Xe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ko(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:ku(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Nb=E("$ZodCheckSizeEquals",(e,t)=>{var r;Xe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ko(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:ku(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Rb=E("$ZodCheckMaxLength",(e,t)=>{var r;Xe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ko(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=Su(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ob=E("$ZodCheckMinLength",(e,t)=>{var r;Xe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ko(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=Su(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),jb=E("$ZodCheckLengthEquals",(e,t)=>{var r;Xe.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ko(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=Su(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),ms=E("$ZodCheckStringFormat",(e,t)=>{var r,o;Xe.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ub=E("$ZodCheckRegex",(e,t)=>{ms.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Lb=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Pb),ms.init(e,t)}),Fb=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Cb),ms.init(e,t)}),Bb=E("$ZodCheckIncludes",(e,t)=>{Xe.init(e,t);let r=Vr(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Zb=E("$ZodCheckStartsWith",(e,t)=>{Xe.init(e,t);let r=new RegExp(`^${Vr(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Vb=E("$ZodCheckEndsWith",(e,t)=>{Xe.init(e,t);let r=new RegExp(`.*${Vr(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function MI(e,t,r){e.issues.length&&t.issues.push(...Ar(r,e.issues))}var Gb=E("$ZodCheckProperty",(e,t)=>{Xe.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>MI(n,r,t.property));MI(o,r,t.property)}}),qb=E("$ZodCheckMimeType",(e,t)=>{Xe.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Wb=E("$ZodCheckOverwrite",(e,t)=>{Xe.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var zu=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(` 57`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(` 58`))}};var Hb={major:4,minor:3,patch:6};var ve=E("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Hb;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,l)=>{let u=Qo(a),c;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(u)continue;let p=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&l?.async===!1)throw new cn;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,a.issues.length!==p&&(u||(u=Qo(a,p)))});else{if(a.issues.length===p)continue;u||(u=Qo(a,p))}}return c?c.then(()=>a):a},i=(a,s,l)=>{if(Qo(a))return a.aborted=!0,a;let u=n(s,o,l);if(u instanceof Promise){if(l.async===!1)throw new cn;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(c=>i(c,a,s)):i(u,a,s)}let l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new cn;return l.then(u=>n(u,o,s))}return n(l,o,s)}}Ee(e,"~standard",()=>({validate:n=>{try{let i=eb(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return tb(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Wi=E("$ZodString",(e,t)=>{ve.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??_b(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),We=E("$ZodStringFormat",(e,t)=>{ms.init(e,t),Wi.init(e,t)}),Kb=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ub),We.init(e,t)}),Xb=E("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qi(o))}else t.pattern??(t.pattern=qi());We.init(e,t)}),Yb=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=cb),We.init(e,t)}),Qb=E("$ZodURL",(e,t)=>{We.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ex=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=db()),We.init(e,t)}),tx=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=sb),We.init(e,t)}),rx=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=rb),We.init(e,t)}),nx=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=nb),We.init(e,t)}),ox=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ob),We.init(e,t)}),ix=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ib),We.init(e,t)}),ax=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ab),We.init(e,t)}),sx=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=wb(t)),We.init(e,t)}),lx=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=bb),We.init(e,t)}),ux=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=xb(t)),We.init(e,t)}),cx=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=lb),We.init(e,t)}),dx=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=pb),We.init(e,t),e._zod.bag.format="ipv4"}),px=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=mb),We.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),mx=E("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=fb(t.delimiter)),We.init(e,t),e._zod.bag.format="mac"}),fx=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=hb),We.init(e,t)}),hx=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gb),We.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function gx(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var vx=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=vb),We.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{gx(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function WI(e){if(!sm.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return gx(r)}var yx=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=sm),We.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{WI(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),bx=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=yb),We.init(e,t)});function HI(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var xx=E("$ZodJWT",(e,t)=>{We.init(e,t),e._zod.check=r=>{HI(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),wx=E("$ZodCustomStringFormat",(e,t)=>{We.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),gm=E("$ZodNumber",(e,t)=>{ve.init(e,t),e._zod.pattern=e._zod.bag.pattern??lm,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),_x=E("$ZodNumberFormat",(e,t)=>{Eb.init(e,t),gm.init(e,t)}),Eu=E("$ZodBoolean",(e,t)=>{ve.init(e,t),e._zod.pattern=$b,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),vm=E("$ZodBigInt",(e,t)=>{ve.init(e,t),e._zod.pattern=kb,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),kx=E("$ZodBigIntFormat",(e,t)=>{Ab.init(e,t),vm.init(e,t)}),Sx=E("$ZodSymbol",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),$x=E("$ZodUndefined",(e,t)=>{ve.init(e,t),e._zod.pattern=Tb,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Ix=E("$ZodNull",(e,t)=>{ve.init(e,t),e._zod.pattern=Ib,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Tx=E("$ZodAny",(e,t)=>{ve.init(e,t),e._zod.parse=r=>r}),Px=E("$ZodUnknown",(e,t)=>{ve.init(e,t),e._zod.parse=r=>r}),Cx=E("$ZodNever",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),zx=E("$ZodVoid",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Ex=E("$ZodDate",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function RI(e,t,r){e.issues.length&&t.issues.push(...Ar(r,e.issues)),t.value[r]=e.value}var Ax=E("$ZodArray",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let s=n[a],l=t.element._zod.run({value:s,issues:[]},o);l instanceof Promise?i.push(l.then(u=>RI(u,r,a))):RI(l,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function hm(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...Ar(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function JI(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=J1(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function KI(e,t,r,o,n,i){let a=[],s=n.keySet,l=n.catchall._zod,u=l.def.type,c=l.optout==="optional";for(let d in t){if(s.has(d))continue;if(u==="never"){a.push(d);continue}let p=l.run({value:t[d],issues:[]},o);p instanceof Promise?e.push(p.then(m=>hm(m,r,d,t,c))):hm(p,r,d,t,c)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var XI=E("$ZodObject",(e,t)=>{if(ve.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}let o=ss(()=>JI(t));Ee(e._zod,"propValues",()=>{let s=t.shape,l={};for(let u in s){let c=s[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let d of c.values)l[u].add(d)}}return l});let n=Gi,i=t.catchall,a;e._zod.parse=(s,l)=>{a??(a=o.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let c=[],d=a.shape;for(let p of a.keys){let m=d[p],g=m._zod.optout==="optional",x=m._zod.run({value:u[p],issues:[]},l);x instanceof Promise?c.push(x.then(w=>hm(w,s,p,u,g))):hm(x,s,p,u,g)}return i?KI(c,u,s,l,o.value,e):c.length?Promise.all(c).then(()=>s):s}}),Mx=E("$ZodObjectJIT",(e,t)=>{XI.init(e,t);let r=e._zod.parse,o=ss(()=>JI(t)),n=p=>{let m=new zu(["shape","payload","ctx"]),g=o.value,x=b=>{let T=Jp(b);return`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`};m.write("const input = payload.value;");let w=Object.create(null),S=0;for(let b of g.keys)w[b]=`key_${S++}`;m.write("const newResult = {};");for(let b of g.keys){let T=w[b],$=Jp(b),M=p[b]?._zod?.optout==="optional";m.write(`const ${T} = ${x(b)};`),M?m.write(` 59 if (${T}.issues.length) { 60 if (${$} in input) { 61 payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ 62 ...iss, 63 path: iss.path ? [${$}, ...iss.path] : [${$}] 64 }))); 65 } 66 } 67 68 if (${T}.value === undefined) { 69 if (${$} in input) { 70 newResult[${$}] = undefined; 71 } 72 } else { 73 newResult[${$}] = ${T}.value; 74 } 75 76 `):m.write(` 77 if (${T}.issues.length) { 78 payload.issues = payload.issues.concat(${T}.issues.map(iss => ({ 79 ...iss, 80 path: iss.path ? [${$}, ...iss.path] : [${$}] 81 }))); 82 } 83 84 if (${T}.value === undefined) { 85 if (${$} in input) { 86 newResult[${$}] = undefined; 87 } 88 } else { 89 newResult[${$}] = ${T}.value; 90 } 91 92 `)}m.write("payload.value = newResult;"),m.write("return payload;");let _=m.compile();return(b,T)=>_(p,b,T)},i,a=Gi,s=!yu.jitless,u=s&&q1.value,c=t.catchall,d;e._zod.parse=(p,m)=>{d??(d=o.value);let g=p.value;return a(g)?s&&u&&m?.async===!1&&m.jitless!==!0?(i||(i=n(t.shape)),p=i(p,m),c?KI([],g,p,m,d,e):p):r(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function OI(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!Qo(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>hr(a,o,vt())))}),t)}var Au=E("$ZodUnion",(e,t)=>{ve.init(e,t),Ee(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Ee(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Ee(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Ee(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>wu(i.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},i);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(l=>OI(l,n,e,i)):OI(s,n,e,i)}});function jI(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>hr(a,o,vt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Dx=E("$ZodXor",(e,t)=>{Au.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},i);u instanceof Promise?(s.push(u),a=!0):s.push(u)}return a?Promise.all(s).then(l=>jI(l,n,e,i)):jI(s,n,e,i)}}),Nx=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Au.init(e,t);let r=e._zod.parse;Ee(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,l]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of l)n[s].add(u)}}return n});let o=ss(()=>{let n=t.options,i=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let l of s){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Gi(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),Rx=E("$ZodIntersection",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([l,u])=>UI(r,l,u)):UI(r,i,a)}});function Jb(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Yo(e)&&Yo(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=Jb(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=Jb(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function UI(e,t,r){let o=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&n&&e.issues.push({...n,keys:i}),Qo(e))return e;let a=Jb(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var ym=E("$ZodTuple",(e,t)=>{ve.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=[...r].reverse().findIndex(c=>c._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let c=i.length>r.length,d=i.length<l-1;if(c||d)return o.issues.push({...c?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let u=-1;for(let c of r){if(u++,u>=i.length&&u>=l)continue;let d=c._zod.run({value:i[u],issues:[]},n);d instanceof Promise?a.push(d.then(p=>dm(p,o,u))):dm(d,o,u)}if(t.rest){let c=i.slice(r.length);for(let d of c){u++;let p=t.rest._zod.run({value:d,issues:[]},n);p instanceof Promise?a.push(p.then(m=>dm(m,o,u))):dm(p,o,u)}}return a.length?Promise.all(a).then(()=>o):o}});function dm(e,t,r){e.issues.length&&t.issues.push(...Ar(r,e.issues)),t.value[r]=e.value}var Ox=E("$ZodRecord",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Yo(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let c=t.valueType._zod.run({value:n[u],issues:[]},o);c instanceof Promise?i.push(c.then(d=>{d.issues.length&&r.issues.push(...Ar(u,d.issues)),r.value[u]=d.value})):(c.issues.length&&r.issues.push(...Ar(u,c.issues)),r.value[u]=c.value)}let l;for(let u in n)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&lm.test(s)&&l.issues.length){let d=t.keyType._zod.run({value:Number(s),issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>hr(d,o,vt())),input:s,path:[s],inst:e});continue}let c=t.valueType._zod.run({value:n[s],issues:[]},o);c instanceof Promise?i.push(c.then(d=>{d.issues.length&&r.issues.push(...Ar(s,d.issues)),r.value[l.value]=d.value})):(c.issues.length&&r.issues.push(...Ar(s,c.issues)),r.value[l.value]=c.value)}}return i.length?Promise.all(i).then(()=>r):r}}),jx=E("$ZodMap",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of n){let l=t.keyType._zod.run({value:a,issues:[]},o),u=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||u instanceof Promise?i.push(Promise.all([l,u]).then(([c,d])=>{LI(c,d,r,a,n,e,o)})):LI(l,u,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function LI(e,t,r,o,n,i,a){e.issues.length&&(_u.has(typeof o)?r.issues.push(...Ar(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>hr(s,a,vt()))})),t.issues.length&&(_u.has(typeof o)?r.issues.push(...Ar(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>hr(s,a,vt()))})),r.value.set(e.value,t.value)}var Ux=E("$ZodSet",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(l=>FI(l,r))):FI(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function FI(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Lx=E("$ZodEnum",(e,t)=>{ve.init(e,t);let r=xu(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>_u.has(typeof n)).map(n=>typeof n=="string"?Vr(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),Fx=E("$ZodLiteral",(e,t)=>{if(ve.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Vr(o):o?Vr(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Bx=E("$ZodFile",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Zx=E("$ZodTransform",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Jo(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new cn;return r.value=n,r}});function BI(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var bm=E("$ZodOptional",(e,t)=>{ve.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ee(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ee(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${wu(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>BI(i,r.value)):BI(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Vx=E("$ZodExactOptional",(e,t)=>{bm.init(e,t),Ee(e._zod,"values",()=>t.innerType._zod.values),Ee(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Gx=E("$ZodNullable",(e,t)=>{ve.init(e,t),Ee(e._zod,"optin",()=>t.innerType._zod.optin),Ee(e._zod,"optout",()=>t.innerType._zod.optout),Ee(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${wu(r.source)}|null)$`):void 0}),Ee(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),qx=E("$ZodDefault",(e,t)=>{ve.init(e,t),e._zod.optin="optional",Ee(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>ZI(i,t)):ZI(n,t)}});function ZI(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Wx=E("$ZodPrefault",(e,t)=>{ve.init(e,t),e._zod.optin="optional",Ee(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),Hx=E("$ZodNonOptional",(e,t)=>{ve.init(e,t),Ee(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>VI(i,e)):VI(n,e)}});function VI(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Jx=E("$ZodSuccess",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Jo("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Kx=E("$ZodCatch",(e,t)=>{ve.init(e,t),Ee(e._zod,"optin",()=>t.innerType._zod.optin),Ee(e._zod,"optout",()=>t.innerType._zod.optout),Ee(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>hr(a,o,vt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>hr(i,o,vt()))},input:r.value}),r.issues=[]),r)}}),Xx=E("$ZodNaN",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Yx=E("$ZodPipe",(e,t)=>{ve.init(e,t),Ee(e._zod,"values",()=>t.in._zod.values),Ee(e._zod,"optin",()=>t.in._zod.optin),Ee(e._zod,"optout",()=>t.out._zod.optout),Ee(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>pm(a,t.in,o)):pm(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>pm(i,t.out,o)):pm(n,t.out,o)}});function pm(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Mu=E("$ZodCodec",(e,t)=>{ve.init(e,t),Ee(e._zod,"values",()=>t.in._zod.values),Ee(e._zod,"optin",()=>t.in._zod.optin),Ee(e._zod,"optout",()=>t.out._zod.optout),Ee(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>mm(a,t,o)):mm(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>mm(a,t,o)):mm(i,t,o)}}});function mm(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>fm(e,i,t.out,r)):fm(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>fm(e,i,t.in,r)):fm(e,n,t.in,r)}}function fm(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var Qx=E("$ZodReadonly",(e,t)=>{ve.init(e,t),Ee(e._zod,"propValues",()=>t.innerType._zod.propValues),Ee(e._zod,"values",()=>t.innerType._zod.values),Ee(e._zod,"optin",()=>t.innerType?._zod?.optin),Ee(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(GI):GI(n)}});function GI(e){return e.value=Object.freeze(e.value),e}var e4=E("$ZodTemplateLiteral",(e,t)=>{ve.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||H1.has(typeof o))r.push(Vr(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),t4=E("$ZodFunction",(e,t)=>(ve.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?Xp(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Xp(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Yp(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Yp(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new ym({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),r4=E("$ZodPromise",(e,t)=>{ve.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),n4=E("$ZodLazy",(e,t)=>{ve.init(e,t),Ee(e._zod,"innerType",()=>t.getter()),Ee(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ee(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ee(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ee(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),o4=E("$ZodCustom",(e,t)=>{Xe.init(e,t),ve.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>qI(i,r,o,e));qI(n,r,o,e)}});function qI(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(ls(n))}}var Nu={};cr(Nu,{ar:()=>YI,az:()=>QI,be:()=>t9,bg:()=>r9,ca:()=>n9,cs:()=>o9,da:()=>i9,de:()=>a9,en:()=>xm,eo:()=>s9,es:()=>l9,fa:()=>u9,fi:()=>c9,fr:()=>d9,frCA:()=>p9,he:()=>m9,hu:()=>f9,hy:()=>g9,id:()=>v9,is:()=>y9,it:()=>b9,ja:()=>x9,ka:()=>w9,kh:()=>_9,km:()=>wm,ko:()=>k9,lt:()=>$9,mk:()=>I9,ms:()=>T9,nl:()=>P9,no:()=>C9,ota:()=>z9,pl:()=>A9,ps:()=>E9,pt:()=>M9,ru:()=>N9,sl:()=>R9,sv:()=>O9,ta:()=>j9,th:()=>U9,tr:()=>L9,ua:()=>F9,uk:()=>_m,ur:()=>B9,uz:()=>Z9,vi:()=>V9,yo:()=>W9,zhCN:()=>G9,zhTW:()=>q9});var GB=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${L(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${D(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function YI(){return{localeError:GB()}}var qB=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${L(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${D(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function QI(){return{localeError:qB()}}function e9(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var WB=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${L(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=e9(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),l=e9(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${D(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function t9(){return{localeError:WB()}}var HB=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${L(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${D(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function r9(){return{localeError:HB()}}var JB=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${L(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${D(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${D(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function n9(){return{localeError:JB()}}var KB=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${L(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${D(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function o9(){return{localeError:KB()}}var XB=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${L(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${D(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function i9(){return{localeError:XB()}}var YB=()=>{let 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 t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${L(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${D(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function a9(){return{localeError:YB()}}var QB=()=>{let 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"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let r={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",mac:"MAC 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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${L(n.values[0])}`:`Invalid option: expected one of ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${D(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function xm(){return{localeError:QB()}}var eZ=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${L(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${D(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function s9(){return{localeError:eZ()}}var tZ=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${L(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${D(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function l9(){return{localeError:tZ()}}var rZ=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${L(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${D(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${D(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function u9(){return{localeError:rZ()}}var nZ=()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${L(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${D(n.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\xF6te"}}};function c9(){return{localeError:nZ()}}var oZ=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${L(n.values[0])}
92 attendu`:`Option invalide : une valeur parmi ${D(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${D(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function d9(){return{localeError:oZ()}}var iZ=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${L(n.values[0])}
92`:`Option invalide : attendu l'une des valeurs suivantes ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${D(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function p9(){return{localeError:iZ()}}var aZ=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,o=u=>{let c=r(u);return c?c.label:u??e.unknown.label},n=u=>`\u05D4${o(u)}`,i=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return u=>
vendor: 33,580 bytes, line 92
92{switch(u.code){case"invalid_type":{let c=u.expected,d=l[c??""]??o(c),p=B(u.input),m=l[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${L(u.values[0])}`;let c=u.values.map(m=>L(m));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let d=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let c=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let g=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let p=u.inclusive?"<=":"<",m=i(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${u.maximum.toString()}`}case"too_small":{let c=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let g=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let w=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`}let x=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let p=u.inclusive?">=":">",m=i(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${c.pattern}`;let d=s[c.format],p=d?.label??c.format,g=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${g}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${D(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function m9(){return{localeError:aZ()}}var sZ=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${L(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${D(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function f9(){return{localeError:sZ()}}function h9(e,t,r){return Math.abs(e)===1?t:r}function fs(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var lZ=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${L(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=h9(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${fs(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${fs(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),l=h9(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${fs(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${fs(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${D(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${fs(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${fs(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function g9(){return{localeError:lZ()}}var uZ=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${L(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${D(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function v9(){return{localeError:uZ()}}var cZ=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",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\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",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\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${L(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${D(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function y9(){return{localeError:cZ()}}var dZ=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${L(n.values[0])}`:`Opzione non valida: atteso uno tra ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${D(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function b9(){return{localeError:dZ()}}var pZ=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${L(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${D(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${D(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function x9(){return{localeError:pZ()}}var mZ=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${L(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${D(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${D(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function w9(){return{localeError:mZ()}}var fZ=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17
92D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${L(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${D(n.keys,", ")}`;
vendor: 13,627 bytes, line 92
92case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function wm(){return{localeError:fZ()}}function _9(){return wm()}var hZ=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${L(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${D(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${D(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function k9(){return{localeError:hZ()}}var Du=e=>e.charAt(0).toUpperCase()+e.slice(1);function S9(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var gZ=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,i,a,s){let l=e[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[s][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to 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\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${L(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${D(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,S9(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Du(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Du(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,S9(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Du(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Du(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${D(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Du(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function $9(){return{localeError:gZ()}}var vZ=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${L(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u
92041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${D(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function I9(){return{localeError:vZ()}}var yZ=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${L(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${D(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function T9(){return{localeError:yZ()}}var bZ=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${L(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${D(n.values,"|")}`;
vendor: 7,366 bytes, line 92
92case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${D(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function P9(){return{localeError:bZ()}}var xZ=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={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\xE5de",ipv6:"IPv6-omr\xE5de",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"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${L(n.values[0])}`:`Ugyldig valg: forventet en av ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${D(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function C9(){return{localeError:xZ()}}var wZ=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${L(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${D(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function z9(){return{localeError:wZ()}}var _Z=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u
92067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${L(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${D(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${D(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function E9(){return{localeError:_Z()}}var kZ=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>
vendor: 4,455 bytes, line 92
92{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${L(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${D(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function A9(){return{localeError:kZ()}}var SZ=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${L(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>
921?"s":""} desconhecida${n.keys.length>1?"s":""}: ${D(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function M9(){return{localeError:SZ()}}function D9(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var $Z=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${L(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=D9(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),l=D9(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}
vendor: 105,689 bytes, lines 92-94
92case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${D(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function N9(){return{localeError:$Z()}}var IZ=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${L(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${D(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function R9(){return{localeError:IZ()}}var TZ=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${L(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${D(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function O9(){return{localeError:TZ()}}var PZ=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${L(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${D(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${D(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function j9(){return{localeError:PZ()}}var CZ=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${L(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${D(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function U9(){return{localeError:CZ()}}var zZ=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${L(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${D(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function L9(){return{localeError:zZ()}}var EZ=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${L(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${D(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function _m(){return{localeError:EZ()}}function F9(){return _m()}var AZ=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${L(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${D(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${D(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function B9(){return{localeError:AZ()}}var MZ=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${L(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${D(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Z9(){return{localeError:MZ()}}var DZ=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${L(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${D(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function V9(){return{localeError:DZ()}}var NZ=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${L(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${D(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function G9(){return{localeError:NZ()}}var RZ=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${L(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${D(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function q9(){return{localeError:RZ()}}var OZ=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=B(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${L(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${D(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${D(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function W9(){return{localeError:OZ()}}var H9,i4=Symbol("ZodOutput"),a4=Symbol("ZodInput"),km=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Sm(){return new km}(H9=globalThis).__zod_globalRegistry??(H9.__zod_globalRegistry=Sm());var Ut=globalThis.__zod_globalRegistry;function s4(e,t){return new e({type:"string",...J(t)})}function l4(e,t){return new e({type:"string",coerce:!0,...J(t)})}function $m(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...J(t)})}function Ru(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...J(t)})}function Im(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...J(t)})}function Tm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(t)})}function Pm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(t)})}function Cm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(t)})}function Ou(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...J(t)})}function zm(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...J(t)})}function Em(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(t)})}function Am(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...J(t)})}function Mm(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(t)})}function Dm(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...J(t)})}function Nm(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...J(t)})}function Rm(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(t)})}function Om(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(t)})}function jm(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(t)})}function u4(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...J(t)})}function Um(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(t)})}function Lm(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(t)})}function Fm(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...J(t)})}function Bm(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...J(t)})}function Zm(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...J(t)})}function Vm(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...J(t)})}var c4={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function d4(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(t)})}function p4(e,t){return new e({type:"string",format:"date",check:"string_format",...J(t)})}function m4(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...J(t)})}function f4(e,t){return new e({type:"string",format:"duration",check:"string_format",...J(t)})}function h4(e,t){return new e({type:"number",checks:[],...J(t)})}function g4(e,t){return new e({type:"number",coerce:!0,checks:[],...J(t)})}function v4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...J(t)})}function y4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...J(t)})}function b4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...J(t)})}function x4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...J(t)})}function w4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...J(t)})}function _4(e,t){return new e({type:"boolean",...J(t)})}function k4(e,t){return new e({type:"boolean",coerce:!0,...J(t)})}function S4(e,t){return new e({type:"bigint",...J(t)})}function $4(e,t){return new e({type:"bigint",coerce:!0,...J(t)})}function I4(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...J(t)})}function T4(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...J(t)})}function P4(e,t){return new e({type:"symbol",...J(t)})}function C4(e,t){return new e({type:"undefined",...J(t)})}function z4(e,t){return new e({type:"null",...J(t)})}function E4(e){return new e({type:"any"})}function A4(e){return new e({type:"unknown"})}function M4(e,t){return new e({type:"never",...J(t)})}function D4(e,t){return new e({type:"void",...J(t)})}function N4(e,t){return new e({type:"date",...J(t)})}function R4(e,t){return new e({type:"date",coerce:!0,...J(t)})}function O4(e,t){return new e({type:"nan",...J(t)})}function Sn(e,t){return new um({check:"less_than",...J(t),value:e,inclusive:!1})}function Mr(e,t){return new um({check:"less_than",...J(t),value:e,inclusive:!0})}function $n(e,t){return new cm({check:"greater_than",...J(t),value:e,inclusive:!1})}function er(e,t){return new cm({check:"greater_than",...J(t),value:e,inclusive:!0})}function Gm(e){return $n(0,e)}function qm(e){return Sn(0,e)}function Wm(e){return Mr(0,e)}function Hm(e){return er(0,e)}function ei(e,t){return new zb({check:"multiple_of",...J(t),value:e})}function ti(e,t){return new Mb({check:"max_size",...J(t),maximum:e})}function In(e,t){return new Db({check:"min_size",...J(t),minimum:e})}function Hi(e,t){return new Nb({check:"size_equals",...J(t),size:e})}function Ji(e,t){return new Rb({check:"max_length",...J(t),maximum:e})}function io(e,t){return new Ob({check:"min_length",...J(t),minimum:e})}function Ki(e,t){return new jb({check:"length_equals",...J(t),length:e})}function hs(e,t){return new Ub({check:"string_format",format:"regex",...J(t),pattern:e})}function gs(e){return new Lb({check:"string_format",format:"lowercase",...J(e)})}function vs(e){return new Fb({check:"string_format",format:"uppercase",...J(e)})}function ys(e,t){return new Bb({check:"string_format",format:"includes",...J(t),includes:e})}function bs(e,t){return new Zb({check:"string_format",format:"starts_with",...J(t),prefix:e})}function xs(e,t){return new Vb({check:"string_format",format:"ends_with",...J(t),suffix:e})}function Jm(e,t,r){return new Gb({check:"property",property:e,schema:t,...J(r)})}function ws(e,t){return new qb({check:"mime_type",mime:e,...J(t)})}function dn(e){return new Wb({check:"overwrite",tx:e})}function _s(e){return dn(t=>t.normalize(e))}function ks(){return dn(e=>e.trim())}function Ss(){return dn(e=>e.toLowerCase())}function $s(){return dn(e=>e.toUpperCase())}function Is(){return dn(e=>G1(e))}function j4(e,t,r){return new e({type:"array",element:t,...J(r)})}function UZ(e,t,r){return new e({type:"union",options:t,...J(r)})}function LZ(e,t,r){return new e({type:"union",options:t,inclusive:!1,...J(r)})}function FZ(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...J(o)})}function BZ(e,t,r){return new e({type:"intersection",left:t,right:r})}function ZZ(e,t,r,o){let n=r instanceof ve,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...J(i)})}function VZ(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...J(o)})}function GZ(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...J(o)})}function qZ(e,t,r){return new e({type:"set",valueType:t,...J(r)})}function WZ(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...J(r)})}function HZ(e,t,r){return new e({type:"enum",entries:t,...J(r)})}function JZ(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...J(r)})}function U4(e,t){return new e({type:"file",...J(t)})}function KZ(e,t){return new e({type:"transform",transform:t})}function XZ(e,t){return new e({type:"optional",innerType:t})}function YZ(e,t){return new e({type:"nullable",innerType:t})}function QZ(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():W1(r)}})}function eV(e,t,r){return new e({type:"nonoptional",innerType:t,...J(r)})}function tV(e,t){return new e({type:"success",innerType:t})}function rV(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function nV(e,t,r){return new e({type:"pipe",in:t,out:r})}function oV(e,t){return new e({type:"readonly",innerType:t})}function iV(e,t,r){return new e({type:"template_literal",parts:t,...J(r)})}function aV(e,t){return new e({type:"lazy",getter:t})}function sV(e,t){return new e({type:"promise",innerType:t})}function L4(e,t,r){let o=J(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function F4(e,t,r){return new e({type:"custom",check:"custom",fn:t,...J(r)})}function B4(e){let t=J9(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(ls(o,r.value,t._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(ls(n))}},e(r.value,r)));return t}function J9(e,t){let r=new Xe({check:"custom",...J(t)});return r._zod.check=e,r}function Z4(e){let t=new Xe({check:"describe"});return t._zod.onattach=[r=>{let o=Ut.get(r)??{};Ut.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function V4(e){let t=new Xe({check:"meta"});return t._zod.onattach=[r=>{let o=Ut.get(r)??{};Ut.add(r,{...o,...e})}],t._zod.check=()=>{},t}function G4(e,t){let r=J(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));let i=new Set(o),a=new Set(n),s=e.Codec??Mu,l=e.Boolean??Eu,u=e.String??Wi,c=new u({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),p=new s({type:"pipe",in:c,out:d,transform:((m,g)=>{let x=m;return r.case!=="sensitive"&&(x=x.toLowerCase()),i.has(x)?!0:a.has(x)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:g.value,inst:p,continue:!1}),{})}),reverseTransform:((m,g)=>m===!0?o[0]||"true":n[0]||"false"),error:r.error});return p}function Ts(e,t,r,o={}){let n=J(o),i={...J(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function ri(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ut,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Ze(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let c={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,c);else{let p=a.schema,m=t.processors[n.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,p,c)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),Ze(d,t,c),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&tr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function ni(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let l=o.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,p=e.external.uri??(g=>g);if(d)return{ref:p(d)};let m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${p("__shared")}#/${s}/${m}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,c=a[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let c=s.schema;for(let d in c)delete c[d];c.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root> 93 94Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function oi(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let s=e.seen.get(a);if(s.ref===null)return;let l=s.def??s.schema,u={...l},c=s.ref;if(s.ref=null,c){o(c);let p=e.seen.get(c),m=p.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(m)):Object.assign(l,m),Object.assign(l,u),a._zod.parent===c)for(let x in l)x==="$ref"||x==="allOf"||x in u||delete l[x];if(m.$ref&&p.def)for(let x in l)x==="$ref"||x==="allOf"||x in p.def&&JSON.stringify(l[x])===JSON.stringify(p.def[x])&&delete l[x]}let d=a._zod.parent;if(d&&d!==c){o(d);let p=e.seen.get(d);if(p?.schema.$ref&&(l.$ref=p.schema.$ref,p.def))for(let m in l)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(l[m])===JSON.stringify(p.def[m])&&delete l[m]}e.override({zodSchema:a,jsonSchema:l,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ps(t,"input",e.processors),output:Ps(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function tr(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return tr(o.element,r);if(o.type==="set")return tr(o.valueType,r);if(o.type==="lazy")return tr(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return tr(o.innerType,r);if(o.type==="intersection")return tr(o.left,r)||tr(o.right,r);if(o.type==="record"||o.type==="map")return tr(o.keyType,r)||tr(o.valueType,r);if(o.type==="pipe")return tr(o.in,r)||tr(o.out,r);if(o.type==="object"){for(let n in o.shape)if(tr(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(tr(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(tr(n,r))return!0;return!!(o.rest&&tr(o.rest,r))}return!1}var q4=(e,t={})=>r=>{let o=ri({...r,processors:t});return Ze(e,o),ni(o,e),oi(o,e)},Ps=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=ri({...n??{},target:i,io:t,processors:r});return Ze(e,a),ni(a,e),oi(a,e)};var lV={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},W4=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=lV[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?n.pattern=c[0].source:c.length>1&&(n.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},H4=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c),typeof i=="number"&&(n.minimum=i,typeof c=="number"&&t.target!=="draft-04"&&(c>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u),typeof a=="number"&&(n.maximum=a,typeof u=="number"&&t.target!=="draft-04"&&(u<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},J4=(e,t,r,o)=>{r.type="boolean"},K4=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},X4=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Y4=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Q4=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},e2=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},t2=(e,t,r,o)=>{r.not={}},r2=(e,t,r,o)=>{},n2=(e,t,r,o)=>{},o2=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},i2=(e,t,r,o)=>{let n=e._zod.def,i=xu(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},a2=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},s2=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},l2=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},u2=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:l}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(n,i)},c2=(e,t,r,o)=>{r.type="boolean"},d2=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},p2=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},m2=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},f2=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},h2=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},g2=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=Ze(i.element,t,{...o,path:[...o.path,"items"]})},v2=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let u in a)n.properties[u]=Ze(a[u],t,{...o,path:[...o.path,"properties",u]});let s=new Set(Object.keys(a)),l=new Set([...s].filter(u=>{let c=i.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=Ze(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Xm=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,l)=>Ze(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=a:r.anyOf=a},y2=(e,t,r,o)=>{let n=e._zod.def,i=Ze(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=Ze(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=l},b2=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((p,m)=>Ze(p,t,{...o,path:[...o.path,a,m]})),u=i.rest?Ze(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:l},u&&n.items.anyOf.push(u),n.minItems=l.length,u||(n.maxItems=l.length)):(n.items=l,u&&(n.additionalItems=u));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(n.minItems=c),typeof d=="number"&&(n.maxItems=d)},x2=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,l=a._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let c=Ze(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of l)n.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=Ze(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=Ze(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let u=a._zod.values;if(u){let c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(n.required=c)}},w2=(e,t,r,o)=>{let n=e._zod.def,i=Ze(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},_2=(e,t,r,o)=>{let n=e._zod.def;Ze(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},k2=(e,t,r,o)=>{let n=e._zod.def;Ze(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},S2=(e,t,r,o)=>{let n=e._zod.def;Ze(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},$2=(e,t,r,o)=>{let n=e._zod.def;Ze(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},I2=(e,t,r,o)=>{let n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;Ze(i,t,o);let a=t.seen.get(e);a.ref=i},T2=(e,t,r,o)=>{let n=e._zod.def;Ze(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},P2=(e,t,r,o)=>{let n=e._zod.def;Ze(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Ym=(e,t,r,o)=>{let n=e._zod.def;Ze(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},C2=(e,t,r,o)=>{let n=e._zod.innerType;Ze(n,t,o);let i=t.seen.get(e);i.ref=n},Km={string:W4,number:H4,boolean:J4,bigint:K4,symbol:X4,null:Y4,undefined:Q4,void:e2,never:t2,any:r2,unknown:n2,date:o2,enum:i2,literal:a2,nan:s2,template_literal:l2,file:u2,success:c2,custom:d2,function:p2,transform:m2,map:f2,set:h2,array:g2,object:v2,union:Xm,intersection:y2,tuple:b2,record:x2,nullable:w2,nonoptional:_2,default:k2,prefault:S2,catch:$2,pipe:I2,readonly:T2,promise:P2,optional:Ym,lazy:C2};function Qm(e,t){if("_idmap"in e){let o=e,n=ri({...t,processors:Km}),i={};for(let l of o._idmap.entries()){let[u,c]=l;Ze(c,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let l of o._idmap.entries()){let[u,c]=l;ni(n,c),a[u]=oi(n,c)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:i}}return{schemas:a}}let r=ri({...t,processors:Km});return Ze(e,r),ni(r,e),oi(r,e)}var ef=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=ri({processors:Km,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return Ze(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),ni(this.ctx,t);let o=oi(this.ctx,t),{"~standard":n,...i}=o;return i}};var K9={};var ju={};cr(ju,{ZodAny:()=>Q2,ZodArray:()=>n6,ZodBase64:()=>_f,ZodBase64URL:()=>kf,ZodBigInt:()=>Ns,ZodBigIntFormat:()=>If,ZodBoolean:()=>Ds,ZodCIDRv4:()=>xf,ZodCIDRv6:()=>wf,ZodCUID:()=>mf,ZodCUID2:()=>ff,ZodCatch:()=>$6,ZodCodec:()=>Df,ZodCustom:()=>Ju,ZodCustomStringFormat:()=>As,ZodDate:()=>Vu,ZodDefault:()=>b6,ZodDiscriminatedUnion:()=>i6,ZodE164:()=>Sf,ZodEmail:()=>cf,ZodEmoji:()=>df,ZodEnum:()=>zs,ZodExactOptional:()=>g6,ZodFile:()=>f6,ZodFunction:()=>D6,ZodGUID:()=>Uu,ZodIPv4:()=>yf,ZodIPv6:()=>bf,ZodIntersection:()=>a6,ZodJWT:()=>$f,ZodKSUID:()=>vf,ZodLazy:()=>E6,ZodLiteral:()=>m6,ZodMAC:()=>q2,ZodMap:()=>d6,ZodNaN:()=>T6,ZodNanoID:()=>pf,ZodNever:()=>t6,ZodNonOptional:()=>Af,ZodNull:()=>X2,ZodNullable:()=>y6,ZodNumber:()=>Ms,ZodNumberFormat:()=>Yi,ZodObject:()=>qu,ZodOptional:()=>Ef,ZodPipe:()=>Mf,ZodPrefault:()=>w6,ZodPromise:()=>M6,ZodReadonly:()=>P6,ZodRecord:()=>Hu,ZodSet:()=>p6,ZodString:()=>Es,ZodStringFormat:()=>He,ZodSuccess:()=>S6,ZodSymbol:()=>J2,ZodTemplateLiteral:()=>z6,ZodTransform:()=>h6,ZodTuple:()=>l6,ZodType:()=>$e,ZodULID:()=>hf,ZodURL:()=>Zu,ZodUUID:()=>Tn,ZodUndefined:()=>K2,ZodUnion:()=>Wu,ZodUnknown:()=>e6,ZodVoid:()=>r6,ZodXID:()=>gf,ZodXor:()=>o6,_ZodString:()=>uf,_default:()=>x6,_function:()=>nP,any:()=>NT,array:()=>Gu,base64:()=>yT,base64url:()=>bT,bigint:()=>zT,boolean:()=>H2,catch:()=>I6,check:()=>oP,cidrv4:()=>gT,cidrv6:()=>vT,codec:()=>eP,cuid:()=>lT,cuid2:()=>uT,custom:()=>iP,date:()=>OT,describe:()=>aP,discriminatedUnion:()=>ZT,e164:()=>xT,email:()=>Y9,emoji:()=>aT,enum:()=>Cf,exactOptional:()=>v6,file:()=>KT,float32:()=>IT,float64:()=>TT,function:()=>nP,guid:()=>Q9,hash:()=>$T,hex:()=>ST,hostname:()=>kT,httpUrl:()=>iT,instanceof:()=>lP,int:()=>lf,int32:()=>PT,int64:()=>ET,intersection:()=>s6,ipv4:()=>mT,ipv6:()=>hT,json:()=>cP,jwt:()=>wT,keyof:()=>jT,ksuid:()=>pT,lazy:()=>A6,literal:()=>JT,looseObject:()=>FT,looseRecord:()=>GT,mac:()=>fT,map:()=>qT,meta:()=>sP,nan:()=>QT,nanoid:()=>sT,nativeEnum:()=>HT,never:()=>Tf,nonoptional:()=>k6,null:()=>Y2,nullable:()=>Fu,nullish:()=>XT,number:()=>W2,object:()=>UT,optional:()=>Lu,partialRecord:()=>VT,pipe:()=>Bu,prefault:()=>_6,preprocess:()=>dP,promise:()=>rP,readonly:()=>C6,record:()=>c6,refine:()=>N6,set:()=>WT,strictObject:()=>LT,string:()=>sf,stringFormat:()=>_T,stringbool:()=>uP,success:()=>YT,superRefine:()=>R6,symbol:()=>MT,templateLiteral:()=>tP,transform:()=>zf,tuple:()=>u6,uint32:()=>CT,uint64:()=>AT,ulid:()=>cT,undefined:()=>DT,union:()=>Pf,unknown:()=>Xi,url:()=>oT,uuid:()=>eT,uuidv4:()=>tT,uuidv6:()=>rT,uuidv7:()=>nT,void:()=>RT,xid:()=>dT,xor:()=>BT});var tf={};cr(tf,{endsWith:()=>xs,gt:()=>$n,gte:()=>er,includes:()=>ys,length:()=>Ki,lowercase:()=>gs,lt:()=>Sn,lte:()=>Mr,maxLength:()=>Ji,maxSize:()=>ti,mime:()=>ws,minLength:()=>io,minSize:()=>In,multipleOf:()=>ei,negative:()=>qm,nonnegative:()=>Hm,nonpositive:()=>Wm,normalize:()=>_s,overwrite:()=>dn,positive:()=>Gm,property:()=>Jm,regex:()=>hs,size:()=>Hi,slugify:()=>Is,startsWith:()=>bs,toLowerCase:()=>Ss,toUpperCase:()=>$s,trim:()=>ks,uppercase:()=>vs});var Cs={};cr(Cs,{ZodISODate:()=>nf,ZodISODateTime:()=>rf,ZodISODuration:()=>af,ZodISOTime:()=>of,date:()=>E2,datetime:()=>z2,duration:()=>M2,time:()=>A2});var rf=E("ZodISODateTime",(e,t)=>{sx.init(e,t),He.init(e,t)});function z2(e){return d4(rf,e)}var nf=E("ZodISODate",(e,t)=>{lx.init(e,t),He.init(e,t)});function E2(e){return p4(nf,e)}var of=E("ZodISOTime",(e,t)=>{ux.init(e,t),He.init(e,t)});function A2(e){return m4(of,e)}var af=E("ZodISODuration",(e,t)=>{cx.init(e,t),He.init(e,t)});function M2(e){return f4(af,e)}var X9=(e,t)=>{$u.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Tu(e,r)},flatten:{value:r=>Iu(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,as,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,as,2)}},isEmpty:{get(){return e.issues.length===0}}})},cV=E("ZodError",X9),vr=E("ZodError",X9,{Parent:Error});var D2=us(vr),N2=cs(vr),R2=ds(vr),O2=ps(vr),j2=Qp(vr),U2=em(vr),L2=tm(vr),F2=rm(vr),B2=nm(vr),Z2=om(vr),V2=im(vr),G2=am(vr);var $e=E("ZodType",(e,t)=>(ve.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ps(e,"input"),output:Ps(e,"output")}}),e.toJSONSchema=q4(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Z.mergeDefs(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>Qt(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>D2(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>R2(e,r,o),e.parseAsync=async(r,o)=>N2(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>O2(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>j2(e,r,o),e.decode=(r,o)=>U2(e,r,o),e.encodeAsync=async(r,o)=>L2(e,r,o),e.decodeAsync=async(r,o)=>F2(e,r,o),e.safeEncode=(r,o)=>B2(e,r,o),e.safeDecode=(r,o)=>Z2(e,r,o),e.safeEncodeAsync=async(r,o)=>V2(e,r,o),e.safeDecodeAsync=async(r,o)=>G2(e,r,o),e.refine=(r,o)=>e.check(N6(r,o)),e.superRefine=r=>e.check(R6(r)),e.overwrite=r=>e.check(dn(r)),e.optional=()=>Lu(e),e.exactOptional=()=>v6(e),e.nullable=()=>Fu(e),e.nullish=()=>Lu(Fu(e)),e.nonoptional=r=>k6(e,r),e.array=()=>Gu(e),e.or=r=>Pf([e,r]),e.and=r=>s6(e,r),e.transform=r=>Bu(e,zf(r)),e.default=r=>x6(e,r),e.prefault=r=>_6(e,r),e.catch=r=>I6(e,r),e.pipe=r=>Bu(e,r),e.readonly=()=>C6(e),e.describe=r=>{let o=e.clone();return Ut.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return Ut.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ut.get(e);let o=e.clone();return Ut.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),uf=E("_ZodString",(e,t)=>{Wi.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,i)=>W4(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(hs(...o)),e.includes=(...o)=>e.check(ys(...o)),e.startsWith=(...o)=>e.check(bs(...o)),e.endsWith=(...o)=>e.check(xs(...o)),e.min=(...o)=>e.check(io(...o)),e.max=(...o)=>e.check(Ji(...o)),e.length=(...o)=>e.check(Ki(...o)),e.nonempty=(...o)=>e.check(io(1,...o)),e.lowercase=o=>e.check(gs(o)),e.uppercase=o=>e.check(vs(o)),e.trim=()=>e.check(ks()),e.normalize=(...o)=>e.check(_s(...o)),e.toLowerCase=()=>e.check(Ss()),e.toUpperCase=()=>e.check($s()),e.slugify=()=>e.check(Is())}),Es=E("ZodString",(e,t)=>{Wi.init(e,t),uf.init(e,t),e.email=r=>e.check($m(cf,r)),e.url=r=>e.check(Ou(Zu,r)),e.jwt=r=>e.check(Vm($f,r)),e.emoji=r=>e.check(zm(df,r)),e.guid=r=>e.check(Ru(Uu,r)),e.uuid=r=>e.check(Im(Tn,r)),e.uuidv4=r=>e.check(Tm(Tn,r)),e.uuidv6=r=>e.check(Pm(Tn,r)),e.uuidv7=r=>e.check(Cm(Tn,r)),e.nanoid=r=>e.check(Em(pf,r)),e.guid=r=>e.check(Ru(Uu,r)),e.cuid=r=>e.check(Am(mf,r)),e.cuid2=r=>e.check(Mm(ff,r)),e.ulid=r=>e.check(Dm(hf,r)),e.base64=r=>e.check(Fm(_f,r)),e.base64url=r=>e.check(Bm(kf,r)),e.xid=r=>e.check(Nm(gf,r)),e.ksuid=r=>e.check(Rm(vf,r)),e.ipv4=r=>e.check(Om(yf,r)),e.ipv6=r=>e.check(jm(bf,r)),e.cidrv4=r=>e.check(Um(xf,r)),e.cidrv6=r=>e.check(Lm(wf,r)),e.e164=r=>e.check(Zm(Sf,r)),e.datetime=r=>e.check(z2(r)),e.date=r=>e.check(E2(r)),e.time=r=>e.check(A2(r)),e.duration=r=>e.check(M2(r))});function sf(e){return s4(Es,e)}var He=E("ZodStringFormat",(e,t)=>{We.init(e,t),uf.init(e,t)}),cf=E("ZodEmail",(e,t)=>{Yb.init(e,t),He.init(e,t)});function Y9(e){return $m(cf,e)}var Uu=E("ZodGUID",(e,t)=>{Kb.init(e,t),He.init(e,t)});function Q9(e){return Ru(Uu,e)}var Tn=E("ZodUUID",(e,t)=>{Xb.init(e,t),He.init(e,t)});function eT(e){return Im(Tn,e)}function tT(e){return Tm(Tn,e)}function rT(e){return Pm(Tn,e)}function nT(e){return Cm(Tn,e)}var Zu=E("ZodURL",(e,t)=>{Qb.init(e,t),He.init(e,t)});function oT(e){return Ou(Zu,e)}function iT(e){return Ou(Zu,{protocol:/^https?$/,hostname:Gr.domain,...Z.normalizeParams(e)})}var df=E("ZodEmoji",(e,t)=>{ex.init(e,t),He.init(e,t)});function aT(e){return zm(df,e)}var pf=E("ZodNanoID",(e,t)=>{tx.init(e,t),He.init(e,t)});function sT(e){return Em(pf,e)}var mf=E("ZodCUID",(e,t)=>{rx.init(e,t),He.init(e,t)});function lT(e){return Am(mf,e)}var ff=E("ZodCUID2",(e,t)=>{nx.init(e,t),He.init(e,t)});function uT(e){return Mm(ff,e)}var hf=E("ZodULID",(e,t)=>{ox.init(e,t),He.init(e,t)});function cT(e){return Dm(hf,e)}var gf=E("ZodXID",(e,t)=>{ix.init(e,t),He.init(e,t)});function dT(e){return Nm(gf,e)}var vf=E("ZodKSUID",(e,t)=>{ax.init(e,t),He.init(e,t)});function pT(e){return Rm(vf,e)}var yf=E("ZodIPv4",(e,t)=>{dx.init(e,t),He.init(e,t)});function mT(e){return Om(yf,e)}var q2=E("ZodMAC",(e,t)=>{mx.init(e,t),He.init(e,t)});function fT(e){return u4(q2,e)}var bf=E("ZodIPv6",(e,t)=>{px.init(e,t),He.init(e,t)});function hT(e){return jm(bf,e)}var xf=E("ZodCIDRv4",(e,t)=>{fx.init(e,t),He.init(e,t)});function gT(e){return Um(xf,e)}var wf=E("ZodCIDRv6",(e,t)=>{hx.init(e,t),He.init(e,t)});function vT(e){return Lm(wf,e)}var _f=E("ZodBase64",(e,t)=>{vx.init(e,t),He.init(e,t)});function yT(e){return Fm(_f,e)}var kf=E("ZodBase64URL",(e,t)=>{yx.init(e,t),He.init(e,t)});function bT(e){return Bm(kf,e)}var Sf=E("ZodE164",(e,t)=>{bx.init(e,t),He.init(e,t)});function xT(e){return Zm(Sf,e)}var $f=E("ZodJWT",(e,t)=>{xx.init(e,t),He.init(e,t)});function wT(e){return Vm($f,e)}var As=E("ZodCustomStringFormat",(e,t)=>{wx.init(e,t),He.init(e,t)});function _T(e,t,r={}){return Ts(As,e,t,r)}function kT(e){return Ts(As,"hostname",Gr.hostname,e)}function ST(e){return Ts(As,"hex",Gr.hex,e)}function $T(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Gr[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Ts(As,o,n,t)}var Ms=E("ZodNumber",(e,t)=>{gm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,i)=>H4(e,o,n,i),e.gt=(o,n)=>e.check($n(o,n)),e.gte=(o,n)=>e.check(er(o,n)),e.min=(o,n)=>e.check(er(o,n)),e.lt=(o,n)=>e.check(Sn(o,n)),e.lte=(o,n)=>e.check(Mr(o,n)),e.max=(o,n)=>e.check(Mr(o,n)),e.int=o=>e.check(lf(o)),e.safe=o=>e.check(lf(o)),e.positive=o=>e.check($n(0,o)),e.nonnegative=o=>e.check(er(0,o)),e.negative=o=>e.check(Sn(0,o)),e.nonpositive=o=>e.check(Mr(0,o)),e.multipleOf=(o,n)=>e.check(ei(o,n)),e.step=(o,n)=>e.check(ei(o,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function W2(e){return h4(Ms,e)}var Yi=E("ZodNumberFormat",(e,t)=>{_x.init(e,t),Ms.init(e,t)});function lf(e){return v4(Yi,e)}function IT(e){return y4(Yi,e)}function TT(e){return b4(Yi,e)}function PT(e){return x4(Yi,e)}function CT(e){return w4(Yi,e)}var Ds=E("ZodBoolean",(e,t)=>{Eu.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>J4(e,r,o,n)});function H2(e){return _4(Ds,e)}var Ns=E("ZodBigInt",(e,t)=>{vm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,i)=>K4(e,o,n,i),e.gte=(o,n)=>e.check(er(o,n)),e.min=(o,n)=>e.check(er(o,n)),e.gt=(o,n)=>e.check($n(o,n)),e.gte=(o,n)=>e.check(er(o,n)),e.min=(o,n)=>e.check(er(o,n)),e.lt=(o,n)=>e.check(Sn(o,n)),e.lte=(o,n)=>e.check(Mr(o,n)),e.max=(o,n)=>e.check(Mr(o,n)),e.positive=o=>e.check($n(BigInt(0),o)),e.negative=o=>e.check(Sn(BigInt(0),o)),e.nonpositive=o=>e.check(Mr(BigInt(0),o)),e.nonnegative=o=>e.check(er(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(ei(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function zT(e){return S4(Ns,e)}var If=E("ZodBigIntFormat",(e,t)=>{kx.init(e,t),Ns.init(e,t)});function ET(e){return I4(If,e)}function AT(e){return T4(If,e)}var J2=E("ZodSymbol",(e,t)=>{Sx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>X4(e,r,o,n)});function MT(e){return P4(J2,e)}var K2=E("ZodUndefined",(e,t)=>{$x.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Q4(e,r,o,n)});function DT(e){return C4(K2,e)}var X2=E("ZodNull",(e,t)=>{Ix.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Y4(e,r,o,n)});function Y2(e){return z4(X2,e)}var Q2=E("ZodAny",(e,t)=>{Tx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>r2(e,r,o,n)});function NT(){return E4(Q2)}var e6=E("ZodUnknown",(e,t)=>{Px.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>n2(e,r,o,n)});function Xi(){return A4(e6)}var t6=E("ZodNever",(e,t)=>{Cx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>t2(e,r,o,n)});function Tf(e){return M4(t6,e)}var r6=E("ZodVoid",(e,t)=>{zx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>e2(e,r,o,n)});function RT(e){return D4(r6,e)}var Vu=E("ZodDate",(e,t)=>{Ex.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,i)=>o2(e,o,n,i),e.min=(o,n)=>e.check(er(o,n)),e.max=(o,n)=>e.check(Mr(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function OT(e){return N4(Vu,e)}var n6=E("ZodArray",(e,t)=>{Ax.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>g2(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(io(r,o)),e.nonempty=r=>e.check(io(1,r)),e.max=(r,o)=>e.check(Ji(r,o)),e.length=(r,o)=>e.check(Ki(r,o)),e.unwrap=()=>e.element});function Gu(e,t){return j4(n6,e,t)}function jT(e){let t=e._zod.def.shape;return Cf(Object.keys(t))}var qu=E("ZodObject",(e,t)=>{Mx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>v2(e,r,o,n),Z.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Cf(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Xi()}),e.loose=()=>e.clone({...e._zod.def,catchall:Xi()}),e.strict=()=>e.clone({...e._zod.def,catchall:Tf()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Z.extend(e,r),e.safeExtend=r=>Z.safeExtend(e,r),e.merge=r=>Z.merge(e,r),e.pick=r=>Z.pick(e,r),e.omit=r=>Z.omit(e,r),e.partial=(...r)=>Z.partial(Ef,e,r[0]),e.required=(...r)=>Z.required(Af,e,r[0])});function UT(e,t){let r={type:"object",shape:e??{},...Z.normalizeParams(t)};return new qu(r)}function LT(e,t){return new qu({type:"object",shape:e,catchall:Tf(),...Z.normalizeParams(t)})}function FT(e,t){return new qu({type:"object",shape:e,catchall:Xi(),...Z.normalizeParams(t)})}var Wu=E("ZodUnion",(e,t)=>{Au.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xm(e,r,o,n),e.options=t.options});function Pf(e,t){return new Wu({type:"union",options:e,...Z.normalizeParams(t)})}var o6=E("ZodXor",(e,t)=>{Wu.init(e,t),Dx.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xm(e,r,o,n),e.options=t.options});function BT(e,t){return new o6({type:"union",options:e,inclusive:!1,...Z.normalizeParams(t)})}var i6=E("ZodDiscriminatedUnion",(e,t)=>{Wu.init(e,t),Nx.init(e,t)});function ZT(e,t,r){return new i6({type:"union",options:t,discriminator:e,...Z.normalizeParams(r)})}var a6=E("ZodIntersection",(e,t)=>{Rx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>y2(e,r,o,n)});function s6(e,t){return new a6({type:"intersection",left:e,right:t})}var l6=E("ZodTuple",(e,t)=>{ym.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>b2(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function u6(e,t,r){let o=t instanceof ve,n=o?r:t,i=o?t:null;return new l6({type:"tuple",items:e,rest:i,...Z.normalizeParams(n)})}var Hu=E("ZodRecord",(e,t)=>{Ox.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>x2(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function c6(e,t,r){return new Hu({type:"record",keyType:e,valueType:t,...Z.normalizeParams(r)})}function VT(e,t,r){let o=Qt(e);return o._zod.values=void 0,new Hu({type:"record",keyType:o,valueType:t,...Z.normalizeParams(r)})}function GT(e,t,r){return new Hu({type:"record",keyType:e,valueType:t,mode:"loose",...Z.normalizeParams(r)})}var d6=E("ZodMap",(e,t)=>{jx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>f2(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(In(...r)),e.nonempty=r=>e.check(In(1,r)),e.max=(...r)=>e.check(ti(...r)),e.size=(...r)=>e.check(Hi(...r))});function qT(e,t,r){return new d6({type:"map",keyType:e,valueType:t,...Z.normalizeParams(r)})}var p6=E("ZodSet",(e,t)=>{Ux.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>h2(e,r,o,n),e.min=(...r)=>e.check(In(...r)),e.nonempty=r=>e.check(In(1,r)),e.max=(...r)=>e.check(ti(...r)),e.size=(...r)=>e.check(Hi(...r))});function WT(e,t){return new p6({type:"set",valueType:e,...Z.normalizeParams(t)})}var zs=E("ZodEnum",(e,t)=>{Lx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,i)=>i2(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new zs({...t,checks:[],...Z.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new zs({...t,checks:[],...Z.normalizeParams(n),entries:i})}});function Cf(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new zs({type:"enum",entries:r,...Z.normalizeParams(t)})}function HT(e,t){return new zs({type:"enum",entries:e,...Z.normalizeParams(t)})}var m6=E("ZodLiteral",(e,t)=>{Fx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>a2(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function JT(e,t){return new m6({type:"literal",values:Array.isArray(e)?e:[e],...Z.normalizeParams(t)})}var f6=E("ZodFile",(e,t)=>{Bx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>u2(e,r,o,n),e.min=(r,o)=>e.check(In(r,o)),e.max=(r,o)=>e.check(ti(r,o)),e.mime=(r,o)=>e.check(ws(Array.isArray(r)?r:[r],o))});function KT(e){return U4(f6,e)}var h6=E("ZodTransform",(e,t)=>{Zx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>m2(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Jo(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(Z.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Z.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function zf(e){return new h6({type:"transform",transform:e})}var Ef=E("ZodOptional",(e,t)=>{bm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ym(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Lu(e){return new Ef({type:"optional",innerType:e})}var g6=E("ZodExactOptional",(e,t)=>{Vx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ym(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function v6(e){return new g6({type:"optional",innerType:e})}var y6=E("ZodNullable",(e,t)=>{Gx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>w2(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Fu(e){return new y6({type:"nullable",innerType:e})}function XT(e){return Lu(Fu(e))}var b6=E("ZodDefault",(e,t)=>{qx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>k2(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function x6(e,t){return new b6({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Z.shallowClone(t)}})}var w6=E("ZodPrefault",(e,t)=>{Wx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>S2(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function _6(e,t){return new w6({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Z.shallowClone(t)}})}var Af=E("ZodNonOptional",(e,t)=>{Hx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_2(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function k6(e,t){return new Af({type:"nonoptional",innerType:e,...Z.normalizeParams(t)})}var S6=E("ZodSuccess",(e,t)=>{Jx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>c2(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function YT(e){return new S6({type:"success",innerType:e})}var $6=E("ZodCatch",(e,t)=>{Kx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$2(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function I6(e,t){return new $6({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var T6=E("ZodNaN",(e,t)=>{Xx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>s2(e,r,o,n)});function QT(e){return O4(T6,e)}var Mf=E("ZodPipe",(e,t)=>{Yx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>I2(e,r,o,n),e.in=t.in,e.out=t.out});function Bu(e,t){return new Mf({type:"pipe",in:e,out:t})}var Df=E("ZodCodec",(e,t)=>{Mf.init(e,t),Mu.init(e,t)});function eP(e,t,r){return new Df({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var P6=E("ZodReadonly",(e,t)=>{Qx.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>T2(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function C6(e){return new P6({type:"readonly",innerType:e})}var z6=E("ZodTemplateLiteral",(e,t)=>{e4.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>l2(e,r,o,n)});function tP(e,t){return new z6({type:"template_literal",parts:e,...Z.normalizeParams(t)})}var E6=E("ZodLazy",(e,t)=>{n4.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>C2(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function A6(e){return new E6({type:"lazy",getter:e})}var M6=E("ZodPromise",(e,t)=>{r4.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>P2(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function rP(e){return new M6({type:"promise",innerType:e})}var D6=E("ZodFunction",(e,t)=>{t4.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>p2(e,r,o,n)});function nP(e){return new D6({type:"function",input:Array.isArray(e?.input)?u6(e?.input):e?.input??Gu(Xi()),output:e?.output??Xi()})}var Ju=E("ZodCustom",(e,t)=>{o4.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>d2(e,r,o,n)});function oP(e){let t=new Xe({check:"custom"});return t._zod.check=e,t}function iP(e,t){return L4(Ju,e??(()=>!0),t)}function N6(e,t={}){return F4(Ju,e,t)}function R6(e){return B4(e)}var aP=Z4,sP=V4;function lP(e,t={}){let r=new Ju({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...Z.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var uP=(...e)=>G4({Codec:Df,Boolean:Ds,String:Es},...e);function cP(e){let t=A6(()=>Pf([sf(e),W2(),H2(),Y2(),Gu(t),c6(sf(),t)]));return t}function dP(e,t){return Bu(zf(e),t)}var pV={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 mV(e){vt({customError:e})}function fV(){return vt().customError}var O6;O6||(O6={});var Y={...ju,...tf,iso:Cs},hV=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function gV(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function vV(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function pP(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return Y.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return Y.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=vV(n,t),a=Gt(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return Y.null();if(n.length===0)return Y.never();if(n.length===1)return Y.literal(n[0]);if(n.every(a=>typeof a=="string"))return Y.enum(n);let i=n.map(a=>Y.literal(a));return i.length<2?i[0]:Y.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return Y.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return pP(a,t)});return n.length===0?Y.never():n.length===1?n[0]:Y.union(n)}if(!r)return Y.any();let o;switch(r){case"string":{let n=Y.string();if(e.format){let i=e.format;i==="email"?n=n.check(Y.email()):i==="uri"||i==="uri-reference"?n=n.check(Y.url()):i==="uuid"||i==="guid"?n=n.check(Y.uuid()):i==="date-time"?n=n.check(Y.iso.datetime()):i==="date"?n=n.check(Y.iso.date()):i==="time"?n=n.check(Y.iso.time()):i==="duration"?n=n.check(Y.iso.duration()):i==="ipv4"?n=n.check(Y.ipv4()):i==="ipv6"?n=n.check(Y.ipv6()):i==="mac"?n=n.check(Y.mac()):i==="cidr"?n=n.check(Y.cidrv4()):i==="cidr-v6"?n=n.check(Y.cidrv6()):i==="base64"?n=n.check(Y.base64()):i==="base64url"?n=n.check(Y.base64url()):i==="e164"?n=n.check(Y.e164()):i==="jwt"?n=n.check(Y.jwt()):i==="emoji"?n=n.check(Y.emoji()):i==="nanoid"?n=n.check(Y.nanoid()):i==="cuid"?n=n.check(Y.cuid()):i==="cuid2"?n=n.check(Y.cuid2()):i==="ulid"?n=n.check(Y.ulid()):i==="xid"?n=n.check(Y.xid()):i==="ksuid"&&(n=n.check(Y.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?Y.number().int():Y.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=Y.boolean();break}case"null":{o=Y.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[l,u]of Object.entries(i)){let c=Gt(u,t);n[l]=a.has(l)?c:c.optional()}if(e.propertyNames){let l=Gt(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Gt(e.additionalProperties,t):Y.any();if(Object.keys(n).length===0){o=Y.record(l,u);break}let c=Y.object(n).passthrough(),d=Y.looseRecord(l,u);o=Y.intersection(c,d);break}if(e.patternProperties){let l=e.patternProperties,u=Object.keys(l),c=[];for(let p of u){let m=Gt(l[p],t),g=Y.string().regex(new RegExp(p));c.push(Y.looseRecord(g,m))}let d=[];if(Object.keys(n).length>0&&d.push(Y.object(n).passthrough()),d.push(...c),d.length===0)o=Y.object({}).passthrough();else if(d.length===1)o=d[0];else{let p=Y.intersection(d[0],d[1]);for(let m=2;m<d.length;m++)p=Y.intersection(p,d[m]);o=p}break}let s=Y.object(n);e.additionalProperties===!1?o=s.strict():typeof e.additionalProperties=="object"?o=s.catchall(Gt(e.additionalProperties,t)):o=s.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(l=>
94Gt(l,t)),s=i&&typeof i=="object"&&!Array.isArray(i)?Gt(i,t):void 0;s?o=Y.tuple(a).rest(s):o=Y.tuple(a),typeof e.minItems=="number"&&(o=o.check(Y.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(Y.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(l=>Gt(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Gt(e.additionalItems,t):void 0;s?o=Y.tuple(a).rest(s):o=Y.tuple(a),typeof e.minItems=="number"&&(o=o.check(Y.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(Y.maxLength(e.maxItems)))}else if(i!==void 0){let a=Gt(i,t),s=Y.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=Y.array(Y.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}function Gt(e,t){if(typeof e=="boolean")return e?Y.any():Y.never();let r=pP(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>Gt(u,t)),l=Y.union(s);r=o?Y.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>Gt(u,t)),l=Y.xor(s);r=o?Y.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:Y.any();else{let s=o?r:Gt(e.allOf[0],t),l=o?0:1;for(let u=l;u<e.allOf.length;u++)s=Y.intersection(s,Gt(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=Y.nullable(r)),e.readOnly===!0&&(r=Y.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))hV.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function mP(e,t){if(typeof e=="boolean")return e?Y.any():Y.never();let r=gV(e,t?.defaultTarget),o=e.$defs||e.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Ut};return Gt(e,n)}var j6={};cr(j6,{bigint:()=>wV,boolean:()=>xV,date:()=>_V,number:()=>bV,string:()=>yV});function yV(e){return l4(Es,e)}function bV(e){return g4(Ms,e)}function xV(e){return k4(Ds,e)}function wV(e){return $4(Ns,e)}function _V(e){return R4(Vu,e)}vt(xm());var SV=Object.defineProperty,$V=(e,t)=>{for(var r in t)SV(e,r,{get:t[r],enumerable:!0})},IV="AI_InvalidArgumentError",TV=`vercel.ai.error.${IV}`,PV=Symbol.for(TV),CV;CV=PV;var zV="AI_InvalidStreamPartError",EV=`vercel.ai.error.${zV}`,AV=Symbol.for(EV),MV;MV=AV;var DV="AI_InvalidToolApprovalError",NV=`vercel.ai.error.${DV}`,RV=Symbol.for(NV),OV;OV=RV;var jV="AI_InvalidToolApprovalSignatureError",UV=`vercel.ai.error.${jV}`,LV=Symbol.for(UV),FV;FV=LV;var BV="AI_InvalidToolInputError",ZV=`vercel.ai.error.${BV}`,VV=Symbol.for(ZV),GV;GV=VV;var qV="AI_ToolCallNotFoundForApprovalError",WV=`vercel.ai.error.${qV}`,HV=Symbol.for(WV),JV;JV=HV;var KV="AI_MissingToolResultsError",XV=`vercel.ai.error.${KV}`,YV=Symbol.for(XV),QV;QV=YV;var eG="AI_NoImageGeneratedError",tG=`vercel.ai.error.${eG}`,rG=Symbol.for(tG),nG;nG=rG;var fP="AI_NoObjectGeneratedError",hP=`vercel.ai.error.${fP}`,oG=Symbol.for(hP),gP,ii=class extends je{constructor({message:e="No object generated.",cause:t,text:r,response:o,usage:n,finishReason:i}){super({name:fP,message:e,cause:t}),this[gP]=!0,this.text=r,this.response=o,this.usage=n,this.finishReason=i}static isInstance(e){return je.hasMarker(e,hP)}};gP=oG;var iG="AI_NoOutputGeneratedError",aG=`vercel.ai.error.${iG}`,sG=Symbol.for(aG),lG;lG=sG;var uG="AI_NoSpeechGeneratedError",cG=`vercel.ai.error.${uG}`,dG=Symbol.for(cG),pG;pG=dG;var mG="AI_NoTranscriptGeneratedError",fG=`vercel.ai.error.${mG}`,hG=Symbol.for(fG),gG;gG=hG;var vG="AI_NoVideoGeneratedError",yG=`vercel.ai.error.${vG}`,bG=Symbol.for(yG),xG;xG=bG;var wG="AI_NoSuchToolError",_G=`vercel.ai.error.${wG}`,kG=Symbol.for(_G),SG;SG=kG;var $G="AI_ToolCallRepairError",IG=`vercel.ai.error.${$G}`,TG=Symbol.for(IG),PG;PG=TG;var vP="AI_UIMessageStreamError",yP=`vercel.ai.error.${vP}`,CG=Symbol.for(yP),bP,Rs=class extends je{constructor({chunkType:e,chunkId:t,message:r}){super({name:vP,message:r}),this[bP]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return je.hasMarker(e,yP)}};bP=CG;var zG="AI_InvalidDataContentError",EG=`vercel.ai.error.${zG}`,AG=Symbol.for(EG),MG;MG=AG;var DG="AI_InvalidMessageRoleError",NG=`vercel.ai.error.${DG}`,RG=Symbol.for(NG),OG;OG=RG;var jG="AI_MessageConversionError",UG=`vercel.ai.error.${jG}`,LG=Symbol.for(UG),FG;FG=LG;var BG="AI_RetryError",ZG=`vercel.ai.error.${BG}`,VG=Symbol.for(ZG),GG;GG=VG;var qG="6.0.218",WG=async({url:e,maxBytes:t,abortSignal:r})=>{var o;let n=e.toString();try{let i=Zp({},`ai-sdk/${qG}`,bI()),a=await gI({url:n,headers:i,abortSignal:r});if(!a.ok)throw await Bp(a),new fr({url:n,statusCode:a.status,statusText:a.statusText});return{data:await vI({response:a,url:n,maxBytes:t??U1}),mediaType:(o=a.headers.get("content-type"))!=null?o:void 0}}catch(i){throw fr.isInstance(i)?i:new fr({url:n,cause:i})}};
94var xP=v.union([v.string(),v.instanceof(Uint8Array),v.instanceof(ArrayBuffer),v.custom(e=>{var t,r;return(r=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?r:!1},{message:"Must be a Buffer"})]);var Qi=v.lazy(()=>v.union([v.null(),v.string(),v.number(),v.boolean(),v.record(v.string(),Qi.optional()),v.array(Qi)])),se=v.record(v.string(),v.record(v.string(),Qi.optional())),wP=v.object({type:v.literal("text"),text:v.string(),providerOptions:se.optional()}),HG=v.object({type:v.literal("image"),image:v.union([xP,v.instanceof(URL)]),mediaType:v.string().optional(),providerOptions:se.optional()}),_P=v.object({type:v.literal("file"),data:v.union([xP,v.instanceof(URL)]),filename:v.string().optional(),mediaType:v.string(),providerOptions:se.optional()}),JG=v.object({type:v.literal("reasoning"),text:v.string(),providerOptions:se.optional()}),KG=v.object({type:v.literal("tool-call"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerOptions:se.optional(),providerExecuted:v.boolean().optional()}),XG=v.discriminatedUnion("type",[v.object({type:v.literal("text"),value:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("json"),value:Qi,providerOptions:se.optional()}),v.object({type:v.literal("execution-denied"),reason:v.string().optional(),providerOptions:se.optional()}),v.object({type:v.literal("error-text"),value:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("error-json"),value:Qi,providerOptions:se.optional()}),v.object({type:v.literal("content"),value:v.array(v.union([v.object({type:v.literal("text"),text:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("media"),data:v.string(),mediaType:v.string()}),v.object({type:v.literal("file-data"),data:v.string(),mediaType:v.string(),filename:v.string().optional(),providerOptions:se.optional()}),v.object({type:v.literal("file-url"),url:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:se.optional()}),v.object({type:v.literal("image-data"),data:v.string(),mediaType:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("image-url"),url:v.string(),providerOptions:se.optional()}),v.object({type:v.literal("image-file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:se.optional()}),v.object({type:v.literal("custom"),providerOptions:se.optional()})]))})]),kP=v.object({type:v.literal("tool-result"),toolCallId:v.string(),toolName:v.string(),output:XG,providerOptions:se.optional()}),YG=v.object({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string()}),QG=v.object({type:v.literal("tool-approval-response"),approvalId:v.string(),approved:v.boolean(),reason:v.string().optional()}),eq=v.object({role:v.literal("system"),content:v.string(),providerOptions:se.optional()}),tq=v.object({role:v.literal("user"),content:v.union([v.string(),v.array(v.union([wP,HG,_P]))]),providerOptions:se.optional()}),rq=v.object({role:v.literal("assistant"),content:v.union([v.string(),v.array(v.union([wP,_P,JG,KG,kP,YG]))]),providerOptions:se.optional()}),nq=v.object({role:v.literal("tool"),content:v.array(v.union([kP,QG])),providerOptions:se.optional()}),zde=v.union([eq,tq,rq,nq]);function SP(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let r={...e};for(let o in t)if(!(o==="__proto__"||o==="constructor"||o==="prototype")&&Object.prototype.hasOwnProperty.call(t,o)){let n=t[o];if(n===void 0)continue;let i=o in e?e[o]:void 0,a=n!==null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof Date)&&!(n instanceof RegExp),s=i!=null&&typeof i=="object"&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp);a&&s?r[o]=SP(i,n):r[o]=n}return r}var Ede=new TextEncoder;var oq={};$V(oq,{array:()=>lq,choice:()=>uq,json:()=>cq,object:()=>sq,text:()=>aq});function iq(e){let t=["ROOT"],r=-1,o=null,n=0;function i(c){return c>="0"&&c<="9"||c>="A"&&c<="F"||c>="a"&&c<="f"}function a(c,d,p){switch(c){case'"':{r=d,t.pop(),t.push(p),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=d,o=d,t.pop(),t.push(p),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(p),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=d,t.pop(),t.push(p),t.push("INSIDE_NUMBER");break}case"{":{r=d,t.pop(),t.push(p),t.push("INSIDE_OBJECT_START");break}case"[":{r=d,t.pop(),t.push(p),t.push("INSIDE_ARRAY_START");break}}}function s(c,d){switch(c){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=d,t.pop();break}}}function l(c,d){switch(c){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=d,t.pop();break}}}for(let c=0;c<e.length;c++){let d=e[c];switch(t[t.length-1]){case"ROOT":a(d,c,"FINISH");break;case"INSIDE_OBJECT_START":{switch(d){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=c,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{d==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{d==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{d===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{a(d,c,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(d,c);break}case"INSIDE_STRING":{switch(d){case'"':{t.pop(),r=c;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=c}break}case"INSIDE_ARRAY_START":{d==="]"?(r=c,t.pop()):(r=c,a(d,c,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(d){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=c,t.pop();break}default:{r=c;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{a(d,c,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),d==="u"?(n=0,t.push("INSIDE_STRING_UNICODE_ESCAPE")):r=c;break}case"INSIDE_STRING_UNICODE_ESCAPE":{i(d)&&(n++,n===4&&(t.pop(),r=c));break}case"INSIDE_NUMBER":{switch(d){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=c;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(d,c),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(d,c);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(d,c);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(d,c);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let m=e.substring(o,c+1);!"false".startsWith(m)&&!"true".startsWith(m)&&!"null".startsWith(m)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(d,c):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(d,c)):r=c;break}}}let u=e.slice(0,r+1);for(let c=t.length-1;c>=0;c--)switch(t[c]){case"INSIDE_STRING":{u+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{u+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{u+="]";break}case"INSIDE_LITERAL":{let p=e.substring(o,e.length);"true".startsWith(p)?u+="true".slice(p.length):"false".startsWith(p)?u+="false".slice(p.length):"null".startsWith(p)&&(u+="null".slice(p.length))}}return u}async function Yu(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await no({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await no({text:iq(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var aq=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),sq=({schema:e,name:t,description:r})=>{let o=qp(e);return{name:"object",responseFormat:kn(o.jsonSchema).then(n=>({type:"json",schema:n,...t!=null&&{name:t},...r!=null&&{description:r}})),async parseCompleteOutput({text:n},i){let a=await no({text:n});if(!a.success)throw new ii({message:"No object generated: could not parse the response.",cause:a.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});let s=await is({value:a.value,schema:o});if(!s.success)throw new ii({message:"No object generated: response did not match sc
94hema.",cause:s.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});return s.value},async parsePartialOutput({text:n}){let i=await Yu(n);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:i.value}}},createElementStreamTransform(){}}},lq=({element:e,name:t,description:r})=>{let o=qp(e);return{name:"array",responseFormat:kn(o.jsonSchema).then(n=>{let{$schema:i,...a}=n;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:a}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}}),async parseCompleteOutput({text:n},i){let a=await no({text:n});if(!a.success)throw new ii({message:"No object generated: could not parse the response.",cause:a.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});let s=a.value;if(s==null||typeof s!="object"||!("elements"in s)||!Array.isArray(s.elements))throw new ii({message:"No object generated: response did not match schema.",cause:new bn({value:s,cause:"response must be an object with an elements array"}),text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});for(let l of s.elements){let u=await is({value:l,schema:o});if(!u.success)throw new ii({message:"No object generated: response did not match schema.",cause:u.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason})}return s.elements},async parsePartialOutput({text:n}){let i=await Yu(n);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let a=i.value;if(a==null||typeof a!="object"||!("elements"in a)||!Array.isArray(a.elements))return;let s=i.state==="repaired-parse"&&a.elements.length>0?a.elements.slice(0,-1):a.elements,l=[];for(let u of s){let c=await is({value:u,schema:o});c.success&&l.push(c.value)}return{partial:l}}}},createElementStreamTransform(){let n=0;return new TransformStream({transform({partialOutput:i},a){if(i!=null)for(;n<i.length;n++)a.enqueue(i[n])}})}}},uq=({options:e,name:t,description:r})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}),async parseCompleteOutput({text:o},n){let i=await no({text:o});if(!i.success)throw new ii({message:"No object generated: could not parse the response.",cause:i.error,text:o,response:n.response,usage:n.usage,finishReason:n.finishReason});let a=i.value;if(a==null||typeof a!="object"||!("result"in a)||typeof a.result!="string"||!e.includes(a.result))throw new ii({message:"No object generated: response did not match schema.",cause:new bn({value:a,cause:"response must be an object that contains a choice value."}),text:o,response:n.response,usage:n.usage,finishReason:n.finishReason});return a.result},async parsePartialOutput({text:o}){let n=await Yu(o);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let i=n.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string")return;let a=e.filter(s=>s.startsWith(i.result));return n.state==="successful-parse"?a.includes(i.result)?{partial:i.result}:void 0:a.length===1?{partial:a[0]}:void 0}}},createElementStreamTransform(){}}),cq=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:r},o){let n=await no({text:r});if(!n.success)throw new ii({message:"No object generated: could not parse the response.",cause:n.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});return n.value},async parsePartialOutput({text:r}){let o=await Yu(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return o.value===void 0?void 0:{partial:o.value}}},createElementStreamTransform(){}});var Nde=ro({prefix:"aitxt",size:24});var Ode=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)} 95 96`)},flush(e){e.enqueue(`data: [DONE] 97 98`)}})}};var Ku=v.record(v.string(),Qi.optional()),dq=Vp(()=>vu(v.union([v.strictObject({type:v.literal("text-start"),id:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("text-delta"),id:v.string(),delta:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("text-end"),id:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("error"),errorText:v.string()}),v.strictObject({type:v.literal("tool-input-start"),toolCallId:v.string(),toolName:v.string(),providerExecuted:v.boolean().optional(),providerMetadata:se.optional(),toolMetadata:Ku.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-input-delta"),toolCallId:v.string(),inputTextDelta:v.string()}),v.strictObject({type:v.literal("tool-input-available"),toolCallId:v.string(),toolName:v.string(),input
98:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:se.optional(),toolMetadata:Ku.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-input-error"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:se.optional(),toolMetadata:Ku.optional(),dynamic:v.boolean().optional(),errorText:v.string(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string(),signature:v.string().optional()}),v.strictObject({type:v.literal("tool-output-available"),toolCallId:v.string(),output:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:se.optional(),toolMetadata:Ku.optional(),dynamic:v.boolean().optional(),preliminary:v.boolean().optional()}),v.strictObject({type:v.literal("tool-output-error"),toolCallId:v.string(),errorText:v.string(),providerExecuted:v.boolean().optional(),providerMetadata:se.optional(),toolMetadata:Ku.optional(),dynamic:v.boolean().optional()}),v.strictObject({type:v.literal("tool-output-denied"),toolCallId:v.string()}),v.strictObject({type:v.literal("reasoning-start"),id:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("reasoning-delta"),id:v.string(),delta:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("reasoning-end"),id:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:se.optional()}),v.strictObject({type:v.literal("file"),url:v.string(),mediaType:v.string(),providerMetadata:se.optional()}),v.strictObject({type:v.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:v.string().optional(),data:v.unknown(),transient:v.boolean().optional()}),v.strictObject({type:v.literal("start-step")}),v.strictObject({type:v.literal("finish-step")}),v.strictObject({type:v.literal("start"),messageId:v.string().optional(),messageMetadata:v.unknown().optional()}),v.strictObject({type:v.literal("finish"),finishReason:v.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:v.unknown().optional()}),v.strictObject({type:v.literal("abort"),reason:v.string().optional()}),v.strictObject({type:v.literal("message-metadata"),messageMetadata:v.unknown()})])));function pq(e){return e.type.startsWith("data-")}function Xu(){return Object.create(null)}function U6(e){return e.type.startsWith("tool-")}function $P(e){return e.type==="dynamic-tool"}function pn(e){return U6(e)||$P(e)}function L6(e){return e.type.split("-").slice(1).join("-")}function IP(e){return $P(e)?e.toolName:L6(e)}function mq({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:Xu(),activeReasoningParts:Xu(),partialToolCalls:Xu()}}function fq({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:o,onError:n,onToolCall:i,onData:a}){return e.pipeThrough(new TransformStream({async transform(s,l){await o(async({state:u,write:c})=>{var d,p,m,g;function x(b){let $=u.message.parts.filter(pn).find(C=>C.toolCallId===b);if($==null)throw new Rs({chunkType:"tool-invocation",chunkId:b,message:`No tool invocation found for tool call ID "${b}".`});return $}function w(b){var T;let $=u.message.parts.find(R=>U6(R)&&R.toolCallId===b.toolCallId),C=b,M=$;if($!=null){$.state=b.state,M.input=C.input,M.output=C.output,M.errorText=C.errorText,M.rawInput=C.rawInput,M.preliminary=C.preliminary,b.title!==void 0&&(M.title=b.title),b.toolMetadata!==void 0&&(M.toolMetadata=b.toolMetadata),M.providerExecuted=(T=C.providerExecuted)!=null?T:$.providerExecuted;let R=C.providerMetadata;if(R!=null)if(b.state==="output-available"||b.state==="output-error"){let N=$;N.resultProviderMetadata=R}else $.callProviderMetadata=R}else u.message.parts.push({type:`tool-${b.toolName}`,toolCallId:b.toolCallId,state:b.state,title:b.title,...b.toolMetadata!==void 0?{toolMetadata:b.toolMetadata}:{},input:C.input,output:C.output,rawInput:C.rawInput,errorText:C.errorText,providerExecuted:C.providerExecuted,preliminary:C.preliminary,...C.providerMetadata!=null&&(b.state==="output-available"||b.state==="output-error")?{resultProviderMetadata:C.providerMetadata}:{},...C.providerMetadata!=null&&!(b.state==="output-available"||b.state==="output-error")?{c
98allProviderMetadata:C.providerMetadata}:{}})}function S(b){var T,$;let C=u.message.parts.find(N=>N.type==="dynamic-tool"&&N.toolCallId===b.toolCallId),M=b,R=C;if(C!=null){C.state=b.state,R.toolName=b.toolName,R.input=M.input,R.output=M.output,R.errorText=M.errorText,R.rawInput=(T=M.rawInput)!=null?T:R.rawInput,R.preliminary=M.preliminary,b.title!==void 0&&(R.title=b.title),b.toolMetadata!==void 0&&(R.toolMetadata=b.toolMetadata),R.providerExecuted=($=M.providerExecuted)!=null?$:C.providerExecuted;let N=M.providerMetadata;if(N!=null)if(b.state==="output-available"||b.state==="output-error"){let j=C;j.resultProviderMetadata=N}else C.callProviderMetadata=N}else u.message.parts.push({type:"dynamic-tool",toolName:b.toolName,toolCallId:b.toolCallId,state:b.state,input:M.input,output:M.output,errorText:M.errorText,preliminary:M.preliminary,providerExecuted:M.providerExecuted,title:b.title,...b.toolMetadata!==void 0?{toolMetadata:b.toolMetadata}:{},...M.providerMetadata!=null&&(b.state==="output-available"||b.state==="output-error")?{resultProviderMetadata:M.providerMetadata}:{},...M.providerMetadata!=null&&!(b.state==="output-available"||b.state==="output-error")?{c
vendor: 7,048 bytes, line 98
98allProviderMetadata:M.providerMetadata}:{}})}async function _(b){if(b!=null){let T=u.message.metadata!=null?SP(u.message.metadata,b):b;t!=null&&await Wp({value:T,schema:t,context:{field:"message.metadata",entityId:u.message.id}}),u.message.metadata=T}}switch(s.type){case"text-start":{let b={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeTextParts[s.id]=b,u.message.parts.push(b),c();break}case"text-delta":{let b=u.activeTextParts[s.id];if(b==null)throw new Rs({chunkType:"text-delta",chunkId:s.id,message:`Received text-delta for missing text part with ID "${s.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});b.text+=s.delta,b.providerMetadata=(d=s.providerMetadata)!=null?d:b.providerMetadata,c();break}case"text-end":{let b=u.activeTextParts[s.id];if(b==null)throw new Rs({chunkType:"text-end",chunkId:s.id,message:`Received text-end for missing text part with ID "${s.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});b.state="done",b.providerMetadata=(p=s.providerMetadata)!=null?p:b.providerMetadata,delete u.activeTextParts[s.id],c();break}case"reasoning-start":{let b={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeReasoningParts[s.id]=b,u.message.parts.push(b),c();break}case"reasoning-delta":{let b=u.activeReasoningParts[s.id];if(b==null)throw new Rs({chunkType:"reasoning-delta",chunkId:s.id,message:`Received reasoning-delta for missing reasoning part with ID "${s.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});b.text+=s.delta,b.providerMetadata=(m=s.providerMetadata)!=null?m:b.providerMetadata,c();break}case"reasoning-end":{let b=u.activeReasoningParts[s.id];if(b==null)throw new Rs({chunkType:"reasoning-end",chunkId:s.id,message:`Received reasoning-end for missing reasoning part with ID "${s.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});b.providerMetadata=(g=s.providerMetadata)!=null?g:b.providerMetadata,b.state="done",delete u.activeReasoningParts[s.id],c();break}case"file":{u.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url,...s.providerMetadata!=null?{providerMetadata:s.providerMetadata}:{}}),c();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),c();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),c();break}case"tool-input-start":{let b=u.message.parts.filter(U6);u.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:b.length,dynamic:s.dynamic,title:s.title,toolMetadata:s.toolMetadata},s.dynamic?S({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}):w({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}),c();break}case"tool-input-delta":{let b=u.partialToolCalls[s.toolCallId];if(b==null)throw new Rs({chunkType:"tool-input-delta",chunkId:s.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${s.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});b.text+=s.inputTextDelta;let{value:T}=await Yu(b.text);b.dynamic?S({toolCallId:s.toolCallId,toolName:b.toolName,state:"input-streaming",input:T,title:b.title,toolMetadata:b.toolMetadata}):w({toolCallId:s.toolCallId,toolName:b.toolName,state:"input-streaming",input:T,title:b.title,toolMetadata:b.toolMetadata}),c();break}case"tool-input-available":{s.dynamic?S({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}):w({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}),c(),i&&!s.providerExecuted&&await i({toolCall:s});break}case"tool-input-error":{let b=u.message.parts.filter(pn).find($=>$.toolCallId===s.toolCallId);(b!=null?b.type==="dynamic-tool":!!s.dynamic)?S({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,toolMetadata:s.toolMetadata}):w({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:void 0,rawInput:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,toolMetadata:s.toolMetadata}),c();break}case"tool-approval-request":{let b=x(s.toolCallId);b.state="approval-requested",b.approval={id:s.approvalId,...s.signature!=null?{signature:s.signature}:{}},c();break}case"tool-output-denied":{let b=x(s.toolCallId);b.state="output-denied",c();break}case"tool-output-available":{let b=x(s.toolCallId);b.type==="dynamic-tool"?S({toolCallId:s.toolCallId,toolName:b.toolName,state:"output-available",input:b.input,output:s.output,preliminary:s.preliminary,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:b.title,toolMetadata:b.toolMetadata}):w({toolCallId:s.toolCallId,toolName:L6(b),state:"output-available",input:b.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary,providerMetadata:s.providerMetadata,title:b.title,toolMetadata:b.toolMetadata}),c();break}case"tool-output-error":{let b=x(s.toolCallId);b.type==="dynamic-tool"?S({toolCallId:s.toolCallId,toolName:b.toolName,state:"output-error",input:b.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:b.title,toolMetadata:b.toolMetadata}):w({toolCallId:s.toolCallId,toolName:L6(b),state:"output-error",input:b.input,rawInput:b.rawInput,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:b.title,toolMetadata:b.toolMetadata}),c();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts=Xu(),u.activeReasoningParts=Xu();break}case"start":{s.messageId!=null&&(u.message.id=s.messageId),await _(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&c();break}case"finish":{s.finishReason!=null&&(u.finishReason=s.finishReason),await _(s.messageMetadata),s.messageMetadata!=null&&c();break}case"message-metadata":{await _(s.messageMetadata),s.messageMetadata!=null&&c();break}case"error":{n?.(new Error(s.errorText));break}default:if(pq(s)){if(r?.[s.type]!=null){let $=u.message.parts.findIndex(M=>"id"in M&&"data"in M&&M.id===s.id&&M.type===s.type),C=$>=0?$:u.message.parts.length;await Wp({value:s.data,schema:r[s.type],context:{field:`message.parts[${
98C}].data`,entityName:s.type,entityId:s.id}})}let b=s;if(b.transient){a?.(b);break}let T=b.id!=null?u.message.parts.find($=>b.type===$.type&&b.id===$.id):void 0;T!=null?T.data=b.data:u.message.parts.push(b),a?.(b),c()}}l.enqueue(s)})}}))}async function hq({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:o}=await r.read();if(o)break}}catch(o){t?.(o)}finally{r.releaseLock()}}var Fde=ro({prefix:"aitxt",size:24});var yr=v.record(v.string(),Qi.optional()),Vde=Vp(()=>vu(v.array(v.object({id:v.string(),role:v.enum(["system","user","assistant"]),metadata:v.unknown().optional(),parts:v.array(v.union([v.object({type:v.literal("text"),text:v.string(),state:v.enum(["streaming","done"]).optional(),providerMetadata:se.optional()}),v.object({type:v.literal("reasoning"),text:v.string(),state:v.enum(["streaming","done"]).optional(),providerMetadata:se.optional()}),v.object({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:se.optional()}),v.object({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:se.optional()}),v.object({type:v.literal("file"),mediaType:v.string(),filename:v.string().optional(),url:v.string(),providerMetadata:se.optional()}),v.object({type:v.literal("step-start")}),v.object({type:v.string().startsWith("data-"),id:v.string().optional(),data:v.unknown()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("input-streaming"),input:v.unknown().optional(),providerExecuted:v.boolean().optional(),callProviderMetadata:se.optional(),output:v.never().optional(),errorText:v.never().optional(),approval:v.never().optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("input-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:se.optional(),approval:v.never().optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:se.optional(),approval:v.object({id:v.string(),approved:v.never().optional(),reason:v.never().optional(),signature:v.string().optional()})}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:se.optional(),approval:v.object({id:v.string(),approved:v.boolean(),reason:v.string().optional(),signature:v.string().optional()})}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("output-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:se.optional(),resultProviderMetadata:se.optional(),preliminary:v.boolean().optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional(),signature:v.string().optional()}).optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("output-error"),input:v.unknown().optional(),rawInput:v.unknown().optional(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.string(),callProviderMetadata:se.optional(),resultProviderMetadata:se.optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional(),signature:v.string().optional()}).optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("output-denied"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:se.optional(),approval:v.object({id:v.string(),approved:v.literal(!1),reason:v.string().optional(),signature:v.string().optional()})}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("input-streaming"),providerExecuted:v.boolean().optional(),callProviderMetadata:se.optional(),input
98:v.unknown().optional(),output:v.never().optional(),errorText:v.never().optional(),approval:v.never().optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("input-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:se.optional(),approval:v.never().optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:se.optional(),approval:v.object({id:v.string(),approved:v.never().optional(),reason:v.never().optional(),signature:v.string().optional()})}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:se.optional(),approval:v.object({id:v.string(),approved:v.boolean(),reason:v.string().optional(),signature:v.string().optional()})}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("output-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:se.optional(),resultProviderMetadata:se.optional(),preliminary:v.boolean().optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional(),signature:v.string().optional()}).optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("output-error"),providerExecuted:v.boolean().optional(),input:v.unknown().optional(),rawInput:v.unknown().optional(),output:v.never().optional(),errorText:v.string(),callProviderMetadata:se.optional(),resultProviderMetadata:se.optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional(),signature:v.string().optional()}).optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),toolMetadata:yr.optional(),state:v.literal("output-denied"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:se.optional(),approval:v.object({id:v.string(),approved:v.literal(!1),reason:v.string().optional(),signature:v.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var qde=ro({prefix:"aiobj",size:24});function TP(e){return({url:t,abortSignal:r})=>WG({url:t,maxBytes:e?.maxBytes,abortSignal:r})}var gq=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(o){r(o)}}),this.processQueue()})}};var Hde=ro({prefix:"aiobj",size:24});var Jde=TP();var vq="AI_NoSuchProviderError",yq=`vercel.ai.error.${vq}`,bq=Symbol.for(yq),xq;xq=bq;var Kde=TP();async function wq(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{let{name:r,type:o}=t,n=await new Promise((i,a)=>{let s=new FileReader;s.onload=l=>{var u;i((u=l.target)==null?void 0:u.result)},s.onerror=l=>a(l),s.readAsDataURL(t)});return{type:"file",mediaType:o,filename:r,url:n}}))}var _q=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:o,fetch:n,prepareSendMessagesRequest:i,prepareReconnectToStreamRequest:a}){this.api=e,this.credentials=t,this.headers=r,this.body=o,this.fetch=n,this.prepareSendMessagesRequest=i,this.prepareReconnectToStreamRequest=a}async sendMessages({abortSignal:e,...t}){var r,o,n,i,a;let s=await kn(this.body),l=await kn(this.headers),u=await kn(this.credentials),c={...Ho(l),...Ho(t.headers)},d=await((r=this.prepareSendMessagesRequest)==null?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:c,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=(o=d?.api)!=null?o:this.api,m=d?.headers!==void 0?Ho(d.headers):c,g=d?.body!==void 0?d.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},x=(n=d?.credentials)!=null?n:u,S=await((i=this.fetch)!=null?i:globalThis.fetch)(p,{method:"POST",headers:{"Content-Type":"application/json",...m},body:JSON.stringify(g),credentials:x,signal:e});if(!S.ok)throw new Error((a=await S.text())!=null?a:"Failed to fetch the chat response.");if(!S.body)throw new Error("The response body is empty.");return this.processResponseStream(S.body)}async reconnectToStream(e){var t,r,o,n,i;let a=await kn(this.body),s=await kn(this.headers),l=await kn(this.credentials),u={...Ho(s),...Ho(e.headers)},c=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...a,...e.body},headers:u,credentials:l,requestMetadata:e.metadata})),d=(r=c?.api)!=null?r:`${this.api}/${e.chatId}/stream`,p=c?.headers!==void 0?Ho(c.headers):u,m=(o=c?.credentials)!=null?o:l,x=await((n=this.fetch)!=null?n:globalThis.fetch)(d,{method:"GET",headers:p,credentials:m});if(x.status===204)return null;if(!x.ok)throw new Error((i=await x.text())!=null?i:"Failed to fetch the chat response.");if(!x.body)throw new Error("The response body is empty.");return this.processResponseStream(x.body)}},F6=class extends _q{constructor(e={}){super(e)}processResponseStream(e){return SI({stream:e,schema:dq}).pipeThrough(new TransformStream({async transform(t,r){if(!t.success)throw t.error;r.enqueue(t.value)}}))}},PP=class{constructor({generateId:e=yI,id:t=e(),transport:r=new F6,messageMetadataSchema:o,dataPartSchemas:n,state:i,onError:a,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new gq,this.sendMessage=async(d,p)=>{var m,g,x,w;
vendor: 4,817 bytes, line 98
98if(d==null){await this.makeRequest({trigger:"submit-message",messageId:(m=this.lastMessage)==null?void 0:m.id,...p});return}let S;if("text"in d||"files"in d?S={parts:[...Array.isArray(d.files)?d.files:await wq(d.files),..."text"in d&&d.text!=null?[{type:"text",text:d.text}]:[]]}:S=d,d.messageId!=null){let _=this.state.messages.findIndex(b=>b.id===d.messageId);if(_===-1)throw new Error(`message with id ${d.messageId} not found`);if(this.state.messages[_].role!=="user")throw new Error(`message with id ${d.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,_+1),this.state.replaceMessage(_,{...S,id:d.messageId,role:(g=S.role)!=null?g:"user",metadata:d.metadata})}else this.state.pushMessage({...S,id:(x=S.id)!=null?x:this.generateId(),role:(w=S.role)!=null?w:"user",metadata:d.metadata});await this.makeRequest({trigger:"submit-message",messageId:d.messageId,...p})},this.regenerate=async({messageId:d,...p}={})=>{let m=d==null?this.state.messages.length-1:this.state.messages.findIndex(g=>g.id===d);if(m===-1)throw new Error(`message ${d} not found`);this.state.messages=this.state.messages.slice(0,this.messages[m].role==="assistant"?m:m+1),await this.makeRequest({trigger:"regenerate-message",messageId:d,...p})},this.resumeStream=async(d={})=>{await this.makeRequest({trigger:"resume-stream",...d})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:d,approved:p,reason:m,options:g})=>this.jobExecutor.run(async()=>{let x=this.state.messages,w=x[x.length-1],S=_=>pn(_)&&_.state==="approval-requested"&&_.approval.id===d?{..._,state:"approval-responded",approval:{id:d,approved:p,reason:m}}:_;this.state.replaceMessage(x.length-1,{...w,parts:w.parts.map(S)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(S)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(_=>{var b;_&&this.makeRequest({trigger:"submit-message",messageId:(b=this.lastMessage)==null?void 0:b.id,...g})})}),this.addToolOutput=async({state:d="output-available",toolCallId:p,output:m,errorText:g,options:x})=>this.jobExecutor.run(async()=>{let w=this.state.messages,S=w[w.length-1],_=b=>pn(b)&&b.toolCallId===p?{...b,state:d,output:m,errorText:g}:b;this.state.replaceMessage(w.length-1,{...S,parts:S.parts.map(_)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(_)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(b=>{var T;b&&this.makeRequest({trigger:"submit-message",messageId:(T=this.lastMessage)==null?void 0:T.id,...x})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var d;this.status!=="streaming"&&this.status!=="submitted"||(d=this.activeResponse)!=null&&d.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=o,this.dataPartSchemas=n,this.state=i,this.onError=a,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&typeof e=="object"&&"then"in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:r,body:o,messageId:n}){var i,a,s;let l;if(e==="resume-stream")try{let m=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:o});if(m==null)return;l=m}catch(m){this.onError&&m instanceof Error&&this.onError(m),this.setStatus({status:"error",error:m});return}this.setStatus({status:"submitted",error:void 0});let u=this.lastMessage,c=!1,d=!1,p=!1;try{let m={state:mq({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};m.abortController.signal.addEventListener("abort",()=>{c=!0}),this.activeResponse=m;let g;e==="resume-stream"?g=l:g=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:m.abortController.signal,metadata:t,headers:r,body:o,trigger:e,messageId:n});let x=w=>this.jobExecutor.run(()=>w({state:m.state,write:()=>{var S;this.setStatus({status:"streaming"}),m.state.message.id===((S=this.lastMessage)==null?void 0:S.id)?this.state.replaceMessage(this.state.messages.length-1,m.state.message):this.state.pushMessage(m.state.message)}}));
98await hq({stream:fq({stream:g,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:x,onError:w=>{throw w}}),onError:w=>{throw w}}),this.setStatus({status:"ready"})}catch(m){if(c||m.name==="AbortError")return c=!0,this.setStatus({status:"ready"}),null;p=!0,m instanceof TypeError&&(m.message.toLowerCase().includes("fetch")||m.message.toLowerCase().includes("network"))&&(d=!0),this.onError&&m instanceof Error&&this.onError(m),this.setStatus({status:"error",error:m})}finally{try{(a=this.onFinish)==null||a.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:c,isDisconnect:d,isError:p,finishReason:(i=this.activeResponse)==null?void 0:i.state.finishReason})}catch(m){console.error(m)}this.activeResponse=void 0}!p&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(s=this.lastMessage)==null?void 0:s.id,metadata:t,headers:r,body:o})}};function CP({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,i,a)=>i.type==="step-start"?a:n,-1),o=t.parts.slice(r+1).filter(pn);return o.filter(n=>n.state==="approval-responded").length>0&&o.every(n=>n.state==="output-available"||n.state==="output-error"||n.state==="approval-responded")}function zP({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,i,a)=>i.type==="step-start"?a:n,-1),o=t.parts.slice(r+1).filter(pn).filter(n=>!n.providerExecuted);return o.length>0&&o.every(n=>n.state==="output-available"||n.state==="output-error")}var DP=H(AP(),1);var rc=H(pe(),1);var jf=H(pe(),1);var MP=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},it=(e,t,r)=>(MP(e,t,"read from private field"),r?r.call(e):t.get(e)),Pn=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ai=(e,t,r,o)=>(MP(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);function Sq(e,t){return t!=null?(0,DP.default)(e,t):e}var qr,Nf,Rf,Qu,ec,tc,Os,B6,Z6,$q=class{constructor(e=[]){Pn(this,qr,void 0),Pn(this,Nf,"ready"),Pn(this,Rf,void 0),Pn(this,Qu,new Set),Pn(this,ec,new Set),Pn(this,tc,new Set),this.pushMessage=t=>{ai(this,qr,it(this,qr).concat(t)),it(this,Os).call(this)},this.popMessage=()=>{ai(this,qr,it(this,qr).slice(0,-1)),it(this,Os).call(this)},this.replaceMessage=(t,r)=>{ai(this,qr,[...it(this,qr).slice(0,t),this.snapshot(r),...it(this,qr).slice(t+1)]),it(this,Os).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,r)=>{let o=r?Sq(t,r):t;return it(this,Qu).add(o),()=>{it(this,Qu).delete(o)}},this["~registerStatusCallback"]=t=>(it(this,ec).add(t),()=>{it(this,ec).delete(t)}),this["~registerErrorCallback"]=t=>(it(this,tc).add(t),()=>{it(this,tc).delete(t)}),Pn(this,Os,()=>{it(this,Qu).forEach(t=>t())}),Pn(this,B6,()=>{it(this,ec).forEach(t=>t())}),Pn(this,Z6,()=>{it(this,tc).forEach(t=>t())}),ai(this,qr,e)}get status(){return it(this,Nf)}set status(e){ai(this,Nf,e),it(this,B6).call(this)}get error(){return it(this,Rf)}set error(e){ai(this,Rf,e),it(this,Z6).call(this)}get messages(){return it(this,qr)}set messages(e){ai(this,qr,[...e]),it(this,Os).call(this)}};qr=new WeakMap;Nf=new WeakMap;Rf=new WeakMap;Qu=new WeakMap;ec=new WeakMap;tc=new WeakMap;Os=new WeakMap;B6=new WeakMap;Z6=new WeakMap;var js,Of=class extends PP{constructor({messages:e,...t}){let r=new $q(e);super({...t,state:r}),Pn(this,js,void 0),this["~registerMessagesCallback"]=(o,n)=>it(this,js)["~registerMessagesCallback"](o,n),this["~registerStatusCallback"]=o=>it(this,js)["~registerStatusCallback"](o),this["~registerErrorCallback"]=o=>it(this,js)["~registerErrorCallback"](o),ai(this,js,r)}};js=new WeakMap;function NP({experimental_throttle:e,resume:t=!1,...r}={}){let o=(0,Wr.useRef)("chat"in r?{}:{onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});"chat"in r||(o.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});let n={...r,onToolCall:p=>{var m,g;return(g=(m=o.current).onToolCall)==null?void 0:g.call(m,p)},onData:p=>{var m,g;return(g=(m=o.current).onData)==null?void 0:g.call(m,p)},onFinish:p=>{var m,g;return(g=(m=o.current).onFinish)==null?void 0:g.call(m,p)},onError:p=>{var m,g;return(g=(m=o.current).onError)==null?void 0:g.call(m,p)},sendAutomaticallyWhen:p=>{var m,g,x;return(x=(g=(m=o.current).sendAutomaticallyWhen)==null?void 0:g.call(m,p))!=null?x:!1}},i=(0,Wr.useRef)("chat"in r?r.chat:new Of(n));("chat"in r&&r.chat!==i.current||"id"in r&&i.current.id!==r.id)&&
98(i.current="chat"in r?r.chat:new Of(n));let s=(0,Wr.useCallback)(p=>i.current["~registerMessagesCallback"](p,e),[e,i.current.id]),l=(0,Wr.useSyncExternalStore)(s,()=>i.current.messages,()=>i.current.messages),u=(0,Wr.useSyncExternalStore)(i.current["~registerStatusCallback"],()=>i.current.status,()=>i.current.status),c=(0,Wr.useSyncExternalStore)(i.current["~registerErrorCallback"],()=>i.current.error,()=>i.current.error),d=(0,Wr.useCallback)(p=>{typeof p=="function"&&(p=p(i.current.messages)),i.current.messages=p},[i]);return(0,Wr.useEffect)(()=>{t&&i.current.resumeStream()},[t,i]),{id:i.current.id,messages:l,setMessages:d,sendMessage:i.current.sendMessage,regenerate:i.current.regenerate,clearError:i.current.clearError,stop:i.current.stop,error:c,resumeStream:i.current.resumeStream,status:u,addToolResult:i.current.addToolOutput,addToolOutput:i.current.addToolOutput,addToolApprovalResponse:i.current.addToolApprovalResponse}}var Vc=H(Te(),1),gn=H(pe(),1);var RP=H(pe(),1),Us=(0,RP.createContext)({});var OP=H(pe(),1);function Ls(e){let t=(0,OP.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Uf=H(pe(),1);var jP=typeof window<"u";var Lf=jP?Uf.useLayoutEffect:Uf.useEffect;var Yw=H(Te(),1),Hz=H(pe(),1),Bc=H(pe(),1);var UP=H(pe(),1),si=(0,UP.createContext)(null);var qz=H(Te(),1);function ea(e,t){e.indexOf(t)===-1&&e.push(t)}function li(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var Tt=(e,t,r)=>r>t?t:r<e?e:r;var so=()=>{},Hr=()=>{};var rr={};var nc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function oc(e){return typeof e=="object"&&e!==null}var ic=e=>/^0[^.\s]+$/u.test(e);function ac(e){let t;return()=>(t===void 0&&(t=e()),t)}var dt=e=>e;var Iq=(e,t)=>r=>t(e(r)),mn=(...e)=>e.reduce(Iq);var Cn=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};var lo=class{constructor(){this.subscriptions=[]}add(t){return ea(this.subscriptions,t),()=>li(this.subscriptions,t)}notify(t,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,o);else for(let i=0;i<n;i++){let a=this.subscriptions[i];a&&a(t,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var xt=e=>e*1e3,Ot=e=>e/1e3;function sc(e,t){return t?e*(1e3/t):0}var LP=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Tq=1e-7,Pq=12;function Cq(e,t,r,o,n){let i,a,s=0;do a=t+(r-t)/2,i=LP(a,o,n)-e,i>0?r=a:t=a;while(Math.abs(i)>Tq&&++s<Pq);return a}function ui(e,t,r,o){if(e===t&&r===o)return dt;let n=i=>Cq(i,0,1,e,r);return i=>i===0||i===1?i:LP(n(i),t,o)}var Ff=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var Bf=e=>t=>1-e(1-t);var Zf=ui(.33,1.53,.69,.99),Fs=Bf(Zf),lc=Ff(Fs);var uc=e=>e>=1?1:(e*=2)<1?.5*Fs(e):.5*(2-Math.pow(2,-10*(e-1)));var cc=e=>1-Math.sin(Math.acos(e)),dc=Bf(cc),pc=Ff(cc);var V6=ui(.42,0,1,1),G6=ui(0,0,.58,1),mc=ui(.42,0,.58,1);var q6=e=>Array.isArray(e)&&typeof e[0]!="number";var fc=e=>Array.isArray(e)&&typeof e[0]=="number";var FP={linear:dt,easeIn:V6,easeInOut:mc,easeOut:G6,circIn:cc,circInOut:pc,circOut:dc,backIn:Fs,backInOut:lc,backOut:Zf,anticipate:uc},zq=e=>typeof e=="string",Vf=e=>{if(fc(e)){Hr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,o,n]=e;return ui(t,r,o,n)}else if(zq(e))return Hr(FP[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),FP[e];return e};var hc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Dr={value:null,addProjectionMetrics:null};function BP(e,t){let r=new Set,o=new Set,n=!1,i=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){a.has(d)&&(c.schedule(d),e()),l++,d(s)}let c={schedule:(d,p=!1,m=!1)=>{let x=m&&n?r:o;return p&&a.add(d),x.add(d),d},cancel:d=>{o.delete(d),a.delete(d)},process:d=>{if(s=d,n){i=!0;return}n=!0;let p=r;r=o,o=p,r.forEach(u),t&&Dr.value&&Dr.value.frameloop[t].push(l),l=0,r.clear(),n=!1,i&&(i=!1,c.process(d))}};return c}var Eq=40;function Gf(e,t){let r=!1,o=!0,n={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=hc.reduce((b,T)=>(b[T]=BP(i,t?T:void 0),b),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:p,render:m,postRender:g}=a,x=()=>{let b=rr.useManualTiming,T=b?n.timestamp:performance.now();r=!1,b||(n.delta=o?1e3/60:Math.max(Math.min(T-n.timestamp,Eq),1)),n.timestamp=T,n.isProcessing=!0,s.process(n),l.process(n),u.process(n),c.process(n),d.process(n),p.process(n),m.process(n),g.process(n),n.isProcessing=!1,r&&t&&(o=!1,e(x))},w=()=>{r=!0,o=!0,n.isProcessing||e(x)};return{schedule:hc.reduce((b,T)=>{let $=a[T];return b[T]=(C,M=!1,R=!1)=>(r||w(),$.schedule(C,M,R)),b},{}),cancel:b=>{for(let T=0;T<hc.length;T++)a[hc[T]].cancel(b)},state:n,steps:a}}var{schedule:Ie,cancel:br,state:yt,steps:gc}=Gf(typeof requestAnimationFrame<"u"?requestAnimationFrame:dt,!0);var qf;function Aq(){qf=void 0}var pt={now:()=>
98(qf===void 0&&pt.set(yt.isProcessing||rr.useManualTiming?yt.timestamp:performance.now()),qf),set:e=>{qf=e,queueMicrotask(Aq)}};var zn={layout:0,mainThread:0,waapi:0};var ZP=e=>t=>typeof t=="string"&&t.startsWith(e),Wf=ZP("--"),Mq=ZP("var(--"),Bs=e=>Mq(e)?Dq.test(e.split("/*")[0].trim()):!1,Dq=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function W6(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var En={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},uo={...En,transform:e=>Tt(0,1,e)},vc={...En,default:1};var ci=e=>Math.round(e*1e5)/1e5;var Zs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VP(e){return e==null}var GP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Vs=(e,t)=>r=>!!(typeof r=="string"&&GP.test(r)&&r.startsWith(e)||t&&!VP(r)&&Object.prototype.hasOwnProperty.call(r,t)),Hf=(e,t,r)=>o=>{if(typeof o!="string")return o;let[n,i,a,s]=o.match(Zs);return{[e]:parseFloat(n),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};var Nq=e=>Tt(0,255,e),H6={...En,transform:e=>Math.round(Nq(e))},An={test:Vs("rgb","red"),parse:Hf("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+H6.transform(e)+", "+H6.transform(t)+", "+H6.transform(r)+", "+ci(uo.transform(o))+")"};function Rq(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var yc={test:Vs("#"),parse:Rq,transform:An.transform};var bc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fn=bc("deg"),qt=bc("%"),te=bc("px"),J6=bc("vh"),K6=bc("vw"),Jf={...qt,parse:e=>qt.parse(e)/100,transform:e=>qt.transform(e*100)};var di={test:Vs("hsl","hue"),parse:Hf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+qt.transform(ci(t))+", "+qt.transform(ci(r))+", "+ci(uo.transform(o))+")"};var st={test:e=>An.test(e)||yc.test(e)||di.test(e),parse:e=>An.test(e)?An.parse(e):di.test(e)?di.parse(e):yc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?An.transform(e):di.transform(e),getAnimatableNone:e=>{let t=st.parse(e);return t.alpha=0,st.transform(t)}};var qP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oq(e){return isNaN(e)&&typeof e=="string"&&(e.match(Zs)?.length||0)+(e.match(qP)?.length||0)>0}var HP="number",JP="color",jq="var",Uq="var(",WP="${}",Lq=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pi(e){let t=e.toString(),r=[],o={color:[],number:[],var:[]},n=[],i=0,s=t.replace(Lq,l=>(st.test(l)?(o.color.push(i),n.push(JP),r.push(st.parse(l))):l.startsWith(Uq)?(o.var.push(i),n.push(jq),r.push(l)):(o.number.push(i),n.push(HP),r.push(parseFloat(l))),++i,WP)).split(WP);return{values:r,split:s,indexes:o,types:n}}function Fq(e){return pi(e).values}function KP({split:e,types:t}){let r=e.length;return o=>{let n="";for(let i=0;i<r;i++)if(n+=e[i],o[i]!==void 0){let a=t[i];a===HP?n+=ci(o[i]):a===JP?n+=st.transform(o[i]):n+=o[i]}return n}}function Bq(e){return KP(pi(e))}var Zq=e=>typeof e=="number"?0:st.test(e)?st.getAnimatableNone(e):e,Vq=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Zq(e);function Gq(e){let t=pi(e);return KP(t)(t.values.map((o,n)=>Vq(o,t.split[n])))}var Pt={test:Oq,parse:Fq,createTransformer:Bq,getAnimatableNone:Gq};function X6(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function XP({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let n=0,i=0,a=0;if(!t)n=i=a=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=X6(l,s,e+1/3),i=X6(l,s,e),a=X6(l,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function Gs(e,t){return r=>r>0?t:e}var De=(e,t,r)=>e+(t-e)*r;var Y6=(e,t,r)=>{let o=e*e,n=r*(t*t-o)+o;return n<0?0:Math.sqrt(n)},qq=[yc,An,di],Wq=e=>qq.find(t=>t.test(e));function YP(e){let t=Wq(e);
98if(so(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===di&&(r=XP(r)),r}var Q6=(e,t)=>{let r=YP(e),o=YP(t);if(!r||!o)return Gs(e,t);let n={...r};return i=>(n.red=Y6(r.red,o.red,i),n.green=Y6(r.green,o.green,i),n.blue=Y6(r.blue,o.blue,i),n.alpha=De(r.alpha,o.alpha,i),An.transform(n))};var Kf=new Set(["none","hidden"]);function QP(e,t){return Kf.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function Hq(e,t){return r=>De(e,t,r)}function Xf(e){return typeof e=="number"?Hq:typeof e=="string"?Bs(e)?Gs:st.test(e)?Q6:Xq:Array.isArray(e)?eC:typeof e=="object"?st.test(e)?Q6:Jq:Gs}function eC(e,t){let r=[...e],o=r.length,n=e.map((i,a)=>Xf(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)r[a]=n[a](i);return r}}function Jq(e,t){let r={...e,...t},o={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(o[n]=Xf(e[n])(e[n],t[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}}function Kq(e,t){let r=[],o={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let i=t.types[n],a=e.indexes[i][o[i]],s=e.values[a]??0;r[n]=s,o[i]++}return r}var Xq=(e,t)=>{let r=Pt.createTransformer(t),o=pi(e),n=pi(t);return o.indexes.var.length===n.indexes.var.length&&o.indexes.color.length===n.indexes.color.length&&o.indexes.number.length>=n.indexes.number.length?Kf.has(e)&&!n.values.length||Kf.has(t)&&!o.values.length?QP(e,t):mn(eC(Kq(o,n),n.values),r):(so(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Gs(e,t))};function Yf(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?De(e,t,r):Xf(e)(e,t)}var tC=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>Ie.update(t,r),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:pt.now()}};var Qf=(e,t,r=10)=>{let o="",n=Math.max(Math.round(t/r),2);for(let i=0;i<n;i++)o+=Math.round(e(i/(n-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`};function qs(e){let t=0,r=50,o=e.next(t);for(;!o.done&&t<2e4;)t+=r,o=e.next(t);return t>=2e4?1/0:t}function rC(e,t=100,r){let o=r({...e,keyframes:[0,t]}),n=Math.min(qs(o),2e4);return{type:"keyframes",ease:i=>o.next(n*i).value/t,duration:Ot(n)}}var mt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function rw(e,t){return e*Math.sqrt(1-t*t)}var Yq=12;function Qq(e,t,r){let o=r;for(let n=1;n<Yq;n++)o=o-e(o)/t(o);return o}var tw=.001;function eW({duration:e=mt.duration,bounce:t=mt.bounce,velocity:r=mt.velocity,mass:o=mt.mass}){let n,i;so(e<=xt(mt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Tt(mt.minDamping,mt.maxDamping,a),e=Tt(mt.minDuration,mt.maxDuration,Ot(e)),a<1?(n=u=>{let c=u*a,d=c*e,p=c-r,m=rw(u,a),g=Math.exp(-d);return tw-p/m*g},i=u=>{let d=u*a*e,p=d*r+r,m=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-d),x=rw(Math.pow(u,2),a);return(-n(u)+tw>0?-1:1)*((p-m)*g)/x}):(n=u=>{let c=Math.exp(-u*e),d=(u-r)*e+1;return-tw+c*d},i=u=>{let c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});let s=5/e,l=Qq(n,i,s);if(e=xt(e),isNaN(l))return{stiffness:mt.stiffness,damping:mt.damping,duration:e};{let u=Math.pow(l,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}var tW=["duration","bounce"],rW=["stiffness","damping","mass"];function nC(e,t){return t.some(r=>e[r]!==void 0)}function nW(e){let t={velocity:mt.velocity,stiffness:mt.stiffness,damping:mt.damping,mass:mt.mass,isResolvedFromDuration:!1,...e};if(!nC(e,rW)&&nC(e,tW))if(t.velocity=0,e.visualDuration){let r=e.visualDuration,o=2*Math.PI/(r*1.2),n=o*o,i=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:mt.mass,stiffness:n,damping:i}}else{let r=eW({...e,velocity:0});t={...t,...r,mass:mt.mass},t.isResolvedFromDuration=!0}return t}function Ws(e=mt.visualDuration,t=mt.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:o,restDelta:n}=r,i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=nW({...r,velocity:-Ot(r.velocity||0)}),g=p||0,x=u/(2*Math.sqrt(l*c)),w=a-i,S=Ot(Math.sqrt(l/c)),_=Math.abs(w)<5;o||(o=_?mt.restSpeed.granular:mt.restSpeed.default),n||(n=_?mt.restDelta.granular:mt.restDelta.default);let b,T,$,C,M,R;if(x<1)$=rw(S,x),C=(g+x*S*w)/$,b=j=>
98{let oe=Math.exp(-x*S*j);return a-oe*(C*Math.sin($*j)+w*Math.cos($*j))},M=x*S*C+w*$,R=x*S*w-C*$,T=j=>Math.exp(-x*S*j)*(M*Math.sin($*j)+R*Math.cos($*j));else if(x===1){b=oe=>a-Math.exp(-S*oe)*(w+(g+S*w)*oe);let j=g+S*w;T=oe=>Math.exp(-S*oe)*(S*j*oe-g)}else{let j=S*Math.sqrt(x*x-1);b=ye=>{let Oe=Math.exp(-x*S*ye),ot=Math.min(j*ye,300);return a-Oe*((g+x*S*w)*Math.sinh(ot)+j*w*Math.cosh(ot))/j};let oe=(g+x*S*w)/j,ae=x*S*oe-w*j,nt=x*S*w-oe*j;T=ye=>{let Oe=Math.exp(-x*S*ye),ot=Math.min(j*ye,300);return Oe*(ae*Math.sinh(ot)+nt*Math.cosh(ot))}}let N={calculatedDuration:m&&d||null,velocity:j=>xt(T(j)),next:j=>{if(!m&&x<1){let ae=Math.exp(-x*S*j),nt=Math.sin($*j),ye=Math.cos($*j),Oe=a-ae*(C*nt+w*ye),ot=xt(ae*(M*nt+R*ye));return s.done=Math.abs(ot)<=o&&Math.abs(a-Oe)<=n,s.value=s.done?a:Oe,s}let oe=b(j);if(m)s.done=j>=d;else{let ae=xt(T(j));s.done=Math.abs(ae)<=o&&Math.abs(a-oe)<=n}return s.value=s.done?a:oe,s},toString:()=>{let j=Math.min(qs(N),2e4),oe=Qf(ae=>N.next(j*ae).value,j,30);return j+"ms "+oe},toTransition:()=>{}};return N}Ws.applyToOptions=e=>{let t=rC(e,100,Ws);return e.ease=t.ease,e.duration=xt(t.duration),e.type="keyframes",e};var oW=5;function e0(e,t,r){let o=Math.max(t-oW,0);return sc(r-e(o),t-o)}function xc({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],p={done:!1,value:d},m=R=>s!==void 0&&R<s||l!==void 0&&R>l,g=R=>s===void 0?l:l===void 0||Math.abs(s-R)<Math.abs(l-R)?s:l,x=r*t,w=d+x,S=a===void 0?w:a(w);S!==w&&(x=S-d);let _=R=>-x*Math.exp(-R/o),b=R=>S+_(R),T=R=>{let N=_(R),j=b(R);p.done=Math.abs(N)<=u,p.value=p.done?S:j},$,C,M=R=>{m(p.value)&&($=R,C=Ws({keyframes:[p.value,g(p.value)],velocity:e0(b,R,p.value),damping:n,stiffness:i,restDelta:u,restSpeed:c}))};return M(0),{calculatedDuration:null,next:R=>{let N=!1;return!C&&$===void 0&&(N=!0,T(R),M(R)),$!==void 0&&R>=$?C.next(R-$):(!N&&T(R),p)}}}function iW(e,t,r){let o=[],n=r||rr.mix||Yf,i=e.length-1;for(let a=0;a<i;a++){let s=n(e[a],e[a+1]);if(t){let l=Array.isArray(t)?t[a]||dt:t;s=mn(l,s)}o.push(s)}return o}function oC(e,t,{clamp:r=!0,ease:o,mixer:n}={}){let i=e.length;if(Hr(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=iW(t,o,n),l=s.length,u=c=>{if(a&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let p=Cn(e[d],e[d+1],c);return s[d](p)};return r?c=>u(Tt(e[0],e[i-1],c)):u}function iC(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let n=Cn(0,t,o);e.push(De(r,1,n))}}function aC(e){let t=[0];return iC(t,e.length-1),t}function sC(e,t){return e.map(r=>r*t)}function aW(e,t){return e.map(()=>t||mc).splice(0,e.length-1)}function ta({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let n=q6(o)?o.map(Vf):Vf(o),i={done:!1,value:t[0]},a=sC(r&&r.length===t.length?r:aC(t),e),s=oC(a,t,{ease:Array.isArray(n)?n:aW(t,n)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}var sW=e=>e!==null;function mi(e,{repeat:t,repeatType:r="loop"},o,n=1){let i=e.filter(sW),s=n<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!s||o===void 0?i[s]:o}var lW={decay:xc,inertia:xc,tween:ta,keyframes:ta,spring:Ws};function t0(e){typeof e.type=="string"&&(e.type=lW[e.type])}var fi=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}};var uW=e=>e/100,co=class extends fi{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==pt.now()&&this.tick(pt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},zn.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;t0(t);let{type:r=ta,repeat:o=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=t,{keyframes:s}=t,l=r||ta;l!==ta&&typeof s[0]!="number"&&(this.mixKeyframes=mn(uW,Yf(s[0],s[1])),s=[0,100]);let u=l({...t,keyframes:s}
98);i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=qs(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(o+1)-n,this.generator=u}updateTime(t){let r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){let{generator:o,totalDuration:n,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return o.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:m,type:g,onUpdate:x,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);let S=this.currentTime-u*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?S<0:S>n;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let b=this.currentTime,T=o;if(d){let R=Math.min(this.currentTime,n)/s,N=Math.floor(R),j=R%1;!j&&R>=1&&(j=1),j===1&&N--,N=Math.min(N,d+1),N%2&&(p==="reverse"?(j=1-j,m&&(j-=m/s)):p==="mirror"&&(T=a)),b=Tt(0,1,j)*s}let $;_?(this.delayState.value=c[0],$=this.delayState):$=T.next(b),i&&!_&&($.value=i($.value));let{done:C}=$;!_&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return M&&g!==xc&&($.value=mi(c,this.options,w,this.speed)),x&&x($.value),M&&this.finish(),$}then(t,r){return this.finished.then(t,r)}get duration(){return Ot(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+Ot(t)}get time(){return Ot(this.currentTime)}set time(t){t=xt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let r=this.generator.next(t).value;return e0(o=>this.generator.next(o).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(pt.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=Ot(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tC,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(pt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,zn.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function lC(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ra=e=>e*180/Math.PI,nw=e=>{let t=ra(Math.atan2(e[1],e[0]));return ow(t)},cW={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:nw,rotateZ:nw,skewX:e=>ra(Math.atan(e[1])),skewY:e=>ra(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ow=e=>(e=e%360,e<0&&(e+=360),e),uC=nw,cC=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dC=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),dW={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cC,scaleY:dC,scale:e=>(cC(e)+dC(e))/2,rotateX:e=>ow(ra(Math.atan2(e[6],e[5]))),rotateY:e=>ow(ra(Math.atan2(-e[2],e[0]))),rotateZ:uC,rotate:uC,skewX:e=>ra(Math.atan(e[4])),skewY:e=>ra(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function r0(e){return e.includes("scale")?1:0}function n0(e,t){if(!e||e==="none")return r0(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,n;if(r)o=dW,n=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=cW,n=s}if(!n)return r0(t);let i=o[t],a=n[1].split(",").map(pW);return typeof i=="function"?i(a):a[i]}var pC=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return n0(r,t)};function pW(e){return parseFloat(e.trim())}var Mn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Jr=new Set(Mn);var iw=e=>e===En||e===te,mW=new Set(["x","y","z"]),fW=Mn.filter(e=>!mW.has(e));function mC(e){let t=[];return fW.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),t}var po={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:o})=>{let n=e.max-e.min;return o==="border-box"?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:o})=>{let n=e.max-e.min;return o==="border-box"?n:n-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>n0(t,"x"),y:(e,{transform:t})=>n0(t,"y")};po.translateX=po.x;po.translateY=po.y;var na=new Set,aw=!1,sw=!1,lw=!1;function fC(){if(sw){let e=Array.from(na).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),r=new Map;t.forEach(o=>{let n=mC(o);n.length&&(r.set(o,n),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();let n=r.get(o);
98n&&n.forEach(([i,a])=>{o.getValue(i)?.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}sw=!1,aw=!1,na.forEach(e=>e.complete(lw)),na.clear()}function hC(){na.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sw=!0)})}function gC(){lw=!0,hC(),fC(),lw=!1}var hi=class{constructor(t,r,o,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=o,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(na.add(this),aw||(aw=!0,Ie.read(hC),Ie.resolveKeyframes(fC))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:o,motionValue:n}=this;if(t[0]===null){let i=n?.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&r){let s=o.readValue(r,a);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=a),n&&i===void 0&&n.set(t[0])}lC(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),na.delete(this)}cancel(){this.state==="scheduled"&&(na.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var vC=e=>e.startsWith("--");function o0(e,t,r){vC(t)?e.style.setProperty(t,r):e.style[t]=r}var yC={};function i0(e,t){let r=ac(e);return()=>yC[t]??r()}var bC=i0(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var a0=i0(()=>{try{document.createElement("div").animate({opacity:0}
98,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var oa=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`;var uw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:oa([0,.65,.55,1]),circOut:oa([.55,0,1,.45]),backIn:oa([.31,.01,.66,-.59]),backOut:oa([.33,1.53,.69,.99])};function cw(e,t){if(e)return typeof e=="function"?a0()?Qf(e,t):"ease-out":fc(e)?oa(e):Array.isArray(e)?e.map(r=>cw(r,t)||uw.easeOut):uw[e]}function xC(e,t,r,{delay:o=0,duration:n=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u=void 0){let c={[t]:r};l&&(c.offset=l);let d=cw(s,n);Array.isArray(d)&&(c.easing=d),Dr.value&&zn.waapi++;let p={delay:o,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};u&&(p.pseudoElement=u);let m=e.animate(c,p);return Dr.value&&m.finished.finally(()=>{zn.waapi--}),m}function s0(e){return typeof e=="function"&&"applyToOptions"in e}function wC({type:e,...t}){return s0(e)&&a0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Hs=class extends fi{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:r,name:o,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,Hr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=wC(t);this.animation=xC(r,o,n,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let c=mi(n,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(c),o0(r,o,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return Ot(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+Ot(t)}get time(){return Ot(Number(this.animation.currentTime)||0)}set time(t){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=xt(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:o,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&bC()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),dt):n(this)}};var _C={anticipate:uc,backInOut:lc,circInOut:pc};function hW(e){return e in _C}function kC(e){typeof e.ease=="string"&&hW(e.ease)&&(e.ease=_C[e.ease])}var dw=10,l0=class extends Hs{constructor(t){kC(t),t0(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:o,onComplete:n,element:i,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let s=new co({...a,autoplay:!1}),l=Math.max(dw,pt.now()-this.startTime),u=Tt(0,dw,l-dw),c=s.sample(l).value,{name:d}=this.options;i&&d&&o0(i,d,c),r.setWithVelocity(s.sample(Math.max(0,l-u)).value,c,u),s.stop()}};var pw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pt.test(e)||e==="0")&&!e.startsWith("url("));function gW(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function SC(e,t,r,o){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],a=pw(n,t),s=pw(i,t);return so(a===s,`You are trying to animate ${t} from "${n}" to "${i}". "${a?i:n}" is not an animatable value.`,"value-not-animatable"),!a||!s?!1:gW(e)||(r==="spring"||s0(r))&&o}function wc(e){e.duration=0,e.type="keyframes"}var u0=new Set(["opacity","clipPath","filter","transform"]);var vW=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function $C(e){for(let t=0;t<e.length;
98t++)if(typeof e[t]=="string"&&vW.test(e[t]))return!0;return!1}var yW=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),bW=ac(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function IC(e){let{motionValue:t,name:r,repeatDelay:o,repeatType:n,damping:i,type:a,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return bW()&&r&&(u0.has(r)||yW.has(r)&&$C(s))&&(r!=="transform"||!c)&&!u&&!o&&n!=="mirror"&&i!==0&&a!=="inertia"}var xW=40,c0=class extends fi{constructor({autoplay:t=!0,delay:r=0,type:o="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=pt.now();let p={autoplay:t,delay:r,type:o,repeat:n,repeatDelay:i,repeatType:a,name:l,motionValue:u,element:c,...d},m=c?.KeyframeResolver||hi;this.keyframeResolver=new m(s,(g,x,w)=>this.onKeyframesResolved(g,x,p,!w),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,o,n){this.keyframeResolver=void 0;let{name:i,type:a,velocity:s,delay:l,isHandoff:u,onUpdate:c}=o;this.resolvedAt=pt.now();let d=!0;SC(t,i,a,s)||(d=!1,(rr.instantAnimations||!l)&&c?.(mi(t,o,r)),t[0]=t[t.length-1],wc(o),o.repeat=0);let m={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>xW?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:t},g=d&&!u&&IC(m),x=m.motionValue?.owner?.current,w;if(g)try{w=new l0({...m,element:x})}catch{w=new co(m)}else w=new co(m);w.finished.then(()=>{this.notifyFinished()}).catch(dt),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),gC()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function d0(e,t,r,o=0,n=1){let i=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),a=e.size,s=(a-1)*o;return typeof r=="function"?r(i,a):n===1?i*o:s-i*o}var wW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _W(e){let t=wW.exec(e);if(!t)return[,];let[,r,o,n]=t;return[`--${r??o}`,n]}var kW=4;function mw(e,t,r=1){Hr(r<=kW,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,n]=_W(e);if(!o)return;let i=window.getComputedStyle(t).getPropertyValue(o);if(i){let a=i.trim();return nc(a)?parseFloat(a):a}return Bs(n)?mw(n,t,r+1):n}var SW={type:"spring",stiffness:500,damping:25,restSpeed:10},$W=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),IW={type:"keyframes",duration:.8},TW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},TC=(e,{keyframes:t})=>t.length>2?IW:Jr.has(e)?e.startsWith("scale")?$W(t[1]):SW:TW;function p0(e,t){if(e?.inherit&&t){let{inherit:r,...o}=e;return{...t,...o}}return e}function Js(e,t){let r=e?.[t]??e?.default??e;return r!==e?p0(r,e):r}var PW=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function PC(e){for(let t in e)if(!PW.has(t))return!0;return!1}var ia=(e,t,r,o={},n,i)=>a=>{let s=Js(o,e)||{},l=s.delay||o.delay||0,{elapsed:u=0}=o;u=u-xt(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:n};PC(s)||Object.assign(c,TC(e,c)),c.duration&&(c.duration=xt(c.duration)),c.repeatDelay&&(c.repeatDelay=xt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(wc(c),c.delay===0&&(
98d=!0)),(rr.instantAnimations||rr.skipAnimations||n?.shouldSkipAnimations)&&(d=!0,wc(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!i&&t.get()!==void 0){let p=mi(c.keyframes,s);if(p!==void 0){Ie.update(()=>{c.onUpdate(p),c.onComplete()});return}}return s.isSync?new co(c):new c0(c)};function CC(e){let t=[{},{}];return e?.values.forEach((r,o)=>{t[0][o]=r.get(),t[1][o]=r.getVelocity()}),t}function aa(e,t,r,o){if(typeof t=="function"){let[n,i]=CC(o);t=t(r!==void 0?r:e.custom,n,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,i]=CC(o);t=t(r!==void 0?r:e.custom,n,i)}return t}function Nr(e,t,r){let o=e.getProps();return aa(o,t,r!==void 0?r:o.custom,e)}var m0=new Set(["width","height","top","left","right","bottom",...Mn]);var zC=30,CW=e=>!isNaN(parseFloat(e)),EC={current:void 0},fw=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let n=pt.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=pt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CW(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new lo);let o=this.events[t].add(r);return t==="change"?()=>{o(),Ie.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return EC.current&&EC.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=pt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>zC)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,zC);return sc(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function hn(e,t){return new fw(e,t)}var _c=e=>Array.isArray(e);function zW(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,hn(r))}function EW(e){return _c(e)?e[e.length-1]||0:e}function AC(e,t){let r=Nr(e,t),{transitionEnd:o={},transition:n={},...i}=r||{};i={...i,...o};for(let a in i){let s=EW(i[a]);zW(e,a,s)}}var Ge=e=>!!(e&&e.getVelocity);function MC(e){return!!(Ge(e)&&e.add)}function Ks(e,t){let r=e.getValue("willChange");if(MC(r))return r.add(t);if(!r&&rr.WillChange){let o=new rr.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function Xs(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var DC="framerAppearId",kc="data-"+Xs(DC);function f0(e){return e.props[kc]}function AW({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function h0(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let{transition:i,transitionEnd:a,...s}=t,l=e.getDefaultTransition();i=i?p0(i,l):l;let u=i?.reduceMotion;o&&(i=o);let c=[],d=n&&e.animationState&&e.animationState.getState()[n];for(let p in s){let m=e.getValue(p,e.latestValues[p]??null),g=s[p];if(g===void 0||d&&AW(d,p))continue;let x={delay:r,...Js(i||{},p)},w=m.get();if(w!==void 0&&!m.isAnimating()&&!Array.isArray(g)&&g===w&&!x.velocity){Ie.update(()=>m.set(g));continue}let S=!1;
98if(window.MotionHandoffAnimation){let T=f0(e);if(T){let $=window.MotionHandoffAnimation(T,p,Ie);$!==null&&(x.startTime=$,S=!0)}}Ks(e,p);let _=u??e.shouldReduceMotion;m.start(ia(p,m,g,_&&m0.has(p)?{type:!1}:x,e,S));let b=m.animation;b&&c.push(b)}if(a){let p=()=>Ie.update(()=>{a&&AC(e,a)});c.length?Promise.all(c).then(p):p()}return c}function g0(e,t,r={}){let o=Nr(e,t,r.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);let i=o?()=>Promise.all(h0(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=n;return MW(e,t,l,u,c,d,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[l,u]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>u())}else return Promise.all([i(),a(r.delay)])}function MW(e,t,r=0,o=0,n=0,i=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(g0(l,t,{...a,delay:r+(typeof o=="function"?0:o)+d0(e.variantChildren,l,o,n,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function NC(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(i=>g0(e,i,r));o=Promise.all(n)}else if(typeof t=="string")o=g0(e,t,r);else{let n=typeof t=="function"?Nr(e,t,r.custom):t;o=Promise.all(h0(e,n,r))}return o.then(()=>{e.notify("AnimationComplete",t)})}var RC={test:e=>e==="auto",parse:e=>e};var v0=e=>t=>t.test(e);var hw=[En,te,qt,fn,K6,J6,RC],gw=e=>hw.find(v0(e));function OC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ic(e):!0}var DW=new Set(["brightness","contrast","saturate","opacity"]);function NW(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(Zs)||[];if(!o)return e;let n=r.replace(o,""),i=DW.has(t)?1:0;return o!==r&&(i*=100),t+"("+i+n+")"}var RW=/\b([a-z-]*)\(.*?\)/gu,Sc={...Pt,getAnimatableNone:e=>{let t=e.match(RW);return t?t.map(NW).join(" "):e}};var $c={...Pt,getAnimatableNone:e=>{let t=Pt.parse(e);return Pt.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var vw={...En,transform:Math.round};var jC={rotate:fn,rotateX:fn,rotateY:fn,rotateZ:fn,scale:vc,scaleX:vc,scaleY:vc,scaleZ:vc,skew:fn,skewX:fn,skewY:fn,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:uo,originX:Jf,originY:Jf,originZ:te};var Ys={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,inset:te,insetBlock:te,insetBlockStart:te,insetBlockEnd:te,insetInline:te,insetInlineStart:te,insetInlineEnd:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,paddingBlock:te,paddingBlockStart:te,paddingBlockEnd:te,paddingInline:te,paddingInlineStart:te,paddingInlineEnd:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,marginBlock:te,marginBlockStart:te,marginBlockEnd:te,marginInline:te,marginInlineStart:te,marginInlineEnd:te,fontSize:te,backgroundPositionX:te,backgroundPositionY:te,...jC,zIndex:vw,fillOpacity:uo,strokeOpacity:uo,numOctaves:vw};var OW={...Ys,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:Sc,WebkitFilter:Sc,mask:$c,WebkitMask:$c},y0=e=>OW[e];var jW=new Set([Sc,$c]);function b0(e,t){let r=y0(e);return jW.has(r)||(r=Pt),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var UW=new Set(["auto","none","0"]);function UC(e,t,r){let o=0,n;for(;o<e.length&&!n;){let i=e[o];typeof i=="string"&&!UW.has(i)&&pi(i).values.length&&(n=e[o]),o++}if(n&&r)for(let i of t)e[i]=b0(r,n)}var x0=class extends hi{constructor(t,r,o,n,i){super(t,r,o,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];
98if(typeof d=="string"&&(d=d.trim(),Bs(d))){let p=mw(d,r.current);p!==void 0&&(t[c]=p),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!m0.has(o)||t.length!==2)return;let[n,i]=t,a=gw(n),s=gw(i),l=W6(n),u=W6(i);if(l!==u&&po[o]){this.needsMeasurement=!0;return}if(a!==s)if(iw(a)&&iw(s))for(let c=0;c<t.length;c++){let d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else po[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,o=[];for(let n=0;n<t.length;n++)(t[n]===null||OC(t[n]))&&o.push(n);o.length&&UC(t,o,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=po[o](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&t.getValue(o,n).jump(n,!1)}measureEndState(){let{element:t,name:r,unresolvedKeyframes:o}=this;if(!t||!t.current)return;let n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);let i=o.length-1,a=o[i];o[i]=po[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
98h(([s,l])=>{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}};function w0(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let n=r?.[e]??o.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(o=>o!=null)}var _0=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function sa(e){return oc(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:la,cancel:LW}=Gf(queueMicrotask,!1);var Kr={x:!1,y:!1};function k0(){return Kr.x||Kr.y}function yw(e){return e==="x"||e==="y"?Kr[e]?null:(Kr[e]=!0,()=>{Kr[e]=!1}):Kr.x||Kr.y?null:(Kr.x=Kr.y=!0,()=>{Kr.x=Kr.y=!1})}function S0(e,t){let r=w0(e),o=new AbortController,n={passive:!0,...t,signal:o.signal};return[r,n,()=>o.abort()]}function FW(e){return!(e.pointerType==="touch"||k0())}function bw(e,t,r={}){let[o,n,i]=S0(e,r);return o.forEach(a=>{let s=!1,l=!1,u,c=()=>{a.removeEventListener("pointerleave",g)},d=w=>{u&&(u(w),u=void 0),c()},p=w=>{s=!1,window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p),l&&(l=!1,d(w))},m=()=>{s=!0,window.addEventListener("pointerup",p,n),window.addEventListener("pointercancel",p,n)},g=w=>{if(w.pointerType!=="touch"){if(s){l=!0;return}d(w)}},x=w=>{if(!FW(w))return;l=!1;let S=t(a,w);typeof S=="function"&&(u=S,a.addEventListener("pointerleave",g,n))};a.addEventListener("pointerenter",x,n),a.addEventListener("pointerdown",m,n)}),i}var xw=(e,t)=>t?e===t?!0:xw(e,t.parentElement):!1;var ua=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var BW=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ww(e){return BW.has(e.tagName)||e.isContentEditable===!0}var ZW=new Set(["INPUT","SELECT","TEXTAREA"]);function _w(e){return ZW.has(e.tagName)||e.isContentEditable===!0}var Qs=new WeakSet;function LC(e){return t=>{t.key==="Enter"&&e(t)}}function kw(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var FC=(e,t)=>{let r=e.currentTarget;if(!r)return;let o=LC(()=>{if(Qs.has(r))return;kw(r,"down");let n=LC(()=>{kw(r,"up")}),i=()=>kw(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",o,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),t)};function BC(e){return ua(e)&&!k0()}var ZC=new WeakSet;function Sw(e,t,r={}){let[o,n,i]=S0(e,r),a=s=>{let l=s.currentTarget;if(!BC(s)||ZC.has(s))return;Qs.add(l),r.stopPropagation&&ZC.add(s);let u=t(l,s),c=(m,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Qs.has(l)&&Qs.delete(l),BC(m)&&typeof u=="function"&&u(m,{success:g})},d=m=>{c(m,l===window||l===document||r.useGlobalTarget||xw(l,m.target))},p=m=>{c(m,!1)};window.addEventListener("pointerup",d,n),window.addEventListener("pointercancel",p,n)};return o.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",a,n),sa(s)&&(s.addEventListener("focus",u=>FC(u,n)),!ww(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function el(e){return oc(e)&&"ownerSVGElement"in e}var $0=new WeakMap,I0,VC=(e,t,r)=>(o,n)=>n&&n[0]?n[0][e+"Size"]:el(o)&&"getBBox"in o?o.getBBox()[t]:o[r],VW=VC("inline","width","offsetWidth"),GW=VC("block","height","offsetHeight");function qW({target:e,borderBoxSize:t}){$0.get(e)?.forEach(r=>{r(e,{get width(){return VW(e,t)},get height(){return GW(e,t)}})})}function WW(e){e.forEach(qW)}function HW(){typeof ResizeObserver>"u"||(I0=new ResizeObserver(WW))}function GC(e,t){I0||HW();let r=w0(e);return r.forEach(o=>{let n=$0.get(o);n||(n=new Set,$0.set(o,n)),n.add(t),I0?.observe(o)}),()=>{r.forEach(o=>{let n=$0.get(o);n?.delete(t),n?.size||I0?.unobserve(o)})}}var T0=new Set,tl;function JW(){tl=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};T0.forEach(t=>t(e))},window.addEventListener("resize",tl)}function qC(e){return T0.add(e),tl||JW(),()=>{T0.delete(e),!T0.size&&typeof tl=="function"&&(window.removeEventListener("resize",tl),tl=void 0)}}function P0(e,t){return typeof e=="function"?qC(e):GC(e,t)}function WC(e){return el(e)&&e.tagName==="svg"}var KW=[...hw,st,Pt],HC=e=>KW.find(v0(e));var $w=()=>({translate:0,scale:1,origin:0,originPoint:0}),gi=()=>({x:$w(),y:$w()}),Iw=()=>({min:0,max:0}),lt=()=>({x:Iw(),y:Iw()});var JC=new WeakMap;function mo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Dn(e){return typeof e=="string"||Array.isArray(e)}var C0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ic=["initial",...C0];function vi(e){return mo(e.animate)||Ic.some(t=>Dn(e[t]))}function Tc(e){return!!(vi(e)||e.variants)}function KC(e,t,r){for(let o in t){let n=t[o],i=r[o];if(Ge(n))e.addValue(o,n);else if(Ge(i))e.addValue(o,hn(n,{owner:e}));else if(i!==n)if(e.hasValue(o)){let a=e.getValue(o);a.liveStyle===!0?a.jump(n):a.hasAnimated||a.set(n)}else{let a=e.getStaticValue(o);e.addValue(o,hn(a!==void 0?a:n,{owner:e}))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}var Pc={current:null},z0={current:!1};var XW=typeof window<"u";function XC(){if(z0.current=!0,!!XW)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pc.current=e.matches;e.addEventListener("change",t),t()}else Pc.current=!1}var YC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],E0={};function zc(e){E0=e}function Tw(){return E0}var Cc=class{scrapeMotionValuesFromProps(t,r,o){return{}}constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:a,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=hi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let m=pt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Ie.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=vi(r),this.isVariantNode=Tc(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...p}=this.scrapeMotionValuesFromProps(r,{},this);for(let m in p){let g=p[m];u[m]!==void 0&&Ge(g)&&g.set(u[m])}}mount(t){if(this.hasBeenMounted)for(let r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,JC.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
98h((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(z0.current||XC(),this.shouldReduceMotion=Pc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),br(this.notifyUpdate),br(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&u0.has(t)&&this.current instanceof HTMLElement){let{factory:a,keyframes:s,times:l,ease:u,duration:c}=r.accelerate,d=new Hs({element:this.current,name:t,keyframes:s,times:l,ease:u,duration:xt(c)}),p=a(d);this.valueSubscriptions.set(t,()=>{p(),d.cancel()});return}let o=Jr.has(t);o&&this.onBindTransform&&this.onBindTransform();let n=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ie.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in E0){let r=E0[t];if(!r)continue;let{isEnabled:o,Feature:n}=r;if(!this.features[t]&&n&&o(this.props)&&(this.features[t]=new n(this)),this.features[t]){let i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<YC.length;o++){let n=YC[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i="on"+n,a=t[i];a&&(this.propEventSubscriptions[n]=this.on(n,a))}this.prevMotionValues=KC(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){let o=this.values.get(t);r!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&r!==void 0&&(o=hn(r===null?void 0:r,{owner:this}),this.addValue(t,o)),o}readValue(t,r){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);
98return o!=null&&(typeof o=="string"&&(nc(o)||ic(o))?o=parseFloat(o):!HC(o)&&Pt.test(r)&&(o=b0(t,r)),this.setBaseTarget(t,Ge(o)?o.get():o)),Ge(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let i=aa(this.props,r,this.presenceContext?.custom);i&&(o=i[t])}if(r&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!Ge(n)?n:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new lo),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){la.render(this.render)}};var rl=class extends Cc{constructor(){super(...arguments),this.KeyframeResolver=x0}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){let o=t.style;return o?o[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Ge(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};var Ct=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function Ec({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function Pw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Cw(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function zw(e){return e===void 0||e===1}function A0({scale:e,scaleX:t,scaleY:r}){return!zw(e)||!zw(t)||!zw(r)}function fo(e){return A0(e)||Ew(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ew(e){return QC(e.x)||QC(e.y)}function QC(e){return e&&e!=="0%"}function Ac(e,t,r){let o=e-r,n=t*o;return r+n}function ez(e,t,r,o,n){return n!==void 0&&(e=Ac(e,n,o)),Ac(e,r,o)+t}function Aw(e,t=0,r=1,o,n){e.min=ez(e.min,t,r,o,n),e.max=ez(e.max,t,r,o,n)}function Mw(e,{x:t,y:r}){Aw(e.x,t.translate,t.scale,t.originPoint),Aw(e.y,r.translate,r.scale,r.originPoint)}var tz=.999999999999,rz=1.0000000000001;function iz(e,t,r,o=!1){let n=r.length;if(!n)return;t.x=t.y=1;let i,a;for(let s=0;s<n;s++){i=r[s],a=i.projectionDelta;let{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Xr(e.x,-i.scroll.offset.x),Xr(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Mw(e,a)),o&&fo(i.latestValues)&&Mc(e,i.latestValues,i.layout?.layoutBox))}t.x<rz&&t.x>tz&&(t.x=1),t.y<rz&&t.y>tz&&(t.y=1)}function Xr(e,t){e.min+=t,e.max+=t}function nz(e,t,r,o,n=.5){let i=De(e.min,e.max,n);Aw(e,t,r,i,o)}function oz(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Mc(e,t,r){let o=r??e;nz(e.x,oz(t.x,o.x),t.scaleX,t.scale,t.originX),nz(e.y,oz(t.y,o.y),t.scaleY,t.scale,t.originY)}function M0(e,t){return Ec(Cw(e.getBoundingClientRect(),t))}function Dw(e,t,r){let o=M0(e,r),{scroll:n}=t;return n&&(Xr(o.x,n.offset.x),Xr(o.y,n.offset.y)),o}var YW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},QW=Mn.length;function az(e,t,r){let o="",n=!0;for(let i=0;i<QW;i++){let a=Mn[i],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(a.startsWith("scale")?1:0);else{let u=parseFloat(s);l=a.startsWith("scale")?u===1:u===0}if(!l||r){let u=_0(s,Ys[a]);if(!l){n=!1;let c=YW[a]||a;o+=`${c}(${u}) `}r&&(t[a]=u)}}return o=o.trim(),r?o=r(t,n?"":o):n&&(o="none"),o}function ca(e,t,r){let{style:o,vars:n,transformOrigin:i}=e,a=!1,s=!1;for(let l in t){let u=t[l];if(Jr.has(l)){a=!0;continue}else if(Wf(l)){n[l]=u;continue}else{let c=_0(u,Ys[l]);l.startsWith("origin")?(s=!0,i[l]=c):o[l]=c}}if(t.transform||(a||r?o.transform=az(t,e.transform,r):o.transform&&(o.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:c=0}=i;o.transformOrigin=`${l} ${u} ${c}`}}function D0(e,{style:t,vars:r},o,n){let i=e.style,a;for(a in t)i[a]=t[a];n?.applyProjectionStyles(i,o);for(a in r)i.setProperty(a,r[a])}function sz(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var nl={correct:(e,t)=>
98{if(!t.target)return e;if(typeof e=="string")if(te.test(e))e=parseFloat(e);else return e;let r=sz(e,t.target.x),o=sz(e,t.target.y);return`${r}% ${o}%`}};var lz={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,n=Pt.parse(e);if(n.length>5)return o;let i=Pt.createTransformer(e),a=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+a]/=s,n[1+a]/=l;let u=De(s,l,.5);return typeof n[2+a]=="number"&&(n[2+a]/=u),typeof n[3+a]=="number"&&(n[3+a]/=u),i(n)}};var Dc={borderRadius:{...nl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nl,borderTopRightRadius:nl,borderBottomLeftRadius:nl,borderBottomRightRadius:nl,boxShadow:lz};function Nc(e,{layout:t,layoutId:r}){return Jr.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Dc[e]||e==="opacity")}function da(e,t,r){let o=e.style,n=t?.style,i={};if(!o)return i;for(let a in o)(Ge(o[a])||n&&Ge(n[a])||Nc(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(i[a]=o[a]);return i}function eH(e){return window.getComputedStyle(e)}var Rc=class extends rl{constructor(){super(...arguments),this.type="html",this.renderInstance=D0}readValueFromInstance(t,r){if(Jr.has(r))return this.projection?.isProjecting?r0(r):pC(t,r);{let o=eH(t),n=(Wf(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return M0(t,r)}build(t,r,o){ca(t,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,r,o){return da(t,r,o)}};var tH={offset:"stroke-dashoffset",array:"stroke-dasharray"},rH={offset:"strokeDashoffset",array:"strokeDasharray"};function uz(e,t,r=1,o=0,n=!0){e.pathLength=1;let i=n?tH:rH;e[i.offset]=`${-o}`,e[i.array]=`${t} ${r}`}var nH=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Oc(e,{attrX:t,attrY:r,attrScale:o,pathLength:n,pathSpacing:i=1,pathOffset:a=0,...s},l,u,c){if(ca(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox);for(let m of nH)d[m]!==void 0&&(p[m]=d[m],delete d[m]);t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),o!==void 0&&(d.scale=o),n!==void 0&&uz(d,n,i,a,!1)}var N0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var jc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function cz(e,t,r,o){D0(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(N0.has(n)?n:Xs(n),t.attrs[n])}function Uc(e,t,r){let o=da(e,t,r);for(let n in e)if(Ge(e[n])||Ge(t[n])){let i=Mn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;o[i]=e[n]}return o}var Lc=class extends rl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Jr.has(r)){let o=y0(r);return o&&o.default||0}return r=N0.has(r)?r:Xs(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,o){return Uc(t,r,o)}build(t,r,o){Oc(t,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,r,o,n){cz(t,r,o,n)}mount(t){this.isSVGTag=jc(t.tagName),super.mount(t)}};var oH=Ic.length;function Nw(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?Nw(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<oH;r++){let o=Ic[r],n=e.props[o];(Dn(n)||n===!1)&&(t[o]=n)}return t}function Rw(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(t[o]!==e[o])return!1;return!0}var iH=[...C0].reverse(),aH=C0.length;function sH(e){return t=>Promise.all(t.map(({animation:r,options:o})=>NC(e,r,o)))}function Ow(e){let t=sH(e),r=dz(),o=!0,n=!1,i=u=>(c,d)=>{let p=Nr(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(p){let{transition:m,transitionEnd:g,...x}=p;c={...c,...x,...g}}return c};function a(u){t=u(e)}function s(u){let{props:c}=e,d=Nw(e.parent)||{},p=[],m=new Set,g={},x=1/0;for(let S=0;S<aH;S++){let _=iH[S],b=r[_],T=c[_]!==void 0?c[_]:d[_],$=Dn(T),C=_===u?b.isActive:null;C===!1&&(x=S);let M=T===d[_]&&T!==c[_]&&$;if(M&&(o||n)&&e.manuallyAnimateOnMount&&(M=!1),b.protectedKeys={...g},!b.isActive&&C===null||!T&&!b.prevProp||mo(T)||typeof T=="boolean")continue;if(_==="exit"&&b.isActive&&C!==!0){b.prevResolvedValues&&(g={...g,...b.prevResolvedValues});continue}let R=pz(b.prevProp,T),N=R||_===u&&b.isActive&&!M&&$||S>x&&$,j=!1,oe=Array.isArray(T)?T:[T],ae=oe.reduce(i(_),{});C===!1&&(ae={});let{prevResolvedValues:nt={}}=b,ye={...nt,...ae},Oe=et=>{N=!0,m.has(et)&&(j=!0,m.delete(et)),b.needsAnimating[et]=!0;let Mt=e.getValue(et);Mt&&(Mt.liveStyle=!1)};for(let et in ye){let Mt=ae[et],Dt=nt[et];if(g.hasOwnProperty(et))continue;let jt=!1;_c(Mt)&&_c(Dt)?jt=!Rw(Mt,Dt):jt=Mt!==Dt,jt?Mt!=null?Oe(et):m.add(et):Mt!==void 0&&m.has(et)?Oe(et):b.protectedKeys[et]=!0}b.prevProp=T,b.prevResolvedValues=ae,b.isActive&&(g={...g,...ae}),(o||n)&&e.blockInitialAnimation&&(N=!1);let ot=M&&R;N&&(!ot||j)&&p.push(...oe.map(et=>{let Mt={type:_};if(typeof et=="string"&&(o||n)&&!ot&&e.manuallyAnimateOnMount&&e.parent){let{parent:Dt}=e,jt=Nr(Dt,et);if(Dt.enteringChildren&&jt){let{delayChildren:he}=jt.transition||{};Mt.delay=d0(Dt.enteringChildren,e,he)}}return{animation:et,options:Mt}}))}if(m.size){let S={};if(typeof c.initial!="boolean"){let _=Nr(e,Array.isArray(c.initial)?c.initial[0]:c.initial);_&&_.transition&&(S.transition=_.transition)}m.forEach(_=>{let b=e.getBaseTarget(_),T=e.getValue(_);T&&(T.liveStyle=!0),S[_]=b??null}),p.push({animation:S}
vendor: 4,234 bytes, line 98
98)}let w=!!p.length;return o&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(w=!1),o=!1,n=!1,w?t(p):Promise.resolve()}function l(u,c){if(r[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(p=>p.animationState?.setActive(u,c)),r[u].isActive=c;let d=s(u);for(let p in r)r[p].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:a,getState:()=>r,reset:()=>{r=dz(),n=!0}}}function pz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rw(t,e):!1}function pa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dz(){return{animate:pa(!0),whileInView:pa(),whileHover:pa(),whileTap:pa(),whileDrag:pa(),whileFocus:pa(),exit:pa()}}function R0(e,t){e.min=t.min,e.max=t.max}function Yr(e,t){R0(e.x,t.x),R0(e.y,t.y)}function jw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var mz=1e-4,lH=1-mz,uH=1+mz,fz=.01,cH=0-fz,dH=0+fz;function kt(e){return e.max-e.min}function Bw(e,t,r){return Math.abs(e-t)<=r}function Uw(e,t,r,o=.5){e.origin=o,e.originPoint=De(t.min,t.max,e.origin),e.scale=kt(r)/kt(t),e.translate=De(r.min,r.max,e.origin)-e.originPoint,(e.scale>=lH&&e.scale<=uH||isNaN(e.scale))&&(e.scale=1),(e.translate>=cH&&e.translate<=dH||isNaN(e.translate))&&(e.translate=0)}function ma(e,t,r,o){Uw(e.x,t.x,r.x,o?o.originX:void 0),Uw(e.y,t.y,r.y,o?o.originY:void 0)}function Lw(e,t,r,o=0){let n=o?De(r.min,r.max,o):r.min;e.min=n+t.min,e.max=e.min+kt(t)}function Zw(e,t,r,o){Lw(e.x,t.x,r.x,o?.x),Lw(e.y,t.y,r.y,o?.y)}function Fw(e,t,r,o=0){let n=o?De(r.min,r.max,o):r.min;e.min=t.min-n,e.max=e.min+kt(t)}function ol(e,t,r,o){Fw(e.x,t.x,r.x,o?.x),Fw(e.y,t.y,r.y,o?.y)}function hz(e,t,r,o,n){return e-=t,e=Ac(e,1/r,o),n!==void 0&&(e=Ac(e,1/n,o)),e}function pH(e,t=0,r=1,o=.5,n,i=e,a=e){if(qt.test(t)&&(t=parseFloat(t),t=De(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=De(i.min,i.max,o);e===i&&(s-=t),e.min=hz(e.min,t,r,s,n),e.max=hz(e.max,t,r,s,n)}function gz(e,t,[r,o,n],i,a){pH(e,t[r],t[o],t[n],t.scale,i,a)}var mH=["x","scaleX","originX"],fH=["y","scaleY","originY"];function Vw(e,t,r,o){gz(e.x,t,mH,r?r.x:void 0,o?o.x:void 0),gz(e.y,t,fH,r?r.y:void 0,o?o.y:void 0)}function vz(e){return e.translate===0&&e.scale===1}function Gw(e){return vz(e.x)&&vz(e.y)}function yz(e,t){return e.min===t.min&&e.max===t.max}function xz(e,t){return yz(e.x,t.x)&&yz(e.y,t.y)}function bz(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qw(e,t){return bz(e.x,t.x)&&bz(e.y,t.y)}function Ww(e){return kt(e.x)/kt(e.y)}function Hw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Rr(e){return[e("x"),e("y")]}function wz(e,t,r){let o="",n=e.x.translate/t.x,i=e.y.translate/t.y,a=r?.z||0;if((n||i||a)&&(o=`translate3d(${n}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:m,skewY:g}=r;u&&(o=`perspective(${u}px) ${o}`),c&&(o+=`rotate(${c}deg) `),d&&(o+=`rotateX(${d}deg) `),p&&(o+=`rotateY(${p}deg) `),m&&(o+=`skewX(${m}deg) `),g&&(o+=`skewY(${g}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(o+=`scale(${s}, ${l})`),o||"none"}var $z=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],hH=$z.length,_z=e=>typeof e=="string"?parseFloat(e):e,kz=e=>typeof e=="number"||te.test(e);function Iz(e,t,r,o,n,i){n?(e.opacity=De(0,r.opacity??1,gH(o)),e.opacityExit=De(t.opacity??1,0,vH(o))):i&&(e.opacity=De(t.opacity??1,r.opacity??1,o));for(let a=0;a<hH;a++){let s=$z[a],l=Sz(t,s),u=Sz(r,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||kz(l)===kz(u)?(e[s]=Math.max(De(_z(l),_z(u),o),0),(qt.test(u)||qt.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||r.rotate)&&(e.rotate=De(t.rotate||0,r.rotate||0,o))}function Sz(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var gH=Tz(0,.5,dc),vH=Tz(.5,.95,dt);function Tz(e,t,r){return o=>o<e?0:o>t?1:r(Cn(e,t,o))}function Pz(e,t,r){let o=Ge(e)?e:hn(e);return o.start(ia("",o,t,r)),o.animation}function Nn(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}var Cz=(e,t)=>
98e.depth-t.depth;var O0=class{constructor(){this.children=[],this.isDirty=!1}add(t){ea(this.children,t),this.isDirty=!0}remove(t){li(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Cz),this.isDirty=!1,this.children.forEach(t)}};function zz(e,t){let r=pt.now(),o=({timestamp:n})=>{let i=n-r;i>=t&&(br(o),e(i-t))};return Ie.setup(o,!0),()=>br(o)}function fa(e){return Ge(e)?e.get():e}var j0=class{constructor(){this.members=[]}add(t){ea(this.members,t);for(let r=this.members.length-1;r>=0;r--){let o=this.members[r];if(o===t||o===this.lead||o===this.prevLead)continue;let n=o.instance;(!n||n.isConnected===!1)&&!o.snapshot&&(li(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(li(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){for(let r=this.members.indexOf(t)-1;r>=0;r--){let o=this.members[r];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,r){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=o.options,{layoutDependency:i}=t.options;(n===void 0||n!==i)&&(t.resumeFrom=o,r&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var ha={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ga={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Jw=["","X","Y","Z"],yH=1e3,bH=0;function Kw(e,t,r,o){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Uz(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=f0(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:n,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Ie,!(n||i))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Uz(o)}function U0({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(a={},s=t?.()){this.id=bH++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Dr.value&&(ga.nodes=ga.calculatedTargetDeltas=ga.calculatedProjections=0),this.nodes.forEach(_H),this.nodes.forEach(PH),this.nodes.forEach(CH),this.nodes.forEach(kH),Dr.addProjectionMetrics&&Dr.addProjectionMetrics(ga)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new O0)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new lo),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){let l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=el(a)&&!WC(a),this.instance=a;let{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let c,d=0,p=()=>this.root.updateBlockedByResize=!1;Ie.read(()=>{d=window.innerWidth}
98),e(a,()=>{let m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=zz(p,250),ha.hasAnimatedSinceResize&&(ha.hasAnimatedSinceResize=!1,this.nodes.forEach(Mz)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||u.getDefaultTransition()||DH,{onLayoutAnimationStart:x,onLayoutAnimationComplete:w}=u.getProps(),S=!this.targetLayout||!qw(this.targetLayout,m),_=!d&&p;if(this.options.layoutRoot||this.resumeFrom||_||d&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let b={...Js(g,"layout"),onPlay:x,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(c,_)}else d||Mz(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),br(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(zH),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Uz(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach($H),this.nodes.forEach(Ez);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Az);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(IH),this.nodes.forEach(TH),this.nodes.forEach(xH),this.nodes.forEach(wH)):this.nodes.forEach(Az),this.clearAllSnapshots();let s=pt.now();yt.delta=Tt(0,1e3/60,s-yt.timestamp),yt.timestamp=s,yt.isProcessing=!0,gc.update.process(yt),gc.preRender.process(yt),gc.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,la.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(SH),this.sharedNodes.forEach(EH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!kt(this.snapshot.measuredBox.x)&&!kt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=lt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){let l=o(this.instance);
98this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!n)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Gw(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;a&&this.instance&&(s||fo(this.latestValues)||c)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),NH(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return lt();let s=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(RH))){let{scroll:u}=this.root;u&&(Xr(s.x,u.offset.x),Xr(s.y,u.offset.y))}return s}removeElementScroll(a){let s=lt();if(Yr(s,a),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&Yr(s,a),Xr(s.x,c.offset.x),Xr(s.y,c.offset.y))}return s}applyTransform(a,s=!1,l){let u=l||lt();Yr(u,a);for(let c=0;c<this.path.length;c++){let d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Xr(u.x,-d.scroll.offset.x),Xr(u.y,-d.scroll.offset.y)),fo(d.latestValues)&&Mc(u,d.latestValues,d.layout?.layoutBox)}return fo(this.latestValues)&&Mc(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(a){let s=lt();Yr(s,a);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!fo(u.latestValues))continue;let c;u.instance&&(A0(u.latestValues)&&u.updateSnapshot(),c=lt(),Yr(c,u.measurePageBox())),Vw(s,u.latestValues,u.snapshot?.layoutBox,c)}return fo(this.latestValues)&&Vw(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==s;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=yt.timestamp;let p=this.getClosestProjectingParent();p&&this.linkedParentVersion!==p.layoutVersion&&!p.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zw(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Yr(this.target,this.layout.layoutBox),Mw(this.target,this.targetDelta)):Yr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0),Dr.value&&ga.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||A0(this.parent.latestValues)||Ew(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,l){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),ol(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),Yr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),s=!!this.resumingFrom||this!==a,l=!0;
98if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Yr(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,p=this.treeScale.y;iz(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=lt());let{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jw(this.prevProjectionDelta.x,this.projectionDelta.x),jw(this.prevProjectionDelta.y,this.projectionDelta.y)),ma(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!Hw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Dr.value&&ga.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gi(),this.projectionDelta=gi(),this.projectionDeltaWithTransform=gi()}setAnimationOrigin(a,s=!1){let l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=gi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let p=lt(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,x=m!==g,w=this.getStack(),S=!w||w.members.length<=1,_=!!(x&&!S&&this.options.crossfade===!0&&!this.path.some(MH));this.animationProgress=0;let b;this.mixTargetDelta=T=>{let $=T/1e3;Dz(d.x,a.x,$),Dz(d.y,a.y,$),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ol(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),AH(this.relativeTarget,this.relativeTargetOrigin,p,$),b&&xz(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=lt()),Yr(b,this.relativeTarget)),x&&(this.animationValues=c,Iz(c,u,this.latestValues,$,_,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ie.update(()=>{ha.hasAnimatedSinceResize=!0,zn.layout++,this.motionValue||(this.motionValue=hn(0)),this.motionValue.jump(0,!1),this.currentAnimation=Pz(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onStop:()=>{zn.layout--},onComplete:()=>{zn.layout--,a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&Lz(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||lt();let d=kt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;let p=kt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}Yr(s,l),Mc(s,c),ma(this.projectionDeltaWithTransform,this.layoutCorrected,s,c
98)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new j0),this.sharedNodes.get(a).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){let{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let s=!1,{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let u={};l.z&&Kw("z",a,u,this.animationValues);for(let c=0;c<Jw.length;c++)Kw(`rotate${Jw[c]}`,a,u,this.animationValues),Kw(`skew${Jw[c]}`,a,u,this.animationValues);a.render();for(let c in u)a.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=fa(s?.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=fa(s?.pointerEvents)||""),this.hasProjected&&!fo(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";let c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=wz(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),a.transform=d;let{x:p,y:m}=this.projectionDelta;a.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,u.animationValues?a.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:a.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let g in Dc){if(c[g]===void 0)continue;let{correct:x,applyTo:w,isCSSVariable:S}=Dc[g],_=d==="none"?c[g]:x(c[g],u);if(w){let b=w.length;for(let T=0;T<b;T++)a[w[T]]=_}else S?this.options.visualElement.renderState.vars[g]=_:a[g]=_}this.options.layoutId&&(a.pointerEvents=u===this?fa(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Ez),this.root.sharedNodes.clear()}}}function xH(e){e.updateLayout()}function wH(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:n}=e.options,i=t.source!==e.layout.source;if(n==="size")Rr(c=>{let d=i?t.measuredBox[c]:t.layoutBox[c],p=kt(d);d.min=r[c].min,d.max=d.min+p});else if(n==="x"||n==="y"){let c=n==="x"?"y":"x";R0(i?t.measuredBox[c]:t.layoutBox[c],r[c])}else Lz(n,t.layoutBox,r)&&Rr(c=>{let d=i?t.measuredBox[c]:t.layoutBox[c],p=kt(r[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});let a=gi();ma(a,r,t.layoutBox);let s=gi();i?ma(s,e.applyTransform(o,!0),t.measuredBox):ma(s,r,t.layoutBox);let l=!Gw(a),u=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:d,layout:p}=c;if(d&&p){let m=e.options.layoutAnchor||void 0,g=lt();ol(g,t.layoutBox,d.layoutBox,m);let x=lt();ol(x,r,p.layoutBox,m),qw(g,x)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=g,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function _H(e){Dr.value&&ga.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function kH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function SH(e){e.clearSnapshot()}function Ez(e){e.clearMeasurements()}function $H(e){e.isLayoutDirty=!0,e.updateLayout()}function Az(e){e.isLayoutDirty=!1}function IH(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function TH(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mz(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function PH(e){e.resolveTargetDelta()}function CH(e){e.calcProjection()}
98function zH(e){e.resetSkewAndRotation()}function EH(e){e.removeLeadSnapshot()}function Dz(e,t,r){e.translate=De(t.translate,0,r),e.scale=De(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Nz(e,t,r,o){e.min=De(t.min,r.min,o),e.max=De(t.max,r.max,o)}function AH(e,t,r,o){Nz(e.x,t.x,r.x,o),Nz(e.y,t.y,r.y,o)}function MH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var DH={duration:.45,ease:[.4,0,.1,1]},Rz=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Oz=Rz("applewebkit/")&&!Rz("chrome/")?Math.round:dt;function jz(e){e.min=Oz(e.min),e.max=Oz(e.max)}function NH(e){jz(e.x),jz(e.y)}function Lz(e,t,r){return e==="position"||e==="preserve-aspect"&&!Bw(Ww(t),Ww(r),.2)}function RH(e){return e!==e.root&&e.scroll?.wasRoot}var Fz=U0({attachResizeListener:(e,t)=>Nn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var L0={current:void 0},Fc=U0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!L0.current){let e=new Fz({});e.mount(window),e.setOptions({layoutScroll:!0}),L0.current=e}return L0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var F0=H(pe(),1),ho=H(pe(),1);var Bz=H(pe(),1),il=(0,Bz.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var Vz=H(pe(),1);function Zz(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function OH(...e){return t=>{let r=!1,o=e.map(n=>{let i=Zz(n,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<o.length;n++){let i=o[n];typeof i=="function"?i():Zz(e[n],null)}}}}function Gz(...e){return Vz.useCallback(OH(...e),e)}var Xw=class extends F0.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(sa(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let o=r.offsetParent,n=sa(o)&&o.offsetWidth||0,i=sa(o)&&o.offsetHeight||0,a=getComputedStyle(r),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=r.offsetTop,s.left=r.offsetLeft,s.right=n-s.width-s.left,s.bottom=i-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}};function Wz({children:e,isPresent:t,anchorX:r,anchorY:o,root:n,pop:i}){let a=(0,ho.useId)(),s=(0,ho.useRef)(null),l=(0,ho.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,ho.useContext)(il),c=e.props?.ref??e?.ref,d=Gz(s,c);return(0,ho.useInsertionEffect)(()=>{let{width:p,height:m,top:g,left:x,right:w,bottom:S}=l.current;if(t||i===!1||!s.current||!p||!m)return;let _=r==="left"?`left: ${x}`:`right: ${w}`,b=o==="bottom"?`bottom: ${S}`:`top: ${g}`;s.current.dataset.motionPopId=a;let T=document.createElement("style");u&&(T.nonce=u);let $=n??document.head;return $.appendChild(T),T.sheet&&T.sheet.insertRule(` 99 [data-motion-pop-id="${a}"] { 100 position: absolute !important; 101 width: ${p}px !important; 102 height: ${m}px !important; 103 ${_}px !important; 104 ${b}px !important; 105 } 106 `),()=>{s.current?.removeAttribute("data-motion-pop-id"),$.contains(T)&&$.removeChild(T)}},[t]),(0,qz.jsx)(Xw,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:i===!1?e:F0.cloneElement(e,{ref:d})})}var Jz=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:n,presenceAffectsLayout:i,mode:a,anchorX:s,anchorY:l,root:u})=>{let c=Ls(jH),d=(0,Bc.useId)(),p=!0,m=(0,Bc.useMemo)(()=>(p=!1,{id:d,initial:t,isPresent:r,custom:n,onExitComplete:g=>{c.set(g,!0);for(let x of c.values())if(!x)return;o&&o()},register:g=>(c.set(g,!1),()=>c.delete(g))}),[r,c,o]);return i&&p&&(m={...m}),(0,Bc.useMemo)(()=>{c.forEach((g,x)=>c.set(x,!1))},[r]),Hz.useEffect(()=>{!r&&!c.size&&o&&o()},[r]),e=(0,Yw.jsx)(Wz,{pop:a==="popLayout",isPresent:r,anchorX:s,anchorY:l,root:u,children:e}),(0,Yw.jsx)(si.Provider,{value:m,children:e})};function jH(){return new Map}var yi=H(pe(),1);function B0(e=!0){let t=(0,yi.useContext)(si);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:o,register:n}=t,i=(0,yi.useId)();(0,yi.useEffect)(()=>
106{if(e)return n(i)},[e]);let a=(0,yi.useCallback)(()=>e&&o&&o(i),[i,o,e]);return!r&&o?[!1,a]:[!0]}var Z0=H(pe(),1),Zc=e=>e.key||"";function Qw(e){let t=[];return Z0.Children.forEach(e,r=>{(0,Z0.isValidElement)(r)&&t.push(r)}),t}var e_=({children:e,custom:t,initial:r=!0,onExitComplete:o,presenceAffectsLayout:n=!0,mode:i="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=B0(a),p=(0,gn.useMemo)(()=>Qw(e),[e]),m=a&&!c?[]:p.map(Zc),g=(0,gn.useRef)(!0),x=(0,gn.useRef)(p),w=Ls(()=>new Map),S=(0,gn.useRef)(new Set),[_,b]=(0,gn.useState)(p),[T,$]=(0,gn.useState)(p);Lf(()=>{g.current=!1,x.current=p;for(let R=0;R<T.length;R++){let N=Zc(T[R]);m.includes(N)?(w.delete(N),S.current.delete(N)):w.get(N)!==!0&&w.set(N,!1)}},[T,m.length,m.join("-")]);let C=[];if(p!==_){let R=[...p];for(let N=0;N<T.length;N++){let j=T[N],oe=Zc(j);m.includes(oe)||(R.splice(N,0,j),C.push(j))}return i==="wait"&&C.length&&(R=C),$(Qw(R)),b(p),null}let{forceRender:M}=(0,gn.useContext)(Us);return(0,Vc.jsx)(Vc.Fragment,{children:T.map(R=>{let N=Zc(R),j=a&&!c?!1:p===T||m.includes(N),oe=()=>{if(S.current.has(N))return;if(w.has(N))S.current.add(N),w.set(N,!0);else return;let ae=!0;w.forEach(nt=>{nt||(ae=!1)}),ae&&(M?.(),$(x.current),a&&d?.(),o&&o())};return(0,Vc.jsx)(Jz,{isPresent:j,initial:!g.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:i,root:u,onExitComplete:j?void 0:oe,anchorX:s,anchorY:l,children:R},N)})})};var Kz=H(pe(),1),V0=(0,Kz.createContext)({strict:!1});var Xz={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Yz=!1;function UH(){if(Yz)return;let e={};for(let t in Xz)e[t]={isEnabled:r=>Xz[t].some(o=>!!r[o])};zc(e),Yz=!0}function G0(){return UH(),Tw()}function Qz(e){let t=G0();for(let r in e)t[r]={...t[r],...e[r]};zc(t)}var LH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Gc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LH.has(e)}var eE=e=>!Gc(e);function FH(e){typeof e=="function"&&(eE=t=>t.startsWith("on")?!Gc(t):e(t))}try{FH(SS("@emotion/is-prop-valid").default)}catch{}function tE(e,t,r){let o={};for(let n in e)n==="values"&&typeof e.values=="object"||Ge(e[n])||(eE(n)||r===!0&&Gc(n)||!t&&!Gc(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}var K0=H(Te(),1);var ul=H(pe(),1);var rE=H(pe(),1),bi=(0,rE.createContext)({});var q0=H(pe(),1);function nE(e,t){if(vi(e)){let{initial:r,animate:o}=e;return{initial:r===!1||Dn(r)?r:void 0,animate:Dn(o)?o:void 0}}return e.inherit!==!1?t:{}}function iE(e){let{initial:t,animate:r}=nE(e,(0,q0.useContext)(bi));return(0,q0.useMemo)(()=>({initial:t,animate:r}),[oE(t),oE(r)])}function oE(e){return Array.isArray(e)?e.join(" "):e}var ll=H(pe(),1);var aE=H(pe(),1);var al=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t_(e,t,r){for(let o in t)!Ge(t[o])&&!Nc(o,r)&&(e[o]=t[o])}function BH({transformTemplate:e},t){return(0,aE.useMemo)(()=>{let r=al();return ca(r,t,e),Object.assign({},r.vars,r.style)},[t])}function ZH(e,t){let r=e.style||{},o={};return t_(o,r,e),Object.assign(o,BH(e,t)),o}function sE(e,t){let r={},o=ZH(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
106`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}var lE=H(pe(),1);var W0=()=>({...al(),attrs:{}});function uE(e,t,r,o){let n=(0,lE.useMemo)(()=>{let i=W0();return Oc(i,t,jc(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};t_(i,e.style,e),n.style={...i,...n.style}}return n}var cE=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sl(e){return typeof e!="string"||e.includes("-")?!1:!!(cE.indexOf(e)>-1||/[A-Z]/u.test(e))}function dE(e,t,r,{latestValues:o},n,i=!1,a){let l=(a??sl(e)?uE:sE)(t,o,n,e),u=tE(t,typeof e=="string",i),c=e!==ll.Fragment?{...u,...l,ref:r}:{},{children:d}=t,p=(0,ll.useMemo)(()=>Ge(d)?d.get():d,[d]);return(0,ll.createElement)(e,{...c,children:p})}var r_=H(pe(),1);function VH({scrapeMotionValuesFromProps:e,createRenderState:t},r,o,n){return{latestValues:GH(r,o,n,e),renderState:t()}}function GH(e,t,r,o){let n={},i=o(e,{});for(let p in i)n[p]=fa(i[p]);let{initial:a,animate:s}=e,l=vi(e),u=Tc(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;let d=c?s:a;if(d&&typeof d!="boolean"&&!mo(d)){let p=Array.isArray(d)?d:[d];for(let m=0;m<p.length;m++){let g=aa(e,p[m]);if(g){let{transitionEnd:x,transition:w,...S}=g;for(let _ in S){let b=S[_];if(Array.isArray(b)){let T=c?b.length-1:0;b=b[T]}b!==null&&(n[_]=b)}for(let _ in x)n[_]=x[_]}}}return n}var H0=e=>(t,r)=>{let o=(0,r_.useContext)(bi),n=(0,r_.useContext)(si),i=()=>VH(e,t,o,n);return r?i():Ls(i)};var pE=H0({scrapeMotionValuesFromProps:da,createRenderState:al});var mE=H0({scrapeMotionValuesFromProps:Uc,createRenderState:W0});var fE=Symbol.for("motionComponentSymbol");var va=H(pe(),1);function hE(e,t,r){let o=(0,va.useRef)(r);(0,va.useInsertionEffect)(()=>{o.current=r});let n=(0,va.useRef)(null);return(0,va.useCallback)(i=>{i&&e.onMount?.(i);let a=o.current;if(typeof a=="function")if(i){let s=a(i);typeof s=="function"&&(n.current=s)}else n.current?(n.current(),n.current=null):a(i);else a&&(a.current=i);t&&(i?t.mount(i):t.unmount())},[t])}var nr=H(pe(),1);var gE=H(pe(),1),J0=(0,gE.createContext)({});function xi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function vE(e,t,r,o,n,i){let{visualElement:a}=(0,nr.useContext)(bi),s=(0,nr.useContext)(V0),l=(0,nr.useContext)(si),u=(0,nr.useContext)(il),c=u.reducedMotion,d=u.skipAnimations,p=(0,nr.useRef)(null),m=(0,nr.useRef)(!1);o=o||s.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:a,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:i}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let g=p.current,x=(0,nr.useContext)(J0);g&&!g.projection&&n&&(g.type==="html"||g.type==="svg")&&qH(p.current,r,n,x);let w=(0,nr.useRef)(!1);(0,nr.useInsertionEffect)(()=>{g&&w.current&&g.update(r,l)});let S=r[kc],_=(0,nr.useRef)(!!S&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(S)&&window.MotionHasOptimisedAnimation?.(S));return Lf(()=>{m.current=!0,g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),_.current&&g.animationState&&g.animationState.animateChanges())}),(0,nr.useEffect)(()=>{g&&(!_.current&&g.animationState&&g.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(S)}),_.current=!1),g.enteringChildren=void 0)}),g}function qH(e,t,r,o){let{layoutId:n,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:yE(e.parent)),e.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!a||s&&xi(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function yE(e){if(e)return e.options.allowProjection!==!1?e.projection:yE(e.parent)}function X0(e,{forwardMotionProps:t=!1,type:r}={},o,n){o&&Qz(o);let i=r?r==="svg":sl(e),a=i?mE:pE;function s(u,c){let d,p={...(0,ul.useContext)(il),...u,layoutId:WH(u)},{isStatic:m}=p,g=iE(u),x=a(u,m);if(!m&&typeof window<"u"){HH(p,o);let w=JH(p);d=w.MeasureLayout,g.visualElement=vE(e,x,p,n,w.ProjectionNode,i)}return(0,K0.jsxs)(bi.Provider,{value:g,children:[d&&g.visualElement?(0,K0.jsx)(d,{visualElement:g.visualElement,...p}):null,dE(e,u,hE(x,g.visualElement,c),x,m,t,i)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,ul.forwardRef)(s);return l[fE]=e,l}function WH({layoutId:e}){let t=(0,ul.useContext)(Us).id;return t&&e!==void 0?t+"-"+e:e}function HH(e,t){let r=(0,ul.useContext)(V0).strict}function JH(e){let t=G0(),{drag:r,layout:o}=t;if(!r&&!o)return{};let n={...r,...o};return{MeasureLayout:r?.isEnabled(e)||o?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
106function bE(e,t){if(typeof Proxy>"u")return X0;let r=new Map,o=(i,a)=>X0(i,a,e,t),n=(i,a)=>o(i,a);return new Proxy(n,{get:(i,a)=>a==="create"?o:(r.has(a)||r.set(a,X0(a,void 0,e,t)),r.get(a))})}var xE=H(pe(),1);var wE=(e,t)=>t.isSVG??sl(e)?new Lc(t):new Rc(t,{allowProjection:e!==xE.Fragment});var Y0=class extends Ct{constructor(t){super(t),t.animationState||(t.animationState=Ow(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();mo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var KH=0,Q0=class extends Ct{constructor(){super(...arguments),this.id=KH++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){let{initial:i,custom:a}=this.node.getProps();if(typeof i=="string"){let s=Nr(this.node,i,a);if(s){let{transition:l,transitionEnd:u,...c}=s;for(let d in c)this.node.getValue(d)?.jump(c[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);r&&!t&&n.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){let{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var _E={animation:{Feature:Y0},exit:{Feature:Q0}};function go(e){return{point:{x:e.pageX,y:e.pageY}}}var kE=e=>t=>ua(t)&&e(t,go(t));function wi(e,t,r,o){return Nn(e,t,kE(r),o)}var eh=({current:e})=>e?e.ownerDocument.defaultView:null;var SE=(e,t)=>Math.abs(e-t);function $E(e,t){let r=SE(e.x,t.x),o=SE(e.y,t.y);return Math.sqrt(r**2+o**2)}var IE=new Set(["auto","scroll"]),cl=class{constructor(t,r,{transformPagePoint:o,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=th(this.lastRawMoveEventInfo,this.transformPagePoint));let m=n_(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,x=$E(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!x)return;let{point:w}=m,{timestamp:S}=yt;this.history.push({...w,timestamp:S});let{onStart:_,onMove:b}=this.handlers;g||(_&&_(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=th(g,this.transformPagePoint),Ie.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();let{onEnd:x,onSessionEnd:w,resumeAnimation:S}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let _=n_(m.type==="pointercancel"?this.lastMoveEventInfo:th(g,this.transformPagePoint),this.history);this.startEvent&&x&&x(m,_),w&&w(m,_)},!ua(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=n||window;let l=go(t),u=th(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=yt;this.history=[{...c,timestamp:d}];let{onSessionStart:p}=r;p&&p(t,n_(u,this.history)),this.removeListeners=mn(wi(this.contextWindow,"pointermove",this.handlePointerMove),wi(this.contextWindow,"pointerup",this.handlePointerUp),wi(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let r=t.parentElement;for(;r;){let o=getComputedStyle(r);(IE.has(o.overflowX)||IE.has(o.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let r=this.scrollPositions.get(t);if(!r)return;let o=t===window,n=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:n.x-r.x,y:n.y-r.y};i.x===0&&i.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,n),Ie.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),br(this.updatePoint)}};function th(e,t){return t?{point:t(e.point)}:e}function TE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function n_({point:e},t){return{point:e,delta:TE(e,PE(t)),offset:TE(e,XH(t)),velocity:YH(t,.1)}}function XH(e){return e[0]}function PE(e){return e[e.length-1]}function YH(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null,n=PE(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>xt(t)));)r--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&n.timestamp-o.timestamp>xt(t)*2&&(o=e[1]);let i=Ot(n.timestamp-o.timestamp);if(i===0)return{x:0,y:0};let a={x:(n.x-o.x)/i,y:(n.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ME(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?De(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?De(r,e,o.max):Math.min(e,r)),e}function CE(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function DE(e,{top:t,left:r,bottom:o,right:n}){return{x:CE(e.x,r,n),y:CE(e.y,t,o)}}function zE(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function NE(e,t){return{x:zE(e.x,t.x),y:zE(e.y,t.y)}}function RE(e,t){let r=.5,o=kt(e),n=kt(t);return n>o?r=Cn(t.min,t.max-o,e.min):o>n&&(r=Cn(e.min,e.max-n,t.min)),Tt(0,1,r)}function OE(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var rh=.35;function jE(e=rh){return e===!1?e=0:e===!0&&(e=rh),{x:EE(e,"left","right"),y:EE(e,"to
106p","bottom")}}function EE(e,t,r){return{min:AE(e,t),max:AE(e,r)}}function AE(e,t){return typeof e=="number"?e:e[t]||0}var QH=new WeakMap,oh=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:o}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let i=d=>{r&&this.snapToCursor(go(d).point),this.stopAnimation()},a=(d,p)=>{let{drag:m,dragPropagation:g,onDragStart:x}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yw(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Rr(S=>{let _=this.getAxisMotionValue(S).get()||0;if(qt.test(_)){let{projection:b}=this.visualElement;if(b&&b.layout){let T=b.layout.layoutBox[S];T&&(_=kt(T)*(parseFloat(_)/100))}}this.originPoint[S]=_}),x&&Ie.update(()=>x(d,p),!1,!0),Ks(this.visualElement,"transform");let{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},s=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p;let{dragPropagation:m,dragDirectionLock:g,onDirectionLock:x,onDrag:w}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:S}=p;if(g&&this.currentDirection===null){this.currentDirection=tJ(S),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",p.point,S),this.updateAxis("y",p.point,S),this.visualElement.render(),w&&Ie.update(()=>w(d,p),!1,!0)},l=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p,this.stop(d,p),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new cl(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:o,contextWindow:eh(this.visualElement),element:this.visualElement.current})}stop(t,r){let o=t||this.latestPointerEvent,n=r||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!o)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:s}=this.getProps();s&&Ie.postRender(()=>s(o,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,o){let{drag:n}=this.getProps();if(!o||!nh(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=ME(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&xi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=DE(o.layoutBox,t):this.constraints=!1,this.elastic=jE(r),n!==this.constraints&&!xi(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&Rr(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=OE(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!xi(t))return!1;let o=t.current;Hr(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let i=Dw(o,n.root,this.visualElement.getTransformPagePoint()),a=NE(n.layout.layoutBox,i);if(r){let s=r(Pw(a));this.hasMutatedConstraints=!!s,s&&(a=Ec(s))}return a}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Rr(c=>{if(!nh(c,r,this.currentDirection))return;let d=l&&l[c]||{};(a===!0||a===c)&&(d={min:0,max:0});let p=n?200:1e6,m=n?40:1e7,g={type:"inertia",velocity:o?t[c]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return Ks(this.visualElement,t),o.start(ia(t,o,0,r,this.visualElement,!1))}stopAnimation(){Rr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),n=o[r];return n||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Rr(r=>{let{drag:o}=this.getProps();if(!nh(r,o,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(r);if(n&&n.layout){let{min:a,max:s}=n.layout.layoutBox[r],l=i.get()||0;i.set(t[r]-De(a,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!xi(r)||!o||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Rr(a=>{let s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){let l=s.get();n[a]=RE({min:l,max:l},this.constraints[a])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),Rr(a=>{if(!nh(a,t,null))return;let s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(De(l,u,n[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;QH.set(this.visualElement,this);let t=this.visualElement.current,r=wi(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps(),p=u.target,m=p!==t&&_w(p);c&&d&&!m&&this.start(u)}),o,n=()=>{let{dragConstraints:u}=this.getProps();xi(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),o||(o=eJ(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ie.read(n);let s=Nn(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Rr(d=>{let p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=u[d].translate,p.set(p.get()+u[d].translate))}),this.visualElement.render())}));return()=>{s(),r(),a(),l&&l(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=rh,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:o,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:s}}};function UE(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function eJ(e,t,r){let o=P0(e,UE(r)),n=P0(t,UE(r));return()=>{o(),n()}}function nh(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function tJ(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var ih=class extends Ct{constructor(t){super(t),this.removeGroupControls=dt,this.removeListeners=dt,this.controls=new oh(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dt}update(){let{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var o_=e=>(t,r)=>{e&&Ie.update(()=>e(t,r),!1,!0)},ah=class extends Ct{constructor(){super(...arguments),this.removePointerDownListener=dt}onPointerDown(t){this.session=new cl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eh(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:n}=this.node.getProps();
106return{onSessionStart:o_(t),onStart:o_(r),onMove:o_(o),onEnd:(i,a)=>{delete this.session,n&&Ie.postRender(()=>n(i,a))}}}mount(){this.removePointerDownListener=wi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var LE=H(Te(),1);var qc=H(pe(),1);var i_=!1,a_=class extends qc.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:n}=this.props,{projection:i}=t;i&&(r.group&&r.group.add(i),o&&o.register&&n&&o.register(i),i_&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ha.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:o,drag:n,isPresent:i}=this.props,{projection:a}=o;return a&&(a.isPresent=i,t.layoutDependency!==r&&a.setOptions({...a.options,layoutDependency:r}),i_=!0,n||t.layoutDependency!==r||r===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Ie.postRender(()=>{let s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:r}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=r,o.root.didUpdate(),la.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:n}=t;i_=!0,n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),o&&o.deregister&&o.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function sh(e){let[t,r]=B0(),o=(0,qc.useContext)(Us);return(0,LE.jsx)(a_,{...e,layoutGroup:o,switchLayoutGroup:(0,qc.useContext)(J0),isPresent:t,safeToRemove:r})}var FE={pan:{Feature:ah},drag:{Feature:ih,ProjectionNode:Fc,MeasureLayout:sh}};function BE(e,t,r){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",r==="Start");let n="onHover"+r,i=o[n];i&&Ie.postRender(()=>i(t,go(t)))}var lh=class extends Ct{mount(){let{current:t}=this.node;t&&(this.unmount=bw(t,(r,o)=>(BE(this.node,o,"Start"),n=>BE(this.node,n,"End"))))}unmount(){}};var uh=class extends Ct{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mn(Nn(this.node.current,"focus",()=>this.onFocus()),Nn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function ZE(e,t,r){let{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",r==="Start");let n="onTap"+(r==="End"?"":r),i=o[n];i&&Ie.postRender(()=>i(t,go(t)))}var ch=class extends Ct{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:r,propagate:o}=this.node.props;this.unmount=Sw(t,(n,i)=>(ZE(this.node,i,"Start"),(a,{success:s})=>ZE(this.node,a,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:o?.tap===!1})}unmount(){}};var l_=new WeakMap,s_=new WeakMap,rJ=e=>{let t=l_.get(e.target);t&&t(e)},nJ=e=>{e.forEach(rJ)};function oJ({root:e,...t}){let r=e||document;s_.has(r)||s_.set(r,{});let o=s_.get(r),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(nJ,{root:e,...t})),o[n]}function VE(e,t,r){let o=oJ(t);return l_.set(e,r),o.observe(e),()=>{l_.delete(e),o.unobserve(e)}}var iJ={some:0,all:1},dh=class extends Ct{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:n="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:o,threshold:typeof n=="number"?n:iJ[n]},s=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};this.stopObserver=VE(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(aJ(t,r))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function aJ({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var GE={inView:{Feature:dh},tap:{Feature:ch},focus:{Feature:uh},hover:{Feature:lh}};var qE={layout:{ProjectionNode:Fc,MeasureLayout:sh}};var WE={..._E,...GE,...FE,...qE};var u_=bE(WE,wE);var No=H(pe());function Wc(e){if(!dl(e))throw new Error("Parameter was not an error")}function dl(e){return!!e&&typeof e=="object"&&sJ(e)==="[object Error]"||e instanceof Error}function sJ(e){return Object.prototype.toString.call(e)}var lJ="Layerr",uJ=lJ;function c_(){return uJ}function HE(e){let t,r="";if(e.length===0)t={};else if(dl(e[0]))t={cause:e[0]},r=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),r=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},r=r=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:r}}
106var vo=class e extends Error{constructor(t,r){let o=[...arguments],{options:n,shortMessage:i}=HE(o),a=i;if(n.cause&&(a=`${a}: ${n.cause.message}`),super(a),this.message=a,n.name&&typeof n.name=="string"?this.name=n.name:this.name=c_(),n.cause&&Object.defineProperty(this,"_cause",{value:n.cause}),Object.defineProperty(this,"_info",{value:{}}),n.info&&typeof n.info=="object"&&Object.assign(this._info,n.info),Error.captureStackTrace){let s=n.constructorOpt||this.constructor;Error.captureStackTrace(this,s)}}static cause(t){return Wc(t),t._cause&&dl(t._cause)?t._cause:null}static fullStack(t){Wc(t);let r=e.cause(t);return r?`${t.stack} 107caused by: ${e.fullStack(r)}`:t.stack??""}static info(t){Wc(t);let r={},o=e.cause(t);return o&&Object.assign(r,e.info(o)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}};var KE="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Jc=32,JE=0xffffffffffff,cJ=10,dJ=16,Hc=Object.freeze({source:"ulid"});function pJ(e){let t=e||mJ(),r=t&&(t.crypto||t.msCrypto)||null;if(typeof r?.getRandomValues=="function")return()=>{let o=new Uint8Array(1);return r.getRandomValues(o),o[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;throw new vo({info:{code:"PRNG_DETECT",...Hc}},"Failed to find a reliable PRNG")}function mJ(){return gJ()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function fJ(e,t){let r="";for(;e>0;e--)r=vJ(t)+r;return r}function hJ(e,t){if(isNaN(e))throw new vo({info:{code:"ENC_TIME_NAN",...Hc}},`Time must be a number: ${e}`);if(e>JE)throw new vo({info:{code:"ENC_TIME_SIZE_EXCEED",...Hc}},`Cannot encode a time larger than ${JE}: ${e}`);if(e<0)throw new vo({info:{code:"ENC_TIME_NEG",...Hc}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new vo({info:{code:"ENC_TIME_TYPE",...Hc}},`Time must be an integer: ${e}`);let r,o="";for(let n=t;n>0;n--)r=e%Jc,o=KE.charAt(r)+o,e=(e-r)/Jc;return o}function gJ(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function vJ(e){let t=Math.floor(e()*Jc);return t===Jc&&(t=Jc-1),KE.charAt(t)}function ph(e,t){let r=t||pJ(),o=isNaN(e)?Date.now():e;return hJ(o,cJ)+fJ(dJ,r)}var eA=H(pe());var Lt=H(pe(),1);var yJ={damping:.7,stiffness:.05,mass:1.25},bJ=70,xJ=1e3/60,wJ=350,mh=!1;globalThis.document?.addEventListener("mousedown",()=>{mh=!0});globalThis.document?.addEventListener("mouseup",()=>{mh=!1});globalThis.document?.addEventListener("click",()=>{mh=!1});var YE=(e={})=>{let[t,r]=(0,Lt.useState)(!1),[o,n]=(0,Lt.useState)(e.initial!==!1),[i,a]=(0,Lt.useState)(!1),s=(0,Lt.useRef)(null);s.current=e;let l=(0,Lt.useCallback)(()=>{if(!mh)return!1;let _=window.getSelection();if(!_||!_.rangeCount)return!1;let b=_.getRangeAt(0);return b.commonAncestorContainer.contains(w.current)||w.current?.contains(b.commonAncestorContainer)},[]),u=(0,Lt.useCallback)(_=>{d.isAtBottom=_,n(_)},[]),c=(0,Lt.useCallback)(_=>{d.escapedFromLock=_,r(_)},[]),d=(0,Lt.useMemo)(()=>{let _;return{escapedFromLock:t,isAtBottom:o,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return w.current?.scrollTop??0},set scrollTop(b){w.current&&(w.current.scrollTop=b,d.ignoreScrollToTop=w.current.scrollTop)},get targetScrollTop(){return!w.current||!S.current?0:w.current.scrollHeight-1-w.current.clientHeight},get calculatedTargetScrollTop(){if(!w.current||!S.current)return 0;let{targetScrollTop:b}=this;if(!e.targetScrollTop)return b;if(_?.targetScrollTop===b)return _.calculatedScrollTop;let T=Math.max(Math.min(e.targetScrollTop(b,{scrollElement:w.current,contentElement:S.current}),b),0);return _={targetScrollTop:b,calculatedScrollTop:T},requestAnimationFrame(()=>{_=void 0}),T},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=bJ}}},[]),p=(0,Lt.useCallback)((_={})=>{typeof _=="string"&&(_={animation:_}),_.preserveScrollPosition||u(!0);let b=Date.now()+(Number(_.wait)||0),T=p_(s.current,_.animation),{ignoreEscapes:$=!1}=_,C,M=d.calculatedTargetScrollTop;_.duration instanceof Promise?_.duration.finally(()=>{C=Date.now()}):C=b+(_.duration??0);let R=async()=>{let N=new Promise(requestAnimationFrame).then(()=>
107{if(!d.isAtBottom)return d.animation=void 0,!1;let{scrollTop:j}=d,oe=performance.now(),ae=(oe-(d.lastTick??oe))/xJ;if(d.animation||(d.animation={behavior:T,promise:N,ignoreEscapes:$}),d.animation.behavior===T&&(d.lastTick=oe),l()||b>Date.now())return R();if(j<Math.min(M,d.calculatedTargetScrollTop)){if(d.animation?.behavior===T){if(T==="instant")return d.scrollTop=d.calculatedTargetScrollTop,R();d.velocity=(T.damping*d.velocity+T.stiffness*d.scrollDifference)/T.mass,d.accumulated+=d.velocity*ae,d.scrollTop+=d.accumulated,d.scrollTop!==j&&(d.accumulated=0)}return R()}return C>Date.now()?(M=d.calculatedTargetScrollTop,R()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?p({animation:p_(s.current,s.current.resize),ignoreEscapes:$,duration:Math.max(0,C-Date.now())||void 0}):d.isAtBottom)});return N.then(j=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),j))};return _.wait!==!0&&(d.animation=void 0),d.animation?.behavior===T?d.animation.promise:R()},[u,l,d]),m=(0,Lt.useCallback)(()=>{c(!0),u(!1)},[c,u]),g=(0,Lt.useCallback)(({target:_})=>{if(_!==w.current)return;let{scrollTop:b,ignoreScrollToTop:T}=d,{lastScrollTop:$=b}=d;d.lastScrollTop=b,d.ignoreScrollToTop=void 0,T&&T>b&&($=T),a(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||b===T)return;if(l()){c(!0),u(!1);return}let C=b>$,M=b<$;if(d.animation?.ignoreEscapes){d.scrollTop=$;return}M&&(c(!0),u(!1)),C&&c(!1),!d.escapedFromLock&&d.isNearBottom&&u(!0)},1)},[c,u,l,d]),x=(0,Lt.useCallback)(({target:_,deltaY:b})=>{let T=_;for(;!["scroll","auto"].includes(getComputedStyle(T).overflow);){if(!T.parentElement)return;T=T.parentElement}T===w.current&&b<0&&w.current.scrollHeight>w.current.clientHeight&&!d.animation?.ignoreEscapes&&(c(!0),u(!1))},[c,u,d]),w=XE(_=>{w.current?.removeEventListener("scroll",g),w.current?.removeEventListener("wheel",x),_?.addEventListener("scroll",g,{passive:!0}),_?.addEventListener("wheel",x,{passive:!0})},[]),S=XE(_=>{if(d.resizeObserver?.disconnect(),!_)return;let b;d.resizeObserver=new ResizeObserver(([T])=>{let{height:$}=T.contentRect,C=$-(b??$);if(d.resizeDifference=C,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),a(d.isNearBottom),C>=0){let M=p_(s.current,b?s.current.resize:s.current.initial);p({animation:M,wait:!0,preserveScrollPosition:!0,duration:M==="instant"?void 0:wJ})}else d.isNearBottom&&(c(!1),u(!0));b=$,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===C&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(_)},[]);return{contentRef:S,scrollRef:w,scrollToBottom:p,stopScroll:m,isAtBottom:o||i,isNearBottom:i,escapedFromLock:t,state:d}};function XE(e,t){let r=(0,Lt.useCallback)(o=>(r.current=o,e(o)),t);return r}var d_=new Map;function p_(...e){let t={...yJ},r=!1;for(let n of e){if(n==="instant"){r=!0;continue}typeof n=="object"&&(r=!1,t.damping=n.damping??t.damping,t.stiffness=n.stiffness??t.stiffness,t.mass=n.mass??t.mass)}let o=JSON.stringify(t);return d_.has(o)||d_.set(o,Object.freeze(t)),r?"instant":d_.get(o)}var ya=H(pe(),1),xr=H(pe(),1);var QE=(0,xr.createContext)(null),_J=typeof window<"u"?xr.useLayoutEffect:xr.useEffect;function Kc({instance:e,children:t,resize:r,initial:o,mass:n,damping:i,stiffness:a,targetScrollTop:s,contextRef:l,...u}){let c=(0,xr.useRef)(null),d=ya.useCallback(($,C)=>(T?.targetScrollTop??s)?.($,C)??$,[s]),p=YE({mass:n,damping:i,stiffness:a,resize:r,initial:o,targetScrollTop:d}),{scrollRef:m,contentRef:g,scrollToBottom:x,stopScroll:w,isAtBottom:S,escapedFromLock:_,state:b}=e??p,T=(0,xr.useMemo)(()=>({scrollToBottom:x,stopScroll:w,scrollRef:m,isAtBottom:S,escapedFromLock:_,contentRef:g,state:b,get targetScrollTop(){return c.current},set targetScrollTop($){c.current=$}}),[x,S,g,m,w,_,b]);return(0,xr.useImperativeHandle)(l,()=>T,[T]),_J(()=>{m.current&&getComputedStyle(m.current).overflow==="visible"&&(m.current.style.overflow="auto")},[]),ya.createElement(QE.Provider,{value:T},ya.createElement("div",{...u},typeof t=="function"?t(T):t))}(function(e){function t({children:r,scrollClassName:o,...n}){let i=m_();return ya.createElement("div",{ref:i.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:o},ya.createElement("div",{...n,ref:i.contentRef},typeof r=="function"?r(i):r))}e.Content=t})(Kc||(Kc={}));function m_(){let e=(0,xr.useContext)(QE);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}var wr=H(Te()),tA=({className:e,...t})=>(0,wr.jsx)(Kc,{className:ke("relative min-h-0 flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),rA=({className:e,...t})=>(0,wr.jsx)(Kc.Content,{className:ke("flex flex-col gap-8 p-4",e),...t}),nA=({className:e,title:t="No messages yet",description:r="Start a conversation to see messages here",icon:o,children:n,...i})=>(0,wr.jsx)("div",{className:ke("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...i,children:n??(0,wr.jsxs)(wr.Fragment,{children:[o&&(0,wr.jsx)("div",{className:"text-muted-foreground",children:o}),(0,wr.jsxs)("div",{className:"space-y-1",children:[(0,wr.jsx)("h3",{className:"text-sm font-medium",children:t}),r&&(0,wr.jsx)("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),oA=({className:e,...t})=>{let{isAtBottom:r,scrollToBottom:o}=m_(),n=(0,eA.useCallback)(()=>{o()},[o]);return!r&&(0,wr.jsx)(dr,{className:ke("dark:bg-background dark:hover:bg-muted absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:n,size:"icon",type:"button",variant:"outline",...t,children:(0,wr.jsx)($S,{className:"size-4"})})};var Pke=H(pe());var kJ=H(Te());var SJ=H(Te()),Nke=Al("flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});var Oke=H(pe());var iA=H(Te());var Ft={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var Rn={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var Or={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var fh=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,23
vendor: 6,563 bytes, line 107
1070,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],hh=[12288,12288,65281,65376,65504,65510],gh=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],vh=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Xc=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var pl=(e,t)=>{let r=0,o=Math.floor(e.length/2)-1;for(;r<=o;){let n=Math.floor((r+o)/2),i=n*2;if(t<e[i])o=n-1;else if(t>e[i+1])r=n+1;else return!0}return!1};var $J=fh[0],IJ=fh.at(-1),TJ=hh[0],PJ=hh.at(-1),CJ=gh[0],zJ=gh.at(-1),EJ=vh[0],AJ=vh.at(-1),MJ=Xc[0],DJ=Xc.at(-1),aA=19968,[NJ,RJ]=OJ(Xc);function OJ(e){let t=e[0],r=e[1];for(let o=0;o<e.length;o+=2){let n=e[o],i=e[o+1];if(aA>=n&&aA<=i)return[n,i];i-n>r-t&&(t=n,r=i)}return[t,r]}var sA=e=>e<$J||e>IJ?!1:pl(fh,e),lA=e=>e<TJ||e>PJ?!1:pl(hh,e),jJ=e=>e<CJ||e>zJ?!1:pl(gh,e),UJ=e=>e<EJ||e>AJ?!1:pl(vh,e),uA=e=>e>=NJ&&e<=RJ?!0:e<MJ||e>DJ?!1:pl(Xc,e);function cA(e){return sA(e)?"ambiguous":lA(e)?"fullwidth":jJ(e)?"halfwidth":UJ(e)?"narrow":uA(e)?"wide":"neutral"}function LJ(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function dA(e){return LJ(e),cA(e)}function FJ(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function pA(e){if(!e||e<4352)return!1;switch(dA(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!FJ(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function mA(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function fA(e){return e!==null&&e>=65024&&e<=65038}var hA=vA(/\p{P}|\p{S}/u),gA=vA(/\s/);function vA(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}function yo(e){return!!(e&Rn.characterGroupWhitespace)}function ba(e){return(e&or.cjkPunctuation)===Rn.characterGroupPunctuation}function ml(e){return!!(e&or.cjk)}function f_(e){return e===or.ivs}function h_(e){return!!(e&or.cjkOrIvs)}function g_(e){return e===or.nonEmojiGeneralUseVS}function yh(e){return!!(e&or.spaceOrPunctuation)}var or;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(or||(or={}));function bo(e){if(e===Ft.eof||DS(e)||gA(e))return Rn.characterGroupWhitespace;let t=0;if(e>=4352){if(fA(e))return or.nonEmojiGeneralUseVS;switch(pA(e)){case null:return or.ivs;case!0:t|=or.cjk;break}}return hA(e)&&(t|=Rn.characterGroupPunctuation),t}function Yc(e,t,r){if(!g_(e))return e;let o=t(),n=bo(o);return!o||yo(n)?e:mA(o,r)?or.cjkPunctuation:BJ(n)}function BJ(e){return e&~or.ivs}function Qc(e){return!!(e&&e>=55296&&e<=56319)}function ed(e){return!!(e&&e>=56320&&e<=57343)}function td(e,t,r){if(t._bufferIndex<2)return e;let o=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return o&&o>=65536?o:e}function yA(e,t,r){let o=e>=65536?2:1;if(t._bufferIndex<1+o)return null;let n=t._bufferIndex-o-2,i=r({start:{...t,_bufferIndex:n>=0?n:0},end:{...t,_bufferIndex:t._bufferIndex-o}}),a=i.charCodeAt(i.length-1);if(Number.isNaN(a))return null;if(i.length<2||a<56320||57343<a)return a;let s=i.codePointAt(0);return s&&s>=65536?s:a}var rd=class{cachedValue=void 0;constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r}value(){return this.cachedValue===void 0&&(this.cachedValue=yA(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};
vendor: 9,037 bytes, line 107
107function nd(e,t,r){let o=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return o&&o>=65536?o:e}var bh={name:"attention",resolveAll:ZJ,tokenize:VJ};function ZJ(e,t){let r=-1,o,n,i,a,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let d={...e[o][1].end},p={...e[r][1].start};bA(d,-l),bA(p,l),a={type:l>1?Or.strongSequence:Or.emphasisSequence,start:d,end:{...e[o][1].end}},s={type:l>1?Or.strongSequence:Or.emphasisSequence,start:{...e[r][1].start},end:p},i={type:l>1?Or.strongText:Or.emphasisText,start:{...e[o][1].end},end:{...e[r][1].start}},n={type:l>1?Or.strong:Or.emphasis,start:{...a.start},end:{...s.end}},e[o][1].end={...a.start},e[r][1].start={...s.end},u=[],e[o][1].end.offset-e[o][1].start.offset&&(u=Aa(u,[["enter",e[o][1],t],["exit",e[o][1],t]])),u=Aa(u,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),t.parser.constructs.insideSpan.null,u=Aa(u,Fd(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),u=Aa(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=Aa(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(e,o-1,r-o+3,u),r=o+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function VJ(e,t){let r=this.parser.constructs.attentionMarkers.null,{now:o,sliceSerialize:n,previous:i}=this,a=ed(i)?td(i,o(),n):i,s=bo(a),l=new rd(a,o(),n),u=Yc(s,l.value.bind(l),a),c;return d;function d(m){return m===Ft.asterisk||Ft.underscore,c=m,e.enter("attentionSequence"),p(m)}function p(m){if(m===c)return e.consume(m),p;let g=e.exit("attentionSequence"),x=bo(Qc(m)?nd(m,o(),n):m);let w=ba(u),S=w||yo(u),_=ba(x),b=_||yo(x),T=h_(u),$=!b||_&&(S||T)||r.includes(m),C=!S||w&&(b||ml(x))||r.includes(a);return g._open=!!(c===Ft.asterisk?$:$&&(yh(u)||!C)),g._close=!!(c===Ft.asterisk?C:C&&(yh(x)||!$)),t(m)}}function bA(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function xA(){return{text:{[Ft.asterisk]:bh,[Ft.underscore]:bh},insideSpan:{null:[bh]}}}function wA(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(xA())}function v_(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:n,resolveAll:o};return t==null&&(t=!0),{text:{[Ft.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[Ft.tilde]}};function o(i,a){let s=-1;for(;++s<i.length;)if(i[s][0]==="enter"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._close){let l=s;for(;l--;)if(i[l][0]==="exit"&&i[l][1].type==="strikethroughSequenceTemporary"&&i[l][1]._open&&i[s][1].end.offset-i[s][1].start.offset===i[l][1].end.offset-i[l][1].start.offset){i[s][1].type="strikethroughSequence",i[l][1].type="strikethroughSequence";let u={type:"strikethrough",start:Object.assign({},i[l][1].start),end:Object.assign({},i[s][1].end)},c={type:"strikethroughText",start:Object.assign({},i[l][1].end),end:Object.assign({},i[s][1].start)},d=[["enter",u,a],["enter",i[l][1],a],["exit",i[l][1],a],["enter",c,a]],p=a.parser.constructs.insideSpan.null;p&&Ea(d,d.length,0,Fd(p,i.slice(l+1,s),a)),Ea(d,d.length,0,[["exit",c,a],["enter",i[s][1],a],["exit",i[s][1],a],["exit",u,a]]),Ea(i,l-1,s-l+3,d),s=l+d.length-2;break}}for(s=-1;++s<i.length;)i[s][1].type==="strikethroughSequenceTemporary"&&(i[s][1].type=Or.data);return i}function n(i,a,s){let{now:l,sliceSerialize:u,previous:c}=this,d=ed(c)?td(c,l(),u):c,p=bo(d),m=new rd(d,l(),u),g=Yc(p,m.value.bind(m),d),x=this.events,w=0;return S;function S(b){return Ft.tilde,d===Ft.tilde&&x[x.length-1][1].type!==Or.characterEscape?s(b):(i.enter("strikethroughSequenceTemporary"),_(b))}function _(b){let T=bo(d);if(b===Ft.tilde)return w>1?s(b):(i.consume(b),w++,_);if(w<2&&!t)return s(b);let $=i.exit("strikethroughSequenceTemporary"),C=bo(Qc(b)?nd(b,l(),u):b),M=ba(g)||yo(g),R=ba(C)||yo(C),N=ml(g)||f_(T);return $._open=!R||C===Rn.attentionSideAfter&&(M||N),$._close=!M||T===Rn.attentionSideAfter&&(R||ml(C)),a(b)}}}function _A(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(v_(e))}var GJ=new Set(["\u3002","\uFF0E","\uFF0C","\u3001","\uFF1F","\uFF01","\uFF1A","\uFF1B","\uFF08","\uFF09","\u3010","\u3011","\u300C","\u300D","\u300E","\u300F","\u3008","\u3009","\u300A","\u300B"]),qJ=/^(https?:\/\/|mailto:|www\.)/i,WJ=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type==="text"&&t.value===e.url},HJ=e=>{let t=0;for(let r of e){if(GJ.has(r))return t;t+=r.length}return null},JJ=(e,t)=>({...t,url:e,children:[{type:"text",value:e}]}),KJ=e=>({type:"text",value:e}),XJ=()=>e=>{jS(e,"link",(t,r,o)=>{if(!o||typeof r!="number"||!WJ(t)||!qJ.test(t.url))return;let n=HJ(t.url);if(n===null||n===0)return;let i=t.url.slice(0,n),a=t.url.slice(n),s=JJ(i,t),l=KJ(a);return o.children.splice(r,1,s,l),r+1})};function YJ(){let e=[wA],t=[XJ,_A],r=[...e,...t];return{name:"cjk",type:"cjk",remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:r}}var kA=YJ();var Ye=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function QJ(e){return T_(e)}function T_(e){return Array.isArray(e)?eK(e):e instanceof RegExp?e:typeof e=="object"?tK(e):e}function eK(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=T_(e[r]);return t}function tK(e){let t={};for(let r in e)t[r]=T_(e[r]);return t}function AA(e,...t){return t.forEach(r=>{for(let o in r)e[o]=r[o]}),e}function MA(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?MA(e.substring(0,e.length-1)):e.substr(~t+1)}var y_=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,xh=class{static hasCaptures(e){return e===null?!1:(y_.lastIndex=0,y_.test(e))}static replaceCaptures(e,t,r){return e.replace(y_,(o,n,i,a)=>{let s=r[parseInt(n||i,10)];if(s){let l=t.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return o})}};function DA(e,t){return e<t?-1:e>t?1:0}function NA(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,o=t.length;if(r===o){for(let n=0;n<r;n++){let i=DA(e[n],t[n]);if(i!==0)return i}return 0}return r-o}function SA(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function RA(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var OA=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},ad=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(oK(e),t)}static createFromParsedTheme(e,t){return aK(e,t)}_cachedMatchRoot=new OA(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,o=this._cachedMatchRoot.get(t).find(n=>rK(e.parent,n.parentScopes));return o?new jA(o.fontStyle,o.foreground,o.background):null}},b_=class wh{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(let o of r)t=new wh(t,o);return t}static from(...t){let r=null;for(let o=0;o<t.length;o++)r=new wh(r,t[o]);return r}push(t){return new wh(this,t)}getSegments(){let t=this,r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let r=[],o=this;for(;o&&o!==t;)r.push(o.scopeName),o=o.parent;return o===t?r.reverse():void 0}};function rK(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let o=t[r],n=!1;if(o===">"){if(r===t.length-1)return!1;o=t[++r],n=!0}for(;e&&!nK(e.scopeName,o);){if(n)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function nK(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var jA=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function oK(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],o=0;for(let n=0,i=t.length;n<i;n++){let a=t[n];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let d=a.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),s=d.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let d=a.settings.fontStyle.split(" ");for(let p=0,m=d.length;p<m;p++)switch(d[p]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof a.settings.foreground=="string"&&SA(a.settings.foreground)&&
vendor: 13,005 bytes, line 107
107(u=a.settings.foreground);let c=null;typeof a.settings.background=="string"&&SA(a.settings.background)&&(c=a.settings.background);for(let d=0,p=s.length;d<p;d++){let g=s[d].trim().split(" "),x=g[g.length-1],w=null;g.length>1&&(w=g.slice(0,g.length-1),w.reverse()),r[o++]=new iK(x,w,n,l,u,c)}}return r}var iK=class{constructor(e,t,r,o,n,i){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=o,this.foreground=n,this.background=i}},Bt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Bt||{});function aK(e,t){e.sort((l,u)=>{let c=DA(l.scope,u.scope);return c!==0||(c=NA(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let r=0,o="#000000",n="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(o=l.foreground),l.background!==null&&(n=l.background)}let i=new sK(t),a=new jA(r,i.getId(o),i.getId(n)),s=new uK(new w_(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];s.insert(0,c.scope,c.parentScopes,c.fontStyle,i.getId(c.foreground),i.getId(c.background))}return new ad(i,a,s)}var sK=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},lK=Object.freeze([]),w_=class UA{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,o,n,i){this.scopeDepth=t,this.parentScopes=r||lK,this.fontStyle=o,this.foreground=n,this.background=i}clone(){return new UA(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let o=0,n=t.length;o<n;o++)r[o]=t[o].clone();return r}acceptOverwrite(t,r,o,n){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),o!==0&&(this.foreground=o),n!==0&&(this.background=n)}},uK=class __{constructor(t,r=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let o=0,n=0;for(;t.parentScopes[o]===">"&&o++,r.parentScopes[n]===">"&&n++,!(o>=t.parentScopes.length||n>=r.parentScopes.length);){let i=r.parentScopes[n].length-t.parentScopes[o].length;if(i!==0)return i;o++,n++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),n,i;if(o===-1?(n=t,i=""):(n=t.substring(0,o),i=t.substring(o+1)),this._children.hasOwnProperty(n))return this._children[n].match(i)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(__._cmpBySpecificity),r}insert(t,r,o,n,i,a){if(r===""){this._doInsertHere(t,o,n,i,a);return}let s=r.indexOf("."),l,u;s===-1?(l=r,u=""):(l=r.substring(0,s),u=r.substring(s+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new __(this._mainRule.clone(),w_.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,o,n,i,a)}_doInsertHere(t,r,o,n,i){if(r===null){this._mainRule.acceptOverwrite(t,o,n,i);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let l=this._rulesWithParentScopes[a];if(NA(l.parentScopes,r)===0){l.acceptOverwrite(t,o,n,i);return}}o===-1&&(o=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new w_(t,r,o,n,i))}},wa=class Qr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let r=Qr.getLanguageId(t),o=Qr.getTokenType(t),n=Qr.getFontStyle(t),i=Qr.getForeground(t),a=Qr.getBackground(t);console.log({languageId:r,tokenType:o,fontStyle:n,foreground:i,background:a})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,o,n,i,a,s){let l=Qr.getLanguageId(t),u=Qr.getTokenType(t),c=Qr.containsBalancedBrackets(t)?1:0,d=Qr.getFontStyle(t),p=Qr.getForeground(t),m=Qr.getBackground(t);return r!==0&&(l=r),o!==8&&(u=o),n!==null&&(c=n?1:0),i!==-1&&(d=i),a!==0&&(p=a),s!==0&&(m=s),(l<<0|u<<8|c<<10|d<<11|p<<15|m<<24)>>>0}};function kh(e,t){let r=[],o=cK(e),n=o.next();for(;n!==null;){let l=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=o.next()}let u=a();if(r.push({matcher:u,priority:l}),n!==",")break;n=o.next()}return r;function i(){if(n==="-"){n=o.next();let l=i();return u=>!!l&&!l(u)}if(n==="("){n=o.next();let l=s();return n===")"&&(n=o.next()),l}if($A(n)){let l=[];do l.push(n),n=o.next();while($A(n));return u=>t(l,u)}return null}function a(){let l=[],u=i();for(;u;)l.push(u),u=i();return c=>l.every(d=>d(c))}function s(){let l=[],u=a();for(;u&&(l.push(u),n==="|"||n===",");){do n=o.next();while(n==="|"||n===",");u=a()}return c=>l.some(d=>d(c))}}function $A(e){return!!e&&!!e.match(/[\w\.:]+/)}function cK(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;let o=r[0];return r=t.exec(e),o}}}function LA(e){typeof e.dispose=="function"&&e.dispose()}var sd=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},dK=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},pK=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},mK=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new sd(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new pK;for(let r of e)fK(r,this.initialScopeName,this.repo,t);for(let r of t.references)if(r instanceof sd){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function fK(e,t,r,o){let n=r.lookup(e.scopeName);if(!n){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let i=r.lookup(t);e instanceof sd?_h({baseGrammar:i,selfGrammar:n},o):k_(e.ruleName,{baseGrammar:i,selfGrammar:n,repository:n.repository},o);let a=r.injections(e.scopeName);if(a)for(let s of a)o.add(new sd(s))}function k_(e,t,r){if(t.repository&&t.repository[e]){let o=t.repository[e];Sh([o],t,r)}}function _h(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Sh(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Sh(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Sh(e,t,r){for(let o of e){if(r.visitedRule.has(o))continue;r.visitedRule.add(o);let n=o.repository?AA({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&Sh(o.patterns,{...t,repository:n},r);let i=o.include;if(!i)continue;let a=FA(i);switch(a.kind){case 0:_h({...t,selfGrammar:t.baseGrammar},r);break;case 1:_h(t,r);break;case 2:k_(a.ruleName,{...t,repository:n},r);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:n};a.kind===4?k_(a.ruleName,l,r):_h(l,r)}else a.kind===4?r.add(new dK(a.scopeName,a.ruleName)):r.add(new sd(a.scopeName));break}}}var hK=class{kind=0},gK=class{kind=1},vK=class{constructor(e){this.ruleName=e}kind=2},yK=class{constructor(e){this.scopeName=e}kind=3},bK=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function FA(e){if(e==="$base")return new hK;if(e==="$self")return new gK;let t=e.indexOf("#");if(t===-1)return new yK(e);if(t===0)return new vK(e.substring(1));{let r=e.substring(0,t),o=e.substring(t+1);return new bK(r,o)}}var xK=/\\(\d+)/,IA=/\\(\d+)/g;var wK=-1,BA=-2;var cd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,o){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=xh.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=xh.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${MA(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:xh.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:xh.replaceCaptures(this._contentName,e,t)}},_K=class extends cd{retokenizeCapturedWithRuleId;constructor(e,t,r,o,n){super(e,t,r,o),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,o){throw new Error("Not supported!")}},kK=class extends cd{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,o,n){super(e,t,r,null),this._match=new ld(o,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ud,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},TA=class extends cd{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,o,n){super(e,t,r,o),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ud,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},S_=class extends cd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,o,n,i,a,s,l,u){super(e,t,r,o),this._begin=new ld(n,this.id),this.beginCaptures=i,this._end=new ld(a||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ud;for(let r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},$h=class extends cd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,o,n,i,a,s,l){super(e,t,r,o),this._begin=new ld(n,this.id),this.beginCaptures=i,this.whileCaptures=s,this._while=ne
vendor: 1,564 bytes, line 107
107w ld(a,BA),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ud;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ud,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}
vendor: 8,909 bytes, lines 107-108
107},ZA=class Wt{static createCaptureRule(t,r,o,n,i){return t.registerRule(a=>new _K(r,a,o,n,i))}static getCompiledRuleId(t,r,o){return t.id||r.registerRule(n=>{if(t.id=n,t.match)return new kK(t.$vscodeTextmateLocation,t.id,t.name,t.match,Wt._compileCaptures(t.captures,r,o));if(typeof t.begin>"u"){t.repository&&(o=AA({},o,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new TA(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Wt._compilePatterns(i,r,o))}return t.while?new $h(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Wt._compileCaptures(t.beginCaptures||t.captures,r,o),t.while,Wt._compileCaptures(t.whileCaptures||t.captures,r,o),Wt._compilePatterns(t.patterns,r,o)):new S_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Wt._compileCaptures(t.beginCaptures||t.captures,r,o),t.end,Wt._compileCaptures(t.endCaptures||t.captures,r,o),t.applyEndPatternLast,Wt._compilePatterns(t.patterns,r,o))}),t.id}static _compileCaptures(t,r,o){let n=[];if(t){let i=0;for(let a in t){if(a==="$vscodeTextmateLocation")continue;let s=parseInt(a,10);s>i&&(i=s)}for(let a=0;a<=i;a++)n[a]=null;for(let a in t){if(a==="$vscodeTextmateLocation")continue;let s=parseInt(a,10),l=0;t[a].patterns&&(l=Wt.getCompiledRuleId(t[a],r,o)),n[s]=Wt.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,l)}}return n}static _compilePatterns(t,r,o){let n=[];if(t)for(let i=0,a=t.length;i<a;i++){let s=t[i],l=-1;if(s.include){let u=FA(s.include);switch(u.kind){case 0:case 1:l=Wt.getCompiledRuleId(o[s.include],r,o);break;case 2:let c=o[u.ruleName];c&&(l=Wt.getCompiledRuleId(c,r,o));break;case 3:case 4:let d=u.scopeName,p=u.kind===4?u.ruleName:null,m=r.getExternalGrammar(d,o);if(m)if(p){let g=m.repository[p];g&&(l=Wt.getCompiledRuleId(g,r,m.repository))}else l=Wt.getCompiledRuleId(m.repository.$self,r,m.repository);break}}else l=Wt.getCompiledRuleId(s,r,o);if(l!==-1){let u=r.getRule(l),c=!1;if((u instanceof TA||u instanceof S_||u instanceof $h)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;n.push(l)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}},ld=class VA{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,r){if(t&&typeof t=="string"){let o=t.length,n=0,i=[],a=!1;for(let s=0;s<o;s++)if(t.charAt(s)==="\\"&&s+1<o){let u=t.charAt(s+1);u==="z"?(i.push(t.substring(n,s)),i.push("$(?!\\n)(?<!\\n)"),n=s+2):(u==="A"||u==="G")&&(a=!0),s++}this.hasAnchor=a,n===0?this.source=t:(i.push(t.substring(n,o)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=xK.test(this.source):this.hasBackReferences=!1}clone(){return new VA(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=r.map(n=>t.substring(n.start,n.end));return IA.lastIndex=0,this.source.replace(IA,(n,i)=>RA(o[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],o=[],n=[],i,a,s,l;for(i=0,a=this.source.length;i<a;i++)s=this.source.charAt(i),t[i]=s,r[i]=s,o[i]=s,n[i]=s,s==="\\"&&i+1<a&&(l=this.source.charAt(i+1),l==="A"?(t[i+1]="\uFFFF",r[i+1]="\uFFFF",o[i+1]="A",n[i+1]="A"):l==="G"?(t[i+1]="\uFFFF",r[i+1]="G",o[i+1]="\uFFFF",n[i+1]="G"):(t[i+1]=l,r[i+1]=l,o[i+1]=l,n[i+1]=l),i++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:n.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ud=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new PA(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let o=this._items.map(n=>n.resolveAnchors(t,r));return new PA(e,o,this._items.map(n=>n.ruleId))}},PA=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(` 108`)}findNextMatchSync(e,t,r){let o=this.scanner.findNextMatchSync(e,t,r);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},x_=class{constructor(e,t){this.languageId=e,this.tokenType=t}},SK=class $_{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new x_(t,8),this._embeddedLanguagesMatcher=new $K(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?$_._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new x_(0,0);_getBasicScopeAttributes=new OA(t=>{let r=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new x_(r,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let r=t.match($_.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},$K=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([r,o])=>RA(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},FSe={InDebugMode:typeof process<"u"&&!!__PROCESS_ENV.VSCODE_TEXTMATE_DEBUG},GA=!1,CA=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function qA(e,t,r,o,n,i,a,s){let l=t.content.length,u=!1,c=-1;if(a){let m=IK(e,t,r,o,n,i);n=m.stack,o=m.linePos,r=m.isFirstLine,c=m.anchorPosition}let d=Date.now();for(;!u;){if(s!==0&&Date.now()-d>s)return new CA(n,!0);p()}return new CA(n,!1);function p(){let m=TK(e,t,r,o,n,c);if(!m){i.produce(n,l),u=!0;return}let g=m.captureIndices,x=m.matchedRuleId,w=g&&g.length>0?g[0].end>o:!1;if(x===wK){let S=n.getRule(e);i.produce(n,g[0].start),n=n.withContentNameScopesList(n.nameScopesList),od(e,t,r,n,i,S.endCaptures,g),i.produce(n,g[0].end);let _=n;if(n=n.parent,c=_.getAnchorPos(),!w&&_.getEnterPos()===o){n=_,i.produce(n,l),u=!0;return}}else{let S=e.getRule(x);i.produce(n,g[0].start);let _=n,b=S.getName(t.content,g),T=n.contentNameScopesList.pushAttributed(b,e);if(n=n.push(x,o,c,g[0].end===l,null,T,T),S instanceof S_){let $=S;od(e,t,r,n,i,$.beginCaptures,g),i.produce(n,g[0].end),c=g[0].end;let C=$.getContentName(t.content,g),M=T.pushAttributed(C,e);if(n=n.withContentNameScopesList(M),$.endHasBackReferences&&(n=n.withEndRule($.getEndWithResolvedBackReferences(t.content,g))),!w&&_.hasSameRuleAs(n)){n=n.pop(),i.produce(n,l),u=!0;return}}else if(S instanceof $h){let $=S;od(e,t,r,n,i,$.beginCaptures,g),i.produce(n,g[0].end),c=g[0].end;let C=$.getContentName(t.content,g),M=T.pushAttributed(C,e);if(n=n.withContentNameScopesList(M),$.whileHasBackReferences&&(n=n.withEndRule($.getWhileWithRes
vendor: 1,060 bytes, line 108
108olvedBackReferences(t.content,g))),!w&&_.hasSameRuleAs(n)){n=n.pop(),i.produce(n,l),u=!0;return}}else if(od(e,t,r,n,i,S.captures,g),i.produce(n,g[0].end),n=n.pop(),!w){n=n.safePop(),i.produce(n,l),u=!0;return}}g[0].end>o&&(o=g[0].end,r=!1)}}function IK(e,t,r,o,n,i){let a=n.beginRuleCapturedEOL?0:-1,s=[];for(let l=n;l;l=l.pop()){let u=l.getRule(e);u instanceof $h&&s.push({rule:u,stack:l})}for(let l=s.pop();l;l=s.pop()){let{ruleScanner:u,findOptions:c}=zK(l.rule,e,l.stack.endRule,r,o===a),d=u.findNextMatchSync(t,o,c);if(d){if(d.ruleId!==BA){n=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(l.stack,d.captureIndices[0].start),od(e,t,r,l.stack,i,l.rule.whileCaptures,d.captureIndices),i.produce(l.stack,d.captureIndices[0].end),a=d.captureIndices[0].end,d.captureIndices[0].end>o&&(o=d.captureIndices[0].end,r=!1))}else{n=l.stack.pop();break}}return{stack:n,linePos:o,anchorPosition:a,isFirstLine:r}}function TK(e,t,r,o,n,i){let a=PK(e,t,r,o,n,i),s=e.getInjections();if(s.length===0)return a;let l=CK(s,e,t,r,o,n,i);if(!l)return a;
vendor: 15,024 bytes, lines 108-109
108if(!a)return l;let u=a.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:a}function PK(e,t,r,o,n,i){let a=n.getRule(e),{ruleScanner:s,findOptions:l}=WA(a,e,n.endRule,r,o===i),u=s.findNextMatchSync(t,o,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function CK(e,t,r,o,n,i,a){let s=Number.MAX_VALUE,l=null,u,c=0,d=i.contentNameScopesList.getScopeNames();for(let p=0,m=e.length;p<m;p++){let g=e[p];if(!g.matcher(d))continue;let x=t.getRule(g.ruleId),{ruleScanner:w,findOptions:S}=WA(x,t,null,o,n===a),_=w.findNextMatchSync(r,n,S);if(!_)continue;let b=_.captureIndices[0].start;if(!(b>=s)&&(s=b,l=_.captureIndices,u=_.ruleId,c=g.priority,s===n))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function WA(e,t,r,o,n){if(GA){let a=e.compile(t,r),s=HA(o,n);return{ruleScanner:a,findOptions:s}}return{ruleScanner:e.compileAG(t,r,o,n),findOptions:0}}function zK(e,t,r,o,n){if(GA){let a=e.compileWhile(t,r),s=HA(o,n);return{ruleScanner:a,findOptions:s}}return{ruleScanner:e.compileWhileAG(t,r,o,n),findOptions:0}}function HA(e,t){let r=0;return e||(r|=1),t||(r|=4),r}function od(e,t,r,o,n,i,a){if(i.length===0)return;let s=t.content,l=Math.min(i.length,a.length),u=[],c=a[0].end;for(let d=0;d<l;d++){let p=i[d];if(p===null)continue;let m=a[d];if(m.length===0)continue;if(m.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=m.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,m.start):n.produce(o,m.start),p.retokenizeCapturedWithRuleId){let x=p.getName(s,a),w=o.contentNameScopesList.pushAttributed(x,e),S=p.getContentName(s,a),_=w.pushAttributed(S,e),b=o.push(p.retokenizeCapturedWithRuleId,m.start,-1,!1,null,w,_),T=e.createOnigString(s.substring(0,m.end));qA(e,T,r&&m.start===0,m.start,b,n,!1,0),LA(T);continue}let g=p.getName(s,a);if(g!==null){let w=(u.length>0?u[u.length-1].scopes:o.contentNameScopesList).pushAttributed(g,e);u.push(new EK(w,m.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var EK=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function AK(e,t,r,o,n,i,a,s){return new DK(e,t,r,o,n,i,a,s)}function zA(e,t,r,o,n){let i=kh(t,Ih),a=ZA.getCompiledRuleId(r,o,n.repository);for(let s of i)e.push({debugSelector:t,matcher:s.matcher,ruleId:a,grammar:n,priority:s.priority})}function Ih(e,t){if(t.length<e.length)return!1;let r=0;return e.every(o=>{for(let n=r;n<t.length;n++)if(MK(t[n],o))return r=n+1,!0;return!1})}function MK(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var DK=class{constructor(e,t,r,o,n,i,a,s){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=s,this._basicScopeAttributesProvider=new SK(r,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=EA(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(let l of Object.keys(n)){let u=kh(l,Ih);for(let c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:n[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},t=[],r=this._rootScopeName,o=e.lookup(r);if(o){let n=o.injections;if(n)for(let a in n)zA(t,a,n[a],this,o);let i=this._grammarRepository.injections(r);i&&i.forEach(a=>{let s=this.getExternalGrammar(a);if(s){let l=s.injectionSelector;l&&zA(t,l,s,this,s)}})}return t.sort((n,i)=>n.priority-i.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=EA(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let o=this._tokenize(e,t,!1,r);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(e,t,r=0){let o=this._tokenize(e,t,!0,r);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(e,t,r,o){this._rootId===-1&&(this._rootId=ZA.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!t||t===I_.NULL){n=!0;let u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),d=wa.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),p=this.getRule(this._rootId).getName(null,null),m;p?m=id.createRootAndLookUpScopeName(p,d,this):m=id.createRoot("unknown",d),t=new I_(null,this._rootId,-1,-1,!1,null,m,m)}else n=!1,t.reset();e=e+` 109`;let i=this.createOnigString(e),a=i.content.length,s=new RK(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=qA(this,i,n,0,t,s,!0,o);return LA(i),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function EA(e,t){return e=QJ(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var id=class On{constructor(t,r,o){this.parent=t,this.scopePath=r,this.tokenAttributes=o}static fromExtension(t,r){let o=t,n=t?.scopePath??null;for(let i of r)n=b_.push(n,i.scopeNames),o=new On(o,n,i.encodedTokenAttributes);return o}static createRoot(t,r){return new On(null,new b_(null,t),r)}static createRootAndLookUpScopeName(t,r,o){let n=o.getMetadataForScope(t),i=new b_(null,t),a=o.themeProvider.themeMatch(i),s=On.mergeAttributes(r,n,a);return new On(null,i,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return On.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,o){let n=-1,i=0,a=0;return o!==null&&(n=o.fontStyle,i=o.foregroundId,a=o.backgroundId),wa.set(t,r.languageId,r.tokenType,null,n,i,a)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return On._pushAttributed(this,t,r);let o=t.split(/ /g),n=this;for(let i of o)n=On._pushAttributed(n,i,r);return n}static _pushAttributed(t,r,o){let n=o.getMetadataForScope(r),i=t.scopePath.push(r),a=o.themeProvider.themeMatch(i),s=On.mergeAttributes(t.tokenAttributes,n,a);return new On(t,i,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let r=[],o=this;for(;o&&o!==t;)r.push({encodedTokenAttributes:o.tokenAttributes,scopeNames:o.scopePath.getExtensionIfDefined(o.parent?.scopePath??null)}),o=o.parent;return o===t?r.reverse():void 0}},I_=class xa{constructor(t,r,o,n,i,a,s,l){this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=o,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new xa(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:xa._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?id.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){xa._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,o,n,i,a,s){return new xa(this,t,r,o,n,i,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new xa(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){let o=id.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new xa(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,o,id.fromExtension(o,r.contentNameScopesList))}},NK=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):kh(r,Ih).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>kh(r,Ih).map(o=>o.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},RK=class{constructor(e,t,r,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let i=e?.getScopeNames()??[];for(let a of this._tokenTypeOverrides)a.matcher(i)&&(o=wa.set(o,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(i))}if(n&&(o=wa.set(o,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let o=0,n=this._binaryTokens.length;o<n;o++)r[o]=this._binaryTokens[o];return r}},OK=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,o,n){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,AK(e,i,t,r,o,n,this,this._onigLib))}return this._grammars.get(e)}},JA=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new OK(ad.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ad.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new NK(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,o,n){let i=new mK(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(a=>this._loadSingleGrammar(a.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,o,n)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,o=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,o)}_grammarForScopeName(e,t=0,r=null,o=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,r,o,n)}},Th=I_.NULL;function pd(e,t){let r=typeof e=="string"?{}:{...e.colorReplacements},o=typeof e=="string"?e:e.name;for(let[n,i]of Object.entries(t?.colorReplacements||{}))typeof i=="string"?r[n]=i:n===o&&Object.assign(r,i);return r}function xo(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function eM(e){return Array.isArray(e)?e:[e]}async function P_(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function md(e){return!e||["plaintext","txt","text","plain"].includes(e)}function tM(e){return e==="ansi"||md(e)}function fd(e){return e==="none"}function rM(e){return fd(e)}
vendor: 14,319 bytes, line 109
109function fl(e,t=!1){if(e.length===0)return[["",0]];let r=e.split(/(\r?\n)/g),o=0,n=[];for(let i=0;i<r.length;i+=2){let a=t?r[i]+(r[i+1]||""):r[i];n.push([a,o]),o+=r[i].length,o+=r[i+1]?.length||0}return n}var KA={light:"#333333",dark:"#bbbbbb"},XA={light:"#fffffe",dark:"#1e1e1e"},YA="__shiki_resolved";function Ph(e){if(e?.[YA])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:o}=t;if(!r||!o){let s=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(o=s.settings.foreground),s?.settings?.background&&(r=s.settings.background),!o&&t?.colors?.["editor.foreground"]&&(o=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),o||(o=t.type==="light"?KA.light:KA.dark),r||(r=t.type==="light"?XA.light:XA.dark),t.fg=o,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let n=0,i=new Map;function a(s){if(i.has(s))return i.get(s);n+=1;let l=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?a(s):(i.set(s,l),l)}t.settings=t.settings.map(s=>{let l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),u=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!u)return s;let c={...s,settings:{...s.settings}};if(l){let d=a(s.settings.foreground);t.colorReplacements[d]=s.settings.foreground,c.settings.foreground=d}if(u){let d=a(s.settings.background);t.colorReplacements[d]=s.settings.background,c.settings.background=d}return c});for(let s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){let l=a(t.colors[s]);t.colorReplacements[l]=t.colors[s],t.colors[s]=l}return Object.defineProperty(t,YA,{enumerable:!1,writable:!1,value:!0}),t}async function nM(e){return Array.from(new Set((await Promise.all(e.filter(t=>!tM(t)).map(async t=>await P_(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function oM(e){return(await Promise.all(e.map(async t=>rM(t)?null:Ph(await P_(t))))).filter(t=>!!t)}function iM(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new Ye(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var jK=class extends JA{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,o={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=o,this._themes.map(n=>this.loadTheme(n)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Ph(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=ad.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=iM(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(n=>n.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let o=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(o.name=e.name,this._resolvedGrammars.set(e.name,o),e.aliases&&e.aliases.forEach(n=>{this._alias[n]=e.name}),this._loadedLanguagesCache=null,t.size)for(let n of t)this._resolvedGrammars.delete(n.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(n.scopeName),this._syncRegistry?._grammars?.delete(n.scopeName),this.loadLanguage(this._langMap.get(n.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let o of e)this.resolveEmbeddedLanguages(o);let t=Array.from(this._langGraph.entries()),r=t.filter(([o,n])=>!n);if(r.length){let o=t.filter(([n,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(a=>r.map(([s])=>s).includes(a)):!1).filter(n=>!r.includes(n));throw new Ye(`Missing languages ${r.map(([n])=>`\`${n}\``).join(", ")}, required by ${o.map(([n])=>`\`${n}\``).join(", ")}`)}for(let[o,n]of t)this._resolver.addLanguage(n);for(let[o,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let r of t)this._langGraph.set(r,this._langMap.get(r))}},UK=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let o=1;o<=t.length;o++){let n=t.slice(0,o).join(".");r=[...r,...this._injections.get(n)||[]]}return r}},dd=0;function C_(e){dd+=1,e.warnings!==!1&&dd>=10&&dd%10===0&&console.warn(`[Shiki] ${dd} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Ye("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(Ph),n=new jK(new UK(e.engine,r),o,r,e.langAlias),i;function a(_){return iM(_,e.langAlias)}function s(_){w();let b=n.getGrammar(typeof _=="string"?_:_.name);if(!b)throw new Ye(`Language \`${_}\` not found, you may need to load it first`);return b}function l(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();let b=n.getTheme(_);if(!b)throw new Ye(`Theme \`${_}\` not found, you may need to load it first`);return b}function u(_){w();let b=l(_);return i!==_&&(n.setTheme(b),i=_),{theme:b,colorMap:n.getColorMap()}}function c(){return w(),n.getLoadedThemes()}function d(){return w(),n.getLoadedLanguages()}function p(..._){w(),n.loadLanguages(_.flat(1))}async function m(..._){return p(await nM(_))}function g(..._){w();for(let b of _.flat(1))n.loadTheme(b)}async function x(..._){return w(),g(await oM(_))}function w(){if(t)throw new Ye("Shiki instance has been disposed")}function S(){t||(t=!0,n.dispose(),dd-=1)}return{setTheme:u,getTheme:l,getLanguage:s,getLoadedThemes:c,getLoadedLanguages:d,resolveLangAlias:a,loadLanguage:m,loadLanguageSync:p,loadTheme:x,loadThemeSync:g,dispose:S,[Symbol.dispose]:S}}async function z_(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,o]=await Promise.all([oM(e.themes||[]),nM(e.langs||[]),e.engine]);return C_({...e,themes:t,langs:r,engine:o})}var aM=new WeakMap;function hd(e,t){aM.set(e,t)}function hl(e){return aM.get(e)}var Ch=class sM{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new sM(Object.fromEntries(eM(r).map(o=>[o,Th])),t)}constructor(...t){if(t.length===2){let[r,o]=t;this.lang=o,this._stacks=r}else{let[r,o,n]=t;this.lang=o,this._stacks={[n]:r}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return LK(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function LK(e){let t=[],r=new Set;function o(n){if(r.has(n))return;r.add(n);let i=n?.nameScopesList?.scopeName;i&&t.push(i),n.parent&&o(n.parent)}return o(e),t}function FK(e,t){if(!(e instanceof Ch))throw new Ye("Invalid grammar state");return e.getInternalStack(t)}function E_(e,t,r={}){let{theme:o=e.getLoadedThemes()[0]}=r;if(md(e.resolveLangAlias(r.lang||"text"))||fd(o))return fl(t).map(s=>[{content:s[0],offset:s[1]}]);let{theme:n,colorMap:i}=e.setTheme(o),a=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==a.name)throw new Ye(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${a.name}"`);if(!r.grammarState.themes.includes(n.name))throw new Ye(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${n.name}"`)}return uM(t,a,n,i,r)}function lM(...e){if(e.length===2)return hl(e[1]);let[t,r,o={}]=e,{lang:n="text",theme:i=t.getLoadedThemes()[0]}=o;if(md(n)||fd(i))throw new Ye("Plain language does not have grammar state");if(n==="ansi")throw new Ye("ANSI language does not have grammar state");let{theme:a,colorMap:s}=t.setTheme(i),l=t.getLanguage(n);return new Ch(A_(r,l,a,s,o).stateStack,l.name,a.name)}function uM(e,t,r,o,n){let i=A_(e,t,r,o,n),a=new Ch(i.stateStack,t.name,r.name);return hd(i.tokens,a),i.tokens}function A_(e,t,r,o,n){let i=pd(r,n),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=n,l=fl(e),u=n.grammarState?FK(n.grammarState,r.name)??Th:n.grammarContextCode!=null?A_(n.grammarContextCode,t,r,o,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:Th,c=[],d=[];for(let p=0,m=l.length;p<m;p++){let[g,x]=l[p];if(g===""){c=[],d.push([]);continue}if(a>0&&g.length>=a){c=[],d.push([{content:g,offset:x,color:"",fontStyle:0}]);continue}let w,S,_;n.includeExplanation&&(w=t.tokenizeLine(g,u,s),S=w.tokens,_=0);let b=t.tokenizeLine2(g,u,s),T=b.tokens.length/2;for(let $=0;$<T;$++){let C=b.tokens[2*$],M=$+1<T?b.tokens[2*$+2]:g.length;if(C===M)continue;let R=b.tokens[2*$+1],N=xo(o[wa.getForeground(R)],i),j=wa.getFontStyle(R),oe={content:g.substring(C,M),offset:x+C,color:N,fontStyle:j};if(n.includeExplanation){let ae=[];if(n.includeExplanation!=="scopeName")for(let ye of r.settings){let Oe;switch(typeof ye.scope){case"string":Oe=ye.scope.split(/,/).map(ot=>ot.trim());break;case"object":Oe=ye.scope;break;default:continue}ae.push({settings:ye,selectors:Oe.map(ot=>ot.split(/ /))})}oe.explanation=[];let nt=0;for(;C+nt<M;){let ye=S[_],Oe=g.substring(ye.startIndex,ye.endIndex);nt+=Oe.length,oe.explanation.push({content:Oe,scopes:n.includeExplanation==="scopeName"?BK(ye.scopes):ZK(ae,ye.scopes)}),_+=1}}c.push(oe)}d.push(c),c=[],u=b.ruleStack}return{tokens:d,stateStack:u}}function BK(e){return e.map(t=>({scopeName:t}))}function ZK(e,t){let r=[];for(let o=0,n=t.length;o<n;o++){let i=t[o];r[o]={scopeName:i,themeMatches:GK(e,i,t.slice(0,o))}}return r}function QA(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function VK(e,t,r){if(!QA(e[e.length-1],t))return!1;let o=e.length-2,n=r.length-1;for(;o>=0&&n>=0;)QA(e[o],r[n])&&(o-=1),n-=1;return o===-1}function GK(e,t,r){let o=[];for(let{selectors:n,settings:i}of e)for(let a of n)if(VK(a,t,r)){o.push(i);break}return o}function zh(e,t,r,o=E_){let n=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),i=n.map(u=>{let c=o(e,t,{...r,theme:u.theme});return{tokens:c,state:hl(c),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),a=qK(...i.map(u=>u.tokens)),s=a[0].map((u,c)=>u.map((d,p)=>{let m={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in r&&r.includeExplanation&&(m.explanation=d.explanation),a.forEach((g,x)=>{let{content:w,explanation:S,offset:_,...b}=g[c][p];m.variants[n[x].color]=b}),m})),l=i[0].state?new Ch(Object.fromEntries(i.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),i[0].state.lang):void 0;return l&&hd(s,l),s}function qK(...e){let t=e.map(()=>[]),r=e.length;for(let o=0;o<e[0].length;o++){let n=e.map(l=>l[o]),i=t.map(()=>[]);t.forEach((l,u)=>l.push(i[u]));let a=n.map(()=>0),s=n.map(l=>l[0]);for(;s.every(l=>l);){let l=Math.min(...s.map(u=>u.content.length));for(let u=0;u<r;u++){let c=s[u];c.content.length===l?(i[u].push(c),a[u]+=1,s[u]=n[u][a[u]]):(i[u].push({...c,content:c.content.slice(0,l)}),s[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}var WK=/["&'<>`]/g,HK=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,JK=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,KK=/[|\\{}()[\]^$+*?.]/g,cM=new WeakMap;function dM(e,t){if(e=e.replace(t.subset?XK(t.subset):WK,o),t.subset||t.escapeOnly)return e;return e.replace(HK,r).replace(JK,o);function r(n,i,a){return t.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,a.charCodeAt(i+2),t)}function o(n,i,a){return t.format(n.charCodeAt(0),a.charCodeAt(i+1),t)}}function XK(e){let t=cM.get(e);return t||(t=YK(e),cM.set(e,t)),t}function YK(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(KK,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var QK=/[\dA-Fa-f]/;function pM(e,t,r){let o="&#x"+e.toString(16).toUpperCase();return r&&t&&!QK.test(String.fromCharCode(t))?o:o+";"}var eX=/\d/;function mM(e,t,r){let o="&#"+String(e);return r&&t&&!eX.test(String.fromCharCode(t))?o:o+";"}var fM=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslas
109h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var Eh={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var hM=["cent","copy","divide","gt","lt","not","para","times"];var gM={}.hasOwnProperty,M_={},Ah;for(Ah in Eh)gM.call(Eh,Ah)&&(M_[Eh[Ah]]=Ah);var tX=/[^\dA-Za-z]/;function vM(e,t,r,o){let n=String.fromCharCode(e);if(gM.call(M_,n)){let i=M_[n],a="&"+i;return r&&fM.includes(i)&&!hM.includes(i)&&(!o||t&&t!==61&&tX.test(String.fromCharCode(t)))?a:a+";"}return""}function yM(e,t,r){let o=pM(e,t,r.omitOptionalSemicolons),n;if((r.useNamedReferences||r.useShortestReferences)&&(n=vM(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let i=mM(e,t,r.omitOptionalSemicolons);i.length<o.length&&(o=i)}return n&&(!r.useShortestReferences||n.length<o.length)?n:o}function wo(e,t){return dM(e,Object.assign({format:yM},t))}var rX=/^>|^->|<!--|-->|--!>|<!-$/g,nX=[">"],oX=["<",">"];function bM(e,t,r,o){return o.settings.bogusComments?"<?"+wo(e.value,Object.assign({},o.settings.characterReferences,{subset:nX}))+">":"<!--"+e.value.replace(rX,n)+"-->";function n(i){return wo(i,Object.assign({},o.settings.characterReferences,{subset:oX}))}}function xM(e,t,r,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}var wt=wM(1),D_=wM(-1),iX=[];function wM(e){return t;function t(r,o,n){let i=r?r.children:iX,a=(o||0)+e,s=i[a];if(!n)for(;s&&Ma(s);)a+=e,s=i[a];return s}}var aX={}.hasOwnProperty;function Mh(e){return t;function t(r,o,n){return aX.call(e,r.tagName)&&e[r.tagName](r,o,n)}}var gd=Mh({body:lX,caption:N_,colgroup:N_,dd:pX,dt:dX,head:N_,html:sX,li:cX,optgroup:mX,option:fX,p:uX,rp:_M,rt:_M,tbody:gX,td:kM,tfoot:vX,th:kM,thead:hX,tr:yX});function N_(e,t,r){let o=wt(r,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&Ma(o.value.charAt(0)))}function sX(e,t,r){let o=wt(r,t);return!o||o.type!=="comment"}function lX(e,t,r){let o=wt(r,t);return!o||o.type!=="comment"}function uX(e,t,r){let o=wt(r,t);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function cX(e,t,r){let o=wt(r,t);return!o||o.type==="element"&&o.tagName==="li"}function dX(e,t,r){let o=wt(r,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function pX(e,t,r){let o=wt(r,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function _M(e,t,r){let o=wt(r,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function mX(e,t,r){let o=wt(r,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function fX(e,t,r){let o=wt(r,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function hX(e,t,r){let o=wt(r,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function gX(e,t,r){let o=wt(r,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function vX(e,t,r){return!wt(r,t)}function yX(e,t,r){let o=wt(r,t);return!o||o.type==="element"&&o.tagName==="tr"}function kM(e,t,r){let o=wt(r,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}var SM=Mh({body:wX,colgroup:_X,head:xX,html:bX,tbody:kX});function bX(e){let t=wt(e,-1);return!t||t.type!=="comment"}function xX(e){let t=new Set;for(let o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(t.has(o.tagName))return!1;t.add(o.tagName)}let r=e.children[0];return!r||r.type==="element"}function wX(e){let t=wt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ma(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function _X(e,t,r){let o=D_(r,t),n=wt(e,-1,!0);return r&&o&&o.type==="element"&&o.tagName==="colgroup"&&gd(o,r.children.indexOf(o),r)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function kX(e,t,r){let o=D_(r,t),n=wt(e,-1);return r&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&gd(o,r.children.indexOf(o),r)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}var Dh={name:[[` 110\f\r &/=>`.split(""),` 111\f\r "&'/=>
vendor: 21,105 bytes, lines 111-118
111\``.split("")],[`\0 112\f\r "&'/<=>`.split(""),`\0 113\f\r "&'/<=>\``.split("")]],unquoted:[[` 114\f\r &>`.split(""),`\0 115\f\r "&'<=>\``.split("")],[`\0 116\f\r "&'<=>\``.split(""),`\0 117\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function $M(e,t,r,o){let n=o.schema,i=n.space==="svg"?!1:o.settings.omitOptionalTags,a=n.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase()),s=[],l;n.space==="html"&&e.tagName==="svg"&&(o.schema=Bd);let u=SX(o,e.properties),c=o.all(n.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=n,c&&(a=!1),(u||!i||!SM(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),a&&(n.space==="svg"||o.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!o.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!a&&(!i||!gd(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function SX(e,t){let r=[],o=-1,n;if(t){for(n in t)if(t[n]!==null&&t[n]!==void 0){let i=$X(e,n,t[n]);i&&r.push(i)}}for(;++o<r.length;){let i=e.settings.tightAttributes?r[o].charAt(r[o].length-1):void 0;o!==r.length-1&&i!=='"'&&i!=="'"&&(r[o]+=" ")}return r.join("")}function $X(e,t,r){let o=LS(e.schema,t),n=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1,a=e.quote,s;if(o.overloadedBoolean&&(r===o.attribute||r==="")?r=!0:(o.boolean||o.overloadedBoolean)&&(typeof r!="string"||r===o.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=wo(o.attribute,Object.assign({},e.settings.characterReferences,{subset:Dh.name[n][i]}));return r===!0||(r=Array.isArray(r)?(o.commaSeparated?ZS:VS)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=wo(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Dh.unquoted[n][i]}))),s!==r&&(e.settings.quoteSmart&&Lg(r,a)>Lg(r,e.alternative)&&(a=e.alternative),s=a+wo(r,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?Dh.single:Dh.double)[n][i],attribute:!0}))+a),l+(s&&"="+s))}var IX=["<","&"];function Nh(e,t,r,o){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:wo(e.value,Object.assign({},o.settings.characterReferences,{subset:IX}))}function IM(e,t,r,o){return o.settings.allowDangerousHtml?e.value:Nh(e,t,r,o)}function TM(e,t,r,o){return o.all(e)}var PM=BS("type",{invalid:TX,unknown:PX,handlers:{comment:bM,doctype:xM,element:$M,raw:IM,root:TM,text:Nh}});function TX(e){throw new Error("Expected node, not `"+e+"`")}function PX(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var CX={},zX={},EX=[];function R_(e,t){let r=t||CX,o=r.quote||'"',n=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:AX,all:MX,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||US,characterReferences:r.characterReferences||zX,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Bd:FS,quote:o,alternative:n}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function AX(e,t,r){return PM(e,t,r,this)}function MX(e){let t=[],r=e&&e.children||EX,o=-1;for(;++o<r.length;)t[o]=this.one(r[o],o,e);return t.join("")}function EM(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let r=Array.isArray(t)?t:t.split(/\s+/g);for(let o of r)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function DX(e){let t=fl(e,!0).map(([n])=>n);function r(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let i=n,a=0;for(let s of t){if(i<s.length)break;i-=s.length,a++}return{line:a,character:i}}function o(n,i){let a=0;for(let s=0;s<n;s++)a+=t[s].length;return a+=i,a}return{lines:t,indexToPos:r,posToIndex:o}}var L_="light-dark()",NX=["color","background-color"];function RX(e,t){let r=0,o=[];for(let n of t)n>r&&o.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&o.push({...e,content:e.content.slice(r),offset:e.offset+r}),o}function OX(e,t){let r=Array.from(t instanceof Set?t:new Set(t)).sort((o,n)=>o-n);return r.length?e.map(o=>o.flatMap(n=>{let i=r.filter(a=>n.offset<a&&a<n.offset+n.content.length).map(a=>a-n.offset).sort((a,s)=>a-s);return i.length?RX(n,i):n})):e}function jX(e,t,r,o,n="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(c=>Rh(e.variants[c])),s=new Set(a.flatMap(c=>Object.keys(c))),l={},u=(c,d)=>{let p=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return r+t[c]+(d==="color"?"":p)};return a.forEach((c,d)=>{for(let p of s){let m=c[p]||"inherit";if(d===0&&o&&NX.includes(p))if(o===L_&&a.length>1){let g=t.findIndex(w=>w==="light"),x=t.findIndex(w=>w==="dark");if(g===-1||x===-1)throw new Ye('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[p]=`light-dark(${a[g][p]||"inherit"}, ${a[x][p]||"inherit"})`,n==="css-vars"&&(l[u(d,p)]=m)}else l[p]=m;else n==="css-vars"&&(l[u(d,p)]=m)}}),i.htmlStyle=l,i}function Rh(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Bt.Italic&&(t["font-style"]="italic"),e.fontStyle&Bt.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&Bt.Underline&&r.push("underline"),e.fontStyle&Bt.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function j_(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function UX(){let e=new WeakMap;function t(r){if(!e.has(r.meta)){let i=function(s){if(typeof s=="number"){if(s<0||s>r.source.length)throw new Ye(`Invalid decoration offset: ${s}. Code length: ${r.source.length}`);return{...n.indexToPos(s),offset:s}}else{let l=n.lines[s.line];if(l===void 0)throw new Ye(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${n.lines.length}`);let u=s.character;if(u<0&&(u=l.length+u),u<0||u>l.length)throw new Ye(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:u,offset:n.posToIndex(s.line,u)}}};var o=i;let n=DX(r.source),a=(r.options.decorations||[]).map(s=>({...s,start:i(s.start),end:i(s.end)}));LX(a),e.set(r.meta,{decorations:a,converter:n,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(this.options.decorations?.length)return OX(r,t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]))},code(r){if(!this.options.decorations?.length)return;let o=t(this),n=Array.from(r.children).filter(c=>c.type==="element"&&c.tagName==="span");if(n.length!==o.converter.lines.length)throw new Ye(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${o.converter.lines.length}). Failed to apply decorations.`);function i(c,d,p,m){let g=n[c],x="",w=-1,S=-1;if(d===0&&(w=0),p===0&&(S=0),p===Number.POSITIVE_INFINITY&&(S=g.children.length),w===-1||S===-1)for(let b=0;b<g.children.length;b++)x+=AM(g.children[b]),w===-1&&x.length===d&&(w=b+1),S===-1&&x.length===p&&(S=b+1);if(w===-1)throw new Ye(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(S===-1)throw new Ye(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);let _=g.children.slice(w,S);if(!m.alwaysWrap&&_.length===g.children.length)s(g,m,"line");else if(!m.alwaysWrap&&_.length===1&&_[0].type==="element")s(_[0],m,"token");else{let b={type:"element",tagName:"span",properties:{},children:_};s(b,m,"wrapper"),g.children.splice(w,_.length,b)}}function a(c,d){n[c]=s(n[c],d,"line")}function s(c,d,p){let m=d.properties||{},g=d.transform||(x=>x);return c.tagName=d.tagName||"span",c.properties={...c.properties,...m,class:c.properties.class},d.properties?.class&&EM(c,d.properties.class),c=g(c,p)||c,c}let l=[],u=o.decorations.sort((c,d)=>d.start.offset-c.start.offset||c.end.offset-d.end.offset);for(let c of u){let{start:d,end:p}=c;if(d.line===p.line)i(d.line,d.character,p.character,c);else if(d.line<p.line){i(d.line,d.character,Number.POSITIVE_INFINITY,c);for(let m=d.line+1;m<p.line;m++)l.unshift(()=>a(m,c));i(p.line,0,p.character,c)}}l.forEach(c=>c())}}}function LX(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new Ye(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let o=t+1;o<e.length;o++){let n=e[o],i=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,a=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset,s=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,l=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset;if(i||a||s||l){if(i&&a||s&&l||s&&r.start.offset===r.end.offset||a&&n.start.offset===n.end.offset)continue;throw new Ye(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function AM(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(AM).join(""):""}var FX=[UX()];function Oh(e){let t=BX(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...FX]}function BX(e){let t=[],r=[],o=[];for(let n of e)switch(n.enforce){case"pre":t.push(n);break;case"post":r.push(n);break;default:o.push(n)}return{pre:t,post:r,normal:o}}var _a=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],O_={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function ZX(e,t){let r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){let o=e.indexOf("m",r);if(o!==-1)return{sequence:e.substring(r+2,o).split(";"),startPosition:r,position:o+1}}return{position:e.length}}function CM(e){let t=e.shift();if(t==="2"){let r=e.splice(0,3).map(o=>Number.parseInt(o));return r.length!==3||r.some(o=>Number.isNaN(o))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){let r=e.shift();if(r)return{type:"table",index:Number(r)}}}function VX(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let o=Number.parseInt(r);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)O_[o]&&t.push({type:"setDecoration",value:O_[o]});else if(o<=29){let n=O_[o-20];n&&(t.push({type:"resetDecoration",value:n}),n==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:_a[o-30]}});else if(o===38){let n=CM(e);n&&t.push({type:"setForegroundColor",value:n})}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:_a[o-40]}});else if(o===48){let n=CM(e);n&&t.push({type:"setBackgroundColor",value:n})}else o===49?t.push({type:"resetBackgroundColor"}):o===53?t.push({type:"setDecoration",value:"overline"}):o===55?t.push({type:"resetDecoration",value:"overline"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:_a[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:_a[o-100+8]}})}return t}function GX(){let e=null,t=null,r=new Set;return{parse(o){let n=[],i=0;do{let a=ZX(o,i),s=a.sequence?o.substring(i,a.startPosition):o.substring(i);if(s.length>0&&n.push({value:s,foreground:e,background:t,decorations:new Set(r)}),a.sequence){let l=VX(a.sequence);for(let u of l)u.type==="resetAll"?(e=null,t=null,r.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&r.delete(u.value);for(let u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&r.add(u.value)}i=a.position}while(i<o.length);return n}}}var qX={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function WX(e=qX){function t(s){return e[s]}function r(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let o;function n(){if(o)return o;o=[];for(let u=0;u<_a.length;u++)o.push(t(_a[u]));let s=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let c=0;c<6;c++)for(let d=0;d<6;d++)o.push(r([s[u],s[c],s[d]]));let l=8;for(let u=0;u<24;u++,l+=10)o.push(r([l,l,l]));return o}function i(s){return n()[s]}function a(s){switch(s.type){case"named":return t(s.name);case"rgb":return r(s.rgb);case"table":return i(s.index)}}return{value:a}}var HX={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function JX(e,t,r){let o=pd(e,r),n=fl(t),i=WX(Object.fromEntries(_a.map(s=>{let l=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,e.colors?.[l]||HX[s]]}))),a=GX();return n.map(s=>a.parse(s[0]).map(l=>{let u,c;l.decorations.has("reverse")?(u=l.background?i.value(l.background):e.bg,c=l.foreground?i.value(l.foreground):e.fg):(u=l.foreground?i.value(l.foreground):e.fg,c=l.background?i.value(l.background):void 0),u=xo(u,o),c=xo(c,o),l.decorations.has("dim")&&(u=KX(u));let d=Bt.None;return l.decorations.has("bold")&&(d|=Bt.Bold),l.decorations.has("italic")&&(d|=Bt.Italic),l.decorations.has("underline")&&(d|=Bt.Underline),l.decorations.has("strikethrough")&&(d|=Bt.Strikethrough),{content:l.value,offset:s[1],color:u,bgColor:c,fontStyle:d}}))}function KX(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let o=t[1];if(o.length===8){let n=Math.round(Number.parseInt(o.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${o.slice(0,6)}${n}`}else{if(o.length===6)return`#${o}80`;if(o.length===4){let n=o[0],i=o[1],a=o[2],s=o[3];return`#${n}${n}${i}${i}${a}${a}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}else if(o.length===3){let n=o[0],i=o[1],a=o[2];return`#${n}${n}${i}${i}${a}${a}80`}}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function U_(e,t,r={}){let o=e.resolveLangAlias(r.lang||"text"),{theme:n=e.getLoadedThemes()[0]}=r;if(!md(o)&&!fd(n)&&o==="ansi"){let{theme:i}=e.setTheme(n);return JX(i,t,r)}return E_(e,t,r)}function jh(e,t,r){let o,n,i,a,s,l;if("themes"in r){let{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:d="css-vars"}=r,p=Object.entries(r.themes).filter(S=>S[1]).map(S=>({color:S[0],theme:S[1]})).sort((S,_)=>S.color===u?-1:_.color===u?1:0);if(p.length===0)throw new Ye("`themes` option must not be empty");let m=zh(e,t,r,U_);if(l=hl(m),u&&L_!==u&&!p.find(S=>S.color===u))throw new Ye(`\`themes\` option must contain the defaultColor key \`${u}\``);let g=p.map(S=>e.getTheme(S.theme)),x=p.map(S=>S.color);i=m.map(S=>S.map(_=>jX(_,x,c,u,d))),l&&hd(i,l);let w=p.map(S=>pd(S.theme,r));n=zM(p,g,w,c,u,"fg",d),o=zM(p,g,w,c,u,"bg",d),a=`shiki-themes ${g.map(S=>S.name).join(" ")}`,s=u?void 0:[n,o].join(";")}else if("theme"in r){let u=pd(r.theme,r);i=U_(e,t,r);let c=e.getTheme(r.theme);o=xo(c.bg,u),n=xo(c.fg,u),a=c.name,l=hl(i)}else throw new Ye("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:n,bg:o,themeName:a,rootStyle:s,grammarState:l}}function zM(e,t,r,o,n,i,a){return e.map((s,l)=>{let u=xo(t[l][i],r[l])||"inherit",c=`${o+s.color}${i==="bg"?"-bg":""}:${u}`;if(l===0&&n){if(n===L_&&e.length>1){let d=e.findIndex(m=>m.color==="light"),p=e.findIndex(m=>m.color==="dark");if(d===-1||p===-1)throw new Ye('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${xo(t[d][i],r[d])||"inherit"}, ${xo(t[p][i],r[p])||"inherit"});${c}`}return u}return a==="css-vars"?c:null}).filter(s=>!!s).join(";")}function Uh(e,t,r,o={meta:{},options:r,codeToHast:(n,i)=>Uh(e,n,i),codeToTokens:(n,i)=>jh(e,n,i)}){let n=t;for(let g of Oh(r))n=g.preprocess?.call(o,n,r)||n;let{tokens:i,fg:a,bg:s,themeName:l,rootStyle:u,grammarState:c}=jh(e,n,r),{mergeWhitespaces:d=!0,mergeSameStyleTokens:p=!1}=r;d===!0?i=YX(i):d==="never"&&(i=QX(i)),p&&(i=eY(i));let m={...o,get source(){return n}};for(let g of Oh(r))i=g.tokens?.call(m,i)||i;return XX(i,{...r,fg:a,bg:s,themeName:l,rootStyle:r.rootStyle===!1?!1:r.rootStyle??u},m,c)}function XX(e,t,r,o=hl(e)){let n=Oh(t),i=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(let[x,w]of Object.entries(t.meta||{}))x.startsWith("_")||(u[x]=w);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:i},p=[],m={...r,structure:s,addClassToHast:EM,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return c},get code(){return d},get lines(){return p}};if(e.forEach((x,w)=>{w&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&i.push({type:"text",value:` 118`}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(let b of x){let T={type:"element",tagName:"span",properties:{...b.htmlAttrs},children:[{type:"text",value:b.content}]},$=j_(b.htmlStyle||Rh(b));$&&(T.properties.style=$);for(let C of n)T=C?.span?.call(m,T,w+1,_,S,b)||T;s==="inline"?a.children.push(T):s==="classic"&&S.children.push(T),_+=b.content.length}if(s==="classic"){for(let b of n)S=b?.line?.call(m,S,w+1)||S;p.push(S),i.push(S)}else s==="inline"&&p.push(S)}),s==="classic"){for(let x of n)d=x?.code?.call(m,d)||d;c.children.push(d);for(let x of n)c=x?.pre?.call(m,c)||c;a.children.push(c)}else if(s==="inline"){let x=[],w={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let _ of a.children)_.type==="element"&&_.tagName==="br"?(x.push(w),w={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(_.type==="element"||_.type==="text")&&w.children.push(_);x.push(w);let S={type:"element",tagName:"code",properties:{},children:x};for(let _ of n)S=_?.code?.call(m,S)||S;a.children=[];for(let _=0;_<S.children.length;_++){_>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let b=S.children[_];b.type==="element"&&a.children.push(...b.children)}}let g=a;for(let x of n)g=x?.root?.call(m,g)||g;return o&&hd(g,o),g}function YX(e){return e.map(t=>{let r=[],o="",n;return t.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&Bt.Underline||i.fontStyle&Bt.Strikethrough));s&&i.content.match(/^\s+$/)&&t[a+1]?(n===void 0&&(n=i.offset),o+=i.content):o?(s?r.push({...i,offset:n,content:o+i.content}):r.push({content:o,offset:n},i),n=void 0,o=""):r.push(i)}),r})}function QX(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;let o=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!o)return r;let[,n,i,a]=o;if(!n&&!a)return r;let s=[{...r,offset:r.offset+n.length,content:i}];return n&&s.unshift({content:n,offset:r.offset}),a&&s.push({content:a,offset:r.offset+n.length+i.length}),s}))}function eY(e){return e.map(t=>{let r=[];for(let o of t){if(r.length===0){r.push({...o});continue}let n=r[r.length-1],i=j_(n.htmlStyle||Rh(n)),a=j_(o.htmlStyle||Rh(o)),s=n.fontStyle&&(n.fontStyle&Bt.Underline||n.fontStyle&Bt.Strikethrough),l=o.fontStyle&&(o.fontStyle&Bt.Underline||o.fontStyle&Bt.Strikethrough);!s&&!l&&i===a?n.content+=o.content:r.push({...o})}return r})}var tY=R_;function rY(e,t,r){let o={meta:{},options:r,codeToHast:(i,a)=>Uh(e,i,a),codeToTokens:(i,a)=>jh(e,i,a)},n=tY(Uh(e,t,r,o));for(let i of Oh(r))n=i.postprocess?.call(o,n,r)||n;return n}async function MM(e){let t=await z_(e);return{getLastGrammarState:(...r)=>lM(t,...r),codeToTokensBase:(r,o)=>U_(t,r,o),codeToTokensWithThemes:(r,o)=>zh(t,r,o),codeToTokens:(r,o)=>jh(t,r,o),codeToHast:(r,o)=>Uh(t,r,o),codeToHtml:(r,o)=>rY(t,r,o),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var DM=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:o,regexConstructor:n}=t;if(!n)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(i=>
118{if(typeof i!="string")return i;let a=o?.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{let s=n(i);return o?.set(i,s),s}catch(s){if(o?.set(i,s),r)return null;throw s}})}findNextMatchSync(e,t,r){let o=typeof e=="string"?e:e.content,n=[];function i(a,s,l=0){return{index:a,captureIndices:s.indices.map(u=>u==null?{start:4294967295,end:4294967295,length:0}:{start:u[0]+l,end:u[1]+l,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){let s=this.regexps[a];if(s)try{s.lastIndex=t;let l=s.exec(o);if(!l)continue;if(l.index===t)return i(a,l,0);n.push([a,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(n.length){let a=Math.min(...n.map(s=>s[1].index));for(let[s,l,u]of n)if(l.index===a)return i(s,l,u)}return null}};function _i(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function NM(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var vd=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),St=String.raw;function _o(e,t){if(e==null)throw new Error(t??"Value expected");return e}var FM=St`\[\^?`,BM=`c.? | C(?:-.?)?|${St`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${St`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${St`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${St`o\{[^\}]*\}?`}|${St`\d{1,3}`}`,B_=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Lh=new RegExp(St` 119 \\ (?: 120 ${BM} 121 | [gk]<[^>]*>? 122 | [gk]'[^']*'? 123 | . 124 ) 125 | \( (?: 126 \? (?: 127 [:=!>({] 128 | <[=!] 129 | <[^>]*> 130 | '[^']*' 131 | ~\|? 132 | #(?:[^)\\]|\\.?)* 133 | [^:)]*[:)] 134 )? 135 | \*[^\)]*\)? 136 )? 137 | (?:${B_.source})+ 138 | ${FM} 139 | . 140`.replace(/\s+/g,""),"gsu"),F_=new RegExp(St` 141 \\ (?: 142 ${BM} 143 | . 144 ) 145 | \[:(?:\^?\p{Alpha}+|\^):\] 146 | ${FM} 147 | && 148 | . 149`.replace(/\s+/g,""),"gsu");function ZM(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");let o=wY(r.flags),n=[o.extended],i={captureGroup:r.rules.captureGroup,getCurrentModX(){return n.at(-1)},numOpenGroups:0,popModX(){n.pop()},pushModX(d){n.push(d)},replaceCurrentModX(d){n[n.length-1]=d},singleline:r.rules.singleline},a=[],s;for(Lh.lastIndex=0;s=Lh.exec(e);){let d=nY(i,e,s[0],Lh.lastIndex);d.tokens?a.push(...d.tokens):d.token&&a.push(d.token),d.lastIndex!==void 0&&(Lh.lastIndex=d.lastIndex)}let l=[],u=0;a.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++u:d.raw==="("&&l.push(d)}),u||l.forEach((d,p)=>{d.kind="capturing",d.number=p+1});let c=u||l.length;return{tokens:a.map(d=>d.type==="EscapedNumber"?kY(d,c):d).flat(),flags:o}}function nY(e,t,r,o){let[n,i]=r;if(r==="["||r==="[^"){let a=oY(t,r,o);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(n==="\\"){if("AbBGyYzZ".includes(i))return{token:RM(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:fY(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:GM(r)}}if(i==="K")return{token:qM("keep",r)};if(i==="N"||i==="R")return{token:ka("newline",r,{negate:i==="N"})};if(i==="O")return{token:ka("any",r)};if(i==="X")return{token:ka("text_segment",r)};let a=VM(r,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(n==="("){if(i==="*")return{token:yY(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[o]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:o+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:vY(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:gl("group",r)};if(r==="(?>")return{token:gl("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:gl(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:gl("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:gl("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:dY(r)}}if(e.getCurrentModX()){if(r==="#"){let a=t.indexOf(` 150`,o);return{lastIndex:a===-1?t.length:a}}if(/^\s$/.test(r)){let a=/\s+/y;return a.lastIndex=o,{lastIndex:a.exec(t)?a.lastIndex:o}}}if(r===".")return{token:ka("dot",r)};if(r==="^"||r==="$"){let a=e.singleline?{"^":St`\A`,$:St`\Z`}[r]:r;return{token:RM(a,r)}}return r==="|"?{token:aY(r)}:B_.test(r)?{tokens:SY(r)}:{token:ko(_i(r),r)}}function oY(e,t,r){let o=[OM(t[1]==="^",t)],n=1,i;for(F_.lastIndex=r;i=F_.exec(e);){let a=i[0];if(a[0]==="["&&a[1]!==":")n++,o.push(OM(a[1]==="^",a));else if(a==="]"){if(o.at(-1).type==="CharacterClassOpen")o.push(ko(93,a));else if(n--,o.push(sY(a)),!n)break}else{let s=iY(a);Array.isArray(s)?o.push(...s):o.push(s)}}return{tokens:o,lastIndex:F_.lastIndex||e.length}}function iY(e){if(e[0]==="\\")return VM(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!vd.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ka("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?lY(e):e==="&&"?uY(e):ko(_i(e),e)}
vendor: 18,125 bytes, line 150
150function VM(e,{inCharClass:t}){let r=e[1];if(r==="c"||r==="C")return gY(e);if("dDhHsSwW".includes(r))return bY(e);if(e.startsWith(St`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return xY(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let o=e.split(/\\x/).slice(1).map(a=>parseInt(a,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(o)),i=new TextEncoder;return[...n].map(a=>{let s=[...i.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return ko(_i(a),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return ko(_Y(e),e);if(jM.has(r))return ko(jM.get(r),e);if(/\d/.test(r))return cY(t,e);if(e==="\\")throw new Error(St`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return ko(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function aY(e){return{type:"Alternator",raw:e}}function RM(e,t){return{type:"Assertion",kind:e,raw:t}}function GM(e){return{type:"Backreference",raw:e}}function ko(e,t){return{type:"Character",value:e,raw:t}}function sY(e){return{type:"CharacterClassClose",raw:e}}function lY(e){return{type:"CharacterClassHyphen",raw:e}}function uY(e){return{type:"CharacterClassIntersector",raw:e}}function OM(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ka(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function qM(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:_o(r.flags),raw:t}}function cY(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function dY(e){return{type:"GroupClose",raw:e}}function gl(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function pY(e,t,r,o){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:o}}function mY(e,t,r,o){return{type:"Quantifier",kind:e,min:t,max:r,raw:o}}function fY(e){return{type:"Subroutine",raw:e}}var hY=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),jM=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function gY(e){let t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return ko(_i(t.toUpperCase())-64,e)}function vY(e,t){let{on:r,off:o}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;o??="";let n=(t.getCurrentModX()||r.includes("x"))&&!o.includes("x"),i=LM(r),a=LM(o),s={};if(i&&(s.enable=i),a&&(s.disable=a),e.endsWith(")"))return t.replaceCurrentModX(n),qM("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(n),t.numOpenGroups++,gl("group",e,{...(i||a)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function yY(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:o,args:n}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(o==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);let i=n?n.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[a,s,l]=i,u=hY.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(i.length>0)throw new Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(i.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return pY(u,o??null,n?.split(",")??null,e)}function UM(e){let t=null,r,o;if(e[0]==="{"){let{minStr:n,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,a=1e5;if(+n>a||i&&+i>a)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+n,o=i===void 0?+n:i===""?1/0:+i,r>o&&(t="possessive",[r,o]=[o,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,o=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return mY(t,r,o,e)}function bY(e){let t=e[1].toLowerCase();return ka({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function xY(e){let{p:t,neg:r,value:o}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return ka("property",e,{value:o,negate:t==="P"&&!r||t==="p"&&!!r})}function LM(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function wY(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let o=e[r];if(!"imxDPSWy".includes(o))throw new Error(`Invalid flag "${o}"`);if(o==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[o]]=!0}return t}function _Y(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw new Error(`Incomplete or invalid escape "${e}"`);let t=e[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function kY(e,t){let{raw:r,inCharClass:o}=e,n=r.slice(1);if(!o&&(n!=="0"&&n.length===1||n[0]!=="0"&&+n<=t))return[GM(r)];let i=[],a=n.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){let l=a[s],u;if(s===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(St`Octal encoded byte above 177 unsupported "${r}"`)}else u=_i(l);i.push(ko(u,(s===0?"\\":"")+l))}return i}function SY(e){let t=[],r=new RegExp(B_,"gy"),o;for(;o=r.exec(e);){let n=o[0];if(n[0]==="{"){let i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(n);if(i){let{min:a,max:s}=i.groups;if(+a>+s&&n.endsWith("?")){r.lastIndex--,t.push(UM(n.slice(0,-1)));continue}}}t.push(UM(n))}return t}function Fh(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;let r=e.body[0];return!t||Object.keys(t).every(o=>t[o]===r[o])}function WM(e){return $Y.has(e.type)}var $Y=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Zh(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},o=ZM(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),n=(p,m)=>{let g=o.tokens[i.nextIndex];switch(i.parent=p,i.nextIndex++,g.type){case"Alternator":return So();case"Assertion":return IY(g);case"Backreference":return TY(g,i);case"Character":return vl(g.value,{useLastValid:!!m.isCheckingRangeEnd});case"CharacterClassHyphen":return PY(g,i,m);case"CharacterClassOpen":return CY(g,i,m);case"CharacterSet":return zY(g,i);case"Directive":return RY(g.kind,{flags:g.flags});case"GroupOpen":return EY(g,i,m);case"NamedCallout":return jY(g.kind,g.tag,g.arguments);case"Quantifier":return AY(g,i);case"Subroutine":return MY(g,i);default:throw new Error(`Unexpected token type "${g.type}"`)}},i={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:o.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:n},a=LY(OY(o.flags)),s=a.body[0];for(;i.nextIndex<o.tokens.length;){let p=n(s,{});p.type==="Alternative"?(a.body.push(p),s=p):s.body.push(p)}let{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:c,subroutines:d}=i;if(u&&c.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:p}of d)if(typeof p=="number"){if(p>l.length)throw new Error("Subroutine uses a group number that's not defined");p&&(l[p-1].isSubroutined=!0)}else if(c.has(p)){if(c.get(p).length>1)throw new Error(St`Subroutine uses a duplicate group name "\g<${p}>"`);c.get(p)[0].isSubroutined=!0}else throw new Error(St`Subroutine uses a group name that's not defined "\g<${p}>"`);return a}function IY({kind:e}){return Vh(_o({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===St`\B`||e===St`\Y`})}function TY({raw:e},t){let r=/^\\k[<']/.test(e),o=r?e.slice(3,-1):e.slice(1),n=(i,a=!1)=>{let s=t.capturingGroups.length,l=!1;if(i>s)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Bh(a?s+1-i:i,{orphan:l})};if(r){let i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(o);if(i)return n(+i.groups.num,!!i.groups.sign);if(/[-+]/.test(o))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(o))throw new Error(`Group name not defined to the left "${e}"`);return Bh(o)}return n(+o)}function PY(e,t,r){let{tokens:o,walk:n}=t,i=t.parent,a=i.body.at(-1),s=o[t.nextIndex];if(!r.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){let l=n(i,{...r,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return i.body.pop(),NY(a,l);throw new Error("Invalid character class range")}return vl(_i("-"))}function CY({negate:e},t,r){let{tokens:o,walk:n}=t,i=o[t.nextIndex],a=[yd()],s=KM(i);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")a.push(yd()),t.nextIndex++;else{let u=a.at(-1);u.body.push(n(u,r))}s=KM(o[t.nextIndex],i)}let l=yd({negate:e});return a.length===1?l.body=a[0].body:(l.kind="intersection",l.body=a.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function zY({kind:e,negate:t,value:r},o){let{normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:a}=o;if(e==="property"){let s=yl(r);if(vd.has(s)&&!a?.has(s))e="posix",r=s;else return Sa(r,{negate:t,normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:a})}return e==="posix"?UY(r,{negate:t}):Gh(e,{negate:t})}function EY(e,t,r){let{tokens:o,capturingGroups:n,namedGroupsByName:i,skipLookbehindValidation:a,walk:s}=t,l=FY(e),u=l.type==="AbsenceFunction",c=JM(l),d=c&&l.negate;if(l.type==="CapturingGroup"&&(n.push(l),l.name&&NM(i,l.name,[]).push(l)),u&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let p=XM(o[t.nextIndex]);for(;p.type!=="GroupClose";){if(p.type==="Alternator")l.body.push(So()),t.nextIndex++;else{let m=l.body.at(-1),g=s(m,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||c,isInNegLookbehind:r.isInNegLookbehind||d});if(m.body.push(g),(c||r.isInLookbehind)&&!a){let x="Lookbehind includes a pattern not allowed by Oniguruma";if(d||r.isInNegLookbehind){if(HM(g)||g.type==="CapturingGroup")throw new Error(x)}else if(HM(g)||JM(g)&&g.negate)throw new Error(x)}}p=XM(o[t.nextIndex])}return t.nextIndex++,l}function AY({kind:e,min:t,max:r},o){let n=o.parent,i=n.body.at(-1);if(!i||!WM(i))throw new Error("Quantifier requires a repeatable token");let a=V_(e,t,r,i);return n.body.pop(),a}function MY({raw:e},t){let{capturingGroups:r,subroutines:o}=t,n=e.slice(3,-1),i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(n);if(i){let s=+i.groups.num,l=r.length;if(t.hasNumberedRef=!0,n={"":s,"+":l+s,"-":l+1-s}[i.groups.sign],n<1)throw new Error("Invalid subroutine number")}else n==="0"&&(n=0);let a=G_(n);return o.push(a),a}function DY(e,t){if(e!=="repeater")throw new Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:bd(t?.body)}}function So(e){return{type:"Alternative",body:YM(e?.body)}}function Vh(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function Bh(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function Z_(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!BY(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:bd(t?.body)}}function vl(e,t){let r={useLastValid:!1,...t};if(e>1114111){let o=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${o}}"`):new Error(`Invalid code point out of range in JS "\\x{${o}}"`)}return{type:"Character",value:e}}function yd(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:YM(e?.body)}}function NY(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Gh(e,t){let r=!!t?.negate,o={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(o.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(o.variableLength=!0),o}function RY(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:_o(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function OY(e){return{type:"Flags",...e}}function jr(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:bd(e?.body)}}function ki(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:bd(e?.body)}}function jY(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function UY(e,t){let r=!!t?.negate;if(!vd.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function V_(e,t,r,o){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:o}}function LY(e,t){return{type:"Regex",body:bd(t?.body),flags:e}}function G_(e){return{type:"Subroutine",ref:e}}function Sa(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},o=r.unicodePropertyMap?.get(yl(e));if(!o){if(r.normalizeUnknownPropertyNames)o=ZY(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(St`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:o??e,negate:r.negate}}function FY({flags:e,kind:t,name:r,negate:o,number:n}){switch(t){case"absence_repeater":return DY("repeater");case"atomic":return jr({atomic:!0});case"capturing":return Z_(n,{name:r});case"group":return jr({flags:e});case"lookahead":case"lookbehind":return ki({behind:t==="lookbehind",negate:o});default:throw new Error(`Unexpected group kind "${t}"`)}}function bd(e){if(e===void 0)e=[So()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function YM(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function HM(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function JM(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function BY(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function ZY(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function yl(e){return e.replace(/[- _]+/g,"").toLowerCase()}function KM(e,t){return _o(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function XM(e){return _o(e,"Unclosed group")}function $a(e,t,r=null){function o(i,a){for(let s=0;s<i.length;s++){let l=n(i[s],a,s,i);s=Math.max(-1,s+l)}}function n(i,a=null,s=null,l=null){let u=0,c=!1,d={node:i,parent:a,key:s,container:l,root:e,remove(){qh(l).splice(Math.max(0,bl(s)+u),1),u--,c=!0},removeAllNextSiblings(){return qh(l).splice(bl(s)+1)},removeAllPrevSiblings(){let S=bl(s)+u;return u-=S,qh(l).splice(0,Math.max(0,S))},replaceWith(S,_={}){let b=!!_.traverse;l?l[Math.max(0,bl(s)+u)]=S:_o(a,"Can't replace root node")[s]=S,b&&n(S,a,s,l),c=!0},replaceWithMultiple(S,_={}){let b=!!_.traverse;if(qh(l).splice(Math.max(0,bl(s)+u),1,...S),u+=S.length-1,b){let T=0;for(let $=0;$<S.length;$++)T+=n(S[$],a,bl(s)+$+T,l)}
vendor: 6,783 bytes, lines 150-165
150c=!0},skip(){c=!0}},{type:p}=i,m=t["*"],g=t[p],x=typeof m=="function"?m:m?.enter,w=typeof g=="function"?g:g?.enter;if(x?.(d,r),w?.(d,r),!c)switch(p){case"AbsenceFunction":case"CapturingGroup":case"Group":o(i.body,i);break;case"Alternative":case"CharacterClass":o(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":n(i.min,i,"min"),n(i.max,i,"max");break;case"LookaroundAssertion":o(i.body,i);break;case"Quantifier":n(i.body,i,"body");break;case"Regex":o(i.body,i),n(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${p}"`)}return g?.exit?.(d,r),m?.exit?.(d,r),u}return n(e),e}function qh(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function bl(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}var QM=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function eD(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function tD(e,t,r,o){return e.slice(0,t)+o+e.slice(t+r.length)}var _r=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function xd(e,t,r,o){let n=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1],a=0,s="";for(let l of e.matchAll(n)){let{0:u,groups:{$skip:c}}=l;if(!c&&(!o||o===_r.DEFAULT==!a)){r instanceof Function?s+=r(l,{context:a?_r.CHAR_CLASS:_r.DEFAULT,negated:i[i.length-1]}):s+=r;continue}u[0]==="["?(a++,i.push(u[1]==="^")):u==="]"&&a&&(a--,i.pop()),s+=u}return s}function q_(e,t,r,o){xd(e,t,r,o)}function VY(e,t,r=0,o){if(!new RegExp(t,"su").test(e))return null;let n=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");n.lastIndex=r;let i=0,a;for(;a=n.exec(e);){let{0:s,groups:{$skip:l}}=a;if(!l&&(!o||o===_r.DEFAULT==!i))return a;s==="["?i++:s==="]"&&i&&i--,n.lastIndex==a.index&&n.lastIndex++}return null}function wd(e,t,r){return!!VY(e,t,0,r)}function rD(e,t){let r=/\\?./gsu;r.lastIndex=t;let o=e.length,n=0,i=1,a;for(;a=r.exec(e);){let[s]=a;if(s==="[")n++;else if(n)s==="]"&&n--;else if(s==="(")i++;else if(s===")"&&(i--,!i)){o=a.index;break}}return e.slice(t,o)}var nD=new RegExp(String.raw`(?<noncapturingStart>${QM})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function H_(e,t){let r=t?.hiddenCaptures??[],o=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:r};let n="(?>",i="(?:(?=(",a=[0],s=[],l=0,u=0,c=NaN,d;do{d=!1;let p=0,m=0,g=!1,x;for(nD.lastIndex=Number.isNaN(c)?0:c+i.length;x=nD.exec(e);){let{0:w,index:S,groups:{capturingStart:_,noncapturingStart:b}}=x;if(w==="[")p++;else if(p)w==="]"&&p--;else if(w===n&&!g)c=S,g=!0;else if(g&&b)m++;else if(_)g?m++:(l++,a.push(l+u));else if(w===")"&&g){if(!m){u++;let T=l+u;if(e=`${e.slice(0,c)}${i}${e.slice(c+n.length,S)}))<$$${T}>)${e.slice(S+1)}`,d=!0,s.push(T),eD(r,T),o.size){let $=new Map;o.forEach((C,M)=>{$.set(M>=T?M+1:M,C.map(R=>R>=T?R+1:R))}),o=$}break}m--}}}while(d);return r.push(...s),e=xd(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:p,groups:{backrefNum:m,wrappedBackrefNum:g}})=>{if(m){let x=+m;if(x>a.length-1)throw new Error(`Backref "${p}" greater than number of captures`);return`\\${a[x]}`}return`\\${g}`},_r.DEFAULT),{pattern:e,captureTransfers:o,hiddenCaptures:r}}var oD=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,W_=new RegExp(String.raw` 151\\(?: \d+ 152 | c[A-Za-z] 153 | [gk]<[^>]+> 154 | [pPu]\{[^\}]+\} 155 | u[A-Fa-f\d]{4} 156 | x[A-Fa-f\d]{2} 157 ) 158| \((?: \? (?: [:=!>] 159 | <(?:[=!]|[^>]+>) 160 | [A-Za-z\-]+: 161 | \(DEFINE\) 162 ))? 163| (?<qBase>${oD})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 164| \\?. 165`.replace(/\s+/g,""),"gsu");function J_(e){if(!new RegExp(`${oD}\\+`).test(e))return{pattern:e};let t=[],r=null,o=null,n="",i=0,a;for(W_.lastIndex=0;a=W_.exec(e);){let{0:s,index:l,groups:{qBase:u,qMod:c,invalidQ:d}}=a;if(s==="[")i||(o=l),i++;else if(s==="]")i?i--:o=null;else if(!i)if(c==="+"&&n&&!n.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${s}"`);let p=-1;if(/^\{\d+\}$/.test(u))e=tD(e,l+u.length,c,"");else{if(n===")"||n==="]"){let m=n===")"?r:o;if(m===null)throw new Error(`Invalid unmatched "${n}"`);e=`${e.slice(0,m)}(?>${e.slice(m,l)}${u})${e.slice(l+s.length)}`}else e=`${e.slice(0,l-n.length)}(?>${n}${u})${e.slice(l+s.length)}`;p+=4}W_.lastIndex+=p}else s[0]==="("?t.push(l):s===")"&&(r=t.length?t.pop():null);n=s}return{pattern:e}}var en=String.raw,GY=en`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,X_=en`\(\?R=(?<rDepth>[^\)]+)\)|${GY}`,Wh=en`\(\?<(?![=!])(?<captureName>[^>]+)>`,uD=en`${Wh}|(?<unnamed>\()(?!\?)`,Ia=new RegExp(en`${Wh}|${X_}|\(\?|\\?.`,"gsu"),K_="Cannot use multiple overlapping recursions";function cD(e,t){let{hiddenCaptures:r,mode:o}={hiddenCaptures:[],mode:"plugin",...t},n=t?.captureTransfers??new Map;if(!new RegExp(X_,"su").test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};if(o==="plugin"&&wd(e,en`\(\?\(DEFINE\)`,_r.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let i=[],a=wd(e,en`\\[1-9]`,_r.DEFAULT),s=new Map,l=[],u=!1,c=0,d=0,p;for(Ia.lastIndex=0;p=Ia.exec(e);){let{0:m,groups:{captureName:g,rDepth:x,gRNameOrNum:w,gRDepth:S}}=p;if(m==="[")c++;else if(c)m==="]"&&c--;else if(x){if(iD(x),u)throw new Error(K_);if(a)throw new Error(`${o==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let _=e.slice(0,p.index),b=e.slice(Ia.lastIndex);if(wd(b,X_,_r.DEFAULT))throw new Error(K_);let T=+x-1;e=aD(_,b,T,!1,r,i,d),n=lD(n,_,T,i.length,0,d);break}else if(w){iD(S);let _=!1;for(let ae of l)if(ae.name===w||ae.num===+w){if(_=!0,ae.hasRecursedWithin)throw new Error(K_);break}if(!_)throw new Error(en`Recursive \g cannot be used outside the referenced group "${o==="external"?w:en`\g<${w}&R=${S}>`}"`);let b=s.get(w),T=rD(e,b);if(a&&wd(T,en`${Wh}|\((?!\?)`,_r.DEFAULT))throw new Error(`${o==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let $=e.slice(b,p.index),C=T.slice($.length+m.length),M=i.length,R=+S-1,N=aD($,C,R,!0,r,i,d);n=lD(n,$,R,i.length-M,M,d);let j=e.slice(0,b),oe=e.slice(b+T.length);e=`${j}${N}${oe}`,Ia.lastIndex+=N.length-m.length-$.length-C.length,l.forEach(ae=>ae.hasRecursedWithin=!0),u=!0}else if(g)d++,s.set(String(d),Ia.lastIndex),s.set(g,Ia.lastIndex),l.push({num:d,name:g});else if(m[0]==="("){let _=m==="(";_&&(d++,s.set(String(d),Ia.lastIndex)),l.push(_?{num:d}:{})}else m===")"&&l.pop()}return r.push(...i),{pattern:e,captureTransfers:n,hiddenCaptures:r}}function iD(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function aD(e,t,r,o,n,i,a){let s=new Set;o&&q_(e+t,Wh,({groups:{captureName:u}})=>{s.add(u)},_r.DEFAULT);let l=[r,o?s:null,n,i,a];return`${e}${sD(`(?:${e}`,"forward",...l)}
165(?:)${sD(`${t})`,"backward",...l)}${t}`}function sD(e,t,r,o,n,i,a){let l=c=>t==="forward"?c+2:r-c+2-1,u="";for(let c=0;c<r;c++){let d=l(c);u+=xd(e,en`${uD}|\\k<(?<backref>[^>]+)>`,({0:p,groups:{captureName:m,unnamed:g,backref:x}})=>{if(x&&o&&!o.has(x))return p;let w=`_$${d}`;if(g||m){let S=a+i.length+1;return i.push(S),qY(n,S),g?p:`(?<${m}${w}>`}return en`\k<${x}${w}>`},_r.DEFAULT)}return u}function qY(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function lD(e,t,r,o,n,i){if(e.size&&o){let a=0;q_(t,uD,()=>a++,_r.DEFAULT);let s=i-a+n,l=new Map;return e.forEach((u,c)=>{let d=(o-a*r)/r,p=a*r,m=c>s+a?c+o:c,g=[];for(let x of u)if(x<=s)g.push(x);else if(x>s+a+d)g.push(x+o);else if(x<=s+a)for(let w=0;w<=r;w++)g.push(x+a*w);else for(let w=0;w<=r;w++)g.push(x+p+d*w);l.set(m,g)}),l}return e}var zt=String.fromCodePoint,_e=String.raw,vn={},Jh=globalThis.RegExp;vn.flagGroups=(()=>{try{new Jh("(?i:)")}catch{return!1}return!0})();vn.unicodeSets=(()=>{try{new Jh("[[]]","v")}catch{return!1}return!0})();vn.bugFlagVLiteralHyphenIsRange=vn.unicodeSets?(()=>{try{new Jh(_e`[\d\-a]`,"v")}catch{return!0}return!1})():!1;vn.bugNestedClassIgnoresNegation=vn.unicodeSets&&new Jh("[[^a]]","v").test("a");function Hh(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function _d(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function rk(e,t){return dD[e]>=dD[t]}function WY(e,t){if(e==null)throw new Error(t??"Value expected");return e}var dD={ES2025:2025,ES2024:2024,ES2018:2018},HY={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function gD(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");
vendor: 2,274 bytes, lines 165-247
165if(e.target!==void 0&&!HY[e.target])throw new Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=vn.flagGroups?"ES2025":vn.unicodeSets?"ES2024":"ES2018"),t}var JY="[ -\r ]",KY=new Set([zt(304),zt(305)]),$o=_e`[\p{L}\p{M}\p{N}\p{Pc}]`;function vD(e){if(KY.has(e))return[e];let t=new Set,r=e.toLowerCase(),o=r.toUpperCase(),n=QY.get(r),i=XY.get(r),a=YY.get(r);return[...o].length===1&&t.add(o),a&&t.add(a),n&&t.add(n),t.add(r),i&&t.add(i),[...t]}var ok=new Map(`C Other 166Cc Control cntrl 167Cf Format 168Cn Unassigned 169Co Private_Use 170Cs Surrogate 171L Letter 172LC Cased_Letter 173Ll Lowercase_Letter 174Lm Modifier_Letter 175Lo Other_Letter 176Lt Titlecase_Letter 177Lu Uppercase_Letter 178M Mark Combining_Mark 179Mc Spacing_Mark 180Me Enclosing_Mark 181Mn Nonspacing_Mark 182N Number 183Nd Decimal_Number digit 184Nl Letter_Number 185No Other_Number 186P Punctuation punct 187Pc Connector_Punctuation 188Pd Dash_Punctuation 189Pe Close_Punctuation 190Pf Final_Punctuation 191Pi Initial_Punctuation 192Po Other_Punctuation 193Ps Open_Punctuation 194S Symbol 195Sc Currency_Symbol 196Sk Modifier_Symbol 197Sm Math_Symbol 198So Other_Symbol 199Z Separator 200Zl Line_Separator 201Zp Paragraph_Separator 202Zs Space_Separator 203ASCII 204ASCII_Hex_Digit AHex 205Alphabetic Alpha 206Any 207Assigned 208Bidi_Control Bidi_C 209Bidi_Mirrored Bidi_M 210Case_Ignorable CI 211Cased 212Changes_When_Casefolded CWCF 213Changes_When_Casemapped CWCM 214Changes_When_Lowercased CWL 215Changes_When_NFKC_Casefolded CWKCF 216Changes_When_Titlecased CWT 217Changes_When_Uppercased CWU 218Dash 219Default_Ignorable_Code_Point DI 220Deprecated Dep 221Diacritic Dia 222Emoji 223Emoji_Component EComp 224Emoji_Modifier EMod 225Emoji_Modifier_Base EBase 226Emoji_Presentation EPres 227Extended_Pictographic ExtPict 228Extender Ext 229Grapheme_Base Gr_Base 230Grapheme_Extend Gr_Ext 231Hex_Digit Hex 232IDS_Binary_Operator IDSB 233IDS_Trinary_Operator IDST 234ID_Continue IDC 235ID_Start IDS 236Ideographic Ideo 237Join_Control Join_C 238Logical_Order_Exception LOE 239Lowercase Lower 240Math 241Noncharacter_Code_Point NChar 242Pattern_Syntax Pat_Syn 243Pattern_White_Space Pat_WS 244Quotation_Mark QMark 245Radical 246Regional_Indicator RI 247Sentence_Terminal STerm
248Soft_Dotted SD 249Terminal_Punctuation Term 250Unified_Ideograph UIdeo 251Uppercase Upper 252Variation_Selector VS 253White_Space space 254XID_Continue XIDC 255XID_Start XIDS`.split(/\s/).map(e=>[yl(e),e])),XY=new Map([["s",zt(383)],[zt(383),"s"]]),YY=new Map([[zt(223),zt(7838)],[zt(107),zt(8490)],[zt(229),zt(8491)],[zt(969),zt(8486)]]),QY=new Map([Si(453),Si(456),Si(459),Si(498),...Y_(8072,8079),...Y_(8088,8095),...Y_(8104,8111),Si(8124),Si(8140),Si(8188)]),eQ=new Map([["alnum",_e`[\p{Alpha}\p{Nd}]`],["alpha",_e`\p{Alpha}`],["ascii",_e`\p{ASCII}`],["blank",_e`[\p{Zs}\t]`],["cntrl",_e`\p{Cc}`],["digit",_e`\p{Nd}`],["graph",_e`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",_e`\p{Lower}`],["print",_e`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",_e`[\p{P}\p{S}]`],["space",_e`\p{space}`],["upper",_e`\p{Upper}`],["word",_e`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",_e`\p{AHex}`]]);function tQ(e,t){let r=[];for(let o=e;o<=t;o++)r.push(o);return r}function Si(e){let t=zt(e);return[t.toLowerCase(),t]}function Y_(e,t){return tQ(e,t).map(r=>Si(r))}var yD=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function rQ(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};bD(e);let o={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:rk(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};$a(e,nQ,o);let n={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},i={currentFlags:n,prevFlags:null,globalFlags:n,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:o.subroutineRefMap};$a(e,oQ,i);let a={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return $a(e,iQ,a),e._originMap=i.groupOriginByCopy,e._strategy=o.strategy,e}var nQ={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:o,kind:n}=e;if(n==="repeater"){let i=jr();i.body[0].body.push(ki({negate:!0,body:o}),Sa("Any"));let a=jr();a.body[0].body.push(V_("greedy",0,1/0,i)),r(_t(a,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:o}){let n=e.body.filter(i=>i.kind==="flags");for(let i=r+1;i<t.body.length;i++){let a=t.body[i];_d(o,a,[]).push(...n)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=wD(t.get(e));if(r){let o=jr({flags:r});o.body[0].body=e.body,e.body=[_t(o,e)]}}}},Assertion({node:e,parent:t,key:r,container:o,root:n,remove:i,replaceWith:a},s){let{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:d,supportedGNodes:p,wordIsAscii:m}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")a(_t(ki({body:[So({body:[Vh("string_end")]}),So({body:[vl(10)]})]}),t));else if(l==="line_start")a(_t(Io(_e`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(p.has(e))n.flags.sticky=!0,i();else{let g=o[r-1];if(g&&dQ(g))a(_t(ki({negate:!0}),t));else{if(d)throw new Error(_e`Uses "\G" in a way that requires a subclass`);a($i(Vh("string_start"),t)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(_t(Io(_e`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!m&&!c){let g=`(?:(?<=${$o})(?!${$o})|(?<!${$o})(?=${$o}))`,x=`(?:(?<=${$o})(?=${$o})|(?<!${$o})(?!${$o}))`;a(_t(Io(u?x:g),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!ek(r)&&(r=Q_(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:o}=e;o&&!ek(o)&&(o=Q_(o,t),e.name=o),r.set(e.number,e),o&&r.set(o,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){let o=yd({body:[e]});r(_t(o,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:o,minTargetEs2024:n,digitIsAscii:i,spaceIsAscii:a,wordIsAscii:s}){let{kind:l,negate:u,value:c}=e;if(i&&(l==="digit"||c==="digit")){r($i(Gh("digit",{negate:u}),t));return}if(a&&(l==="space"||c==="space")){r(_t(tk(Io(JY),u),t));return}if(s&&(l==="word"||c==="word")){r($i(Gh("word",{negate:u}),t));return}if(l==="any")r($i(Sa("Any"),t));else if(l==="digit")r($i(Sa("Nd",{negate:u}),t));
vendor: 17,088 bytes, lines 255-258
255else if(l!=="dot")if(l==="text_segment"){if(o==="strict")throw new Error(_e`Use of "\X" requires non-strict accuracy`);let d="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",p=_e`\p{RI}{2}|${d}(?:\u200D${d})*`;r(_t(Io(_e`(?>\r\n|${n?_e`\p{RGI_Emoji}`:p}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")r($i(Sa("AHex",{negate:u}),t));else if(l==="newline")r(_t(Io(u?`[^ 256]`:`(?>\r 257?|[ 258\v\f\x85\u2028\u2029])`),t));else if(l==="posix")if(!n&&(c==="graph"||c==="print")){if(o==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[c];u&&(d=`\0-${zt(d.codePointAt(0)-1)}${zt(d.codePointAt(2)+1)}-\u{10FFFF}`),r(_t(Io(`[${d}]`),t))}else r(_t(tk(Io(eQ.get(c)),u),t));else if(l==="property")ok.has(yl(c))||(e.key="sc");else if(l==="space")r($i(Sa("space",{negate:u}),t));else if(l==="word")r(_t(tk(Io($o),u),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:o,replaceWith:n,removeAllPrevSiblings:i,removeAllNextSiblings:a}){let{kind:s,flags:l}=e;if(s==="flags")if(!l.enable&&!l.disable)o();else{let u=jr({flags:l});u.body[0].body=a(),n(_t(u,t),{traverse:!0})}else if(s==="keep"){let u=r.body[0],d=r.body.length===1&&Fh(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:r;if(t.parent!==d||d.body.length>1)throw new Error(_e`Uses "\K" in a way that's unsupported`);let p=ki({behind:!0});p.body[0].body=i(),n(_t(p,t))}else throw new Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:o}=e;if(o==="fail")r(_t(ki({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${o.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=jr();t.body[0].body.push(e.body),e.body=_t(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],o=!1,n=!1;for(let i of e.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{let a=kD(i.body);a?(o=!0,Array.isArray(a)?r.push(...a):r.push(a)):n=!0}o&&!n&&r.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:r,strategy:o}){if(t==="strict"&&r&&o)throw new Error(_e`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!ek(r)&&(r=Q_(r,t),e.ref=r)}},oQ={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:o,ref:n}=e;o||r.set(e,[...t.get(n).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:o},{groupOriginByCopy:n,groupsByName:i,multiplexCapturesToLeftByRef:a,openRefs:s,reffedNodesByReferencer:l}){let u=n.get(e);if(u&&s.has(e.number)){let d=$i(pD(e.number),t);l.set(d,s.get(e.number)),r(d);return}s.set(e.number,e),a.set(e.number,[]),e.name&&_d(a,e.name,[]);let c=a.get(e.name??e.number);for(let d=0;d<c.length;d++){let p=c[d];if(u===p.node||u&&u===p.origin||e===p.origin){c.splice(d,1);break}}if(a.get(e.number).push({node:e,origin:u}),e.name&&a.get(e.name).push({node:e,origin:u}),e.name){let d=_d(i,e.name,new Map),p=!1;if(u)p=!0;else for(let m of d.values())if(!m.hasDuplicateNameToRemove){p=!0;break}i.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:p})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Hh(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},o){let{isRecursive:n,ref:i}=e;if(n){let c=t;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===i||c.number===i)););o.reffedNodesByReferencer.set(e,c);return}let a=o.subroutineRefMap.get(i),s=i===0,l=s?pD(0):xD(a,o.groupOriginByCopy,null),u=l;if(!s){let c=wD(lQ(a,p=>p.type==="Group"&&!!p.flags)),d=c?Hh(o.globalFlags,c):o.globalFlags;aQ(d,o.currentFlags)||(u=jr({flags:uQ(d)}),u.body[0].body.push(l))}r(_t(u,t),{traverse:!s})}},iQ={Backreference({node:e,parent:t,replaceWith:r},o){if(e.orphan){o.highestOrphanBackref=Math.max(o.highestOrphanBackref,e.ref);return}let i=o.reffedNodesByReferencer.get(e).filter(a=>sQ(a,e));if(!i.length)r(_t(ki({negate:!0}),t));else if(i.length>1){let a=jr({atomic:!0,body:i.reverse().map(s=>So({body:[Bh(s.number)]}))});r(_t(a,t))}else e.ref=i[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let o=0;o<r;o++){let n=Z_();e.body.at(-1).body.push(n)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function bD(e){$a(e,{"*"({node:t,parent:r}){t.parent=r}})}function aQ(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function sQ(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let o=_D(r.parent);for(let n of o){if(n===r)break;if(n===e||SD(n,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function xD(e,t,r,o){let n=Array.isArray(e)?[]:{};for(let[i,a]of Object.entries(e))i==="parent"?n.parent=Array.isArray(r)?o:r:a&&typeof a=="object"?n[i]=xD(a,t,n,r):(i==="type"&&a==="CapturingGroup"&&t.set(n,t.get(e)??e),n[i]=a);return n}function pD(e){let t=G_(e);return t.isRecursive=!0,t}function lQ(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function Q_(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function wD(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:o})=>{t.forEach(n=>{o.enable?.[n]&&(delete r.disable[n],r.enable[n]=!0),o.disable?.[n]&&(r.disable[n]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function uQ({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function _D(e){if(!e)throw new Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function kD(e){let t=e.find(r=>r.kind==="search_start"||pQ(r,{negate:!1})||!cQ(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){let r=[];for(let o of t.body){let n=kD(o.body);if(!n)return null;Array.isArray(n)?r.push(...n):r.push(n)}return r}return null}function SD(e,t){let r=_D(e)??[];for(let o of r)if(o===t||SD(o,t))return!0;return!1}function cQ({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function dQ(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function pQ(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&Fh(e.body[0],{type:"Assertion",kind:"search_start"})}function ek(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Io(e,t){let o=Zh(e,{...t,unicodePropertyMap:ok}).body;return o.length>1||o[0].body.length>1?jr({body:o}):o[0].body[0]}function tk(e,t){return e.negate=t,e}function $i(e,t){return e.parent=t,e}function _t(e,t){return bD(e),e.parent=t,e}function mQ(e,t){let r=gD(t),o=rk(r.target,"ES2024"),n=rk(r.target,"ES2025"),i=r.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,s=null;if(!n){let m=[e.flags.ignoreCase];$a(e,fQ,{getCurrentModI:()=>m.at(-1),popModI(){m.pop()},pushModI(g){m.push(g)},setHasCasedChar(){m.at(-1)?a=!0:s=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!s)},u=e,c={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!n&&a&&s),useFlagMods:n,useFlagV:o,verbose:r.verbose};function d(m){return c.lastNode=u,u=m,WY(hQ[m.type],`Unexpected node type "${m.type}"`)(m,c,d)}let p={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return o||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],c.captureMap.forEach((m,g)=>{m.hidden&&p._hiddenCaptures.push(g),m.transferTo&&_d(p._captureTransfers,m.transferTo,[]).push(g)}),p}var fQ={"*":{enter({node:e},t){if(fD(e)){let r=t.getCurrentModI();t.pushModI(e.flags?Hh({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){fD(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ik(zt(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),$D(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&yD.has(e.value)&&t.setHasCasedChar()}},hQ={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?_e`\B`:_e`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:o,name:n,number:i}=e,a={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(a.hidden=!0,i>s.number&&(a.transferTo=s.number)),t.captureMap.set(i,a),`(${n?`?<${n}>`:""}${o.map(r).join("|")})`},Character({value:e},t){let r=zt(e),o=xl(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(o!==r)return o;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&ik(r)){let n=vD(r);return t.inCharClass?n.join(""):n.length>1?`[${n.join("")}]`:n[0]}return r},CharacterClass(e,t,r){let{kind:o,negate:n,parent:i}=e,{body:a}=e;if(o==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");vn.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&a.some(hD)&&(a=[vl(45),...a.filter(u=>!hD(u))]);let s=()=>`[${n?"^":""}${a.map(r).join(o==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||vn.bugNestedClassIgnoresNegation)&&!n){let c=a.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(c.length){let d=jr(),p=d.body[0];return d.parent=i,p.parent=d,a=a.filter(m=>!c.includes(m)),e.body=a,a.length?(e.parent=p,p.body.push(e)):d.body.pop(),c.forEach(m=>{let g=So({body:[m]});m.parent=g,g.parent=d,d.body.push(g)}),r(d)}}t.inCharClass=!0;let u=s();return t.inCharClass=!1,u}let l=a[0];if(o==="union"&&!n&&l&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(vn.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(r).join("");if(!t.useFlagV&&i.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){let r=e.min.value,o=e.max.value,n={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=xl(r,n),a=xl(o,n),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let l=$D(e);xQ(l).forEach(c=>{s.add(Array.isArray(c)?`${xl(c[0],n)}-${xl(c[1],n)}`:xl(c,n))})}return`${i}-${a}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:o},n){if(e==="dot")return n.currentFlags.dotAll?n.appliedGlobalFlags.dotAll||n.useFlagMods?".":"[^]":_e`[^\n]`;if(e==="digit")return t?_e`\D`:_e`\d`;if(e==="property"){if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&yD.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?_e`\P`:_e`\p`}{${o?`${o}=`:""}${r}}`}if(e==="word")return t?_e`\W`:_e`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:o},n,i){let a=n.currentFlags;r&&(n.currentFlags=Hh(a,r));let s=t.map(i).join("|"),l=!n.verbose&&t.length===1&&o.type!=="Quantifier"&&!e&&(!n.useFlagMods||!r)?s:`(?${wQ(e,r,n.useFlagMods)}${s})`;return n.currentFlags=a,l},LookaroundAssertion({body:e,kind:t,negate:r},o,n){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(n).join("|")})`},Quantifier(e,t,r){return r(e.body)+_Q(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");let o=r.recursionLimit;return t===0?`(?R=${o})`:_e`\g<${t}&R=${o}>`}},gQ=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),vQ=new Set(["-","\\","]","^","["]),yQ=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),mD=new Map([[9,_e`\t`],[10,_e`\n`],[11,_e`\v`],[12,_e`\f`],[13,_e`\r`],[8232,_e`\u2028`],[8233,_e`\u2029`],[65279,_e`\uFEFF`]]),bQ=/^\p{Cased}$/u;function ik(e){return bQ.test(e)}function $D(e,t){let r=!!t?.firstOnly,o=e.min.value,n=e.max.value,i=[];if(o<65&&(n===65535||n>=131071)||o===65536&&n>=131071)return i;for(let a=o;a<=n;a++){let s=zt(a);if(!ik(s))continue;let l=vD(s).filter(u=>{let c=u.codePointAt(0);return c<o||c>n});if(l.length&&(i.push(...l),r))break}return i}function xl(e,{escDigit:t,inCharClass:r,useFlagV:o}){if(mD.has(e))return mD.get(e);if(e<32||e>126&&e<160||e>262143||t&&kQ(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let n=r?o?yQ:vQ:gQ,i=zt(e);return(n.has(i)?"\\":"")+i}function xQ(e){let t=e.map(n=>n.codePointAt(0)).sort((n,i)=>n-i),r=[],o=null;for(let n=0;n<t.length;n++)t[n+1]===t[n]+1?o??=t[n]:o===null?r.push(t[n]):(r.push([o,t[n]]),o=null);return r}function wQ(e,t,r){if(e)return">";let o="";if(t&&r){let{enable:n,disable:i}=t;o=(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")+(i?"-":"")+(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")}return`${o}:`}function _Q({kind:e,max:t,min:r}){let o;return!r&&t===1?o="?":!r&&t===1/0?o="*":r===1&&t===1/0?o="+":r===t?o=`{${r}}`:o=`{${r},${t===1/0?"":t}}`,o+{greedy:"",lazy:"?",possessive:"+"}[e]}function fD({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function kQ(e){return e>47&&e<58}function hD({type:e,value:t}){return e==="Character"&&t===45}var SQ=class nk extends RegExp{#t=new Map;#e=null;#n;#r=null;#o=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,o){let n=!!o?.lazyCompile;if(t instanceof RegExp){if(o)throw new Error("Cannot provide options when copying a regexp");let i=t;super(i,r),this.#n=i.source,i instanceof nk&&(this.#t=i.#t,this.#r=i.#r,this.#o=i.#o,this.rawOptions=i.rawOptions)}else{let i={hiddenCaptures:[],strategy:null,transfers:[],...o};super(n?"":t,r),this.#n=t,this.#t=IQ(i.hiddenCaptures,i.transfers),this.#o=i.strategy,this.rawOptions=o??{}}n||(this.#e=this)}exec(t){if(!this.#e){let{lazyCompile:n,...i}=this.rawOptions;this.#e=new nk(this.#n,this.flags,i)}let r=this.global||this.sticky,o=this.lastIndex;if(this.#o==="clip_search"&&r&&o){this.lastIndex=0;let n=this.#i(t.slice(o));return n&&($Q(n,o,t,this.hasIndices),this.lastIndex+=o),n}return this.#i(t)}#i(t){this.#e.lastIndex=this.lastIndex;let r=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;let o=[...r];r.length=1;let n;this.hasIndices&&(n=[...r.indices],r.indices.length=1);let i=[0];for(let a=1;a<o.length;a++){let{hidden:s,transferTo:l}=this.#t.get(a)??{};if(s?i.push(null):(i.push(r.length),r.push(o[a]),this.hasIndices&&r.indices.push(n[a])),l&&o[a]!==void 0){let u=i[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=o[a],this.hasIndices&&(r.indices[u]=n[a]),r.groups){this.#r||(this.#r=TQ(this.source));let c=this.#r.get(l);c&&(r.groups[c]=o[a],this.hasIndices&&(r.indices.groups[c]=n[a]))}}}return r}};function $Q(e,t,r,o){if(e.index+=t,e.input=r,o){let n=e.indices;for(let a=0;a<n.length;a++){let s=n[a];s&&(n[a]=[s[0]+t,s[1]+t])}let i=n.groups;
vendor: 2,001 bytes, line 258
258i&&Object.keys(i).forEach(a=>{let s=i[a];s&&(i[a]=[s[0]+t,s[1]+t])})}}function IQ(e,t){let r=new Map;for(let o of e)r.set(o,{hidden:!0});for(let[o,n]of t)for(let i of n)_d(r,i,{}).transferTo=o;return r}function TQ(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,o=0,n=0,i;for(;i=t.exec(e);){let{0:a,groups:{capture:s,name:l}}=i;a==="["?o++:o?a==="]"&&o--:s&&(n++,l&&r.set(n,l))}return r}function ID(e,t){let r=PQ(e,t);return r.options?new SQ(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function PQ(e,t){let r=gD(t),o=Zh(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:ok}),n=rQ(o,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),i=mQ(n,r),a=cD(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),s=J_(a.pattern),l=H_(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),u={pattern:l.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{let c=l.hiddenCaptures.sort((g,x)=>g-x),d=Array.from(l.captureTransfers),p=n._strategy,m=u.pattern.length>=r.lazyCompileLength;(c.length||d.length||p||m)&&(u.options={...c.length&&{hiddenCaptures:c},...d.length&&{transfers:d},...p&&{strategy:p},...m&&{lazyCompile:m}})}return u}function TD(e,t){return ID(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function ak(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=r=>TD(r,{target:t.target}),{createScanner(r){return new DM(r,t)},createString(r){return{content:r}}}}var PD
vendor: 11,376 bytes, line 258
258=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#24292e","activityBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBarBadge.background":"#0366d6","activityBarBadge.foreground":"#fff","badge.background":"#044289","badge.foreground":"#c8e1ff","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#2b3036","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","debugToolBar.background":"#2b3036","descriptionForeground":"#959da5","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","editor.background":"#24292e","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.focusedStackFrameHighlightBackground":"#2b6a3033","editor.foldBackground":"#58606915","editor.foreground":"#e1e4e8","editor.inactiveSelectionBackground":"#3392FF22","editor.lineHighlightBackground":"#2b3036","editor.linkedEditingBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.stackFrameHighlightBackground":"#C6902625","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorGroup.border":"#1b1f23","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#444d56","editorIndentGuide.background":"#2f363d","editorLineNumber.activeForeground":"#e1e4e8","editorLineNumber.foreground":"#444d56","editorOverviewRuler.border":"#1b1f23","editorWarning.foreground":"#ffea7f","editorWhitespace.foreground":"#444d56","editorWidget.background":"#1f2428","errorForeground":"#f97583","focusBorder":"#005cc5","foreground":"#d1d5da","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.submoduleResourceForeground":"#6a737d","gitDecoration.untrackedResourceForeground":"#34d058","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#39414a","list.activeSelectionForeground":"#e1e4e8","list.focusBackground":"#044289","list.hoverBackground":"#282e34","list.hoverForeground":"#e1e4e8","list.inactiveFocusBackground":"#1d2d3e","list.inactiveSelectionBackground":"#282e34","list.inactiveSelectionForeground":"#e1e4e8","notificationCenterHeader.background":"#24292e","notificationCenterHeader.foreground":"#959da5","notifications.background":"#2f363d","notifications.border":"#1b1f23","notifications.foreground":"#e1e4e8","notificationsErrorIcon.foreground":"#ea4a5a","notificationsInfoIcon.foreground":"#79b8ff","notificationsWarningIcon.foreground":"#ffab70","panel.background":"#1f2428","panel.border":"#1b1f23","panelInput.border":"#2f363d","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#1f242888","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#1f2428","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","progressBar.background":"#0366d6","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","scrollbar.shadow":"#0008","scrollbarSlider.activeBackground":"#6a737d88","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","sideBarSectionHeader.foreground":"#e1e4e8","sideBarTitle.foreground":"#e1e4e8","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#d1d5da","statusBar.noFolderBackground":"#24292e","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteBackground":"#24292e","statusBarItem.remoteForeground":"#d1d5da","tab.activeBackground":"#24292e","tab.activeBorder":"#24292e","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#e1e4e8","tab.border":"#1b1f23","tab.hoverBackground":"#24292e","tab.inactiveBackground":"#1f2428","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#24292e","tab.unfocusedActiveBorderTop":"#1b1f23","tab.unfocusedHoverBackground":"#24292e","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#85e89d","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiBrightRed":"#f97583","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiBrightYellow":"#ffea7f","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#34d058","terminal.ansiMagenta":"#b392f0","terminal.ansiRed":"#ea4a5a","terminal.ansiWhite":"#d1d5da","terminal.ansiYellow":"#ffea7f","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textLink.activeForeground":"#c8e1ff","textLink.foreground":"#79b8ff","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#24292e","titleBar.activeForeground":"#e1e4e8","titleBar.border":"#1b1f23","titleBar.inactiveBackground":"#1f2428","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"GitHub Dark","name":"github-dark","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#dbedff"}}],"type":"dark"}'));
258var CD=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#fff","activityBar.border":"#e1e4e8","activityBar.foreground":"#2f363d","activityBar.inactiveForeground":"#959da5","activityBarBadge.background":"#2188ff","activityBarBadge.foreground":"#fff","badge.background":"#dbedff","badge.foreground":"#005cc5","breadcrumb.activeSelectionForeground":"#586069","breadcrumb.focusForeground":"#2f363d","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#fafbfc","button.background":"#159739","button.foreground":"#fff","button.hoverBackground":"#138934","button.secondaryBackground":"#e1e4e8","button.secondaryForeground":"#1b1f23","button.secondaryHoverBackground":"#d1d5da","checkbox.background":"#fafbfc","checkbox.border":"#d1d5da","debugToolBar.background":"#fff","descriptionForeground":"#6a737d","diffEditor.insertedTextBackground":"#34d05822","diffEditor.removedTextBackground":"#d73a4922","dropdown.background":"#fafbfc","dropdown.border":"#e1e4e8","dropdown.foreground":"#2f363d","dropdown.listBackground":"#fff","editor.background":"#fff","editor.findMatchBackground":"#ffdf5d","editor.findMatchHighlightBackgroun
258d":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackground":"#34d05840","editor.selectionHighlightBorder":"#34d05800","editor.stackFrameHighlightBackground":"#ffd33d33","editor.wordHighlightBackground":"#34d05800","editor.wordHighlightBorder":"#24943e99","editor.wordHighlightStrongBackground":"#34d05800","editor.wordHighlightStrongBorder":"#24943e50","editorBracketHighlight.foreground1":"#005cc5","editorBracketHighlight.foreground2":"#e36209","editorBracketHighlight.foreground3":"#5a32a3","editorBracketHighlight.foreground4":"#005cc5","editorBracketHighlight.foreground5":"#e36209","editorBracketHighlight.foreground6":"#5a32a3","editorBracketMatch.background":"#34d05840","editorBracketMatch.border":"#34d05800","editorCursor.foreground":"#044289","editorError.foreground":"#cb2431","editorGroup.border":"#e1e4e8","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#e1e4e8","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#d73a49","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#d7dbe0","editorIndentGuide.background":"#eff2f6","editorLineNumber.activeForeground":"#24292e","editorLineNumber.foreground":"#1b1f234d","editorOverviewRuler.border":"#fff","editorWarning.foreground":"#f9c513","editorWhitespace.foreground":"#d1d5da","editorWidget.background":"#f6f8fa","errorForeground":"#cb2431","focusBorder":"#2188ff","foreground":"#444d56","gitDecoration.addedResourceForeground":"#28a745","gitDecoration.conflictingResourceForeground":"#e36209","gitDecoration.deletedResourceForeground":"#d73a49","gitDecoration.ignoredResourceForeground":"#959da5","gitDecoration.modifiedResourceForeground":"#005cc5","gitDecoration.submoduleResourceForeground":"#959da5","gitDecoration.untrackedResourceForeground":"#28a745","input.background":"#fafbfc","input.border":"#e1e4e8","input.foreground":"#2f363d","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#e2e5e9","list.activeSelectionForeground":"#2f363d","list.focusBackground":"#cce5ff","list.hoverBackground":"#ebf0f4","list.hoverForeground":"#2f363d","list.inactiveFocusBackground":"#dbedff","list.inactiveSelectionBackground":"#e8eaed","list.inactiveSelectionForeground":"#2f363d","notificationCenterHeader.background":"#e1e4e8","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#fafbfc","notifications.border":"#e1e4e8","notifications.foreground":"#2f363d","notificationsErrorIcon.foreground":"#d73a49","notificationsInfoIcon.foreground":"#005cc5","notificationsWarningIcon.foreground":"#e36209","panel.background":"#f6f8fa","panel.border":"#e1e4e8","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#2f363d","panelTitle.inactiveForeground":"#6a737d","pickerGroup.border":"#e1e4e8","pickerGroup.foreground":"#2f363d","progressBar.background":"#2188ff","quickInput.background":"#fafbfc","quickInput.foreground":"#2f363d","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#959da588","scrollbarSlider.background":"#959da533","scrollbarSlider.hoverBackground":"#959da544","settings.headerForeground":"#2f363d","settings.modifiedItemIndicator":"#2188ff","sideBar.background":"#f6f8fa","sideBar.border":"#e1e4e8","sideBar.foreground":"#586069","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#e1e4e8","sideBarSectionHeader.foreground":"#2f363d","sideBarTitle.foreground":"#2f363d","statusBar.background":"#fff","statusBar.border":"#e1e4e8","statusBar.debuggingBackgroun
258d":"#f9826c","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#586069","statusBar.noFolderBackground":"#fff","statusBarItem.prominentBackground":"#e8eaed","statusBarItem.remoteBackground":"#fff","statusBarItem.remoteForeground":"#586069","tab.activeBackground":"#fff","tab.activeBorder":"#fff","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#2f363d","tab.border":"#e1e4e8","tab.hoverBackground":"#fff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#fff","tab.unfocusedActiveBorderTop":"#e1e4e8","tab.unfocusedHoverBackground":"#fff","terminal.ansiBlack":"#24292e","terminal.ansiBlue":"#0366d6","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#005cc5","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#22863a","terminal.ansiBrightMagenta":"#5a32a3","terminal.ansiBrightRed":"#cb2431","terminal.ansiBrightWhite":"#d1d5da","terminal.ansiBrightYellow":"#b08800","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#28a745","terminal.ansiMagenta":"#5a32a3","terminal.ansiRed":"#d73a49","terminal.ansiWhite":"#6a737d","terminal.ansiYellow":"#dbab09","terminal.foreground":"#586069","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#d1d5da","terminalCursor.foreground":"#005cc5","textBlockQuote.background":"#fafbfc","textBlockQuote.border":"#e1e4e8","textCodeBlock.background":"#f6f8fa","textLink.activeForeground":"#005cc5","textLink.foreground":"#0366d6","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#fff","titleBar.activeForeground":"#2f363d","titleBar.border":"#e1e4e8","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"GitHub Light","name":"github-light","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#005cc5"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#6f42c1"}},{"scope":"variable.parameter.function","settings":{"foreground":"#24292e"}},{"scope":"entity.name.tag","settings":{"foreground":"#22863a"}},{"scope":"keyword","settings":{"foreground":"#d73a49"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#d73a49"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#24292e"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#032f62"}},{"scope":"support","settings":{"foreground":"#005cc5"}},{"scope":"meta.property-name","settings":{"foreground":"#005cc5"}},{"scope":"variable","settings":{"foreground":"#e36209"}},{"scope":"variable.other","settings":{"foreground":"#24292e"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#005cc5"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032f62"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032f62"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#22863a"}},{"scope":"support.constant","settings":{"foreground":"#005cc5"}},{"scope":"support.variable","settings":{"foreground":"#005cc5"}},{"scope":"meta.module-reference","settings":{"foreground":"#005cc5"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e36209"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"markup.quote","settings":{"foreground":"#22863a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#24292e"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#24292e"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#005cc5"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#032f62"}}],"type":"light"}'));var CQ="https://esm.sh/@shikijs/[email protected]/",sk=null;function zQ(){return sk||(sk=MM({themes:[CD,PD],langs:[],engine:ak()})),sk}var zD=new Set,lk=new Map;async function EQ(e,t){if(zD.has(t))return;let r=lk.get(t);if(r)return r;let o=(async()=>{try{let n=await import(`${CQ}${t}.mjs`);await e.loadLanguage(n.default??n)}catch{}finally{zD.add(t),lk.delete(t)}})();return lk.set(t,o),o}async function ED(e){let t=await zQ();return await EQ(t,e),t}var AD=["github-light","github-dark"],MD=new Map,wl=new Map;function AQ(e,t,r){let o=e.slice(0,100),n=e.length>100?e.slice(-100):"";return`${t}:${r[0]}:${r[1]}:${e.length}:${o}:${n}`}function MQ(e){let t=r=>typeof r=="string"?r:r?.name??"custom";return[t(e[0]),t(e[1])]}var DD={name:"shiki",type:"code-highlighter",supportsLanguage(e){return!0},getSupportedLanguages(){return[]},getThemes(){return[AD[0],AD[1]]}
258,highlight(e,t){let{code:r,language:o}=e,n=MQ(e.themes),i=AQ(r,o,n),a=MD.get(i);return a||(t&&(wl.has(i)||wl.set(i,new Set),wl.get(i).add(t)),ED(o).then(s=>{let l=s.getLoadedLanguages().includes(o)?o:"text",u=s.codeToTokens(r,{lang:l,themes:{light:n[0],dark:n[1]}}),c={bg:u.bg??void 0,fg:u.fg??void 0,tokens:u.tokens};MD.set(i,c);let d=wl.get(i);if(d){for(let p of d)p(c);wl.delete(i)}}).catch(s=>{console.error("[streamdown-code] Failed to highlight:",s),wl.delete(i)}),null)}};function uk(e,t){return RD(e,t||{})||{type:"root",children:[]}}function RD(e,t){let r=DQ(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function DQ(e,t){switch(e.nodeType){case 1:return jQ(e,t);case 3:return RQ(e);case 8:return OQ(e);case 9:return ND(e,t);case 10:return NQ();case 11:return ND(e,t);default:return}}function ND(e,t){return{type:"root",children:OD(e,t)}}function NQ(){return{type:"doctype"}}function RQ(e){return{type:"text",value:e.nodeValue||""}}function OQ(e){return{type:"comment",value:e.nodeValue||""}}function jQ(e,t){let r=e.namespaceURI,o=r===Zd.svg?qS:GS,n=r===Zd.html?e.tagName.toLowerCase():e.tagName,i=r===Zd.html&&n==="template"?e.content:e,a=e.getAttributeNames(),s={},l=-1;for(;++l<a.length;)s[a[l]]=e.getAttribute(a[l])||"";return o(n,s,OD(i,t))}function OD(e,t){let r=e.childNodes,o=[],n=-1;for(;++n<r.length;){let i=RD(r[n],t);i!==void 0&&o.push(i)}return o}var UQ=new DOMParser;function jD(e,t){let r=t?.fragment?LQ(e):UQ.parseFromString(e,"text/html");return uk(r)}function LQ(e){let t=document.createElement("template");return t.innerHTML=e,t.content}var Kh=(function(e,t,r){let o=NS(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(o(e.children[t],t,e))return e.children[t]});var To=(function(e){if(e==null)return ZQ;if(typeof e=="string")return BQ(e);if(typeof e=="object")return FQ(e);if(typeof e=="function")return ck(e);throw new Error("Expected function, string, or array as `test`")});function FQ(e){let t=[],r=-1;for(;++r<e.length;)t[r]=To(e[r]);return ck(o);function o(...n){let i=-1;for(;++i<t.length;)if(t[i].apply(this,n))return!0;return!1}}function BQ(e){return ck(t);function t(r){return r.tagName===e}}function ck(e){return t;function t(r,o,n){return!!(VQ(r)&&e.call(this,r,typeof o=="number"?o:void 0,n||void 0))}}function ZQ(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function VQ(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}var UD=/\n/g,LD=/[\t ]+/g,dk=To("br"),FD=To(XQ),GQ=To("p"),BD=To("tr"),qQ=To(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",KQ,YQ]),ZD=To(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function pk(e,t){let r=t||{},o="children"in e?e.children:[],n=ZD(e),i=qD(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),a=[];(e.type==="text"||e.type==="comment")&&a.push(...GD(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<o.length;)a.push(...VD(o[s],e,{whitespace:i,breakBefore:s?void 0:n,breakAfter:s<o.length-1?dk(o[s+1]):n}));let l=[],u;for(s=-1;++s<a.length;){let c=a[s];typeof c=="number"?u!==void 0&&c>u&&(u=c):c&&(u!==void 0&&u>-1&&l.push(` 259`.repeat(u)||" "),u=-1,l.push(c))}return l.join("")}function VD(e,t,r){return e.type==="element"?WQ(e,t,r):e.type==="text"?r.whitespace==="normal"?GD(e,r):HQ(e):[]}function WQ(e,t,r){let o=qD(e,r),n=e.children||[],i=-1,a=[];if(qQ(e))return a;let s,l;for(dk(e)||BD(e)&&Kh(t,e,BD)?l=` 260`:GQ(e)?(s=2,l=2):ZD(e)&&(s=1,l=1);++i<n.length;)a=a.concat(VD(n[i],e,{whitespace:o,breakBefore:i?void 0:s,breakAfter:i<n.length-1?dk(n[i+1]):l}));return FD(e)&&Kh(t,e,FD)&&a.push(" "),s&&a.unshift(s),l&&a.push(l),a}function GD(e,t){let r=String(e.value),o=[],n=[],i=0;for(;i<=r.length;){UD.lastIndex=i;let l=UD.exec(r),u=l&&"index"in l?l.index:r.length;o.push(JQ(r.slice(i,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,u===r.length?t.breakAfter:!0)),i=u+1}let a=-1,s;for(;++a<o.length;
260)o[a].charCodeAt(o[a].length-1)===8203||a<o.length-1&&o[a+1].charCodeAt(0)===8203?(n.push(o[a]),s=void 0):o[a]?(typeof s=="number"&&n.push(s),n.push(o[a]),s=0):(a===0||a===o.length-1)&&n.push(0);return n}function HQ(e){return[String(e.value)]}function JQ(e,t,r){let o=[],n=0,i;for(;n<e.length;){LD.lastIndex=n;let a=LD.exec(e);i=a?a.index:e.length,!n&&!i&&a&&!t&&o.push(""),n!==i&&o.push(e.slice(n,i)),n=a?i+a[0].length:i}return n!==i&&!r&&o.push(""),o.join(" ")}function qD(e,t){if(e.type==="element"){let r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap";default:}}return t.whitespace}function KQ(e){return!!(e.properties||{}).hidden}function XQ(e){return e.tagName==="td"||e.tagName==="th"}function YQ(e){return e.tagName==="dialog"&&!(e.properties||{}).open}var W=class e extends Error{constructor(t,r){var o="KaTeX parse error: "+t,n,i,a=r&&r.loc;if(a&&a.start<=a.end){var s=a.lexer.input;n=a.start,i=a.end,n===s.length?o+=" at end of input: ":o+=" at position "+(n+1)+": ";var l=s.slice(n,i).replace(/[^]/g,"$&\u0332"),u;n>15?u="\u2026"+s.slice(n-15,n):u=s.slice(0,n);var c;i+15<s.length?c=s.slice(i,i+15)+"\u2026":c=s.slice(i),o+=u+l+c}super(o),this.name="ParseError",Object.setPrototypeOf(this,e.prototype),this.position=n,n!=null&&i!=null&&(this.length=i-n),this.rawMessage=t}},QQ=/([A-Z])/g,Zk=e=>e.replace(QQ,"-$1").toLowerCase(),eee={"&":"&",">":">","<":"<",'"':""","'":"'"},tee=/[&><"']/g,Jt=e=>String(e).replace(tee,t=>eee[t]),lg=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?lg(e.body[0]):e:e.type==="font"?lg(e.body):e,ree=new Set(["mathord","textord","atom"]),Eo=e=>ree.has(lg(e).type),nee=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Tk={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function oee(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var Td=class{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(Tk)){var o=Tk[r],n=t[r];this[r]=n!==void 0?o.processor?o.processor(n):n:oee(o)}}reportNonstrict(t,r,o){var n=this.strict;if(typeof n=="function"&&(n=n(t,r,o)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new W("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),o);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,o){var n=this.strict;if(typeof n=="function")try{n=n(t,r,o)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=nee(t.url);if(r==null)return!1;t.protocol=r}var o=typeof this.trust=="function"?this.trust(t):this.trust;return!!o}},jn=class{constructor(t,r,o){this.id=t,this.size=r,this.cramped=o}sup(){return Un[iee[this.id]]}sub(){return Un[aee[this.id]]}fracNum(){return Un[see[this.id]]}fracDen(){return Un[lee[this.id]]}cramp(){return Un[uee[this.id]]}text(){return Un[cee[this.id]]}isTight(){return this.size>=2}},Vk=0,cg=1,kl=2,zo=3,Pd=4,tn=5,Sl=6,ar=7,Un=[new jn(Vk,0,!1),new jn(cg,0,!0),new jn(kl,1,!1),new jn(zo,1,!0),new jn(Pd,2,!1),new jn(tn,2,!0),new jn(Sl,3,!1),new jn(ar,3,!0)],iee=[Pd,tn,Pd,tn,Sl,ar,Sl,ar],aee=[tn,tn,tn,tn,ar,ar,ar,ar],see=[kl,zo,Pd,tn,Sl,ar,Sl,ar],lee=[zo,zo,tn,tn,ar,ar,ar,ar],uee=[cg,cg,zo,zo,tn,tn,ar,ar],cee=[Vk,cg,kl,zo,kl,zo,kl,zo],be={DISPLAY:Un[Vk],TEXT:Un[kl],SCRIPT:Un[Pd],SCRIPTSCRIPT:Un[Sl]},Pk=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function dee(e){for(var t=0;t<Pk.length;t++)for(var r=Pk[t],o=0;o<r.blocks.length;o++){var n=r.blocks[o];if(e>=n[0]&&e<=n[1])return r.name}return null}var ug=[];
vendor: 4,440 bytes, lines 260-311
260Pk.forEach(e=>e.blocks.forEach(t=>ug.push(...t)));function _N(e){for(var t=0;t<ug.length;t+=2)if(e>=ug[t]&&e<=ug[t+1])return!0;return!1}var _l=80,pee=function(t,r){return"M95,"+(622+t+r)+` 261c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 262c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 263c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 264s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 265c69,-144,104.5,-217.7,106.5,-221 266l`+t/2.075+" -"+t+` 267c5.3,-9.3,12,-14,20,-14 268H400000v`+(40+t)+`H845.2724 269s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 270c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 271M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},mee=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 272c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 273c340,-704.7,510.7,-1060.3,512,-1067 274l`+t/2.084+" -"+t+` 275c4.7,-7.3,11,-11,19,-11 276H40000v`+(40+t)+`H1012.3 277s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 278c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 279s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 280c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 281M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},fee=function(t,r){return"M983 "+(10+t+r)+` 282l`+t/3.13+" -"+t+` 283c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` 284H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 285s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 286c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 287c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 288c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 289c53.7,-170.3,84.5,-266.8,92.5,-289.5z 290M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},hee=function(t,r){return"M424,"+(2398+t+r)+` 291c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 292c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 293s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 294s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 295l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 296v`+(40+t)+`H1014.6 297s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 298c-2,6,-10,9,-24,9 299c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` 300h400000v`+(40+t)+"h-400000z"},gee=function(t,r){return"M473,"+(2713+t+r)+` 301c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` 302c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 303s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 304c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 305c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 306s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 307606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},vee=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},yee=function(t,r,o){var n=o-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` 308H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 309h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 310c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 311219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},bee=function(t,r,o){r=1e3*r;var n="";switch(t){case"sqrtMain":n=pee(r,_l);break;case"sqrtSize1":n=mee(r,_l);break;case"sqrtSize2":n=fee(r,_l);break;case"sqrtSize3":n=hee(r,_l);break;case"sqrtSize4":n=gee(r,_l);break;case"sqrtTall":n=yee(r,_l,o)}return n},xee=function(t,r){switch(t){case"\u239C":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"\u2223":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"\u2225":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"\u239F":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"\u23A2":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"\u23A5":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"\u23AA":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"\u23D0":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"\u2016":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},WD
vendor: 10,493 bytes, lines 311-432
311={doubleleftarrow:`M262 157 312l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 313 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 314 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 315c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 316 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 317-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 318-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 319m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 320-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 321 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 322-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 323-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 324-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 325c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 326-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 327 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 328-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 329c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 330 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 331 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 332 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 333-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 334 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 335 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 336 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 337-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 338H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 339 435 0h399565z`,leftgroupunder:`M400000 262 340H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 341 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 342-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 343-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 344-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 345 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 346-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 347-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 348m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 349 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 350 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 351-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 352 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 353-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 354v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 355-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 356-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 357 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 358M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z 359M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z 360M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 361M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 362-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 363c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 364 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 365M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 366c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 367-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 368 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 369 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 370c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 371 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 372 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 373-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 374-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 375m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 37660.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 377-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 378m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 379c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 380-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 381m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 38285.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 383-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 384m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 385c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 386-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 387 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 388 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 389-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 390-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 391 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 392-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 393s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 394c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 395 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 396-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 397 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 398 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 399-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 400-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 401 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 402-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 403 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z 404m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 405 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 406-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 407-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 408 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 409 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 410-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 411m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 412 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 413-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 414 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z 415M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z 416M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z 417M399995 440 h-120 V150 H0 v-120 H399995z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 418 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 419-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 420-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 421 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 422-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 423-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 424-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 425 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 426c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 427 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 428 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 429-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 430 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 431-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 432 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2
vendor: 5,256 bytes, lines 432-490
4326.525 0 433 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 434-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 435-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 436 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 437c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 438 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 439-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 440 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 441 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 442 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 443-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 444 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 445 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 446 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 4473.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 44810.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 449-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 450-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 451H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 452c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 453c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 454-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 455-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 456-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, 457-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 458-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 459-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 460-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 461c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 462c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 463s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 464121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 465s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 466c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 467M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 468-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 46913.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 470-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 471-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 472-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 473151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 474c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 475c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 476c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 477c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 478M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 479c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 480-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 481c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 482M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 483c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 4841c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, 485-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 486M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 487c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 488-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 489c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 490M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 6,034 bytes, lines 490-518
490wee=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 491H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z 492M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 493c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 494c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 495c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 496c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z 497M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 498c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 499c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z 500MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z 501MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z 502M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z 503M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 504c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, 505-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 506949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 507c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 508-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 509l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 510-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 51163,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 512c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` 513c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 514c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 515c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 516c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 517l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 518-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Pi=class{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}},Ck={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},_ee={ex:!0,em:!0,mu:!0},kN=function(t){return typeof t!="string"&&(t=t.unit),t in Ck||t in _ee||t==="ex"},gt=function(t,r){var o;if(t.unit in Ck)o=Ck[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")o=r.fontMetrics().cssEmPerMu;else{var n;if(r.style.isTight()?n=r.havingStyle(r.style.text()):n=r,t.unit==="ex")o=n.fontMetrics().xHeight;else if(t.unit==="em")o=n.fontMetrics().quad;else throw new W("Invalid unit: '"+t.unit+"'");n!==r&&(o*=n.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*o,r.maxSize)},K=function(t){return+t.toFixed(4)+"em"},Ci=function(t){return t.filter(r=>r).join(" ")},SN=function(t,r,o){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=o||{},r){r.style.isTight()&&this.classes.push("mtight");var n=r.getColor();n&&(this.style.color=n)}},$N=function(t){var r=document.createElement(t);r.className=Ci(this.classes);for(var o of Object.keys(this.style))r.style[o]=this.style[o];for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},kee=/[\s"'>/=\x00-\x1f]/,IN=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Jt(Ci(this.classes))+'"');var o="";for(var n of Object.keys(this.style))o+=Zk(n)+":"+this.style[n]+";";o&&(r+=' style="'+Jt(o)+'"');for(var i of Object.keys(this.attributes)){if(kee.test(i))throw new W("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Jt(this.attributes[i])+'"'}r+=">";for(var a=0;a<this.children.length;a++)r+=this.children[a].toMarkup();return r+="</"+t+">",r},zi=class{constructor(t,r,o,n){SN.call(this,t,o,n),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return $N.call(this,"span")}toMarkup(){return IN.call(this,"span")}},$l=class{constructor(t,r,o,n){SN.call(this,r,n),this.children=o||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return $N.call(this,"a")}toMarkup(){return IN.call(this,"a")}},zk=class{constructor(t,r,o){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=o}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+Jt(this.src)+'"'+(' alt="'+Jt(this.alt)+'"'),r="";for(var o of Object.keys(this.style))r+=Zk(o)+":"+this.style[o]+";";return r&&(t+=' style="'+Jt(r)+'"'),t+="'/>",t}},See={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},sr=class{constructor(t,r,o,n,i,a,s,l){this.text=t,this.height=r||0,this.depth=o||0,this.italic=n||
vendor: 2,484 bytes, line 518
5180,this.skew=i||0,this.width=a||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var u=dee(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=See[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=K(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Ci(this.classes));for(var o of Object.keys(this.style))r=r||document.createElement("span"),r.style[o]=this.style[o];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Jt(Ci(this.classes)),r+='"');var o="";this.italic>0&&(o+="margin-right:"+K(this.italic)+";");for(var n of Object.keys(this.style))o+=Zk(n)+":"+this.style[n]+";";o&&(t=!0,r+=' style="'+Jt(o)+'"');var i=Jt(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}},yn=class{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var o of Object.keys(this.attributes))r.setAttribute(o,this.attributes[o]);for(var n=0;n<this.children.length;n++)r.appendChild(this.children[n].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Jt(this.attributes[r])+'"';t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</svg>",t}},Fn=class{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",WD[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Jt(this.alternate)+'"/>':'<path d="'+Jt(WD[this.pathName])+'"/>'}},Cd=class{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var o of Object.keys(this.attributes))r.setAttribute(o,this.attributes[o]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Jt(this.attributes[r])+'"';return t+="/>",t}};function $ee(e){if(e instanceof sr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Iee(e){if(e instanceof zi)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Tee=e=>e instanceof zi||e instanceof $l||e instanceof Pi,Ln
vendor: 57,629 bytes, line 518
518={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},
vendor: 7,167 bytes, line 518
518Xh={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},HD={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Pee(e,t){Ln[e]=t}function Gk(e,t,r){if(!Ln[t])throw new Error("Font metrics not found for font: "+t+".");var o=e.charCodeAt(0),n=Ln[t][o];if(!n&&e[0]in HD&&(o=HD[e[0]].charCodeAt(0),n=Ln[t][o]),!n&&r==="text"&&_N(o)&&(n=Ln[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var mk={};function Cee(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!mk[t]){var r=mk[t]={cssEmPerMu:Xh.quad[t]/18};for(var o in Xh)Xh.hasOwnProperty(o)&&(r[o]=Xh[o][t])}return mk[t]}var zee={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Eee={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ut={math:{},text:{}};function f(e,t,r,o,n,i){ut[e][n]={font:t,group:r,replace:o},i&&o&&(ut[e][o]=ut[e][n])}var h="math",O="text",y="main",I="ams",ct="accent-token",ne="bin",lr="close",Pl="inner",ue="mathord",It="op-token",Lr="open",Ed="punct",P="rel",Ao="spacing",z="textord";f(h,y,P,"\u2261","\\equiv",!0);f(h,y,P,"\u227A","\\prec",!0);f(h,y,P,"\u227B","\\succ",!0);f(h,y,P,"\u223C","\\sim",!0);f(h,y,P,"\u22A5","\\perp");f(h,y,P,"\u2AAF","\\preceq",!0);f(h,y,P,"\u2AB0","\\succeq",!0);f(h,y,P,"\u2243","\\simeq",!0);f(h,y,P,"\u2223","\\mid",!0);f(h,y,P,"\u226A","\\ll",!0);f(h,y,P,"\u226B","\\gg",!0);f(h,y,P,"\u224D","\\asymp",!0);f(h,y,P,"\u2225","\\parallel");f(h,y,P,"\u22C8","\\bowtie",!0);f(h,y,P,"\u2323","\\smile",!0);f(h,y,P,"\u2291","\\sqsubseteq",!0);f(h,y,P,"\u2292","\\sqsupseteq",!0);f(h,y,P,"\u2250","\\doteq",!0);f(h,y,P,"\u2322","\\frown",!0);f(h,y,P,"\u220B","\\ni",!0);f(h,y,P,"\u221D","\\propto",!0);f(h,y,P,"\u22A2","\\vdash",!0);f(h,y,P,"\u22A3","\\dashv",!0);f(h,y,P,"\u220B","\\owns");f(h,y,Ed,".","\\ldotp");f(h,y,Ed,"\u22C5","\\cdotp");f(h,y,Ed,"\u22C5","\xB7");f(O,y,z,"\u22C5","\xB7");f(h,y,z,"#","\\#");f(O,y,z,"#","\\#");f(h,y,z,"&","\\&");f(O,y,z,"&","\\&");f(h,y,z,"\u2135","\\aleph",!0);f(h,y,z,"\u2200","\\forall",!0);f(h,y,z,"\u210F","\\hbar",!0);f(h,y,z,"\u2203","\\exists",!0);f(h,y,z,"\u2207","\\nabla",!0);f(h,y,z,"\u266D","\\flat",!0);f(h,y,z,"\u2113","\\ell",!0);f(h,y,z,"\u266E","\\natural",!0);f(h,y,z,"\u2663","\\clubsuit",!0);f(h,y,z,"\u2118","\\wp",!0);f(h,y,z,"\u266F","\\sharp",!0);f(h,y,z,"\u2662","\\diamondsuit",!0);f(h,y,z,"\u211C","\\Re",!0);f(h,y,z,"\u2661","\\heartsuit",!0);f(h,y,z,"\u2111","\\Im",!0);f(h,y,z,"\u2660","\\spadesuit",!0);f(h,y,z,"\xA7","\\S",!0);f(O,y,z,"\xA7","\\S");f(h,y,z,"\xB6","\\P",!0);f(O,y,z,"\xB6","\\P");f(h,y,z,"\u2020","\\dag");f(O,y,z,"\u2020","\\dag");f(O,y,z,"\u2020","\\textdagger");f(h,y,z,"\u2021","\\ddag");f(O,y,z,"\u2021","\\ddag");f(O,y,z,"\u2021","\\textdaggerdbl");f(h,y,lr,"\u23B1","\\rmoustache",!0);f(h,y,Lr,"\u23B0","\\lmoustache",!0);f(h,y,lr,"\u27EF","\\rgroup",!0);f(h,y,Lr,"\u27EE","\\lgroup",!0);f(h,y,ne,"\u2213","\\mp",!0);f(h,y,ne,"\u2296","\\ominus",!0);f(h,y,ne,"\u228E","\\uplus",!0);f(h,y,ne,"\u2293","\\sqcap",!0);f(h,y,ne,"\u2217","\\ast");f(h,y,ne,"\u2294","\\sqcup",!0);f(h,y,ne,"\u25EF","\\bigcirc",!0);f(h,y,ne,"\u2219","\\bullet",!0);f(h,y,ne,"\u2021","\\ddagger");f(h,y,ne,"\u2240","\\wr",!0);f(h,y,ne,"\u2A3F","\\amalg");f(h,y,ne,"&","\\And");f(h,y,P,"\u27F5","\\longleftarrow",!0);f(h,y,P,"\u21D0","\\Leftarrow",!0);f(h,y,P,"\u27F8","\\Longleftarrow",!0);f(h,y,P,"\u27F6","\\longrightarrow",!0);f(h,y,P,"\u21D2","\\Rightarrow",!0);f(h,y,P,"\u27F9","\\Longrightarrow",!0);f(h,y,P,"\u2194","\\leftrightarrow",!0);f(h,y,P,"\u27F7","\\longleftrightarrow",!0);f(h,y,P,"\u21D4","\\Leftrightarrow",!0);f(h,y,P,"\u27FA","\\Longleftrightarrow",!0);f(h,y,P,"\u21A6","\\mapsto",!0);f(h,y,P,"\u27FC","\\longmapsto",!0);f(h,y,P,"\u2197","\\nearrow",!0);f(h,y,P,"\u21A9","\\hookleftarrow",!0);f(h,y,P,"\u21AA","\\hookrightarrow",!0);f(h,y,P,"\u2198","\\searrow",!0);f(h,y,P,"\u21BC","\\leftharpoonup",!0);f(h,y,P,"\u21C0","\\rightharpoonup",!0);f(h,y,P,"\u2199","\\swarrow",!0);f(h,y,P,"\u21BD","\\leftharpoondown",!0);f(h,y,P,"\u21C1","\\rightharpoondown",!0);f(h,y,P,"\u2196","\\nwarrow",!0);f(h,y,P,"\u21CC","\\rightleftharpoons",!0);f(h,I,P,"\u226E","\\nless",!0);f(h,I,P,"\uE010","\\@nleqslant");f(h,I,P,"\uE011","\\@nleqq");f(h,I,P,"\u2A87","\\lneq",!0);f(h,I,P,"\u2268","\\lneqq",!0);f(h,I,P,"\uE00C","\\@lvertneqq");f(h,I,P,"\u22E6","\\lnsim",!0);f(h,I,P,"\u2A89","\\lnapprox",!0);f(h,I,P,"\u2280","\\nprec",!0);f(h,I,P,"\u22E0","\\npreceq",!0);f(h,I,P,"\u22E8","\\precnsim",!0);f(h,I,P,"\u2AB9","\\precnapprox",!0);f(h,I,P,"\u2241","\\nsim",!0);f(h,I,P,"\uE006","\\@nshortmid");f(h,I,P,"\u2224","\\nmid",!0);f(h,I,P,"\u22AC","\\nvdash",!0);f(h,I,P,"\u22AD","\\nvDash",!0);f(h,I,P,"\u22EA","\\ntriangleleft");f(h,I,P,"\u22EC","\\ntrianglelefteq",!0);f(h,I,P,"\u228A","\\subsetneq",!0);f(h,I,P,"\uE01A","\\@varsubsetneq");f(h,I,P,"\u2ACB","\\subsetneqq",!0);f(h,I,P,"\uE017","\\@varsubsetneqq");f(h,I,P,"\u226F","\\ngtr",!0);f(h,I,P,"\uE00F","\\@ngeqslant");f(h,I,P,"\uE00E","\\@ngeqq");f(h,I,P,"\u2A88","\\gneq",!0);f(h,I,P,"\u2269","\\gneqq",!0);f(h,I,P,"\uE00D","\\@gvertneqq");f(h,I,P,"\u22E7","\\gnsim",!0);f(h,I,P,"\u2A8A","\\gnapprox",!0);f(h,I,P,"\u2281","\\nsucc",!0);f(h,I,P,"\u22E1","\\nsucceq",!0);f(h,I,P,"\u22E9","\\succnsim",!0);f(h,I,P,"\u2ABA","\\succnapprox",!0);f(h,I,P,"\u2246","\\ncong",!0);f(h,I,P,"\uE007","\\@nshortparallel");f(h,I,P,"\u2226","\\nparallel",!0);f(h,I,P,"\u22AF","\\nVDash",!0);f(h,I,P,"\u22EB","\\ntriangleright");f(h,I,P,"\u22ED","\\ntrianglerighteq",!0);f(h,I,P,"\uE018","\\@nsupseteqq");f(h,I,P,"\u228B","\\supsetneq",!0);f(h,I,P,"\uE01B","\\@varsupsetneq");f(h,I,P,"\u2ACC","\\supsetneqq",!0);f(h,I,P,"\uE019","\\@varsupsetneqq");f(h,I,P,"\u22AE","\\nVdash",!0);f(h,I,P,"\u2AB5","\\precneqq",!0);f(h,I,P,"\u2AB6","\\succneqq",!0);
518f(h,I,P,"\uE016","\\@nsubseteqq");f(h,I,ne,"\u22B4","\\unlhd");f(h,I,ne,"\u22B5","\\unrhd");f(h,I,P,"\u219A","\\nleftarrow",!0);f(h,I,P,"\u219B","\\nrightarrow",!0);f(h,I,P,"\u21CD","\\nLeftarrow",!0);f(h,I,P,"\u21CF","\\nRightarrow",!0);f(h,I,P,"\u21AE","\\nleftrightarrow",!0);f(h,I,P,"\u21CE","\\nLeftrightarrow",!0);f(h,I,P,"\u25B3","\\vartriangle");f(h,I,z,"\u210F","\\hslash");f(h,I,z,"\u25BD","\\triangledown");f(h,I,z,"\u25CA","\\lozenge");f(h,I,z,"\u24C8","\\circledS");f(h,I,z,"\xAE","\\circledR");f(O,I,z,"\xAE","\\circledR");f(h,I,z,"\u2221","\\measuredangle",!0);f(h,I,z,"\u2204","\\nexists");f(h,I,z,"\u2127","\\mho");f(h,I,z,"\u2132","\\Finv",!0);f(h,I,z,"\u2141","\\Game",!0);f(h,I,z,"\u2035","\\backprime");f(h,I,z,"\u25B2","\\blacktriangle");f(h,I,z,"\u25BC","\\blacktriangledown");f(h,I,z,"\u25A0","\\blacksquare");f(h,I,z,"\u29EB","\\blacklozenge");f(h,I,z,"\u2605","\\bigstar");f(h,I,z,"\u2222","\\sphericalangle",!0);f(h,I,z,"\u2201","\\complement",!0);f(h,I,z,"\xF0","\\eth",!0);f(O,y,z,"\xF0","\xF0");f(h,I,z,"\u2571","\\diagup");f(h,I,z,"\u2572","\\diagdown");f(h,I,z,"\u25A1","\\square");f(h,I,z,"\u25A1","\\Box");f(h,I,z,"\u25CA","\\Diamond");f(h,I,z,"\xA5","\\yen",!0);f(O,I,z,"\xA5","\\yen",!0);f(h,I,z,"\u2713","\\checkmark",!0);f(O,I,z,"\u2713","\\checkmark");f(h,I,z,"\u2136","\\beth",!0);f(h,I,z,"\u2138","\\daleth",!0);f(h,I,z,"\u2137","\\gimel",!0);f(h,I,z,"\u03DD","\\digamma",!0);f(h,I,z,"\u03F0","\\varkappa");f(h,I,Lr,"\u250C","\\@ulcorner",!0);f(h,I,lr,"\u2510","\\@urcorner",!0);f(h,I,Lr,"\u2514","\\@llcorner",!0);f(h,I,lr,"\u2518","\\@lrcorner",!0);f(h,I,P,"\u2266","\\leqq",!0);f(h,I,P,"\u2A7D","\\leqslant",!0);f(h,I,P,"\u2A95","\\eqslantless",!0);f(h,I,P,"\u2272","\\lesssim",!0);f(h,I,P,"\u2A85","\\lessapprox",!0);f(h,I,P,"\u224A","\\approxeq",!0);f(h,I,ne,"\u22D6","\\lessdot");f(h,I,P,"\u22D8","\\lll",!0);f(h,I,P,"\u2276","\\lessgtr",!0);f(h,I,P,"\u22DA","\\lesseqgtr",!0);f(h,I,P,"\u2A8B","\\lesseqqgtr",!0);f(h,I,P,"\u2251","\\doteqdot");f(h,I,P,"\u2253","\\risingdotseq",!0);f(h,I,P,"\u2252","\\fallingdotseq",!0);f(h,I,P,"\u223D","\\backsim",!0);f(h,I,P,"\u22CD","\\backsimeq",!0);f(h,I,P,"\u2AC5","\\subseteqq",!0);f(h,I,P,"\u22D0","\\Subset",!0);f(h,I,P,"\u228F","\\sqsubset",!0);f(h,I,P,"\u227C","\\preccurlyeq",!0);f(h,I,P,"\u22DE","\\curlyeqprec",!0);f(h,I,P,"\u227E","\\precsim",!0);f(h,I,P,"\u2AB7","\\precapprox",!0);f(h,I,P,"\u22B2","\\vartriangleleft");f(h,I,P,"\u22B4","\\trianglelefteq");f(h,I,P,"\u22A8","\\vDash",!0);f(h,I,P,"\u22AA","\\Vvdash",!0);f(h,I,P,"\u2323","\\smallsmile");f(h,I,P,"\u2322","\\smallfrown");f(h,I,P,"\u224F","\\bumpeq",!0);f(h,I,P,"\u224E","\\Bumpeq",!0);f(h,I,P,"\u2267","\\geqq",!0);f(h,I,P,"\u2A7E","\\geqslant",!0);f(h,I,P,"\u2A96","\\eqslantgtr",!0);f(h,I,P,"\u2273","\\gtrsim",!0);f(h,I,P,"\u2A86","\\gtrapprox",!0);f(h,I,ne,"\u22D7","\\gtrdot");f(h,I,P,"\u22D9","\\ggg",!0);f(h,I,P,"\u2277","\\gtrless",!0);f(h,I,P,"\u22DB","\\gtreqless",!0);f(h,I,P,"\u2A8C","\\gtreqqless",!0);f(h,I,P,"\u2256","\\eqcirc",!0);f(h,I,P,"\u2257","\\circeq",!0);f(h,I,P,"\u225C","\\triangleq",!0);f(h,I,P,"\u223C","\\thicksim");f(h,I,P,"\u2248","\\thickapprox");f(h,I,P,"\u2AC6","\\supseteqq",!0);f(h,I,P,"\u22D1","\\Supset",!0);f(h,I,P,"\u2290","\\sqsupset",!0);f(h,I,P,"\u227D","\\succcurlyeq",!0);f(h,I,P,"\u22DF","\\curlyeqsucc",!0);f(h,I,P,"\u227F","\\succsim",!0);f(h,I,P,"\u2AB8","\\succapprox",!0);f(h,I,P,"\u22B3","\\vartriangleright");f(h,I,P,"\u22B5","\\trianglerighteq");f(h,I,P,"\u22A9","\\Vdash",!0);f(h,I,P,"\u2223","\\shortmid");f(h,I,P,"\u2225","\\shortparallel");f(h,I,P,"\u226C","\\between",!0);f(h,I,P,"\u22D4","\\pitchfork",!0);f(h,I,P,"\u221D","\\varpropto");f(h,I,P,"\u25C0","\\blacktriangleleft");f(h,I,P,"\u2234","\\therefore",!0);f(h,I,P,"\u220D","\\backepsilon");f(h,I,P,"\u25B6","\\blacktriangleright");f(h,I,P,"\u2235","\\because",!0);f(h,I,P,"\u22D8","\\llless");f(h,I,P,"\u22D9","\\gggtr");f(h,I,ne,"\u22B2","\\lhd");f(h,I,ne,"\u22B3","\\rhd");f(h,I,P,"\u2242","\\eqsim",!0);f(h,y,P,"\u22C8","\\Join");f(h,I,P,"\u2251","\\Doteq",!0);f(h,I,ne,"\u2214","\\dotplus",!0);f(h,I,ne,"\u2216","\\smallsetminus");f(h,I,ne,"\u22D2","\\Cap",!0);f(h,I,ne,"\u22D3","\\Cup",!0);f(h,I,ne,"\u2A5E","\\doublebarwedge",!0);f(h,I,ne,"\u229F","\\boxminus",!0);f(h,I,ne,"\u229E","\\boxplus",!0);
518f(h,I,ne,"\u22C7","\\divideontimes",!0);f(h,I,ne,"\u22C9","\\ltimes",!0);f(h,I,ne,"\u22CA","\\rtimes",!0);f(h,I,ne,"\u22CB","\\leftthreetimes",!0);f(h,I,ne,"\u22CC","\\rightthreetimes",!0);f(h,I,ne,"\u22CF","\\curlywedge",!0);f(h,I,ne,"\u22CE","\\curlyvee",!0);f(h,I,ne,"\u229D","\\circleddash",!0);f(h,I,ne,"\u229B","\\circledast",!0);f(h,I,ne,"\u22C5","\\centerdot");f(h,I,ne,"\u22BA","\\intercal",!0);f(h,I,ne,"\u22D2","\\doublecap");f(h,I,ne,"\u22D3","\\doublecup");f(h,I,ne,"\u22A0","\\boxtimes",!0);f(h,I,P,"\u21E2","\\dashrightarrow",!0);f(h,I,P,"\u21E0","\\dashleftarrow",!0);f(h,I,P,"\u21C7","\\leftleftarrows",!0);f(h,I,P,"\u21C6","\\leftrightarrows",!0);f(h,I,P,"\u21DA","\\Lleftarrow",!0);f(h,I,P,"\u219E","\\twoheadleftarrow",!0);f(h,I,P,"\u21A2","\\leftarrowtail",!0);f(h,I,P,"\u21AB","\\looparrowleft",!0);f(h,I,P,"\u21CB","\\leftrightharpoons",!0);f(h,I,P,"\u21B6","\\curvearrowleft",!0);f(h,I,P,"\u21BA","\\circlearrowleft",!0);f(h,I,P,"\u21B0","\\Lsh",!0);f(h,I,P,"\u21C8","\\upuparrows",!0);f(h,I,P,"\u21BF","\\upharpoonleft",!0);f(h,I,P,"\u21C3","\\downharpoonleft",!0);f(h,y,P,"\u22B6","\\origof",!0);f(h,y,P,"\u22B7","\\imageof",!0);f(h,I,P,"\u22B8","\\multimap",!0);f(h,I,P,"\u21AD","\\leftrightsquigarrow",!0);f(h,I,P,"\u21C9","\\rightrightarrows",!0);f(h,I,P,"\u21C4","\\rightleftarrows",!0);f(h,I,P,"\u21A0","\\twoheadrightarrow",!0);f(h,I,P,"\u21A3","\\rightarrowtail",!0);f(h,I,P,"\u21AC","\\looparrowright",!0);f(h,I,P,"\u21B7","\\curvearrowright",!0);f(h,I,P,"\u21BB","\\circlearrowright",!0);f(h,I,P,"\u21B1","\\Rsh",!0);f(h,I,P,"\u21CA","\\downdownarrows",!0);f(h,I,P,"\u21BE","\\upharpoonright",!0);f(h,I,P,"\u21C2","\\downharpoonright",!0);f(h,I,P,"\u21DD","\\rightsquigarrow",!0);f(h,I,P,"\u21DD","\\leadsto");f(h,I,P,"\u21DB","\\Rrightarrow",!0);f(h,I,P,"\u21BE","\\restriction");f(h,y,z,"\u2018","`");f(h,y,z,"$","\\$");f(O,y,z,"$","\\$");f(O,y,z,"$","\\textdollar");f(h,y,z,"%","\\%");f(O,y,z,"%","\\%");f(h,y,z,"_","\\_");f(O,y,z,"_","\\_");f(O,y,z,"_","\\textunderscore");f(h,y,z,"\u2220","\\angle",!0);f(h,y,z,"\u221E","\\infty",!0);f(h,y,z,"\u2032","\\prime");f(h,y,z,"\u25B3","\\triangle");f(h,y,z,"\u0393","\\Gamma",!0);f(h,y,z,"\u0394","\\Delta",!0);f(h,y,z,"\u0398","\\Theta",!0);f(h,y,z,"\u039B","\\Lambda",!0);f(h,y,z,"\u039E","\\Xi",!0);f(h,y,z,"\u03A0","\\Pi",!0);f(h,y,z,"\u03A3","\\Sigma",!0);f(h,y,z,"\u03A5","\\Upsilon",!0);f(h,y,z,"\u03A6","\\Phi",!0);f(h,y,z,"\u03A8","\\Psi",!0);f(h,y,z,"\u03A9","\\Omega",!0);f(h,y,z,"A","\u0391");f(h,y,z,"B","\u0392");f(h,y,z,"E","\u0395");f(h,y,z,"Z","\u0396");f(h,y,z,"H","\u0397");f(h,y,z,"I","\u0399");f(h,y,z,"K","\u039A");f(h,y,z,"M","\u039C");f(h,y,z,"N","\u039D");f(h,y,z,"O","\u039F");f(h,y,z,"P","\u03A1");f(h,y,z,"T","\u03A4");f(h,y,z,"X","\u03A7");f(h,y,z,"\xAC","\\neg",!0);f(h,y,z,"\xAC","\\lnot");f(h,y,z,"\u22A4","\\top");f(h,y,z,"\u22A5","\\bot");f(h,y,z,"\u2205","\\emptyset");f(h,I,z,"\u2205","\\varnothing");f(h,y,ue,"\u03B1","\\alpha",!0);f(h,y,ue,"\u03B2","\\beta",!0);f(h,y,ue,"\u03B3","\\gamma",!0);f(h,y,ue,"\u03B4","\\delta",!0);f(h,y,ue,"\u03F5","\\epsilon",!0);f(h,y,ue,"\u03B6","\\zeta",!0);f(h,y,ue,"\u03B7","\\eta",!0);f(h,y,ue,"\u03B8","\\theta",!0);f(h,y,ue,"\u03B9","\\iota",!0);f(h,y,ue,"\u03BA","\\kappa",!0);f(h,y,ue,"\u03BB","\\lambda",!0);f(h,y,ue,"\u03BC","\\mu",!0);f(h,y,ue,"\u03BD","\\nu",!0);f(h,y,ue,"\u03BE","\\xi",!0);f(h,y,ue,"\u03BF","\\omicron",!0);f(h,y,ue,"\u03C0","\\pi",!0);f(h,y,ue,"\u03C1","\\rho",!0);f(h,y,ue,"\u03C3","\\sigma",!0);f(h,y,ue,"\u03C4","\\tau",!0);f(h,y,ue,"\u03C5","\\upsilon",!0);f(h,y,ue,"\u03D5","\\phi",!0);f(h,y,ue,"\u03C7","\\chi",!0);f(h,y,ue,"\u03C8","\\psi",!0);f(h,y,ue,"\u03C9","\\omega",!0);f(h,y,ue,"\u03B5","\\varepsilon",!0);f(h,y,ue,"\u03D1","\\vartheta",!0);f(h,y,ue,"\u03D6","\\varpi",!0);f(h,y,ue,"\u03F1","\\varrho",!0);f(h,y,ue,"\u03C2","\\varsigma",!0);f(h,y,ue,"\u03C6","\\varphi",!0);f(h,y,ne,"\u2217","*",!0);f(h,y,ne,"+","+");f(h,y,ne,"\u2212","-",!0);f(h,y,ne,"\u22C5","\\cdot",!0);f(h,y,ne,"\u2218","\\circ",!0);f(h,y,ne,"\xF7","\\div",!0);f(h,y,ne,"\xB1","\\pm",!0);f(h,y,ne,"\xD7","\\times",!0);f(h,y,ne,"\u2229","\\cap",!0);f(h,y,ne,"\u222A","\\cup",!0);f(h,y,ne,"\u2216","\\setminus",!0);f(h,y,ne,"\u2227","\\land");f(h,y,ne,"\u2228","\\lor");f(h,y,ne,"\u2227","\\wedge",!0);f(h,y,ne,"\u2228","\\vee",!0);f(h,y,z,"\u221A","\\surd");f(h,y,Lr,"\u27E8","\\langle",!0);f(h,y,Lr,"\u2223","\\lvert");f(h,y,Lr,"\u2225","\\lVert");f(h,y,lr,"?","?");f(h,y,lr,"!","!");f(h,y,lr,"\u27E9","\\rangle",!0);f(h,y,lr,"\u2223","\\rvert");f(h,y,lr,"\u2225","\\rVert");f(h,y,P,"=","=");f(h,y,P,":",":");f(h,y,P,"\u2248","\\approx",!0);f(h,y,P,"\u2245","\\cong",!0);f(h,y,P,"\u2265","\\ge");f(h,y,P,"\u2265","\\geq",!0);f(h,y,P,"\u2190","\\gets");f(h,y,P,">","\\gt",!0);f(h,y,P,"\u2208","\\in",!0);f(h,y,P,"\uE020","\\@not");f(h,y,P,"\u2282","\\subset",!0);f(h,y,P,"\u2283","\\supset",!0);f(h,y,P,"\u2286","\\subseteq",!0);f(h,y,P,"\u2287","\\supseteq",!0);f(h,I,P,"\u2288","\\nsubseteq",!0);f(h,I,P,"\u2289","\\nsupseteq",!0);f(h,y,P,"\u22A8","\\models");f(h,y,P,"\u2190","\\leftarrow",!0);f(h,y,P,"\u2264","\\le");f(h,y,P,"\u2264","\\leq",!0);f(h,y,P,"<","\\lt",!0);f(h,y,P,"\u2192","\\rightarrow",!0);f(h,y,P,"\u2192","\\to");f(h,I,P,"\u2271","\\ngeq",!0);f(h,I,P,"\u2270","\\nleq",!0);f(h,y,Ao,"\xA0","\\ ");f(h,y,Ao,"\xA0","\\space");f(h,y,Ao,"\xA0","\\nobreakspace");f(O,y,Ao,"\xA0","\\ ");f(O,y,Ao,"\xA0"," ");f(O,y,Ao,"\xA0","\\space");f(O,y,Ao,"\xA0","\\nobreakspace");f(h,y,Ao,null,"\\nobreak");f(h,y,Ao,null,"\\allowbreak");f(h,y,Ed,",",",");f(h,y,Ed,";",";");f(h,I,ne,"\u22BC","\\barwedge",!0);f(h,I,ne,"\u22BB","\\veebar",!0);f(h,y,ne,"\u2299","\\odot",!0);f(h,y,ne,"\u2295","\\oplus",!0);f(h,y,ne,"\u2297","\\otimes",!0);f(h,y,z,"\u2202","\\partial",!0);f(h,y,ne,"\u2298","\\oslash",!0);f(h,I,ne,"\u229A","\\circledcirc",!0);f(h,I,ne,"\u22A1","\\boxdot",!0);
vendor: 6,937 bytes, line 518
518f(h,y,ne,"\u25B3","\\bigtriangleup");f(h,y,ne,"\u25BD","\\bigtriangledown");f(h,y,ne,"\u2020","\\dagger");f(h,y,ne,"\u22C4","\\diamond");f(h,y,ne,"\u22C6","\\star");f(h,y,ne,"\u25C3","\\triangleleft");f(h,y,ne,"\u25B9","\\triangleright");f(h,y,Lr,"{","\\{");f(O,y,z,"{","\\{");f(O,y,z,"{","\\textbraceleft");f(h,y,lr,"}","\\}");f(O,y,z,"}","\\}");f(O,y,z,"}","\\textbraceright");f(h,y,Lr,"{","\\lbrace");f(h,y,lr,"}","\\rbrace");f(h,y,Lr,"[","\\lbrack",!0);f(O,y,z,"[","\\lbrack",!0);f(h,y,lr,"]","\\rbrack",!0);f(O,y,z,"]","\\rbrack",!0);f(h,y,Lr,"(","\\lparen",!0);f(h,y,lr,")","\\rparen",!0);f(O,y,z,"<","\\textless",!0);f(O,y,z,">","\\textgreater",!0);f(h,y,Lr,"\u230A","\\lfloor",!0);f(h,y,lr,"\u230B","\\rfloor",!0);f(h,y,Lr,"\u2308","\\lceil",!0);f(h,y,lr,"\u2309","\\rceil",!0);f(h,y,z,"\\","\\backslash");f(h,y,z,"\u2223","|");f(h,y,z,"\u2223","\\vert");f(O,y,z,"|","\\textbar",!0);f(h,y,z,"\u2225","\\|");f(h,y,z,"\u2225","\\Vert");f(O,y,z,"\u2225","\\textbardbl");f(O,y,z,"~","\\textasciitilde");f(O,y,z,"\\","\\textbackslash");f(O,y,z,"^","\\textasciicircum");f(h,y,P,"\u2191","\\uparrow",!0);f(h,y,P,"\u21D1","\\Uparrow",!0);f(h,y,P,"\u2193","\\downarrow",!0);f(h,y,P,"\u21D3","\\Downarrow",!0);f(h,y,P,"\u2195","\\updownarrow",!0);f(h,y,P,"\u21D5","\\Updownarrow",!0);f(h,y,It,"\u2210","\\coprod");f(h,y,It,"\u22C1","\\bigvee");f(h,y,It,"\u22C0","\\bigwedge");f(h,y,It,"\u2A04","\\biguplus");f(h,y,It,"\u22C2","\\bigcap");f(h,y,It,"\u22C3","\\bigcup");f(h,y,It,"\u222B","\\int");f(h,y,It,"\u222B","\\intop");f(h,y,It,"\u222C","\\iint");f(h,y,It,"\u222D","\\iiint");f(h,y,It,"\u220F","\\prod");f(h,y,It,"\u2211","\\sum");f(h,y,It,"\u2A02","\\bigotimes");f(h,y,It,"\u2A01","\\bigoplus");f(h,y,It,"\u2A00","\\bigodot");f(h,y,It,"\u222E","\\oint");f(h,y,It,"\u222F","\\oiint");f(h,y,It,"\u2230","\\oiiint");f(h,y,It,"\u2A06","\\bigsqcup");f(h,y,It,"\u222B","\\smallint");f(O,y,Pl,"\u2026","\\textellipsis");f(h,y,Pl,"\u2026","\\mathellipsis");f(O,y,Pl,"\u2026","\\ldots",!0);f(h,y,Pl,"\u2026","\\ldots",!0);f(h,y,Pl,"\u22EF","\\@cdots",!0);f(h,y,Pl,"\u22F1","\\ddots",!0);f(h,y,z,"\u22EE","\\varvdots");f(O,y,z,"\u22EE","\\varvdots");f(h,y,ct,"\u02CA","\\acute");f(h,y,ct,"\u02CB","\\grave");f(h,y,ct,"\xA8","\\ddot");f(h,y,ct,"~","\\tilde");f(h,y,ct,"\u02C9","\\bar");f(h,y,ct,"\u02D8","\\breve");f(h,y,ct,"\u02C7","\\check");f(h,y,ct,"^","\\hat");f(h,y,ct,"\u20D7","\\vec");f(h,y,ct,"\u02D9","\\dot");f(h,y,ct,"\u02DA","\\mathring");f(h,y,ue,"\uE131","\\@imath");f(h,y,ue,"\uE237","\\@jmath");f(h,y,z,"\u0131","\u0131");f(h,y,z,"\u0237","\u0237");f(O,y,z,"\u0131","\\i",!0);f(O,y,z,"\u0237","\\j",!0);f(O,y,z,"\xDF","\\ss",!0);f(O,y,z,"\xE6","\\ae",!0);f(O,y,z,"\u0153","\\oe",!0);f(O,y,z,"\xF8","\\o",!0);f(O,y,z,"\xC6","\\AE",!0);f(O,y,z,"\u0152","\\OE",!0);f(O,y,z,"\xD8","\\O",!0);f(O,y,ct,"\u02CA","\\'");f(O,y,ct,"\u02CB","\\`");f(O,y,ct,"\u02C6","\\^");f(O,y,ct,"\u02DC","\\~");f(O,y,ct,"\u02C9","\\=");f(O,y,ct,"\u02D8","\\u");f(O,y,ct,"\u02D9","\\.");f(O,y,ct,"\xB8","\\c");f(O,y,ct,"\u02DA","\\r");f(O,y,ct,"\u02C7","\\v");f(O,y,ct,"\xA8",'\\"');f(O,y,ct,"\u02DD","\\H");f(O,y,ct,"\u25EF","\\textcircled");var TN={"--":!0,"---":!0,"``":!0,"''":!0};f(O,y,z,"\u2013","--",!0);f(O,y,z,"\u2013","\\textendash");f(O,y,z,"\u2014","---",!0);f(O,y,z,"\u2014","\\textemdash");f(O,y,z,"\u2018","`",!0);f(O,y,z,"\u2018","\\textquoteleft");f(O,y,z,"\u2019","'",!0);f(O,y,z,"\u2019","\\textquoteright");f(O,y,z,"\u201C","``",!0);f(O,y,z,"\u201C","\\textquotedblleft");f(O,y,z,"\u201D","''",!0);f(O,y,z,"\u201D","\\textquotedblright");f(h,y,z,"\xB0","\\degree",!0);f(O,y,z,"\xB0","\\degree");f(O,y,z,"\xB0","\\textdegree",!0);f(h,y,z,"\xA3","\\pounds");f(h,y,z,"\xA3","\\mathsterling",!0);f(O,y,z,"\xA3","\\pounds");f(O,y,z,"\xA3","\\textsterling",!0);f(h,I,z,"\u2720","\\maltese");f(O,I,z,"\u2720","\\maltese");var JD='0123456789/@."';for(Yh=0;Yh<JD.length;Yh++)fk=JD.charAt(Yh),f(h,y,z,fk,fk);var fk,Yh,KD='0123456789!@*()-=+";:?/.,';for(Qh=0;Qh<KD.length;Qh++)hk=KD.charAt(Qh),f(O,y,z,hk,hk);var hk,Qh,dg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(eg=0;eg<dg.length;eg++)kd=dg.charAt(eg),f(h,y,ue,kd,kd),f(O,y,z,kd,kd);var kd,eg;f(h,I,z,"C","\u2102");f(O,I,z,"C","\u2102");f(h,I,z,"H","\u210D");f(O,I,z,"H","\u210D");f(h,I,z,"N","\u2115");f(O,I,z,"N","\u2115");f(h,I,z,"P","\u2119");f(O,I,z,"P","\u2119");f(h,I,z,"Q","\u211A");f(O,I,z,"Q","\u211A");f(h,I,z,"R","\u211D");f(O,I,z,"R","\u211D");f(h,I,z,"Z","\u2124");f(O,I,z,"Z","\u2124");f(h,y,ue,"h","\u210E");f(O,y,ue,"h","\u210E");var ge="";for(Ht=0;Ht<dg.length;Ht++)ft=dg.charAt(Ht),ge=String.fromCharCode(55349,56320+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),ge=String.fromCharCode(55349,56372+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),ge=String.fromCharCode(55349,56424+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),ge=String.fromCharCode(55349,56580+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),ge=String.fromCharCode(55349,56684+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),ge=String.fromCharCode(55349,56736+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),ge=String.fromCharCode(55349,56788+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),ge=String.fromCharCode(55349,56840+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),ge=String.fromCharCode(55349,56944+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),Ht<26&&(ge=String.fromCharCode(55349,56632+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge),ge=String.fromCharCode(55349,56476+Ht),f(h,y,ue,ft,ge),f(O,y,z,ft,ge));var ft,Ht;ge="\u{1D55C}";f(h,y,ue,"k",ge);f(O,y,z,"k",ge);for(Ii=0;Ii<10;Ii++)Po=Ii.toString(),ge=String.fromCharCode(55349,57294+Ii),f(h,y,ue,Po,ge),f(O,y,z,Po,ge),ge=String.fromCharCode(55349,57314+Ii),f(h,y,ue,Po,ge),f(O,y,z,Po,ge),ge=String.fromCharCode(55349,57324+Ii),f(h,y,ue,Po,ge),f(O,y,z,Po,ge),ge=String.fromCharCode(55349,57334+Ii),f(h,y,ue,Po,ge),f(O,y,z,Po,ge);var Po,Ii,Ek="\xD0\xDE\xFE";for(tg=0;tg<Ek.length;tg++)Sd=Ek.charAt(tg),f(h,y,ue,Sd,Sd),f(O,y,z,Sd,Sd);var Sd,tg,rg=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],XD=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Aee=(e,t)=>
vendor: 37,639 bytes, lines 518-519
518{var r=e.charCodeAt(0),o=e.charCodeAt(1),n=(r-55296)*1024+(o-56320)+65536,i=t==="math"?0:1;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return[rg[a][2],rg[a][i]]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return[XD[s][2],XD[s][i]]}else{if(n===120485||n===120486)return[rg[0][2],rg[0][i]];if(120486<n&&n<120782)return["",""];throw new W("Unsupported character: "+e)}},bg=function(t,r,o){if(ut[o][t]){var n=ut[o][t].replace;n&&(t=n)}return{value:t,metrics:Gk(t,r,o)}},ir=function(t,r,o,n,i){var a=bg(t,r,o),s=a.metrics;t=a.value;var l;if(s){var u=s.italic;(o==="text"||n&&n.font==="mathit")&&(u=0),l=new sr(t,s.height,s.depth,u,s.skew,s.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+o+"'")),l=new sr(t,0,0,0,0,0,i);if(n){l.maxFontSize=n.sizeMultiplier,n.style.isTight()&&l.classes.push("mtight");var c=n.getColor();c&&(l.style.color=c)}return l},qk=function(t,r,o,n){return n===void 0&&(n=[]),o.font==="boldsymbol"&&bg(t,"Main-Bold",r).metrics?ir(t,"Main-Bold",r,o,n.concat(["mathbf"])):t==="\\"||ut[r][t].font==="main"?ir(t,"Main-Regular",r,o,n):ir(t,"AMS-Regular",r,o,n.concat(["amsrm"]))},Mee=function(t,r,o,n,i){return i!=="textord"&&bg(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},xg=function(t,r,o){var n=t.mode,i=t.text,a=["mord"],s=n==="math"||n==="text"&&r.font,l=s?r.font:r.fontFamily,u="",c="";if(i.charCodeAt(0)===55349&&([u,c]=Aee(i,n)),u.length>0)return ir(i,u,n,r,a.concat(c));if(l){var d,p;if(l==="boldsymbol"){var m=Mee(i,n,r,a,o);d=m.fontName,p=[m.fontClass]}else s?(d=Ak[l].fontName,p=[l]):(d=ng(l,r.fontWeight,r.fontShape),p=[l,r.fontWeight,r.fontShape]);if(bg(i,d,n).metrics)return ir(i,d,n,r,a.concat(p));if(TN.hasOwnProperty(i)&&d.slice(0,10)==="Typewriter"){for(var g=[],x=0;x<i.length;x++)g.push(ir(i[x],d,n,r,a.concat(p)));return Mo(g)}}if(o==="mathord")return ir(i,"Math-Italic",n,r,a.concat(["mathnormal"]));if(o==="textord"){var w=ut[n][i]&&ut[n][i].font;if(w==="ams"){var S=ng("amsrm",r.fontWeight,r.fontShape);return ir(i,S,n,r,a.concat("amsrm",r.fontWeight,r.fontShape))}else if(w==="main"||!w){var _=ng("textrm",r.fontWeight,r.fontShape);return ir(i,_,n,r,a.concat(r.fontWeight,r.fontShape))}else{var b=ng(w,r.fontWeight,r.fontShape);return ir(i,b,n,r,a.concat(b,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+o+" in makeOrd")},Dee=(e,t)=>{if(Ci(e.classes)!==Ci(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var o of Object.keys(e.style))if(e.style[o]!==t.style[o])return!1;for(var n of Object.keys(t.style))if(e.style[n]!==t.style[n])return!1;return!0},PN=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],o=e[t+1];r instanceof sr&&o instanceof sr&&Dee(r,o)&&(r.text+=o.text,r.height=Math.max(r.height,o.height),r.depth=Math.max(r.depth,o.depth),r.italic=o.italic,e.splice(t+1,1),t--)}return e},Wk=function(t){for(var r=0,o=0,n=0,i=0;i<t.children.length;i++){var a=t.children[i];a.height>r&&(r=a.height),a.depth>o&&(o=a.depth),a.maxFontSize>n&&(n=a.maxFontSize)}t.height=r,t.depth=o,t.maxFontSize=n},U=function(t,r,o,n){var i=new zi(t,r,o,n);return Wk(i),i},Ei=(e,t,r,o)=>new zi(e,t,r,o),Il=function(t,r,o){var n=U([t],[],r);return n.height=Math.max(o||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),n.style.borderBottomWidth=K(n.height),n.maxFontSize=1,n},Nee=function(t,r,o,n){var i=new $l(t,r,o,n);return Wk(i),i},Mo=function(t){var r=new Pi(t);return Wk(r),r},Tl=function(t,r){return t instanceof Pi?U([],[t],r):t},Ree=function(t){if(t.positionType==="individualShift"){for(var r=t.children,o=[r[0]],n=-r[0].shift-r[0].elem.depth,i=n,a=1;a<r.length;a++){var s=-r[a].shift-i-r[a].elem.depth,l=s-(r[a-1].elem.height+r[a-1].elem.depth);i=i+s,o.push({type:"kern",size:l}),o.push(r[a])}return{children:o,depth:n}}var u;if(t.positionType==="top"){for(var c=t.positionData,d=0;d<t.children.length;d++){var p=t.children[d];c-=p.type==="kern"?p.size:p.elem.height+p.elem.depth}u=c}else if(t.positionType==="bottom")u=-t.positionData;else{var m=t.children[0];if(m.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-m.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-m.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},Ue=function(t,r){for(var{children:o,depth:n}=Ree(t),i=0,a=0;a<o.length;a++){var s=o[a];if(s.type==="elem"){var l=s.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var u=U(["pstrut"],[]);u.style.height=K(i);for(var c=[],d=n,p=n,m=n,g=0;g<o.length;g++){var x=o[g];if(x.type==="kern")m+=x.size;else{var w=x.elem,S=x.wrapperClasses||[],_=x.wrapperStyle||{},b=U(S,[u,w],void 0,_);b.style.top=K(-i-m-w.depth),x.marginLeft&&(b.style.marginLeft=x.marginLeft),x.marginRight&&(b.style.marginRight=x.marginRight),c.push(b),m+=w.height+w.depth}d=Math.min(d,m),p=Math.max(p,m)}var T=U(["vlist"],c);T.style.height=K(p);var $;if(d<0){var C=U([],[]),M=U(["vlist"],[C]);M.style.height=K(-d);var R=U(["vlist-s"],[new sr("\u200B")]);$=[U(["vlist-r"],[T,R]),U(["vlist-r"],[M])]}else $=[U(["vlist-r"],[T])];var N=U(["vlist-t"],$);return $.length===2&&N.classes.push("vlist-t2"),N.height=p,N.depth=-d,N},CN=(e,t)=>{var r=U(["mspace"],[],t),o=gt(e,t);return r.style.marginRight=K(o),r},ng=function(t,r,o){var n="";switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}var i;return r==="textbf"&&o==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",n+"-"+i},Ak={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},zN={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},EN=function(t,r){var[o,n,i]=zN[t],a=new Fn(o),s=new yn([a],{width:K(n),height:K(i),style:"width:"+K(n),viewBox:"0 0 "+1e3*n+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Ei(["overlay"],[s],r);return l.height=i,l.style.height=K(i),l.style.width=K(n),l},ht={number:3,unit:"mu"},Ta={number:4,unit:"mu"},Co={number:5,unit:"mu"},Oee={mord:{mop:ht,mbin:Ta,mrel:Co,minner:ht},mop:{mord:ht,mop:ht,mrel:Co,minner:ht},mbin:{mord:Ta,mop:Ta,mopen:Ta,minner:Ta},mrel:{mord:Co,mop:Co,mopen:Co,minner:Co},mopen:{},mclose:{mop:ht,mbin:Ta,mrel:Co,minner:ht},mpunct:{mord:ht,mop:ht,mrel:Co,mopen:ht,mclose:ht,mpunct:ht,minner:ht},minner:{mord:ht,mop:ht,mbin:Ta,mrel:Co,mopen:ht,mpunct:ht,minner:ht}},jee={mord:{mop:ht},mop:{mord:ht,mop:ht},mbin:{},mrel:{},mopen:{},mclose:{mop:ht},mpunct:{},minner:{mop:ht}},AN={},pg={},mg={};function ee(e){for(var{type:t,names:r,props:o,handler:n,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:o.numArgs,argTypes:o.argTypes,allowedInArgument:!!o.allowedInArgument,allowedInText:!!o.allowedInText,allowedInMath:o.allowedInMath===void 0?!0:o.allowedInMath,numOptionalArgs:o.numOptionalArgs||0,infix:!!o.infix,primitive:!!o.primitive,handler:n},l=0;l<r.length;++l)AN[r[l]]=s;t&&(i&&(pg[t]=i),a&&(mg[t]=a))}function Pa(e){var{type:t,htmlBuilder:r,mathmlBuilder:o}=e;ee({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:o})}var fg=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},$t=function(t){return t.type==="ordgroup"?t.body:[t]},Uee=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Lee=new Set(["rightmost","mrel","mclose","mpunct"]),Fee={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT},Bee={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Et=function(t,r,o,n){n===void 0&&(n=[null,null]);for(var i=[],a=0;a<t.length;a++){var s=Le(t[a],r);if(s instanceof Pi){var l=s.children;i.push(...l)}else i.push(s)}if(PN(i),!o)return i;var u=r;if(t.length===1){var c=t[0];c.type==="sizing"?u=r.havingSize(c.size):c.type==="styling"&&(u=r.havingStyle(Fee[c.style]))}var d=U([n[0]||"leftmost"],[],r),p=U([n[1]||"rightmost"],[],r),m=o==="root";return Mk(i,(g,x)=>{var w=x.classes[0],S=g.classes[0];w==="mbin"&&Lee.has(S)?x.classes[0]="mord":S==="mbin"&&Uee.has(w)&&(g.classes[0]="mord")},{node:d},p,m),Mk(i,(g,x)=>{var w,S,_=Nk(x),b=Nk(g),T=_&&b?g.hasClass("mtight")?(w=jee[_])==null?void 0:w[b]:(S=Oee[_])==null?void 0:S[b]:null;if(T)return CN(T,u)},{node:d},p,m),i},Mk=function(t,r,o,n,i){n&&t.push(n);for(var a=0;a<t.length;a++){var s=t[a],l=MN(s);if(l){Mk(l.children,r,o,null,i);continue}var u=!s.hasClass("mspace");if(u){var c=r(s,o.node);c&&(o.insertAfter?o.insertAfter(c):(t.unshift(c),a++))}u?o.node=s:i&&s.hasClass("newline")&&(o.node=U(["leftmost"])),o.insertAfter=(d=>p=>{t.splice(d+1,0,p),a++})(a)}n&&t.pop()},MN=function(t){return t instanceof Pi||t instanceof $l||t instanceof zi&&t.hasClass("enclosing")?t:null},Dk=function(t,r){var o=MN(t);if(o){var n=o.children;if(n.length){if(r==="right")return Dk(n[n.length-1],"right");if(r==="left")return Dk(n[0],"left")}}return t},Nk=function(t,r){if(!t)return null;r&&(t=Dk(t,r));var o=t.classes[0];return Bee[o]||null},zd=function(t,r){var o=["nulldelimiter"].concat(t.baseSizingClasses());return U(r.concat(o))},Le=function(t,r,o){if(!t)return U();if(pg[t.type]){var n=pg[t.type](t,r);if(o&&r.size!==o.size){n=U(r.sizingClasses(o),[n],r);var i=r.sizeMultiplier/o.sizeMultiplier;n.height*=i,n.depth*=i}return n}else throw new W("Got group of unknown type: '"+t.type+"'")};function og(e,t){var r=U(["base"],e,t),o=U(["strut"]);return o.style.height=K(r.height+r.depth),r.depth&&(o.style.verticalAlign=K(-r.depth)),r.children.unshift(o),r}function Rk(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var o=Et(e,t,"root"),n;o.length===2&&o[1].hasClass("tag")&&(n=o.pop());for(var i=[],a=[],s=0;s<o.length;s++)if(a.push(o[s]),o[s].hasClass("mbin")||o[s].hasClass("mrel")||o[s].hasClass("allowbreak")){for(var l=!1;s<o.length-1&&o[s+1].hasClass("mspace")&&!o[s+1].hasClass("newline");)s++,a.push(o[s]),o[s].hasClass("nobreak")&&(l=!0);l||(i.push(og(a,t)),a=[])}else o[s].hasClass("newline")&&(a.pop(),a.length>0&&(i.push(og(a,t)),a=[]),i.push(o[s]));a.length>0&&i.push(og(a,t));var u;r?(u=og(Et(r,t,!0),t),u.classes=["tag"],i.push(u)):n&&i.push(n);var c=U(["katex-html"],i);if(c.setAttribute("aria-hidden","true"),u){var d=u.children[0];d.style.height=K(c.height+c.depth),c.depth&&(d.style.verticalAlign=K(-c.depth))}return c}function DN(e){return new Pi(e)}var V=class{constructor(t,r,o){this.type=t,this.attributes={},this.children=r||[],this.classes=o||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Ci(this.classes));for(var o=0;o<this.children.length;o++)if(this.children[o]instanceof bt&&this.children[o+1]instanceof bt){for(var n=this.children[o].toText()+this.children[++o].toText();this.children[o+1]instanceof bt;)n+=this.children[++o].toText();t.appendChild(new bt(n).toNode())}else t.appendChild(this.children[o].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Jt(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Jt(Ci(this.classes))+'"'),t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}},bt=class{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Jt(this.toText())}toText(){return this.text}},hg=class{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character="\u200A":t>=.1666&&t<=.1667?this.character="\u2009":t>=.2222&&t<=.2223?this.character="\u2005":t>=.2777&&t<=.2778?this.character="\u2005\u200A":t>=-.05556&&t<=-.05555?this.character="\u200A\u2063":t>=-.1667&&t<=-.1666?this.character="\u2009\u2063":t>=-.2223&&t<=-.2222?this.character="\u205F\u2063":t>=-.2778&&t<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",K(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+K(this.width)+'"/>'}toText(){return this.character?this.character:" "}},Zee=new Set(["\\imath","\\jmath"]),Vee=new Set(["mrow","mtable"]),rn=function(t,r,o){return ut[r][t]&&ut[r][t].replace&&t.charCodeAt(0)!==55349&&!(TN.hasOwnProperty(t)&&o&&(o.fontFamily&&o.fontFamily.slice(4,6)==="tt"||o.font&&o.font.slice(4,6)==="tt"))&&(t=ut[r][t].replace),new bt(t)},Hk=function(t){return t.length===1?t[0]:new V("mrow",t)},Jk=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var o=r.font;if(!o||o==="mathnormal")return null;var n=t.mode;if(o==="mathit")return"italic";if(o==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(o==="mathbf")return"bold";if(o==="mathbb")return"double-struck";if(o==="mathsfit")return"sans-serif-italic";if(o==="mathfrak")return"fraktur";if(o==="mathscr"||o==="mathcal")return"script";if(o==="mathsf")return"sans-serif";if(o==="mathtt")return"monospace";var i=t.text;if(Zee.has(i))return null;if(ut[n][i]){var a=ut[n][i].replace;a&&(i=a)}var s=Ak[o].fontName;return Gk(i,s,n)?Ak[o].variant:null};function gk(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof bt&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof bt&&r.text===","}else return!1}var Fr=function(t,r,o){if(t.length===1){var n=Qe(t[0],r);return o&&n instanceof V&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var i=[],a,s=0;s<t.length;s++){var l=Qe(t[s],r);if(l instanceof V&&a instanceof V){if(l.type==="mtext"&&a.type==="mtext"&&l.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...l.children);continue}else if(l.type==="mn"&&a.type==="mn"){a.children.push(...l.children);continue}else if(gk(l)&&a.type==="mn"){a.children.push(...l.children);continue}else if(l.type==="mn"&&gk(a))l.children=[...a.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(a.type==="mn"||gk(a))){var u=l.children[0];u instanceof V&&u.type==="mn"&&(u.children=[...a.children,...u.children],i.pop())}else if(a.type==="mi"&&a.children.length===1){var c=a.children[0];if(c instanceof bt&&c.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var d=l.children[0];d instanceof bt&&d.text.length>0&&(d.text=d.text.slice(0,1)+"\u0338"+d.text.slice(1),i.pop())}}}i.push(l),a=l}return i},Ai=function(t,r,o){return Hk(Fr(t,r,o))},Qe=function(t,r){if(!t)return new V("mrow");if(mg[t.type]){var o=mg[t.type](t,r);return o}else throw new W("Got group of unknown type: '"+t.type+"'")};function YD(e,t,r,o,n){var i=Fr(e,r),a;i.length===1&&i[0]instanceof V&&Vee.has(i[0].type)?a=i[0]:a=new V("mrow",i);var s=new V("annotation",[new bt(t)]);s.setAttribute("encoding","application/x-tex");var l=new V("semantics",[a,s]),u=new V("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),o&&u.setAttribute("display","block");var c=n?"katex":"katex-mathml";return U([c],[u])}var Gee=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],QD=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],eN=function(t,r){return r.size<2?t:Gee[t-1][r.size-1]},gg=class e{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=QD[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new e(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:eN(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:QD[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=eN(e.BASESIZE,t);return this.size===r&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Cee(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};gg.BASESIZE=6;var NN=function(t){return new gg({style:t.displayMode?be.DISPLAY:be.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},RN=function(t,r){if(r.displayMode){var o=["katex-display"];r.leqno&&o.push("leqno"),r.fleqn&&o.push("fleqn"),t=U(o,[t])}return t},qee=function(t,r,o){var n=NN(o),i;if(o.output==="mathml")return YD(t,r,n,o.displayMode,!0);if(o.output==="html"){var a=Rk(t,n);i=U(["katex"],[a])}else{var s=YD(t,r,n,o.displayMode,!1),l=Rk(t,n);i=U(["katex"],[s,l])}return RN(i,o)},Wee=function(t,r,o){var n=NN(o),i=Rk(t,n),a=U(["katex"],[i]);return RN(a,o)},Hee={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},wg=function(t){var r=new V("mo",[new bt(Hee[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Jee={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Kee=new Set(["widehat","widecheck","widetilde","utilde"]),_g=function(t,r){function o(){var s=4e5,l=t.label.slice(1);if(Kee.has(l)){var u=t,c=u.base.type==="ordgroup"?u.base.body.length:1,d,p,m;if(c>5)l==="widehat"||l==="widecheck"?(d=420,s=2364,m=.42,p=l+"4"):(d=312,s=2340,m=.34,p="tilde4");else{var g=[1,1,2,2,3,3][c];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][g],d=[0,239,300,360,420][g],m=[0,.24,.3,.3,.36,.42][g],p=l+g):(s=[0,600,1033,2339,2340][g],d=[0,260,286,306,312][g],m=[0,.26,.286,.3,.306,.34][g],p="tilde"+g)}var x=new Fn(p),w=new yn([x],{width:"100%",height:K(m),viewBox:"0 0 "+s+" "+d,preserveAspectRatio:"none"});return{span:Ei([],[w],r),minWidth:0,height:m}}else{var S=[],_=Jee[l],[b,T,$]=_,C=$/1e3,M=b.length,R,N;if(M===1){var j=_[3];R=["hide-tail"],N=[j]}else if(M===2)R=["halfarrow-left","halfarrow-right"],N=["xMinYMin","xMaxYMin"];else if(M===3)R=["brace-left","brace-center","brace-right"],N=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support 519 `+M+" children.");for(var oe=0;oe<M;oe++){var ae=new Fn(b[oe]),nt=new yn([ae],{width:"400em",height:K(C),viewBox:"0 0 "+s+" "+$,preserveAspectRatio:N[oe]+" slice"}),ye=Ei([R[oe]],[nt],r);if(M===1)return{span:ye,minWidth:T,height:C};ye.style.height=K(C),S.push(ye)}return{span:U(["stretchy"],S,r),minWidth:T,height:C}}}var{span:n,minWidth:i,height:a}=o();return n.height=a,n.style.height=K(a),i>0&&(n.style.minWidth=K(i)),n},Xee=function(t,r,o,n,i){var a,s=t.height+t.depth+o+n;if(/fbox|color|angl/.test(r)){if(a=U(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(a.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new Cd({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new Cd({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new yn(u,{width:"100%",height:K(s)});a=Ei([],[c],i)}return a.height=s,a.style.height=K(s),a};function Ce(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function kg(e){var t=Sg(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Sg(e){return e&&(e.type==="atom"||Eee.hasOwnProperty(e.type))?e:null}var ON=e=>{if(e instanceof sr)return e;if(Tee(e)&&e.children.length===1)return ON(e.children[0])},Kk=(e,t)=>{var r,o,n;e&&e.type==="supsub"?(o=Ce(e.base,"accent"),r=o.base,e.base=r,n=Iee(Le(e,t)),e.base=o):(o=Ce(e,"accent"),r=o.base);var i=Le(r,t.havingCrampedStyle()),a=o.isShifty&&Eo(r),s=0;if(a){var l,u;s=(l=(u=ON(i))==null?void 0:u.skew)!=null?l:0}var c=o.label==="\\c",d=c?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),p;if(o.isStretchy)p=_g(o,t),p=Ue({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+K(2*s)+")",marginLeft:K(2*s)}:void 0}]});else{var m,g;o.label==="\\vec"?(m=EN("vec",t),g=zN.vec[1]):(m=xg({type:"textord",mode:o.mode,text:o.label},t,"textord"),m=$ee(m),m.italic=0,g=m.width,c&&(d+=m.depth)),p=U(["accent-body"],[m]);var x=o.label==="\\textcircled";x&&(p.classes.push("accent-full"),d=i.height);var w=s;x||(w-=g/2),p.style.left=K(w),o.label==="\\textcircled"&&(p.style.top=".2em"),p=Ue({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-d},{type:"elem",elem:p}]})}var S=U(["mord","accent"],[p],t);return n?(n.children[0]=S,n.height=Math.max(S.height,n.height),n.classes[0]="mord",n):S},jN=(e,t)=>{var r=e.isStretchy?wg(e.label):new V("mo",[rn(e.label,e.mode)]),o=new V("mover",[Qe(e.base,t),r]);return o.setAttribute("accent","true"),o},Yee=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ee({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=fg(t[0]),o=!Yee.test(e.funcName),n=!o||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:o,isShifty:n,base:r}},htmlBuilder:Kk,mathmlBuilder:jN});ee({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],o=e.parser.mode;return o==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),o="text"),{type:"accent",mode:o,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Kk,mathmlBuilder:jN});ee({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:o,base:n}},htmlBuilder:(e,t)=>{var r=Le(e.base,t),o=_g(e,t),n=e.label==="\\utilde"?.12:0,i=Ue({positionType:"top",positionData:r.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]});return U(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=wg(e.label),o=new V("munder",[Qe(e.base,t),r]);return o.setAttribute("accentunder","true"),o}});var ig=e=>{var t=new V("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ee({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:o,funcName:n}=e;return{type:"xArrow",mode:o.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,o=t.havingStyle(r.sup()),n=Tl(Le(e.body,o,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(i+"-arrow-pad");var a;e.below&&(o=t.havingStyle(r.sub()),a=Tl(Le(e.below,o,t),t),a.classes.push(i+"-arrow-pad"));var s=_g(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(u-=n.depth);var c;if(a){var d=-t.fontMetrics().axisHeight+a.height+.5*s.height+.111;c=Ue({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:s,shift:l},{type:"elem",elem:a,shift:d}]})}else c=Ue({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:s,shift:l}]});return c.children[0].children[0].children[1].classes.push("svg-align"),U(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var r=wg(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var o;if(e.body){var n=ig(Qe(e.body,t));if(e.below){var i=ig(Qe(e.below,t));o=new V("munderover",[r,i,n])}else o=new V("mover",[r,n])}else if(e.below){var a=ig(Qe(e.below,t));o=new V("munder",[r,a])}else o=ig(),o=new V("mover",[r,o]);return o}});function UN(e,t){var r=Et(e.body,t,!0);return U([e.mclass],r,t)}function LN(e,t){var r,o=Fr(e.body,t);return e.mclass==="minner"?r=new V("mpadded",o):e.mclass==="mord"?e.isCharacterBox?(r=o[0],r.type="mi"):r=new V("mi",o):(e.isCharacterBox?(r=o[0],r.type="mo"):r=new V("mo",o),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ee({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+o.slice(5),body:$t(n),isCharacterBox:Eo(n)}},htmlBuilder:UN,mathmlBuilder:LN});var $g=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ee({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:$g(t[0]),body:$t(t[1]),isCharacterBox:Eo(t[1])}}});ee({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:o}=e,n=t[1],i=t[0],a;o!=="\\stackrel"?a=$g(n):a="mrel";var s={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:o!=="\\stackrel",body:$t(n)},l={type:"supsub",mode:i.mode,base:s,sup:o==="\\underset"?null:i,sub:o==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:a,body:[l],isCharacterBox:Eo(l)}},htmlBuilder:UN,mathmlBuilder:LN});ee({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:$g(t[0]),body:$t(t[0])}},htmlBuilder(e,t){var r=Et(e.body,t,!0),o=U([e.mclass],r,t);return o.style.textShadow="0.02em 0.01em 0.04px",o},mathmlBuilder(e,t){var r=Fr(e.body,t),o=new V("mstyle",r);return o.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),o}});var Qee={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},tN=()=>({type:"styling",body:[],mode:"math",style:"display"}),rN=e=>e.type==="textord"&&e.text==="@",ete=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function tte(e,t,r){var o=Qee[e];switch(o){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(o,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var n=r.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:o,mode:"math",family:"rel"},a=r.callFunction("\\Big",[i],[]),s=r.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[n,a,s]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function rte(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new W("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var o=[],n=[o],i=0;i<t.length;i++){for(var a=t[i],s=tN(),l=0;l<a.length;l++)if(!rN(a[l]))s.body.push(a[l]);else{o.push(s),l+=1;var u=kg(a[l]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var d=0;d<2;d++){for(var p=!0,m=l+1;m<a.length;m++){if(ete(a[m],u)){p=!1,l=m;break}if(rN(a[m]))throw new W("Missing a "+u+" character to complete a CD arrow.",a[m]);c[d].body.push(a[m])}if(p)throw new W("Missing a "+u+" character to complete a CD arrow.",a[l])}else throw new W('Expected one of "<>AV=|." after @',a[l]);var g=tte(u,c,e),x={type:"styling",body:[g],mode:"math",style:"display"};o.push(x),s=tN()}i%2===0?o.push(s):o.shift(),o=[],n.push(o)}e.gullet.endGroup(),e.gullet.endGroup();var w=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:w,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}ee({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:o}=e;return{type:"cdlabel",mode:r.mode,side:o.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),o=Tl(Le(e.label,r,t),t);return o.classes.push("cd-label-"+e.side),o.style.bottom=K(.8-o.depth),o.height=0,o.depth=0,o},mathmlBuilder(e,t){var r=new V("mrow",[Qe(e.label,t)]);return r=new V("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new V("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ee({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Tl(Le(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new V("mrow",[Qe(e.fragment,t)])}});ee({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,o=Ce(t[0],"ordgroup"),n=o.body,i="",a=0;a<n.length;a++){var s=Ce(n[a],"textord");i+=s.text}var l=parseInt(i),u;if(isNaN(l))throw new W("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new W("\\@char with invalid code point "+i);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var FN=(e,t)=>{var r=Et(e.body,t.withColor(e.color),!1);return Mo(r)},BN=(e,t)=>{var r=Fr(e.body,t.withColor(e.color)),o=new V("mstyle",r);return o.setAttribute("mathcolor",e.color),o};ee({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,o=Ce(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:o,body:$t(n)}},htmlBuilder:FN,mathmlBuilder:BN});ee({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:o}=e,n=Ce(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var i=r.parseExpression(!0,o);return{type:"color",mode:r.mode,color:n,body:i}},htmlBuilder:FN,mathmlBuilder:BN});ee({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:o}=e,n=o.gullet.future().text==="["?o.parseSizeGroup(!0):null,i=!o.settings.displayMode||!o.settings.useStrictBehavior("newLineInDisplayMode","In LaTe
519X, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:o.mode,newLine:i,size:n&&Ce(n,"size").value}},htmlBuilder(e,t){var r=U(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=K(gt(e.size,t)))),r},mathmlBuilder(e,t){var r=new V("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",K(gt(e.size,t)))),r}});var Ok={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},ZN=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new W("Expected a control sequence",e);return t},nte=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},VN=(e,t,r,o)=>{var n=e.gullet.macros.get(r.text);n==null&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,o)};ee({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var o=t.fetch();if(Ok[o.text])return(r==="\\global"||r==="\\\\globallong")&&(o.text=Ok[o.text]),Ce(t.parseFunction(),"internal");throw new W("Invalid token after macro prefix",o)}});ee({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=t.gullet.popToken(),n=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new W("Expected a control sequence",o);for(var i=0,a,s=[[]];t.gullet.future().text!=="{";)if(o=t.gullet.popToken(),o.text==="#"){if(t.gullet.future().text==="{"){a=t.gullet.future(),s[i].push("{");break}if(o=t.gullet.popToken(),!/^[1-9]$/.test(o.text))throw new W('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==i+1)throw new W('Argument number "'+o.text+'" out of order');i++,s.push([])}else{if(o.text==="EOF")throw new W("Expected a macro definition");s[i].push(o.text)}var{tokens:l}=t.gullet.consumeArg();return a&&l.unshift(a),(r==="\\edef"||r==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(n,{tokens:l,numArgs:i,delimiters:s},r===Ok[r]),{type:"internal",mode:t.mode}}});ee({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=ZN(t.gullet.popToken());t.gullet.consumeSpaces();var n=nte(t);return VN(t,o,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ee({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=ZN(t.gullet.popToken()),n=t.gullet.popToken(),i=t.gullet.popToken();return VN(t,o,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var $d=function(t,r,o){var n=ut.math[t]&&ut.math[t].replace,i=Gk(n||t,r,o);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},Xk=function(t,r,o,n){var i=o.havingBaseStyle(r),a=U(n.concat(i.sizingClasses(o)),[t],o),s=i.sizeMultiplier/o.sizeMultiplier;return a.height*=s,a.depth*=s,a.maxFontSize=i.sizeMultiplier,a},GN=function(t,r,o){var n=r.havingBaseStyle(o),i=(1-r.sizeMultiplier/n.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=K(i),t.height-=i,t.depth+=i},ote=function(t,r,o,n,i,a){var s=ir(t,"Main-Regular",i,n),l=Xk(s,r,n,a);return o&&GN(l,n,r),l},ite=function(t,r,o,n){return ir(t,"Size"+r+"-Regular",o,n)},qN=function(t,r,o,n,i,a){var s=ite(t,r,i,n),l=Xk(U(["delimsizing","size"+r],[s],n),be.TEXT,n,a);return o&&GN(l,n,be.TEXT),l},vk=function(t,r,o){var n;r==="Size1-Regular"?n="delim-size1":n="delim-size4";var i=U(["delimsizinginner",n],[U([],[ir(t,r,o)])]);return{type:"elem",elem:i}},yk=function(t,r,o){var n=Ln["Size4-Regular"][t.charCodeAt(0)]?Ln["Size4-Regular"][t.charCodeAt(0)][4]:Ln["Size1-Regular"][t.charCodeAt(0)][4],i=new Fn("inner",xee(t,Math.round(1e3*r))),a=new yn([i],{width:K(n),height:K(r),style:"width:"+K(n),viewB
vendor: 14,700 bytes, line 519
519ox:"0 0 "+1e3*n+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=Ei([],[a],o);return s.height=r,s.style.height=K(r),s.style.width=K(n),{type:"elem",elem:s}},jk=.008,ag={type:"kern",size:-1*jk},ate=new Set(["|","\\lvert","\\rvert","\\vert"]),ste=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),WN=function(t,r,o,n,i,a){var s,l,u,c,d="",p=0;s=u=c=t,l=null;var m="Size1-Regular";t==="\\uparrow"?u=c="\u23D0":t==="\\Uparrow"?u=c="\u2016":t==="\\downarrow"?s=u="\u23D0":t==="\\Downarrow"?s=u="\u2016":t==="\\updownarrow"?(s="\\uparrow",u="\u23D0",c="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="\u2016",c="\\Downarrow"):ate.has(t)?(u="\u2223",d="vert",p=333):ste.has(t)?(u="\u2225",d="doublevert",p=556):t==="["||t==="\\lbrack"?(s="\u23A1",u="\u23A2",c="\u23A3",m="Size4-Regular",d="lbrack",p=667):t==="]"||t==="\\rbrack"?(s="\u23A4",u="\u23A5",c="\u23A6",m="Size4-Regular",d="rbrack",p=667):t==="\\lfloor"||t==="\u230A"?(u=s="\u23A2",c="\u23A3",m="Size4-Regular",d="lfloor",p=667):t==="\\lceil"||t==="\u2308"?(s="\u23A1",u=c="\u23A2",m="Size4-Regular",d="lceil",p=667):t==="\\rfloor"||t==="\u230B"?(u=s="\u23A5",c="\u23A6",m="Size4-Regular",d="rfloor",p=667):t==="\\rceil"||t==="\u2309"?(s="\u23A4",u=c="\u23A5",m="Size4-Regular",d="rceil",p=667):t==="("||t==="\\lparen"?(s="\u239B",u="\u239C",c="\u239D",m="Size4-Regular",d="lparen",p=875):t===")"||t==="\\rparen"?(s="\u239E",u="\u239F",c="\u23A0",m="Size4-Regular",d="rparen",p=875):t==="\\{"||t==="\\lbrace"?(s="\u23A7",l="\u23A8",c="\u23A9",u="\u23AA",m="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="\u23AB",l="\u23AC",c="\u23AD",u="\u23AA",m="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(s="\u23A7",c="\u23A9",u="\u23AA",m="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(s="\u23AB",c="\u23AD",u="\u23AA",m="Size4-Regular"):t==="\\lmoustache"||t==="\u23B0"?(s="\u23A7",c="\u23AD",u="\u23AA",m="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(s="\u23AB",c="\u23A9",u="\u23AA",m="Size4-Regular");var g=$d(s,m,i),x=g.height+g.depth,w=$d(u,m,i),S=w.height+w.depth,_=$d(c,m,i),b=_.height+_.depth,T=0,$=1;if(l!==null){var C=$d(l,m,i);T=C.height+C.depth,$=2}var M=x+b+T,R=Math.max(0,Math.ceil((r-M)/($*S))),N=M+R*$*S,j=n.fontMetrics().axisHeight;o&&(j*=n.sizeMultiplier);var oe=N/2-j,ae=[];if(d.length>0){var nt=N-x-b,ye=Math.round(N*1e3),Oe=wee(d,Math.round(nt*1e3)),ot=new Fn(d,Oe),qn=K(p/1e3),et=K(ye/1e3),Mt=new yn([ot],{width:qn,height:et,viewBox:"0 0 "+p+" "+ye}),Dt=Ei([],[Mt],n);Dt.height=ye/1e3,Dt.style.width=qn,Dt.style.height=et,ae.push({type:"elem",elem:Dt})}else{if(ae.push(vk(c,m,i)),ae.push(ag),l===null){var jt=N-x-b+2*jk;ae.push(yk(u,jt,n))}else{var he=(N-x-b-T)/2+2*jk;ae.push(yk(u,he,n)),ae.push(ag),ae.push(vk(l,m,i)),ae.push(ag),ae.push(yk(u,he,n))}ae.push(ag),ae.push(vk(s,m,i))}var Ne=n.havingBaseStyle(be.TEXT),Ae=Ue({positionType:"bottom",positionData:oe,children:ae});return Xk(U(["delimsizing","mult"],[Ae],Ne),be.TEXT,n,a)},bk=80,xk=.08,wk=function(t,r,o,n,i){var a=bee(t,n,o),s=new Fn(t,a),l=new yn([s],{width:"400em",height:K(r),viewBox:"0 0 400000 "+o,preserveAspectRatio:"xMinYMin slice"});return Ei(["hide-tail"],[l],i)},lte=function(t,r){var o=r.havingBaseSizing(),n=YN("\\surd",t*o.sizeMultiplier,XN,o),i=o.sizeMultiplier,a=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,l=0,u=0,c=0,d;return n.type==="small"?(c=1e3+1e3*a+bk,t<1?i=1:t<1.4&&(i=.7),l=(1+a+xk)/i,u=(1+a)/i,s=wk("sqrtMain",l,c,a,r),s.style.minWidth="0.853em",d=.833/i):n.type==="large"?(c=(1e3+bk)*Id[n.size],u=(Id[n.size]+a)/i,l=(Id[n.size]+a+xk)/i,s=wk("sqrtSize"+n.size,l,c,a,r),s.style.minWidth="1.02em",d=1/i):(l=t+a+xk,u=t+a,c=Math.floor(1e3*t+a)+bk,s=wk("sqrtTall",l,c,a,r),s.style.minWidth="0.742em",d=1.056),s.height=u,s.style.height=K(l),{span:s,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+a)*i}},HN=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),ute=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),JN=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Id=[0,1.2,1.8,2.4,3],KN=function(t,r,o,n,i){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),HN.has(t)||JN.has(t))return qN(t,r,!1,o,n,i);if(ute.has(t))return WN(t,Id[r],!1,o,n,i);throw new W("Illegal delimiter: '"+t+"'")},cte=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],dte=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"stack"}],XN=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],pte=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},YN=function(t,r,o,n){for(var i=Math.min(2,3-n.style.size),a=i;a<o.length;a++){var s=o[a];if(s.type==="stack")break;var l=$d(t,pte(s),"math"),u=l.height+l.depth;if(s.type==="small"){var c=n.havingBaseStyle(s.style);u*=c.sizeMultiplier}if(u>r)return s}return o[o.length-1]},Uk=function(t,r,o,n,i,a){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var s;JN.has(t)?s=cte:HN.has(t)?s=XN:s=dte;var l=YN(t,r,s,n);return l.type==="small"?ote(t,l.style,o,n,i,a):l.type==="large"?qN(t,l.size,o,n,i,a):WN(t,r,o,n,i,a)},_k=function(t,r,o,n,i,a){var s=n.fontMetrics().axisHeight*n.sizeMultiplier,l=901,u=5/n.fontMetrics().ptPerEm,c=Math.max(r-s,o+s),d=Math.max(c/500*l,2*c-u);return Uk(t,d,!0,n,i,a)},nN={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},mte=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Ig(e,t){var r=Sg(e);if(r&&mte.has(r.text))return r;throw r?new W("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new W("Invalid delimiter type '"+e.type+"'",e)}ee({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Ig(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:nN[e.funcName].size,mclass:nN[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?U([e.mclass]):KN(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(rn(e.delim,e.mode));var r=new V("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var o=K(Id[e.size]);return r.setAttribute("minsize",o),r.setAttribute("maxsize",o),r}});function oN(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ee({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new W("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Ig(t[0],e).text,color:r}}});ee({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Ig(t[0],e),o=e.parser;++o.leftrightDepth;var n=o.parseExpression(!1);--o.leftrightDepth,o.expect("\\right",!1);var i=Ce(o.parseFunction(),"leftright-right");return{type:"leftright",mode:o.mode,body:n,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{oN(e);for(var r=Et(e.body,t,!0,["mopen","mclose"]),o=0,n=0,i=!1,a=0;a<r.length;a++)r[a].isMiddle?i=!0:(o=Math.max(r[a].height,o),n=Math.max(r[a].depth,n));o*=t.sizeMultiplier,n*=t.sizeMultiplier;var s;if(e.left==="."?s=zd(t,["mopen"]):s=_k(e.left,o,n,t,e.mode,["mopen"]),r.unshift(s),i)for(var l=1;l<r.length;l++){var u=r[l],c=u.isMiddle;c&&(r[l]=_k(c.delim,o,n,c.options,e.mode,[]))}var d;if(e.right===".")d=zd(t,["mclose"]);else{var p=e.rightColor?t.withColor(e.rightColor):t;d=_k(e.right,o,n,p,e.mode,["mclose"])}return r.push(d),U(["minner"],r,t)},mathmlBuilder:(e,t)=>{oN(e);var r=Fr(e.body,t);if(e.left!=="."){var o=new V("mo",[rn(e.left,e.mode)]);o.setAttribute("fence","true"),r.unshift(o)}if(e.right!=="."){var n=new V("mo",[rn(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return Hk(r)}});ee({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Ig(t[0],e);if(!e.parser.leftrightDepth)throw new W("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=zd(t,[]);else{r=KN(e.delim,1,t,e.mode,[]);var o={delim:e.delim,options:t};r.isMiddle=o}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?rn("|","text"):rn(e.delim,e.mode),o=new V("mo",[r]);return o.setAttribute("fence","true"),o.setAttribute("lspace","0.05em"),o.setAttribute("rspace","0.05em"),o}});var Tg=(e,t)=>{var r=Tl(Le(e.body,t),t),o=e.label.slice(1),n=t.sizeMultiplier,i,a=0,s=Eo(e.body);if(o==="sout")i=U(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/n,a=-.5*t.fontMetrics().xHeight;else if(o==="phase"){var l=gt({number:.6,unit:"pt"},t),u=gt({number:.35,unit:"ex"},t),c=t.havingBaseSizing();n=n/c.sizeMultiplier;var d=r.height+r.depth+l+u;r.style.paddingLeft=K(d/2+l);var p=Math.floor(1e3*d*n),m=vee(p),g=new yn([new Fn("phase",m)],{width:"400em",height:K(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});i=Ei(["hide-tail"],[g],t),i.style.height=K(d),a=r.depth+l+u}else{/cancel/.test(o)?s||r.classes.push("cancel-pad"):o==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var x=0,w=0,S=0;/box/.test(o)?(S=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),x=t.fontMetrics().fboxsep+(o==="colorbox"?0:S),w=x):o==="angl"?(S=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),x=4*S,w=Math.max(0,.25-r.depth)):(x=s?.2:0,w=x),i=Xee(r,o,x,w,t),/fbox|boxed|fcolorbox/.test(o)?(i.style.borderStyle="solid",i.style.borderWidth=K(S)):o==="angl"&&S!==.049&&(i.style.borderTopWidth=K(S),i.style.borderRightWidth=K(S)),a=r.depth+w,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var _;if(e.backgroundColor)_=Ue({positionType:"individualShift",children:[{type:"elem",elem:i,shift:a},{type:"elem",elem:r,shift:0}]});else{var b=/cancel|phase/.test(o)?["svg-align"]:[];_=Ue({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:a,wrapperClasses:b}]})}return/cancel/.test(o)&&(_.height=r.height,_.depth=r.depth),/cancel/.test(o)&&!s?U(["mord","cancel-lap"],[_],t):U(["mord"],[_],t)},Pg=(e,t)=>{var r=0,o=new V(e.label.includes("colorbox")?"mpadded":"menclose",[Qe(e.body,t)]);switch(e.label){case"\\cancel":o.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":o.setAttribute("notation","downdiagonalstrike");break;case"\\phase":o.setAttribute("notation","phasorangle");break;case"\\sout":o.setAttribute("notation","horizontalstrike");break;case"\\fbox":o.setAttribute("notation","box");break;case"\\angl":o.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,o.setAttribute("width","+"+2*r+"pt"),o.setAttribute("height","+"+2*r+"pt"),o.setAttribute("lspace",r+"pt"),o.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);o.setAttribute("style","border: "+K(n)+" solid "+e.borderColor)}break;case"\\xcancel":o.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&o.setAttribute("mathbackground",e.backgroundColor),o};ee({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:o,funcName:n}=e,i=Ce(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:o.mode,label:n,backgroundColor:i,body:a}},htmlBuilder:Tg,mathmlBuilder:Pg});ee({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:o,funcName:n}=e,i=Ce(t[0],"color-token").color,a=Ce(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:o.mode,label:n,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:Tg,mathmlBuilder:Pg});ee({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ee({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];return{type:"enclose",mode:r.mode,label:o,body:n}},htmlBuilder:Tg,mathmlBuilder:Pg});ee({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:o}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var n=t[0];return{type:"enclose",mode:r.mode,label:o,body:n}},htmlBuilder:Tg,mathmlBuilder:Pg});ee({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var QN={};function Bn(e){for(var{type:t,names:r,props:o,handler:n,htmlBuilder:i,mathmlBuilder:
vendor: 2,734 bytes, line 519
519a}=e,s={type:t,numArgs:o.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l<r.length;++l)QN[r[l]]=s;i&&(pg[t]=i),a&&(mg[t]=a)}var eR={};function k(e,t){eR[e]=t}var kr=class e{constructor(t,r,o){this.lexer=t,this.start=r,this.end=o}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new e(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}},Ur=class e{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new e(r,kr.range(this,t))}};function iN(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var Cg=e=>{var t=e.parser.settings;if(!t.displayMode)throw new W("{"+e.envName+"} can be used only in display mode.")},fte=new Set(["gather","gather*"]);function Yk(e){if(!e.includes("ed"))return!e.includes("*")}function Mi(e,t,r){var{hskipBeforeAndAfter:o,addJot:n,cols:i,arraystretch:a,colSeparationType:s,autoTag:l,singleRow:u,emptySingleRow:c,maxNumCols:d,leqno:p}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var m=e.gullet.expandMacroAsText("\\arraystretch");if(m==null)a=1;else if(a=parseFloat(m),!a||a<0)throw new W("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var g=[],x=[g],w=[],S=[],_=l!=null?[]:void 0;function b(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function T(){_&&(e.gullet.macros.get("\\df@tag")?(_.push(e.subparse([new Ur("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):_.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(b(),S.push(iN(e));;){var $=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var C={type:"ordgroup",mode:e.mode,body:$};r&&(C={type:"styling",mode:e.mode,style:r,body:[C]}),g.push(C);var M=e.fetch().text;if(M==="&"){if(d&&g.length===d){if(u||s)throw new W("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(M==="\\end"){T(),g.length===1&&C.type==="styling"&&C.body.length===1&&C.body[0].type==="ordgroup"&&C.body[0].body.length===0&&(x.length>1||!c)&&x.pop(),S.length<x.length+1&&S.push([]);break}else if(M==="\\\\"){e.consume();var R=void 0;e.gullet.future().text!==" "&&(R=e.parseSizeGroup(!0)),w.push(R?R.value:null),T(),S.push(iN(e)),g=[],x.push(g),b()}else throw new W("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:a,body:x,cols:i,rowGaps:w,hskipBeforeAndAfter:o,hLinesBeforeRow:S,colSeparationType:s,tags:_,leqno:p}}function Qk(e){return e.slice(0,1)==="d"?"display":"text"}
vendor: 49,545 bytes, lines 519-523
519var Zn=function(t,r){var o,n,i=t.body.length,a=t.hLinesBeforeRow,s=0,l=new Array(i),u=[],c=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),d=1/r.fontMetrics().ptPerEm,p=5*d;if(t.colSeparationType&&t.colSeparationType==="small"){var m=r.havingStyle(be.SCRIPT).sizeMultiplier;p=.2778*(m/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?gt({number:3,unit:"ex"},r):12*d,x=3*d,w=t.arraystretch*g,S=.7*w,_=.3*w,b=0;function T(jd){for(var Ud=0;Ud<jd.length;++Ud)Ud>0&&(b+=.25),u.push({pos:b,isDashed:jd[Ud]})}for(T(a[0]),o=0;o<t.body.length;++o){var $=t.body[o],C=S,M=_;s<$.length&&(s=$.length);var R=new Array($.length);for(n=0;n<$.length;++n){var N=Le($[n],r);M<N.depth&&(M=N.depth),C<N.height&&(C=N.height),R[n]=N}var j=t.rowGaps[o],oe=0;j&&(oe=gt(j,r),oe>0&&(oe+=_,M<oe&&(M=oe),oe=0)),t.addJot&&o<t.body.length-1&&(M+=x),R.height=C,R.depth=M,b+=C,R.pos=b,b+=M+oe,l[o]=R,T(a[o+1])}var ae=b/2+r.fontMetrics().axisHeight,nt=t.cols||[],ye=[],Oe,ot,qn=[];if(t.tags&&t.tags.some(jd=>jd))for(o=0;o<i;++o){var et=l[o],Mt=et.pos-ae,Dt=t.tags[o],jt=void 0;Dt===!0?jt=U(["eqn-num"],[],r):Dt===!1?jt=U([],[],r):jt=U([],Et(Dt,r,!0),r),jt.depth=et.depth,jt.height=et.height,qn.push({type:"elem",elem:jt,shift:Mt})}for(n=0,ot=0;n<s||ot<nt.length;++n,++ot){for(var he,Ne=nt[ot],Ae=!0;((tt=Ne)==null?void 0:tt.type)==="separator";){var tt;if(Ae||(Oe=U(["arraycolsep"],[]),Oe.style.width=K(r.fontMetrics().doubleRuleSep),ye.push(Oe)),Ne.separator==="|"||Ne.separator===":"){var ur=Ne.separator==="|"?"solid":"dashed",Zt=U(["vertical-separator"],[],r);Zt.style.height=K(b),Zt.style.borderRightWidth=K(c),Zt.style.borderRightStyle=ur,Zt.style.margin="0 "+K(-c/2);var Nt=b-ae;Nt&&(Zt.style.verticalAlign=K(-Nt)),ye.push(Zt)}else throw new W("Invalid separator type: "+Ne.separator);ot++,Ne=nt[ot],Ae=!1}if(!(n>=s)){var Sr=void 0;if(n>0||t.hskipBeforeAndAfter){var Wn,Ca;Sr=(Wn=(Ca=Ne)==null?void 0:Ca.pregap)!=null?Wn:p,Sr!==0&&(Oe=U(["arraycolsep"],[]),Oe.style.width=K(Sr),ye.push(Oe))}var bS=[];for(o=0;o<i;++o){var Nd=l[o],Rd=Nd[n];if(Rd){var pO=Nd.pos-ae;Rd.depth=Nd.depth,Rd.height=Nd.height,bS.push({type:"elem",elem:Rd,shift:pO})}}var mO=Ue({positionType:"individualShift",children:bS}),fO=U(["col-align-"+(((he=Ne)==null?void 0:he.align)||"c")],[mO]);if(ye.push(fO),n<s-1||t.hskipBeforeAndAfter){var xS,wS;Sr=(xS=(wS=Ne)==null?void 0:wS.postgap)!=null?xS:p,Sr!==0&&(Oe=U(["arraycolsep"],[]),Oe.style.width=K(Sr),ye.push(Oe))}}}var Od=U(["mtable"],ye);if(u.length>0){for(var hO=Il("hline",r,c),gO=Il("hdashline",r,c),jg=[{type:"elem",elem:Od,shift:0}];u.length>0;){var _S=u.pop(),kS=_S.pos-ae;_S.isDashed?jg.push({type:"elem",elem:gO,shift:kS}):jg.push({type:"elem",elem:hO,shift:kS})}Od=Ue({positionType:"individualShift",children:jg})}if(qn.length===0)return U(["mord"],[Od],r);var vO=Ue({positionType:"individualShift",children:qn}),yO=U(["tag"],[vO],r);return Mo([Od,yO])},hte={c:"center ",l:"left ",r:"right "},Vn=function(t,r){for(var o=[],n=new V("mtd",[],["mtr-glue"]),i=new V("mtd",[],["mml-eqn-num"]),a=0;a<t.body.length;a++){for(var s=t.body[a],l=[],u=0;u<s.length;u++)l.push(new V("mtd",[Qe(s[u],r)]));t.tags&&t.tags[a]&&(l.unshift(n),l.push(n),t.leqno?l.unshift(i):l.push(i)),o.push(new V("mtr",l))}var c=new V("mtable",o),d=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",K(d));var p="",m="";if(t.cols&&t.cols.length>0){var g=t.cols,x="",w=!1,S=0,_=g.length;g[0].type==="separator"&&(p+="top ",S=1),g[g.length-1].type==="separator"&&(p+="bottom ",_-=1);for(var b=S;b<_;b++){var T=g[b];T.type==="align"?(m+=hte[T.align],w&&(x+="none "),w=!0):T.type==="separator"&&w&&(x+=T.separator==="|"?"solid ":"dashed ",w=!1)}c.setAttribute("columnalign",m.trim()),/[sd]/.test(x)&&c.setAttribute("columnlines",x.trim())}if(t.colSeparationType==="align"){for(var $=t.cols||[],C="",M=1;M<$.length;M++)C+=M%2?"0em ":"1em ";c.setAttribute("columnspacing",C.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var R="",N=t.hLinesBeforeRow;p+=N[0].length>0?"left ":"",p+=N[N.length-1].length>0?"right ":"";for(var j=1;j<N.length-1;j++)R+=N[j].length===0?"none ":N[j][0]?"dashed ":"solid ";return/[sd]/.test(R)&&c.setAttribute("rowlines",R.trim()),p!==""&&(c=new V("menclose",[c]),c.setAttribute("notation",p.trim())),t.arraystretch&&t.arraystretch<1&&(c=new V("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},tR=function(t,r){t.envName.includes("ed")||Cg(t);var o=[],n=t.envName.includes("at")?"alignat":"align",i=t.envName==="split",a=Mi(t.parser,{cols:o,addJot:!0,autoTag:i?void 0:Yk(t.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var c="",d=0;d<r[0].body.length;d++){var p=Ce(r[0].body[d],"textord");c+=p.text}s=Number(c),l=s*2}var m=!l;a.body.forEach(function(S){for(var _=1;_<S.length;_+=2){var b=Ce(S[_],"styling"),T=Ce(b.body[0],"ordgroup");T.body.unshift(u)}if(m)l<S.length&&(l=S.length);else{var $=S.length/2;if(s<$)throw new W("Too many math in a row: "+("expected "+s+", but got "+$),S[0])}});for(var g=0;g<l;++g){var x="r",w=0;g%2===1?x="l":g>0&&m&&(w=1),o[g]={type:"align",align:x,pregap:w,postgap:0}}return a.colSeparationType=m?"align":"alignat",a};Bn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Sg(t[0]),o=r?[t[0]]:Ce(t[0],"ordgroup").body,n=o.map(function(a){var s=kg(a),l=s.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new W("Unknown column alignment: "+l,a)}),i={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Mi(e.parser,i,Qk(e.envName))},htmlBuilder:Zn,mathmlBuilder:Vn});Bn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",o={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var n=e.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,!"lcr".includes(r))throw new W("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),o.cols=[{type:"align",align:r}]}}var i=Mi(e.parser,o,Qk(e.envName)),a=Math.max(0,...i.body.map(s=>s.length));return i.cols=new Array(a).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Zn,mathmlBuilder:Vn});Bn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Mi(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Zn,mathmlBuilder:Vn});Bn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Sg(t[0]),o=r?[t[0]]:Ce(t[0],"ordgroup").body,n=o.map(function(s){var l=kg(s),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new W("Unknown column alignment: "+u,s)});if(n.length>1)throw new W("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},a=Mi(e.parser,i,"script");if(a.body.length>0&&a.body[0].length>1)throw new W("{subarray} can contain only one column");return a},htmlBuilder:Zn,mathmlBuilder:Vn});Bn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Mi(e.parser,t,Qk(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Zn,mathmlBuilder:Vn});Bn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:tR,htmlBuilder:Zn,mathmlBuilder:Vn});Bn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){fte.has(e.envName)&&Cg(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Yk(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Mi(e.parser,t,"display")},htmlBuilder:Zn,mathmlBuilder:Vn});Bn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:tR,htmlBuilder:Zn,mathmlBuilder:Vn});Bn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Cg(e);var t={autoTag:Yk(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Mi(e.parser,t,"display")},htmlBuilder:Zn,mathmlBuilder:Vn});Bn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Cg(e),rte(e.parser)},htmlBuilder:Zn,mathmlBuilder:Vn});k("\\nonumber","\\gdef\\@eqnsw{0}");k("\\notag","\\nonumber");ee({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new W(e.funcName+" valid only within array environment")}});var aN=QN;ee({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];if(n.type!=="ordgroup")throw new W("Invalid environment name",n);for(var i="",a=0;a<n.body.length;++a)i+=Ce(n.body[a],"textord").text;if(o==="\\begin"){if(!aN.hasOwnProperty(i))throw new W("No such environment: "+i,n);var s=aN[i],{args:l,optArgs:u}=r.parseArguments("\\begin{"+i+"}",s),c={mode:r.mode,envName:i,parser:r},d=s.handler(c,l,u);r.expect("\\end",!1);var p=r.nextToken,m=Ce(r.parseFunction(),"environment");if(m.name!==i)throw new W("Mismatch: \\begin{"+i+"} matched by \\end{"+m.name+"}",p);return d}return{type:"environment",mode:r.mode,name:i,nameGroup:n}}});var rR=(e,t)=>{var r=e.font,o=t.withFont(r);return Le(e.body,o)},nR=(e,t)=>{var r=e.font,o=t.withFont(r);return Qe(e.body,o)},sN={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ee({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=fg(t[0]),i=o;return i in sN&&(i=sN[i]),{type:"font",mode:r.mode,font:i.slice(1),body:n}},htmlBuilder:rR,mathmlBuilder:nR});ee({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"mclass",mode:r.mode,mclass:$g(o),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:o}],isCharacterBox:Eo(o)}}});ee({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:o,breakOnTokenText:n}=e,{mode:i}=r,a=r.parseExpression(!0,n),s="math"+o.slice(1);return{type:"font",mode:i,font:s,body:{type:"ordgroup",mode:r.mode,body:a}}},htmlBuilder:rR,mathmlBuilder:nR});var gte=(e,t)=>{var r=t.style,o=r.fracNum(),n=r.fracDen(),i;i=t.havingStyle(o);var a=Le(e.numer,i,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}i=t.havingStyle(n);var u=Le(e.denom,i,t),c,d,p;e.hasBarLine?(e.barSize?(d=gt(e.barSize,t),c=Il("frac-line",t,d)):c=Il("frac-line",t),d=c.height,p=c.height):(c=null,d=0,p=t.fontMetrics().defaultRuleThickness);var m,g,x;r.size===be.DISPLAY.size?(m=t.fontMetrics().num1,d>0?g=3*p:g=7*p,x=t.fontMetrics().denom1):(d>0?(m=t.fontMetrics().num2,g=p):(m=t.fontMetrics().num3,g=3*p),x=t.fontMetrics().denom2);var w;if(c){var _=t.fontMetrics().axisHeight;m-a.depth-(_+.5*d)<g&&(m+=g-(m-a.depth-(_+.5*d))),_-.5*d-(u.height-x)<g&&(x+=g-(_-.5*d-(u.height-x)));var b=-(_-.5*d);w=Ue({positionType:"individualShift",children:[{type:"elem",elem:u,shift:x},{type:"elem",elem:c,shift:b},{type:"elem",elem:a,shift:-m}]})}else{var S=m-a.depth-(u.height-x);S<g&&(m+=.5*(g-S),x+=.5*(g-S)),w=Ue({positionType:"individualShift",children:[{type:"elem",elem:u,shift:x},{type:"elem",elem:a,shift:-m}]})}i=t.havingStyle(r),w.height*=i.sizeMultiplier/t.sizeMultiplier,w.depth*=i.sizeMultiplier/t.sizeMultiplier;var T;r.size===be.DISPLAY.size?T=t.fontMetrics().delim1:r.size===be.SCRIPTSCRIPT.size?T=t.havingStyle(be.SCRIPT).fontMetrics().delim2:T=t.fontMetrics().delim2;var $,C;return e.leftDelim==null?$=zd(t,["mopen"]):$=Uk(e.leftDelim,T,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?C=U([]):e.rightDelim==null?C=zd(t,["mclose"]):C=Uk(e.rightDelim,T,!0,t.havingStyle(r),e.mode,["mclose"]),U(["mord"].concat(i.sizingClasses(t)),[$,U(["mfrac"],[w]),C],t)},vte=(e,t)=>{var r=new V("mfrac",[Qe(e.numer,t),Qe(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var o=gt(e.barSize,t);r.setAttribute("linethickness",K(o))}if(e.leftDelim!=null||e.rightDelim!=null){var n=[];if(e.leftDelim!=null){var i=new V("mo",[new bt(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),n.push(i)}if(n.push(r),e.rightDelim!=null){var a=new V("mo",[new bt(e.rightDelim.replace("\\",""))]);a.setAttribute("fence","true"),n.push(a)}return Hk(n)}return r},oR=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};ee({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0],i=t[1],a,s=null,l=null;switch(o){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,s="(",l=")";break;case"\\\\bracefrac":a=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":a=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=o==="\\cfrac",c=null;return u||o.startsWith("\\d")?c="display":o.startsWith("\\t")&&(c="text"),oR({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:u,hasBarLine:a,leftDelim:s,rightDelim:l,barSize:null},c)},htmlBuilder:gte,mathmlBuilder:vte});ee({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:o}=e,n;switch(r){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:n,token:o}}});var lN=["display","text","script","scriptscript"],uN=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ee({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,o=t[4],n=t[5],i=fg(t[0]),a=i.type==="atom"&&i.family==="open"?uN(i.text):null,s=fg(t[1]),l=s.type==="atom"&&s.family==="close"?uN(s.text):null,u=Ce(t[2],"size"),c,d=null;u.isBlank?c=!0:(d=u.value,c=d.number>0);var p=null,m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var g=Ce(m.body[0],"textord");p=lN[Number(g.text)]}}else m=Ce(m,"textord"),p=lN[Number(m.text)];return oR({type:"genfrac",mode:r.mode,numer:o,denom:n,continued:!1,hasBarLine:c,barSize:d,leftDelim:a,rightDelim:l},p)}});ee({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:o,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ce(t[0],"size").value,token:n}}});ee({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0],i=Ce(t[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var a=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null}}});var iR=(e,t)=>{var r=t.style,o,n;e.type==="supsub"?(o=e.sup?Le(e.sup,t.havingStyle(r.sup()),t):Le(e.sub,t.havingStyle(r.sub()),t),n=Ce(e.base,"horizBrace")):n=Ce(e,"horizBrace");var i=Le(n.base,t.havingBaseStyle(be.DISPLAY)),a=_g(n,t),s;if(n.isOver?(s=Ue({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:a}]}),s.children[0].children[0].children[1].classes.push("svg-align")):(s=Ue({positionType:"bottom",positionData:i.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:i}]}),s.children[0].children[0].children[0].classes.push("svg-align")),o){var l=U(["minner",n.isOver?"mover":"munder"],[s],t);n.isOver?s=Ue({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:o}]}):s=Ue({positionType:"bottom",positionData:l.depth+.2+o.height+o.depth,children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:l}]})}return U(["minner",n.isOver?"mover":"munder"],[s],t)},yte=(e,t)=>{var r=wg(e.label);return new V(e.isOver?"mover":"munder",[Qe(e.base,t),r])};ee({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:o}=e;return{type:"horizBrace",mode:r.mode,label:o,isOver:o.includes("\\over"),base:t[0]}},htmlBuilder:iR,mathmlBuilder:yte});ee({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[1],n=Ce(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:$t(o)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Et(e.body,t,!1);return Nee(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Ai(e.body,t);return r instanceof V||(r=new V("mrow",[r])),r.setAttribute("href",e.href),r}});ee({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=Ce(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:o}))return r.formatUnsupportedCmd("\\url");for(var n=[],i=0;i<o.length;i++){var a=o[i];a==="~"&&(a="\\textasciitilde"),n.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:r.mode,font:"\\texttt",body:n};return{type:"href",mode:r.mode,href:o,body:$t(s)}}});ee({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:$t(t[0])}},htmlBuilder(e,t){var r=Et(e.body,t,!1);return Mo(r)},mathmlBuilder(e,t){return new V("mrow",Fr(e.body,t))}});ee({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:o,token:n}=e,i=Ce(t[0],"raw").string,a=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(o){case"\\htmlClass":l.class=i,s={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,s={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,s={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),c=0;c<u.length;c++){var d=u[c],p=d.indexOf("=");if(p<0)throw new W("\\htmlData key/value '"+d+"' missing equals sign");var m=d.slice(0,p),g=d.slice(p+1);l["data-"+m.trim()]=g}s={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:l,body:$t(a)}:r.formatUnsupportedCmd(o)},htmlBuilder:(e,t)=>{var r=Et(e.body,t,!1),o=["enclosing"];e.attributes.class&&o.push(...e.attributes.class.trim().split(/\s+/));var n=U(o,r,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&n.setAttribute(i,e.attributes[i]);return n},mathmlBuilder:(e,t)=>Ai(e.body,t)});ee({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:$t(t[0]),mathml:$t(t[1])}},htmlBuilder:(e,t)=>{var r=Et(e.html,t,!1);return Mo(r)},mathmlBuilder:(e,t)=>Ai(e.mathml,t)});var kk=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new W("Invalid size: '"+t+"' in \\includegraphics");var o={number:+(r[1]+r[2]),unit:r[3]};if(!kN(o))throw new W("Invalid unit: '"+o.unit+"' in \\includegraphics.");return o};ee({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:o}=e,n={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(r[0])for(var l=Ce(r[0],"raw").string,u=l.split(","),c=0;c<u.length;c++){var d=u[c].split("=");if(d.length===2){var p=d[1].trim();switch(d[0].trim()){case"alt":s=p;break;case"width":n=kk(p);break;case"height":i=kk(p);break;case"totalheight":a=kk(p);break;default:throw new W("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var m=Ce(t[0],"url").url;return s===""&&(s=m,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),o.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:o.mode,alt:s,width:n,height:i,totalheight:a,src:m}:o.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=gt(e.height,t),o=0;e.totalheight.number>0&&(o=gt(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=gt(e.width,t));var i={height:K(r+o)};n>0&&(i.width=K(n)),o>0&&(i.verticalAlign=K(-o));var a=new zk(e.src,e.alt,i);return a.height=r,a.depth=o,a},mathmlBuilder:(e,t)=>{var r=new V("mglyph",[]);r.setAttribute("alt",e.alt);var o=gt(e.height,t),n=0;if(e.totalheight.number>0&&(n=gt(e.totalheight,t)-o,r.setAttribute("valign",K(-n))),r.setAttribute("height",K(o+n)),e.width.number>0){var i=gt(e.width,t);r.setAttribute("width",K(i))}return r.setAttribute("src",e.src),r}});ee({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:o}=e,n=Ce(t[0],"size");if(r.settings.strict){var i=o[1]==="m",a=n.value.unit==="mu";i?(a||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" works only in math mode")):a&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder(e,t){return CN(e.dimension,t)},mathmlBuilder(e,t){var r=gt(e.dimension,t);return new hg(r)}});ee({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:o.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=U([],[Le(e.body,t)]),r=U(["inner"],[r],t)):r=U(["inner"],[Le(e.body,t)]);var o=U(["fix"],[]),n=U([e.alignment],[r,o],t),i=U(["strut"]);return i.style.height=K(n.height+n.depth),n.depth&&(i.style.verticalAlign=K(-n.depth)),n.children.unshift(i),n=U(["thinbox"],[n],t),U(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new V("mpadded",[Qe(e.body,t)]);if(e.alignment!=="rlap"){var o=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",o+"width")}return r.setAttribute("width","0px"),r}});ee({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:o}=e,n=o.mode;o.switchMode("math");var i=r==="\\("?"\\)":"$",a=o.parseExpression(!1,i);return o.expect(i),o.switchMode(n),{type:"styling",mode:o.mode,style:"text",body:a}}});ee({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new W("Mismatched "+e.funcName)}});var cN=(e,t)=>{switch(t.style.size){case be.DISPLAY.size:return e.display;case be.TEXT.size:return e.text;case be.SCRIPT.size:return e.script;case be.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ee({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:$t(t[0]),text:$t(t[1]),script:$t(t[2]),scriptscript:$t(t[3])}},htmlBuilder:(e,t)=>{var r=cN(e,t),o=Et(r,t,!1);return Mo(o)},mathmlBuilder:(e,t)=>{var r=cN(e,t);return Ai(r,t)}});var aR=(e,t,r,o,n,i,a)=>{e=U([],[e]);var s=r&&Eo(r),l,u;if(t){var c=Le(t,o.havingStyle(n.sup()),o);u={elem:c,kern:Math.max(o.fontMetrics().bigOpSpacing1,o.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var d=Le(r,o.havingStyle(n.sub()),o);l={elem:d,kern:Math.max(o.fontMetrics().bigOpSpacing2,o.fontMetrics().bigOpSpacing4-d.height)}}var p;if(u&&l){var m=o.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+a;p=Ue({positionType:"bottom",positionData:m,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:K(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:K(i)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]})}else if(l){var g=e.height-a;p=Ue({positionType:"top",positionData:g,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:K(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]})}else if(u){var x=e.depth+a;p=Ue({positionType:"bottom",positionData:x,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:K(i)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]})}else return e;var w=[p];if(l&&i!==0&&!s){var S=U(["mspace"],[],o);S.style.marginRight=K(i),w.unshift(S)}return U(["mop","op-limits"],w,o)},sR=new Set(["\\smallint"]),Cl=(e,t)=>{var r,o,n=!1,i;e.type==="supsub"?(r=e.sup,o=e.sub,i=Ce(e.base,"op"),n=!0):i=Ce(e,"op");var a=t.style,s=!1;a.size===be.DISPLAY.size&&i.symbol&&!sR.has(i.name)&&(s=!0);var l;if(i.symbol){var u=s?"Size2-Regular":"Size1-Regular",c="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(c=i.name.slice(1),i.name=c==="oiint"?"\\iint":"\\iiint"),l=ir(i.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),c.length>0){var d=l.italic,p=EN(c+"Size"+(s?"2":"1"),t);l=Ue({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:s?.08:0}]}),i.name="\\"+c,l.classes.unshift("mop"),l.italic=d}}else if(i.body){var m=Et(i.body,t,!0);m.length===1&&m[0]instanceof sr?(l=m[0],l.classes[0]="mop"):l=U(["mop"],m,t)}else{for(var g=[],x=1;x<i.name.length;x++)g.push(qk(i.name[x],i.mode,t));l=U(["mop"],g,t)}var w=0,S=0;return(l instanceof sr||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(w=(l.height-l.depth)/2-t.fontMetrics().axisHeight,S=l.italic||0),n?aR(l,r,o,t,a,S,w):(w&&(l.style.position="relative",l.style.top=K(w)),l)},Ad=(e,t)=>{var r;if(e.symbol)r=new V("mo",[rn(e.name,e.mode)]),sR.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new V("mo",Fr(e.body,t));else{r=new V("mi",[new bt(e.name.slice(1))]);var o=new V("mo",[rn("\u2061","text")]);e.parentIsSupSub?r=new V("mrow",[r,o]):r=DN([r,o])}return r},bte={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};ee({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=o;return n.length===1&&(n=bte[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Cl,mathmlBuilder:Ad});ee({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:$t(o)}},htmlBuilder:Cl,mathmlBuilder:Ad});var xte={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};ee({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Cl,mathmlBuilder:Ad});ee({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Cl,mathmlBuilder:Ad});ee({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,o=r;return o.length===1&&(o=xte[o]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Cl,mathmlBuilder:Ad});var lR=(e,t)=>{var r,o,n=!1,i;e.type==="supsub"?(r=e.sup,o=e.sub,i=Ce(e.base,"operatorname"),n=!0):i=Ce(e,"operatorname");var a;if(i.body.length>0){for(var s=i.body.map(d=>{var p="text"in d?d.text:void 0;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),l=Et(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof sr&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=U(["mop"],l,t)}else a=U(["mop"],[],t);return n?aR(a,r,o,t,t.style,0,0):a},wte=(e,t)=>{for(var r=Fr(e.body,t.withFont("mathrm")),o=!0,n=0;n<r.length;n++){var i=r[n];if(!(i instanceof hg))if(i instanceof V)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var a=i.children[0];i.children.length===1&&a instanceof bt?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):o=!1;break}default:o=!1}else o=!1}if(o){var s=r.map(c=>c.toText()).join("");r=[new bt(s)]}var l=new V("mi",r);l.setAttribute("mathvariant","normal");var u=new V("mo",[rn("\u2061","text")]);return e.parentIsSupSub?new V("mrow",[l,u]):DN([l,u])};ee({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:$t(n),alwaysHandleSupSub:o==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:lR,mathmlBuilder:wte});k("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Pa({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Mo(Et(e.body,t,!1)):U(["mord"],Et(e.body,t,!0),t)},mathmlBuilder(e,t){return Ai(e.body,t,!0)}});ee({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,o=t[0];return{type:"overline",mode:r.mode,body:o}},htmlBuilder(e,t){var r=Le(e.body,t.havingCrampedStyle()),o=Il("overline-line",t),n=t.fontMetrics().defaultRuleThickness,i=Ue({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:o},{type:"kern",size:n}]});return U(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new V("mo",[new bt("\u203E")]);r.setAttribute("stretchy","true");var o=new V("mover",[Qe(e.body,t),r]);return o.setAttribute("accent","true"),o}});ee({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"phantom",mode:r.mode,body:$t(o)}},htmlBuilder:(e,t)=>{var r=Et(e.body,t.withPhantom(),!1);return Mo(r)},mathmlBuilder:(e,t)=>{var r=Fr(e.body,t);return new V("mphantom",r)}});k("\\hphantom","\\smash{\\phantom{#1}}");ee({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"vphantom",mode:r.mode,body:o}},htmlBuilder:(e,t)=>{var r=U(["inner"],[Le(e.body,t.withPhantom())]),o=U(["fix"],[]);return U(["mord","rlap"],[r,o],t)},mathmlBuilder:(e,t)=>{var r=Fr($t(e.body),t),o=new V("mphantom",r),n=new V("mpadded",[o]);return n.setAttribute("width","0px"),n}});ee({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,o=Ce(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:o,body:n}},htmlBuilder(e,t){var r=Le(e.body,t),o=gt(e.dy,t);return Ue({positionType:"shift",positionData:-o,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new V("mpadded",[Qe(e.body,t)]),o=e.dy.number+e.dy.unit;return r.setAttribute("voffset",o),r}});ee({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ee({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:o}=e,n=r[0],i=Ce(t[0],"size"),a=Ce(t[1],"size");return{type:"rule",mode:o.mode,shift:n&&Ce(n,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var r=U(["mord","rule"],[],t),o=gt(e.width,t),n=gt(e.height,t),i=e.shift?gt(e.shift,t):0;return r.style.borderRightWidth=K(o),r.style.borderTopWidth=K(n),r.style.bottom=K(i),r.width=o,r.height=n+i,r.depth=-i,r.maxFontSize=n*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=gt(e.width,t),o=gt(e.height,t),n=e.shift?gt(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new V("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",K(r)),a.setAttribute("height",K(o));var s=new V("mpadded",[a]);return n>=0?s.setAttribute("height",K(n)):(s.setAttribute("height",K(n)),s.setAttribute("depth",K(-n))),s.setAttribute("voffset",K(n)),s}});function uR(e,t,r){for(var o=Et(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,i=0;i<o.length;i++){var a=o[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(o[i].classes,t.sizingClasses(r)):o[i].classes[a+1]==="reset-size"+t.size&&(o[i].classes[a+1]="reset-size"+r.size),o[i].height*=n,o[i].depth*=n}return Mo(o)}var dN=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],_te=(e,t)=>{var r=t.havingSize(e.size);return uR(e.body,r,t)};ee({type:"sizing",names:dN,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:o,parser:n}=e,i=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:dN.indexOf(o)+1,body:i}},htmlBuilder:_te,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),o=Fr(e.body,r),n=new V("mstyle",o);return n.setAttribute("mathsize",K(r.sizeMultiplier)),n}});ee({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:o}=e,n=!1,i=!1,a=r[0]&&Ce(r[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l){var u=a.body[l];if(s=kg(u).text,s==="t")n=!0;else if(s==="b")i=!0;else{n=!1,i=!1;break}}else n=!0,i=!0;var c=t[0];return{type:"smash",mode:o.mode,body:c,smashHeight:n,smashDepth:i}},htmlBuilder:(e,t)=>{var r=U([],[Le(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return U(["mord","smash"],[r],t);if(r.children)for(var o=0;o<r.children.length;o++)e.smashHeight&&(r.children[o].height=0),e.smashDepth&&(r.children[o].depth=0);var n=Ue({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return U(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var r=new V("mpadded",[Qe(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ee({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:o}=e,n=r[0],i=t[0];return{type:"sqrt",mode:o.mode,body:i,index:n}},htmlBuilder(e,t){var r=Le(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Tl(r,t);var o=t.fontMetrics(),n=o.defaultRuleThickness,i=n;t.style.id<be.TEXT.id&&(i=t.fontMetrics().xHeight);var a=n+i/4,s=r.height+r.depth+a+n,{span:l,ruleWidth:u,advanceWidth:c}=lte(s,t),d=l.height-u;d>r.height+r.depth+a&&(a=(a+d-r.height-r.depth)/2);var p=l.height-r.height-a-u;r.style.paddingLeft=K(c);var m=Ue({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+p)},{type:"elem",elem:l},{type:"kern",size:u}]});if(e.index){var g=t.havingStyle(be.SCRIPTSCRIPT),x=Le(e.index,g,t),w=.6*(m.height-m.depth),S=Ue({positionType:"shift",positionData:-w,children:[{type:"elem",elem:x}]}),_=U(["root"],[S]);return U(["mord","sqrt"],[_,m],t)}else return U(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:r,index:o}=e;return o?new V("mroot",[Qe(r,t),Qe(o,t)]):new V("msqrt",[Qe(r,t)])}});var pN={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT};ee({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:o,parser:n}=e,i=n.parseExpression(!0,r),a=o.slice(1,o.length-5);return{type:"styling",mode:n.mode,style:a,body:i}},htmlBuilder(e,t){var r=pN[e.style],o=t.havingStyle(r).withFont("");return uR(e.body,o,t)},mathmlBuilder(e,t){var r=pN[e.style],o=t.havingStyle(r),n=Fr(e.body,o),i=new V("mstyle",n),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=a[e.style];return i.setAttribute("scriptlevel",s[0]),i.setAttribute("displaystyle",s[1]),i}});var kte=function(t,r){var o=t.base;if(o)if(o.type==="op"){var n=o.limits&&(r.style.size===be.DISPLAY.size||o.alwaysHandleSupSub);return n?Cl:null}else if(o.type==="operatorname"){var i=o.alwaysHandleSupSub&&(r.style.size===be.DISPLAY.size||o.limits);return i?lR:null}else{if(o.type==="accent")return Eo(o.base)?Kk:null;if(o.type==="horizBrace"){var a=!t.sub;return a===o.isOver?iR:null}else return null}else return null};Pa({type:"supsub",htmlBuilder(e,t){var r=kte(e,t);if(r)return r(e,t);var{base:o,sup:n,sub:i}=e,a=Le(o,t),s,l,u=t.fontMetrics(),c=0,d=0,p=o&&Eo(o);if(n){var m=t.havingStyle(t.style.sup());s=Le(n,m,t),p||(c=a.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(i){var g=t.havingStyle(t.style.sub());l=Le(i,g,t),p||(d=a.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var x;t.style===be.DISPLAY?x=u.sup1:t.style.cramped?x=u.sup3:x=u.sup2;var w=t.sizeMultiplier,S=K(.5/u.ptPerEm/w),_=null;if(l){var b=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(a instanceof sr||b)&&(_=K(-a.italic))}var T;if(s&&l){c=Math.max(c,x,s.depth+.25*u.xHeight),d=Math.max(d,u.sub2);var $=u.defaultRuleThickness,C=4*$;if(c-s.depth-(l.height-d)<C){d=C-(c-s.depth)+l.height;var M=.8*u.xHeight-(c-s.depth);M>0&&(c+=M,d-=M)}var R=[{type:"elem",elem:l,shift:d,marginRight:S,marginLeft:_},{type:"elem",elem:s,shift:-c,marginRight:S}];T=Ue({positionType:"individualShift",children:R})}else if(l){d=Math.max(d,u.sub1,l.height-.8*u.xHeight);var N=[{type:"elem",elem:l,marginLeft:_,marginRight:S}];T=Ue({positionType:"shift",positionData:d,children:N})}else if(s)c=Math.max(c,x,s.depth+.25*u.xHeight),T=Ue({positionType:"shift",positionData:-c,children:[{type:"elem",elem:s,marginRight:S}]});else throw new Error("supsub must have either sup or sub.");var j=Nk(a,"right")||"mord";return U([j],[a,U(["msupsub"],[T])],t)},mathmlBuilder(e,t){var r=!1,o,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,o=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[Qe(e.base,t)];e.sub&&i.push(Qe(e.sub,t)),e.sup&&i.push(Qe(e.sup,t));var a;if(r)a=o?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===be.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===be.DISPLAY||u.limits)?a="munderover":a="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===be.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===be.DISPLAY)?a="munder":a="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===be.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===be.DISPLAY)?a="mover":a="msup"}return new V(a,i)}});Pa({type:"atom",htmlBuilder(e,t){return qk(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new V("mo",[rn(e.text,e.mode)]);if(e.family==="bin"){var o=Jk(e,t);o==="bold-italic"&&r.setAttribute("mathvariant",o)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var cR={mi:"italic",mn:"normal",mtext:"normal"};Pa({type:"mathord",htmlBuilder(e,t){return xg(e,t,"mathord")},mathmlBuilder(e,t){var r=new V("mi",[rn(e.text,e.mode,t)]),o=Jk(e,t)||"italic";return o!==cR[r.type]&&r.setAttribute("mathvariant",o),r}});Pa({type:"textord",htmlBuilder(e,t){return xg(e,t,"textord")},mathmlBuilder(e,t){var r=rn(e.text,e.mode,t),o=Jk(e,t)||"normal",n;return e.mode==="text"?n=new V("mtext",[r]):/[0-9]/.test(e.text)?n=new V("mn",[r]):e.text==="\\prime"?n=new V("mo",[r]):n=new V("mi",[r]),o!==cR[n.type]&&n.setAttribute("mathvariant",o),n}});var Sk={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},$k={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Pa({type:"spacing",htmlBuilder(e,t){if($k.hasOwnProperty(e.text)){var r=$k[e.text].className||"";if(e.mode==="text"){var o=xg(e,t,"textord");return o.classes.push(r),o}else return U(["mspace",r],[qk(e.text,e.mode,t)],t)}else{if(Sk.hasOwnProperty(e.text))return U(["mspace",Sk[e.text]],[],t);throw new W('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if($k.hasOwnProperty(e.text))r=new V("mtext",[new bt("\xA0")]);else{if(Sk.hasOwnProperty(e.text))return new V("mspace");throw new W('Unknown type of space "'+e.text+'"')}return r}});var mN=()=>{var e=new V("mtd",[]);return e.setAttribute("width","50%"),e};Pa({type:"tag",mathmlBuilder(e,t){var r=new V("mtable",[new V("mtr",[mN(),new V("mtd",[Ai(e.body,t)]),mN(),new V("mtd",[Ai(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var fN={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},hN={"\\textbf":"textbf","\\textmd":"textmd"},Ste={"\\textit":"textit","\\textup":"textup"},gN=(e,t)=>{var r=e.font;if(r){if(fN[r])return t.withTextFontFamily(fN[r]);if(hN[r])return t.withTextFontWeight(hN[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Ste[r])};ee({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];return{type:"text",mode:r.mode,body:$t(n),font:o}},htmlBuilder(e,t){var r=gN(e,t),o=Et(e.body,r,!0);return U(["mord","text"],o,r)},mathmlBuilder(e,t){var r=gN(e,t);return Ai(e.body,r)}});ee({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Le(e.body,t),o=Il("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=Ue({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:o},{type:"kern",size:3*n},{type:"elem",elem:r}]});return U(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new V("mo",[new bt("\u203E")]);r.setAttribute("stretchy","true");var o=new V("munder",[Qe(e.body,t),r]);return o.setAttribute("accentunder","true"),o}});ee({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Le(e.body,t),o=t.fontMetrics().axisHeight,n=.5*(r.height-o-(r.depth+o));return Ue({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new V("mpadded",[Qe(e.body,t)],["vcenter"])}});ee({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new W("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=vN(e),o=[],n=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var a=r[i];a==="~"&&(a="\\textasciitilde"),o.push(ir(a,"Typewriter-Regular",e.mode,n,["mord","texttt"]))}return U(["mord","text"].concat(n.sizingClasses(t)),PN(o),n)},mathmlBuilder(e,t){var r=new bt(vN(e)),o=new V("mtext",[r]);return o.setAttribute("mathvariant","monospace"),o}});var vN=e=>e.body.replace(/ /g,e.star?"\u2423":"\xA0"),Ti=AN,dR=`[ \r 520 ]`,$te="\\\\[a-zA-Z@]+",Ite="\\\\[^\uD800-\uDFFF]",Tte="("+$te+")"+dR+"*",Pte=`\\\\( 521|[ \r ]+ 522?)[ \r ]*`,Lk="[\u0300-\u036F]",Cte=new RegExp(Lk+"+$"),zte="("+dR+"+)|"+(Pte+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Lk+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Lk+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Tte)+("|"+Ite+")"),vg=class{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(zte,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Ur("EOF",new kr(this,r,r));var o=this.tokenRegex.exec(t);if(o===null||o.index!==r)throw new W("Unexpected character: '"+t[r]+"'",new Ur(t[r],new kr(this,r,r+1)));var n=o[6]||o[3]||(o[2]?"\\ ":" ");if(this.catcodes[n]===14){var i=t.indexOf(` 523`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Ur(n,new kr(this,r,this.tokenRegex.lastIndex))}},Fk=class{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new W("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,o){if(o===void 0&&(o=!1),o){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}},Ete=eR;k("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});k("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});k("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});k("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});k("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});k("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");k("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var yN={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};k("\\char",function(e){var t=e.popToken(),r,o=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")o=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new W("\\char` missing argument");o=t.text.charCodeAt(0)}else r=10;if(r){if(o=yN[t.text],o==null||o>=r)throw new W("Invalid base-"+r+" digit "+t.text);for(var n;(n=yN[e.future().text])!=null&&n<r;)o*=r,o+=n,e.popToken()}return"\\@char{"+o+"}"});var eS=(e,t,r,o)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new W("\\newcommand's first argument must be a macro name");var i=n[0].text,a=e.isDefined(i);if(a&&!t)throw new W("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new W("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new W("Invalid number of arguments: "+l);s=parseInt(l),n=e.consumeArg().tokens}return a&&o||e.macros.set(i,{tokens:n,numArgs:s}),""};k("\\newcommand",e=>eS(e,!1,!0,!1));k("\\renewcommand",e=>eS(e,!0,!1,!1));k("\\providecommand",e=>eS(e,!0,!0,!0));k("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});k("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});k("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Ti[r],ut.math[r],ut.text[r]),""});k("\\bgroup","{");k("\\egroup","}");
523k("~","\\nobreakspace");k("\\lq","`");k("\\rq","'");k("\\aa","\\r a");k("\\AA","\\r A");k("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");k("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");k("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");k("\u212C","\\mathscr{B}");k("\u2130","\\mathscr{E}");k("\u2131","\\mathscr{F}");k("\u210B","\\mathscr{H}");k("\u2110","\\mathscr{I}");k("\u2112","\\mathscr{L}");k("\u2133","\\mathscr{M}");k("\u211B","\\mathscr{R}");k("\u212D","\\mathfrak{C}");k("\u210C","\\mathfrak{H}");k("\u2128","\\mathfrak{Z}");k("\\Bbbk","\\Bbb{k}");k("\\llap","\\mathllap{\\textrm{#1}}");k("\\rlap","\\mathrlap{\\textrm{#1}}");k("\\clap","\\mathclap{\\textrm{#1}}");k("\\mathstrut","\\vphantom{(}");k("\\underbar","\\underline{\\text{#1}}");k("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');k("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");k("\\ne","\\neq");k("\u2260","\\neq");k("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");
vendor: 5,310 bytes, line 523
523k("\u2209","\\notin");k("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");k("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");k("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");k("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");k("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");k("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");k("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");k("\u27C2","\\perp");k("\u203C","\\mathclose{!\\mkern-0.8mu!}");k("\u220C","\\notni");k("\u231C","\\ulcorner");k("\u231D","\\urcorner");k("\u231E","\\llcorner");k("\u231F","\\lrcorner");k("\xA9","\\copyright");k("\xAE","\\textregistered");k("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');k("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');k("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');k("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');k("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");k("\u22EE","\\vdots");k("\\varGamma","\\mathit{\\Gamma}");k("\\varDelta","\\mathit{\\Delta}");k("\\varTheta","\\mathit{\\Theta}");k("\\varLambda","\\mathit{\\Lambda}");k("\\varXi","\\mathit{\\Xi}");k("\\varPi","\\mathit{\\Pi}");k("\\varSigma","\\mathit{\\Sigma}");k("\\varUpsilon","\\mathit{\\Upsilon}");k("\\varPhi","\\mathit{\\Phi}");k("\\varPsi","\\mathit{\\Psi}");k("\\varOmega","\\mathit{\\Omega}");k("\\substack","\\begin{subarray}{c}#1\\end{subarray}");k("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");k("\\boxed","\\fbox{$\\displaystyle{#1}$}");k("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");k("\\implies","\\DOTSB\\;\\Longrightarrow\\;");k("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");k("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");k("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var bN={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},Ate=new Set(["bin","rel"]);k("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in bN?t=bN[r]:(r.slice(0,4)==="\\not"||r in ut.math&&Ate.has(ut.math[r].group))&&(t="\\dotsb"),t});var tS={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};k("\\dotso",function(e){var t=e.future().text;return t in tS?"\\ldots\\,":"\\ldots"});k("\\dotsc",function(e){var t=e.future().text;return t in tS&&t!==","?"\\ldots\\,":"\\ldots"});k("\\cdots",function(e){var t=e.future().text;return t in tS?"\\@cdots\\,":"\\@cdots"});k("\\dotsb","\\cdots");k("\\dotsm","\\cdots");k("\\dotsi","\\!\\cdots");k("\\dotsx","\\ldots\\,");k("\\DOTSI","\\relax");k("\\DOTSB","\\relax");k("\\DOTSX","\\relax");k("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");k("\\,","\\tmspace+{3mu}{.1667em}");k("\\thinspace","\\,");k("\\>","\\mskip{4mu}");k("\\:","\\tmspace+{4mu}{.2222em}");k("\\medspace","\\:");k("\\;","\\tmspace+{5mu}{.2777em}");k("\\thickspace","\\;");k("\\!","\\tmspace-{3mu}{.1667em}");k("\\negthinspace","\\!");k("\\negmedspace","\\tmspace-{4mu}{.2222em}");k("\\negthickspace","\\tmspace-{5mu}{.277em}");k("\\enspace","\\kern.5em ");k("\\enskip","\\hskip.5em\\relax");k("\\quad","\\hskip1em\\relax");k("\\qquad","\\hskip2em\\relax");k("\\tag","\\@ifstar\\tag@literal\\tag@paren");k("\\tag@paren","\\tag@literal{({#1})}");k("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new W("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});k("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");k("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");k("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");k("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");k("\\newline","\\\\\\relax");k("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var pR=K(Ln["Main-Regular"][84][1]-.7*Ln["Main-Regular"][65][1]);
523k("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+pR+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");k("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+pR+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");k("\\hspace","\\@ifstar\\@hspacer\\@hspace");k("\\@hspace","\\hskip #1\\relax");k("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");k("\\ordinarycolon",":");k("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");k("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');k("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');k("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');k("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');k("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');k("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');k("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');k("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');k("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');k("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');k("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');k("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');k("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');k("\u2237","\\dblcolon");k("\u2239","\\eqcolon");k("\u2254","\\coloneqq");k("\u2255","\\eqqcolon");k("\u2A74","\\Coloneqq");k("\\ratio","\\vcentcolon");k("\\coloncolon","\\dblcolon");k("\\colonequals","\\coloneqq");k("\\coloncolonequals","\\Coloneqq");k("\\equalscolon","\\eqqcolon");k("\\equalscoloncolon","\\Eqqcolon");k("\\colonminus","\\coloneq");k("\\coloncolonminus","\\Coloneq");k("\\minuscolon","\\eqcolon");k("\\minuscoloncolon","\\Eqcolon");k("\\coloncolonapprox","\\Colonapprox");k("\\coloncolonsim","\\Colonsim");k("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");k("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");k("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");k("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");k("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");k("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");k("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");k("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");k("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");k("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");k("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");k("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");k("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");k("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");k("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");k("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");k("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");k("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");k("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");k("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");k("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");k("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");k("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");k("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");k("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");k("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");k("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");k("\\imath","\\html@mathml{\\@imath}{\u0131}");k("\\jmath","\\html@mathml{\\@jmath}{\u0237}");k("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}
523{\\mathopen{\\char`\u27E6}}");k("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");k("\u27E6","\\llbracket");k("\u27E7","\\rrbracket");k("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");k("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");k("\u2983","\\lBrace");k("\u2984","\\rBrace");k("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");k("\u29B5","\\minuso");k("\\darr","\\downarrow");k("\\dArr","\\Downarrow");k("\\Darr","\\Downarrow");k("\\lang","\\langle");k("\\rang","\\rangle");k("\\uarr","\\uparrow");k("\\uArr","\\Uparrow");k("\\Uarr","\\Uparrow");k("\\N","\\mathbb{N}");k("\\R","\\mathbb{R}");k("\\Z","\\mathbb{Z}");k("\\alef","\\aleph");k("\\alefsym","\\aleph");k("\\Alpha","\\mathrm{A}");k("\\Beta","\\mathrm{B}");k("\\bull","\\bullet");k("\\Chi","\\mathrm{X}");k("\\clubs","\\clubsuit");k("\\cnums","\\mathbb{C}");k("\\Complex","\\mathbb{C}");k("\\Dagger","\\ddagger");k("\\diamonds","\\diamondsuit");k("\\empty","\\emptyset");k("\\Epsilon","\\mathrm{E}");k("\\Eta","\\mathrm{H}");k("\\exist","\\exists");k("\\harr","\\leftrightarrow");k("\\hArr","\\Leftrightarrow");k("\\Harr","\\Leftrightarrow");k("\\hearts","\\heartsuit");k("\\image","\\Im");k("\\infin","\\infty");k("\\Iota","\\mathrm{I}");k("\\isin","\\in");k("\\Kappa","\\mathrm{K}");k("\\larr","\\leftarrow");k("\\lArr","\\Leftarrow");k("\\Larr","\\Leftarrow");k("\\lrarr","\\leftrightarrow");k("\\lrArr","\\Leftrightarrow");k("\\Lrarr","\\Leftrightarrow");k("\\Mu","\\mathrm{M}");k("\\natnums","\\mathbb{N}");k("\\Nu","\\mathrm{N}");k("\\Omicron","\\mathrm{O}");k("\\plusmn","\\pm");k("\\rarr","\\rightarrow");k("\\rArr","\\Rightarrow");k("\\Rarr","\\Rightarrow");k("\\real","\\Re");k("\\reals","\\mathbb{R}");k("\\Reals","\\mathbb{R}");k("\\Rho","\\mathrm{P}");k("\\sdot","\\cdot");k("\\sect","\\S");k("\\spades","\\spadesuit");k("\\sub","\\subset");k("\\sube","\\subseteq");k("\\supe","\\supseteq");k("\\Tau","\\mathrm{T}");k("\\thetasym","\\vartheta");k("\\weierp","\\wp");k("\\Zeta","\\mathrm{Z}");k("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");k("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");k("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");k("\\bra","\\mathinner{\\langle{#1}|}");k("\\ket","\\mathinner{|{#1}\\rangle}");k("\\braket","\\mathinner{\\langle{#1}\\rangle}");k("\\Bra","\\left\\langle#1\\right|");k("\\Ket","\\left|#1\\right\\rangle");var mR=e=>t=>{var r=t.consumeArg().tokens,o=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=d=>p=>{e&&(p.macros.set("|",a),n.length&&p.macros.set("\\|",s));var m=d;if(!d&&n.length){var g=p.future();g.text==="|"&&(p.popToken(),m=!0)}return{tokens:m?n:o,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...i,...u,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};k("\\bra@ket",mR(!1));k("\\bra@set",mR(!0));k("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");k("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");k("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");k("\\angln","{\\angl n}");k("\\blue","\\textcolor{##6495ed}{#1}");k("\\orange","\\textcolor{##ffa500}{#1}");k("\\pink","\\textcolor{##ff00af}{#1}");k("\\red","\\textcolor{##df0030}{#1}");k("\\green","\\textcolor{##28ae7b}{#1}");k("\\gray","\\textcolor{gray}{#1}");k("\\purple","\\textcolor{##9d38bd}{#1}");k("\\blueA","\\textcolor{##ccfaff}{#1}");k("\\blueB","\\textcolor{##80f6ff}{#1}");k("\\blueC","\\textcolor{##63d9ea}{#1}");k("\\blueD","\\textcolor{##11accd}{#1}");k("\\blueE","\\textcolor{##0c7f99}{#1}");k("\\tealA","\\textcolor{##94fff5}{#1}");k("\\tealB","\\textcolor{##26edd5}{#1}");k("\\tealC","\\textcolor{##01d1c1}{#1}");k("\\tealD","\\textcolor{##01a995}{#1}");k("\\tealE","\\textcolor{##208170}{#1}");k("\\greenA","\\textcolor{##b6ffb0}{#1}");
vendor: 13,082 bytes, line 523
523k("\\greenB","\\textcolor{##8af281}{#1}");k("\\greenC","\\textcolor{##74cf70}{#1}");k("\\greenD","\\textcolor{##1fab54}{#1}");k("\\greenE","\\textcolor{##0d923f}{#1}");k("\\goldA","\\textcolor{##ffd0a9}{#1}");k("\\goldB","\\textcolor{##ffbb71}{#1}");k("\\goldC","\\textcolor{##ff9c39}{#1}");k("\\goldD","\\textcolor{##e07d10}{#1}");k("\\goldE","\\textcolor{##a75a05}{#1}");k("\\redA","\\textcolor{##fca9a9}{#1}");k("\\redB","\\textcolor{##ff8482}{#1}");k("\\redC","\\textcolor{##f9685d}{#1}");k("\\redD","\\textcolor{##e84d39}{#1}");k("\\redE","\\textcolor{##bc2612}{#1}");k("\\maroonA","\\textcolor{##ffbde0}{#1}");k("\\maroonB","\\textcolor{##ff92c6}{#1}");k("\\maroonC","\\textcolor{##ed5fa6}{#1}");k("\\maroonD","\\textcolor{##ca337c}{#1}");k("\\maroonE","\\textcolor{##9e034e}{#1}");k("\\purpleA","\\textcolor{##ddd7ff}{#1}");k("\\purpleB","\\textcolor{##c6b9fc}{#1}");k("\\purpleC","\\textcolor{##aa87ff}{#1}");k("\\purpleD","\\textcolor{##7854ab}{#1}");k("\\purpleE","\\textcolor{##543b78}{#1}");k("\\mintA","\\textcolor{##f5f9e8}{#1}");k("\\mintB","\\textcolor{##edf2df}{#1}");k("\\mintC","\\textcolor{##e0e5cc}{#1}");k("\\grayA","\\textcolor{##f6f7f7}{#1}");k("\\grayB","\\textcolor{##f0f1f2}{#1}");k("\\grayC","\\textcolor{##e3e5e6}{#1}");k("\\grayD","\\textcolor{##d6d8da}{#1}");k("\\grayE","\\textcolor{##babec2}{#1}");k("\\grayF","\\textcolor{##888d93}{#1}");k("\\grayG","\\textcolor{##626569}{#1}");k("\\grayH","\\textcolor{##3b3e40}{#1}");k("\\grayI","\\textcolor{##21242c}{#1}");k("\\kaBlue","\\textcolor{##314453}{#1}");k("\\kaGreen","\\textcolor{##71B307}{#1}");var fR={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Bk=class{constructor(t,r,o){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new Fk(Ete,r.macros),this.mode=o,this.stack=[]}feed(t){this.lexer=new vg(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,o,n;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:n,end:o}=this.consumeArg(["]"])}else({tokens:n,start:r,end:o}=this.consumeArg());return this.pushToken(new Ur("EOF",o.loc)),this.pushTokens(n),new Ur("",kr.range(r,o))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],o=t&&t.length>0;o||this.consumeSpaces();var n=this.future(),i,a=0,s=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++a;else if(i.text==="}"){if(--a,a===-1)throw new W("Extra }",i)}else if(i.text==="EOF")throw new W("Unexpected end of input in a macro argument, expected '"+(t&&o?t[s]:"}")+"'",i);if(t&&o)if((a===0||a===1&&t[s]==="{")&&i.text===t[s]){if(++s,s===t.length){r.splice(-s,s);break}}else s=0}while(a!==0||o);return n.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:i}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new W("The length of delimiters doesn't match the number of args!");for(var o=r[0],n=0;n<o.length;n++){var i=this.popToken();if(o[n]!==i.text)throw new W("Use of the macro doesn't match its definition",i)}}for(var a=[],s=0;s<t;s++)a.push(this.consumeArg(r&&r[s+1]).tokens);return a}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new W("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),o=r.text,n=r.noexpand?null:this._getExpansion(o);if(n==null||t&&n.unexpandable){if(t&&n==null&&o[0]==="\\"&&!this.isDefined(o))throw new W("Undefined control sequence: "+o);return this.pushToken(r),!1}this.countExpansion(1);var i=n.tokens,a=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){i=i.slice();for(var s=i.length-1;s>=0;--s){var l=i[s];if(l.text==="#"){if(s===0)throw new W("Incomplete placeholder at end of macro body",l);if(l=i[--s],l.text==="#")i.splice(s+1,1);else if(/^[1-9]$/.test(l.text))i.splice(s,2,...a[+l.text-1]);else throw new W("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Ur(t)]):void 0}expandTokens(t){var r=[],o=this.stack.length;for(this.pushTokens(t);this.stack.length>o;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),r.push(n)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(o=>o.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var o=this.lexer.catcodes[t];if(o!=null&&o!==13)return}var n=typeof r=="function"?r(this):r;if(typeof n=="string"){var i=0;if(n.includes("#"))for(var a=n.replace(/##/g,"");a.includes("#"+(i+1));)++i;for(var s=new vg(n,this.settings),l=[],u=s.lex();u.text!=="EOF";)l.push(u),u=s.lex();l.reverse();var c={tokens:l,numArgs:i};return c}return n}isDefined(t){return this.macros.has(t)||Ti.hasOwnProperty(t)||ut.math.hasOwnProperty(t)||ut.text.hasOwnProperty(t)||fR.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Ti.hasOwnProperty(t)&&!Ti[t].primitive}},xN=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,sg=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),Ik={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},wN={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u
5230302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},yg=class e{constructor(t,r){this.mode="math",this.gullet=new Bk(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new W("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Ur("}")),this.gullet.pushTokens(t);var o=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,o}parseExpression(t,r){for(var o=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(e.endOfExpression.has(n.text)||r&&n.text===r||t&&Ti[n.text]&&Ti[n.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;o.push(i)}return this.mode==="text"&&this.formLigatures(o),this.handleInfixNodes(o)}handleInfixNodes(t){for(var r=-1,o,n=0;n<t.length;n++){var i=t[n];if(i.type==="infix"){if(r!==-1)throw new W("only one infix operator per group",i.token);r=n,o=i.replaceWith}}if(r!==-1&&o){var a,s,l=t.slice(0,r),u=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?a=l[0]:a={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var c;return o==="\\\\abovefrac"?c=this.callFunction(o,[a,t[r],s],[]):c=this.callFunction(o,[a,s],[]),[c]}else return t}handleSupSubscript(t){var r=this.fetch(),o=r.text;this.consume(),this.consumeSpaces();var n;do{var i;n=this.parseGroup(t)}while(((i=n)==null?void 0:i.type)==="internal");if(!n)throw new W("Expected group after '"+o+"'",r);return n}formatUnsupportedCmd(t){for(var r=[],o=0;o<t.length;o++)r.push({type:"textord",mode:"text",text:t[o]});var n={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return i}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var o,n;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op"){var a=i.text==="\\limits";r.limits=a,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new W("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(o)throw new W("Double superscript",i);o=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(n)throw new W("Double subscript",i);n=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(o)throw new W("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();this.fetch().text==="'";)l.push(s),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),o={type:"ordgroup",mode:this.mode,body:l}}else if(sg[i.text]){var u=xN.test(i.text),c=[];for(c.push(new Ur(sg[i.text])),this.consume();;){var d=this.fetch().text;if(!sg[d]||xN.test(d)!==u)break;c.unshift(new Ur(sg[d])),this.consume()}var p=this.subparse(c);u?n={type:"ordgroup",mode:"math",body:p}:o={type:"ordgroup",mode:"math",body:p}}else break}return o||n?{type:"supsub",mode:this.mode,base:r,sup:o,sub:n}:r}parseFunction(t,r){var o=this.fetch(),n=o.text,i=Ti[n];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new W("Got function '"+n+"' with no arguments"+(r?" as "+r:""),o);if(this.mode==="text"&&!i.allowedInText)throw new W("Can't use function '"+n+"' in text mode",o);if(this.mode==="math"&&i.allowedInMath===!1)throw new W("Can't use function '"+n+"' in math mode",o);var{args:a,optArgs:s}=this.parseArguments(n,i);return this.callFunction(n,a,s,o,t)}callFunction(t,r,o,n,i){var a={funcName:t,parser:this,token:n,breakOnTokenText:i},s=Ti[t];if(s&&s.handler)return s.handler(a,r,o);throw new W("No function handler for "+t)}parseArguments(t,r){var o=r.numArgs+r.numOptionalArgs;if(o===0)return{args:[],optArgs:[]};for(var n=[],i=[],a=0;a<o;a++){var s=r.argTypes&&r.argTypes[a],l=a<r.numOptionalArgs;("primitive"in r&&r.primitive&&s==null||r.type==="sqrt"&&a===1&&i[0]==null)&&(s="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",s,l);if(l)i.push(u);else if(u!=null)n.push(u);else throw new W("Null argument, please report this as a bug")}return{args:n,optArgs:i}}parseGroupOfType(t,r,o){switch(r){case"color":return this.parseColorGroup(o);case"size":return this.parseSizeGroup(o);case"url":return this.parseUrlGroup(o);case"math":case"text":return this.parseArgumentGroup(o,r);case"hbox":{var n=this.parseArgumentGroup(o,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",o);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(o)throw new W("A primitive argument cannot be optional");var a=this.parseGroup(t);
vendor: 4,251 bytes, lines 523-524
523if(a==null)throw new W("Expected group as "+t,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(o);default:throw new W("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var o=this.gullet.scanArgument(r);if(o==null)return null;for(var n="",i;(i=this.fetch()).text!=="EOF";)n+=i.text,this.consume();return this.consume(),o.text=n,o}parseRegexGroup(t,r){for(var o=this.fetch(),n=o,i="",a;(a=this.fetch()).text!=="EOF"&&t.test(i+a.text);)n=a,i+=n.text,this.consume();if(i==="")throw new W("Invalid "+r+": '"+o.text+"'",o);return o.range(n,i)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var o=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!o)throw new W("Invalid color: '"+r.text+"'",r);var n=o[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(t){var r,o=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",o=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!n)throw new W("Invalid size: '"+r.text+"'",r);var i={number:+(n[1]+n[2]),unit:n[3]};if(!kN(i))throw new W("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:o}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var o=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:o}}parseArgumentGroup(t,r){var o=this.gullet.scanArgument(t);if(o==null)return null;var n=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:o.loc,body:i};return r&&this.switchMode(n),a}parseGroup(t,r){var o=this.fetch(),n=o.text,i;if(n==="{"||n==="\\begingroup"){this.consume();var a=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,a),l=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:kr.range(o,l),body:s,semisimple:n==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&n[0]==="\\"&&!fR.hasOwnProperty(n)){if(this.settings.throwOnError)throw new W("Undefined control sequence: "+n,o);i=this.formatUnsupportedCmd(n),this.consume()}return i}formLigatures(t){for(var r=t.length-1,o=0;o<r;++o){var n=t[o];if(n.type==="textord"){var i=n.text,a=t[o+1];if(!(!a||a.type!=="textord")){if(i==="-"&&a.text==="-"){var s=t[o+2];o+1<r&&s&&s.type==="textord"&&s.text==="-"?(t.splice(o,3,{type:"textord",mode:"text",loc:kr.range(n,s),text:"---"}),r-=2):(t.splice(o,2,{type:"textord",mode:"text",loc:kr.range(n,a),text:"--"}),r-=1)}(i==="'"||i==="`")&&a.text===i&&(t.splice(o,2,{type:"textord",mode:"text",loc:kr.range(n,a),text:i+i}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var o=r.slice(5),n=o.charAt(0)==="*";if(n&&(o=o.slice(1)),o.length<2||o.charAt(0)!==o.slice(-1))throw new W(`\\verb assertion failed -- 524 please report what input caused this bug`);return o=o.slice(1,-1),{type:"verb",mode:"text",body:o,star:n}}wN.hasOwnProperty(r[0])&&!ut[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=wN[r[0]]+r.slice(1));var i=Cte.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var a;if(ut[this.mode][r]){this.settings.strict&&this.mode==="math"&&Ek.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var s=ut[this.mode][r].group,l=kr.range(t),u;if(zee.hasOwnProperty(s)){var c=s;u={type:"atom",mode:this.mode,family:c,loc:l,text:r}}else u={type:s,mode:this.mode,loc:l,text:r};a=u}else if(r.charCodeAt(0)>
vendor: 4,309 bytes, line 524
524=128)this.settings.strict&&(_N(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),a={type:"textord",mode:"text",loc:kr.range(t),text:r};else return null;if(this.consume(),i)for(var d=0;d<i[0].length;d++){var p=i[0][d];if(!Ik[p])throw new W("Unknown accent ' "+p+"'",t);var m=Ik[p][this.mode]||Ik[p].text;if(!m)throw new W("Accent "+p+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:kr.range(t),label:m,isStretchy:!1,isShifty:!0,base:a}}return a}};yg.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var rS=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var o=new yg(t,r);delete o.gullet.macros.current["\\df@tag"];var n=o.parse();if(delete o.gullet.macros.current["\\current@color"],delete o.gullet.macros.current["\\color"],o.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new W("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:o.subparse([new Ur("\\df@tag")])}]}return n},hR=function(t,r,o){r.textContent="";var n=nS(t,o).toNode();r.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),hR=function(){throw new W("KaTeX doesn't work in quirks mode.")});var Mte=function(t,r){var o=nS(t,r).toMarkup();return o},Dte=function(t,r){var o=new Td(r);return rS(t,o)},gR=function(t,r,o){if(o.throwOnError||!(t instanceof W))throw t;var n=U(["katex-error"],[new sr(r)]);return n.setAttribute("title",t.toString()),n.setAttribute("style","color:"+o.errorColor),n},nS=function(t,r){var o=new Td(r);try{var n=rS(t,o);return qee(n,t,o)}catch(i){return gR(i,t,o)}},Nte=function(t,r){var o=new Td(r);try{var n=rS(t,o);return Wee(n,t,o)}catch(i){return gR(i,t,o)}},Rte="0.16.44",Ote={Span:zi,Anchor:$l,SymbolNode:sr,SvgNode:yn,PathNode:Fn,LineNode:Cd},oS={version:Rte,render:hR,renderToString:Mte,ParseError:W,SETTINGS_SCHEMA:Tk,__parse:Dte,__renderToDomTree:nS,__renderToHTMLTree:Nte,__setFontMetrics:Pee,__defineSymbol:f,__defineFunction:ee,__defineMacro:k,__domTree:Ote};var jte={},Ute=[];function zg(e){let t=e||jte;return function(r,o){OS(r,"element",function(n,i){let a=Array.isArray(n.properties.className)?n.properties.className:Ute,s=a.includes("language-math"),l=a.includes("math-display"),u=a.includes("math-inline"),c=l;if(!s&&!l&&!u)return;let d=i[i.length-1],p=n;if(n.tagName==="code"&&s&&d&&d.type==="element"&&d.tagName==="pre"&&(p=d,d=i[i.length-2],c=!0),!d)return;let m=pk(p,{whitespace:"pre"}),g;try{g=oS.renderToString(m,{...t,displayMode:c,throwOnError:!0})}catch(w){let S=w,_=S.name.toLowerCase();o.message("Could not render math with KaTeX",{ancestors:[...i,n],cause:S,place:n.position,ruleId:_,source:"rehype-katex"});try{g=oS.renderToString(m,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(w)},children:[{type:"text",value:m}]}]}}typeof g=="string"&&(g=jD(g,{fragment:!0}).children);let x=d.children.indexOf(p);return d.children.splice(x,1,...g),RS})}}function iS(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:n,mathFlowFence:o,mathFlowFenceMeta:r,mathFlowValue:s,mathText:a,mathTextData:s}};function e(l){let u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function r(){let l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function o(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(l){let u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=u;let d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function i(l){this.enter({type:"inlineMath",value:"",data:{hName:"
524code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function a(l){let u=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=u,c.data.hChildren.push({type:"text",value:u})}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function aS(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),o.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 525`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:o}};function r(i,a,s,l){let u=i.value||"",c=s.createTracker(l),d="$".repeat(Math.max(WS(u,"$")+1,2)),p=s.enter("mathFlow"),m=c.move(d);if(i.meta){let g=s.enter("mathFlowMeta");m+=c.move(s.safe(i.meta,{after:` 526`,before:m,encode:["$"],...c.current()})),g()}return m+=c.move(` 527`),u&&(m+=c.move(u+` 528`)),m+=c.move(d),p(),m}function o(i,a,s){let l=i.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;let c="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let d=-1;for(;++d<s.unsafe.length;){let p=s.unsafe[d];if(!p.atBreak)continue;let m=s.compilePattern(p),g;for(;g=m.exec(l);){let x=g.index;l.codePointAt(x)===10&&l.codePointAt(x-1)===13&&x--,l=l.slice(0,x)+" "+l.slice(g.index+1)}}return c+l+c}function n(){return"$"}}var yR={tokenize:Lte,concrete:!0,name:"mathFlow"},vR={tokenize:Fte,partial:!0};function Lte(e,t,r){let o=this,n=o.events[o.events.length-1],i=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,a=0;return s;function s(_){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(_)}function l(_){return _===36?(e.consume(_),a++,l):a<2?r(_):(e.exit("mathFlowFenceSequence"),Dl(e,u,"whitespace")(_))}function u(_){return _===null||Hn(_)?d(_):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(_))}function c(_){return _===null||Hn(_)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(_)):_===36?r(_):(e.consume(_),c)}function d(_){return e.exit("mathFlowFence"),o.interrupt?t(_):e.attempt(vR,p,w)(_)}function p(_){return e.attempt({tokenize:S,partial:!0},w,m)(_)}function m(_){return(i?Dl(e,g,"linePrefix",i+1):g)(_)}function g(_){return _===null?w(_):Hn(_)?e.attempt(vR,p,w)(_):(e.enter("mathFlowValue"),x(_))}function x(_){return _===null||Hn(_)?(e.exit("mathFlowValue"),g(_)):(e.consume(_),x)}function w(_){return e.exit("mathFlow"),t(_)}function S(_,b,T){let $=0;return Dl(_,C,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function C(N){return _.enter("mathFlowFence"),_.enter("mathFlowFenceSequence"),M(N)}function M(N){return N===36?($++,_.consume(N),M):$<a?T(N):(_.exit("mathFlowFenceSequence"),Dl(_,R,"whitespace")(N))}function R(N){return N===null||Hn(N)?(_.exit("mathFlowFence"),b(N)):T(N)}}}function Fte(e,t,r){let o=this;return n;function n(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i)}function i(a){return o.parser.lazy[o.now().line]?r(a):t(a)}}function bR(e){let r=(e||{}).singleDollarTextMath;
528return r==null&&(r=!0),{tokenize:o,resolve:Bte,previous:Zte,name:"mathText"};function o(n,i,a){let s=this,l=0,u,c;return d;function d(w){return n.enter("mathText"),n.enter("mathTextSequence"),p(w)}function p(w){return w===36?(n.consume(w),l++,p):l<2&&!r?a(w):(n.exit("mathTextSequence"),m(w))}function m(w){return w===null?a(w):w===36?(c=n.enter("mathTextSequence"),u=0,x(w)):w===32?(n.enter("space"),n.consume(w),n.exit("space"),m):Hn(w)?(n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),m):(n.enter("mathTextData"),g(w))}function g(w){return w===null||w===32||w===36||Hn(w)?(n.exit("mathTextData"),m(w)):(n.consume(w),g)}function x(w){return w===36?(n.consume(w),u++,x):u===l?(n.exit("mathTextSequence"),n.exit("mathText"),i(w)):(c.type="mathTextData",g(w))}}}function Bte(e){let t=e.length-4,r=3,o,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)n===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(n=o):(o===t||e[o][1].type==="lineEnding")&&(e[n][1].type="mathTextData",o!==n+2&&(e[n][1].end=e[o-1][1].end,e.splice(n+2,o-n-2),t-=o-n-2,o=n+2),n=void 0);return e}function Zte(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function sS(e){return{flow:{36:yR},text:{36:bR(e)}}}var Vte={};function Eg(e){let t=this,r=e||Vte,o=t.data(),n=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),a=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);n.push(sS(r)),i.push(iS()),a.push(aS(r))}function Gte(e={}){var t,r;let o=[Eg,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],n=[zg,{errorColor:(r=e.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:o,rehypePlugin:n,getStyles(){return"katex/dist/katex.min.css"}}}var xR=Gte();var qte="11.14.0",Wte=`https://esm.sh/mermaid@${qte}`,Hte={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},lS=null,uS=!1;function Jte(){return lS||(lS=import(Wte)),lS}var wR={name:"mermaid",type:"diagram",language:"mermaid",getMermaid(e){let t={...Hte,...e};return{initialize(r){Object.assign(t,r),uS=!1},async render(r,o){let i=(await Jte()).default;return uS||(i.initialize(t),uS=!0),i.render(r,o)}}}};var Do=H(pe());var Md=H(Te()),_R=({className:e,from:t,...r})=>(0,Md.jsx)("div",{className:ke("group flex w-full max-w-[95%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...r}),kR=({children:e,className:t,...r})=>(0,Md.jsx)("div",{className:ke("is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-sm","group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground",t),...r,children:e});var g8e=(0,Do.createContext)(null);var Qte={cjk:kA,code:DD,math:xR,mermaid:wR},Ag=(0,Do.memo)(({className:e,...t})=>(0,Md.jsx)(Fg,{className:ke("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),plugins:Qte,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);Ag.displayName="MessageResponse";var I8e=H(pe());var y8e=H(pe());var SR=H(Te());var $R=H(Te());var E8e=H(pe());var Mg=H(pe(),1),ere=H(Te(),1),tre=Mg.createContext(void 0);function IR(e){let t=Mg.useContext(tre);return e||t||"ltr"}var TR=H(Te());var D8e=H(pe());var rre=H(Te());var j8e=H(pe());var Dd=H(Te());function PR({className:e,...t}){return(0,Dd.jsx)("div",{"data-slot":"input-group",role:"group",className:ke("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}var nre=Al("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>
528svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function CR({className:e,align:t="inline-start",...r}){return(0,Dd.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:ke(nre({align:t}),e),onClick:o=>{o.target.closest("button")||o.currentTarget.parentElement?.querySelector("input")?.focus()},...r})}var ore=Al("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function zR({className:e,type:t="button",variant:r="ghost",size:o="xs",...n}){return(0,Dd.jsx)(dr,{type:t,"data-size":o,variant:r,className:ke(ore({size:o}),e),...n})}function ER({className:e,...t}){return(0,Dd.jsx)(MS,{"data-slot":"input-group-control",className:ke("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}var q8e=H(pe());function AR(e,[t,r]){return Math.min(r,Math.max(t,e))}var MR=H(Te());var NR=H(Te());function DR({className:e,...t}){return(0,NR.jsx)(TS,{role:"status","aria-label":"Loading",className:ke("size-4 animate-spin",e),...t})}var RR="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var cS=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=RR[r[e]&63];return t};var we=H(pe()),At=H(Te()),ire=async e=>{try{let r=await(await fetch(e)).blob();return new Promise(o=>{let n=new FileReader;n.onloadend=()=>o(n.result),n.onerror=()=>o(null),n.readAsDataURL(r)})}catch{return null}};var are=(0,we.createContext)(null),sre=(0,we.createContext)(null);var OR=()=>(0,we.useContext)(are);var lre=()=>(0,we.useContext)(sre);var jR=(0,we.createContext)(null),ure=()=>{let e=lre(),r=(0,we.useContext)(jR)??e;if(!r)throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return r},cre=(0,we.createContext)(null);var UR=({className:e,accept:t,multiple:r,globalDrop:o,syncHiddenInput:n,maxFiles:i,maxFileSize:a,onError:s,onSubmit:l,children:u,...c})=>{let d=OR(),p=!!d,m=(0,we.useRef)(null),g=(0,we.useRef)(null),[x,w]=(0,we.useState)([]),S=p?d.attachments.files:x,[_,b]=(0,we.useState)([]),T=(0,we.useRef)(S);(0,we.useEffect)(()=>{T.current=S},[S]);let $=(0,we.useCallback)(()=>{m.current?.click()},[]),C=(0,we.useCallback)(he=>!t||t.trim()===""?!0:t.split(",").map(Ae=>Ae.trim()).filter(Boolean).some(Ae=>{if(Ae.endsWith("/*")){let tt=Ae.slice(0,-1);return he.type.startsWith(tt)}return he.type===Ae}),[t]),M=(0,we.useCallback)(he=>{let Ne=[...he],Ae=Ne.filter(Zt=>C(Zt));if(Ne.length&&Ae.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let tt=Zt=>a?Zt.size<=a:!0,ur=Ae.filter(tt);if(Ae.length>0&&ur.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}w(Zt=>{let Nt=typeof i=="number"?Math.max(0,i-Zt.length):void 0,Sr=typeof Nt=="number"?ur.slice(0,Nt):ur;typeof Nt=="number"&&ur.length>Nt&&s?.({code:"max_files",message:"Too many files. Some were not added."});let Wn=[];for(let Ca of Sr)Wn.push({filename:Ca.name,id:cS(),mediaType:Ca.type,type:"file",url:URL.createObjectURL(Ca)});return[...Zt,...Wn]})},[C,i,a,s]),R=(0,we.useCallback)(he=>w(Ne=>{let Ae=Ne.find(tt=>tt.id===he);return Ae?.url&&URL.revokeObjectURL(Ae.url),Ne.filter(tt=>tt.id!==he)}),[]),N=(0,we.useCallback)(he=>
528{let Ne=[...he],Ae=Ne.filter(Wn=>C(Wn));if(Ne.length&&Ae.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let tt=Wn=>a?Wn.size<=a:!0,ur=Ae.filter(tt);if(Ae.length>0&&ur.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}let Zt=S.length,Nt=typeof i=="number"?Math.max(0,i-Zt):void 0,Sr=typeof Nt=="number"?ur.slice(0,Nt):ur;typeof Nt=="number"&&ur.length>Nt&&s?.({code:"max_files",message:"Too many files. Some were not added."}),Sr.length>0&&d?.attachments.add(Sr)},[C,a,i,s,S.length,d]),j=(0,we.useCallback)(()=>p?d?.attachments.clear():w(he=>{for(let Ne of he)Ne.url&&URL.revokeObjectURL(Ne.url);return[]}),[p,d]),oe=(0,we.useCallback)(()=>b([]),[]),ae=p?N:M,nt=p?d.attachments.remove:R,ye=p?d.attachments.openFileDialog:$,Oe=(0,we.useCallback)(()=>{j(),oe()},[j,oe]);(0,we.useEffect)(()=>{p&&d.__registerFileInput(m,()=>m.current?.click())},[p,d]),(0,we.useEffect)(()=>{n&&m.current&&S.length===0&&(m.current.value="")},[S,n]),(0,we.useEffect)(()=>{let he=g.current;if(!he||o)return;let Ne=tt=>{tt.dataTransfer?.types?.includes("Files")&&tt.preventDefault()},Ae=tt=>{tt.dataTransfer?.types?.includes("Files")&&tt.preventDefault(),tt.dataTransfer?.files&&tt.dataTransfer.files.length>0&&ae(tt.dataTransfer.files)};return he.addEventListener("dragover",Ne),he.addEventListener("drop",Ae),()=>{he.removeEventListener("dragover",Ne),he.removeEventListener("drop",Ae)}},[ae,o]),(0,we.useEffect)(()=>{if(!o)return;let he=Ae=>{Ae.dataTransfer?.types?.includes("Files")&&Ae.preventDefault()},Ne=Ae=>{Ae.dataTransfer?.types?.includes("Files")&&Ae.preventDefault(),Ae.dataTransfer?.files&&Ae.dataTransfer.files.length>0&&ae(Ae.dataTransfer.files)};return document.addEventListener("dragover",he),document.addEventListener("drop",Ne),()=>{document.removeEventListener("dragover",he),document.removeEventListener("drop",Ne)}},[ae,o]),(0,we.useEffect)(()=>()=>{if(!p)for(let he of T.current)he.url&&URL.revokeObjectURL(he.url)},[p]);let ot=(0,we.useCallback)(he=>{he.currentTarget.files&&ae(he.currentTarget.files),he.currentTarget.value=""},[ae]),qn=(0,we.useMemo)(()=>({add:ae,clear:j,fileInputRef:m,files:S.map(he=>({...he,id:he.id})),openFileDialog:ye,remove:nt}),[S,ae,nt,j,ye]),et=(0,we.useMemo)(()=>({add:he=>{let Ne=Array.isArray(he)?he:[he];b(Ae=>[...Ae,...Ne.map(tt=>({...tt,id:cS()}))])},clear:oe,remove:he=>{b(Ne=>Ne.filter(Ae=>Ae.id!==he))},sources:_}),[_,oe]),Mt=(0,we.useCallback)(async he=>{he.preventDefault();let Ne=he.currentTarget,Ae=p?d.textInput.value:new FormData(Ne).get("message")||"";p||Ne.reset();try{let tt=await Promise.all(S.map(async({id:Zt,...Nt})=>{if(Nt.url?.startsWith("blob:")){let Sr=await ire(Nt.url);return{...Nt,url:Sr??Nt.url}}return Nt})),ur=l({files:tt,text:Ae},he);if(ur instanceof Promise)try{await ur,Oe(),p&&d.textInput.clear()}catch{}else Oe(),p&&d.textInput.clear()}catch{}},[p,d,S,l,Oe]),Dt=(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:r,onChange:ot,ref:m,title:"Upload files",type:"file"}),(0,At.jsx)("form",{className:ke("w-full",e),onSubmit:Mt,ref:g,...c,children:(0,At.jsx)(PR,{className:"overflow-hidden",children:u})})]}),jt=(0,At.jsx)(cre.Provider,{value:et,children:Dt});return(0,At.jsx)(jR.Provider,{value:qn,children:jt})},LR=({className:e,...t})=>(0,At.jsx)("div",{className:ke("contents",e),...t}),FR=({onChange:e,onKeyDown:t,className:r,placeholder:o="What would you like to know?",...n})=>{let i=OR(),a=ure(),[s,l]=(0,we.useState)(!1),u=(0,we.useCallback)(g=>{if(t?.(g),!g.defaultPrevented){if(g.key==="Enter"){if(s||g.nativeEvent.isComposing||g.shiftKey)return;g.preventDefault();let{form:x}=g.currentTarget;if(x?.querySelector('button[type="submit"]')?.disabled)return;x?.requestSubmit()}if(g.key==="Backspace"&&g.currentTarget.value===""&&a.files.length>0){g.preventDefault();let x=a.files.at(-1);x&&a.remove(x.id)}}},[t,s,a]),c=(0,we.useCallback)(g=>{let x=g.clipboardData?.items;if(!x)return;let w=[];for(let S of x)if(S.kind==="file"){let _=S.getAsFile();_&&w.push(_)}w.length>0&&(g.preventDefault(),a.add(w))},[a]),d=(0,we.useCallback)(()=>l(!1),[]),p=(0,we.useCallback)(()=>l(!0),[]),m=i?{onChange:g=>{i.textInput.setInput(g.currentTarget.value),e?.(g)},value:i.textInput.value}:{onChange:e};return(0,At.jsx)(ER,{className:ke("field-sizing-content max-h-48 min-h-16",r),name:"message",onCompositionEnd:d,onCompositionStart:p,onKeyDown:u,onPaste:c,placeholder:o,...n,...m})};var BR=({className:e,...t})=>
528(0,At.jsx)(CR,{align:"block-end",className:ke("justify-between gap-1",e),...t}),ZR=({className:e,...t})=>(0,At.jsx)("div",{className:ke("flex min-w-0 items-center gap-1",e),...t});var VR=({className:e,variant:t="default",size:r="icon-sm",status:o,onStop:n,onClick:i,children:a,...s})=>{let l=o==="submitted"||o==="streaming",u=(0,At.jsx)(IS,{className:"size-4"});o==="submitted"?u=(0,At.jsx)(DR,{}):o==="streaming"?u=(0,At.jsx)(CS,{className:"size-4"}):o==="error"&&(u=(0,At.jsx)(Ld,{className:"size-4"}));let c=(0,we.useCallback)(d=>{if(l&&n){d.preventDefault(),n();return}i?.(d)},[l,n,i]);return(0,At.jsx)(zR,{"aria-label":l?"Stop":"Submit",className:ke(e),onClick:c,size:r,type:l&&n?"button":"submit",variant:t,...s,children:a??u})};var VIe=H(pe());var le=H(pe(),1);var qR=H(pe(),1),Fe=H(Te(),1);function dre(e,t){return qR.useReducer((r,o)=>t[r][o]??r,e)}var dS="ScrollArea",[WR,ZIe]=zS(dS),[pre,nn]=WR(dS),HR=le.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:o="hover",dir:n,scrollHideDelay:i=600,...a}=e,[s,l]=le.useState(null),[u,c]=le.useState(null),[d,p]=le.useState(null),[m,g]=le.useState(null),[x,w]=le.useState(null),[S,_]=le.useState(0),[b,T]=le.useState(0),[$,C]=le.useState(!1),[M,R]=le.useState(!1),N=Ni(t,oe=>l(oe)),j=IR(n);return(0,Fe.jsx)(pre,{scope:r,type:o,dir:j,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:p,scrollbarX:m,onScrollbarXChange:g,scrollbarXEnabled:$,onScrollbarXEnabledChange:C,scrollbarY:x,onScrollbarYChange:w,scrollbarYEnabled:M,onScrollbarYEnabledChange:R,onCornerWidthChange:_,onCornerHeightChange:T,children:(0,Fe.jsx)(za.div,{dir:j,...a,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":S+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});HR.displayName=dS;var JR="ScrollAreaViewport",KR=le.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:n,...i}=e,a=nn(JR,r),s=le.useRef(null),l=Ni(t,s,a.onViewportChange);return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,Fe.jsx)(za.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,Fe.jsx)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});KR.displayName=JR;var Gn="ScrollAreaScrollbar",pS=le.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=nn(Gn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=n,s=e.orientation==="horizontal";return le.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),n.type==="hover"?(0,Fe.jsx)(mre,{...o,ref:t,forceMount:r}):n.type==="scroll"?(0,Fe.jsx)(fre,{...o,ref:t,forceMount:r}):n.type==="auto"?(0,Fe.jsx)(XR,{...o,ref:t,forceMount:r}):n.type==="always"?(0,Fe.jsx)(mS,{...o,ref:t}):null});pS.displayName=Gn;var mre=le.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=nn(Gn,e.__scopeScrollArea),[i,a]=le.useState(!1);return le.useEffect(()=>{let s=n.scrollArea,l=0;if(s){let u=()=>{window.clearTimeout(l),a(!0)},c=()=>{l=window.setTimeout(()=>a(!1),n.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",c)}}},[n.scrollArea,n.scrollHideDelay]),(0,Fe.jsx)(Ml,{present:r||i,children:(0,Fe.jsx)(XR,{"data-state":i?"visible":"hidden",...o,ref:t})})}),fre=le.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=nn(Gn,e.__scopeScrollArea),i=e.orientation==="horizontal",a=Og(()=>l("SCROLL_END"),100),[s,l]=dre("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return le.useEffect(()=>{if(s==="idle"){let u=window.setTimeout(()=>l("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,n.scrollHideDelay,l]),le.useEffect(()=>{let u=n.viewport,c=i?"scrollLeft":"scrollTop";if(u){let d=u[c],p=()=>{let m=u[c];d!==m&&(l("SCROLL"),a()),d=m};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[n.viewport,i,l,a]),(0,Fe.jsx)(Ml,{present:r||s!=="hidden",children:(0,Fe.jsx)(mS,{"data-state":s==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:Ro(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Ro(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),XR=le.forwardRef((e,t)=>
vendor: 4,801 bytes, line 528
528{let r=nn(Gn,e.__scopeScrollArea),{forceMount:o,...n}=e,[i,a]=le.useState(!1),s=e.orientation==="horizontal",l=Og(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;a(s?u:c)}},10);return zl(r.viewport,l),zl(r.content,l),(0,Fe.jsx)(Ml,{present:o||i,children:(0,Fe.jsx)(mS,{"data-state":i?"visible":"hidden",...n,ref:t})})}),mS=le.forwardRef((e,t)=>{let{orientation:r="vertical",...o}=e,n=nn(Gn,e.__scopeScrollArea),i=le.useRef(null),a=le.useRef(0),[s,l]=le.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=tO(s.viewport,s.content),c={...o,sizes:s,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:p=>i.current=p,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:p=>a.current=p};function d(p,m){return xre(p,a.current,s,m)}return r==="horizontal"?(0,Fe.jsx)(hre,{...c,ref:t,onThumbPositionChange:()=>{if(n.viewport&&i.current){let p=n.viewport.scrollLeft,m=GR(p,s,n.dir);i.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:p=>{n.viewport&&(n.viewport.scrollLeft=p)},onDragScroll:p=>{n.viewport&&(n.viewport.scrollLeft=d(p,n.dir))}}):r==="vertical"?(0,Fe.jsx)(gre,{...c,ref:t,onThumbPositionChange:()=>{if(n.viewport&&i.current){let p=n.viewport.scrollTop,m=GR(p,s);i.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:p=>{n.viewport&&(n.viewport.scrollTop=p)},onDragScroll:p=>{n.viewport&&(n.viewport.scrollTop=d(p))}}):null}),hre=le.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...n}=e,i=nn(Gn,e.__scopeScrollArea),[a,s]=le.useState(),l=le.useRef(null),u=Ni(t,l,i.onScrollbarXChange);return le.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,Fe.jsx)(QR,{"data-orientation":"horizontal",...n,ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Rg(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(i.viewport){let p=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(p),nO(p,d)&&c.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Ng(a.paddingLeft),paddingEnd:Ng(a.paddingRight)}})}})}),gre=le.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...n}=e,i=nn(Gn,e.__scopeScrollArea),[a,s]=le.useState(),l=le.useRef(null),u=Ni(t,l,i.onScrollbarYChange);return le.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,Fe.jsx)(QR,{"data-orientation":"vertical",...n,ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Rg(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(i.viewport){let p=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(p),nO(p,d)&&c.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Ng(a.paddingTop),paddingEnd:Ng(a.paddingBottom)}})}})}),[vre,YR]=WR(Gn),QR=le.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:n,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...p}=e,m=nn(Gn,r),[g,x]=le.useState(null),w=Ni(t,N=>x(N)),S=le.useRef(null),_=le.useRef(""),b=m.viewport,T=o.content-o.viewport,$=Oo(c),C=Oo(l),M=Og(d,10);function R(N){if(S.current){let j=N.clientX-S.current.left,oe=N.clientY-S.current.top;u({x:j,y:oe})}}return le.useEffect(()=>{let N=j=>{let oe=j.target;g?.contains(oe)&&$(j,T)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[b,g,T,$]),le.useEffect(C,[o,C]),zl(g,M),zl(m.content,M),(0,Fe.jsx)(vre,{scope:r,scrollbar:g,hasThumb:n,onThumbChange:Oo(i),onThumbPointerUp:Oo(a),onThumbPositionChange:C,onThumbPointerDown:Oo(s),children:(0,Fe.jsx)(za.div,{...p,ref:w,style:{position:"absolute",...p.style},onPointerDown:Ro(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),S.current=g.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),R(N))}),onPointerMove:Ro(e.onPointerMove,R),onPointerUp:Ro(e.onPointerUp,N=>{let j=N.target;j.hasPointerCapture(N.pointerId)&&j.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=_.current,m.viewport&&(m.viewport.style.scrollBehavior=""),S.current=null})})})}),Dg="ScrollAreaThumb",fS=le.forwardRef((e,t)=>
528{let{forceMount:r,...o}=e,n=YR(Dg,e.__scopeScrollArea);return(0,Fe.jsx)(Ml,{present:r||n.hasThumb,children:(0,Fe.jsx)(yre,{ref:t,...o})})}),yre=le.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...n}=e,i=nn(Dg,r),a=YR(Dg,r),{onThumbPositionChange:s}=a,l=Ni(t,d=>a.onThumbChange(d)),u=le.useRef(void 0),c=Og(()=>{u.current&&(u.current(),u.current=void 0)},100);return le.useEffect(()=>{let d=i.viewport;if(d){let p=()=>{if(c(),!u.current){let m=wre(d,s);u.current=m,s()}};return s(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[i.viewport,c,s]),(0,Fe.jsx)(za.div,{"data-state":a.hasThumb?"visible":"hidden",...n,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:Ro(e.onPointerDownCapture,d=>{let m=d.target.getBoundingClientRect(),g=d.clientX-m.left,x=d.clientY-m.top;a.onThumbPointerDown({x:g,y:x})}),onPointerUp:Ro(e.onPointerUp,a.onThumbPointerUp)})});fS.displayName=Dg;var hS="ScrollAreaCorner",eO=le.forwardRef((e,t)=>{let r=nn(hS,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?(0,Fe.jsx)(bre,{...e,ref:t}):null});eO.displayName=hS;var bre=le.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,n=nn(hS,r),[i,a]=le.useState(0),[s,l]=le.useState(0),u=!!(i&&s);return zl(n.scrollbarX,()=>{let c=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(c),l(c)}),zl(n.scrollbarY,()=>{let c=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(c),a(c)}),u?(0,Fe.jsx)(za.div,{...o,ref:t,style:{width:i,height:s,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ng(e){return e?parseInt(e,10):0}function tO(e,t){let r=e/t;return isNaN(r)?0:r}function Rg(e){let t=tO(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function xre(e,t,r,o="ltr"){let n=Rg(r),i=n/2,a=t||i,s=n-a,l=r.scrollbar.paddingStart+a,u=r.scrollbar.size-r.scrollbar.paddingEnd-s,c=r.content-r.viewport,d=o==="ltr"?[0,c]:[c*-1,0];return rO([l,u],d)(e)}function GR(e,t,r="ltr"){let o=Rg(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-n,a=t.content-t.viewport,s=i-o,l=r==="ltr"?[0,a]:[a*-1,0],u=AR(e,l);return rO([0,a],[0,s])(u)}function rO(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}function nO(e,t){return e>0&&e<t}var wre=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},o=0;return(function n(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,s=r.top!==i.top;(a||s)&&t(),r=i,o=window.requestAnimationFrame(n)})(),()=>window.cancelAnimationFrame(o)};function Og(e,t){let r=Oo(e),o=le.useRef(0);return le.useEffect(()=>()=>window.clearTimeout(o.current),[]),le.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function zl(e,t){let r=Oo(t);ES(()=>{let o=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,r])}var oO=HR,iO=KR;var aO=eO;var Di=H(Te());function sO({className:e,children:t,...r}){return(0,Di.jsxs)(oO,{"data-slot":"scroll-area",className:ke("relative",e),...r,children:[(0,Di.jsx)(iO,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),(0,Di.jsx)(gS,{}),(0,Di.jsx)(aO,{})]})}function gS({className:e,orientation:t="vertical",...r}){return(0,Di.jsx)(pS,{"data-slot":"scroll-area-scrollbar",orientation:t,className:ke("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:(0,Di.jsx)(fS,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var lO=H(pe()),El=H(Te()),uO=({className:e,children:t,...r})=>(0,El.jsxs)(sO,{className:"w-full overflow-x-auto whitespace-nowrap",...r,children:[(0,El.jsx)("div",{className:ke("flex w-max flex-nowrap items-center gap-2",e),children:t}),(0,El.jsx)(gS,{className:"hidden",orientation:"horizontal"})]}),cO=({suggestion:e,onClick:t,className:r,variant:o="outline",size:n="sm",children:i,...a})=>{let s=(0,lO.useCallback)(()=>{t?.(e)},[t,e]);return(0,El.jsx)(dr,{className:ke("cursor-pointer rounded-full px-4",r),onClick:s,size:n,type:"button",variant:o,...a,children:i||e})};var Be=H(Te()),kre=["Summarize today's jobs","Which jobs are overdue or need scheduling?","Draft a follow-up message to this customer","Show me unpaid invoices"];function Sre(e){return e.parts.filter(t=>t.type==="text").map(t=>t.text).join("")}function $re(e){return e.parts.some(t=>pn(t))}var Ire={"input-streaming":"Working on it...","input-available":"Working on it...","a
528pproval-requested":"Needs your approval","approval-responded":"Working on it...","output-available":"Done","output-error":"Something went wrong","output-denied":"Skipped"};function Tre(e){return IP(e).split(/[_\s-]+/).filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function dO({messages:e,onSend:t,busy:r=!1,status:o,onStop:n,onApprove:i,errorMessage:a,suggestions:s=kre,title:l="Assistant",placeholder:u="Ask me anything about your jobs, customers, or invoices\u2026",emptyTitle:c="How can I help?",emptyDescription:d="Ask about your jobs, customers, or invoices - or pick a starter below.",className:p}){let m=e.length===0,g=o??(r?"submitted":void 0),x=w=>{let S=w.text.trim();if(!(!S||r))return t(S)};return(0,Be.jsxs)(AS,{className:ke("bg-card text-card-foreground flex h-full min-h-0 flex-col overflow-hidden",p),children:[(0,Be.jsxs)("div",{className:"flex items-center gap-2 border-b px-4 py-3",children:[(0,Be.jsx)(Ug,{className:"text-muted-foreground size-4","aria-hidden":!0}),(0,Be.jsx)("span",{className:"text-foreground text-sm font-semibold",children:l})]}),(0,Be.jsxs)(tA,{children:[(0,Be.jsx)(rA,{children:m?(0,Be.jsx)(nA,{title:c,description:d,icon:(0,Be.jsx)(Ug,{className:"size-6","aria-hidden":!0})}):e.map(w=>(0,Be.jsx)(_R,{from:w.role,children:(0,Be.jsx)(kR,{children:$re(w)?w.parts.map((S,_)=>S.type==="text"?(0,Be.jsx)(Ag,{children:S.text},_):pn(S)?(0,Be.jsxs)("div",{className:"text-muted-foreground my-1 flex flex-wrap items-center gap-2 text-xs",children:[(0,Be.jsxs)("span",{className:"italic",children:[Tre(S)," \xB7 ",Ire[S.state]]}),S.state==="approval-requested"&&S.approval!=null&&i!=null?(0,Be.jsxs)("span",{className:"flex gap-1.5",children:[(0,Be.jsx)(dr,{type:"button",size:"sm",onClick:()=>i(S.approval.id,!0),children:"Approve"}),(0,Be.jsx)(dr,{type:"button",size:"sm",variant:"outline",onClick:()=>i(S.approval.id,!1),children:"Deny"})]}):null]},_):null):(0,Be.jsx)(Ag,{children:Sre(w)})})},w.id))}),(0,Be.jsx)(oA,{})]}),a!=null&&a!==""?(0,Be.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",role:"alert",children:a}):null,s.length>0?(0,Be.jsx)("div",{className:"px-4 pb-2",children:(0,Be.jsx)(uO,{children:s.map(w=>(0,Be.jsx)(cO,{suggestion:w,onClick:t,disabled:r},w))})}):null,(0,Be.jsx)("div",{className:"p-4 pt-0",children:(0,Be.jsxs)(UR,{onSubmit:x,children:[(0,Be.jsx)(LR,{children:(0,Be.jsx)(FR,{placeholder:u,disabled:r})}),(0,Be.jsxs)(BR,{children:[(0,Be.jsx)(ZR,{}),(0,Be.jsx)(VR,{status:g,onStop:n})]})]})})]})}function Pre(e){return e==null||e.trim().length===0}async function vS(e,t){if(Pre(e))throw new Error("Agent ID cannot be empty");let o=`${t?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations`,n=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"}}),i=n.headers.get("content-type")||"",a=await n.text().catch(()=>"");if(!n.ok)throw new Error(`Failed to create conversation: ${n.status} ${a||"Unknown error"}`);if(!i.includes("application/json"))throw new Error(`Invalid response format: expected JSON, got ${i}. Response: ${a.substring(0,100)}`);try{return JSON.parse(a)}catch(s){throw new Error(`Failed to parse JSON response: ${s instanceof Error?s.message:"Unknown error"}. Response: ${a.substring(0,200)}`)}}function Cre(e){if(e.length===0)return{history:e,messages:[]};let t=e.length-1,r=e[t];if(r==null)return{history:e,messages:[]};if(r.role==="user")return{history:e.slice(0,t),messages:[r]};if(r.role==="assistant"){let n=r.parts;if(n!=null&&n.length>0){let i=n[n.length-1];if(i!=null&&pn(i)&&(i.state==="output-available"||i.state==="output-error"))return{history:e.slice(0,t),messages:[r]}}}return{history:e.slice(0,t),messages:[r]}}var zre=6;function yS(e,t,r){let n=`${r?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations/${encodeURIComponent(t)}/chat`,i=new Of({messages:[],transport:new F6({api:n,prepareSendMessagesRequest:a=>{let{history:s,messages:l}=Cre(a.messages),u=Math.max(0,zre-l.length),c=u===0?[]:s.slice(-u);return{body:{messages:l,history:c}}}}),id:t,generateId:ph,sendAutomaticallyWhen:a=>!(!(zP(a)||CP(a))||i.error!=null)});return i}var at=H(Te()),Ere={1:"bg-chart-1",2:"bg-chart-2",3:"bg-chart-3",4:"bg-chart-4",5:"bg-chart-5"};function S9e({agentId:e,publicAgentId:t,title:r="Assistant",accent:o,suggestions:n,placeholder:i,defaultOpen:a=!1,className:s}){let[l,u]=(0,No.useState)(a),[c,d]=(0,No.useState)(null),[p,m]=(0,No.useState)(!1),[g,x]=(0,No.useState)(!1),w=e!=null&&e!=="",S=t!=null&&t!==""?`https://www.taskade.com/a/${encodeURIComponent(t)}`:null,_=(0,No.useCallback)(async()=>
528{if(!(!w||c!=null||g)){x(!0);try{let{conversationId:T}=await vS(e);d(yS(e,T)),m(!1)}catch{m(!0)}finally{x(!1)}}},[w,c,g,e]);if((0,No.useEffect)(()=>{l&&w&&c==null&&!p&&!g&&_()},[l,w,c,p,g,_]),!w&&S==null)return null;let b=()=>{u(!0),_()};return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(e_,{children:l?(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("div",{className:"bg-foreground/20 fixed inset-0 z-40 sm:hidden",onClick:()=>u(!1),"aria-hidden":!0}),(0,at.jsx)(u_.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:16},className:ke("fixed inset-0 z-50 h-full w-full sm:inset-auto sm:bottom-6 sm:right-6 sm:h-[600px] sm:w-[400px]",s),children:(0,at.jsxs)("div",{className:"bg-card text-card-foreground flex h-full flex-col overflow-hidden border shadow-lg sm:rounded-xl",children:[(0,at.jsxs)("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[(0,at.jsx)("span",{className:"text-foreground text-sm font-semibold",children:r}),(0,at.jsx)(dr,{variant:"ghost",size:"icon",onClick:()=>u(!1),"aria-label":"Close chat",children:(0,at.jsx)(Ld,{className:"size-4","aria-hidden":!0})})]}),w&&c!=null?(0,at.jsx)(Are,{chat:c,title:r,suggestions:n,placeholder:i}):w&&p?(0,at.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center",children:[(0,at.jsx)("p",{className:"text-muted-foreground text-sm",children:"The assistant is warming up - try again."}),(0,at.jsx)(dr,{onClick:()=>{_()},disabled:g,children:"Try again"}),S!=null?(0,at.jsx)("a",{href:S,target:"_blank",rel:"noreferrer",className:"text-muted-foreground text-xs underline",children:"Open hosted chat"}):null]}):w?(0,at.jsx)("div",{className:"text-muted-foreground flex flex-1 items-center justify-center text-sm",children:"Connecting..."}):S!=null?(0,at.jsx)("iframe",{src:S,title:r,allow:"clipboard-read; clipboard-write",className:"h-full w-full flex-1 border-0"}):null]})})]}):null}),l?null:(0,at.jsx)(dr,{onClick:b,"aria-label":`Open ${r}`,className:ke("fixed bottom-6 right-6 z-50 size-14 rounded-full shadow-lg",o!=null?Ere[o]:"bg-primary text-primary-foreground"),children:(0,at.jsx)(PS,{className:"size-6","aria-hidden":!0})})]})}function Are({chat:e,title:t,suggestions:r,placeholder:o}){let{messages:n,status:i,stop:a,error:s,addToolApprovalResponse:l}=NP({chat:e,id:e.id});return(0,at.jsx)(dO,{messages:n,onSend:async d=>{try{await e.sendMessage({id:ph(),role:"user",parts:[{type:"text",text:d}]})}catch{}},busy:i==="submitted"||i==="streaming",status:i,onStop:a,errorMessage:s!=null?"Something went wrong - please try again.":void 0,onApprove:(d,p)=>l({id:d,approved:p}),title:t,suggestions:r,placeholder:o,className:"rounded-none border-0"})}export{S9e as FloatingAgentChat}; 529/*! Bundled license information: 530 531use-stick-to-bottom/dist/useStickToBottom.js: 532use-stick-to-bottom/dist/StickToBottom.js: 533 (*!--------------------------------------------------------------------------------------------- 534 * Copyright (c) StackBlitz. All rights reserved. 535 * Licensed under the MIT License. See License.txt in the project root for license information. 536 *--------------------------------------------------------------------------------------------*) 537*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.