1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"}; 2import{a as S5,d as Z5}from"/chunks/chunk-EF67JDNH.js";import{a as Yl,b as $v,d as xt,e as ro,f as Iv,g as G5,h as Tv,i as q5,k as H5,l as W5}from"/chunks/chunk-SV57RUAI.js";import{B as O5,E as j5,F as Sv,G as U5,H as L5,I as F5,L as B5,O as V5,P as hp,a as $5,b as I5,c as mp,e as T5,f as C5,g as kv,i as fp,k as P5,o as E5,p as A5,r as z5,u as N5,v as R5,w as M5,y as D5}from"/chunks/chunk-ZF6LIFNZ.js";import{B as Pv,a as gp,b as no,c as J5,d as Za,e as Ga,f as vp,g as K5,h as X5,i as Y5,j as Q5,k as e3,l as t3,m as r3,n as yp,o as n3,p as Cv,q as o3,r as i3,s as qa,t as a3,u as s3,v as bp,w as l3,x as Ql}from"/chunks/chunk-DPRE6E22.js";import{a as IU}from"/chunks/chunk-VW2XFE4Z.js";import{a as k5,b as $U,c as _r,d as R,e as ne,f as q}from"/chunks/chunk-ABARTBUM.js";var iU=$U((kAe,oU)=>{"use strict";function Lie(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)}}oU.exports=Lie});var Ot=R(ne());var Fc=R(q(),1),yn=R(ne(),1);var c3=R(ne(),1),Ha=(0,c3.createContext)({});var u3=R(ne(),1);function Wa(e){let t=(0,u3.useRef)(null);return t.current===null&&(t.current=e()),t.current}var xp=R(ne(),1);var d3=typeof window<"u";var wp=d3?xp.useLayoutEffect:xp.useEffect;var jy=R(q(),1),w7=R(ne(),1),Uc=R(ne(),1);var p3=R(ne(),1),Ko=(0,p3.createContext)(null);var b7=R(q(),1);function Xi(e,t){e.indexOf(t)===-1&&e.push(t)}function Xo(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var jt=(e,t,r)=>r>t?t:r<e?e:r;var oo=()=>{},Yr=()=>{};var sr={};var ec=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function tc(e){return typeof e=="object"&&e!==null}var rc=e=>/^0[^.\s]+$/u.test(e);function nc(e){let t;return()=>(t===void 0&&(t=e()),t)}var wt=e=>e;var TU=(e,t)=>r=>t(e(r)),hn=(...e)=>e.reduce(TU);var Pn=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};var io=class{constructor(){this.subscriptions=[]}add(t){return Xi(this.subscriptions,t),()=>Xo(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 Et=e=>e*1e3,qt=e=>e/1e3;function oc(e,t){return t?e*(1e3/t):0}var m3=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,CU=1e-7,PU=12;function EU(e,t,r,o,n){let i,a,s=0;do a=t+(r-t)/2,i=m3(a,o,n)-e,i>0?r=a:t=a;while(Math.abs(i)>CU&&++s<PU);return a}function Yo(e,t,r,o){if(e===t&&r===o)return wt;let n=i=>EU(i,0,1,e,r);return i=>i===0||i===1?i:m3(n(i),t,o)}var _p=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var kp=e=>t=>1-e(1-t);var Sp=Yo(.33,1.53,.69,.99),Ja=kp(Sp),ic=_p(Ja);var ac=e=>e>=1?1:(e*=2)<1?.5*Ja(e):.5*(2-Math.pow(2,-10*(e-1)));var sc=e=>1-Math.sin(Math.acos(e)),lc=kp(sc),cc=_p(sc);var Ev=Yo(.42,0,1,1),Av=Yo(0,0,.58,1),uc=Yo(.42,0,.58,1);var zv=e=>Array.isArray(e)&&typeof e[0]!="number";var dc=e=>Array.isArray(e)&&typeof e[0]=="number";var f3={linear:wt,easeIn:Ev,easeInOut:uc,easeOut:Av,circIn:sc,circInOut:cc,circOut:lc,backIn:Ja,backInOut:ic,backOut:Sp,anticipate:ac},AU=e=>typeof e=="string",$p=e=>{if(dc(e)){Yr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,o,n]=e;return Yo(t,r,o,n)}else if(AU(e))return Yr(f3[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),f3[e];return e};var pc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Mr={value:null,addProjectionMetrics:null};function h3(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 c(d){a.has(d)&&(u.schedule(d),e()),l++,d(s)}let u={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(c),t&&Mr.value&&Mr.value.frameloop[t].push(l),l=0,r.clear(),n=!1,i&&(i=!1,u.process(d))}};return u}var zU=40;function Ip(e,t){let r=!1,o=!0,n={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=pc.reduce(($,I)=>($[I]=h3(i,t?I:void 0),$),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:p,render:m,postRender:g}=a,x=()=>{let $=sr.useManualTiming,I=$?n.timestamp:performance.now();r=!1,$||(n.delta=o?1e3/60:Math.max(Math.min(I-n.timestamp,zU),1)),n.timestamp=I,n.isProcessing=!0,s.process(n),l.process(n),c.process(n),u.process(n),d.process(n),p.process(n),m.process(n),g.process(n),n.isProcessing=!1,r&&t&&(o=!1,e(x))},y=()=>{r=!0,o=!0,n.isProcessing||e(x)};return{schedule:pc.reduce(($,I)=>{let w=a[I];return $[I]=(P,D=!1,j=!1)=>(r||y(),w.schedule(P,D,j)),$},{}),cancel:$=>{for(let I=0;I<pc.length;I++)a[pc[I]].cancel($)},state:n,steps:a}}var{schedule:ze,cancel:kr,state:Tt,steps:mc}=Ip(typeof requestAnimationFrame<"u"?requestAnimationFrame:wt,!0);var Tp;function NU(){Tp=void 0}var _t={now:()=>(Tp===void 0&&_t.set(Tt.isProcessing||sr.useManualTiming?Tt.timestamp:performance.now()),Tp),set:e=>{Tp=e,queueMicrotask(NU)}};var En={layout:0,mainThread:0,waapi:0};var g3=e=>t=>typeof t=="string"&&t.startsWith(e),Cp=g3("--"),RU=g3("var(--"),Ka=e=>RU(e)?MU.test(e.split("/*")[0].trim()):!1,MU=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Nv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var An={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ao={...An,transform:e=>jt(0,1,e)},fc={...An,default:1};var Qo=e=>Math.round(e*1e5)/1e5;var Xa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function v3(e){return e==null}var y3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Ya=(e,t)=>r=>!!(typeof r=="string"&&y3.test(r)&&r.startsWith(e)||t&&!v3(r)&&Object.prototype.hasOwnProperty.call(r,t)),Pp=(e,t,r)=>o=>{if(typeof o!="string")return o;let[n,i,a,s]=o.match(Xa);return{[e]:parseFloat(n),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};
2var DU=e=>jt(0,255,e),Rv={...An,transform:e=>Math.round(DU(e))},zn={test:Ya("rgb","red"),parse:Pp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+Rv.transform(e)+", "+Rv.transform(t)+", "+Rv.transform(r)+", "+Qo(ao.transform(o))+")"};function OU(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 hc={test:Ya("#"),parse:OU,transform:zn.transform};var gc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),gn=gc("deg"),Qt=gc("%"),le=gc("px"),Mv=gc("vh"),Dv=gc("vw"),Ep={...Qt,parse:e=>Qt.parse(e)/100,transform:e=>Qt.transform(e*100)};var ei={test:Ya("hsl","hue"),parse:Pp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+Qt.transform(Qo(t))+", "+Qt.transform(Qo(r))+", "+Qo(ao.transform(o))+")"};var ht={test:e=>zn.test(e)||hc.test(e)||ei.test(e),parse:e=>zn.test(e)?zn.parse(e):ei.test(e)?ei.parse(e):hc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?zn.transform(e):ei.transform(e),getAnimatableNone:e=>{let t=ht.parse(e);return t.alpha=0,ht.transform(t)}};var b3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jU(e){return isNaN(e)&&typeof e=="string"&&(e.match(Xa)?.length||0)+(e.match(b3)?.length||0)>0}var w3="number",_3="color",UU="var",LU="var(",x3="${}",FU=/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 ti(e){let t=e.toString(),r=[],o={color:[],number:[],var:[]},n=[],i=0,s=t.replace(FU,l=>(ht.test(l)?(o.color.push(i),n.push(_3),r.push(ht.parse(l))):l.startsWith(LU)?(o.var.push(i),n.push(UU),r.push(l)):(o.number.push(i),n.push(w3),r.push(parseFloat(l))),++i,x3)).split(x3);return{values:r,split:s,indexes:o,types:n}}function BU(e){return ti(e).values}function k3({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===w3?n+=Qo(o[i]):a===_3?n+=ht.transform(o[i]):n+=o[i]}return n}}function VU(e){return k3(ti(e))}var ZU=e=>typeof e=="number"?0:ht.test(e)?ht.getAnimatableNone(e):e,GU=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:ZU(e);function qU(e){let t=ti(e);return k3(t)(t.values.map((o,n)=>GU(o,t.split[n])))}var Ut={test:jU,parse:BU,createTransformer:VU,getAnimatableNone:qU};function Ov(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 S3({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=Ov(l,s,e+1/3),i=Ov(l,s,e),a=Ov(l,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function Qa(e,t){return r=>r>0?t:e}var Be=(e,t,r)=>e+(t-e)*r;var jv=(e,t,r)=>{let o=e*e,n=r*(t*t-o)+o;return n<0?0:Math.sqrt(n)},HU=[hc,zn,ei],WU=e=>HU.find(t=>t.test(e));function $3(e){let t=WU(e);if(oo(!!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===ei&&(r=S3(r)),r}var Uv=(e,t)=>{let r=$3(e),o=$3(t);if(!r||!o)return Qa(e,t);let n={...r};return i=>(n.red=jv(r.red,o.red,i),n.green=jv(r.green,o.green,i),n.blue=jv(r.blue,o.blue,i),n.alpha=Be(r.alpha,o.alpha,i),zn.transform(n))};var Ap=new Set(["none","hidden"]);function I3(e,t){return Ap.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function JU(e,t){return r=>Be(e,t,r)}function zp(e){return typeof e=="number"?JU:typeof e=="string"?Ka(e)?Qa:ht.test(e)?Uv:YU:Array.isArray(e)?T3:typeof e=="object"?ht.test(e)?Uv:KU:Qa}function T3(e,t){let r=[...e],o=r.length,n=e.map((i,a)=>zp(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)r[a]=n[a](i);return r}}function KU(e,t){let r={...e,...t},o={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(o[n]=zp(e[n])(e[n],t[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}}function XU(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 YU=(e,t)=>{let r=Ut.createTransformer(t),o=ti(e),n=ti(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?Ap.has(e)&&!n.values.length||Ap.has(t)&&!o.values.length?I3(e,t):hn(T3(XU(o,n),n.values),r):(oo(!0,`Complex values '${e}' and '${t}
2' 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"),Qa(e,t))};function Np(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Be(e,t,r):zp(e)(e,t)}var C3=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>ze.update(t,r),stop:()=>kr(t),now:()=>Tt.isProcessing?Tt.timestamp:_t.now()}};var Rp=(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 es(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 P3(e,t=100,r){let o=r({...e,keyframes:[0,t]}),n=Math.min(es(o),2e4);return{type:"keyframes",ease:i=>o.next(n*i).value/t,duration:qt(n)}}var kt={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 Bv(e,t){return e*Math.sqrt(1-t*t)}var QU=12;function eL(e,t,r){let o=r;for(let n=1;n<QU;n++)o=o-e(o)/t(o);return o}var Fv=.001;function tL({duration:e=kt.duration,bounce:t=kt.bounce,velocity:r=kt.velocity,mass:o=kt.mass}){let n,i;oo(e<=Et(kt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=jt(kt.minDamping,kt.maxDamping,a),e=jt(kt.minDuration,kt.maxDuration,qt(e)),a<1?(n=c=>{let u=c*a,d=u*e,p=u-r,m=Bv(c,a),g=Math.exp(-d);return Fv-p/m*g},i=c=>{let d=c*a*e,p=d*r+r,m=Math.pow(a,2)*Math.pow(c,2)*e,g=Math.exp(-d),x=Bv(Math.pow(c,2),a);return(-n(c)+Fv>0?-1:1)*((p-m)*g)/x}):(n=c=>{let u=Math.exp(-c*e),d=(c-r)*e+1;return-Fv+u*d},i=c=>{let u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});let s=5/e,l=eL(n,i,s);if(e=Et(e),isNaN(l))return{stiffness:kt.stiffness,damping:kt.damping,duration:e};
2{let c=Math.pow(l,2)*o;return{stiffness:c,damping:a*2*Math.sqrt(o*c),duration:e}}}var rL=["duration","bounce"],nL=["stiffness","damping","mass"];function E3(e,t){return t.some(r=>e[r]!==void 0)}function oL(e){let t={velocity:kt.velocity,stiffness:kt.stiffness,damping:kt.damping,mass:kt.mass,isResolvedFromDuration:!1,...e};if(!E3(e,nL)&&E3(e,rL))if(t.velocity=0,e.visualDuration){let r=e.visualDuration,o=2*Math.PI/(r*1.2),n=o*o,i=2*jt(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:kt.mass,stiffness:n,damping:i}}else{let r=tL({...e,velocity:0});t={...t,...r,mass:kt.mass},t.isResolvedFromDuration=!0}return t}function ts(e=kt.visualDuration,t=kt.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:c,mass:u,duration:d,velocity:p,isResolvedFromDuration:m}=oL({...r,velocity:-qt(r.velocity||0)}),g=p||0,x=c/(2*Math.sqrt(l*u)),y=a-i,k=qt(Math.sqrt(l/u)),_=Math.abs(y)<5;o||(o=_?kt.restSpeed.granular:kt.restSpeed.default),n||(n=_?kt.restDelta.granular:kt.restDelta.default);let $,I,w,P,D,j;if(x<1)w=Bv(k,x),P=(g+x*k*y)/w,$=U=>{let V=Math.exp(-x*k*U);return a-V*(P*Math.sin(w*U)+y*Math.cos(w*U))},D=x*k*P+y*w,j=x*k*y-P*w,I=U=>Math.exp(-x*k*U)*(D*Math.sin(w*U)+j*Math.cos(w*U));else if(x===1){$=V=>a-Math.exp(-k*V)*(y+(g+k*y)*V);let U=g+k*y;I=V=>Math.exp(-k*V)*(k*U*V-g)}else{let U=k*Math.sqrt(x*x-1);$=ve=>{let $e=Math.exp(-x*k*ve),qe=Math.min(U*ve,300);return a-$e*((g+x*k*y)*Math.sinh(qe)+U*y*Math.cosh(qe))/U};let V=(g+x*k*y)/U,F=x*k*V-y*U,Ge=x*k*y-V*U;I=ve=>{let $e=Math.exp(-x*k*ve),qe=Math.min(U*ve,300);return $e*(F*Math.sinh(qe)+Ge*Math.cosh(qe))}}let M={calculatedDuration:m&&d||null,velocity:U=>Et(I(U)),next:U=>{if(!m&&x<1){let F=Math.exp(-x*k*U),Ge=Math.sin(w*U),ve=Math.cos(w*U),$e=a-F*(P*Ge+y*ve),qe=Et(F*(D*Ge+j*ve));return s.done=Math.abs(qe)<=o&&Math.abs(a-$e)<=n,s.value=s.done?a:$e,s}let V=$(U);if(m)s.done=U>=d;else{let F=Et(I(U));s.done=Math.abs(F)<=o&&Math.abs(a-V)<=n}return s.value=s.done?a:V,s},toString:()=>{let U=Math.min(es(M),2e4),V=Rp(F=>M.next(U*F).value,U,30);return U+"ms "+V},toTransition:()=>{}};return M}ts.applyToOptions=e=>{let t=P3(e,100,ts);return e.ease=t.ease,e.duration=Et(t.duration),e.type="keyframes",e};var iL=5;function Mp(e,t,r){let o=Math.max(t-iL,0);return oc(r-e(o),t-o)}function vc({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){let d=e[0],p={done:!1,value:d},m=j=>s!==void 0&&j<s||l!==void 0&&j>l,g=j=>s===void 0?l:l===void 0||Math.abs(s-j)<Math.abs(l-j)?s:l,x=r*t,y=d+x,k=a===void 0?y:a(y);k!==y&&(x=k-d);let _=j=>-x*Math.exp(-j/o),$=j=>k+_(j),I=j=>{let M=_(j),U=$(j);p.done=Math.abs(M)<=c,p.value=p.done?k:U},w,P,D=j=>{m(p.value)&&(w=j,P=ts({keyframes:[p.value,g(p.value)],velocity:Mp($,j,p.value),damping:n,stiffness:i,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:j=>{let M=!1;return!P&&w===void 0&&(M=!0,I(j),D(j)),w!==void 0&&j>=w?P.next(j-w):(!M&&I(j),p)}}}function aL(e,t,r){let o=[],n=r||sr.mix||Np,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]||wt:t;s=hn(l,s)}o.push(s)}return o}function A3(e,t,{clamp:r=!0,ease:o,mixer:n}={}){let i=e.length;if(Yr(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=aL(t,o,n),l=s.length,c=u=>{if(a&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);let p=Pn(e[d],e[d+1],u);return s[d](p)};return r?u=>c(jt(e[0],e[i-1],u)):c}function z3(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let n=Pn(0,t,o);e.push(Be(r,1,n))}}function N3(e){let t=[0];return z3(t,e.length-1),t}function R3(e,t){return e.map(r=>r*t)}function sL(e,t){return e.map(()=>t||uc).splice(0,e.length-1)}function Yi({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let n=zv(o)?o.map($p):$p(o),i={done:!1,value:t[0]},a=R3(r&&r.length===t.length?r:N3(t),e),s=A3(a,t,{ease:Array.isArray(n)?n:sL(t,n)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}var lL=e=>e!==null;function ri(e,{repeat:t,repeatType:r="loop"},o,n=1){let i=e.filter(lL),s=n<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!s||o===void 0?i[s]:o}var cL={decay:vc,inertia:vc,tween:Yi,keyframes:Yi,spring:ts};function Dp(e){typeof e.type=="string"&&(e.type=cL[e.type])}var ni=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 uL=e=>e/100,so=class extends ni{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!==_t.now()&&this.tick(_t.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},En.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Dp(t);let{type:r=Yi,repeat:o=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=t,{keyframes:s}=t,l=r||Yi;l!==Yi&&typeof s[0]!="number"&&(this.mixKeyframes=hn(uL,Np(s[0],s[1])),s=[0,100]);let c=l({...t,keyframes:s}
2);i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=es(c));let{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(o+1)-n,this.generator=c}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:c=0,keyframes:u,repeat:d,repeatType:p,repeatDelay:m,type:g,onUpdate:x,finalKeyframe:y}=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 k=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?k<0:k>n;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let $=this.currentTime,I=o;if(d){let j=Math.min(this.currentTime,n)/s,M=Math.floor(j),U=j%1;!U&&j>=1&&(U=1),U===1&&M--,M=Math.min(M,d+1),M%2&&(p==="reverse"?(U=1-U,m&&(U-=m/s)):p==="mirror"&&(I=a)),$=jt(0,1,U)*s}let w;_?(this.delayState.value=u[0],w=this.delayState):w=I.next($),i&&!_&&(w.value=i(w.value));let{done:P}=w;!_&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&g!==vc&&(w.value=ri(u,this.options,y,this.speed)),x&&x(w.value),D&&this.finish(),w}then(t,r){return this.finished.then(t,r)}get duration(){return qt(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+qt(t)}get time(){return qt(this.currentTime)}set time(t){t=Et(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 Mp(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(_t.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=qt(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=C3,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(_t.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,En.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 M3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Qi=e=>e*180/Math.PI,Vv=e=>{let t=Qi(Math.atan2(e[1],e[0]));return Zv(t)},dL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vv,rotateZ:Vv,skewX:e=>Qi(Math.atan(e[1])),skewY:e=>Qi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Zv=e=>(e=e%360,e<0&&(e+=360),e),D3=Vv,O3=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),j3=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),pL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:O3,scaleY:j3,scale:e=>(O3(e)+j3(e))/2,rotateX:e=>Zv(Qi(Math.atan2(e[6],e[5]))),rotateY:e=>Zv(Qi(Math.atan2(-e[2],e[0]))),rotateZ:D3,rotate:D3,skewX:e=>Qi(Math.atan(e[4])),skewY:e=>Qi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Op(e){return e.includes("scale")?1:0}function jp(e,t){if(!e||e==="none")return Op(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,n;if(r)o=pL,n=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=dL,n=s}if(!n)return Op(t);let i=o[t],a=n[1].split(",").map(mL);return typeof i=="function"?i(a):a[i]}var U3=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return jp(r,t)};function mL(e){return parseFloat(e.trim())}var Nn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qr=new Set(Nn);var Gv=e=>e===An||e===le,fL=new Set(["x","y","z"]),hL=Nn.filter(e=>!fL.has(e));function L3(e){let t=[];return hL.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),t}var lo={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})=>jp(t,"x"),y:(e,{transform:t})=>jp(t,"y")};lo.translateX=lo.x;lo.translateY=lo.y;var ea=new Set,qv=!1,Hv=!1,Wv=!1;function F3(){if(Hv){let e=Array.from(ea).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),r=new Map;t.forEach(o=>{let n=L3(o);n.length&&(r.set(o,n),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();let n=r.get(o);
2n&&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)})}Hv=!1,qv=!1,ea.forEach(e=>e.complete(Wv)),ea.clear()}function B3(){ea.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Hv=!0)})}function V3(){Wv=!0,B3(),F3(),Wv=!1}var oi=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?(ea.add(this),qv||(qv=!0,ze.read(B3),ze.resolveKeyframes(F3))):(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])}M3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ea.delete(this)}cancel(){this.state==="scheduled"&&(ea.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var Z3=e=>e.startsWith("--");function Up(e,t,r){Z3(t)?e.style.setProperty(t,r):e.style[t]=r}var G3={};function Lp(e,t){let r=nc(e);return()=>G3[t]??r()}var q3=Lp(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var Fp=Lp(()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var ta=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`;var Jv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ta([0,.65,.55,1]),circOut:ta([.55,0,1,.45]),backIn:ta([.31,.01,.66,-.59]),backOut:ta([.33,1.53,.69,.99])};function Kv(e,t){if(e)return typeof e=="function"?Fp()?Rp(e,t):"ease-out":dc(e)?ta(e):Array.isArray(e)?e.map(r=>Kv(r,t)||Jv.easeOut):Jv[e]}function H3(e,t,r,{delay:o=0,duration:n=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){let u={[t]:r};l&&(u.offset=l);let d=Kv(s,n);Array.isArray(d)&&(u.easing=d),Mr.value&&En.waapi++;let p={delay:o,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};c&&(p.pseudoElement=c);let m=e.animate(u,p);return Mr.value&&m.finished.finally(()=>{En.waapi--}),m}function Bp(e){return typeof e=="function"&&"applyToOptions"in e}function W3({type:e,...t}){return Bp(e)&&Fp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var rs=class extends ni{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,Yr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let c=W3(t);this.animation=H3(r,o,n,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let u=ri(n,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Up(r,o,u),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 qt(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+qt(t)}get time(){return qt(Number(this.animation.currentTime)||0)}set time(t){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Et(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&&q3()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),wt):n(this)}};var J3={anticipate:ac,backInOut:ic,circInOut:cc};function gL(e){return e in J3}function K3(e){typeof e.ease=="string"&&gL(e.ease)&&(e.ease=J3[e.ease])}var Xv=10,Vp=class extends rs{constructor(t){K3(t),Dp(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 so({...a,autoplay:!1}),l=Math.max(Xv,_t.now()-this.startTime),c=jt(0,Xv,l-Xv),u=s.sample(l).value,{name:d}=this.options;i&&d&&Up(i,d,u),r.setWithVelocity(s.sample(Math.max(0,l-c)).value,u,c),s.stop()}};var Yv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ut.test(e)||e==="0")&&!e.startsWith("url("));function vL(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 X3(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=Yv(n,t),s=Yv(i,t);return oo(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:vL(e)||(r==="spring"||Bp(r))&&o}function yc(e){e.duration=0,e.type="keyframes"}var Zp=new Set(["opacity","clipPath","filter","transform"]);var yL=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Y3(e){for(let t=0;t<e.length;
2t++)if(typeof e[t]=="string"&&yL.test(e[t]))return!0;return!1}var bL=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),xL=nc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Q3(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:c,transformTemplate:u}=t.owner.getProps();return xL()&&r&&(Zp.has(r)||bL.has(r)&&Y3(s))&&(r!=="transform"||!u)&&!c&&!o&&n!=="mirror"&&i!==0&&a!=="inertia"}var wL=40,Gp=class extends ni{constructor({autoplay:t=!0,delay:r=0,type:o="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=_t.now();let p={autoplay:t,delay:r,type:o,repeat:n,repeatDelay:i,repeatType:a,name:l,motionValue:c,element:u,...d},m=u?.KeyframeResolver||oi;this.keyframeResolver=new m(s,(g,x,y)=>this.onKeyframesResolved(g,x,p,!y),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,o,n){this.keyframeResolver=void 0;let{name:i,type:a,velocity:s,delay:l,isHandoff:c,onUpdate:u}=o;this.resolvedAt=_t.now();let d=!0;X3(t,i,a,s)||(d=!1,(sr.instantAnimations||!l)&&u?.(ri(t,o,r)),t[0]=t[t.length-1],yc(o),o.repeat=0);let m={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>wL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:t},g=d&&!c&&Q3(m),x=m.motionValue?.owner?.current,y;if(g)try{y=new Vp({...m,element:x})}catch{y=new so(m)}else y=new so(m);y.finished.then(()=>{this.notifyFinished()}).catch(wt),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}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(),V3()),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 qp(e,t,r,o=0,n=1){let i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),a=e.size,s=(a-1)*o;return typeof r=="function"?r(i,a):n===1?i*o:s-i*o}var _L=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kL(e){let t=_L.exec(e);if(!t)return[,];let[,r,o,n]=t;return[`--${r??o}`,n]}var SL=4;function Qv(e,t,r=1){Yr(r<=SL,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,n]=kL(e);if(!o)return;let i=window.getComputedStyle(t).getPropertyValue(o);if(i){let a=i.trim();return ec(a)?parseFloat(a):a}return Ka(n)?Qv(n,t,r+1):n}var $L={type:"spring",stiffness:500,damping:25,restSpeed:10},IL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TL={type:"keyframes",duration:.8},CL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e$=(e,{keyframes:t})=>t.length>2?TL:Qr.has(e)?e.startsWith("scale")?IL(t[1]):$L:CL;function Hp(e,t){if(e?.inherit&&t){let{inherit:r,...o}=e;return{...t,...o}}return e}function ns(e,t){let r=e?.[t]??e?.default??e;return r!==e?Hp(r,e):r}var PL=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function t$(e){for(let t in e)if(!PL.has(t))return!0;return!1}var ra=(e,t,r,o={},n,i)=>a=>{let s=ns(o,e)||{},l=s.delay||o.delay||0,{elapsed:c=0}=o;c=c-Et(l);let u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,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};t$(s)||Object.assign(u,e$(e,u)),u.duration&&(u.duration=Et(u.duration)),u.repeatDelay&&(u.repeatDelay=Et(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(yc(u),u.delay===0&&(
2d=!0)),(sr.instantAnimations||sr.skipAnimations||n?.shouldSkipAnimations)&&(d=!0,yc(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!i&&t.get()!==void 0){let p=ri(u.keyframes,s);if(p!==void 0){ze.update(()=>{u.onUpdate(p),u.onComplete()});return}}return s.isSync?new so(u):new Gp(u)};function r$(e){let t=[{},{}];return e?.values.forEach((r,o)=>{t[0][o]=r.get(),t[1][o]=r.getVelocity()}),t}function na(e,t,r,o){if(typeof t=="function"){let[n,i]=r$(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]=r$(o);t=t(r!==void 0?r:e.custom,n,i)}return t}function Dr(e,t,r){let o=e.getProps();return na(o,t,r!==void 0?r:o.custom,e)}var Wp=new Set(["width","height","top","left","right","bottom",...Nn]);var n$=30,EL=e=>!isNaN(parseFloat(e)),o$={current:void 0},ey=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let n=_t.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=_t.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=EL(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 io);let o=this.events[t].add(r);return t==="change"?()=>{o(),ze.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 o$.current&&o$.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=_t.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>n$)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,n$);return oc(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 vn(e,t){return new ey(e,t)}var bc=e=>Array.isArray(e);function AL(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,vn(r))}function zL(e){return bc(e)?e[e.length-1]||0:e}function i$(e,t){let r=Dr(e,t),{transitionEnd:o={},transition:n={},...i}=r||{};i={...i,...o};for(let a in i){let s=zL(i[a]);AL(e,a,s)}}var et=e=>!!(e&&e.getVelocity);function a$(e){return!!(et(e)&&e.add)}function os(e,t){let r=e.getValue("willChange");if(a$(r))return r.add(t);if(!r&&sr.WillChange){let o=new sr.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function is(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var s$="framerAppearId",xc="data-"+is(s$);function Jp(e){return e.props[xc]}function NL({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function Kp(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let{transition:i,transitionEnd:a,...s}=t,l=e.getDefaultTransition();i=i?Hp(i,l):l;let c=i?.reduceMotion;o&&(i=o);let u=[],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&&NL(d,p))continue;let x={delay:r,...ns(i||{},p)},y=m.get();if(y!==void 0&&!m.isAnimating()&&!Array.isArray(g)&&g===y&&!x.velocity){ze.update(()=>m.set(g));continue}let k=!1;if(window.MotionHandoffAnimation){let I=Jp(e);if(I){let w=window.MotionHandoffAnimation(I,p,ze);w!==null&&(x.startTime=w,k=!0)}}os(e,p);let _=c??e.shouldReduceMotion;m.start(ra(p,m,g,_&&Wp.has(p)?{type:!1}:x,e,k));let $=m.animation;$&&u.push($)}if(a){let p=()=>ze.update(()=>{a&&i$(e,a)});u.length?Promise.all(u).then(p):p()}return u}function Xp(e,t,r={}){let o=Dr(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(Kp(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=n;return RL(e,t,l,c,u,d,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(r.delay)])}function RL(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(Xp(l,t,{...a,delay:r+(typeof o=="function"?0:o)+qp(e.variantChildren,l,o,n,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function l$(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(i=>Xp(e,i,r));o=Promise.all(n)}else if(typeof t=="string")o=Xp(e,t,r);else{let n=typeof t=="function"?Dr(e,t,r.custom):t;o=Promise.all(Kp(e,n,r))}return o.then(()=>
2{e.notify("AnimationComplete",t)})}var c$={test:e=>e==="auto",parse:e=>e};var Yp=e=>t=>t.test(e);var ty=[An,le,Qt,gn,Dv,Mv,c$],ry=e=>ty.find(Yp(e));function u$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rc(e):!0}var ML=new Set(["brightness","contrast","saturate","opacity"]);function DL(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(Xa)||[];if(!o)return e;let n=r.replace(o,""),i=ML.has(t)?1:0;return o!==r&&(i*=100),t+"("+i+n+")"}var OL=/\b([a-z-]*)\(.*?\)/gu,wc={...Ut,getAnimatableNone:e=>{let t=e.match(OL);return t?t.map(DL).join(" "):e}};var _c={...Ut,getAnimatableNone:e=>{let t=Ut.parse(e);return Ut.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var ny={...An,transform:Math.round};var d$={rotate:gn,rotateX:gn,rotateY:gn,rotateZ:gn,scale:fc,scaleX:fc,scaleY:fc,scaleZ:fc,skew:gn,skewX:gn,skewY:gn,distance:le,translateX:le,translateY:le,translateZ:le,x:le,y:le,z:le,perspective:le,transformPerspective:le,opacity:ao,originX:Ep,originY:Ep,originZ:le};var as={borderWidth:le,borderTopWidth:le,borderRightWidth:le,borderBottomWidth:le,borderLeftWidth:le,borderRadius:le,borderTopLeftRadius:le,borderTopRightRadius:le,borderBottomRightRadius:le,borderBottomLeftRadius:le,width:le,maxWidth:le,height:le,maxHeight:le,top:le,right:le,bottom:le,left:le,inset:le,insetBlock:le,insetBlockStart:le,insetBlockEnd:le,insetInline:le,insetInlineStart:le,insetInlineEnd:le,padding:le,paddingTop:le,paddingRight:le,paddingBottom:le,paddingLeft:le,paddingBlock:le,paddingBlockStart:le,paddingBlockEnd:le,paddingInline:le,paddingInlineStart:le,paddingInlineEnd:le,margin:le,marginTop:le,marginRight:le,marginBottom:le,marginLeft:le,marginBlock:le,marginBlockStart:le,marginBlockEnd:le,marginInline:le,marginInlineStart:le,marginInlineEnd:le,fontSize:le,backgroundPositionX:le,backgroundPositionY:le,...d$,zIndex:ny,fillOpacity:ao,strokeOpacity:ao,numOctaves:ny};var jL={...as,color:ht,backgroundColor:ht,outlineColor:ht,fill:ht,stroke:ht,borderColor:ht,borderTopColor:ht,borderRightColor:ht,borderBottomColor:ht,borderLeftColor:ht,filter:wc,WebkitFilter:wc,mask:_c,WebkitMask:_c},Qp=e=>jL[e];var UL=new Set([wc,_c]);function em(e,t){let r=Qp(e);return UL.has(r)||(r=Ut),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var LL=new Set(["auto","none","0"]);function p$(e,t,r){let o=0,n;for(;o<e.length&&!n;){let i=e[o];typeof i=="string"&&!LL.has(i)&&ti(i).values.length&&(n=e[o]),o++}if(n&&r)for(let i of t)e[i]=em(r,n)}var tm=class extends oi{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 u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Ka(d))){let p=Qv(d,r.current);p!==void 0&&(t[u]=p),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Wp.has(o)||t.length!==2)return;let[n,i]=t,a=ry(n),s=ry(i),l=Nv(n),c=Nv(i);if(l!==c&&lo[o]){this.needsMeasurement=!0;return}if(a!==s)if(Gv(a)&&Gv(s))for(let u=0;u<t.length;u++){let d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else lo[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,o=[];for(let n=0;n<t.length;n++)(t[n]===null||u$(t[n]))&&o.push(n);o.length&&p$(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=lo[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]=lo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
2h(([s,l])=>{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}};function rm(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 nm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function oa(e){return tc(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:ia,cancel:FL}=Ip(queueMicrotask,!1);var en={x:!1,y:!1};function om(){return en.x||en.y}function oy(e){return e==="x"||e==="y"?en[e]?null:(en[e]=!0,()=>{en[e]=!1}):en.x||en.y?null:(en.x=en.y=!0,()=>{en.x=en.y=!1})}function im(e,t){let r=rm(e),o=new AbortController,n={passive:!0,...t,signal:o.signal};return[r,n,()=>o.abort()]}function BL(e){return!(e.pointerType==="touch"||om())}function iy(e,t,r={}){let[o,n,i]=im(e,r);return o.forEach(a=>{let s=!1,l=!1,c,u=()=>{a.removeEventListener("pointerleave",g)},d=y=>{c&&(c(y),c=void 0),u()},p=y=>{s=!1,window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p),l&&(l=!1,d(y))},m=()=>{s=!0,window.addEventListener("pointerup",p,n),window.addEventListener("pointercancel",p,n)},g=y=>{if(y.pointerType!=="touch"){if(s){l=!0;return}d(y)}},x=y=>{if(!BL(y))return;l=!1;let k=t(a,y);typeof k=="function"&&(c=k,a.addEventListener("pointerleave",g,n))};a.addEventListener("pointerenter",x,n),a.addEventListener("pointerdown",m,n)}),i}var ay=(e,t)=>t?e===t?!0:ay(e,t.parentElement):!1;var aa=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var VL=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sy(e){return VL.has(e.tagName)||e.isContentEditable===!0}var ZL=new Set(["INPUT","SELECT","TEXTAREA"]);function ly(e){return ZL.has(e.tagName)||e.isContentEditable===!0}var ss=new WeakSet;function m$(e){return t=>{t.key==="Enter"&&e(t)}}function cy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var f$=(e,t)=>{let r=e.currentTarget;if(!r)return;let o=m$(()=>{if(ss.has(r))return;cy(r,"down");let n=m$(()=>{cy(r,"up")}),i=()=>cy(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 h$(e){return aa(e)&&!om()}var g$=new WeakSet;function uy(e,t,r={}){let[o,n,i]=im(e,r),a=s=>{let l=s.currentTarget;if(!h$(s)||g$.has(s))return;ss.add(l),r.stopPropagation&&g$.add(s);let c=t(l,s),u=(m,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),ss.has(l)&&ss.delete(l),h$(m)&&typeof c=="function"&&c(m,{success:g})},d=m=>{u(m,l===window||l===document||r.useGlobalTarget||ay(l,m.target))},p=m=>{u(m,!1)};window.addEventListener("pointerup",d,n),window.addEventListener("pointercancel",p,n)};return o.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",a,n),oa(s)&&(s.addEventListener("focus",c=>f$(c,n)),!sy(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function ls(e){return tc(e)&&"ownerSVGElement"in e}var am=new WeakMap,sm,v$=(e,t,r)=>(o,n)=>n&&n[0]?n[0][e+"Size"]:ls(o)&&"getBBox"in o?o.getBBox()[t]:o[r],GL=v$("inl
2ine","width","offsetWidth"),qL=v$("block","height","offsetHeight");function HL({target:e,borderBoxSize:t}){am.get(e)?.forEach(r=>{r(e,{get width(){return GL(e,t)},get height(){return qL(e,t)}})})}function WL(e){e.forEach(HL)}function JL(){typeof ResizeObserver>"u"||(sm=new ResizeObserver(WL))}function y$(e,t){sm||JL();let r=rm(e);return r.forEach(o=>{let n=am.get(o);n||(n=new Set,am.set(o,n)),n.add(t),sm?.observe(o)}),()=>{r.forEach(o=>{let n=am.get(o);n?.delete(t),n?.size||sm?.unobserve(o)})}}var lm=new Set,cs;function KL(){cs=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};lm.forEach(t=>t(e))},window.addEventListener("resize",cs)}function b$(e){return lm.add(e),cs||KL(),()=>{lm.delete(e),!lm.size&&typeof cs=="function"&&(window.removeEventListener("resize",cs),cs=void 0)}}function cm(e,t){return typeof e=="function"?b$(e):y$(e,t)}function x$(e){return ls(e)&&e.tagName==="svg"}var XL=[...ty,ht,Ut],w$=e=>XL.find(Yp(e));var dy=()=>({translate:0,scale:1,origin:0,originPoint:0}),ii=()=>({x:dy(),y:dy()}),py=()=>({min:0,max:0}),gt=()=>({x:py(),y:py()});var _$=new WeakMap;function co(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rn(e){return typeof e=="string"||Array.isArray(e)}var um=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kc=["initial",...um];function ai(e){return co(e.animate)||kc.some(t=>Rn(e[t]))}function Sc(e){return!!(ai(e)||e.variants)}function k$(e,t,r){for(let o in t){let n=t[o],i=r[o];if(et(n))e.addValue(o,n);else if(et(i))e.addValue(o,vn(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,vn(a!==void 0?a:n,{owner:e}))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}var $c={current:null},dm={current:!1};var YL=typeof window<"u";function S$(){if(dm.current=!0,!!YL)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$c.current=e.matches;e.addEventListener("change",t),t()}else $c.current=!1}var $$=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],pm={};function Tc(e){pm=e}function my(){return pm}var Ic=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=oi,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=_t.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,ze.render(this.render,!1,!0))};let{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=u,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=ai(r),this.isVariantNode=Sc(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];c[m]!==void 0&&et(g)&&g.set(c[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,_$.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
2h((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(dm.current||S$(),this.shouldReduceMotion=$c.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(),kr(this.notifyUpdate),kr(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&&Zp.has(t)&&this.current instanceof HTMLElement){let{factory:a,keyframes:s,times:l,ease:c,duration:u}=r.accelerate,d=new rs({element:this.current,name:t,keyframes:s,times:l,ease:c,duration:Et(u)}),p=a(d);this.valueSubscriptions.set(t,()=>{p(),d.cancel()});return}let o=Qr.has(t);o&&this.onBindTransform&&this.onBindTransform();let n=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ze.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 pm){let r=pm[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):gt()}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<$$.length;o++){let n=$$[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=k$(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=vn(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);
2return o!=null&&(typeof o=="string"&&(ec(o)||rc(o))?o=parseFloat(o):!w$(o)&&Ut.test(r)&&(o=em(t,r)),this.setBaseTarget(t,et(o)?o.get():o)),et(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=na(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&&!et(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 io),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){ia.render(this.render)}};var us=class extends Ic{constructor(){super(...arguments),this.KeyframeResolver=tm}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;et(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};var Lt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function Cc({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function fy({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hy(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 gy(e){return e===void 0||e===1}function mm({scale:e,scaleX:t,scaleY:r}){return!gy(e)||!gy(t)||!gy(r)}function uo(e){return mm(e)||vy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vy(e){return I$(e.x)||I$(e.y)}function I$(e){return e&&e!=="0%"}function Pc(e,t,r){let o=e-r,n=t*o;return r+n}function T$(e,t,r,o,n){return n!==void 0&&(e=Pc(e,n,o)),Pc(e,r,o)+t}function yy(e,t=0,r=1,o,n){e.min=T$(e.min,t,r,o,n),e.max=T$(e.max,t,r,o,n)}function by(e,{x:t,y:r}){yy(e.x,t.translate,t.scale,t.originPoint),yy(e.y,r.translate,r.scale,r.originPoint)}var C$=.999999999999,P$=1.0000000000001;function z$(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&&(tn(e.x,-i.scroll.offset.x),tn(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,by(e,a)),o&&uo(i.latestValues)&&Ec(e,i.latestValues,i.layout?.layoutBox))}t.x<P$&&t.x>C$&&(t.x=1),t.y<P$&&t.y>C$&&(t.y=1)}function tn(e,t){e.min+=t,e.max+=t}function E$(e,t,r,o,n=.5){let i=Be(e.min,e.max,n);yy(e,t,r,i,o)}function A$(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Ec(e,t,r){let o=r??e;E$(e.x,A$(t.x,o.x),t.scaleX,t.scale,t.originX),E$(e.y,A$(t.y,o.y),t.scaleY,t.scale,t.originY)}function fm(e,t){return Cc(hy(e.getBoundingClientRect(),t))}function xy(e,t,r){let o=fm(e,r),{scroll:n}=t;return n&&(tn(o.x,n.offset.x),tn(o.y,n.offset.y)),o}var QL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eF=Nn.length;function N$(e,t,r){let o="",n=!0;for(let i=0;i<eF;i++){let a=Nn[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 c=parseFloat(s);l=a.startsWith("scale")?c===1:c===0}if(!l||r){let c=nm(s,as[a]);if(!l){n=!1;let u=QL[a]||a;o+=`${u}(${c}) `}r&&(t[a]=c)}}return o=o.trim(),r?o=r(t,n?"":o):n&&(o="none"),o}function sa(e,t,r){let{style:o,vars:n,transformOrigin:i}=e,a=!1,s=!1;for(let l in t){let c=t[l];if(Qr.has(l)){a=!0;continue}else if(Cp(l)){n[l]=c;continue}else{let u=nm(c,as[l]);l.startsWith("origin")?(s=!0,i[l]=u):o[l]=u}}if(t.transform||(a||r?o.transform=N$(t,e.transform,r):o.transform&&(o.transform="none")),s){let{originX:l="50%",originY:c="50%",originZ:u=0}=i;o.transformOrigin=`${l} ${c} ${u}`}}function hm(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 R$(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ds={correct:(e,t)=>
2{if(!t.target)return e;if(typeof e=="string")if(le.test(e))e=parseFloat(e);else return e;let r=R$(e,t.target.x),o=R$(e,t.target.y);return`${r}% ${o}%`}};var M$={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,n=Ut.parse(e);if(n.length>5)return o;let i=Ut.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 c=Be(s,l,.5);return typeof n[2+a]=="number"&&(n[2+a]/=c),typeof n[3+a]=="number"&&(n[3+a]/=c),i(n)}};var Ac={borderRadius:{...ds,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ds,borderTopRightRadius:ds,borderBottomLeftRadius:ds,borderBottomRightRadius:ds,boxShadow:M$};function zc(e,{layout:t,layoutId:r}){return Qr.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ac[e]||e==="opacity")}function la(e,t,r){let o=e.style,n=t?.style,i={};if(!o)return i;for(let a in o)(et(o[a])||n&&et(n[a])||zc(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(i[a]=o[a]);return i}function tF(e){return window.getComputedStyle(e)}var Nc=class extends us{constructor(){super(...arguments),this.type="html",this.renderInstance=hm}readValueFromInstance(t,r){if(Qr.has(r))return this.projection?.isProjecting?Op(r):U3(t,r);{let o=tF(t),n=(Cp(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return fm(t,r)}build(t,r,o){sa(t,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,r,o){return la(t,r,o)}};var rF={offset:"stroke-dashoffset",array:"stroke-dasharray"},nF={offset:"strokeDashoffset",array:"strokeDasharray"};function D$(e,t,r=1,o=0,n=!0){e.pathLength=1;let i=n?rF:nF;e[i.offset]=`${-o}`,e[i.array]=`${t} ${r}`}var oF=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Rc(e,{attrX:t,attrY:r,attrScale:o,pathLength:n,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(sa(e,s,c),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=u?.transformBox??"fill-box",delete d.transformBox);for(let m of oF)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&&D$(d,n,i,a,!1)}var gm=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 Mc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function O$(e,t,r,o){hm(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(gm.has(n)?n:is(n),t.attrs[n])}function Dc(e,t,r){let o=la(e,t,r);for(let n in e)if(et(e[n])||et(t[n])){let i=Nn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;o[i]=e[n]}return o}var Oc=class extends us{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Qr.has(r)){let o=Qp(r);return o&&o.default||0}return r=gm.has(r)?r:is(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,o){return Dc(t,r,o)}build(t,r,o){Rc(t,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,r,o,n){O$(t,r,o,n)}mount(t){this.isSVGTag=Mc(t.tagName),super.mount(t)}};var iF=kc.length;function wy(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?wy(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<iF;r++){let o=kc[r],n=e.props[o];(Rn(n)||n===!1)&&(t[o]=n)}return t}function _y(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 aF=[...um].reverse(),sF=um.length;function lF(e){return t=>Promise.all(t.map(({animation:r,options:o})=>l$(e,r,o)))}function ky(e){let t=lF(e),r=j$(),o=!0,n=!1,i=c=>(u,d)=>{let p=Dr(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(p){let{transition:m,transitionEnd:g,...x}=p;u={...u,...x,...g}}return u};function a(c){t=c(e)}function s(c){let{props:u}=e,d=wy(e.parent)||{},p=[],m=new Set,g={},x=1/0;for(let k=0;k<sF;k++){let _=aF[k],$=r[_],I=u[_]!==void 0?u[_]:d[_],w=Rn(I),P=_===c?$.isActive:null;P===!1&&(x=k);let D=I===d[_]&&I!==u[_]&&w;if(D&&(o||n)&&e.manuallyAnimateOnMount&&(D=!1),$.protectedKeys={...g},!$.isActive&&P===null||!I&&!$.prevProp||co(I)||typeof I=="boolean")continue;if(_==="exit"&&$.isActive&&P!==!0){$.prevResolvedValues&&(g={...g,...$.prevResolvedValues});continue}let j=U$($.prevProp,I),M=j||_===c&&$.isActive&&!D&&w||k>x&&w,U=!1,V=Array.isArray(I)?I:[I],F=V.reduce(i(_),{});P===!1&&(F={});let{prevResolvedValues:Ge={}}=$,ve={...Ge,...F},$e=He=>{M=!0,m.has(He)&&(U=!0,m.delete(He)),$.needsAnimating[He]=!0;let ut=e.getValue(He);ut&&(ut.liveStyle=!1)};for(let He in ve){let ut=F[He],bt=Ge[He];if(g.hasOwnProperty(He))continue;let L=!1;bc(ut)&&bc(bt)?L=!_y(ut,bt):L=ut!==bt,L?ut!=null?$e(He):m.add(He):ut!==void 0&&m.has(He)?$e(He):$.protectedKeys[He]=!0}$.prevProp=I,$.prevResolvedValues=F,$.isActive&&(g={...g,...F}),(o||n)&&e.blockInitialAnimation&&(M=!1);let qe=D&&j;M&&(!qe||U)&&p.push(...V.map(He=>{let ut={type:_};if(typeof He=="string"&&(o||n)&&!qe&&e.manuallyAnimateOnMount&&e.parent){let{parent:bt}=e,L=Dr(bt,He);if(bt.enteringChildren&&L){let{delayChildren:re}=L.transition||{};ut.delay=qp(bt.enteringChildren,e,re)}}return{animation:He,options:ut}}))}if(m.size){let k={};if(typeof u.initial!="boolean"){let _=Dr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);_&&_.transition&&(k.transition=_.transition)}m.forEach(_=>{let $=e.getBaseTarget(_),I=e.getValue(_);I&&(I.liveStyle=!0),k[_]=$??null}),p.push({animation:k})}let y=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),o=!1,n=!1,y?t(p):Promise.resolve()}function l(c,u){if(r[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(p=>p.animationState?.setActive(c,u)),r[c].isActive=u;let d=s(c);for(let p in r)r[p].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:a,getState:()=>r,reset:()=>{r=j$(),n=!0}}}function U$(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_y(t,e):!1}function ca(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function j$(){return{animate:ca(!0),whileInView:ca(),whileHover:ca(),whileTap:ca(),whileDrag:ca(),whileFocus:ca(),exit:ca()}}function vm(e,t){e.min=t.min,e.max=t.max}function rn(e,t){vm(e.x,t.x),vm(e.y,t.y)}function Sy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var L$=1e-4,cF=1-L$,uF=1+L$,F$=.01,dF=0-F$,pF=0+F$;function Nt(e){return e.max-e.min}function Cy(e,t,r){return Math.abs(e-t)<=r}function $y(e,t,r,o=.5){e.origin=o,e.originPoint=Be(t.min,t.max,e.origin),e.scale=Nt(r)/Nt(t),e.translate=Be(r.min,r.max,e.origin)-e.originPoint,(e.scale>=cF&&e.scale<=uF||isNaN(e.scale))&&(e.scale=1),(e.translate>=dF&&e.translate<=pF||isNaN(e.translate))&&(e.translate=0)}function ua(e,t,r,o){$y(e.x,t.x,r.x,o?o.originX:void 0),$y(e.y,t.y,r.y,o?o.originY:void 0)}function Iy(e,t,r,o=0){let n=o?Be(r.min,r.max,o):r.min;e.min=n+t.min,e.max=e.min+Nt(t)}function Py(e,t,r,o){Iy(e.x,t.x,r.x,o?.x),Iy(e.y,t.y,r.y,o?.y)}function Ty(e,t,r,o=0){let n=o?Be(r.min,r.max,o):r.min;e.min=t.min-n,e.max=e.min+Nt(t)}
2function ps(e,t,r,o){Ty(e.x,t.x,r.x,o?.x),Ty(e.y,t.y,r.y,o?.y)}function B$(e,t,r,o,n){return e-=t,e=Pc(e,1/r,o),n!==void 0&&(e=Pc(e,1/n,o)),e}function mF(e,t=0,r=1,o=.5,n,i=e,a=e){if(Qt.test(t)&&(t=parseFloat(t),t=Be(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Be(i.min,i.max,o);e===i&&(s-=t),e.min=B$(e.min,t,r,s,n),e.max=B$(e.max,t,r,s,n)}function V$(e,t,[r,o,n],i,a){mF(e,t[r],t[o],t[n],t.scale,i,a)}var fF=["x","scaleX","originX"],hF=["y","scaleY","originY"];function Ey(e,t,r,o){V$(e.x,t,fF,r?r.x:void 0,o?o.x:void 0),V$(e.y,t,hF,r?r.y:void 0,o?o.y:void 0)}function Z$(e){return e.translate===0&&e.scale===1}function Ay(e){return Z$(e.x)&&Z$(e.y)}function G$(e,t){return e.min===t.min&&e.max===t.max}function H$(e,t){return G$(e.x,t.x)&&G$(e.y,t.y)}function q$(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zy(e,t){return q$(e.x,t.x)&&q$(e.y,t.y)}function Ny(e){return Nt(e.x)/Nt(e.y)}function Ry(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Or(e){return[e("x"),e("y")]}function W$(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:c,rotate:u,rotateX:d,rotateY:p,skewX:m,skewY:g}=r;c&&(o=`perspective(${c}px) ${o}`),u&&(o+=`rotate(${u}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 Y$=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],gF=Y$.length,J$=e=>typeof e=="string"?parseFloat(e):e,K$=e=>typeof e=="number"||le.test(e);function Q$(e,t,r,o,n,i){n?(e.opacity=Be(0,r.opacity??1,vF(o)),e.opacityExit=Be(t.opacity??1,0,yF(o))):i&&(e.opacity=Be(t.opacity??1,r.opacity??1,o));for(let a=0;a<gF;a++){let s=Y$[a],l=X$(t,s),c=X$(r,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||K$(l)===K$(c)?(e[s]=Math.max(Be(J$(l),J$(c),o),0),(Qt.test(c)||Qt.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||r.rotate)&&(e.rotate=Be(t.rotate||0,r.rotate||0,o))}function X$(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var vF=e7(0,.5,lc),yF=e7(.5,.95,wt);function e7(e,t,r){return o=>o<e?0:o>t?1:r(Pn(e,t,o))}function t7(e,t,r){let o=et(e)?e:vn(e);return o.start(ra("",o,t,r)),o.animation}function Mn(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}var r7=(e,t)=>e.depth-t.depth;var ym=class{constructor(){this.children=[],this.isDirty=!1}add(t){Xi(this.children,t),this.isDirty=!0}remove(t){Xo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(r7),this.isDirty=!1,this.children.forEach(t)}};function n7(e,t){let r=_t.now(),o=({timestamp:n})=>{let i=n-r;i>=t&&(kr(o),e(i-t))};return ze.setup(o,!0),()=>kr(o)}function da(e){return et(e)?e.get():e}var bm=class{constructor(){this.members=[]}add(t){Xi(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&&(Xo(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(Xo(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?.()})}
2scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var pa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ma={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},My=["","X","Y","Z"],bF=1e3,xF=0;function Dy(e,t,r,o){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),o&&(o[e]=0))}function p7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=Jp(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:n,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",ze,!(n||i))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&p7(o)}function xm({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(a={},s=t?.()){this.id=xF++,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,Mr.value&&(ma.nodes=ma.calculatedTargetDeltas=ma.calculatedProjections=0),this.nodes.forEach(kF),this.nodes.forEach(PF),this.nodes.forEach(EF),this.nodes.forEach(SF),Mr.addProjectionMetrics&&Mr.addProjectionMetrics(ma)},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 ym)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new io),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=ls(a)&&!x$(a),this.instance=a;let{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,d=0,p=()=>this.root.updateBlockedByResize=!1;ze.read(()=>{d=window.innerWidth}),e(a,()=>{let m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,u&&u(),u=n7(p,250),pa.hasAnimatedSinceResize&&(pa.hasAnimatedSinceResize=!1,this.nodes.forEach(a7)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:m})=>
2{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||c.getDefaultTransition()||MF,{onLayoutAnimationStart:x,onLayoutAnimationComplete:y}=c.getProps(),k=!this.targetLayout||!zy(this.targetLayout,m),_=!d&&p;if(this.options.layoutRoot||this.resumeFrom||_||d&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let $={...ns(g,"layout"),onPlay:x,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($),this.setAnimationOrigin(u,_)}else d||a7(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(),kr(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(AF),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&&p7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){let d=this.path[u];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 c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(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(IF),this.nodes.forEach(o7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(i7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(TF),this.nodes.forEach(CF),this.nodes.forEach(wF),this.nodes.forEach(_F)):this.nodes.forEach(i7),this.clearAllSnapshots();let s=_t.now();Tt.delta=jt(0,1e3/60,s-Tt.timestamp),Tt.timestamp=s,Tt.isProcessing=!0,mc.update.process(Tt),mc.preRender.process(Tt),mc.render.process(Tt),Tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ia.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($F),this.sharedNodes.forEach(zF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nt(this.snapshot.measuredBox.x)&&!Nt(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=gt()),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);
2this.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&&!Ay(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&this.instance&&(s||uo(this.latestValues)||u)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),DF(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return gt();let s=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(OF))){let{scroll:c}=this.root;c&&(tn(s.x,c.offset.x),tn(s.y,c.offset.y))}return s}removeElementScroll(a){let s=gt();if(rn(s,a),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&rn(s,a),tn(s.x,u.offset.x),tn(s.y,u.offset.y))}return s}applyTransform(a,s=!1,l){let c=l||gt();rn(c,a);for(let u=0;u<this.path.length;u++){let d=this.path[u];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(tn(c.x,-d.scroll.offset.x),tn(c.y,-d.scroll.offset.y)),uo(d.latestValues)&&Ec(c,d.latestValues,d.layout?.layoutBox)}return uo(this.latestValues)&&Ec(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(a){let s=gt();rn(s,a);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!uo(c.latestValues))continue;let u;c.instance&&(mm(c.latestValues)&&c.updateSnapshot(),u=gt(),rn(u,c.measurePageBox())),Ey(s,c.latestValues,c.snapshot?.layoutBox,u)}return uo(this.latestValues)&&Ey(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!==Tt.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:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=Tt.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=gt(),this.targetWithTransforms=gt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Py(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rn(this.target,this.layout.layoutBox),by(this.target,this.targetDelta)):rn(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),Mr.value&&ma.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||mm(this.parent.latestValues)||vy(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=gt(),this.relativeTargetOrigin=gt(),ps(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),rn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),s=!!this.resumingFrom||this!==a,l=!0;
2if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Tt.timestamp&&(l=!1),l)return;let{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;rn(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,p=this.treeScale.y;z$(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=gt());let{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sy(this.prevProjectionDelta.x,this.projectionDelta.x),Sy(this.prevProjectionDelta.y,this.projectionDelta.y)),ua(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!Ry(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ry(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Mr.value&&ma.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=ii(),this.projectionDelta=ii(),this.projectionDeltaWithTransform=ii()}setAnimationOrigin(a,s=!1){let l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=ii();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let p=gt(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,x=m!==g,y=this.getStack(),k=!y||y.members.length<=1,_=!!(x&&!k&&this.options.crossfade===!0&&!this.path.some(RF));this.animationProgress=0;let $;this.mixTargetDelta=I=>{let w=I/1e3;s7(d.x,a.x,w),s7(d.y,a.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ps(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),NF(this.relativeTarget,this.relativeTargetOrigin,p,w),$&&H$(this.relativeTarget,$)&&(this.isProjectionDirty=!1),$||($=gt()),rn($,this.relativeTarget)),x&&(this.animationValues=u,Q$(u,c,this.latestValues,w,_,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(kr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{pa.hasAnimatedSinceResize=!0,En.layout++,this.motionValue||(this.motionValue=vn(0)),this.motionValue.jump(0,!1),this.currentAnimation=t7(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onStop:()=>{En.layout--},onComplete:()=>{En.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(bF),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&m7(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||gt();let d=Nt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;let p=Nt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}rn(s,l),Ec(s,u),ua(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new bm),this.sharedNodes.get(a).add(s);let c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){let{layoutId:a}=this.options;
2return 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 c=this.getStack();c&&c.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 c={};l.z&&Dy("z",a,c,this.animationValues);for(let u=0;u<My.length;u++)Dy(`rotate${My[u]}`,a,c,this.animationValues),Dy(`skew${My[u]}`,a,c,this.animationValues);a.render();for(let u in c)a.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);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=da(s?.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=da(s?.pointerEvents)||""),this.hasProjected&&!uo(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";let u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=W$(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),a.transform=d;let{x:p,y:m}=this.projectionDelta;a.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,c.animationValues?a.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(let g in Ac){if(u[g]===void 0)continue;let{correct:x,applyTo:y,isCSSVariable:k}=Ac[g],_=d==="none"?u[g]:x(u[g],c);if(y){let $=y.length;for(let I=0;I<$;I++)a[y[I]]=_}else k?this.options.visualElement.renderState.vars[g]=_:a[g]=_}this.options.layoutId&&(a.pointerEvents=c===this?da(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(o7),this.root.sharedNodes.clear()}}}function wF(e){e.updateLayout()}function _F(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")Or(u=>{let d=i?t.measuredBox[u]:t.layoutBox[u],p=Nt(d);d.min=r[u].min,d.max=d.min+p});else if(n==="x"||n==="y"){let u=n==="x"?"y":"x";vm(i?t.measuredBox[u]:t.layoutBox[u],r[u])}else m7(n,t.layoutBox,r)&&Or(u=>{let d=i?t.measuredBox[u]:t.layoutBox[u],p=Nt(r[u]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+p)});let a=ii();ua(a,r,t.layoutBox);let s=ii();i?ua(s,e.applyTransform(o,!0),t.measuredBox):ua(s,r,t.layoutBox);let l=!Ay(a),c=!1;if(!e.resumeFrom){let u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){let{snapshot:d,layout:p}=u;if(d&&p){let m=e.options.layoutAnchor||void 0,g=gt();ps(g,t.layoutBox,d.layoutBox,m);let x=gt();ps(x,r,p.layoutBox,m),zy(g,x)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=g,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function kF(e){Mr.value&&ma.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 SF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $F(e){e.clearSnapshot()}function o7(e){e.clearMeasurements()}function IF(e){e.isLayoutDirty=!0,e.updateLayout()}function i7(e){e.isLayoutDirty=!1}function TF(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function CF(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function a7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function PF(e){e.resolveTargetDelta()}function EF(e){e.calcProjection()}
2function AF(e){e.resetSkewAndRotation()}function zF(e){e.removeLeadSnapshot()}function s7(e,t,r){e.translate=Be(t.translate,0,r),e.scale=Be(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function l7(e,t,r,o){e.min=Be(t.min,r.min,o),e.max=Be(t.max,r.max,o)}function NF(e,t,r,o){l7(e.x,t.x,r.x,o),l7(e.y,t.y,r.y,o)}function RF(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var MF={duration:.45,ease:[.4,0,.1,1]},c7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),u7=c7("applewebkit/")&&!c7("chrome/")?Math.round:wt;function d7(e){e.min=u7(e.min),e.max=u7(e.max)}function DF(e){d7(e.x),d7(e.y)}function m7(e,t,r){return e==="position"||e==="preserve-aspect"&&!Cy(Ny(t),Ny(r),.2)}function OF(e){return e!==e.root&&e.scroll?.wasRoot}var f7=xm({attachResizeListener:(e,t)=>Mn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var wm={current:void 0},jc=xm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wm.current){let e=new f7({});e.mount(window),e.setOptions({layoutScroll:!0}),wm.current=e}return wm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var _m=R(ne(),1),po=R(ne(),1);var h7=R(ne(),1),ms=(0,h7.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var v7=R(ne(),1);function g7(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jF(...e){return t=>{let r=!1,o=e.map(n=>{let i=g7(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():g7(e[n],null)}}}}function y7(...e){return v7.useCallback(jF(...e),e)}var Oy=class extends _m.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(oa(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let o=r.offsetParent,n=oa(o)&&o.offsetWidth||0,i=oa(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 x7({children:e,isPresent:t,anchorX:r,anchorY:o,root:n,pop:i}){let a=(0,po.useId)(),s=(0,po.useRef)(null),l=(0,po.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=(0,po.useContext)(ms),u=e.props?.ref??e?.ref,d=y7(s,u);return(0,po.useInsertionEffect)(()=>{let{width:p,height:m,top:g,left:x,right:y,bottom:k}=l.current;if(t||i===!1||!s.current||!p||!m)return;let _=r==="left"?`left: ${x}`:`right: ${y}`,$=o==="bottom"?`bottom: ${k}`:`top: ${g}`;s.current.dataset.motionPopId=a;let I=document.createElement("style");c&&(I.nonce=c);let w=n??document.head;return w.appendChild(I),I.sheet&&I.sheet.insertRule(` 3 [data-motion-pop-id="${a}"] { 4 position: absolute !important; 5 width: ${p}px !important; 6 height: ${m}px !important; 7 ${_}px !important; 8 ${$}px !important; 9 } 10 `),()=>{s.current?.removeAttribute("data-motion-pop-id"),w.contains(I)&&w.removeChild(I)}},[t]),(0,b7.jsx)(Oy,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:i===!1?e:_m.cloneElement(e,{ref:d})})}var _7=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:n,presenceAffectsLayout:i,mode:a,anchorX:s,anchorY:l,root:c})=>{let u=Wa(UF),d=(0,Uc.useId)(),p=!0,m=(0,Uc.useMemo)(()=>(p=!1,{id:d,initial:t,isPresent:r,custom:n,onExitComplete:g=>{u.set(g,!0);for(let x of u.values())if(!x)return;o&&o()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[r,u,o]);return i&&p&&(m={...m}),(0,Uc.useMemo)(()=>{u.forEach((g,x)=>u.set(x,!1))},[r]),w7.useEffect(()=>{!r&&!u.size&&o&&o()},[r]),e=(0,jy.jsx)(x7,{pop:a==="popLayout",isPresent:r,anchorX:s,anchorY:l,root:c,children:e}),(0,jy.jsx)(Ko.Provider,{value:m,children:e})};function UF(){return new Map}var si=R(ne(),1);function km(e=!0){let t=(0,si.useContext)(Ko);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:o,register:n}=t,i=(0,si.useId)();(0,si.useEffect)(()=>
10{if(e)return n(i)},[e]);let a=(0,si.useCallback)(()=>e&&o&&o(i),[i,o,e]);return!r&&o?[!1,a]:[!0]}var Sm=R(ne(),1),Lc=e=>e.key||"";function Uy(e){let t=[];return Sm.Children.forEach(e,r=>{(0,Sm.isValidElement)(r)&&t.push(r)}),t}var Ly=({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:c})=>{let[u,d]=km(a),p=(0,yn.useMemo)(()=>Uy(e),[e]),m=a&&!u?[]:p.map(Lc),g=(0,yn.useRef)(!0),x=(0,yn.useRef)(p),y=Wa(()=>new Map),k=(0,yn.useRef)(new Set),[_,$]=(0,yn.useState)(p),[I,w]=(0,yn.useState)(p);wp(()=>{g.current=!1,x.current=p;for(let j=0;j<I.length;j++){let M=Lc(I[j]);m.includes(M)?(y.delete(M),k.current.delete(M)):y.get(M)!==!0&&y.set(M,!1)}},[I,m.length,m.join("-")]);let P=[];if(p!==_){let j=[...p];for(let M=0;M<I.length;M++){let U=I[M],V=Lc(U);m.includes(V)||(j.splice(M,0,U),P.push(U))}return i==="wait"&&P.length&&(j=P),w(Uy(j)),$(p),null}let{forceRender:D}=(0,yn.useContext)(Ha);return(0,Fc.jsx)(Fc.Fragment,{children:I.map(j=>{let M=Lc(j),U=a&&!u?!1:p===I||m.includes(M),V=()=>{if(k.current.has(M))return;if(y.has(M))k.current.add(M),y.set(M,!0);else return;let F=!0;y.forEach(Ge=>{Ge||(F=!1)}),F&&(D?.(),w(x.current),a&&d?.(),o&&o())};return(0,Fc.jsx)(_7,{isPresent:U,initial:!g.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:i,root:c,onExitComplete:U?void 0:V,anchorX:s,anchorY:l,children:j},M)})})};var k7=R(ne(),1),$m=(0,k7.createContext)({strict:!1});var S7={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"]},$7=!1;function LF(){if($7)return;let e={};for(let t in S7)e[t]={isEnabled:r=>S7[t].some(o=>!!r[o])};Tc(e),$7=!0}function Im(){return LF(),my()}function I7(e){let t=Im();for(let r in e)t[r]={...t[r],...e[r]};Tc(t)}var FF=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 Bc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||FF.has(e)}var T7=e=>!Bc(e);function BF(e){typeof e=="function"&&(T7=t=>t.startsWith("on")?!Bc(t):e(t))}try{BF(k5("@emotion/is-prop-valid").default)}catch{}function C7(e,t,r){let o={};for(let n in e)n==="values"&&typeof e.values=="object"||et(e[n])||(T7(n)||r===!0&&Bc(n)||!t&&!Bc(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}var Am=R(q(),1);var vs=R(ne(),1);var P7=R(ne(),1),li=(0,P7.createContext)({});var Tm=R(ne(),1);function E7(e,t){if(ai(e)){let{initial:r,animate:o}=e;return{initial:r===!1||Rn(r)?r:void 0,animate:Rn(o)?o:void 0}}return e.inherit!==!1?t:{}}function z7(e){let{initial:t,animate:r}=E7(e,(0,Tm.useContext)(li));return(0,Tm.useMemo)(()=>({initial:t,animate:r}),[A7(t),A7(r)])}function A7(e){return Array.isArray(e)?e.join(" "):e}var gs=R(ne(),1);var N7=R(ne(),1);var fs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fy(e,t,r){for(let o in t)!et(t[o])&&!zc(o,r)&&(e[o]=t[o])}function VF({transformTemplate:e},t){return(0,N7.useMemo)(()=>{let r=fs();return sa(r,t,e),Object.assign({},r.vars,r.style)},[t])}function ZF(e,t){let r=e.style||{},o={};return Fy(o,r,e),Object.assign(o,VF(e,t)),o}function R7(e,t){let r={},o=ZF(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"}
10`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}var M7=R(ne(),1);var Cm=()=>({...fs(),attrs:{}});function D7(e,t,r,o){let n=(0,M7.useMemo)(()=>{let i=Cm();return Rc(i,t,Mc(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};Fy(i,e.style,e),n.style={...i,...n.style}}return n}var O7=["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 hs(e){return typeof e!="string"||e.includes("-")?!1:!!(O7.indexOf(e)>-1||/[A-Z]/u.test(e))}function j7(e,t,r,{latestValues:o},n,i=!1,a){let l=(a??hs(e)?D7:R7)(t,o,n,e),c=C7(t,typeof e=="string",i),u=e!==gs.Fragment?{...c,...l,ref:r}:{},{children:d}=t,p=(0,gs.useMemo)(()=>et(d)?d.get():d,[d]);return(0,gs.createElement)(e,{...u,children:p})}var By=R(ne(),1);function GF({scrapeMotionValuesFromProps:e,createRenderState:t},r,o,n){return{latestValues:qF(r,o,n,e),renderState:t()}}function qF(e,t,r,o){let n={},i=o(e,{});for(let p in i)n[p]=da(i[p]);let{initial:a,animate:s}=e,l=ai(e),c=Sc(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;let d=u?s:a;if(d&&typeof d!="boolean"&&!co(d)){let p=Array.isArray(d)?d:[d];for(let m=0;m<p.length;m++){let g=na(e,p[m]);if(g){let{transitionEnd:x,transition:y,...k}=g;for(let _ in k){let $=k[_];if(Array.isArray($)){let I=u?$.length-1:0;$=$[I]}$!==null&&(n[_]=$)}for(let _ in x)n[_]=x[_]}}}return n}var Pm=e=>(t,r)=>{let o=(0,By.useContext)(li),n=(0,By.useContext)(Ko),i=()=>GF(e,t,o,n);return r?i():Wa(i)};var U7=Pm({scrapeMotionValuesFromProps:la,createRenderState:fs});var L7=Pm({scrapeMotionValuesFromProps:Dc,createRenderState:Cm});var F7=Symbol.for("motionComponentSymbol");var fa=R(ne(),1);function B7(e,t,r){let o=(0,fa.useRef)(r);(0,fa.useInsertionEffect)(()=>{o.current=r});let n=(0,fa.useRef)(null);return(0,fa.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 lr=R(ne(),1);var V7=R(ne(),1),Em=(0,V7.createContext)({});function ci(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Z7(e,t,r,o,n,i){let{visualElement:a}=(0,lr.useContext)(li),s=(0,lr.useContext)($m),l=(0,lr.useContext)(Ko),c=(0,lr.useContext)(ms),u=c.reducedMotion,d=c.skipAnimations,p=(0,lr.useRef)(null),m=(0,lr.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:u,skipAnimations:d,isSVG:i}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let g=p.current,x=(0,lr.useContext)(Em);g&&!g.projection&&n&&(g.type==="html"||g.type==="svg")&&HF(p.current,r,n,x);let y=(0,lr.useRef)(!1);(0,lr.useInsertionEffect)(()=>{g&&y.current&&g.update(r,l)});let k=r[xc],_=(0,lr.useRef)(!!k&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(k)&&window.MotionHasOptimisedAnimation?.(k));return wp(()=>{m.current=!0,g&&(y.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),_.current&&g.animationState&&g.animationState.animateChanges())}),(0,lr.useEffect)(()=>{g&&(!_.current&&g.animationState&&g.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(k)}),_.current=!1),g.enteringChildren=void 0)}),g}function HF(e,t,r,o){let{layoutId:n,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:G7(e.parent)),e.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!a||s&&ci(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function G7(e){if(e)return e.options.allowProjection!==!1?e.projection:G7(e.parent)}function zm(e,{forwardMotionProps:t=!1,type:r}={},o,n){o&&I7(o);let i=r?r==="svg":hs(e),a=i?L7:U7;function s(c,u){let d,p={...(0,vs.useContext)(ms),...c,layoutId:WF(c)},{isStatic:m}=p,g=z7(c),x=a(c,m);if(!m&&typeof window<"u"){JF(p,o);let y=KF(p);d=y.MeasureLayout,g.visualElement=Z7(e,x,p,n,y.ProjectionNode,i)}return(0,Am.jsxs)(li.Provider,{value:g,children:[d&&g.visualElement?(0,Am.jsx)(d,{visualElement:g.visualElement,...p}):null,j7(e,c,B7(x,g.visualElement,u),x,m,t,i)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,vs.forwardRef)(s);return l[F7]=e,l}function WF({layoutId:e}){let t=(0,vs.useContext)(Ha).id;return t&&e!==void 0?t+"-"+e:e}function JF(e,t){let r=(0,vs.useContext)($m).strict}function KF(e){let t=Im(),{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}}
10function q7(e,t){if(typeof Proxy>"u")return zm;let r=new Map,o=(i,a)=>zm(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,zm(a,void 0,e,t)),r.get(a))})}var H7=R(ne(),1);var W7=(e,t)=>t.isSVG??hs(e)?new Oc(t):new Nc(t,{allowProjection:e!==H7.Fragment});var Nm=class extends Lt{constructor(t){super(t),t.animationState||(t.animationState=ky(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();co(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 XF=0,Rm=class extends Lt{constructor(){super(...arguments),this.id=XF++,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=Dr(this.node,i,a);if(s){let{transition:l,transitionEnd:c,...u}=s;for(let d in u)this.node.getValue(d)?.jump(u[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 J7={animation:{Feature:Nm},exit:{Feature:Rm}};function mo(e){return{point:{x:e.pageX,y:e.pageY}}}var K7=e=>t=>aa(t)&&e(t,mo(t));function ui(e,t,r,o){return Mn(e,t,K7(r),o)}var Mm=({current:e})=>e?e.ownerDocument.defaultView:null;var X7=(e,t)=>Math.abs(e-t);function Y7(e,t){let r=X7(e.x,t.x),o=X7(e.y,t.y);return Math.sqrt(r**2+o**2)}var Q7=new Set(["auto","scroll"]),ys=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=Dm(this.lastRawMoveEventInfo,this.transformPagePoint));let m=Vy(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,x=Y7(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!x)return;let{point:y}=m,{timestamp:k}=Tt;this.history.push({...y,timestamp:k});let{onStart:_,onMove:$}=this.handlers;g||(_&&_(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=Dm(g,this.transformPagePoint),ze.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();let{onEnd:x,onSessionEnd:y,resumeAnimation:k}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let _=Vy(m.type==="pointercancel"?this.lastMoveEventInfo:Dm(g,this.transformPagePoint),this.history);this.startEvent&&x&&x(m,_),y&&y(m,_)},!aa(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=n||window;let l=mo(t),c=Dm(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=Tt;this.history=[{...u,timestamp:d}];let{onSessionStart:p}=r;p&&p(t,Vy(c,this.history)),this.removeListeners=hn(ui(this.contextWindow,"pointermove",this.handlePointerMove),ui(this.contextWindow,"pointerup",this.handlePointerUp),ui(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let r=t.parentElement;for(;r;){let o=getComputedStyle(r);(Q7.has(o.overflowX)||Q7.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),ze.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),kr(this.updatePoint)}};function Dm(e,t){return t?{point:t(e.point)}:e}function eI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Vy({point:e},t){return{point:e,delta:eI(e,tI(t)),offset:eI(e,YF(t)),velocity:QF(t,.1)}}function YF(e){return e[0]}function tI(e){return e[e.length-1]}function QF(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null,n=tI(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>Et(t)));)r--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&n.timestamp-o.timestamp>Et(t)*2&&(o=e[1]);let i=qt(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 aI(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?Be(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?Be(r,e,o.max):Math.min(e,r)),e}function rI(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 sI(e,{top:t,left:r,bottom:o,right:n}){return{x:rI(e.x,r,n),y:rI(e.y,t,o)}}function nI(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}}
10function lI(e,t){return{x:nI(e.x,t.x),y:nI(e.y,t.y)}}function cI(e,t){let r=.5,o=Nt(e),n=Nt(t);return n>o?r=Pn(t.min,t.max-o,e.min):o>n&&(r=Pn(e.min,e.max-n,t.min)),jt(0,1,r)}function uI(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 Om=.35;function dI(e=Om){return e===!1?e=0:e===!0&&(e=Om),{x:oI(e,"left","right"),y:oI(e,"top","bottom")}}function oI(e,t,r){return{min:iI(e,t),max:iI(e,r)}}function iI(e,t){return typeof e=="number"?e:e[t]||0}var eB=new WeakMap,Um=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=gt(),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(mo(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=oy(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),Or(k=>{let _=this.getAxisMotionValue(k).get()||0;if(Qt.test(_)){let{projection:$}=this.visualElement;if($&&$.layout){let I=$.layout.layoutBox[k];I&&(_=Nt(I)*(parseFloat(_)/100))}}this.originPoint[k]=_}),x&&ze.update(()=>x(d,p),!1,!0),os(this.visualElement,"transform");let{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p;let{dragPropagation:m,dragDirectionLock:g,onDirectionLock:x,onDrag:y}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:k}=p;if(g&&this.currentDirection===null){this.currentDirection=rB(k),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",p.point,k),this.updateAxis("y",p.point,k),this.visualElement.render(),y&&ze.update(()=>y(d,p),!1,!0)},l=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p,this.stop(d,p),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ys(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:o,contextWindow:Mm(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&&ze.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||!jm(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=aI(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&&ci(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=sI(o.layoutBox,t):this.constraints=!1,this.elastic=dI(r),n!==this.constraints&&!ci(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&Or(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=uI(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!ci(t))return!1;let o=t.current;Yr(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=xy(o,n.root,this.visualElement.getTransformPagePoint()),a=lI(n.layout.layoutBox,i);
10if(r){let s=r(fy(a));this.hasMutatedConstraints=!!s,s&&(a=Cc(s))}return a}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Or(u=>{if(!jm(u,r,this.currentDirection))return;let d=l&&l[u]||{};(a===!0||a===u)&&(d={min:0,max:0});let p=n?200:1e6,m=n?40:1e7,g={type:"inertia",velocity:o?t[u]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return os(this.visualElement,t),o.start(ra(t,o,0,r,this.visualElement,!1))}stopAnimation(){Or(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){Or(r=>{let{drag:o}=this.getProps();if(!jm(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]-Be(a,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!ci(r)||!o||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Or(a=>{let s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){let l=s.get();n[a]=cI({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(),Or(a=>{if(!jm(a,t,null))return;let s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(Be(l,c,n[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;eB.set(this.visualElement,this);let t=this.visualElement.current,r=ui(t,"pointerdown",c=>{let{drag:u,dragListener:d=!0}=this.getProps(),p=c.target,m=p!==t&&ly(p);u&&d&&!m&&this.start(c)}),o,n=()=>{let{dragConstraints:c}=this.getProps();ci(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),o||(o=tB(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ze.read(n);let s=Mn(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Or(d=>{let p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=c[d].translate,p.set(p.get()+c[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=Om,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:o,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:s}}};function pI(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function tB(e,t,r){let o=cm(e,pI(r)),n=cm(t,pI(r));return()=>{o(),n()}}function jm(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function rB(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var Lm=class extends Lt{constructor(t){super(t),this.removeGroupControls=wt,this.removeListeners=wt,this.controls=new Um(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||wt}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 Zy=e=>(t,r)=>{e&&ze.update(()=>e(t,r),!1,!0)},Fm=class extends Lt{constructor(){super(...arguments),this.removePointerDownListener=wt}onPointerDown(t){this.session=new ys(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Mm(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:n}=this.node.getProps();return{onSessionStart:Zy(t),onStart:Zy(r),onMove:Zy(o),onEnd:(i,a)=>{delete this.session,n&&ze.postRender(()=>n(i,a))}}}mount(){this.removePointerDownListener=ui(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 mI=R(q(),1);var Vc=R(ne(),1);var Gy=!1,qy=class extends Vc.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),Gy&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),pa.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}
10),Gy=!0,n||t.layoutDependency!==r||r===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||ze.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(),ia.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:n}=t;Gy=!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 Bm(e){let[t,r]=km(),o=(0,Vc.useContext)(Ha);return(0,mI.jsx)(qy,{...e,layoutGroup:o,switchLayoutGroup:(0,Vc.useContext)(Em),isPresent:t,safeToRemove:r})}var fI={pan:{Feature:Fm},drag:{Feature:Lm,ProjectionNode:jc,MeasureLayout:Bm}};function hI(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&&ze.postRender(()=>i(t,mo(t)))}var Vm=class extends Lt{mount(){let{current:t}=this.node;t&&(this.unmount=iy(t,(r,o)=>(hI(this.node,o,"Start"),n=>hI(this.node,n,"End"))))}unmount(){}};var Zm=class extends Lt{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=hn(Mn(this.node.current,"focus",()=>this.onFocus()),Mn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function gI(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&&ze.postRender(()=>i(t,mo(t)))}var Gm=class extends Lt{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:r,propagate:o}=this.node.props;this.unmount=uy(t,(n,i)=>(gI(this.node,i,"Start"),(a,{success:s})=>gI(this.node,a,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:o?.tap===!1})}unmount(){}};var Wy=new WeakMap,Hy=new WeakMap,nB=e=>{let t=Wy.get(e.target);t&&t(e)},oB=e=>{e.forEach(nB)};function iB({root:e,...t}){let r=e||document;Hy.has(r)||Hy.set(r,{});let o=Hy.get(r),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(oB,{root:e,...t})),o[n]}function vI(e,t,r){let o=iB(t);return Wy.set(e,r),o.observe(e),()=>{Wy.delete(e),o.unobserve(e)}}var aB={some:0,all:1},qm=class extends Lt{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:aB[n]},s=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),p=c?u:d;p&&p(l)};this.stopObserver=vI(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(sB(t,r))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function sB({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var yI={inView:{Feature:qm},tap:{Feature:Gm},focus:{Feature:Zm},hover:{Feature:Vm}};var bI={layout:{ProjectionNode:jc,MeasureLayout:Bm}};var xI={...J7,...yI,...fI,...bI};var Jy=q7(xI,W7);var ixe=R(ne());var lB=e=>{let t=uB(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{let s=a.split("-");return s[0]===""&&s.length!==1&&s.shift(),kI(s,t)||cB(a)},getConflictingClassGroupIds:(a,s)=>{let l=r[a]||[];return s&&o[a]?[...l,...o[a]]:l}}},kI=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?kI(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join("-");return t.validators.find(({validator:a})=>a(i))?.classGroupId},wI=/^\[(.+)\]$/,cB=e=>{if(wI.test(e)){let t=wI.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},uB=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return pB(Object.entries(e.classGroups),r).forEach(([i,a])=>{Xy(a,o,i,t)}),o},Xy=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:_I(t,n);i.classGroupId=r;return}if(typeof n=="function"){if(dB(n)){Xy(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}
vendor: 4,783 bytes, line 10
10Object.entries(n).forEach(([i,a])=>{Xy(a,_I(t,i),r,o)})})},_I=(e,t)=>{let r=e;return t.split("-").forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},dB=e=>e.isThemeGetter,pB=(e,t)=>t?e.map(([r,o])=>{let n=o.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[t+a,s])):i);return[r,n]}):e,mB=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,n=(i,a)=>{r.set(i,a),t++,t>e&&(t=0,o=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=o.get(i))!==void 0)return n(i,a),a},set(i,a){r.has(i)?r.set(i,a):n(i,a)}}};var fB=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],i=t.length,a=s=>{let l=[],c=0,u=0,d;for(let y=0;y<s.length;y++){let k=s[y];if(c===0){if(k===n&&(o||s.slice(y,y+i)===t)){l.push(s.slice(u,y)),u=y+i;continue}if(k==="/"){d=y;continue}}k==="["?c++:k==="]"&&c--}let p=l.length===0?s:s.substring(u),m=p.startsWith("!"),g=m?p.substring(1):p,x=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:x}};return r?s=>r({className:s,parseClassName:a}):a},hB=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},gB=e=>({cache:mB(e.cacheSize),parseClassName:fB(e),...lB(e)}),vB=/\s+/,yB=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,i=[],a=e.trim().split(vB),s="";for(let l=a.length-1;l>=0;l-=1){let c=a[l],{modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:m}=r(c),g=!!m,x=o(g?p.substring(0,m):p);if(!x){if(!g){s=c+(s.length>0?" "+s:s);continue}if(x=o(p),!x){s=c+(s.length>0?" "+s:s);continue}g=!1}let y=hB(u).join(":"),k=d?y+"!":y,_=k+x;if(i.includes(_))continue;i.push(_);let $=n(x,g);for(let I=0;I<$.length;++I){let w=$[I];i.push(k+w)}s=c+(s.length>0?" "+s:s)}return s};function bB(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=SI(t))&&(o&&(o+=" "),o+=r);return o}var SI=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=SI(e[o]))&&(r&&(r+=" "),r+=t);return r};function xB(e,...t){let r,o,n,i=a;function a(l){let c=t.reduce((u,d)=>d(u),e());return r=gB(c),o=r.cache.get,n=r.cache.set,i=s,s(l)}function s(l){let c=o(l);if(c)return c;let u=yB(l,r);return n(l,u),u}return function(){return i(bB.apply(null,arguments))}}var pt=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},$I=/^\[(?:([a-z-]+):)?(.+)\]$/i,wB=/^\d+\/\d+$/,_B=new Set(["px","full","screen"]),kB=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,SB=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$B=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,IB=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,TB=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fo=e=>bs(e)||_B.has(e)||wB.test(e),di=e=>xs(e,"length",MB),bs=e=>!!e&&!Number.isNaN(Number(e)),Ky=e=>xs(e,"number",bs),Zc=e=>!!e&&Number.isInteger(Number(e)),CB=e=>e.endsWith("%")&&bs(e.slice(0,-1)),Me=e=>$I.test(e),pi=e=>kB.test(e),PB=new Set(["length","size","percentage"]),EB=e=>xs(e,PB,II),AB=e=>xs(e,"position",II),zB=new Set(["image","url"]),NB=e=>xs(e,zB,OB),RB=e=>xs(e,"",DB),Gc=()=>!0,xs=(e,t,r)=>{let o=$I.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},MB=e=>SB.test(e)&&!$B.test(e),II=()=>!1,DB=e=>IB.test(e),OB=e=>TB.test(e);var jB=()=>{let e=pt("colors"),t=pt("spacing"),r=pt("blur"),o=pt("brightness"),n=pt("borderColor"),i=pt("borderRadius"),a=pt("borderSpacing"),s=pt("borderWidth"),l=pt("contrast"),c=pt("grayscale"),u=pt("hueRotate"),d=pt("invert"),p=pt("gap"),m=pt("gradientColorStops"),g=pt("gradientColorStopPositions"),x=pt("inset"),y=pt("margin"),k=pt("opacity"),_=pt("padding"),$=pt("saturate"),I=pt("scale"),w=pt("sepia"),P=pt("skew"),D=pt("space"),j=pt("translate"),M=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",Me,t],F=()=>[Me,t],Ge=()=>["",fo,di],ve=()=>["auto",bs,Me],$e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],qe=()=>["solid","dashed","dotted","double","none"],ar=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],He=()=>["start","end","center","between","around","evenly","stretch"],ut=()=>["","0",Me],bt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[bs,Me];return{cacheSize:500,separator:":",theme:{colors:[Gc],spacing:[fo,di],blur:["none","",pi,Me],brightness:L(),borderColor:[e],borderRadius:["n
10one","","full",pi,Me],borderSpacing:F(),borderWidth:Ge(),contrast:L(),grayscale:ut(),hueRotate:L(),invert:ut(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[CB,di],inset:V(),margin:V(),opacity:L(),padding:F(),saturate:L(),scale:L(),sepia:ut(),skew:L(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",Me]}],container:["container"],columns:[{columns:[pi]}],"break-after":[{"break-after":bt()}],"break-before":[{"break-before":bt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$e(),Me]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zc,Me]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Me]}],grow:[{grow:ut()}],shrink:[{shrink:ut()}],order:[{order:["first","last","none",Zc,Me]}],"grid-cols":[{"grid-cols":[Gc]}],"col-start-end":[{col:["auto",{span:["full",Zc,Me]},Me]}],"col-start":[{"col-start":ve()}],"col-end":[{"col-end":ve()}],"grid-rows":[{"grid-rows":[Gc]}],"row-start-end":[{row:["auto",{span:[Zc,Me]},Me]}],"row-start":[{"row-start":ve()}],"row-end":[{"row-end":ve()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Me]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...He()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...He(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...He(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Me,t]}],"min-w":[{"min-w":[Me,t,"min","max","fit"]}],"max-w":[{"max-w":[Me,t,"none","full","min","max","fit","prose",{screen:[pi]},pi]}],h:[{h:[Me,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Me,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Me,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Me,t,"auto","min","max","fit"]}],"font-size":[{text:["base",pi,di]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ky]}],"font-family":[{font:[Gc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Me]}],"line-clamp":[{"line-clamp":["none",bs,Ky]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fo,Me]}],"list-image":[{"list-image":["none",Me]}],"list-style-type":[{list:["none","disc","decimal",Me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fo,di]}],"underline-offset":[{"underline-offset":["auto",fo,Me]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$e(),AB]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",EB]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},NB]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}
vendor: 5,186 bytes, line 10
10],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...qe(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:qe()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...qe()]}],"outline-offset":[{"outline-offset":[fo,Me]}],"outline-w":[{outline:[fo,di]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[fo,di]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",pi,RB]}],"shadow-color":[{shadow:[Gc]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...ar(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ar()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",pi,Me]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[$]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Me]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",Me]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",Me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[Zc,Me]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Me]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Me]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
10],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Me]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[fo,di,Ky]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var TI=xB(jB);function ce(...e){return TI(gp(e))}var CI=R(q());function ho({className:e,...t}){return(0,CI.jsx)("div",{"data-slot":"card",className:ce("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}var qc=R(ne());var Yy=R(q());var cxe=qc.createContext(null);var PI=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,EI=gp,bn=(e,t)=>r=>{var o;if(t?.variants==null)return EI(e,r?.class,r?.className);let{variants:n,defaultVariants:i}=t,a=Object.keys(n).map(c=>{let u=r?.[c],d=i?.[c];if(u===null)return null;let p=PI(u)||PI(d);return n[c][p]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((c,u)=>{let{class:d,className:p,...m}=u;return Object.entries(m).every(g=>{let[x,y]=g;return Array.isArray(y)?y.includes({...i,...s}[x]):{...i,...s}[x]===y})?[...c,d,p]:c},[]);return EI(e,a,l,r?.class,r?.className)};var UB=R(q());var hxe=bn("flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});var LB=R(q());var AI=R(q());var Sxe=R(ne());var Ft=R(ne(),1);var NI=R(ne(),1);function zI(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qy(...e){return t=>{let r=!1,o=e.map(n=>{let i=zI(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():zI(e[n],null)}}}}function go(...e){return NI.useCallback(Qy(...e),e)}var Hm=R(q(),1);function eb(e){let t=FB(e),r=Ft.forwardRef((o,n)=>{let{children:i,...a}=o,s=Ft.Children.toArray(i),l=s.find(VB);if(l){let c=l.props.children,u=s.map(d=>d===l?Ft.Children.count(c)>1?Ft.Children.only(null):Ft.isValidElement(c)?c.props.children:null:d);return(0,Hm.jsx)(t,{...a,ref:n,children:Ft.isValidElement(c)?Ft.cloneElement(c,void 0,u):null})}return(0,Hm.jsx)(t,{...a,ref:n,children:i})});return r.displayName=`${e}.Slot`,r}var RI=eb("Slot");function FB(e){let t=Ft.forwardRef((r,o)=>{let{children:n,...i}=r;if(Ft.isValidElement(n)){let a=GB(n),s=ZB(i,n.props);return n.type!==Ft.Fragment&&(s.ref=o?Qy(o,a):a),Ft.cloneElement(n,s)}return Ft.Children.count(n)>1?Ft.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var BB=Symbol("radix.slottable");
10function VB(e){return Ft.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===BB}function ZB(e,t){let r={...t};for(let o in t){let n=e[o],i=t[o];/^on[A-Z]/.test(o)?n&&i?r[o]=(...s)=>{let l=i(...s);return n(...s),l}:n&&(r[o]=n):o==="style"?r[o]={...n,...i}:o==="className"&&(r[o]=[n,i].filter(Boolean).join(" "))}return{...e,...r}}function GB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qB=R(q()),Txe=bn("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});var MI=R(q());var LI=R(q());var iT=R(ne());var Gxe=R(ne());var FI=R(q()),KB=bn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ht({className:e,variant:t,size:r,asChild:o=!1,...n}){return(0,FI.jsx)(o?RI:"button",{"data-slot":"button",className:ce(KB({variant:t,size:r,className:e})),...n})}var s4e=R(ne());var Kxe=!!(typeof window<"u"&&window.document&&window.document.createElement);function mi(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var vo=R(ne(),1),BI=R(q(),1);function VI(e,t=[]){let r=[];function o(i,a){let s=vo.createContext(a),l=r.length;r=[...r,a];let c=d=>{let{scope:p,children:m,...g}=d,x=p?.[e]?.[l]||s,y=vo.useMemo(()=>g,Object.values(g));return(0,BI.jsx)(x.Provider,{value:y,children:m})};c.displayName=i+"Provider";function u(d,p){let m=p?.[e]?.[l]||s,g=vo.useContext(m);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}let n=()=>{let i=r.map(a=>vo.createContext(a));return function(s){let l=s?.[e]||i;return vo.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[o,XB(n,...t)]}function XB(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){let a=o.reduce((s,{useScope:l,scopeName:c}
10)=>{let d=l(i)[`__scope${c}`];return{...s,...d}},{});return vo.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var ZI=R(ne(),1),Wc=globalThis?.document?ZI.useLayoutEffect:()=>{};var GI=R(ne(),1),YB=R(IU(),1);var qI=R(q(),1),QB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_s=QB.reduce((e,t)=>{let r=eb(`Primitive.${t}`),o=GI.forwardRef((n,i)=>{let{asChild:a,...s}=n,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,qI.jsx)(l,{...s,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var Jm=R(ne(),1),eV=R(q(),1),tV=Jm.createContext(void 0);function HI(e){let t=Jm.useContext(tV);return e||t||"ltr"}var ks=R(ne(),1);function fi(e){let t=ks.useRef(e);return ks.useEffect(()=>{t.current=e}),ks.useMemo(()=>(...r)=>t.current?.(...r),[])}var Sr=R(ne(),1);var WI=R(ne(),1);function rV(e,t){return WI.useReducer((r,o)=>t[r][o]??r,e)}var Ss=e=>{let{present:t,children:r}=e,o=nV(t),n=typeof r=="function"?r({present:o.isPresent}):Sr.Children.only(r),i=go(o.ref,oV(n));return typeof r=="function"||o.isPresent?Sr.cloneElement(n,{ref:i}):null};Ss.displayName="Presence";function nV(e){let[t,r]=Sr.useState(),o=Sr.useRef(null),n=Sr.useRef(e),i=Sr.useRef("none"),a=e?"mounted":"unmounted",[s,l]=rV(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Sr.useEffect(()=>{let c=Km(o.current);i.current=s==="mounted"?c:"none"},[s]),Wc(()=>{let c=o.current,u=n.current;if(u!==e){let p=i.current,m=Km(c);e?l("MOUNT"):m==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),Wc(()=>{if(t){let c,u=t.ownerDocument.defaultView??window,d=m=>{let x=Km(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&x&&(l("ANIMATION_END"),!n.current)){let y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=m=>{m.target===t&&(i.current=Km(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Sr.useCallback(c=>{o.current=c?getComputedStyle(c):null,r(c)},[])}}function Km(e){return e?.animationName||"none"}function oV(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var JI=R(q());var KI=R(ne());var XI=R(q()),Xm=KI.forwardRef(({className:e,type:t,...r},o)=>(0,XI.jsx)("input",{ref:o,type:t,"data-slot":"input",className:ce("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r}));Xm.displayName="Input";var m4e=R(ne());function YI(e,[t,r]){return Math.min(r,Math.max(t,e))}var QI=R(q());var g4e=R(ne());var iV=R(q());var aT=R(q());var nf=R(ne());var F4e=R(ne());var he=R(ne(),1);var lT=R(ne(),1),We=R(q(),1);function vV(e,t){return lT.useReducer((r,o)=>t[r][o]??r,e)}var rb="ScrollArea",[cT,L4e]=VI(rb),[yV,nn]=cT(rb),uT=he.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:o="hover",dir:n,scrollHideDelay:i=600,...a}=e,[s,l]=he.useState(null),[c,u]=he.useState(null),[d,p]=he.useState(null),[m,g]=he.useState(null),[x,y]=he.useState(null),[k,_]=he.useState(0),[$,I]=he.useState(0),[w,P]=he.useState(!1),[D,j]=he.useState(!1),M=go(t,V=>l(V)),U=HI(n);return(0,We.jsx)(yV,{scope:r,type:o,dir:U,scrollHideDelay:i,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:m,onScrollbarXChange:g,scrollbarXEnabled:w,onScrollbarXEnabledChange:P,scrollbarY:x,onScrollbarYChange:y,scrollbarYEnabled:D,onScrollbarYEnabledChange:j,onCornerWidthChange:_,onCornerHeight
vendor: 8,290 bytes, line 10
10Change:I,children:(0,We.jsx)(_s.div,{dir:U,...a,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":k+"px","--radix-scroll-area-corner-height":$+"px",...e.style}})})});uT.displayName=rb;var dT="ScrollAreaViewport",pT=he.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:n,...i}=e,a=nn(dT,r),s=he.useRef(null),l=go(t,s,a.onViewportChange);return(0,We.jsxs)(We.Fragment,{children:[(0,We.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,We.jsx)(_s.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,We.jsx)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});pT.displayName=dT;var Dn="ScrollAreaScrollbar",nb=he.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=nn(Dn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=n,s=e.orientation==="horizontal";return he.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),n.type==="hover"?(0,We.jsx)(bV,{...o,ref:t,forceMount:r}):n.type==="scroll"?(0,We.jsx)(xV,{...o,ref:t,forceMount:r}):n.type==="auto"?(0,We.jsx)(mT,{...o,ref:t,forceMount:r}):n.type==="always"?(0,We.jsx)(ob,{...o,ref:t}):null});nb.displayName=Dn;var bV=he.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=nn(Dn,e.__scopeScrollArea),[i,a]=he.useState(!1);return he.useEffect(()=>{let s=n.scrollArea,l=0;if(s){let c=()=>{window.clearTimeout(l),a(!0)},u=()=>{l=window.setTimeout(()=>a(!1),n.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[n.scrollArea,n.scrollHideDelay]),(0,We.jsx)(Ss,{present:r||i,children:(0,We.jsx)(mT,{"data-state":i?"visible":"hidden",...o,ref:t})})}),xV=he.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=nn(Dn,e.__scopeScrollArea),i=e.orientation==="horizontal",a=tf(()=>l("SCROLL_END"),100),[s,l]=vV("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 he.useEffect(()=>{if(s==="idle"){let c=window.setTimeout(()=>l("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,n.scrollHideDelay,l]),he.useEffect(()=>{let c=n.viewport,u=i?"scrollLeft":"scrollTop";if(c){let d=c[u],p=()=>{let m=c[u];d!==m&&(l("SCROLL"),a()),d=m};return c.addEventListener("scroll",p),()=>c.removeEventListener("scroll",p)}},[n.viewport,i,l,a]),(0,We.jsx)(Ss,{present:r||s!=="hidden",children:(0,We.jsx)(ob,{"data-state":s==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:mi(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:mi(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),mT=he.forwardRef((e,t)=>{let r=nn(Dn,e.__scopeScrollArea),{forceMount:o,...n}=e,[i,a]=he.useState(!1),s=e.orientation==="horizontal",l=tf(()=>{if(r.viewport){let c=r.viewport.offsetWidth<r.viewport.scrollWidth,u=r.viewport.offsetHeight<r.viewport.scrollHeight;a(s?c:u)}},10);return $s(r.viewport,l),$s(r.content,l),(0,We.jsx)(Ss,{present:o||i,children:(0,We.jsx)(ob,{"data-state":i?"visible":"hidden",...n,ref:t})})}),ob=he.forwardRef((e,t)=>{let{orientation:r="vertical",...o}=e,n=nn(Dn,e.__scopeScrollArea),i=he.useRef(null),a=he.useRef(0),[s,l]=he.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=vT(s.viewport,s.content),u={...o,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:p=>i.current=p,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:p=>a.current=p};function d(p,m){return IV(p,a.current,s,m)}return r==="horizontal"?(0,We.jsx)(wV,{...u,ref:t,onThumbPositionChange:()=>{if(n.viewport&&i.current){let p=n.viewport.scrollLeft,m=sT(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,We.jsx)(_V,{...u,ref:t,onThumbPositionChange:()=>{if(n.viewport&&i.current){let p=n.viewport.scrollTop,m=sT(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}),wV=he.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...n}=e,i=nn(Dn,e.__scopeScrollArea),[a,s]=he.useState(),l=he.useRef(null),c=go(t,l,i.onScrollbarXChange);return he.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,We.jsx)(hT,{"data-orientation":"horizontal",...n,ref:c,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":ef(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(i.viewport){let p=i.viewport.scrollLeft+u.deltaX;e.onWheelScroll(p),bT(p,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Qm(a.paddingLeft),paddingEnd:Qm(a.paddingRight)}})}})}),_V=he.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...n}=e,i=nn(Dn,e.__scopeScrollArea),[a,s]=he.useState(),l=he.useRef(null),c=go(t,l,i.onScrollbarYChange);return he.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,We.jsx)(hT,{"data-orientation":"vertical",...n,ref:c,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":ef(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(i.viewport){let p=i.viewport.scrollTop+u.deltaY;e.onWheelScroll(p),bT(p,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Qm(a.paddingTop),paddingEnd:Qm(a.paddingBottom)}})}})}),[kV,fT]=cT(Dn),hT=he.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:n,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,m=nn(Dn,r),[g,x]=he.useState(null),y=go(t,M=>x(M)),k=he.useRef(null),_=he.useRef(""),$=m.viewport,I=o.content-o.viewport,w=fi(u),P=fi(l),D=tf(d,10);function j(M){if(k.current){let U=M.clientX-k.current.left,V=M.clientY-k.current.top;c({x:U,y:V})}}return he.useEffect(()=>{let M=U=>{let V=U.target;g?.contains(V)&&w(U,I)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[$,g,I,w]),he.useEffect(P,[o,P]),$s(g,D),$s(m.content,D),(0,We.jsx)(kV,{scope:r,scrollbar:g,hasThumb:n,onThumbChange:fi(i),onThumbPointerUp:fi(a),onThumbPositionChange:P,onThumbPointerDown:fi(s),children:(0,We.jsx)(_s.div,{...p,ref:y,style:{position:"absolute",...p.style},onPointerDown:mi(e.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),k.current=g.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),j(M))}),onPointerMove:mi(e.onPointerMove,j),onPointerUp:mi(e.onPointerUp,M=>{let U=M.target;U.hasPointerCapture(M.pointerId)&&U.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=_.current,m.viewport&&(m.viewport.style.scrollBehavior=""),k.current=null})})})}),Ym="ScrollAreaThumb",ib=he.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=fT(Ym,e.__scopeScrollArea);return(0,We.jsx)(Ss,{present:r||n.hasThumb,children:(0,We.jsx)(SV,{ref:t,...o})})}),SV=he.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...n}=e,i=nn(Ym,r),a=fT(Ym,r),{onThumbPositionChange:s}=a,l=go(t,d=>a.onThumbChange(d)),c=he.useRef(void 0),u=tf(()=>{c.current&&(c.current(),c.current=void 0)},100);return he.useEffect(()=>{let d=i.viewport;if(d){let p=()=>
10{if(u(),!c.current){let m=TV(d,s);c.current=m,s()}};return s(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[i.viewport,u,s]),(0,We.jsx)(_s.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:mi(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:mi(e.onPointerUp,a.onThumbPointerUp)})});ib.displayName=Ym;var ab="ScrollAreaCorner",gT=he.forwardRef((e,t)=>{let r=nn(ab,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?(0,We.jsx)($V,{...e,ref:t}):null});gT.displayName=ab;var $V=he.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,n=nn(ab,r),[i,a]=he.useState(0),[s,l]=he.useState(0),c=!!(i&&s);return $s(n.scrollbarX,()=>{let u=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(u),l(u)}),$s(n.scrollbarY,()=>{let u=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(u),a(u)}),c?(0,We.jsx)(_s.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 Qm(e){return e?parseInt(e,10):0}function vT(e,t){let r=e/t;return isNaN(r)?0:r}function ef(e){let t=vT(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function IV(e,t,r,o="ltr"){let n=ef(r),i=n/2,a=t||i,s=n-a,l=r.scrollbar.paddingStart+a,c=r.scrollbar.size-r.scrollbar.paddingEnd-s,u=r.content-r.viewport,d=o==="ltr"?[0,u]:[u*-1,0];return yT([l,c],d)(e)}function sT(e,t,r="ltr"){let o=ef(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],c=YI(e,l);return yT([0,a],[0,s])(c)}function yT(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 bT(e,t){return e>0&&e<t}var TV=(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 tf(e,t){let r=fi(e),o=he.useRef(0);return he.useEffect(()=>()=>window.clearTimeout(o.current),[]),he.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function $s(e,t){let r=fi(t);Wc(()=>{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 xT=uT,wT=pT;var _T=gT;var hi=R(q());function sb({className:e,children:t,...r}){return(0,hi.jsxs)(xT,{"data-slot":"scroll-area",className:ce("relative",e),...r,children:[(0,hi.jsx)(wT,{"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,hi.jsx)(rf,{}),(0,hi.jsx)(_T,{})]})}function rf({className:e,orientation:t="vertical",...r}){return(0,hi.jsx)(nb,{"data-slot":"scroll-area-scrollbar",orientation:t,className:ce("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,hi.jsx)(ib,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var kT=R(q());var TT=R(ne());var twe=R(ne());var PV=R(q());var Jc=R(ne());var owe=R(ne());var EV=R(q());var AV=R(q());var uwe=Jc.createContext({});var dwe=Jc.createContext({});var ST=R(q());function lb({className:e,...t}){return(0,ST.jsx)(z5,{role:"status","aria-label":"Loading",className:ce("size-4 animate-spin",e),...t})}var $T=R(ne());var IT=R(q()),of=$T.forwardRef(({className:e,...t},r)=>(0,IT.jsx)("textarea",{ref:r,"data-slot":"textarea",className:ce("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t}));of.displayName="Textarea";var CT=R(q());var n8="vercel.ai.error",NV=Symbol.for(n8),PT,ET,Ze=class o8 extends(ET=Error,PT=NV,ET){constructor({name:t,message:r,cause:o}){super(r),this[PT]=!0,this.name=t,this.cause=o}static isInstance(t){return o8.hasMarker(t,n8)}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}},i8="AI_APICallError",a8=`vercel.ai.error.${i8}`,RV=Symbol.for(a8),AT,zT,Uwe=class extends(zT=Ze,AT=RV,zT){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:i8,message:e,cause:a}),this[AT]=!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 Ze.hasMarker(e,a8)}},s8="AI_EmptyResponseBodyError",l8=`vercel.ai.error.${s8}`,MV=Symbol.for(l8),NT,RT,Lwe=class extends(RT=Ze,NT=MV,RT){constructor({message:e="Empty response body"}={}){super({name:s8,message:e}),this[NT]=!0}static isInstance(e){return Ze.hasMarker(e,l8)}};function c8(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var u8="AI_InvalidArgumentError",d8=`vercel.ai.error.${u8}`,DV=Symbol.for(d8),MT,DT,p8=class extends(DT=Ze,MT=DV,DT){constructor({message:e,cause:t,argument:r}){super({name:u8,message:e,cause:t}),this[MT]=!0,this.argument=r}static isInstance(e){return Ze.hasMarker(e,d8)}},m8="AI_InvalidPromptError",f8=`vercel.ai.error.${m8}`,OV=Symbol.for(f8),OT,jT,Fwe=class extends(jT=Ze,OT=OV,jT){constructor({prompt:e,message:t,cause:r}){super({name:m8,message:`Invalid prompt: ${t}`,cause:r}),this[OT]=!0,this.prompt=e}static isInstance(e){return Ze.hasMarker(e,f8)}},h8="AI_InvalidResponseDataError",g8=`vercel.ai.error.${h8}`,jV=Symbol.for(g8),UT,LT,Bwe=class extends(LT=Ze,UT=jV,LT){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:h8,message:t}),this[UT]=!0,this.data=e}static isInstance(e){return Ze.hasMarker(e,g8)}},v8="AI_JSONParseError",y8=`vercel.ai.error.${v8}`,UV=Symbol.for(y8),FT,BT,ub=class extends(BT=Ze,FT=UV,BT){constructor({text:e,cause:t}){super({name:v8,message:`JSON parsing failed: Text: ${e}. 11Error message: ${c8(t)}`,cause:t}),this[FT]=!0,this.text=e}static isInstance(e){return Ze.hasMarker(e,y8)}},b8="AI_LoadAPIKeyError",x8=`vercel.ai.error.${b8}`,LV=Symbol.for(x8),VT,ZT,Vwe=class extends(ZT=Ze,VT=LV,ZT){constructor({message:e}){super({name:b8,message:e}),this[VT]=!0}static isInstance(e){return Ze.hasMarker(e,x8)}},w8="AI_LoadSettingError",_8=`vercel.ai.error.${w8}`,FV=Symbol.for(_8),GT,qT,Zwe=class extends(qT=Ze,GT=FV,qT){constructor({message:e}){super({name:w8,message:e}),this[GT]=!0}static isInstance(e){return Ze.hasMarker(e,_8)}},k8="AI_NoContentGeneratedError",S8=`vercel.ai.error.${k8}`,BV=Symbol.for(S8),HT,WT,Gwe=class extends(WT=Ze,HT=BV,WT){constructor({message:e="No content generated."}={}){super({name:k8,message:e}),this[HT]=!0}static isInstance(e){return Ze.hasMarker(e,S8)}}
11,$8="AI_NoSuchModelError",I8=`vercel.ai.error.${$8}`,VV=Symbol.for(I8),JT,KT,qwe=class extends(KT=Ze,JT=VV,KT){constructor({errorName:e=$8,modelId:t,modelType:r,message:o=`No such ${r}: ${t}`}){super({name:e,message:o}),this[JT]=!0,this.modelId=t,this.modelType=r}static isInstance(e){return Ze.hasMarker(e,I8)}},T8="AI_TooManyEmbeddingValuesForCallError",C8=`vercel.ai.error.${T8}`,ZV=Symbol.for(C8),XT,YT,Hwe=class extends(YT=Ze,XT=ZV,YT){constructor(e){super({name:T8,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[XT]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return Ze.hasMarker(e,C8)}},P8="AI_TypeValidationError",E8=`vercel.ai.error.${P8}`,GV=Symbol.for(E8),QT,e8,On=class cb extends(e8=Ze,QT=GV,e8){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=[];o.entityName&&i.push(o.entityName),o.entityId&&i.push(`id: "${o.entity
11Id}"`),n+=i.join(", "),n+=")"}super({name:P8,message:`${n}: Value: ${JSON.stringify(t)}. 12Error message: ${c8(r)}`,cause:r}),this[QT]=!0,this.value=t,this.context=o}static isInstance(t){return Ze.hasMarker(t,E8)}static wrap({value:t,cause:r,context:o}){var n,i,a;return cb.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 cb({value:t,cause:r,context:o})}},A8="AI_UnsupportedFunctionalityError",z8=`vercel.ai.error.${A8}`,qV=Symbol.for(z8),t8,r8,Wwe=class extends(r8=Ze,t8=qV,r8){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:A8,message:t}),this[t8]=!0,this.functionality=e}static isInstance(e){return Ze.hasMarker(e,z8)}};var HV=Object.freeze({status:"aborted"});function N(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 c=a.prototype,u=Object.keys(c);for(let d=0;d<u.length;d++){let p=u[d];p in s||(s[p]=c[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var l;let c=r?.Parent?new i:this;o(c,s),(l=c._zod).deferred??(l.deferred=[]);for(let u of c._zod.deferred)u();return c}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 jn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ha=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},af={};function Wt(e){return e&&Object.assign(af,e),af}var X={};_r(X,{BIGINT_FORMAT_RANGES:()=>bb,Class:()=>pb,NUMBER_FORMAT_RANGES:()=>yb,aborted:()=>bi,allowsEval:()=>hb,assert:()=>YV,assertEqual:()=>WV,assertIs:()=>KV,assertNever:()=>XV,assertNotEqual:()=>JV,assignProp:()=>vi,base64ToUint8Array:()=>M8,base64urlToUint8Array:()=>hZ,cached:()=>Ts,captureStackTrace:()=>lf,cleanEnum:()=>fZ,cleanRegex:()=>Yc,clone:()=>jr,cloneDef:()=>eZ,createTransparentProxy:()=>aZ,defineLazy:()=>je,esc:()=>sf,escapeRegex:()=>on,extend:()=>cZ,finalizeIssue:()=>$r,floatSafeRemainder:()=>mb,getElementAtPath:()=>tZ,getEnumValues:()=>Xc,getLengthableOrigin:()=>tu,getParsedType:()=>iZ,getSizableOrigin:()=>eu,hexToUint8Array:()=>vZ,isObject:()=>ga,isPlainObject:()=>yi,issue:()=>Cs,joinValues:()=>be,jsonStringifyReplacer:()=>Is,merge:()=>dZ,mergeDefs:()=>yo,normalizeParams:()=>ae,nullish:()=>gi,numKeys:()=>oZ,objectClone:()=>QV,omit:()=>lZ,optionalKeys:()=>vb,parsedType:()=>_e,partial:()=>pZ,pick:()=>sZ,prefixIssues:()=>Ur,primitiveTypes:()=>gb,promiseAllObject:()=>rZ,propertyKeyTypes:()=>Qc,randomString:()=>nZ,required:()=>mZ,safeExtend:()=>uZ,shallowClone:()=>R8,slugify:()=>fb,stringifyPrimitive:()=>xe,uint8ArrayToBase64:()=>D8,uint8ArrayToBase64url:()=>gZ,uint8ArrayToHex:()=>yZ,unwrapMessage:()=>Kc});function WV(e){return e}function JV(e){return e}function KV(e){}function XV(e){throw new Error("Unexpected value in exhaustive check")}function YV(e){}function Xc(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 be(e,t="|"){return e.map(r=>xe(r)).join(t)}function Is(e,t){return typeof t=="bigint"?t.toString():t}function Ts(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function gi(e){return e==null}function Yc(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function mb(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 N8=Symbol("evaluating");function je(e,t,r){let o;
vendor: 4,807 bytes, line 12
12Object.defineProperty(e,t,{get(){if(o!==N8)return o===void 0&&(o=N8,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function QV(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function vi(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function yo(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function eZ(e){return yo(e._zod.def)}function tZ(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function rZ(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 nZ(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function sf(e){return JSON.stringify(e)}function fb(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var lf="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ga(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var hb=Ts(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function yi(e){if(ga(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(ga(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function R8(e){return yi(e)?{...e}:Array.isArray(e)?[...e]:e}function oZ(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var iZ=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}`)}},Qc=new Set(["string","number","symbol"]),gb=new Set(["string","number","bigint","boolean","symbol","undefined"]);function on(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jr(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function ae(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 aZ(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 xe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function vb(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var yb={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]},bb={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function sZ(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=yo(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 vi(this,"shape",a),a},checks:[]});return jr(e,i)}function lZ(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=yo(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 vi(this,"shape",a),a},checks:[]});return jr(e,i)}function cZ(e,t){if(!yi(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
12write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=yo(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return vi(this,"shape",i),i}});return jr(e,n)}function uZ(e,t){if(!yi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=yo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return vi(this,"shape",o),o}});return jr(e,r)}function dZ(e,t){let r=yo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return vi(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return jr(e,r)}function pZ(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=yo(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(l[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)l[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return vi(this,"shape",l),l},checks:[]});return jr(t,a)}function mZ(e,t,r){let o=yo(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 vi(this,"shape",i),i}});return jr(t,o)}function bi(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 Ur(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Kc(e){return typeof e=="string"?e:e?.message}function $r(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Kc(e.inst?._zod.def?.error?.(e))??Kc(t?.error?.(e))??Kc(r.customError?.(e))??Kc(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function eu(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function tu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _e(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 Cs(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function fZ(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function M8(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 D8(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function hZ(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return M8(t+r)}function gZ(e){return D8(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function vZ(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 yZ(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var pb=class{constructor(...t){}};var O8=(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,Is,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},cf=N("$ZodError",O8),ru=N("$ZodError",O8,{Parent:Error});function xb(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 wb(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 nu=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 jn;
12if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>$r(l,i,Wt())));throw lf(s,n?.callee),s}return a.value},_b=nu(ru),ou=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=>$r(l,i,Wt())));throw lf(s,n?.callee),s}return a.value},kb=ou(ru),iu=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 jn;return i.issues.length?{success:!1,error:new(e??cf)(i.issues.map(a=>$r(a,n,Wt())))}:{success:!0,data:i.value}},j8=iu(ru),au=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=>$r(a,n,Wt())))}:{success:!0,data:i.value}},U8=au(ru),L8=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return nu(e)(t,r,n)};var F8=e=>(t,r,o)=>nu(e)(t,r,o);var B8=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return ou(e)(t,r,n)};var V8=e=>async(t,r,o)=>ou(e)(t,r,o);var Z8=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return iu(e)(t,r,n)};var G8=e=>(t,r,o)=>iu(e)(t,r,o);var q8=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return au(e)(t,r,n)};var H8=e=>async(t,r,o)=>au(e)(t,r,o);var Un={};_r(Un,{base64:()=>Ub,base64url:()=>uf,bigint:()=>Gb,boolean:()=>Hb,browserEmail:()=>TZ,cidrv4:()=>Ob,cidrv6:()=>jb,cuid:()=>Sb,cuid2:()=>$b,date:()=>Fb,datetime:()=>Vb,domain:()=>EZ,duration:()=>Eb,e164:()=>Lb,email:()=>zb,emoji:()=>Nb,extendedDuration:()=>xZ,guid:()=>Ab,hex:()=>AZ,hostname:()=>PZ,html5Email:()=>
vendor: 91,376 bytes, lines 12-50
12SZ,idnEmail:()=>IZ,integer:()=>qb,ipv4:()=>Rb,ipv6:()=>Mb,ksuid:()=>Cb,lowercase:()=>Kb,mac:()=>Db,md5_base64:()=>NZ,md5_base64url:()=>RZ,md5_hex:()=>zZ,nanoid:()=>Pb,null:()=>Wb,number:()=>df,rfc5322Email:()=>$Z,sha1_base64:()=>DZ,sha1_base64url:()=>OZ,sha1_hex:()=>MZ,sha256_base64:()=>UZ,sha256_base64url:()=>LZ,sha256_hex:()=>jZ,sha384_base64:()=>BZ,sha384_base64url:()=>VZ,sha384_hex:()=>FZ,sha512_base64:()=>GZ,sha512_base64url:()=>qZ,sha512_hex:()=>ZZ,string:()=>Zb,time:()=>Bb,ulid:()=>Ib,undefined:()=>Jb,unicodeEmail:()=>W8,uppercase:()=>Xb,uuid:()=>va,uuid4:()=>wZ,uuid6:()=>_Z,uuid7:()=>kZ,xid:()=>Tb});var Sb=/^[cC][^\s-]{8,}$/,$b=/^[0-9a-z]+$/,Ib=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Tb=/^[0-9a-vA-V]{20}$/,Cb=/^[A-Za-z0-9]{27}$/,Pb=/^[a-zA-Z0-9_-]{21}$/,Eb=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xZ=/^[-+]?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)?)??$/,Ab=/^([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})$/,va=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)$/,wZ=va(4),_Z=va(6),kZ=va(7),zb=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,SZ=/^[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])?)*$/,$Z=/^(([^<>()\[\]\\.,;:\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,}))$/,W8=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,IZ=W8,TZ=/^[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])?)*$/,CZ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Nb(){return new RegExp(CZ,"u")}var Rb=/^(?:(?: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}|:))$/,Db=e=>{let t=on(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ob=/^((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])$/,jb=/^(([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])$/,Ub=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,uf=/^[A-Za-z0-9_-]*$/,PZ=/^(?=.{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])?)*\.?$/,EZ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Lb=/^\+[1-9]\d{6,14}$/,J8="(?:(?:\\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])))",Fb=new RegExp(`^${J8}$`);function K8(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 Bb(e){return new RegExp(`^${K8(e)}$`)}function Vb(e){let t=K8({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(`^${J8}T(?:${o})$`)}var Zb=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Gb=/^-?\d+n?$/,qb=/^-?\d+$/,df=/^-?\d+(?:\.\d+)?$/,Hb=/^(?:true|false)$/i,Wb=/^null$/i;var Jb=/^undefined$/i;var Kb=/^[^A-Z]*$/,Xb=/^[^a-z]*$/,AZ=/^[0-9a-fA-F]*$/;function su(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function lu(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var zZ=/^[0-9a-fA-F]{32}$/,NZ=su(22,"=="),RZ=lu(22),MZ=/^[0-9a-fA-F]{40}$/,DZ=su(27,"="),OZ=lu(27),jZ=/^[0-9a-fA-F]{64}$/,UZ=su(43,"="),LZ=lu(43),FZ=/^[0-9a-fA-F]{96}$/,BZ=su(64,""),VZ=lu(64),ZZ=/^[0-9a-fA-F]{128}$/,GZ=su(86,"=="),qZ=lu(86);var dt=N("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Y8={number:"number",bigint:"bigint",object:"date"},Yb=N("$ZodCheckLessThan",(e,t)=>{dt.init(e,t);let r=Y8[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})}}),Qb=N("$ZodCheckGreaterThan",(e,t)=>{dt.init(e,t);let r=Y8[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})}}),Q8=N("$ZodCheckMultipleOf",(e,t)=>{dt.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):mb(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})}}),e9=N("$ZodCheckNumberFormat",(e,t)=>{dt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=yb[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=qb)}),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})}}),t9=N("$ZodCheckBigIntFormat",(e,t)=>{dt.init(e,t);let[r,o]=bb[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})}}),r9=N("$ZodCheckMaxSize",(e,t)=>{var r;dt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!gi(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:eu(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),n9=N("$ZodCheckMinSize",(e,t)=>{var r;dt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!gi(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:eu(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),o9=N("$ZodCheckSizeEquals",(e,t)=>{var r;dt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!gi(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:eu(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})}}),i9=N("$ZodCheckMaxLength",(e,t)=>{var r;dt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!gi(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=tu(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),a9=N("$ZodCheckMinLength",(e,t)=>{var r;dt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!gi(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=tu(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),s9=N("$ZodCheckLengthEquals",(e,t)=>{var r;dt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!gi(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=tu(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})}}),cu=N("$ZodCheckStringFormat",(e,t)=>{var r,o;dt.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=()=>{})}),l9=N("$ZodCheckRegex",(e,t)=>{cu.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})}}),c9=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Kb),cu.init(e,t)}),u9=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Xb),cu.init(e,t)}),d9=N("$ZodCheckIncludes",(e,t)=>{dt.init(e,t);let r=on(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})}}),p9=N("$ZodCheckStartsWith",(e,t)=>{dt.init(e,t);let r=new RegExp(`^${on(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})}}),m9=N("$ZodCheckEndsWith",(e,t)=>{dt.init(e,t);let r=new RegExp(`.*${on(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 X8(e,t,r){e.issues.length&&t.issues.push(...Ur(r,e.issues))}var f9=N("$ZodCheckProperty",(e,t)=>{dt.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=>X8(n,r,t.property));X8(o,r,t.property)}}),h9=N("$ZodCheckMimeType",(e,t)=>{dt.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})}}),g9=N("$ZodCheckOverwrite",(e,t)=>{dt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var pf=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(` 13`).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(` 14`))}};var y9={major:4,minor:3,patch:6};var Pe=N("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=y9;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 c=bi(a),u;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(c)continue;let p=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&l?.async===!1)throw new jn;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,a.issues.length!==p&&(c||(c=bi(a,p)))});else{if(a.issues.length===p)continue;c||(c=bi(a,p))}}return u?u.then(()=>a):a},i=(a,s,l)=>{if(bi(a))return a.aborted=!0,a;let c=n(s,o,l);if(c instanceof Promise){if(l.async===!1)throw new jn;return c.then(u=>e._zod.parse(u,l))}return e._zod.parse(c,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,a,s)):i(c,a,s)}let l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new jn;return l.then(c=>n(c,o,s))}return n(l,o,s)}}je(e,"~standard",()=>({validate:n=>{try{let i=j8(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return U8(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ps=N("$ZodString",(e,t)=>{Pe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Zb(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}}),it=N("$ZodStringFormat",(e,t)=>{cu.init(e,t),Ps.init(e,t)}),E9=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ab),it.init(e,t)}),A9=N("$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=va(o))}else t.pattern??(t.pattern=va());it.init(e,t)}),z9=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=zb),it.init(e,t)}),N9=N("$ZodURL",(e,t)=>{it.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})}}}),R9=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Nb()),it.init(e,t)}),M9=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Pb),it.init(e,t)}),D9=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Sb),it.init(e,t)}),O9=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=$b),it.init(e,t)}),j9=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ib),it.init(e,t)}),U9=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Tb),it.init(e,t)}),L9=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Cb),it.init(e,t)}),F9=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Vb(t)),it.init(e,t)}),B9=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Fb),it.init(e,t)}),V9=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Bb(t)),it.init(e,t)}),Z9=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Eb),it.init(e,t)}),G9=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Rb),it.init(e,t),e._zod.bag.format="ipv4"}),q9=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Mb),it.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})}}}),H9=N("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Db(t.delimiter)),it.init(e,t),e._zod.bag.format="mac"}),W9=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ob),it.init(e,t)}),J9=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=jb),it.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 K9(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var X9=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ub),it.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{K9(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function HZ(e){if(!uf.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return K9(r)}var Y9=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=uf),it.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{HZ(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Q9=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Lb),it.init(e,t)});function WZ(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 eC=N("$ZodJWT",(e,t)=>{it.init(e,t),e._zod.check=r=>{WZ(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),tC=N("$ZodCustomStringFormat",(e,t)=>{it.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})}}),t1=N("$ZodNumber",(e,t)=>{Pe.init(e,t),e._zod.pattern=e._zod.bag.pattern??df,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}}),rC=N("$ZodNumberFormat",(e,t)=>{e9.init(e,t),t1.init(e,t)}),yf=N("$ZodBoolean",(e,t)=>{Pe.init(e,t),e._zod.pattern=Hb,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}}),r1=N("$ZodBigInt",(e,t)=>{Pe.init(e,t),e._zod.pattern=Gb,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}}),nC=N("$ZodBigIntFormat",(e,t)=>{t9.init(e,t),r1.init(e,t)}),oC=N("$ZodSymbol",(e,t)=>{Pe.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}}),iC=N("$ZodUndefined",(e,t)=>{Pe.init(e,t),e._zod.pattern=Jb,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}}),aC=N("$ZodNull",(e,t)=>{Pe.init(e,t),e._zod.pattern=Wb,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}}),sC=N("$ZodAny",(e,t)=>{Pe.init(e,t),e._zod.parse=r=>r}),lC=N("$ZodUnknown",(e,t)=>{Pe.init(e,t),e._zod.parse=r=>r}),cC=N("$ZodNever",(e,t)=>{Pe.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),uC=N("$ZodVoid",(e,t)=>{Pe.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}}),dC=N("$ZodDate",(e,t)=>{Pe.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 b9(e,t,r){e.issues.length&&t.issues.push(...Ur(r,e.issues)),t.value[r]=e.value}var pC=N("$ZodArray",(e,t)=>{Pe.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(c=>b9(c,r,a))):b9(l,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function vf(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...Ur(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function mC(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=vb(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function fC(e,t,r,o,n,i){let a=[],s=n.keySet,l=n.catchall._zod,c=l.def.type,u=l.optout==="optional";for(let d in t){if(s.has(d))continue;if(c==="never"){a.push(d);continue}let p=l.run({value:t[d],issues:[]},o);p instanceof Promise?e.push(p.then(m=>vf(m,r,d,t,u))):vf(p,r,d,t,u)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var JZ=N("$ZodObject",(e,t)=>{if(Pe.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=Ts(()=>mC(t));je(e._zod,"propValues",()=>{let s=t.shape,l={};for(let c in s){let u=s[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(let d of u.values)l[c].add(d)}}return l});let n=ga,i=t.catchall,a;e._zod.parse=(s,l)=>{a??(a=o.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let u=[],d=a.shape;for(let p of a.keys){let m=d[p],g=m._zod.optout==="optional",x=m._zod.run({value:c[p],issues:[]},l);x instanceof Promise?u.push(x.then(y=>vf(y,s,p,c,g))):vf(x,s,p,c,g)}return i?fC(u,c,s,l,o.value,e):u.length?Promise.all(u).then(()=>s):s}}),hC=N("$ZodObjectJIT",(e,t)=>{JZ.init(e,t);let r=e._zod.parse,o=Ts(()=>mC(t)),n=p=>{let m=new pf(["shape","payload","ctx"]),g=o.value,x=$=>{let I=sf($);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};m.write("const input = payload.value;");let y=Object.create(null),k=0;for(let $ of g.keys)y[$]=`key_${k++}`;m.write("const newResult = {};");for(let $ of g.keys){let I=y[$],w=sf($),D=p[$]?._zod?.optout==="optional";m.write(`const ${I} = ${x($)};`),D?m.write(` 15 if (${I}.issues.length) { 16 if (${w} in input) { 17 payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ 18 ...iss, 19 path: iss.path ? [${w}, ...iss.path] : [${w}] 20 }))); 21 } 22 } 23 24 if (${I}.value === undefined) { 25 if (${w} in input) { 26 newResult[${w}] = undefined; 27 } 28 } else { 29 newResult[${w}] = ${I}.value; 30 } 31 32 `):m.write(` 33 if (${I}.issues.length) { 34 payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ 35 ...iss, 36 path: iss.path ? [${w}, ...iss.path] : [${w}] 37 }))); 38 } 39 40 if (${I}.value === undefined) { 41 if (${w} in input) { 42 newResult[${w}] = undefined; 43 } 44 } else { 45 newResult[${w}] = ${I}.value; 46 } 47 48 `)}m.write("payload.value = newResult;"),m.write("return payload;");let _=m.compile();return($,I)=>_(p,$,I)},i,a=ga,s=!af.jitless,c=s&&hb.value,u=t.catchall,d;e._zod.parse=(p,m)=>{d??(d=o.value);let g=p.value;return a(g)?s&&c&&m?.async===!1&&m.jitless!==!0?(i||(i=n(t.shape)),p=i(p,m),u?fC([],g,p,m,d,e):p):r(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function x9(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=>!bi(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=>$r(a,o,Wt())))}),t)}var bf=N("$ZodUnion",(e,t)=>{Pe.init(e,t),je(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),je(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),je(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),je(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=>Yc(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 c=l._zod.run({value:n.value,issues:[]},i);if(c instanceof Promise)s.push(c),a=!0;else{if(c.issues.length===0)return c;s.push(c)}}return a?Promise.all(s).then(l=>x9(l,n,e,i)):x9(s,n,e,i)}});function w9(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=>$r(a,o,Wt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var gC=N("$ZodXor",(e,t)=>{bf.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 c=l._zod.run({value:n.value,issues:[]},i);c instanceof Promise?(s.push(c),a=!0):s.push(c)}return a?Promise.all(s).then(l=>w9(l,n,e,i)):w9(s,n,e,i)}}),vC=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,bf.init(e,t);let r=e._zod.parse;je(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 c of l)n[s].add(c)}}return n});let o=Ts(()=>{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(!ga(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)}}),yC=N("$ZodIntersection",(e,t)=>{Pe.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,c])=>_9(r,l,c)):_9(r,i,a)}});function e1(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(yi(e)&&yi(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=e1(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=e1(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 _9(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}),bi(e))return e;let a=e1(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 n1=N("$ZodTuple",(e,t)=>{Pe.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(u=>u._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let u=i.length>r.length,d=i.length<l-1;if(u||d)return o.issues.push({...u?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let c=-1;for(let u of r){if(c++,c>=i.length&&c>=l)continue;let d=u._zod.run({value:i[c],issues:[]},n);d instanceof Promise?a.push(d.then(p=>mf(p,o,c))):mf(d,o,c)}if(t.rest){let u=i.slice(r.length);for(let d of u){c++;let p=t.rest._zod.run({value:d,issues:[]},n);p instanceof Promise?a.push(p.then(m=>mf(m,o,c))):mf(p,o,c)}}return a.length?Promise.all(a).then(()=>o):o}});function mf(e,t,r){e.issues.length&&t.issues.push(...Ur(r,e.issues)),t.value[r]=e.value}var bC=N("$ZodRecord",(e,t)=>{Pe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!yi(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 c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);let u=t.valueType._zod.run({value:n[c],issues:[]},o);u instanceof Promise?i.push(u.then(d=>{d.issues.length&&r.issues.push(...Ur(c,d.issues)),r.value[c]=d.value})):(u.issues.length&&r.issues.push(...Ur(c,u.issues)),r.value[c]=u.value)}let l;for(let c in n)s.has(c)||(l=l??[],l.push(c));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"&&df.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=>$r(d,o,Wt())),input:s,path:[s],inst:e});continue}let u=t.valueType._zod.run({value:n[s],issues:[]},o);u instanceof Promise?i.push(u.then(d=>{d.issues.length&&r.issues.push(...Ur(s,d.issues)),r.value[l.value]=d.value})):(u.issues.length&&r.issues.push(...Ur(s,u.issues)),r.value[l.value]=u.value)}}return i.length?Promise.all(i).then(()=>r):r}}),xC=N("$ZodMap",(e,t)=>{Pe.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),c=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||c instanceof Promise?i.push(Promise.all([l,c]).then(([u,d])=>{k9(u,d,r,a,n,e,o)})):k9(l,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function k9(e,t,r,o,n,i,a){e.issues.length&&(Qc.has(typeof o)?r.issues.push(...Ur(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>$r(s,a,Wt()))})),t.issues.length&&(Qc.has(typeof o)?r.issues.push(...Ur(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>$r(s,a,Wt()))})),r.value.set(e.value,t.value)}var wC=N("$ZodSet",(e,t)=>{Pe.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=>S9(l,r))):S9(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function S9(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var _C=N("$ZodEnum",(e,t)=>{Pe.init(e,t);let r=Xc(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Qc.has(typeof n)).map(n=>typeof n=="string"?on(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}}),kC=N("$ZodLiteral",(e,t)=>{if(Pe.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"?on(o):o?on(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}}),SC=N("$ZodFile",(e,t)=>{Pe.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}}),$C=N("$ZodTransform",(e,t)=>{Pe.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ha(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 jn;return r.value=n,r}});function $9(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var o1=N("$ZodOptional",(e,t)=>{Pe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",je(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),je(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Yc(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=>$9(i,r.value)):$9(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),IC=N("$ZodExactOptional",(e,t)=>{o1.init(e,t),je(e._zod,"values",()=>t.innerType._zod.values),je(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),TC=N("$ZodNullable",(e,t)=>{Pe.init(e,t),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),je(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Yc(r.source)}|null)$`):void 0}),je(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)}),CC=N("$ZodDefault",(e,t)=>{Pe.init(e,t),e._zod.optin="optional",je(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=>I9(i,t)):I9(n,t)}});function I9(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var PC=N("$ZodPrefault",(e,t)=>{Pe.init(e,t),e._zod.optin="optional",je(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))}),EC=N("$ZodNonOptional",(e,t)=>{Pe.init(e,t),je(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=>T9(i,e)):T9(n,e)}});function T9(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 AC=N("$ZodSuccess",(e,t)=>{Pe.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ha("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)}}),zC=N("$ZodCatch",(e,t)=>{Pe.init(e,t),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),je(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=>$r(a,o,Wt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>$r(i,o,Wt()))},input:r.value}),r.issues=[]),r)}}),NC=N("$ZodNaN",(e,t)=>{Pe.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)}),RC=N("$ZodPipe",(e,t)=>{Pe.init(e,t),je(e._zod,"values",()=>t.in._zod.values),je(e._zod,"optin",()=>t.in._zod.optin),je(e._zod,"optout",()=>t.out._zod.optout),je(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=>ff(a,t.in,o)):ff(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>ff(i,t.out,o)):ff(n,t.out,o)}});function ff(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var xf=N("$ZodCodec",(e,t)=>{Pe.init(e,t),je(e._zod,"values",()=>t.in._zod.values),je(e._zod,"optin",()=>t.in._zod.optin),je(e._zod,"optout",()=>t.out._zod.optout),je(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=>hf(a,t,o)):hf(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>hf(a,t,o)):hf(i,t,o)}}});function hf(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=>gf(e,i,t.out,r)):gf(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>gf(e,i,t.in,r)):gf(e,n,t.in,r)}}function gf(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var MC=N("$ZodReadonly",(e,t)=>{Pe.init(e,t),je(e._zod,"propValues",()=>t.innerType._zod.propValues),je(e._zod,"values",()=>t.innerType._zod.values),je(e._zod,"optin",()=>t.innerType?._zod?.optin),je(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(C9):C9(n)}});function C9(e){return e.value=Object.freeze(e.value),e}var DC=N("$ZodTemplateLiteral",(e,t)=>{Pe.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||gb.has(typeof o))r.push(on(`${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)}),OC=N("$ZodFunction",(e,t)=>(Pe.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?_b(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?_b(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 kb(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await kb(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 n1({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)),jC=N("$ZodPromise",(e,t)=>{Pe.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),UC=N("$ZodLazy",(e,t)=>{Pe.init(e,t),je(e._zod,"innerType",()=>t.getter()),je(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),je(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),je(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),je(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),LC=N("$ZodCustom",(e,t)=>{dt.init(e,t),Pe.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=>P9(i,r,o,e));P9(n,r,o,e)}});function P9(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(Cs(n))}}var XZ=()=>{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=_e(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${xe(n.values[0])}`:`Invalid option: expected one of ${be(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":""}: ${be(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 i1(){return{localeError:XZ()}}var BC;var a1=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 VC(){return new a1}(BC=globalThis).__zod_globalRegistry??(BC.__zod_globalRegistry=VC());var Ir=globalThis.__zod_globalRegistry;function ZC(e,t){return new e({type:"string",...ae(t)})}function s1(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ae(t)})}function wf(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ae(t)})}function l1(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ae(t)})}function c1(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ae(t)})}function u1(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ae(t)})}function d1(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ae(t)})}function _f(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ae(t)})}function p1(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ae(t)})}function m1(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ae(t)})}function f1(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ae(t)})}function h1(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ae(t)})}function g1(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ae(t)})}function v1(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ae(t)})}function y1(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ae(t)})}function b1(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ae(t)})}function x1(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ae(t)})}function GC(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ae(t)})}function w1(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ae(t)})}function _1(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ae(t)})}function k1(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ae(t)})}function S1(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ae(t)})}function $1(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ae(t)})}function I1(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ae(t)})}function qC(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ae(t)})}function HC(e,t){return new e({type:"string",format:"date",check:"string_format",...ae(t)})}function WC(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ae(t)})}function JC(e,t){return new e({type:"string",format:"duration",check:"string_format",...ae(t)})}function KC(e,t){return new e({type:"number",checks:[],...ae(t)})}function XC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ae(t)})}function YC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ae(t)})}function QC(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ae(t)})}function eP(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ae(t)})}function tP(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ae(t)})}function rP(e,t){return new e({type:"boolean",...ae(t)})}function nP(e,t){return new e({type:"bigint",...ae(t)})}function oP(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ae(t)})}function iP(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ae(t)})}function aP(e,t){return new e({type:"symbol",...ae(t)})}function sP(e,t){return new e({type:"undefined",...ae(t)})}function lP(e,t){return new e({type:"null",...ae(t)})}function cP(e){return new e({type:"any"})}function uP(e){return new e({type:"unknown"})}function dP(e,t){return new e({type:"never",...ae(t)})}function pP(e,t){return new e({type:"void",...ae(t)})}function mP(e,t){return new e({type:"date",...ae(t)})}function fP(e,t){return new e({type:"nan",...ae(t)})}function xi(e,t){return new Yb({check:"less_than",...ae(t),value:e,inclusive:!1})}function xn(e,t){return new Yb({check:"less_than",...ae(t),value:e,inclusive:!0})}function wi(e,t){return new Qb({check:"greater_than",...ae(t),value:e,inclusive:!1})}function Lr(e,t){return new Qb({check:"greater_than",...ae(t),value:e,inclusive:!0})}function hP(e){return wi(0,e)}function gP(e){return xi(0,e)}function vP(e){return xn(0,e)}function yP(e){return Lr(0,e)}function Es(e,t){return new Q8({check:"multiple_of",...ae(t),value:e})}function As(e,t){return new r9({check:"max_size",...ae(t),maximum:e})}function _i(e,t){return new n9({check:"min_size",...ae(t),minimum:e})}function uu(e,t){return new o9({check:"size_equals",...ae(t),size:e})}function du(e,t){return new i9({check:"max_length",...ae(t),maximum:e})}function ya(e,t){return new a9({check:"min_length",...ae(t),minimum:e})}function pu(e,t){return new s9({check:"length_equals",...ae(t),length:e})}function kf(e,t){return new l9({check:"string_format",format:"regex",...ae(t),pattern:e})}function Sf(e){return new c9({check:"string_format",format:"lowercase",...ae(e)})}function $f(e){return new u9({check:"string_format",format:"uppercase",...ae(e)})}function If(e,t){return new d9({check:"string_format",format:"includes",...ae(t),includes:e})}function Tf(e,t){return new p9({check:"string_format",format:"starts_with",...ae(t),prefix:e})}function Cf(e,t){return new m9({check:"string_format",format:"ends_with",...ae(t),suffix:e})}function bP(e,t,r){return new f9({check:"property",property:e,schema:t,...ae(r)})}function Pf(e,t){return new h9({check:"mime_type",mime:e,...ae(t)})}function bo(e){return new g9({check:"overwrite",tx:e})}function Ef(e){return bo(t=>t.normalize(e))}function Af(){return bo(e=>e.trim())}function zf(){return bo(e=>e.toLowerCase())}function Nf(){return bo(e=>e.toUpperCase())}function Rf(){return bo(e=>fb(e))}function xP(e,t,r){return new e({type:"array",element:t,...ae(r)})}function wP(e,t){return new e({type:"file",...ae(t)})}function _P(e,t,r){let o=ae(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function kP(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ae(r)})}function SP(e){let t=tG(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Cs(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(Cs(n))}},e(r.value,r)));return t}function tG(e,t){let r=new dt({check:"custom",...ae(t)});return r._zod.check=e,r}function $P(e){let t=new dt({check:"describe"});return t._zod.onattach=[r=>{let o=Ir.get(r)??{};Ir.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function IP(e){let t=new dt({check:"meta"});return t._zod.onattach=[r=>{let o=Ir.get(r)??{};Ir.add(r,{...o,...e})}],t._zod.check=()=>{},t}function TP(e,t){let r=ae(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??xf,l=e.Boolean??yf,c=e.String??Ps,u=new c({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),p=new s({type:"pipe",in:u,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 mu(e,t,r,o={}){let n=ae(o),i={...ae(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 zs(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??Ir,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 rt(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 u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);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,u)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),rt(d,t,u),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&cr(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 Ns(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 c=`#/${s}/`,u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:c}=n(a);s.def={...s.schema},c&&(s.defId=c);let u=s.schema;for(let d in u)delete u[d];u.$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> 49 50Set 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 c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){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 Rs(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,c={...l},u=s.ref;if(s.ref=null,u){o(u);let p=e.seen.get(u),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,c),a._zod.parent===u)for(let x in l)x==="$ref"||x==="allOf"||x in c||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!==u){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:fu(t,"input",e.processors),output:fu(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function cr(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 cr(o.element,r);if(o.type==="set")return cr(o.valueType,r);if(o.type==="lazy")return cr(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 cr(o.innerType,r);if(o.type==="intersection")return cr(o.left,r)||cr(o.right,r);if(o.type==="record"||o.type==="map")return cr(o.keyType,r)||cr(o.valueType,r);if(o.type==="pipe")return cr(o.in,r)||cr(o.out,r);if(o.type==="object"){for(let n in o.shape)if(cr(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(cr(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(cr(n,r))return!0;return!!(o.rest&&cr(o.rest,r))}return!1}var CP=(e,t={})=>r=>{let o=zs({...r,processors:t});return rt(e,o),Ns(o,e),Rs(o,e)},fu=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=zs({...n??{},target:i,io:t,processors:r});return rt(e,a),Ns(a,e),Rs(a,e)};var rG={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},C1=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=rG[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),l&&l.size>0){let u=[...l];u.length===1?n.pattern=u[0].source:u.length>1&&(n.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},P1=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u),typeof i=="number"&&(n.minimum=i,typeof u=="number"&&t.target!=="draft-04"&&(u>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c),typeof a=="number"&&(n.maximum=a,typeof c=="number"&&t.target!=="draft-04"&&(c<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},E1=(e,t,r,o)=>{r.type="boolean"},A1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},z1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},N1=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},R1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},M1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},D1=(e,t,r,o)=>{r.not={}},O1=(e,t,r,o)=>{},j1=(e,t,r,o)=>{},U1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},L1=(e,t,r,o)=>{let n=e._zod.def,i=Xc(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},F1=(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},B1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},V1=(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},Z1=(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(c=>({contentMediaType:c}))):Object.assign(n,i)},G1=(e,t,r,o)=>{r.type="boolean"},q1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},H1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},W1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},J1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},K1=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},X1=(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=rt(i.element,t,{...o,path:[...o.path,"items"]})},Y1=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let c in a)n.properties[c]=rt(a[c],t,{...o,path:[...o.path,"properties",c]});let s=new Set(Object.keys(a)),l=new Set([...s].filter(c=>{let u=i.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.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=rt(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Mf=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,l)=>rt(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=a:r.anyOf=a},Q1=(e,t,r,o)=>{let n=e._zod.def,i=rt(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=rt(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=l},ex=(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)=>rt(p,t,{...o,path:[...o.path,a,m]})),c=i.rest?rt(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,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:l},c&&n.items.anyOf.push(c),n.minItems=l.length,c||(n.maxItems=l.length)):(n.items=l,c&&(n.additionalItems=c));let{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(n.minItems=u),typeof d=="number"&&(n.maxItems=d)},tx=(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 u=rt(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of l)n.patternProperties[d.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=rt(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=rt(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=a._zod.values;if(c){let u=[...c].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(n.required=u)}},rx=(e,t,r,o)=>{let n=e._zod.def,i=rt(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"}]},nx=(e,t,r,o)=>{let n=e._zod.def;rt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},ox=(e,t,r,o)=>{let n=e._zod.def;rt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},ix=(e,t,r,o)=>{let n=e._zod.def;rt(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)))},ax=(e,t,r,o)=>{let n=e._zod.def;rt(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},sx=(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;rt(i,t,o);let a=t.seen.get(e);a.ref=i},lx=(e,t,r,o)=>{let n=e._zod.def;rt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},cx=(e,t,r,o)=>{let n=e._zod.def;rt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Df=(e,t,r,o)=>{let n=e._zod.def;rt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},ux=(e,t,r,o)=>{let n=e._zod.innerType;rt(n,t,o);let i=t.seen.get(e);i.ref=n},T1={string:C1,number:P1,boolean:E1,bigint:A1,symbol:z1,null:N1,undefined:R1,void:M1,never:D1,any:O1,unknown:j1,date:U1,enum:L1,literal:F1,nan:B1,template_literal:V1,file:Z1,success:G1,custom:q1,function:H1,transform:W1,map:J1,set:K1,array:X1,object:Y1,union:Mf,intersection:Q1,tuple:ex,record:tx,nullable:rx,nonoptional:nx,default:ox,prefault:ix,catch:ax,pipe:sx,readonly:lx,promise:cx,optional:Df,lazy:ux};function Of(e,t){if("_idmap"in e){let o=e,n=zs({...t,processors:T1}),i={};for(let l of o._idmap.entries()){let[c,u]=l;rt(u,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let l of o._idmap.entries()){let[c,u]=l;Ns(n,u),a[c]=Rs(n,u)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:i}}return{schemas:a}}let r=zs({...t,processors:T1});return rt(e,r),Ns(r,e),Rs(r,e)}var gu={};_r(gu,{ZodAny:()=>WP,ZodArray:()=>YP,ZodBase64:()=>Rx,ZodBase64URL:()=>Mx,ZodBigInt:()=>Wf,ZodBigIntFormat:()=>jx,ZodBoolean:()=>Hf,ZodCIDRv4:()=>zx,ZodCIDRv6:()=>Nx,ZodCUID:()=>$x,ZodCUID2:()=>Ix,ZodCatch:()=>xE,ZodCodec:()=>Hx,ZodCustom:()=>Qf,ZodCustomStringFormat:()=>yu,ZodDate:()=>Lx,ZodDefault:()=>fE,ZodDiscriminatedUnion:()=>eE,ZodE164:()=>Dx,ZodEmail:()=>_x,ZodEmoji:()=>kx,ZodEnum:()=>vu,ZodExactOptional:()=>dE,ZodFile:()=>cE,ZodFunction:()=>PE,ZodGUID:()=>Lf,ZodIPv4:()=>Ex,ZodIPv6:()=>Ax,ZodIntersection:()=>tE,ZodJWT:()=>Ox,ZodKSUID:()=>Px,ZodLazy:()=>IE,ZodLiteral:()=>lE,ZodMAC:()=>FP,ZodMap:()=>aE,ZodNaN:()=>_E,ZodNanoID:()=>Sx,ZodNever:()=>KP,ZodNonOptional:()=>Gx,ZodNull:()=>qP,ZodNullable:()=>mE,ZodNumber:()=>qf,ZodNumberFormat:()=>Ds,ZodObject:()=>Kf,ZodOptional:()=>Zx,ZodPipe:()=>qx,ZodPrefault:()=>gE,ZodPromise:()=>CE,ZodReadonly:()=>kE,ZodRecord:()=>Yf,ZodSet:()=>sE,ZodString:()=>Zf,ZodStringFormat:()=>at,ZodSuccess:()=>bE,ZodSymbol:()=>ZP,ZodTemplateLiteral:()=>$E,ZodTransform:()=>uE,ZodTuple:()=>nE,ZodType:()=>De,ZodULID:()=>Tx,ZodURL:()=>Gf,ZodUUID:()=>xo,ZodUndefined:()=>GP,ZodUnion:()=>Xf,ZodUnknown:()=>JP,ZodVoid:()=>XP,ZodXID:()=>Cx,ZodXor:()=>QP,_ZodString:()=>wx,_default:()=>hE,_function:()=>uq,any:()=>BG,array:()=>Jf,base64:()=>$G,base64url:()=>IG,bigint:()=>OG,boolean:()=>VP,catch:()=>wE,check:()=>dq,cidrv4:()=>kG,cidrv6:()=>SG,codec:()=>sq,cuid:()=>hG,cuid2:()=>gG,custom:()=>pq,date:()=>ZG,describe:()=>mq,discriminatedUnion:()=>KG,e164:()=>TG,email:()=>iG,emoji:()=>mG,enum:()=>Bx,exactOptional:()=>pE,file:()=>nq,float32:()=>NG,float64:()=>RG,function:()=>uq,guid:()=>aG,hash:()=>zG,hex:()=>AG,hostname:()=>EG,httpUrl:()=>pG,instanceof:()=>hq,int:()=>xx,int32:()=>MG,int64:()=>jG,intersection:()=>rE,ipv4:()=>xG,ipv6:()=>_G,json:()=>vq,jwt:()=>CG,keyof:()=>GG,ksuid:()=>bG,lazy:()=>TE,literal:()=>rq,looseObject:()=>WG,looseRecord:()=>YG,mac:()=>wG,map:()=>QG,meta:()=>fq,nan:()=>aq,nanoid:()=>fG,nativeEnum:()=>tq,never:()=>Ux,nonoptional:()=>yE,null:()=>HP,nullable:()=>Bf,nullish:()=>oq,number:()=>BP,object:()=>qG,optional:()=>Ff,partialRecord:()=>XG,pipe:()=>Vf,prefault:()=>vE,preprocess:()=>yq,promise:()=>cq,readonly:()=>SE,record:()=>iE,refine:()=>EE,set:()=>eq,strictObject:()=>HG,string:()=>bx,stringFormat:()=>PG,stringbool:()=>gq,success:()=>iq,superRefine:()=>AE,symbol:()=>LG,templateLiteral:()=>lq,transform:()=>Vx,tuple:()=>oE,uint32:()=>DG,uint64:()=>UG,ulid:()=>vG,undefined:()=>FG,union:()=>Fx,unknown:()=>Ms,url:()=>dG,uuid:()=>sG,uuidv4:()=>lG,uuidv6:()=>cG,uuidv7:()=>uG,void:()=>VG,xid:()=>yG,xor:()=>JG});var jf={};_r(jf,{endsWith:()=>Cf,gt:()=>wi,gte:()=>Lr,includes:()=>If,length:()=>pu,lowercase:()=>Sf,lt:()=>xi,lte:()=>xn,maxLength:()=>du,maxSize:()=>As,mime:()=>Pf,minLength:()=>ya,minSize:()=>_i,multipleOf:()=>Es,negative:()=>gP,nonnegative:()=>yP,nonpositive:()=>vP,normalize:()=>Ef,overwrite:()=>bo,positive:()=>hP,property:()=>bP,regex:()=>kf,size:()=>uu,slugify:()=>Rf,startsWith:()=>Tf,toLowerCase:()=>zf,toUpperCase:()=>Nf,trim:()=>Af,uppercase:()=>$f});var hu={};_r(hu,{ZodISODate:()=>mx,ZodISODateTime:()=>dx,ZodISODuration:()=>vx,ZodISOTime:()=>hx,date:()=>fx,datetime:()=>px,duration:()=>yx,time:()=>gx});var dx=N("ZodISODateTime",(e,t)=>{F9.init(e,t),at.init(e,t)});function px(e){return qC(dx,e)}var mx=N("ZodISODate",(e,t)=>{B9.init(e,t),at.init(e,t)});function fx(e){return HC(mx,e)}var hx=N("ZodISOTime",(e,t)=>{V9.init(e,t),at.init(e,t)});function gx(e){return WC(hx,e)}var vx=N("ZodISODuration",(e,t)=>{Z9.init(e,t),at.init(e,t)});function yx(e){return JC(vx,e)}var PP=(e,t)=>{cf.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>wb(e,r)},flatten:{value:r=>xb(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Is,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Is,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ske=N("ZodError",PP),Fr=N("ZodError",PP,{Parent:Error});var EP=nu(Fr),AP=ou(Fr),zP=iu(Fr),Uf=au(Fr),NP=L8(Fr),RP=F8(Fr),MP=B8(Fr),DP=V8(Fr),OP=Z8(Fr),jP=G8(Fr),UP=q8(Fr),LP=H8(Fr);var De=N("ZodType",(e,t)=>(Pe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:fu(e,"input"),output:fu(e,"output")}}),e.toJSONSchema=CP(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(X.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)=>jr(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>EP(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>zP(e,r,o),e.parseAsync=async(r,o)=>AP(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Uf(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>NP(e,r,o),e.decode=(r,o)=>RP(e,r,o),e.encodeAsync=async(r,o)=>MP(e,r,o),e.decodeAsync=async(r,o)=>DP(e,r,o),e.safeEncode=(r,o)=>OP(e,r,o),e.safeDecode=(r,o)=>jP(e,r,o),e.safeEncodeAsync=async(r,o)=>UP(e,r,o),e.safeDecodeAsync=async(r,o)=>LP(e,r,o),e.refine=(r,o)=>e.check(EE(r,o)),e.superRefine=r=>e.check(AE(r)),e.overwrite=r=>e.check(bo(r)),e.optional=()=>Ff(e),e.exactOptional=()=>pE(e),e.nullable=()=>Bf(e),e.nullish=()=>Ff(Bf(e)),e.nonoptional=r=>yE(e,r),e.array=()=>Jf(e),e.or=r=>Fx([e,r]),e.and=r=>rE(e,r),e.transform=r=>Vf(e,Vx(r)),e.default=r=>hE(e,r),e.prefault=r=>vE(e,r),e.catch=r=>wE(e,r),e.pipe=r=>Vf(e,r),e.readonly=()=>SE(e),e.describe=r=>{let o=e.clone();return Ir.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return Ir.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ir.get(e);let o=e.clone();return Ir.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),wx=N("_ZodString",(e,t)=>{Ps.init(e,t),De.init(e,t),e._zod.processJSONSchema=(o,n,i)=>C1(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(kf(...o)),e.includes=(...o)=>e.check(If(...o)),e.startsWith=(...o)=>e.check(Tf(...o)),e.endsWith=(...o)=>e.check(Cf(...o)),e.min=(...o)=>e.check(ya(...o)),e.max=(...o)=>e.check(du(...o)),e.length=(...o)=>e.check(pu(...o)),e.nonempty=(...o)=>e.check(ya(1,...o)),e.lowercase=o=>e.check(Sf(o)),e.uppercase=o=>e.check($f(o)),e.trim=()=>e.check(Af()),e.normalize=(...o)=>e.check(Ef(...o)),e.toLowerCase=()=>e.check(zf()),e.toUpperCase=()=>e.check(Nf()),e.slugify=()=>e.check(Rf())}),Zf=N("ZodString",(e,t)=>{Ps.init(e,t),wx.init(e,t),e.email=r=>e.check(s1(_x,r)),e.url=r=>e.check(_f(Gf,r)),e.jwt=r=>e.check(I1(Ox,r)),e.emoji=r=>e.check(p1(kx,r)),e.guid=r=>e.check(wf(Lf,r)),e.uuid=r=>e.check(l1(xo,r)),e.uuidv4=r=>e.check(c1(xo,r)),e.uuidv6=r=>e.check(u1(xo,r)),e.uuidv7=r=>e.check(d1(xo,r)),e.nanoid=r=>e.check(m1(Sx,r)),e.guid=r=>e.check(wf(Lf,r)),e.cuid=r=>e.check(f1($x,r)),e.cuid2=r=>e.check(h1(Ix,r)),e.ulid=r=>e.check(g1(Tx,r)),e.base64=r=>e.check(k1(Rx,r)),e.base64url=r=>e.check(S1(Mx,r)),e.xid=r=>e.check(v1(Cx,r)),e.ksuid=r=>e.check(y1(Px,r)),e.ipv4=r=>e.check(b1(Ex,r)),e.ipv6=r=>e.check(x1(Ax,r)),e.cidrv4=r=>e.check(w1(zx,r)),e.cidrv6=r=>e.check(_1(Nx,r)),e.e164=r=>e.check($1(Dx,r)),e.datetime=r=>e.check(px(r)),e.date=r=>e.check(fx(r)),e.time=r=>e.check(gx(r)),e.duration=r=>e.check(yx(r))});function bx(e){return ZC(Zf,e)}var at=N("ZodStringFormat",(e,t)=>{it.init(e,t),wx.init(e,t)}),_x=N("ZodEmail",(e,t)=>{z9.init(e,t),at.init(e,t)});function iG(e){return s1(_x,e)}var Lf=N("ZodGUID",(e,t)=>{E9.init(e,t),at.init(e,t)});function aG(e){return wf(Lf,e)}var xo=N("ZodUUID",(e,t)=>{A9.init(e,t),at.init(e,t)});function sG(e){return l1(xo,e)}function lG(e){return c1(xo,e)}function cG(e){return u1(xo,e)}function uG(e){return d1(xo,e)}var Gf=N("ZodURL",(e,t)=>{N9.init(e,t),at.init(e,t)});function dG(e){return _f(Gf,e)}function pG(e){return _f(Gf,{protocol:/^https?$/,hostname:Un.domain,...X.normalizeParams(e)})}var kx=N("ZodEmoji",(e,t)=>{R9.init(e,t),at.init(e,t)});function mG(e){return p1(kx,e)}var Sx=N("ZodNanoID",(e,t)=>{M9.init(e,t),at.init(e,t)});function fG(e){return m1(Sx,e)}var $x=N("ZodCUID",(e,t)=>{D9.init(e,t),at.init(e,t)});function hG(e){return f1($x,e)}var Ix=N("ZodCUID2",(e,t)=>{O9.init(e,t),at.init(e,t)});function gG(e){return h1(Ix,e)}var Tx=N("ZodULID",(e,t)=>{j9.init(e,t),at.init(e,t)});function vG(e){return g1(Tx,e)}var Cx=N("ZodXID",(e,t)=>{U9.init(e,t),at.init(e,t)});function yG(e){return v1(Cx,e)}var Px=N("ZodKSUID",(e,t)=>{L9.init(e,t),at.init(e,t)});function bG(e){return y1(Px,e)}var Ex=N("ZodIPv4",(e,t)=>{G9.init(e,t),at.init(e,t)});function xG(e){return b1(Ex,e)}var FP=N("ZodMAC",(e,t)=>{H9.init(e,t),at.init(e,t)});function wG(e){return GC(FP,e)}var Ax=N("ZodIPv6",(e,t)=>{q9.init(e,t),at.init(e,t)});function _G(e){return x1(Ax,e)}var zx=N("ZodCIDRv4",(e,t)=>{W9.init(e,t),at.init(e,t)});function kG(e){return w1(zx,e)}var Nx=N("ZodCIDRv6",(e,t)=>{J9.init(e,t),at.init(e,t)});function SG(e){return _1(Nx,e)}var Rx=N("ZodBase64",(e,t)=>{X9.init(e,t),at.init(e,t)});function $G(e){return k1(Rx,e)}var Mx=N("ZodBase64URL",(e,t)=>{Y9.init(e,t),at.init(e,t)});function IG(e){return S1(Mx,e)}var Dx=N("ZodE164",(e,t)=>{Q9.init(e,t),at.init(e,t)});function TG(e){return $1(Dx,e)}var Ox=N("ZodJWT",(e,t)=>{eC.init(e,t),at.init(e,t)});function CG(e){return I1(Ox,e)}var yu=N("ZodCustomStringFormat",(e,t)=>{tC.init(e,t),at.init(e,t)});function PG(e,t,r={}){return mu(yu,e,t,r)}function EG(e){return mu(yu,"hostname",Un.hostname,e)}function AG(e){return mu(yu,"hex",Un.hex,e)}function zG(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Un[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return mu(yu,o,n,t)}var qf=N("ZodNumber",(e,t)=>{t1.init(e,t),De.init(e,t),e._zod.processJSONSchema=(o,n,i)=>P1(e,o,n,i),e.gt=(o,n)=>e.check(wi(o,n)),e.gte=(o,n)=>e.check(Lr(o,n)),e.min=(o,n)=>e.check(Lr(o,n)),e.lt=(o,n)=>e.check(xi(o,n)),e.lte=(o,n)=>e.check(xn(o,n)),e.max=(o,n)=>e.check(xn(o,n)),e.int=o=>e.check(xx(o)),e.safe=o=>e.check(xx(o)),e.positive=o=>e.check(wi(0,o)),e.nonnegative=o=>e.check(Lr(0,o)),e.negative=o=>e.check(xi(0,o)),e.nonpositive=o=>e.check(xn(0,o)),e.multipleOf=(o,n)=>e.check(Es(o,n)),e.step=(o,n)=>e.check(Es(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 BP(e){return KC(qf,e)}var Ds=N("ZodNumberFormat",(e,t)=>{rC.init(e,t),qf.init(e,t)});function xx(e){return XC(Ds,e)}function NG(e){return YC(Ds,e)}function RG(e){return QC(Ds,e)}function MG(e){return eP(Ds,e)}function DG(e){return tP(Ds,e)}var Hf=N("ZodBoolean",(e,t)=>{yf.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>E1(e,r,o,n)});function VP(e){return rP(Hf,e)}var Wf=N("ZodBigInt",(e,t)=>{r1.init(e,t),De.init(e,t),e._zod.processJSONSchema=(o,n,i)=>A1(e,o,n,i),e.gte=(o,n)=>e.check(Lr(o,n)),e.min=(o,n)=>e.check(Lr(o,n)),e.gt=(o,n)=>e.check(wi(o,n)),e.gte=(o,n)=>e.check(Lr(o,n)),e.min=(o,n)=>e.check(Lr(o,n)),e.lt=(o,n)=>e.check(xi(o,n)),e.lte=(o,n)=>e.check(xn(o,n)),e.max=(o,n)=>e.check(xn(o,n)),e.positive=o=>e.check(wi(BigInt(0),o)),e.negative=o=>e.check(xi(BigInt(0),o)),e.nonpositive=o=>e.check(xn(BigInt(0),o)),e.nonnegative=o=>e.check(Lr(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Es(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function OG(e){return nP(Wf,e)}var jx=N("ZodBigIntFormat",(e,t)=>{nC.init(e,t),Wf.init(e,t)});function jG(e){return oP(jx,e)}function UG(e){return iP(jx,e)}var ZP=N("ZodSymbol",(e,t)=>{oC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>z1(e,r,o,n)});function LG(e){return aP(ZP,e)}var GP=N("ZodUndefined",(e,t)=>{iC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>R1(e,r,o,n)});function FG(e){return sP(GP,e)}var qP=N("ZodNull",(e,t)=>{aC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>N1(e,r,o,n)});function HP(e){return lP(qP,e)}var WP=N("ZodAny",(e,t)=>{sC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>O1(e,r,o,n)});function BG(){return cP(WP)}var JP=N("ZodUnknown",(e,t)=>{lC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>j1(e,r,o,n)});function Ms(){return uP(JP)}var KP=N("ZodNever",(e,t)=>{cC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>D1(e,r,o,n)});function Ux(e){return dP(KP,e)}var XP=N("ZodVoid",(e,t)=>{uC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>M1(e,r,o,n)});function VG(e){return pP(XP,e)}var Lx=N("ZodDate",(e,t)=>{dC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(o,n,i)=>U1(e,o,n,i),e.min=(o,n)=>e.check(Lr(o,n)),e.max=(o,n)=>e.check(xn(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 ZG(e){return mP(Lx,e)}var YP=N("ZodArray",(e,t)=>{pC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>X1(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(ya(r,o)),e.nonempty=r=>e.check(ya(1,r)),e.max=(r,o)=>e.check(du(r,o)),e.length=(r,o)=>e.check(pu(r,o)),e.unwrap=()=>e.element});function Jf(e,t){return xP(YP,e,t)}function GG(e){let t=e._zod.def.shape;return Bx(Object.keys(t))}var Kf=N("ZodObject",(e,t)=>{hC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Y1(e,r,o,n),X.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Bx(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ms()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ms()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ux()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>X.extend(e,r),e.safeExtend=r=>X.safeExtend(e,r),e.merge=r=>X.merge(e,r),e.pick=r=>X.pick(e,r),e.omit=r=>X.omit(e,r),e.partial=(...r)=>X.partial(Zx,e,r[0]),e.required=(...r)=>X.required(Gx,e,r[0])});function qG(e,t){let r={type:"object",shape:e??{},...X.normalizeParams(t)};return new Kf(r)}function HG(e,t){return new Kf({type:"object",shape:e,catchall:Ux(),...X.normalizeParams(t)})}function WG(e,t){return new Kf({type:"object",shape:e,catchall:Ms(),...X.normalizeParams(t)})}var Xf=N("ZodUnion",(e,t)=>{bf.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Mf(e,r,o,n),e.options=t.options});function Fx(e,t){return new Xf({type:"union",options:e,...X.normalizeParams(t)})}var QP=N("ZodXor",(e,t)=>{Xf.init(e,t),gC.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Mf(e,r,o,n),e.options=t.options});function JG(e,t){return new QP({type:"union",options:e,inclusive:!1,...X.normalizeParams(t)})}var eE=N("ZodDiscriminatedUnion",(e,t)=>{Xf.init(e,t),vC.init(e,t)});function KG(e,t,r){return new eE({type:"union",options:t,discriminator:e,...X.normalizeParams(r)})}var tE=N("ZodIntersection",(e,t)=>{yC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Q1(e,r,o,n)});function rE(e,t){return new tE({type:"intersection",left:e,right:t})}var nE=N("ZodTuple",(e,t)=>{n1.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ex(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function oE(e,t,r){let o=t instanceof Pe,n=o?r:t,i=o?t:null;return new nE({type:"tuple",items:e,rest:i,...X.normalizeParams(n)})}var Yf=N("ZodRecord",(e,t)=>{bC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>tx(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function iE(e,t,r){return new Yf({type:"record",keyType:e,valueType:t,...X.normalizeParams(r)})}function XG(e,t,r){let o=jr(e);return o._zod.values=void 0,new Yf({type:"record",keyType:o,valueType:t,...X.normalizeParams(r)})}function YG(e,t,r){return new Yf({type:"record",keyType:e,valueType:t,mode:"loose",...X.normalizeParams(r)})}var aE=N("ZodMap",(e,t)=>{xC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>J1(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(_i(...r)),e.nonempty=r=>e.check(_i(1,r)),e.max=(...r)=>e.check(As(...r)),e.size=(...r)=>e.check(uu(...r))});function QG(e,t,r){return new aE({type:"map",keyType:e,valueType:t,...X.normalizeParams(r)})}var sE=N("ZodSet",(e,t)=>{wC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>K1(e,r,o,n),e.min=(...r)=>e.check(_i(...r)),e.nonempty=r=>e.check(_i(1,r)),e.max=(...r)=>e.check(As(...r)),e.size=(...r)=>e.check(uu(...r))});function eq(e,t){return new sE({type:"set",valueType:e,...X.normalizeParams(t)})}var vu=N("ZodEnum",(e,t)=>{_C.init(e,t),De.init(e,t),e._zod.processJSONSchema=(o,n,i)=>L1(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 vu({...t,checks:[],...X.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 vu({...t,checks:[],...X.normalizeParams(n),entries:i})}});function Bx(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new vu({type:"enum",entries:r,...X.normalizeParams(t)})}function tq(e,t){return new vu({type:"enum",entries:e,...X.normalizeParams(t)})}var lE=N("ZodLiteral",(e,t)=>{kC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>F1(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 rq(e,t){return new lE({type:"literal",values:Array.isArray(e)?e:[e],...X.normalizeParams(t)})}var cE=N("ZodFile",(e,t)=>{SC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Z1(e,r,o,n),e.min=(r,o)=>e.check(_i(r,o)),e.max=(r,o)=>e.check(As(r,o)),e.mime=(r,o)=>e.check(Pf(Array.isArray(r)?r:[r],o))});function nq(e){return wP(cE,e)}var uE=N("ZodTransform",(e,t)=>{$C.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>W1(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ha(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(X.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(X.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 Vx(e){return new uE({type:"transform",transform:e})}var Zx=N("ZodOptional",(e,t)=>{o1.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Df(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ff(e){return new Zx({type:"optional",innerType:e})}var dE=N("ZodExactOptional",(e,t)=>{IC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Df(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function pE(e){return new dE({type:"optional",innerType:e})}var mE=N("ZodNullable",(e,t)=>{TC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>rx(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Bf(e){return new mE({type:"nullable",innerType:e})}function oq(e){return Ff(Bf(e))}var fE=N("ZodDefault",(e,t)=>{CC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ox(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function hE(e,t){return new fE({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():X.shallowClone(t)}})}var gE=N("ZodPrefault",(e,t)=>{PC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ix(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function vE(e,t){return new gE({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():X.shallowClone(t)}})}var Gx=N("ZodNonOptional",(e,t)=>{EC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>nx(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function yE(e,t){return new Gx({type:"nonoptional",innerType:e,...X.normalizeParams(t)})}var bE=N("ZodSuccess",(e,t)=>{AC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>G1(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function iq(e){return new bE({type:"success",innerType:e})}var xE=N("ZodCatch",(e,t)=>{zC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ax(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function wE(e,t){return new xE({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var _E=N("ZodNaN",(e,t)=>{NC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>B1(e,r,o,n)});function aq(e){return fP(_E,e)}var qx=N("ZodPipe",(e,t)=>{RC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sx(e,r,o,n),e.in=t.in,e.out=t.out});function Vf(e,t){return new qx({type:"pipe",in:e,out:t})}var Hx=N("ZodCodec",(e,t)=>{qx.init(e,t),xf.init(e,t)});function sq(e,t,r){return new Hx({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var kE=N("ZodReadonly",(e,t)=>{MC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>lx(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function SE(e){return new kE({type:"readonly",innerType:e})}var $E=N("ZodTemplateLiteral",(e,t)=>{DC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>V1(e,r,o,n)});function lq(e,t){return new $E({type:"template_literal",parts:e,...X.normalizeParams(t)})}var IE=N("ZodLazy",(e,t)=>{UC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ux(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function TE(e){return new IE({type:"lazy",getter:e})}var CE=N("ZodPromise",(e,t)=>{jC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cx(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function cq(e){return new CE({type:"promise",innerType:e})}var PE=N("ZodFunction",(e,t)=>{OC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>H1(e,r,o,n)});function uq(e){return new PE({type:"function",input:Array.isArray(e?.input)?oE(e?.input):e?.input??Jf(Ms()),output:e?.output??Ms()})}var Qf=N("ZodCustom",(e,t)=>{LC.init(e,t),De.init(e,t),e._zod.processJSONSchema=(r,o,n)=>q1(e,r,o,n)});function dq(e){let t=new dt({check:"custom"});return t._zod.check=e,t}function pq(e,t){return _P(Qf,e??(()=>!0),t)}function EE(e,t={}){return kP(Qf,e,t)}function AE(e){return SP(e)}var mq=$P,fq=IP;function hq(e,t={}){let r=new Qf({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...X.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 gq=(...e)=>TP({Codec:Hx,Boolean:Hf,String:Zf},...e);function vq(e){let t=TE(()=>
50Fx([bx(e),BP(),VP(),HP(),Jf(t),iE(bx(),t)]));return t}function yq(e,t){return Vf(Vx(e),t)}var zE;zE||(zE={});var zke={...gu,...jf,iso:hu};Wt(i1());var Ve;(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},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})(Ve||(Ve={}));var NE;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(NE||(NE={}));var ue=Ve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wo=e=>{switch(typeof e){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return Number.isNaN(e)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(e)?ue.array:e===null?ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ue.promise:typeof Map<"u"&&e instanceof Map?ue.map:typeof Set<"u"&&e instanceof Set?ue.set:typeof Date<"u"&&e instanceof Date?ue.date:ue.object;default:return ue.unknown}};
vendor: 5,698 bytes, line 50
50var H=Ve.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 Br=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 c=a.path[l];l===a.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(r(a))):s[c]=s[c]||{_errors:[]},s=s[c],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,Ve.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()}};Br.create=e=>new Br(e);var kq=(e,t)=>{let r;switch(e.code){case H.invalid_type:e.received===ue.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case H.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ve.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ve.joinValues(e.keys,", ")}`;break;case H.invalid_union:r="Invalid input";break;case H.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ve.joinValues(e.options)}`;break;case H.invalid_enum_value:r=`Invalid enum value. Expected ${Ve.joinValues(e.options)}, received '${e.received}'`;break;case H.invalid_arguments:r="Invalid function arguments";break;case H.invalid_return_type:r="Invalid function return type";break;case H.invalid_date:r="Invalid date";break;case H.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}"`:Ve.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case H.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 H.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 H.custom:r="Invalid input";break;case H.invalid_intersection_types:r="Intersection results could not be merged";break;case H.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case H.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ve.assertNever(e)}return{message:r}},ki=kq;var Sq=ki;function bu(){return Sq}var e0=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(c=>!!c).slice().reverse();for(let c of l)s=c(a,{data:t,defaultError:s}).message;return{...n,path:i,message:s}};function oe(e,t){let r=bu(),o=e0({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===ki?void 0:ki].filter(n=>!!n)});e.common.issues.push(o)}var er=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 ke;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,538 bytes, line 50
50if(i.status==="aborted"||a.status==="aborted")return ke;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}}},ke=Object.freeze({status:"aborted"}),Os=e=>({status:"dirty",value:e}),ur=e=>({status:"valid",value:e}),Wx=e=>e.status==="aborted",Jx=e=>e.status==="dirty",xa=e=>e.status==="valid",xu=e=>typeof Promise<"u"&&e instanceof Promise;var pe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(pe||(pe={}));var an=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}},RE=(e,t)=>{if(xa(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 Br(e.common.issues);return this._error=r,this._error}}};function Ne(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 Fe=class{get description(){return this._def.description}_getType(t){return wo(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new er,ctx:{common:t.parent.common,data:t.data,parsedType:wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(xu(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:wo(t)},n=this._parseSync({data:t,path:o.path,parent:o});return RE(o,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wo(t)};if(!this["~standard"].async)try{let o=this._parseSync({data:t,path:[],parent:r});return xa(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=>xa(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:wo(t)},n=this._parse({data:t,path:o.path,parent:o}),i=await(xu(n)?n:Promise.resolve(n));return RE(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:H.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 _n({schema:this,typeName:Y.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 wn.create(this,this._def)}nullable(){return So.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $i.create(this)}promise(){return wa.create(this,this._def)}or(t){return Bs.create([this,t],this._def)}and(t){return Vs.create(this,t,this._def)}transform(t){return new _n({...Ne(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Ws({...Ne(this._def),innerType:this,defaultValue:r,typeName:Y.ZodDefault})}brand(){return new t0({typeName:Y.ZodBranded,type:this,...Ne(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Js({...Ne(this._def),innerType:this,catchValue:r,typeName:Y.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return r0.create(this,t)}readonly(){return Ks.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},$q=/^c[^\s-]{8,}$/i,Iq=/^[0-9a-z]+$/,Tq=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Cq=/^[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,Pq=/^[a-z0-9_-]{21}$/i,Eq=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Aq=/^[-+]?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)?)??$/,zq=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Nq="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Kx,Rq=/^(?:(?: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])$/,Mq=/^(?:(?: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])$/,Dq=/^(([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]))$/,Oq=/^(([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])$/,jq=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Uq=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ME="((\\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])))",Lq=new RegExp(`^${ME}$`);function DE(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 Fq(e){return new RegExp(`^${DE(e)}$`)}function Bq(e){let t=`${ME}T${DE(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 Vq(e,t){return!!((t==="v4"||!t)&&Rq.test(e)||(t==="v6"||!t)&&Dq.test(e))}function Zq(e,t){if(!Eq.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 Gq(e,t){return!!((t==="v4"||!t)&&Mq.test(e)||(t==="v6"||!t)&&Oq.test(e))}var Us=class e extends Fe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ue.string){let i=this._getOrReturnCtx(t);return oe(i,{code:H.invalid_type,expected:ue.string,received:i.parsedType}),ke}let o=new er,n;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(n=this._getOrReturnCtx(t,n),oe(n,{code:H.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),oe(n,{code:H.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?oe(n,{code:H.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&oe(n,{code:H.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),o.dirty())}else if(i.kind==="email")zq.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"email",code:H.invalid_string,message:i.message}),o.dirty());else if(i.kind==="emoji")Kx||(Kx=new RegExp(Nq,"u")),Kx.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"emoji",code:H.invalid_string,message:i.message}),o.dirty());else if(i.kind==="uuid")Cq.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"uuid",code:H.invalid_string,message:i.message}),o.dirty());else if(i.kind==="nanoid")Pq.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"nanoid",code:H.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid")$q.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"cuid",code:H.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid2")Iq.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"cuid2",code:H.invalid_string,message:i.message}),o.dirty());else if(i.kind==="ulid")Tq.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"ulid",code:H.invalid_string,message:i.message}),o.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),oe(n,{validation:"url",code:H.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),oe(n,{validation:"regex",code:H.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),oe(n,{code:H.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),oe(n,{code:H.invalid_string,validation:{startsWith:i.value},message:i.message}),o.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(n=this._getOrReturnCtx(t,n),oe(n,{code:H.invalid_string,validation:{endsWith:i.value},message:i.message}),o.dirty()):i.kind==="datetime"?Bq(i).test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{code:H.invalid_string,validation:"datetime",message:i.message}),o.dirty()):i.kind==="date"?Lq.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{code:H.invalid_string,validation:"date",message:i.message}),o.dirty()):i.kind==="time"?Fq(i).test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{code:H.invalid_string,validation:"time",message:i.message}),o.dirty()):i.kind==="duration"?Aq.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"duration",code:H.invalid_string,message:i.message}),o.dirty()):i.kind==="ip"?Vq(t.data,i.version)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"ip",code:H.invalid_string,message:i.message}),o.dirty()):i.kind==="jwt"?Zq(t.data,i.alg)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"jwt",code:H.invalid_string,message:i.message}),o.dirty()):i.kind==="cidr"?Gq(t.data,i.version)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"cidr",code:H.invalid_string,message:i.message}),o.dirty()):i.kind==="base64"?jq.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"base64",code:H.invalid_string,message:i.message}),o.dirty()):i.kind==="base64url"?Uq.test(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{validation:"base64url",code:H.invalid_string,message:i.message}),o.dirty()):Ve.assertNever(i);return{status:o.value,value:t.data}}_regex(t,r,o){return this.refinement(n=>t.test(n),{validation:r,code:H.invalid_string,...pe.errToObj(o)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...pe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...pe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...pe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...pe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...pe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...pe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...pe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...pe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...pe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...pe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...pe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...pe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...pe.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,...pe.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,...pe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...pe.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...pe.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...pe.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...pe.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...pe.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...pe.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...pe.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...pe.errToObj(r)})}nonempty(t){return this.min(1,pe.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}};Us.create=e=>new Us({checks:[],typeName:Y.ZodString,coerce:e?.coerce??!1,...Ne(e)});function qq(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 wu=class e extends Fe{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)!==ue.number){let i=this._getOrReturnCtx(t);return oe(i,{code:H.invalid_type,expected:ue.number,received:i.parsedType}),ke}let o,n=new er;for(let i of this._def.checks)i.kind==="int"?Ve.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{code:H.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),oe(o,{code:H.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),oe(o,{code:H.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="multipleOf"?qq(t.data,i.value)!==0&&(o=this._getOrReturnCtx(t,o),oe(o,{code:H.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{code:H.not_finite,message:i.message}),n.dirty()):Ve.assertNever(i);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,pe.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:pe.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:pe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:pe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.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"&&Ve.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)}};wu.create=e=>new wu({checks:[],typeName:Y.ZodNumber,coerce:e?.coerce||!1,...Ne(e)});var _u=class e extends Fe{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)!==ue.bigint)return this._getInvalidInput(t);let o,n=new er;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),oe(o,{code:H.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),oe(o,{code:H.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),oe(o,{code:H.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):Ve.assertNever(i);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return oe(r,{code:H.invalid_type,expected:ue.bigint,received:r.parsedType}),ke}gte(t,r){return this.setLimit("min",t,!0,pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,pe.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:pe.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:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:pe.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}};_u.create=e=>new _u({checks:[],typeName:Y.ZodBigInt,coerce:e?.coerce??!1,...Ne(e)});var ku=class extends Fe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ue.boolean){let o=this._getOrReturnCtx(t);return oe(o,{code:H.invalid_type,expected:ue.boolean,received:o.parsedType}),ke}return ur(t.data)}};ku.create=e=>new ku({typeName:Y.ZodBoolean,coerce:e?.coerce||!1,...Ne(e)});var Su=class e extends Fe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ue.date){let i=this._getOrReturnCtx(t);return oe(i,{code:H.invalid_type,expected:ue.date,received:i.parsedType}),ke}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return oe(i,{code:H.invalid_date}),ke}let o=new er,n;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(n=this._getOrReturnCtx(t,n),oe(n,{code:H.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),oe(n,{code:H.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),o.dirty()):Ve.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:pe.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:pe.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}};Su.create=e=>new Su({checks:[],coerce:e?.coerce||!1,typeName:Y.ZodDate,...Ne(e)});var $u=class extends Fe{_parse(t){if(this._getType(t)!==ue.symbol){let o=this._getOrReturnCtx(t);return oe(o,{code:H.invalid_type,expected:ue.symbol,received:o.parsedType}),ke}return ur(t.data)}};$u.create=e=>new $u({typeName:Y.ZodSymbol,...Ne(e)});var Ls=class extends Fe{_parse(t){if(this._getType(t)!==ue.undefined){let o=this._getOrReturnCtx(t);return oe(o,{code:H.invalid_type,expected:ue.undefined,received:o.parsedType}),ke}return ur(t.data)}};Ls.create=e=>new Ls({typeName:Y.ZodUndefined,...Ne(e)});var Fs=class extends Fe{_parse(t){if(this._getType(t)!==ue.null){let o=this._getOrReturnCtx(t);return oe(o,{code:H.invalid_type,expected:ue.null,received:o.parsedType}),ke}return ur(t.data)}};Fs.create=e=>new Fs({typeName:Y.ZodNull,...Ne(e)});var Iu=class extends Fe{constructor(){super(...arguments),this._any=!0}_parse(t){return ur(t.data)}};Iu.create=e=>new Iu({typeName:Y.ZodAny,...Ne(e)});var Si=class extends Fe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ur(t.data)}};Si.create=e=>new Si({typeName:Y.ZodUnknown,...Ne(e)});var Ln=class extends Fe{_parse(t){let r=this._getOrReturnCtx(t);return oe(r,{code:H.invalid_type,expected:ue.never,received:r.parsedType}),ke}};Ln.create=e=>new Ln({typeName:Y.ZodNever,...Ne(e)});var Tu=class extends Fe{_parse(t){if(this._getType(t)!==ue.undefined){let o=this._getOrReturnCtx(t);return oe(o,{code:H.invalid_type,expected:ue.void,received:o.parsedType}),ke}return ur(t.data)}};Tu.create=e=>new Tu({typeName:Y.ZodVoid,...Ne(e)});var $i=class e extends Fe{_parse(t){let{ctx:r,status:o}=this._processInputParams(t),n=this._def;if(r.parsedType!==ue.array)return oe(r,{code:H.invalid_type,expected:ue.array,received:r.parsedType}),ke;if(n.exactLength!==null){let a=r.data.length>n.exactLength.value,s=r.data.length<n.exactLength.value;(a||s)&&(oe(r,{code:a?H.too_big:H.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&&(oe(r,{code:H.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&&(oe(r,{code:H.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 an(r,a,r.path,s)))).then(a=>er.mergeArray(o,a));let i=[...r.data].map((a,s)=>n.type._parseSync(new an(r,a,r.path,s)));return er.mergeArray(o,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:pe.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:pe.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:pe.toString(r)}})}nonempty(t){return this.min(1,t)}};$i.create=(e,t)=>new $i({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...Ne(t)});function js(e){if(e instanceof Vr){let t={};for(let r in e.shape){let o=e.shape[r];t[r]=wn.create(js(o))}return new Vr({...e._def,shape:()=>t})}else return e instanceof $i?new $i({...e._def,type:js(e.element)}):e instanceof wn?wn.create(js(e.unwrap())):e instanceof So?So.create(js(e.unwrap())):e instanceof ko?ko.create(e.items.map(t=>js(t))):e}var Vr=class e extends Fe{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=Ve.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==ue.object){let c=this._getOrReturnCtx(t);return oe(c,{code:H.invalid_type,expected:ue.object,received:c.parsedType}),ke}let{status:o,ctx:n}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Ln&&this._def.unknownKeys==="strip"))for(let c in n.data)a.includes(c)||s.push(c);let l=[];for(let c of a){let u=i[c],d=n.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new an(n,d,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof Ln){let c=this._def.unknownKeys;if(c==="passthrough")for(let u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(c==="strict")s.length>0&&(oe(n,{code:H.unrecognized_keys,keys:s}),o.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let u of s){let d=n.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new an(n,d,n.path,u)),alwaysSet:u in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let c=[];for(let u of l){let d=await u.key,p=await u.value;c.push({key:d,value:p,alwaysSet:u.alwaysSet})}return c}).then(c=>er.mergeObjectSync(o,c)):er.mergeObjectSync(o,l)}get shape(){return this._def.shape()}strict(t){return pe.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:pe.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:Y.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 Ve.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 Ve.objectKeys(this.shape))t[o]||(r[o]=this.shape[o]);return new e({...this._def,shape:()=>r})}deepPartial(){return js(this)}partial(t){let r={};for(let o of Ve.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 Ve.objectKeys(this.shape))if(t&&!t[o])r[o]=this.shape[o];else{let i=this.shape[o];for(;i instanceof wn;)i=i._def.innerType;r[o]=i}return new e({...this._def,shape:()=>r})}keyof(){return OE(Ve.objectKeys(this.shape))}};Vr.create=(e,t)=>new Vr({shape:()=>e,unknownKeys:"strip",catchall:Ln.create(),typeName:Y.ZodObject,...Ne(t)});Vr.strictCreate=(e,t)=>new Vr({shape:()=>e,unknownKeys:"strict",catchall:Ln.create(),typeName:Y.ZodObject,...Ne(t)});Vr.lazycreate=(e,t)=>new Vr({shape:e,unknownKeys:"strip",catchall:Ln.create(),typeName:Y.ZodObject,...Ne(t)});var Bs=class extends Fe{_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 Br(s.ctx.common.issues));return oe(r,{code:H.invalid_union,unionErrors:a}),ke}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 c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let s=a.map(l=>new Br(l));return oe(r,{code:H.invalid_union,unionErrors:s}),ke}}get options(){return this._def.options}};Bs.create=(e,t)=>new Bs({options:e,typeName:Y.ZodUnion,...Ne(t)});var _o=e=>e instanceof Zs?_o(e.schema):e instanceof _n?_o(e.innerType()):e instanceof Gs?[e.value]:e instanceof qs?e.options:e instanceof Hs?Ve.objectValues(e.enum):e instanceof Ws?_o(e._def.innerType):e instanceof Ls?[void 0]:e instanceof Fs?[null]:e instanceof wn?[void 0,..._o(e.unwrap())]:e instanceof So?[null,..._o(e.unwrap())]:e instanceof t0||e instanceof Ks?_o(e.unwrap()):e instanceof Js?_o(e._def.innerType):[],Xx=class e extends Fe{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.object)return oe(r,{code:H.invalid_type,expected:ue.object,received:r.parsedType}),ke;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}):(oe(r,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),ke)}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=_o(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:Y.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...Ne(o)})}};function Yx(e,t){let r=wo(e),o=wo(t);if(e===t)return{valid:!0,data:e};if(r===ue.object&&o===ue.object){let n=Ve.objectKeys(t),i=Ve.objectKeys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};for(let s of i){let l=Yx(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(r===ue.array&&o===ue.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=Yx(a,s);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===ue.date&&o===ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Vs=class extends Fe{_parse(t){let{status:r,ctx:o}=this._processInputParams(t),n=(i,a)=>{if(Wx(i)||Wx(a))return ke;let s=Yx(i.value,a.value);return s.valid?((Jx(i)||Jx(a))&&r.dirty(),{status:r.value,value:s.data}):(oe(o,{code:H.invalid_intersection_types}),ke)};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}))}};Vs.create=(e,t,r)=>new Vs({left:e,right:t,typeName:Y.ZodIntersection,...Ne(r)});var ko=class e extends Fe{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==ue.array)return oe(o,{code:H.invalid_type,expected:ue.array,received:o.parsedType}),ke;if(o.data.length<this._def.items.length)return oe(o,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ke;!this._def.rest&&o.data.length>this._def.items.length&&(oe(o,{code:H.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 an(o,a,o.path,s)):null}).filter(a=>!!a);return o.common.async?Promise.all(i).then(a=>er.mergeArray(r,a)):er.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ko.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ko({items:e,typeName:Y.ZodTuple,rest:null,...Ne(t)})};var Qx=class e extends Fe{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!==ue.object)return oe(o,{code:H.invalid_type,expected:ue.object,received:o.parsedType}),ke;let n=[],i=this._def.keyType,a=this._def.valueType;for(let s in o.data)n.push({key:i._parse(new an(o,s,o.path,s)),value:a._parse(new an(o,o.data[s],o.path,s)),alwaysSet:s in o.data});return o.common.async?er.mergeObjectAsync(r,n):er.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,o){return r instanceof Fe?new e({keyType:t,valueType:r,typeName:Y.ZodRecord,...Ne(o)}):new e({keyType:Us.create(),valueType:t,typeName:Y.ZodRecord,...Ne(r)})}},Cu=class extends Fe{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!==ue.map)return oe(o,{code:H.invalid_type,expected:ue.map,received:o.parsedType}),ke;let n=this._def.keyType,i=this._def.valueType,a=[...o.data.entries()].map(([s,l],c)=>({key:n._parse(new an(o,s,o.path,[c,"key"])),value:i._parse(new an(o,l,o.path,[c,"value"]))}));if(o.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let l of a){let c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return ke;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(c.value,u.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let l of a){let c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return ke;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(c.value,u.value)}return{status:r.value,value:s}}}};Cu.create=(e,t,r)=>new Cu({valueType:t,keyType:e,typeName:Y.ZodMap,...Ne(r)});var Pu=class e extends Fe{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==ue.set)return oe(o,{code:H.invalid_type,expected:ue.set,received:o.parsedType}),ke;let n=this._def;n.minSize!==null&&o.data.size<n.minSize.value&&(oe(o,{code:H.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&&(oe(o,{code:H.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 c=new Set;for(let u of l){if(u.status==="aborted")return ke;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}let s=[...o.data.values()].map((l,c)=>i._parse(new an(o,l,o.path,c)));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:pe.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:pe.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Pu.create=(e,t)=>new Pu({valueType:e,minSize:null,maxSize:null,typeName:Y.ZodSet,...Ne(t)});var e4=class e extends Fe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.function)return oe(r,{code:H.invalid_type,expected:ue.function,received:r.parsedType}),ke;function o(s,l){return e0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,bu(),ki].filter(c=>!!c),issueData:{code:H.invalid_arguments,argumentsError:l}})}function n(s,l){return e0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,bu(),ki].filter(c=>!!c),issueData:{code:H.invalid_return_type,returnTypeError:l}})}let i={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof wa){let s=this;return ur(async function(...l){let c=new Br([]),u=await s._def.args.parseAsync(l,i).catch(m=>{throw c.addIssue(o(l,m)),c}),d=await Reflect.apply(a,this,u);return await s._def.returns._def.type.parseAsync(d,i).catch(m=>{throw c.addIssue(n(d,m)),c})})}else{let s=this;return ur(function(...l){let c=s._def.args.safeParse(l,i);if(!c.success)throw new Br([o(l,c.error)]);let u=Reflect.apply(a,this,c.data),d=s._def.returns.safeParse(u,i);if(!d.success)throw new Br([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ko.create(t).rest(Si.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||ko.create([]).rest(Si.create()),returns:r||Si.create(),typeName:Y.ZodFunction,...Ne(o)})}},Zs=class extends Fe{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})}};Zs.create=(e,t)=>new Zs({getter:e,typeName:Y.ZodLazy,...Ne(t)});var Gs=class extends Fe{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return oe(r,{received:r.data,code:H.invalid_literal,expected:this._def.value}),ke}return{status:"valid",value:t.data}}get value(){return this._def.value}};Gs.create=(e,t)=>new Gs({value:e,typeName:Y.ZodLiteral,...Ne(t)});function OE(e,t){return new qs({values:e,typeName:Y.ZodEnum,...Ne(t)})}var qs=class e extends Fe{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),o=this._def.values;return oe(r,{expected:Ve.joinValues(o),received:r.parsedType,code:H.invalid_type}),ke}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 oe(r,{received:r.data,code:H.invalid_enum_value,options:o}),ke}return ur(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})}};qs.create=OE;var Hs=class extends Fe{_parse(t){let r=Ve.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==ue.string&&o.parsedType!==ue.number){let n=Ve.objectValues(r);return oe(o,{expected:Ve.joinValues(n),received:o.parsedType,code:H.invalid_type}),ke}if(this._cache||(this._cache=new Set(Ve.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=Ve.objectValues(r);return oe(o,{received:o.data,code:H.invalid_enum_value,options:n}),ke}return ur(t.data)}get enum(){return this._def.values}};Hs.create=(e,t)=>new Hs({values:e,typeName:Y.ZodNativeEnum,...Ne(t)});var wa=class extends Fe{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.promise&&r.common.async===!1)return oe(r,{code:H.invalid_type,expected:ue.promise,received:r.parsedType}),ke;let o=r.parsedType===ue.promise?r.data:Promise.resolve(r.data);return ur(o.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};wa.create=(e,t)=>new wa({type:e,typeName:Y.ZodPromise,...Ne(t)});var _n=class extends Fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.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=>{oe(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 ke;let l=await this._def.schema._parseAsync({data:s,path:o.path,parent:o});return l.status==="aborted"?ke:l.status==="dirty"?Os(l.value):r.value==="dirty"?Os(l.value):l});{if(r.value==="aborted")return ke;let s=this._def.schema._parseSync({data:a,path:o.path,parent:o});return s.status==="aborted"?ke:s.status==="dirty"?Os(s.value):r.value==="dirty"?Os(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"?ke:(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"?ke:(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(!xa(a))return ke;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=>xa(a)?Promise.resolve(n.transform(a.value,i)).then(s=>({status:r.value,value:s})):ke);Ve.assertNever(n)}};_n.create=(e,t,r)=>new _n({schema:e,typeName:Y.ZodEffects,effect:t,...Ne(r)});_n.createWithPreprocess=(e,t,r)=>new _n({schema:t,effect:{type:"preprocess",transform:e},typeName:Y.ZodEffects,...Ne(r)});var wn=class extends Fe{_parse(t){return this._getType(t)===ue.undefined?ur(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};wn.create=(e,t)=>new wn({innerType:e,typeName:Y.ZodOptional,...Ne(t)});var So=class extends Fe{_parse(t){return this._getType(t)===ue.null?ur(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};So.create=(e,t)=>new So({innerType:e,typeName:Y.ZodNullable,...Ne(t)});var Ws=class extends Fe{_parse(t){let{ctx:r}=this._processInputParams(t),o=r.data;return r.parsedType===ue.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ws.create=(e,t)=>new Ws({innerType:e,typeName:Y.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ne(t)});var Js=class extends Fe{_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 xu(n)?n.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Br(o.common.issues)},input:o.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Br(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};Js.create=(e,t)=>new Js({innerType:e,typeName:Y.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ne(t)});var Eu=class extends Fe{_parse(t){if(this._getType(t)!==ue.nan){let o=this._getOrReturnCtx(t);return oe(o,{code:H.invalid_type,expected:ue.nan,received:o.parsedType}),ke}return{status:"valid",value:t.data}}};Eu.create=e=>new Eu({typeName:Y.ZodNaN,...Ne(e)});var t0=class extends Fe{_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}},r0=class e extends Fe{_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"?ke:i.status==="dirty"?(r.dirty(),Os(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"?ke: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:Y.ZodPipeline})}},Ks=class extends Fe{_parse(t){let r=this._def.innerType._parse(t),o=n=>(xa(n)&&(n.value=Object.freeze(n.value)),n);return xu(r)?r.then(n=>o(n)):o(r)}unwrap(){return this._def.innerType}};Ks.create=(e,t)=>
50new Ks({innerType:e,typeName:Y.ZodReadonly,...Ne(t)});var SSe={object:Vr.lazycreate},Y;(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"})(Y||(Y={}));var $Se=Us.create,ISe=wu.create,TSe=Eu.create,CSe=_u.create,PSe=ku.create,ESe=Su.create,ASe=$u.create,zSe=Ls.create,NSe=Fs.create,RSe=Iu.create,MSe=Si.create,DSe=Ln.create,OSe=Tu.create,jSe=$i.create,USe=Vr.create,LSe=Vr.strictCreate,FSe=Bs.create,BSe=Xx.create,VSe=Vs.create,ZSe=ko.create,GSe=Qx.create,qSe=Cu.create,HSe=Pu.create,WSe=e4.create,JSe=Zs.create,KSe=Gs.create,XSe=qs.create,YSe=Hs.create,QSe=wa.create,e5e=_n.create,t5e=wn.create,r5e=So.create,n5e=_n.createWithPreprocess,o5e=r0.create;var Au=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}},jE=10,Wq=13,_a=32;function t4(e){}function FE(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=t4,onError:r=t4,onRetry:o=t4,onComment:n,maxBufferSize:i}=e,a=[],s=0,l=!0,c,u="",d=0,p,m=!1;function g(w){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,w.charCodeAt(0)===239&&w.charCodeAt(1)===187&&w.charCodeAt(2)===191&&(w=w.slice(3))),a.length===0){let j=y(w);j!==""&&(a.push(j),s=j.length),x();return}if(w.indexOf(` 51`)===-1&&w.indexOf("\r")===-1){a.push(w),s+=w.length,x();return}a.push(w);let P=a.join("");a.length=0,s=0;let D=y(P);D!==""&&(a.push(D),s=D.length),x()}function x(){i!==void 0&&(s+u.length<=i||(m=!0,a.length=0,s=0,c=void 0,u="",d=0,p=void 0,r(new Au(`Buffered data exceeded max buffer size of ${i} characters`,{type:"max-buffer-size-exceeded"}))))}function y(w){let P=0;if(w.indexOf("\r")===-1){let D=w.indexOf(` 52`,P);for(;D!==-1;){if(P===D){d>0&&t({id:c,event:p,data:u}),c=void 0,u="",d=0,p=void 0,P=D+1,D=w.indexOf(` 53`,P);continue}let j=w.charCodeAt(P);if(UE(w,P,j)){let M=w.charCodeAt(P+5)===_a?P+6:P+5,U=w.slice(M,D);if(d===0&&w.charCodeAt(D+1)===jE){t({id:c,event:p,data:U}),c=void 0,u="",p=void 0,P=D+2,D=w.indexOf(` 54`,P);continue}u=d===0?U:`${u} 55${U}`,d++}else LE(w,P,j)?p=w.slice(w.charCodeAt(P+6)===_a?P+7:P+6,D)||void 0:k(w,P,D);P=D+1,D=w.indexOf(` 56`,P)}return w.slice(P)}for(;P<w.length;){let D=w.indexOf("\r",P),j=w.indexOf(` 57`,P),M=-1;if(D!==-1&&j!==-1?M=D<j?D:j:D!==-1?D===w.length-1?M=-1:M=D:j!==-1&&(M=j),M===-1)break;k(w,P,M),P=M+1,w.charCodeAt(P-1)===Wq&&w.charCodeAt(P)===jE&&P++}return w.slice(P)}function k(w,P,D){if(P===D){$();return}let j=w.charCodeAt(P);if(UE(w,P,j)){let ve=w.charCodeAt(P+5)===_a?P+6:P+5,$e=w.slice(ve,D);u=d===0?$e:`${u} 58${$e}`,d++;return}if(LE(w,P,j)){p=w.slice(w.charCodeAt(P+6)===_a?P+7:P+6,D)||void 0;return}if(j===105&&w.charCodeAt(P+1)===100&&w.charCodeAt(P+2)===58){let ve=w.slice(w.charCodeAt(P+3)===_a?P+4:P+3,D);c=ve.includes("\0")?void 0:ve;return}if(j===58){if(n){let ve=w.slice(P,D);n(ve.slice(w.charCodeAt(P+1)===_a?2:1))}return}let M=w.slice(P,D),U=M.indexOf(":");if(U===-1){_(M,"",M);return}let V=M.slice(0,U),F=M.charCodeAt(U+1)===_a?2:1,Ge=M.slice(U+F);_(V,Ge,M)}function _(w,P,D){switch(w){case"event":p=P||void 0;break;case"data":u=d===0?P:`${u} 59${P}`,d++;break;case"id":c=P.includes("\0")?void 0:P;break;case"retry":/^\d+$/.test(P)?o(parseInt(P,10)):r(new Au(`Invalid \`retry\` value: "${P}"`,{type:"invalid-retry",value:P,line:D}));break;default:r(new Au(`Unknown field "${w.length>20?`${w.slice(0,20)}\u2026`:w}"`,{type:"unknown-field",field:w,value:P,line:D}));break}}function $(){d>0&&t({id:c,event:p,data:u}),c=void 0,u="",d=0,p=void 0}function I(w={}){if(w.consume&&a.length>0){let P=a.join("");k(P,0,P.length)}l=!0,c=void 0,u="",d=0,p=void 0,a.length=0,s=0,m=!1}return{feed:g,reset:I}}function UE(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 LE(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 n0=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:o,maxBufferSize:n}={}){let i;
59super({start(a){i=FE({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:v5e,atob:y5e}=globalThis;async function o0(e){var t;try{await((t=e.body)==null?void 0:t.cancel())}catch{}}var WE="AI_DownloadError",JE=`vercel.ai.error.${WE}`,Jq=Symbol.for(JE),BE,VE,pr=class extends(VE=Ze,BE=Jq,VE){constructor({url:e,statusCode:t,statusText:r,cause:o,message:n=o==null?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${o}`}){super({name:WE,message:n,cause:o}),this[BE]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return Ze.hasMarker(e,JE)}};function Kq(e=globalThis){return e.window!=null}function Xq(e){let t;try{t=new URL(e)}catch{throw new pr({url:e,message:`Invalid URL: ${e}`})}if(t.protocol==="data:")return;if(t.protocol!=="http:"&&t.protocol!=="https:")throw new pr({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname.toLowerCase().replace(/\.+$/,"");if(!r)throw new pr({url:e,message:"URL must have a hostname"});if(r==="localhost"||r.endsWith(".local")||r.endsWith(".localhost"))throw new pr({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){let o=r.slice(1,-1);if(KE(o))throw new pr({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if(s4(r)){if(l4(r))throw new pr({url:e,message:`URL with IP address ${r} is not allowed`});return}}function Yq({address:e,family:t,hostname:r}){if(t===4?!s4(e)||l4(e):t===6?KE(e):!0)throw new pr({url:r,message:`Hostname ${r} resolved to disallowed IP address ${e}`})}function s4(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 l4(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 Qq(e){let t=e.toLowerCase(),r=t.indexOf("%");
59r!==-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 c=0;c<l.length;c++){let u=l[c];if(u.includes(".")){if(c!==l.length-1||!s4(u))return null;let[d,p,m,g]=u.split(".").map(Number);s.push(d<<8|p,m<<8|g);continue}if(!/^[0-9a-f]{1,4}$/.test(u))return null;s.push(parseInt(u,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 KE(e){let t=Qq(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 l4(`${n}.${i}.${a}.${s}`)}return!1}function eH(e){return((t,r,o)=>{e(t,{...r,all:!0},(n,i)=>{if(n){o(n);return}try{let[a]=i;if(a==null)throw new Error(`Hostname ${t} did not resolve to an address`);for(let{address:s,family:l}of i)Yq({address:s,family:l,hostname:t});r.all===!0?o(null,i):o(null,a.address,a.family)}catch(a){o(a instanceof Error?a:new Error(String(a)))}})})}var r4,XE=globalThis.fetch,tH=oH(XE);function rH(){var e,t;let r=globalThis.process;return((e=r?.release)==null?void 0:e.name)==="node"&&((t=r.versions)==null?void 0:t.bun)==null}async function nH(){return!rH()||!tH||globalThis.fetch!==XE?globalThis.fetch:r4??(r4=iH())}function oH(e){let t=Function.prototype.toString.call(e);return t.includes("internal/deps/undici")||t.includes("lazy loading of undici")}async function iH(){let[{createRequire:e},{lookup:t}]=await Promise.all([ZE("node:module"),ZE("node:dns")]),{Agent:r,fetch:o}=e(YE())("undici"),n=new r({connect:{lookup:eH(t)}});return((i,a)=>o(i,{...a,dispatcher:n}))}async function ZE(e){var t;let r=globalThis.process,o=(t=r?.getBuiltinModule)==null?void 0:t.call(r,e);if(o==null)throw new Error(`Node.js built-in module ${e} is unavailable`);return o}function YE(){let e=Error.prepareStackTrace;try{Error.prepareStackTrace=(n,i)=>i;let t=new Error("Capture current module path");Error.captureStackTrace(t,YE);let[r]=t.stack,o=r?.getFileName();if(o==null)throw new Error("Unable to determine the current module path");return o}finally{Error.prepareStackTrace=e}}var aH=10;async function QE({url:e,headers:t,abortSignal:r,maxRedirects:o=aH}){let n={signal:r};t!==void 0&&(n.headers=t);let i=e;for(let a=0;a<=o;a++){Xq(i);let s=await nH(),l=await s(i,{...n,redirect:"manual"});if(l.type==="opaqueredirect"){if(!Kq())throw new pr({url:e,message:`Redirect from ${i} could not be validated and was blocked`});return await s(i,{...n,redirect:"follow"})}let c=l.headers.get("location");if(l.status>=300&&l.status<400&&c){await o0(l),i=new URL(c,i).toString();continue}return l}throw new pr({url:e,message:`Too many redirects (max ${o})`})}var c4=2*1024*1024*1024;async function eA({response:e,url:t,maxBytes:r=c4}){let o=e.headers.get("content-length");if(o!=null){let u=parseInt(o,10);if(!isNaN(u)&&u>r)throw await o0(e),new pr({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${u}).`})}let n=e.body;if(n==null)return new Uint8Array(0);let i=n.getReader(),a=[],s=0;try{for(;;){let{done:u,value:d}=await i.read();if(u)break;if(s+=d.length,s>r)throw new pr({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),c=0;for(let u of a)l.set(u,c),c+=u.length;return l}var $o=({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 p8({argument:"separator",message:`The separator "${o}" must not be part of the alphabet "${r}".`});return()=>`${e}${o}${n()}`},tA=$o();function rA(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 Ii(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 i0(e,...t){let r=new Headers(Ii(e)),o=r.get("user-agent")||"";
59return r.set("user-agent",[o,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var sH=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,lH=/"(?: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 GE(e){let t=JSON.parse(e);return t===null||typeof t!="object"||sH.test(e)===!1&&lH.test(e)===!1?t:cH(t)}function cH(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 uH(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return GE(e)}try{return GE(e)}finally{Error.stackTraceLimit=t}}function u4(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]=ka(r[o])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(ka):ka(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(ka)),e.allOf!=null&&(e.allOf=e.allOf.map(ka)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(ka));let{definitions:t}=e;if(t!=null)for(let r of Object.keys(t))t[r]=ka(t[r]);return e}function ka(e){return typeof e=="boolean"?e:u4(e)}var dH=Symbol("Let zodToJsonSchema decide on which parser to use"),qE={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"},pH=e=>typeof e=="string"?{...qE,name:e}:{...qE,...e};function Zr(){return{}}function mH(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)!==Y.ZodAny&&(i.items=tt(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 fH(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 hH(){return{type:"boolean"}}function nA(e,t){return tt(e.type._def,t)}var gH=(e,t)=>tt(e.innerType._def,t);function oA(e,t,r){let o=r??t.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((n,i)=>oA(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 vH(e)}}var vH=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 yH(e,t){return{...tt(e.innerType._def,t),default:e.defaultValue()}}function bH(e,t){return t.effectStrategy==="input"?tt(e.schema._def,t):Zr()}function xH(e){return{type:"string",enum:Array.from(e.values)}}var wH=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function _H(e,t){let r=[tt(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),tt(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(n=>!!n),o=[];return r.forEach(n=>{if(wH(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 kH(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 n4=void 0,kn={cuid:/^[cC][^\s-]{8,}
vendor: 9,655 bytes, lines 59-63
59$/,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:()=>(n4===void 0&&(n4=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n4),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 iA(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":Sn(r,"email",o.message,t);break;case"format:idn-email":Sn(r,"idn-email",o.message,t);break;case"pattern:zod":dr(r,kn.email,o.message,t);break}break;case"url":Sn(r,"uri",o.message,t);break;case"uuid":Sn(r,"uuid",o.message,t);break;case"regex":dr(r,o.regex,o.message,t);break;case"cuid":dr(r,kn.cuid,o.message,t);break;case"cuid2":dr(r,kn.cuid2,o.message,t);break;case"startsWith":dr(r,RegExp(`^${o4(o.value,t)}`),o.message,t);break;case"endsWith":dr(r,RegExp(`${o4(o.value,t)}$`),o.message,t);break;case"datetime":Sn(r,"date-time",o.message,t);break;case"date":Sn(r,"date",o.message,t);break;case"time":Sn(r,"time",o.message,t);break;case"duration":Sn(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":{dr(r,RegExp(o4(o.value,t)),o.message,t);break}case"ip":{o.version!=="v6"&&Sn(r,"ipv4",o.message,t),o.version!=="v4"&&Sn(r,"ipv6",o.message,t);break}case"base64url":dr(r,kn.base64url,o.message,t);break;case"jwt":dr(r,kn.jwt,o.message,t);break;case"cidr":{o.version!=="v6"&&dr(r,kn.ipv4Cidr,o.message,t),o.version!=="v4"&&dr(r,kn.ipv6Cidr,o.message,t);break}case"emoji":dr(r,kn.emoji(),o.message,t);break;case"ulid":{dr(r,kn.ulid,o.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{Sn(r,"binary",o.message,t);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{dr(r,kn.base64,o.message,t);break}}break}case"nanoid":dr(r,kn.nanoid,o.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function o4(e,t){return t.patternStrategy==="escape"?$H(e):e}var SH=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function $H(e){let t="";for(let r=0;r<e.length;r++)SH.has(e[r])||(t+="\\"),t+=e[r];return t}function Sn(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 dr(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:HE(t,o),...r&&o.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=HE(t,o)}function HE(e,t){var r;if(!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 c=0;c<n.length;c++){if(a){i+=n[c],a=!1;continue}if(o.i){if(s){if(n[c].match(/[a-z]/)){l?(i+=n[c],i+=`${n[c-2]}-${n[c]}`.toUpperCase(),l=!1):n[c+1]==="-"&&((r=n[c+2])!=null&&r.match(/[a-z]/))?(i+=n[c],l=!0):i+=`${n[c]}${n[c].toUpperCase()}`;continue}}else if(n[c].match(/[a-z]/)){i+=`[${n[c]}${n[c].toUpperCase()}]`;continue}}if(o.m){if(n[c]==="^"){i+=`(^|(?<=[\r 60]))`;continue}else if(n[c]==="$"){i+=`($|(?=[\r 61]))`;continue}}if(o.s&&n[c]==="."){i+=s?`${n[c]}\r 62`:`[${n[c]}\r 63]`;continue}i+=n[c],n[c]==="\\"?a=!0:s&&n[c]==="]"?s=!1:!s&&n[c]==="["&&(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 aA(e,t){var r,o,n,i,a,s;let l={type:"object",additionalProperties:(r=tt(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((o=e.keyType)==null?void 0:o._def.typeName)===Y.ZodString&&((n=e.keyType._def.checks)!=null&&n.length)){let{type:c,...u}=iA(e.keyType._def,t);return{...l,propertyNames:u}}else{if(((i=e.keyType)==null?void 0:i._def.typeName)===Y.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((a=e.keyType)==null?void 0:a._def.typeName)===Y.ZodBranded&&e.keyType._def.type._def.typeName===Y.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){let{type:c,...u}=nA(e.keyType._def,t);return{...l,propertyNames:u}}}return l}function IH(e,t){if(t.mapStrategy==="record")return aA(e,t);let r=tt(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||Zr(),o=tt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||Zr();return{type:"array",maxItems:125,items:{type:"array",items:[r,o],minItems:2,maxItems:2}}}function TH(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 CH(){return{not:Zr()}}function PH(){return{type:"null"}}var i4={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function EH(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(o=>o._def.typeName in i4&&(!o._def.checks||!o._def.checks.length))){let o=r.reduce((n,i)=>{let a=i4[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 AH(e,t)}var AH=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((o,n)=>tt(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 zH(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[i4[e.innerType._def.typeName],"null"]};let r=tt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function NH(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 RH(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=DH(s),c=tt(s._def,{...t,currentPath:[...t.currentPath,"properties",a],propertyPath:[...t.currentPath,"properties",a]});c!==void 0&&(r.properties[a]=c,l||o.push(a))}o.length&&(r.required=o);let i=MH(e,t);return i!==void 0&&(r.additionalProperties=i),r}function MH(e,t){if(e.catchall._def.typeName!=="ZodNever")return tt(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;
63case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function DH(e){try{return e.isOptional()}catch{return!0}}var OH=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return tt(e.innerType._def,t);let o=tt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return o?{anyOf:[{not:Zr()},o]}:Zr()},jH=(e,t)=>{if(t.pipeStrategy==="input")return tt(e.in._def,t);if(t.pipeStrategy==="output")return tt(e.out._def,t);let r=tt(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),o=tt(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,o].filter(n=>n!==void 0)}};function UH(e,t){return tt(e.type._def,t)}function LH(e,t){let o={type:"array",uniqueItems:!0,items:tt(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 FH(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,o)=>tt(r._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[]),additionalItems:tt(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,o)=>tt(r._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[])}}function BH(){return{not:Zr()}}function VH(){return Zr()}var ZH=(e,t)=>tt(e.innerType._def,t),GH=(e,t,r)=>{switch(t){case Y.ZodString:return iA(e,r);case Y.ZodNumber:return NH(e);case Y.ZodObject:return RH(e,r);case Y.ZodBigInt:return fH(e);case Y.ZodBoolean:return hH();case Y.ZodDate:return oA(e,r);case Y.ZodUndefined:return BH();case Y.ZodNull:return PH();case Y.ZodArray:return mH(e,r);case Y.ZodUnion:case Y.ZodDiscriminatedUnion:return EH(e,r);case Y.ZodIntersection:return _H(e,r);case Y.ZodTuple:return FH(e,r);case Y.ZodRecord:return aA(e,r);case Y.ZodLiteral:return kH(e);case Y.ZodEnum:return xH(e);case Y.ZodNativeEnum:return TH(e);case Y.ZodNullable:return zH(e,r);case Y.ZodOptional:return OH(e,r);case Y.ZodMap:return IH(e,r);case Y.ZodSet:return LH(e,r);case Y.ZodLazy:return()=>e.getter()._def;case Y.ZodPromise:return UH(e,r);case Y.ZodNaN:case Y.ZodNever:return CH();case Y.ZodEffects:return bH(e,r);case Y.ZodAny:return Zr();case Y.ZodUnknown:return VH();case Y.ZodDefault:return yH(e,r);case Y.ZodBranded:return nA(e,r);case Y.ZodReadonly:return ZH(e,r);case Y.ZodCatch:return gH(e,r);case Y.ZodPipeline:return jH(e,r);case Y.ZodFunction:case Y.ZodVoid:case Y.ZodSymbol:return;default:return(o=>{})(t)}},qH=(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 tt(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!==dH)return l}if(n&&!r){let l=HH(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=GH(e,e.typeName,t),s=typeof a=="function"?tt(a(),t):a;if(s&&WH(e,t,s),t.postProcess){let l=t.postProcess(s,e,t);return i.jsonSchema=s,l}return i.jsonSchema=s,s}var HH=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:qH(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`),Zr()):t.$refStrategy==="seen"?Zr():void 0}},WH=(e,t,r)=>(e.description&&(r.description=e.description),r),JH=e=>{let t=pH(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}]))}},KH=(e,t)=>{var r;let o=JH(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((c,[u,d])=>{var p;return{...c,[u]:(p=tt(d._def,{...o,currentPath:[...o.basePath,o.definitionPath,u]}
63,!0))!=null?p:Zr()}},{}):void 0,i=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,a=(r=tt(e._def,i===void 0?o:{...o,currentPath:[...o.basePath,o.definitionPath,i]},!1))!=null?r:Zr(),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},a4=Symbol.for("vercel.ai.schema");function a0(e){let t;return()=>(t==null&&(t=e()),t)}function s0(e,{validate:t}={}){return{[a4]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function XH(e){return typeof e=="object"&&e!==null&&a4 in e&&e[a4]===!0&&"jsonSchema"in e&&"validate"in e}function l0(e){return e==null?s0({type:"object",properties:{},additionalProperties:!1}):XH(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?zu(e):YH(e):e()}function YH(e){return s0(()=>{if(!QH(e))throw new Error(`Standard schema vendor '${e["~standard"].vendor}' does not support JSON Schema conversion.`);return u4(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 On({value:t,cause:r.issues})}}})}function QH(e){return e["~standard"].jsonSchema!=null}function eW(e,t){var r;let o=(r=t?.useReferences)!=null?r:!1;return s0(()=>KH(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 tW(e,t){var r;let o=(r=t?.useReferences)!=null?r:!1;return s0(()=>u4(Of(e,{target:"draft-7",io:"input",reused:o?"ref":"inline"})),{validate:async n=>{let i=await Uf(e,n);return i.success?{success:!0,value:i.data}:{success:!1,error:i.error}}})}function rW(e){return"_zod"in e}function zu(e,t){return rW(e)?tW(e,t):eW(e,t)}async function c0({value:e,schema:t,context:r}){let o=await Xs({value:e,schema:t,context:r});if(!o.success)throw On.wrap({value:e,cause:o.error,context:r});return o.value}async function Xs({value:e,schema:t,context:r}){let o=l0(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:On.wrap({value:e,cause:n.error,context:r}),rawValue:e}}catch(n){return{success:!1,error:On.wrap({value:e,cause:n,context:r}),rawValue:e}}}async function Io({text:e,schema:t}){try{let r=uH(e);return t==null?{success:!0,value:r,rawValue:r}:await Xs({value:r,schema:t})}catch(r){return{success:!1,error:ub.isInstance(r)?r:new ub({text:e,cause:r}),rawValue:void 0}}}
63function sA({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new n0).pipeThrough(new TransformStream({async transform({data:r},o){r!=="[DONE]"&&o.enqueue(await Io({text:r,schema:t}))}}))}async function Fn(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var C5e=new TextDecoder;var v={};_r(v,{$brand:()=>u0,$input:()=>E2,$output:()=>P2,NEVER:()=>d4,TimePrecision:()=>R2,ZodAny:()=>k_,ZodArray:()=>T_,ZodBase64:()=>Oh,ZodBase64URL:()=>jh,ZodBigInt:()=>Tl,ZodBigIntFormat:()=>Fh,ZodBoolean:()=>Il,ZodCIDRv4:()=>Mh,ZodCIDRv6:()=>Dh,ZodCUID:()=>Ch,ZodCUID2:()=>Ph,ZodCatch:()=>J_,ZodCodec:()=>Jh,ZodCustom:()=>ud,ZodCustomStringFormat:()=>Sl,ZodDate:()=>id,ZodDefault:()=>V_,ZodDiscriminatedUnion:()=>P_,ZodE164:()=>Uh,ZodEmail:()=>$h,ZodEmoji:()=>Ih,ZodEnum:()=>_l,ZodError:()=>EK,ZodExactOptional:()=>L_,ZodFile:()=>j_,ZodFirstPartyTypeKind:()=>sk,ZodFunction:()=>ok,ZodGUID:()=>ed,ZodIPv4:()=>Nh,ZodIPv6:()=>Rh,ZodISODate:()=>bh,ZodISODateTime:()=>yh,ZodISODuration:()=>wh,ZodISOTime:()=>xh,ZodIntersection:()=>E_,ZodIssueCode:()=>zK,ZodJWT:()=>Lh,ZodKSUID:()=>zh,ZodLazy:()=>tk,ZodLiteral:()=>O_,ZodMAC:()=>g_,ZodMap:()=>M_,ZodNaN:()=>X_,ZodNanoID:()=>Th,ZodNever:()=>$_,ZodNonOptional:()=>Hh,ZodNull:()=>w_,ZodNullable:()=>B_,ZodNumber:()=>$l,ZodNumberFormat:()=>Aa,ZodObject:()=>sd,ZodOptional:()=>qh,ZodPipe:()=>Wh,ZodPrefault:()=>G_,ZodPromise:()=>nk,ZodReadonly:()=>Y_,ZodRealError:()=>Pr,ZodRecord:()=>cd,ZodSet:()=>D_,ZodString:()=>kl,ZodStringFormat:()=>ot,ZodSuccess:()=>W_,ZodSymbol:()=>b_,ZodTemplateLiteral:()=>ek,ZodTransform:()=>U_,ZodTuple:()=>z_,ZodType:()=>Re,ZodULID:()=>Eh,ZodURL:()=>od,ZodUUID:()=>Gn,ZodUndefined:()=>x_,ZodUnion:()=>ld,ZodUnknown:()=>S_,ZodVoid:()=>I_,ZodXID:()=>Ah,ZodXor:()=>C_,_ZodString:()=>Sh,_default:()=>Z_,_function:()=>LN,any:()=>yN,array:()=>ad,base64:()=>tN,base64url:()=>rN,bigint:()=>mN,boolean:()=>y_,catch:()=>K_,check:()=>FN,cidrv4:()=>Qz,cidrv6:()=>eN,clone:()=>mr,codec:()=>ON,coerce:()=>lk,config:()=>Ct,core:()=>Po,cuid:()=>Gz,cuid2:()=>qz,custom:()=>BN,date:()=>xN,decode:()=>c_,decodeAsync:()=>d_,describe:()=>VN,discriminatedUnion:()=>IN,e164:()=>nN,email:()=>Mz,emoji:()=>Vz,encode:()=>l_,encodeAsync:()=>u_,endsWith:()=>pl,enum:()=>Zh,exactOptional:()=>F_,file:()=>NN,flattenError:()=>Fu,float32:()=>cN,float64:()=>uN,formatError:()=>Bu,fromJSONSchema:()=>KN,function:()=>LN,getErrorMap:()=>RK,globalRegistry:()=>Jt,gt:()=>Vn,gte:()=>fr,guid:()=>Dz,hash:()=>lN,hex:()=>sN,hostname:()=>aN,httpUrl:()=>Bz,includes:()=>ul,instanceof:()=>GN,int:()=>kh,int32:()=>dN,int64:()=>fN,intersection:()=>A_,ipv4:()=>Kz,ipv6:()=>Yz,iso:()=>wl,json:()=>HN,jwt:()=>oN,keyof:()=>wN,ksuid:()=>Jz,lazy:()=>rk,length:()=>Pa,literal:()=>zN,locales:()=>Ku,looseObject:()=>SN,looseRecord:()=>CN,lowercase:()=>ll,lt:()=>Bn,lte:()=>qr,mac:()=>Xz,map:()=>PN,maxLength:()=>Ca,maxSize:()=>Ni,meta:()=>ZN,mime:()=>ml,minLength:()=>Co,minSize:()=>Zn,multipleOf:()=>zi,nan:()=>DN,nanoid:()=>Zz,nativeEnum:()=>AN,negative:()=>lh,never:()=>Bh,nonnegative:()=>uh,nonoptional:()=>H_,nonpositive:()=>ch,normalize:()=>fl,null:()=>__,nullable:()=>rd,nullish:()=>RN,number:()=>v_,object:()=>_N,optional:()=>td,overwrite:()=>In,parse:()=>o_,parseAsync:()=>i_,partialRecord:()=>TN,pipe:()=>nd,positive:()=>sh,prefault:()=>q_,preprocess:()=>WN,prettifyError:()=>k4,promise:()=>UN,property:()=>dh,readonly:()=>Q_,record:()=>R_,refine:()=>ik,regex:()=>sl,regexes:()=>ln,registry:()=>L0,safeDecode:()=>m_,safeDecodeAsync:()=>h_,safeEncode:()=>p_,safeEncodeAsync:()=>f_,safeParse:()=>a_,safeParseAsync:()=>s_,set:()=>EN,setErrorMap:()=>NK,size:()=>Ta,slugify:()=>yl,startsWith:()=>dl,strictObject:()=>kN,string:()=>_h,stringFormat:()=>iN,stringbool:()=>qN,success:()=>MN,superRefine:()=>ak,symbol:()=>gN,templateLiteral:()=>jN,toJSONSchema:()=>hh,toLowerCase:()=>gl,toUpperCase:()=>vl,transform:()=>Gh,treeifyError:()=>_4,trim:()=>hl,tuple:()=>N_,uint32:()=>pN,uint64:()=>hN,ulid:()=>Hz,undefined:()=>vN,union:()=>Vh,unknown:()=>Ea,uppercase:()=>cl,url:()=>Fz,util:()=>J,uuid:()=>Oz,uuidv4:()=>jz,uuidv6:()=>Uz,uuidv7:()=>Lz,void:()=>bN,xid:()=>Wz,xor:()=>$N});var Po={};_r(Po,{$ZodAny:()=>Xw,$ZodArray:()=>r2,$ZodAsyncError:()=>$n,$ZodBase64:()=>Fw,$ZodBase64URL:()=>Bw,$ZodBigInt:()=>N0,$ZodBigIntFormat:()=>Hw,$ZodBoolean:()=>qu,$ZodCIDRv4:()=>jw,$ZodCIDRv6:()=>Uw,$ZodCUID:()=>Iw,$ZodCUID2:()=>Tw,$ZodCatch:()=>x2,$ZodCheck:()=>st,$ZodCheckBigIntFormat:()=>rw,$ZodCheckEndsWith:()=>fw,$ZodCheckGreaterThan:()=>I0,$ZodCheckIncludes:()=>pw,$ZodCheckLengthEquals:()=>lw,$ZodCheckLessThan:()=>$0,$ZodCheckLowerCase:()=>uw,$ZodCheckMaxLength:()=>aw,$ZodCheckMaxSize:()=>nw,$ZodCheckMimeType:()=>gw,$ZodCheckMinLength:()=>sw,$ZodCheckMinSize:()=>ow,$ZodCheckMultipleOf:()=>ew,$ZodCheckNumberFormat:()=>tw,$ZodCheckOverwrite:()=>vw,$ZodCheckProperty:()=>hw,$ZodCheckRegex:()=>cw,$ZodCheckSizeEquals:()=>iw,$ZodCheckStartsWith:()=>mw,$ZodCheckStringFormat:()=>il,$ZodCheckUpperCase:()=>dw,$ZodCodec:()=>Wu,$ZodCustom:()=>C2,$ZodCustomStringFormat:()=>Gw,$ZodDate:()=>t2,$ZodDefault:()=>g2,$ZodDiscriminatedUnion:()=>i2,$ZodE164:()=>Vw,$ZodEmail:()=>_w,$ZodEmoji:()=>Sw,$ZodEncodeError:()=>Ti,$ZodEnum:()=>u2,$ZodError:()=>Lu,$ZodExactOptional:()=>f2,$ZodFile:()=>p2,$ZodFunction:()=>$2,$ZodGUID:()=>xw,$ZodIPv4:()=>Mw,$ZodIPv6:()=>Dw,$ZodISODate:()=>zw,$ZodISODateTime:()=>Aw,$ZodISODuration:()=>Rw,$ZodISOTime:()=>Nw,$ZodIntersection:()=>a2,$ZodJWT:()=>Zw,$ZodKSUID:()=>Ew,$ZodLazy:()=>T2,$ZodLiteral:()=>d2,$ZodMAC:()=>Ow,$ZodMap:()=>l2,$ZodNaN:()=>w2,$ZodNanoID:()=>$w,$ZodNever:()=>Qw,$ZodNonOptional:()=>y2,$ZodNull:()=>Kw,$ZodNullable:()=>h2,$ZodNumber:()=>z0,$ZodNumberFormat:()=>qw,$ZodObject:()=>RA,$ZodObjectJIT:()=>n2,$ZodOptional:()=>M0,$ZodPipe:()=>_2,$ZodPrefault:()=>v2,$ZodPromise:()=>I2,$ZodReadonly:()=>k2,$ZodRealError:()=>Cr,$ZodRecord:()=>s2,$ZodRegistry:()=>U0,$ZodSet:()=>c2,$ZodString:()=>Ia,$ZodStringFormat:()=>nt,$ZodSuccess:()=>b2,$ZodSymbol:()=>
vendor: 11,323 bytes, line 63
63Ww,$ZodTemplateLiteral:()=>S2,$ZodTransform:()=>m2,$ZodTuple:()=>R0,$ZodType:()=>Te,$ZodULID:()=>Cw,$ZodURL:()=>kw,$ZodUUID:()=>ww,$ZodUndefined:()=>Jw,$ZodUnion:()=>Hu,$ZodUnknown:()=>Yw,$ZodVoid:()=>e2,$ZodXID:()=>Pw,$ZodXor:()=>o2,$brand:()=>u0,$constructor:()=>z,$input:()=>E2,$output:()=>P2,Doc:()=>Gu,JSONSchema:()=>Nz,JSONSchemaGenerator:()=>gh,NEVER:()=>d4,TimePrecision:()=>R2,_any:()=>t6,_array:()=>l6,_base64:()=>nh,_base64url:()=>oh,_bigint:()=>W2,_boolean:()=>q2,_catch:()=>_K,_check:()=>zz,_cidrv4:()=>th,_cidrv6:()=>rh,_coercedBigint:()=>J2,_coercedBoolean:()=>H2,_coercedDate:()=>a6,_coercedNumber:()=>L2,_coercedString:()=>z2,_cuid:()=>W0,_cuid2:()=>J0,_custom:()=>u6,_date:()=>i6,_decode:()=>g0,_decodeAsync:()=>y0,_default:()=>bK,_discriminatedUnion:()=>sK,_e164:()=>ih,_email:()=>F0,_emoji:()=>q0,_encode:()=>h0,_encodeAsync:()=>v0,_endsWith:()=>pl,_enum:()=>mK,_file:()=>c6,_float32:()=>B2,_float64:()=>V2,_gt:()=>Vn,_gte:()=>fr,_guid:()=>Xu,_includes:()=>ul,_int:()=>F2,_int32:()=>Z2,_int64:()=>K2,_intersection:()=>lK,_ipv4:()=>Q0,_ipv6:()=>eh,_isoDate:()=>D2,_isoDateTime:()=>M2,_isoDuration:()=>j2,_isoTime:()=>O2,_jwt:()=>ah,_ksuid:()=>Y0,_lazy:()=>IK,_length:()=>Pa,_literal:()=>hK,_lowercase:()=>ll,_lt:()=>Bn,_lte:()=>qr,_mac:()=>N2,_map:()=>dK,_max:()=>qr,_maxLength:()=>Ca,_maxSize:()=>Ni,_mime:()=>ml,_min:()=>fr,_minLength:()=>Co,_minSize:()=>Zn,_multipleOf:()=>zi,_nan:()=>s6,_nanoid:()=>H0,_nativeEnum:()=>fK,_negative:()=>lh,_never:()=>n6,_nonnegative:()=>uh,_nonoptional:()=>xK,_nonpositive:()=>ch,_normalize:()=>fl,_null:()=>e6,_nullable:()=>yK,_number:()=>U2,_optional:()=>vK,_overwrite:()=>In,_parse:()=>tl,_parseAsync:()=>rl,_pipe:()=>kK,_positive:()=>sh,_promise:()=>TK,_property:()=>dh,_readonly:()=>SK,_record:()=>uK,_refine:()=>d6,_regex:()=>sl,_safeDecode:()=>x0,_safeDecodeAsync:()=>_0,_safeEncode:()=>b0,_safeEncodeAsync:()=>w0,_safeParse:()=>nl,_safeParseAsync:()=>ol,_set:()=>pK,_size:()=>Ta,_slugify:()=>yl,_startsWith:()=>dl,_string:()=>A2,_stringFormat:()=>bl,_stringbool:()=>h6,_success:()=>wK,_superRefine:()=>p6,_symbol:()=>Y2,_templateLiteral:()=>$K,_toLowerCase:()=>gl,_toUpperCase:()=>vl,_transform:()=>gK,_trim:()=>hl,_tuple:()=>cK,_uint32:()=>G2,_uint64:()=>X2,_ulid:()=>K0,_undefined:()=>Q2,_union:()=>iK,_unknown:()=>r6,_uppercase:()=>cl,_url:()=>Yu,_uuid:()=>B0,_uuidv4:()=>V0,_uuidv6:()=>Z0,_uuidv7:()=>G0,_void:()=>o6,_xid:()=>X0,_xor:()=>aK,clone:()=>mr,config:()=>Ct,createStandardJSONSchemaMethod:()=>xl,createToJSONSchemaMethod:()=>g6,decode:()=>EW,decodeAsync:()=>zW,describe:()=>m6,encode:()=>PW,encodeAsync:()=>AW,extractDefs:()=>Mi,finalize:()=>Di,flattenError:()=>Fu,formatError:()=>Bu,globalConfig:()=>Nu,globalRegistry:()=>Jt,initializeContext:()=>Ri,isValidBase64:()=>Lw,isValidBase64URL:()=>EA,isValidJWT:()=>AA,locales:()=>Ku,meta:()=>f6,parse:()=>m0,parseAsync:()=>f0,prettifyError:()=>k4,process:()=>Ye,regexes:()=>ln,registry:()=>L0,safeDecode:()=>RW,safeDecodeAsync:()=>DW,safeEncode:()=>NW,safeEncodeAsync:()=>MW,safeParse:()=>S4,safeParseAsync:()=>$4,toDotPath:()=>pA,toJSONSchema:()=>hh,treeifyError:()=>_4,util:()=>J,version:()=>yw});var d4=Object.freeze({status:"aborted"});function z(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 c=a.prototype,u=Object.keys(c);for(let d=0;d<u.length;d++){let p=u[d];p in s||(s[p]=c[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var l;let c=r?.Parent?new i:this;o(c,s),(l=c._zod).deferred??(l.deferred=[]);for(let u of c._zod.deferred)u();return c}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 u0=Symbol("zod_brand"),$n=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ti=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Nu={};function Ct(e){return e&&Object.assign(Nu,e),Nu}var J={};_r(J,{BIGINT_FORMAT_RANGES:()=>w4,Class:()=>m4,NUMBER_FORMAT_RANGES:()=>x4,aborted:()=>Ai,allowsEval:()=>g4,assert:()=>sW,assertEqual:()=>nW,assertIs:()=>iW,assertNever:()=>aW,assertNotEqual:()=>oW,assignProp:()=>Pi,base64ToUint8Array:()=>cA,base64urlToUint8Array:()=>SW,cached:()=>Qs,captureStackTrace:()=>p0,cleanEnum:()=>kW,cleanRegex:()=>Du,clone:()=>mr,cloneDef:()=>cW,createTransparentProxy:()=>hW,defineLazy:()=>Ue,esc:()=>d0,escapeRegex:()=>sn,extend:()=>yW,finalizeIssue:()=>Tr,floatSafeRemainder:()=>f4,getElementAtPath:()=>uW,getEnumValues:()=>Mu,getLengthableOrigin:()=>Uu,getParsedType:()=>fW,getSizableOrigin:()=>ju,hexToUint8Array:()=>IW,isObject:()=>Sa,isPlainObject:()=>Ei,issue:()=>el,joinValues:()=>O,jsonStringifyReplacer:()=>Ys,merge:()=>xW,mergeDefs:()=>To,normalizeParams:()=>ee,nullish:()=>Ci,numKeys:()=>mW,objectClone:()=>lW,omit:()=>vW,optionalKeys:()=>b4,parsedType:()=>W,partial:()=>wW,pick:()=>gW,prefixIssues:()=>Gr,primitiveTypes:()=>y4,promiseAllObject:()=>dW,propertyKeyTypes:()=>Ou,randomString:()=>pW,required:()=>_W,safeExtend:()=>bW,shallowClone:()=>v4,slugify:()=>h4,stringifyPrimitive:()=>G,uint8ArrayToBase64:()=>uA,uint8ArrayToBase64url:()=>$W,uint8ArrayToHex:()=>TW,unwrapMessage:()=>Ru});function nW(e){return e}function oW(e){return e}function iW(e){}function aW(e){throw new Error("Unexpected value in exhaustive check")}function sW(e){}function Mu(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 O(e,t="|"){return e.map(r=>G(r)).join(t)}function Ys(e,t){return typeof t=="bigint"?t.toString():t}function Qs(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ci(e){return e==null}function Du(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function f4(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 lA=Symbol("evaluating");function Ue(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==lA)return o===void 0&&(o=lA,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function lW(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Pi(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function To(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function cW(e){return To(e._zod.def)}function uW(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function dW(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 pW(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function d0(e){return JSON.stringify(e)}function h4(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var p0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Sa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var g4=Qs(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ei(e){if(Sa(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Sa(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function v4(e){return Ei(e)?{...e}:Array.isArray(e)?[...e]:e}function mW(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var fW=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}`)}},Ou=new Set(["string","number","symbol"]),y4=new Set(["string","number","bigint","boolean","symbol","undefined"]);function sn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mr(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function ee(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 hW(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 G(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function b4(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var x4={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]},w4={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function gW(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=To(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 Pi(this,"shape",a),a},checks:[]});return mr(e,i)}function vW(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=To(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 Pi(this,"shape",a),a},checks:[]});return mr(e,i)}function yW(e,t){if(!Ei(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
63write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=To(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Pi(this,"shape",i),i}});return mr(e,n)}function bW(e,t){if(!Ei(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=To(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Pi(this,"shape",o),o}});return mr(e,r)}function xW(e,t){let r=To(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Pi(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return mr(e,r)}function wW(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=To(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(l[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)l[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return Pi(this,"shape",l),l},checks:[]});return mr(t,a)}function _W(e,t,r){let o=To(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 Pi(this,"shape",i),i}});return mr(t,o)}function Ai(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 Gr(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Ru(e){return typeof e=="string"?e:e?.message}function Tr(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Ru(e.inst?._zod.def?.error?.(e))??Ru(t?.error?.(e))??Ru(r.customError?.(e))??Ru(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function ju(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Uu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function W(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 el(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function kW(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function cA(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 uA(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function SW(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return cA(t+r)}function $W(e){return uA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function IW(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 TW(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var m4=class{constructor(...t){}};var dA=(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,Ys,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Lu=z("$ZodError",dA),Cr=z("$ZodError",dA,{Parent:Error});function Fu(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 Bu(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 _4(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(c=>o({issues:c},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 c=[...i,...l.path];if(c.length===0){r.errors.push(t(l));continue}let u=r,d=0;for(;d<c.length;){let p=c[d],m=d===c.length-1;typeof p=="string"?(u.properties??(u.properties={}),(a=u.properties)[p]??(a[p]={errors:[]}),u=u.properties[p]):(u.items??(u.items=[]),(s=u.items)[p]??(s[p]={errors:[]}),u=u.items[p]),m&&u.errors.push(t(l)),d++}}};return o(e),r}function pA(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);
vendor: 95,420 bytes, lines 63-100
63for(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 k4(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 ${pA(o.path)}`);return t.join(` 64`)}var tl=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 $n;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>Tr(l,i,Ct())));throw p0(s,n?.callee),s}return a.value},m0=tl(Cr),rl=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=>Tr(l,i,Ct())));throw p0(s,n?.callee),s}return a.value},f0=rl(Cr),nl=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 $n;return i.issues.length?{success:!1,error:new(e??Lu)(i.issues.map(a=>Tr(a,n,Ct())))}:{success:!0,data:i.value}},S4=nl(Cr),ol=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=>Tr(a,n,Ct())))}:{success:!0,data:i.value}},$4=ol(Cr),h0=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return tl(e)(t,r,n)},PW=h0(Cr),g0=e=>(t,r,o)=>tl(e)(t,r,o),EW=g0(Cr),v0=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return rl(e)(t,r,n)},AW=v0(Cr),y0=e=>async(t,r,o)=>rl(e)(t,r,o),zW=y0(Cr),b0=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return nl(e)(t,r,n)},NW=b0(Cr),x0=e=>(t,r,o)=>nl(e)(t,r,o),RW=x0(Cr),w0=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return ol(e)(t,r,n)},MW=w0(Cr),_0=e=>async(t,r,o)=>ol(e)(t,r,o),DW=_0(Cr);var ln={};_r(ln,{base64:()=>F4,base64url:()=>k0,bigint:()=>H4,boolean:()=>J4,browserEmail:()=>ZW,cidrv4:()=>U4,cidrv6:()=>L4,cuid:()=>I4,cuid2:()=>T4,date:()=>V4,datetime:()=>G4,domain:()=>HW,duration:()=>z4,e164:()=>B4,email:()=>R4,emoji:()=>M4,extendedDuration:()=>OW,guid:()=>N4,hex:()=>WW,hostname:()=>qW,html5Email:()=>FW,idnEmail:()=>VW,integer:()=>W4,ipv4:()=>D4,ipv6:()=>O4,ksuid:()=>E4,lowercase:()=>Y4,mac:()=>j4,md5_base64:()=>KW,md5_base64url:()=>XW,md5_hex:()=>JW,nanoid:()=>A4,null:()=>K4,number:()=>S0,rfc5322Email:()=>BW,sha1_base64:()=>QW,sha1_base64url:()=>eJ,sha1_hex:()=>YW,sha256_base64:()=>rJ,sha256_base64url:()=>nJ,sha256_hex:()=>tJ,sha384_base64:()=>iJ,sha384_base64url:()=>aJ,sha384_hex:()=>oJ,sha512_base64:()=>lJ,sha512_base64url:()=>cJ,sha512_hex:()=>sJ,string:()=>q4,time:()=>Z4,ulid:()=>C4,undefined:()=>X4,unicodeEmail:()=>mA,uppercase:()=>Q4,uuid:()=>$a,uuid4:()=>jW,uuid6:()=>UW,uuid7:()=>LW,xid:()=>P4});var I4=/^[cC][^\s-]{8,}$/,T4=/^[0-9a-z]+$/,C4=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,P4=/^[0-9a-vA-V]{20}$/,E4=/^[A-Za-z0-9]{27}$/,A4=/^[a-zA-Z0-9_-]{21}$/,z4=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,OW=/^[-+]?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)?)??$/,N4=/^([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})$/,$a=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)$/,jW=$a(4),UW=$a(6),LW=$a(7),R4=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,FW=/^[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])?)*$/,BW=/^(([^<>()\[\]\\.,;:\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,}))$/,mA=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,VW=mA,ZW=/^[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])?)*$/,GW="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function M4(){return new RegExp(GW,"u")}var D4=/^(?:(?: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])$/,O4=/^(([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}|:))$/,j4=e=>{let t=sn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},U4=/^((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])$/,L4=/^(([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])$/,F4=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,k0=/^[A-Za-z0-9_-]*$/,qW=/^(?=.{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])?)*\.?$/,HW=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,B4=/^\+[1-9]\d{6,14}$/,fA="(?:(?:\\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])))",V4=new RegExp(`^${fA}$`);function hA(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 Z4(e){return new RegExp(`^${hA(e)}$`)}function G4(e){let t=hA({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(`^${fA}T(?:${o})$`)}var q4=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},H4=/^-?\d+n?$/,W4=/^-?\d+$/,S0=/^-?\d+(?:\.\d+)?$/,J4=/^(?:true|false)$/i,K4=/^null$/i;var X4=/^undefined$/i;var Y4=/^[^A-Z]*$/,Q4=/^[^a-z]*$/,WW=/^[0-9a-fA-F]*$/;function Vu(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Zu(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var JW=/^[0-9a-fA-F]{32}$/,KW=Vu(22,"=="),XW=Zu(22),YW=/^[0-9a-fA-F]{40}$/,QW=Vu(27,"="),eJ=Zu(27),tJ=/^[0-9a-fA-F]{64}$/,rJ=Vu(43,"="),nJ=Zu(43),oJ=/^[0-9a-fA-F]{96}$/,iJ=Vu(64,""),aJ=Zu(64),sJ=/^[0-9a-fA-F]{128}$/,lJ=Vu(86,"=="),cJ=Zu(86);var st=z("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),vA={number:"number",bigint:"bigint",object:"date"},$0=z("$ZodCheckLessThan",(e,t)=>{st.init(e,t);let r=vA[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})}}),I0=z("$ZodCheckGreaterThan",(e,t)=>{st.init(e,t);let r=vA[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})}}),ew=z("$ZodCheckMultipleOf",(e,t)=>{st.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):f4(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})}}),tw=z("$ZodCheckNumberFormat",(e,t)=>{st.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=x4[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=W4)}),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})}}),rw=z("$ZodCheckBigIntFormat",(e,t)=>{st.init(e,t);let[r,o]=w4[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})}}),nw=z("$ZodCheckMaxSize",(e,t)=>{var r;st.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ci(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:ju(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ow=z("$ZodCheckMinSize",(e,t)=>{var r;st.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ci(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:ju(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),iw=z("$ZodCheckSizeEquals",(e,t)=>{var r;st.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ci(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:ju(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})}}),aw=z("$ZodCheckMaxLength",(e,t)=>{var r;st.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ci(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=Uu(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sw=z("$ZodCheckMinLength",(e,t)=>{var r;st.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ci(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=Uu(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),lw=z("$ZodCheckLengthEquals",(e,t)=>{var r;st.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ci(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=Uu(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})}}),il=z("$ZodCheckStringFormat",(e,t)=>{var r,o;st.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=()=>{})}),cw=z("$ZodCheckRegex",(e,t)=>{il.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})}}),uw=z("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Y4),il.init(e,t)}),dw=z("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Q4),il.init(e,t)}),pw=z("$ZodCheckIncludes",(e,t)=>{st.init(e,t);let r=sn(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})}}),mw=z("$ZodCheckStartsWith",(e,t)=>{st.init(e,t);let r=new RegExp(`^${sn(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})}}),fw=z("$ZodCheckEndsWith",(e,t)=>{st.init(e,t);let r=new RegExp(`.*${sn(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 gA(e,t,r){e.issues.length&&t.issues.push(...Gr(r,e.issues))}var hw=z("$ZodCheckProperty",(e,t)=>{st.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=>gA(n,r,t.property));gA(o,r,t.property)}}),gw=z("$ZodCheckMimeType",(e,t)=>{st.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})}}),vw=z("$ZodCheckOverwrite",(e,t)=>{st.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Gu=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(` 65`).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(` 66`))}};var yw={major:4,minor:3,patch:6};var Te=z("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=yw;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 c=Ai(a),u;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(c)continue;let p=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&l?.async===!1)throw new $n;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,a.issues.length!==p&&(c||(c=Ai(a,p)))});else{if(a.issues.length===p)continue;c||(c=Ai(a,p))}}return u?u.then(()=>a):a},i=(a,s,l)=>{if(Ai(a))return a.aborted=!0,a;let c=n(s,o,l);if(c instanceof Promise){if(l.async===!1)throw new $n;return c.then(u=>e._zod.parse(u,l))}return e._zod.parse(c,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,a,s)):i(c,a,s)}let l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new $n;return l.then(c=>n(c,o,s))}return n(l,o,s)}}Ue(e,"~standard",()=>({validate:n=>{try{let i=S4(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return $4(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ia=z("$ZodString",(e,t)=>{Te.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??q4(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}}),nt=z("$ZodStringFormat",(e,t)=>{il.init(e,t),Ia.init(e,t)}),xw=z("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=N4),nt.init(e,t)}),ww=z("$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=$a(o))}else t.pattern??(t.pattern=$a());nt.init(e,t)}),_w=z("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=R4),nt.init(e,t)}),kw=z("$ZodURL",(e,t)=>{nt.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})}}}),Sw=z("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=M4()),nt.init(e,t)}),$w=z("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=A4),nt.init(e,t)}),Iw=z("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=I4),nt.init(e,t)}),Tw=z("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=T4),nt.init(e,t)}),Cw=z("$ZodULID",(e,t)=>{t.pattern??(t.pattern=C4),nt.init(e,t)}),Pw=z("$ZodXID",(e,t)=>{t.pattern??(t.pattern=P4),nt.init(e,t)}),Ew=z("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=E4),nt.init(e,t)}),Aw=z("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=G4(t)),nt.init(e,t)}),zw=z("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=V4),nt.init(e,t)}),Nw=z("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Z4(t)),nt.init(e,t)}),Rw=z("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=z4),nt.init(e,t)}),Mw=z("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=D4),nt.init(e,t),e._zod.bag.format="ipv4"}),Dw=z("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=O4),nt.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})}}}),Ow=z("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=j4(t.delimiter)),nt.init(e,t),e._zod.bag.format="mac"}),jw=z("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=U4),nt.init(e,t)}),Uw=z("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=L4),nt.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 Lw(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Fw=z("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=F4),nt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Lw(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function EA(e){if(!k0.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Lw(r)}var Bw=z("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=k0),nt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{EA(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Vw=z("$ZodE164",(e,t)=>{t.pattern??(t.pattern=B4),nt.init(e,t)});function AA(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 Zw=z("$ZodJWT",(e,t)=>{nt.init(e,t),e._zod.check=r=>{AA(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Gw=z("$ZodCustomStringFormat",(e,t)=>{nt.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})}}),z0=z("$ZodNumber",(e,t)=>{Te.init(e,t),e._zod.pattern=e._zod.bag.pattern??S0,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}}),qw=z("$ZodNumberFormat",(e,t)=>{tw.init(e,t),z0.init(e,t)}),qu=z("$ZodBoolean",(e,t)=>{Te.init(e,t),e._zod.pattern=J4,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}}),N0=z("$ZodBigInt",(e,t)=>{Te.init(e,t),e._zod.pattern=H4,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}}),Hw=z("$ZodBigIntFormat",(e,t)=>{rw.init(e,t),N0.init(e,t)}),Ww=z("$ZodSymbol",(e,t)=>{Te.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}}),Jw=z("$ZodUndefined",(e,t)=>{Te.init(e,t),e._zod.pattern=X4,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}}),Kw=z("$ZodNull",(e,t)=>{Te.init(e,t),e._zod.pattern=K4,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}}),Xw=z("$ZodAny",(e,t)=>{Te.init(e,t),e._zod.parse=r=>r}),Yw=z("$ZodUnknown",(e,t)=>{Te.init(e,t),e._zod.parse=r=>r}),Qw=z("$ZodNever",(e,t)=>{Te.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),e2=z("$ZodVoid",(e,t)=>{Te.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}}),t2=z("$ZodDate",(e,t)=>{Te.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 bA(e,t,r){e.issues.length&&t.issues.push(...Gr(r,e.issues)),t.value[r]=e.value}var r2=z("$ZodArray",(e,t)=>{Te.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(c=>bA(c,r,a))):bA(l,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function A0(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...Gr(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function zA(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=b4(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function NA(e,t,r,o,n,i){let a=[],s=n.keySet,l=n.catchall._zod,c=l.def.type,u=l.optout==="optional";for(let d in t){if(s.has(d))continue;if(c==="never"){a.push(d);continue}let p=l.run({value:t[d],issues:[]},o);p instanceof Promise?e.push(p.then(m=>A0(m,r,d,t,u))):A0(p,r,d,t,u)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var RA=z("$ZodObject",(e,t)=>{if(Te.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=Qs(()=>zA(t));Ue(e._zod,"propValues",()=>{let s=t.shape,l={};for(let c in s){let u=s[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(let d of u.values)l[c].add(d)}}return l});let n=Sa,i=t.catchall,a;e._zod.parse=(s,l)=>{a??(a=o.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let u=[],d=a.shape;for(let p of a.keys){let m=d[p],g=m._zod.optout==="optional",x=m._zod.run({value:c[p],issues:[]},l);x instanceof Promise?u.push(x.then(y=>A0(y,s,p,c,g))):A0(x,s,p,c,g)}return i?NA(u,c,s,l,o.value,e):u.length?Promise.all(u).then(()=>s):s}}),n2=z("$ZodObjectJIT",(e,t)=>{RA.init(e,t);let r=e._zod.parse,o=Qs(()=>zA(t)),n=p=>{let m=new Gu(["shape","payload","ctx"]),g=o.value,x=$=>{let I=d0($);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};m.write("const input = payload.value;");let y=Object.create(null),k=0;for(let $ of g.keys)y[$]=`key_${k++}`;m.write("const newResult = {};");for(let $ of g.keys){let I=y[$],w=d0($),D=p[$]?._zod?.optout==="optional";m.write(`const ${I} = ${x($)};`),D?m.write(` 67 if (${I}.issues.length) { 68 if (${w} in input) { 69 payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ 70 ...iss, 71 path: iss.path ? [${w}, ...iss.path] : [${w}] 72 }))); 73 } 74 } 75 76 if (${I}.value === undefined) { 77 if (${w} in input) { 78 newResult[${w}] = undefined; 79 } 80 } else { 81 newResult[${w}] = ${I}.value; 82 } 83 84 `):m.write(` 85 if (${I}.issues.length) { 86 payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ 87 ...iss, 88 path: iss.path ? [${w}, ...iss.path] : [${w}] 89 }))); 90 } 91 92 if (${I}.value === undefined) { 93 if (${w} in input) { 94 newResult[${w}] = undefined; 95 } 96 } else { 97 newResult[${w}] = ${I}.value; 98 } 99 100 `)}m.write("payload.value = newResult;"),m.write("return payload;");let _=m.compile();return($,I)=>_(p,$,I)},i,a=Sa,s=!Nu.jitless,c=s&&g4.value,u=t.catchall,d;e._zod.parse=(p,m)=>{d??(d=o.value);let g=p.value;return a(g)?s&&c&&m?.async===!1&&m.jitless!==!0?(i||(i=n(t.shape)),p=i(p,m),u?NA([],g,p,m,d,e):p):r(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function xA(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=>!Ai(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=>Tr(a,o,Ct())))}),t)}var Hu=z("$ZodUnion",(e,t)=>{Te.init(e,t),Ue(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Ue(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Ue(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Ue(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=>Du(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 c=l._zod.run({value:n.value,issues:[]},i);if(c instanceof Promise)s.push(c),a=!0;else{if(c.issues.length===0)return c;s.push(c)}}return a?Promise.all(s).then(l=>xA(l,n,e,i)):xA(s,n,e,i)}});function wA(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=>Tr(a,o,Ct())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var o2=z("$ZodXor",(e,t)=>{Hu.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 c=l._zod.run({value:n.value,issues:[]},i);c instanceof Promise?(s.push(c),a=!0):s.push(c)}return a?Promise.all(s).then(l=>wA(l,n,e,i)):wA(s,n,e,i)}}),i2=z("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Hu.init(e,t);let r=e._zod.parse;Ue(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 c of l)n[s].add(c)}}return n});let o=Qs(()=>{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(!Sa(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)}}),a2=z("$ZodIntersection",(e,t)=>{Te.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,c])=>_A(r,l,c)):_A(r,i,a)}});function bw(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(Ei(e)&&Ei(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=bw(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=bw(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 _A(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}),Ai(e))return e;let a=bw(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 R0=z("$ZodTuple",(e,t)=>{Te.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(u=>u._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let u=i.length>r.length,d=i.length<l-1;if(u||d)return o.issues.push({...u?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let c=-1;for(let u of r){if(c++,c>=i.length&&c>=l)continue;let d=u._zod.run({value:i[c],issues:[]},n);d instanceof Promise?a.push(d.then(p=>T0(p,o,c))):T0(d,o,c)}if(t.rest){let u=i.slice(r.length);for(let d of u){c++;let p=t.rest._zod.run({value:d,issues:[]},n);p instanceof Promise?a.push(p.then(m=>T0(m,o,c))):T0(p,o,c)}}return a.length?Promise.all(a).then(()=>o):o}});function T0(e,t,r){e.issues.length&&t.issues.push(...Gr(r,e.issues)),t.value[r]=e.value}var s2=z("$ZodRecord",(e,t)=>{Te.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Ei(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 c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);let u=t.valueType._zod.run({value:n[c],issues:[]},o);u instanceof Promise?i.push(u.then(d=>{d.issues.length&&r.issues.push(...Gr(c,d.issues)),r.value[c]=d.value})):(u.issues.length&&r.issues.push(...Gr(c,u.issues)),r.value[c]=u.value)}let l;for(let c in n)s.has(c)||(l=l??[],l.push(c));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"&&S0.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=>Tr(d,o,Ct())),input:s,path:[s],inst:e});continue}let u=t.valueType._zod.run({value:n[s],issues:[]},o);u instanceof Promise?i.push(u.then(d=>{d.issues.length&&r.issues.push(...Gr(s,d.issues)),r.value[l.value]=d.value})):(u.issues.length&&r.issues.push(...Gr(s,u.issues)),r.value[l.value]=u.value)}}return i.length?Promise.all(i).then(()=>r):r}}),l2=z("$ZodMap",(e,t)=>{Te.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),c=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||c instanceof Promise?i.push(Promise.all([l,c]).then(([u,d])=>{kA(u,d,r,a,n,e,o)})):kA(l,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function kA(e,t,r,o,n,i,a){e.issues.length&&(Ou.has(typeof o)?r.issues.push(...Gr(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>Tr(s,a,Ct()))})),t.issues.length&&(Ou.has(typeof o)?r.issues.push(...Gr(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>Tr(s,a,Ct()))})),r.value.set(e.value,t.value)}var c2=z("$ZodSet",(e,t)=>{Te.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=>SA(l,r))):SA(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function SA(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var u2=z("$ZodEnum",(e,t)=>{Te.init(e,t);let r=Mu(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Ou.has(typeof n)).map(n=>typeof n=="string"?sn(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}}),d2=z("$ZodLiteral",(e,t)=>{if(Te.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"?sn(o):o?sn(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}}),p2=z("$ZodFile",(e,t)=>{Te.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}}),m2=z("$ZodTransform",(e,t)=>{Te.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ti(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 $n;return r.value=n,r}});function $A(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var M0=z("$ZodOptional",(e,t)=>{Te.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ue(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Du(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=>$A(i,r.value)):$A(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),f2=z("$ZodExactOptional",(e,t)=>{M0.init(e,t),Ue(e._zod,"values",()=>t.innerType._zod.values),Ue(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),h2=z("$ZodNullable",(e,t)=>{Te.init(e,t),Ue(e._zod,"optin",()=>t.innerType._zod.optin),Ue(e._zod,"optout",()=>t.innerType._zod.optout),Ue(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Du(r.source)}|null)$`):void 0}),Ue(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)}),g2=z("$ZodDefault",(e,t)=>{Te.init(e,t),e._zod.optin="optional",Ue(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=>IA(i,t)):IA(n,t)}});function IA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var v2=z("$ZodPrefault",(e,t)=>{Te.init(e,t),e._zod.optin="optional",Ue(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))}),y2=z("$ZodNonOptional",(e,t)=>{Te.init(e,t),Ue(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=>TA(i,e)):TA(n,e)}});function TA(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 b2=z("$ZodSuccess",(e,t)=>{Te.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ti("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)}}),x2=z("$ZodCatch",(e,t)=>{Te.init(e,t),Ue(e._zod,"optin",()=>t.innerType._zod.optin),Ue(e._zod,"optout",()=>t.innerType._zod.optout),Ue(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=>Tr(a,o,Ct()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>Tr(i,o,Ct()))},input:r.value}),r.issues=[]),r)}}),w2=z("$ZodNaN",(e,t)=>{Te.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)}),_2=z("$ZodPipe",(e,t)=>{Te.init(e,t),Ue(e._zod,"values",()=>t.in._zod.values),Ue(e._zod,"optin",()=>t.in._zod.optin),Ue(e._zod,"optout",()=>t.out._zod.optout),Ue(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=>C0(a,t.in,o)):C0(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>C0(i,t.out,o)):C0(n,t.out,o)}});function C0(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Wu=z("$ZodCodec",(e,t)=>{Te.init(e,t),Ue(e._zod,"values",()=>t.in._zod.values),Ue(e._zod,"optin",()=>t.in._zod.optin),Ue(e._zod,"optout",()=>t.out._zod.optout),Ue(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=>P0(a,t,o)):P0(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>P0(a,t,o)):P0(i,t,o)}}});function P0(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=>E0(e,i,t.out,r)):E0(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>E0(e,i,t.in,r)):E0(e,n,t.in,r)}}function E0(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var k2=z("$ZodReadonly",(e,t)=>{Te.init(e,t),Ue(e._zod,"propValues",()=>t.innerType._zod.propValues),Ue(e._zod,"values",()=>t.innerType._zod.values),Ue(e._zod,"optin",()=>t.innerType?._zod?.optin),Ue(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(CA):CA(n)}});function CA(e){return e.value=Object.freeze(e.value),e}var S2=z("$ZodTemplateLiteral",(e,t)=>{Te.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||y4.has(typeof o))r.push(sn(`${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)}),$2=z("$ZodFunction",(e,t)=>(Te.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?m0(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?m0(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 f0(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await f0(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 R0({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)),I2=z("$ZodPromise",(e,t)=>{Te.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),T2=z("$ZodLazy",(e,t)=>{Te.init(e,t),Ue(e._zod,"innerType",()=>t.getter()),Ue(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ue(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ue(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ue(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),C2=z("$ZodCustom",(e,t)=>{st.init(e,t),Te.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=>PA(i,r,o,e));PA(n,r,o,e)}});function PA(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(el(n))}}var Ku={};_r(Ku,{ar:()=>MA,az:()=>DA,be:()=>jA,bg:()=>UA,ca:()=>LA,cs:()=>FA,da:()=>BA,de:()=>VA,en:()=>D0,eo:()=>ZA,es:()=>GA,fa:()=>qA,fi:()=>HA,fr:()=>WA,frCA:()=>JA,he:()=>KA,hu:()=>XA,hy:()=>QA,id:()=>ez,is:()=>tz,it:()=>rz,ja:()=>nz,ka:()=>oz,kh:()=>iz,km:()=>O0,ko:()=>az,lt:()=>lz,mk:()=>cz,ms:()=>uz,nl:()=>dz,no:()=>pz,ota:()=>mz,pl:()=>hz,ps:()=>fz,pt:()=>gz,ru:()=>yz,sl:()=>bz,sv:()=>xz,ta:()=>wz,th:()=>_z,tr:()=>kz,ua:()=>Sz,uk:()=>j0,ur:()=>$z,uz:()=>Iz,vi:()=>Tz,yo:()=>Ez,zhCN:()=>Cz,zhTW:()=>Pz});var dJ=()=>{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=W(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 ${G(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: ${O(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":""}: ${O(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 MA(){return{localeError:dJ()}}var pJ=()=>{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=W(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 ${G(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${O(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":""}: ${O(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 DA(){return{localeError:pJ()}}function OA(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 mJ=()=>{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=W(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 ${G(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 ${O(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=OA(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=OA(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"}: ${O(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 jA(){return{localeError:mJ()}}var fJ=()=>{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=W(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 ${G(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 ${O(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":""}: ${O(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 UA(){return{localeError:fJ()}}var hJ=()=>{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=W(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 ${G(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${O(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":""}: ${O(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 LA(){return{localeError:hJ()}}var gJ=()=>{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=W(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 ${G(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${O(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: ${O(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 FA(){return{localeError:gJ()}}var vJ=()=>{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=W(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 ${G(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${O(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"}: ${O(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 BA(){return{localeError:vJ()}}var yJ=()=>{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=W(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 ${G(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${O(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"}: ${O(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 VA(){return{localeError:yJ()}}var bJ=()=>{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=W(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${G(n.values[0])}`:`Invalid option: expected one of ${O(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":""}: ${O(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 D0(){return{localeError:bJ()}}var xJ=()=>{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=W(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 ${G(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${O(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":""}: ${O(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 ZA(){return{localeError:xJ()}}var wJ=()=>{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=W(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 ${G(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${O(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":""}: ${O(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 GA(){return{localeError:wJ()}}var _J=()=>{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=W(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 ${G(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 ${O(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: ${O(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 qA(){return{localeError:_J()}}var kJ=()=>{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=W(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 ${G(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${O(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"}: ${O(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 HA(){return{localeError:kJ()}}var SJ=()=>{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=W(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 : ${G(n.values[0])}
100 attendu`:`Option invalide : une valeur parmi ${O(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":""} : ${O(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 WA(){return{localeError:SJ()}}var $J=()=>{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=W(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 ${G(n.values[0])}
100`:`Option invalide : attendu l'une des valeurs suivantes ${O(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":""} : ${O(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 JA(){return{localeError:$J()}}var IJ=()=>{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=c=>c?e[c]:void 0,o=c=>{let u=r(c);return u?u.label:c??e.unknown.label},n=c=>`\u05D4${o(c)}`,i=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??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 c=>
vendor: 33,580 bytes, line 100
100{switch(c.code){case"invalid_type":{let u=c.expected,d=l[u??""]??o(u),p=W(c.input),m=l[p]??e[p]?.label??p;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.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(c.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 ${G(c.values[0])}`;let u=c.values.map(m=>G(m));if(c.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 ${u[0]} \u05D0\u05D5 ${u[1]}`;let d=u[u.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 ${u.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let u=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let g=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=c.inclusive?`${c.maximum} ${u?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${u?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let p=c.inclusive?"<=":"<",m=i(c.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${c.maximum.toString()}`}case"too_small":{let u=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let g=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(c.origin==="array"||c.origin==="set"){let g=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let y=(c.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 ${y}`}let x=c.inclusive?`${c.minimum} ${u?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${u?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let p=c.inclusive?">=":">",m=i(c.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${m} ${p}${c.minimum.toString()}`}case"invalid_format":{let u=c;if(u.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`;if(u.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`;if(u.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 ${u.pattern}`;let d=s[u.format],p=d?.label??u.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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${O(c.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(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function KA(){return{localeError:IJ()}}var TJ=()=>{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=W(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 ${G(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${O(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":""}: ${O(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 XA(){return{localeError:TJ()}}function YA(e,t,r){return Math.abs(e)===1?t:r}function al(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 CJ=()=>{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=W(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 ${G(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 ${O(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=YA(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 ${al(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 ${al(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=YA(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 ${al(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 ${al(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":""}. ${O(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${al(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 ${al(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function QA(){return{localeError:CJ()}}var PJ=()=>{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=W(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 ${G(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${O(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":""}: ${O(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 ez(){return{localeError:PJ()}}var EJ=()=>{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=W(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 ${G(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${O(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"}: ${O(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 tz(){return{localeError:EJ()}}var AJ=()=>{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=W(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 ${G(n.values[0])}`:`Opzione non valida: atteso uno tra ${O(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"}: ${O(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 rz(){return{localeError:AJ()}}var zJ=()=>{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=W(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: ${G(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${O(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":""}: ${O(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 nz(){return{localeError:zJ()}}var NJ=()=>{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=W(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 ${G(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 ${O(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"}: ${O(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 oz(){return{localeError:NJ()}}var RJ=()=>{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
100D2\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=W(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 ${G(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 ${O(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 ${O(n.keys,", ")}`;
vendor: 13,627 bytes, line 100
100case"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 O0(){return{localeError:RJ()}}function iz(){return O0()}var MJ=()=>{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=W(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 ${G(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${O(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: ${O(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 az(){return{localeError:MJ()}}var Ju=e=>e.charAt(0).toUpperCase()+e.slice(1);function sz(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 DJ=()=>{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=W(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 ${G(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${O(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,sz(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Ju(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`${Ju(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,sz(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Ju(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`${Ju(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"}: ${O(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`${Ju(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function lz(){return{localeError:DJ()}}var OJ=()=>{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=W(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 ${G(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 ${O(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
100041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${O(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 cz(){return{localeError:OJ()}}var jJ=()=>{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=W(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 ${G(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${O(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: ${O(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 uz(){return{localeError:jJ()}}var UJ=()=>{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=W(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 ${G(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${O(n.values,"|")}`;
vendor: 7,366 bytes, line 100
100case"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":""}: ${O(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 dz(){return{localeError:UJ()}}var LJ=()=>{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=W(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 ${G(n.values[0])}`:`Ugyldig valg: forventet en av ${O(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"}: ${O(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 pz(){return{localeError:LJ()}}var FJ=()=>{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=W(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 ${G(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${O(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":""}: ${O(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 mz(){return{localeError:FJ()}}var BJ=()=>{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
100067E\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=W(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 ${G(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${O(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"}: ${O(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 fz(){return{localeError:BJ()}}var VJ=()=>{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 100
100{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=W(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 ${G(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${O(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":""}: ${O(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 hz(){return{localeError:VJ()}}var ZJ=()=>{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=W(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 ${G(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${O(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>
1001?"s":""} desconhecida${n.keys.length>1?"s":""}: ${O(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 gz(){return{localeError:ZJ()}}function vz(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 GJ=()=>{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=W(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 ${G(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 ${O(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=vz(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=vz(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,831 bytes, lines 100-102
100case"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":""}: ${O(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 yz(){return{localeError:GJ()}}var qJ=()=>{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=W(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 ${G(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${O(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"}: ${O(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 bz(){return{localeError:qJ()}}var HJ=()=>{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=W(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 ${G(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${O(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"}: ${O(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 xz(){return{localeError:HJ()}}var WJ=()=>{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=W(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 ${G(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 ${O(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":""}: ${O(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 wz(){return{localeError:WJ()}}var JJ=()=>{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=W(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 ${G(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 ${O(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: ${O(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 _z(){return{localeError:JJ()}}var KJ=()=>{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=W(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 ${G(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${O(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":""}: ${O(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 kz(){return{localeError:KJ()}}var XJ=()=>{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=W(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 ${G(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 ${O(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":""}: ${O(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 j0(){return{localeError:XJ()}}function Sz(){return j0()}var YJ=()=>{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=W(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: ${G(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${O(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":""}: ${O(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 $z(){return{localeError:YJ()}}var QJ=()=>{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=W(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 ${G(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${O(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":""}: ${O(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 Iz(){return{localeError:QJ()}}var eK=()=>{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=W(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 ${G(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 ${O(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: ${O(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 Tz(){return{localeError:eK()}}var tK=()=>{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=W(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 ${G(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${O(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): ${O(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 Cz(){return{localeError:tK()}}var rK=()=>{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=W(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 ${G(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${O(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${O(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 Pz(){return{localeError:rK()}}var nK=()=>{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=W(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 ${G(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${O(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: ${O(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 Ez(){return{localeError:nK()}}var Az,P2=Symbol("ZodOutput"),E2=Symbol("ZodInput"),U0=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 L0(){return new U0}(Az=globalThis).__zod_globalRegistry??(Az.__zod_globalRegistry=L0());var Jt=globalThis.__zod_globalRegistry;function A2(e,t){return new e({type:"string",...ee(t)})}function z2(e,t){return new e({type:"string",coerce:!0,...ee(t)})}function F0(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ee(t)})}function Xu(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ee(t)})}function B0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ee(t)})}function V0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ee(t)})}function Z0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ee(t)})}function G0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ee(t)})}function Yu(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ee(t)})}function q0(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ee(t)})}function H0(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ee(t)})}function W0(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ee(t)})}function J0(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ee(t)})}function K0(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ee(t)})}function X0(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ee(t)})}function Y0(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ee(t)})}function Q0(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ee(t)})}function eh(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ee(t)})}function N2(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ee(t)})}function th(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ee(t)})}function rh(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ee(t)})}function nh(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ee(t)})}function oh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ee(t)})}function ih(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ee(t)})}function ah(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ee(t)})}var R2={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function M2(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ee(t)})}function D2(e,t){return new e({type:"string",format:"date",check:"string_format",...ee(t)})}function O2(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ee(t)})}function j2(e,t){return new e({type:"string",format:"duration",check:"string_format",...ee(t)})}function U2(e,t){return new e({type:"number",checks:[],...ee(t)})}function L2(e,t){return new e({type:"number",coerce:!0,checks:[],...ee(t)})}function F2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ee(t)})}function B2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ee(t)})}function V2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ee(t)})}function Z2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ee(t)})}function G2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ee(t)})}function q2(e,t){return new e({type:"boolean",...ee(t)})}function H2(e,t){return new e({type:"boolean",coerce:!0,...ee(t)})}function W2(e,t){return new e({type:"bigint",...ee(t)})}function J2(e,t){return new e({type:"bigint",coerce:!0,...ee(t)})}function K2(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ee(t)})}function X2(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ee(t)})}function Y2(e,t){return new e({type:"symbol",...ee(t)})}function Q2(e,t){return new e({type:"undefined",...ee(t)})}function e6(e,t){return new e({type:"null",...ee(t)})}function t6(e){return new e({type:"any"})}function r6(e){return new e({type:"unknown"})}function n6(e,t){return new e({type:"never",...ee(t)})}function o6(e,t){return new e({type:"void",...ee(t)})}function i6(e,t){return new e({type:"date",...ee(t)})}function a6(e,t){return new e({type:"date",coerce:!0,...ee(t)})}function s6(e,t){return new e({type:"nan",...ee(t)})}function Bn(e,t){return new $0({check:"less_than",...ee(t),value:e,inclusive:!1})}function qr(e,t){return new $0({check:"less_than",...ee(t),value:e,inclusive:!0})}function Vn(e,t){return new I0({check:"greater_than",...ee(t),value:e,inclusive:!1})}function fr(e,t){return new I0({check:"greater_than",...ee(t),value:e,inclusive:!0})}function sh(e){return Vn(0,e)}function lh(e){return Bn(0,e)}function ch(e){return qr(0,e)}function uh(e){return fr(0,e)}function zi(e,t){return new ew({check:"multiple_of",...ee(t),value:e})}function Ni(e,t){return new nw({check:"max_size",...ee(t),maximum:e})}function Zn(e,t){return new ow({check:"min_size",...ee(t),minimum:e})}function Ta(e,t){return new iw({check:"size_equals",...ee(t),size:e})}function Ca(e,t){return new aw({check:"max_length",...ee(t),maximum:e})}function Co(e,t){return new sw({check:"min_length",...ee(t),minimum:e})}function Pa(e,t){return new lw({check:"length_equals",...ee(t),length:e})}function sl(e,t){return new cw({check:"string_format",format:"regex",...ee(t),pattern:e})}function ll(e){return new uw({check:"string_format",format:"lowercase",...ee(e)})}function cl(e){return new dw({check:"string_format",format:"uppercase",...ee(e)})}function ul(e,t){return new pw({check:"string_format",format:"includes",...ee(t),includes:e})}function dl(e,t){return new mw({check:"string_format",format:"starts_with",...ee(t),prefix:e})}function pl(e,t){return new fw({check:"string_format",format:"ends_with",...ee(t),suffix:e})}function dh(e,t,r){return new hw({check:"property",property:e,schema:t,...ee(r)})}function ml(e,t){return new gw({check:"mime_type",mime:e,...ee(t)})}function In(e){return new vw({check:"overwrite",tx:e})}function fl(e){return In(t=>t.normalize(e))}function hl(){return In(e=>e.trim())}function gl(){return In(e=>e.toLowerCase())}function vl(){return In(e=>e.toUpperCase())}function yl(){return In(e=>h4(e))}function l6(e,t,r){return new e({type:"array",element:t,...ee(r)})}function iK(e,t,r){return new e({type:"union",options:t,...ee(r)})}function aK(e,t,r){return new e({type:"union",options:t,inclusive:!1,...ee(r)})}function sK(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...ee(o)})}function lK(e,t,r){return new e({type:"intersection",left:t,right:r})}function cK(e,t,r,o){let n=r instanceof Te,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...ee(i)})}function uK(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...ee(o)})}function dK(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...ee(o)})}function pK(e,t,r){return new e({type:"set",valueType:t,...ee(r)})}function mK(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...ee(r)})}function fK(e,t,r){return new e({type:"enum",entries:t,...ee(r)})}function hK(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ee(r)})}function c6(e,t){return new e({type:"file",...ee(t)})}function gK(e,t){return new e({type:"transform",transform:t})}function vK(e,t){return new e({type:"optional",innerType:t})}function yK(e,t){return new e({type:"nullable",innerType:t})}function bK(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():v4(r)}})}function xK(e,t,r){return new e({type:"nonoptional",innerType:t,...ee(r)})}function wK(e,t){return new e({type:"success",innerType:t})}function _K(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function kK(e,t,r){return new e({type:"pipe",in:t,out:r})}function SK(e,t){return new e({type:"readonly",innerType:t})}function $K(e,t,r){return new e({type:"template_literal",parts:t,...ee(r)})}function IK(e,t){return new e({type:"lazy",getter:t})}function TK(e,t){return new e({type:"promise",innerType:t})}function u6(e,t,r){let o=ee(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function d6(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ee(r)})}function p6(e){let t=zz(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(el(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(el(n))}},e(r.value,r)));return t}function zz(e,t){let r=new st({check:"custom",...ee(t)});return r._zod.check=e,r}function m6(e){let t=new st({check:"describe"});return t._zod.onattach=[r=>{let o=Jt.get(r)??{};Jt.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function f6(e){let t=new st({check:"meta"});return t._zod.onattach=[r=>{let o=Jt.get(r)??{};Jt.add(r,{...o,...e})}],t._zod.check=()=>{},t}function h6(e,t){let r=ee(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??Wu,l=e.Boolean??qu,c=e.String??Ia,u=new c({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),p=new s({type:"pipe",in:u,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 bl(e,t,r,o={}){let n=ee(o),i={...ee(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??Jt,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 Ye(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 u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);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,u)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),Ye(d,t,u),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&hr(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 Mi(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 c=`#/${s}/`,u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:c}=n(a);s.def={...s.schema},c&&(s.defId=c);let u=s.schema;for(let d in u)delete u[d];u.$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> 101 102Set 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 c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){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 Di(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,c={...l},u=s.ref;if(s.ref=null,u){o(u);let p=e.seen.get(u),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,c),a._zod.parent===u)for(let x in l)x==="$ref"||x==="allOf"||x in c||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!==u){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:xl(t,"input",e.processors),output:xl(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function hr(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 hr(o.element,r);if(o.type==="set")return hr(o.valueType,r);if(o.type==="lazy")return hr(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 hr(o.innerType,r);if(o.type==="intersection")return hr(o.left,r)||hr(o.right,r);if(o.type==="record"||o.type==="map")return hr(o.keyType,r)||hr(o.valueType,r);if(o.type==="pipe")return hr(o.in,r)||hr(o.out,r);if(o.type==="object"){for(let n in o.shape)if(hr(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(hr(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(hr(n,r))return!0;return!!(o.rest&&hr(o.rest,r))}return!1}var g6=(e,t={})=>r=>{let o=Ri({...r,processors:t});return Ye(e,o),Mi(o,e),Di(o,e)},xl=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=Ri({...n??{},target:i,io:t,processors:r});return Ye(e,a),Mi(a,e),Di(a,e)};var CK={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},v6=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=CK[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),l&&l.size>0){let u=[...l];u.length===1?n.pattern=u[0].source:u.length>1&&(n.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},y6=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u),typeof i=="number"&&(n.minimum=i,typeof u=="number"&&t.target!=="draft-04"&&(u>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c),typeof a=="number"&&(n.maximum=a,typeof c=="number"&&t.target!=="draft-04"&&(c<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},b6=(e,t,r,o)=>{r.type="boolean"},x6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},w6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},_6=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},k6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},S6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},$6=(e,t,r,o)=>{r.not={}},I6=(e,t,r,o)=>{},T6=(e,t,r,o)=>{},C6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},P6=(e,t,r,o)=>{let n=e._zod.def,i=Mu(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},E6=(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},A6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},z6=(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},N6=(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(c=>({contentMediaType:c}))):Object.assign(n,i)},R6=(e,t,r,o)=>{r.type="boolean"},M6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},D6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},O6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},j6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},U6=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},L6=(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=Ye(i.element,t,{...o,path:[...o.path,"items"]})},F6=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let c in a)n.properties[c]=Ye(a[c],t,{...o,path:[...o.path,"properties",c]});let s=new Set(Object.keys(a)),l=new Set([...s].filter(c=>{let u=i.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.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=Ye(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},mh=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,l)=>Ye(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=a:r.anyOf=a},B6=(e,t,r,o)=>{let n=e._zod.def,i=Ye(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=Ye(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=l},V6=(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)=>Ye(p,t,{...o,path:[...o.path,a,m]})),c=i.rest?Ye(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,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:l},c&&n.items.anyOf.push(c),n.minItems=l.length,c||(n.maxItems=l.length)):(n.items=l,c&&(n.additionalItems=c));let{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(n.minItems=u),typeof d=="number"&&(n.maxItems=d)},Z6=(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 u=Ye(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of l)n.patternProperties[d.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=Ye(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=Ye(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=a._zod.values;if(c){let u=[...c].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(n.required=u)}},G6=(e,t,r,o)=>{let n=e._zod.def,i=Ye(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"}]},q6=(e,t,r,o)=>{let n=e._zod.def;Ye(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},H6=(e,t,r,o)=>{let n=e._zod.def;Ye(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},W6=(e,t,r,o)=>{let n=e._zod.def;Ye(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)))},J6=(e,t,r,o)=>{let n=e._zod.def;Ye(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},K6=(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;Ye(i,t,o);let a=t.seen.get(e);a.ref=i},X6=(e,t,r,o)=>{let n=e._zod.def;Ye(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},Y6=(e,t,r,o)=>{let n=e._zod.def;Ye(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},fh=(e,t,r,o)=>{let n=e._zod.def;Ye(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Q6=(e,t,r,o)=>{let n=e._zod.innerType;Ye(n,t,o);let i=t.seen.get(e);i.ref=n},ph={string:v6,number:y6,boolean:b6,bigint:x6,symbol:w6,null:_6,undefined:k6,void:S6,never:$6,any:I6,unknown:T6,date:C6,enum:P6,literal:E6,nan:A6,template_literal:z6,file:N6,success:R6,custom:M6,function:D6,transform:O6,map:j6,set:U6,array:L6,object:F6,union:mh,intersection:B6,tuple:V6,record:Z6,nullable:G6,nonoptional:q6,default:H6,prefault:W6,catch:J6,pipe:K6,readonly:X6,promise:Y6,optional:fh,lazy:Q6};function hh(e,t){if("_idmap"in e){let o=e,n=Ri({...t,processors:ph}),i={};for(let l of o._idmap.entries()){let[c,u]=l;Ye(u,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let l of o._idmap.entries()){let[c,u]=l;Mi(n,u),a[c]=Di(n,u)}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:ph});return Ye(e,r),Mi(r,e),Di(r,e)}var gh=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:ph,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 Ye(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)),Mi(this.ctx,t);let o=Di(this.ctx,t),{"~standard":n,...i}=o;return i}};var Nz={};var Qu={};_r(Qu,{ZodAny:()=>k_,ZodArray:()=>T_,ZodBase64:()=>Oh,ZodBase64URL:()=>jh,ZodBigInt:()=>Tl,ZodBigIntFormat:()=>Fh,ZodBoolean:()=>Il,ZodCIDRv4:()=>Mh,ZodCIDRv6:()=>Dh,ZodCUID:()=>Ch,ZodCUID2:()=>Ph,ZodCatch:()=>J_,ZodCodec:()=>Jh,ZodCustom:()=>ud,ZodCustomStringFormat:()=>Sl,ZodDate:()=>id,ZodDefault:()=>V_,ZodDiscriminatedUnion:()=>P_,ZodE164:()=>Uh,ZodEmail:()=>$h,ZodEmoji:()=>Ih,ZodEnum:()=>_l,ZodExactOptional:()=>L_,ZodFile:()=>j_,ZodFunction:()=>ok,ZodGUID:()=>ed,ZodIPv4:()=>Nh,ZodIPv6:()=>Rh,ZodIntersection:()=>E_,ZodJWT:()=>Lh,ZodKSUID:()=>zh,ZodLazy:()=>tk,ZodLiteral:()=>O_,ZodMAC:()=>g_,ZodMap:()=>M_,ZodNaN:()=>X_,ZodNanoID:()=>Th,ZodNever:()=>$_,ZodNonOptional:()=>Hh,ZodNull:()=>w_,ZodNullable:()=>B_,ZodNumber:()=>$l,ZodNumberFormat:()=>Aa,ZodObject:()=>sd,ZodOptional:()=>qh,ZodPipe:()=>Wh,ZodPrefault:()=>G_,ZodPromise:()=>nk,ZodReadonly:()=>Y_,ZodRecord:()=>cd,ZodSet:()=>D_,ZodString:()=>kl,ZodStringFormat:()=>ot,ZodSuccess:()=>W_,ZodSymbol:()=>b_,ZodTemplateLiteral:()=>ek,ZodTransform:()=>U_,ZodTuple:()=>z_,ZodType:()=>Re,ZodULID:()=>Eh,ZodURL:()=>od,ZodUUID:()=>Gn,ZodUndefined:()=>x_,ZodUnion:()=>ld,ZodUnknown:()=>S_,ZodVoid:()=>I_,ZodXID:()=>Ah,ZodXor:()=>C_,_ZodString:()=>Sh,_default:()=>Z_,_function:()=>LN,any:()=>yN,array:()=>ad,base64:()=>tN,base64url:()=>rN,bigint:()=>mN,boolean:()=>y_,catch:()=>K_,check:()=>FN,cidrv4:()=>Qz,cidrv6:()=>eN,codec:()=>ON,cuid:()=>Gz,cuid2:()=>qz,custom:()=>BN,date:()=>xN,describe:()=>VN,discriminatedUnion:()=>IN,e164:()=>nN,email:()=>Mz,emoji:()=>Vz,enum:()=>Zh,exactOptional:()=>F_,file:()=>NN,float32:()=>cN,float64:()=>uN,function:()=>LN,guid:()=>Dz,hash:()=>lN,hex:()=>sN,hostname:()=>aN,httpUrl:()=>Bz,instanceof:()=>GN,int:()=>kh,int32:()=>dN,int64:()=>fN,intersection:()=>A_,ipv4:()=>Kz,ipv6:()=>Yz,json:()=>HN,jwt:()=>oN,keyof:()=>wN,ksuid:()=>Jz,lazy:()=>rk,literal:()=>zN,looseObject:()=>SN,looseRecord:()=>CN,mac:()=>Xz,map:()=>PN,meta:()=>ZN,nan:()=>DN,nanoid:()=>Zz,nativeEnum:()=>AN,never:()=>Bh,nonoptional:()=>H_,null:()=>__,nullable:()=>rd,nullish:()=>RN,number:()=>v_,object:()=>_N,optional:()=>td,partialRecord:()=>TN,pipe:()=>nd,prefault:()=>q_,preprocess:()=>WN,promise:()=>UN,readonly:()=>Q_,record:()=>R_,refine:()=>ik,set:()=>EN,strictObject:()=>kN,string:()=>_h,stringFormat:()=>iN,stringbool:()=>qN,success:()=>MN,superRefine:()=>ak,symbol:()=>gN,templateLiteral:()=>jN,transform:()=>Gh,tuple:()=>N_,uint32:()=>pN,uint64:()=>hN,ulid:()=>Hz,undefined:()=>vN,union:()=>Vh,unknown:()=>Ea,url:()=>Fz,uuid:()=>Oz,uuidv4:()=>jz,uuidv6:()=>Uz,uuidv7:()=>Lz,void:()=>bN,xid:()=>Wz,xor:()=>$N});var vh={};_r(vh,{endsWith:()=>pl,gt:()=>Vn,gte:()=>fr,includes:()=>ul,length:()=>Pa,lowercase:()=>ll,lt:()=>Bn,lte:()=>qr,maxLength:()=>Ca,maxSize:()=>Ni,mime:()=>ml,minLength:()=>Co,minSize:()=>Zn,multipleOf:()=>zi,negative:()=>lh,nonnegative:()=>uh,nonpositive:()=>ch,normalize:()=>fl,overwrite:()=>In,positive:()=>sh,property:()=>dh,regex:()=>sl,size:()=>Ta,slugify:()=>yl,startsWith:()=>dl,toLowerCase:()=>gl,toUpperCase:()=>vl,trim:()=>hl,uppercase:()=>cl});var wl={};_r(wl,{ZodISODate:()=>bh,ZodISODateTime:()=>yh,ZodISODuration:()=>wh,ZodISOTime:()=>xh,date:()=>t_,datetime:()=>e_,duration:()=>n_,time:()=>r_});var yh=z("ZodISODateTime",(e,t)=>{Aw.init(e,t),ot.init(e,t)});function e_(e){return M2(yh,e)}var bh=z("ZodISODate",(e,t)=>{zw.init(e,t),ot.init(e,t)});function t_(e){return D2(bh,e)}var xh=z("ZodISOTime",(e,t)=>{Nw.init(e,t),ot.init(e,t)});function r_(e){return O2(xh,e)}var wh=z("ZodISODuration",(e,t)=>{Rw.init(e,t),ot.init(e,t)});function n_(e){return j2(wh,e)}var Rz=(e,t)=>{Lu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Bu(e,r)},flatten:{value:r=>Fu(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ys,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ys,2)}},isEmpty:{get(){return e.issues.length===0}}})},EK=z("ZodError",Rz),Pr=z("ZodError",Rz,{Parent:Error});var o_=tl(Pr),i_=rl(Pr),a_=nl(Pr),s_=ol(Pr),l_=h0(Pr),c_=g0(Pr),u_=v0(Pr),d_=y0(Pr),p_=b0(Pr),m_=x0(Pr),f_=w0(Pr),h_=_0(Pr);var Re=z("ZodType",(e,t)=>(Te.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:xl(e,"input"),output:xl(e,"output")}}),e.toJSONSchema=g6(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(J.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)=>mr(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>o_(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>a_(e,r,o),e.parseAsync=async(r,o)=>i_(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>s_(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>l_(e,r,o),e.decode=(r,o)=>c_(e,r,o),e.encodeAsync=async(r,o)=>u_(e,r,o),e.decodeAsync=async(r,o)=>d_(e,r,o),e.safeEncode=(r,o)=>p_(e,r,o),e.safeDecode=(r,o)=>m_(e,r,o),e.safeEncodeAsync=async(r,o)=>f_(e,r,o),e.safeDecodeAsync=async(r,o)=>h_(e,r,o),e.refine=(r,o)=>e.check(ik(r,o)),e.superRefine=r=>e.check(ak(r)),e.overwrite=r=>e.check(In(r)),e.optional=()=>td(e),e.exactOptional=()=>F_(e),e.nullable=()=>rd(e),e.nullish=()=>td(rd(e)),e.nonoptional=r=>H_(e,r),e.array=()=>ad(e),e.or=r=>Vh([e,r]),e.and=r=>A_(e,r),e.transform=r=>nd(e,Gh(r)),e.default=r=>Z_(e,r),e.prefault=r=>q_(e,r),e.catch=r=>K_(e,r),e.pipe=r=>nd(e,r),e.readonly=()=>Q_(e),e.describe=r=>{let o=e.clone();return Jt.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return Jt.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Jt.get(e);let o=e.clone();return Jt.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Sh=z("_ZodString",(e,t)=>{Ia.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(o,n,i)=>v6(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(sl(...o)),e.includes=(...o)=>e.check(ul(...o)),e.startsWith=(...o)=>e.check(dl(...o)),e.endsWith=(...o)=>e.check(pl(...o)),e.min=(...o)=>e.check(Co(...o)),e.max=(...o)=>e.check(Ca(...o)),e.length=(...o)=>e.check(Pa(...o)),e.nonempty=(...o)=>e.check(Co(1,...o)),e.lowercase=o=>e.check(ll(o)),e.uppercase=o=>e.check(cl(o)),e.trim=()=>e.check(hl()),e.normalize=(...o)=>e.check(fl(...o)),e.toLowerCase=()=>e.check(gl()),e.toUpperCase=()=>e.check(vl()),e.slugify=()=>e.check(yl())}),kl=z("ZodString",(e,t)=>{Ia.init(e,t),Sh.init(e,t),e.email=r=>e.check(F0($h,r)),e.url=r=>e.check(Yu(od,r)),e.jwt=r=>e.check(ah(Lh,r)),e.emoji=r=>e.check(q0(Ih,r)),e.guid=r=>e.check(Xu(ed,r)),e.uuid=r=>e.check(B0(Gn,r)),e.uuidv4=r=>e.check(V0(Gn,r)),e.uuidv6=r=>e.check(Z0(Gn,r)),e.uuidv7=r=>e.check(G0(Gn,r)),e.nanoid=r=>e.check(H0(Th,r)),e.guid=r=>e.check(Xu(ed,r)),e.cuid=r=>e.check(W0(Ch,r)),e.cuid2=r=>e.check(J0(Ph,r)),e.ulid=r=>e.check(K0(Eh,r)),e.base64=r=>e.check(nh(Oh,r)),e.base64url=r=>e.check(oh(jh,r)),e.xid=r=>e.check(X0(Ah,r)),e.ksuid=r=>e.check(Y0(zh,r)),e.ipv4=r=>e.check(Q0(Nh,r)),e.ipv6=r=>e.check(eh(Rh,r)),e.cidrv4=r=>e.check(th(Mh,r)),e.cidrv6=r=>e.check(rh(Dh,r)),e.e164=r=>e.check(ih(Uh,r)),e.datetime=r=>e.check(e_(r)),e.date=r=>e.check(t_(r)),e.time=r=>e.check(r_(r)),e.duration=r=>e.check(n_(r))});function _h(e){return A2(kl,e)}var ot=z("ZodStringFormat",(e,t)=>{nt.init(e,t),Sh.init(e,t)}),$h=z("ZodEmail",(e,t)=>{_w.init(e,t),ot.init(e,t)});function Mz(e){return F0($h,e)}var ed=z("ZodGUID",(e,t)=>{xw.init(e,t),ot.init(e,t)});function Dz(e){return Xu(ed,e)}var Gn=z("ZodUUID",(e,t)=>{ww.init(e,t),ot.init(e,t)});function Oz(e){return B0(Gn,e)}function jz(e){return V0(Gn,e)}function Uz(e){return Z0(Gn,e)}function Lz(e){return G0(Gn,e)}var od=z("ZodURL",(e,t)=>{kw.init(e,t),ot.init(e,t)});function Fz(e){return Yu(od,e)}function Bz(e){return Yu(od,{protocol:/^https?$/,hostname:ln.domain,...J.normalizeParams(e)})}var Ih=z("ZodEmoji",(e,t)=>{Sw.init(e,t),ot.init(e,t)});function Vz(e){return q0(Ih,e)}var Th=z("ZodNanoID",(e,t)=>{$w.init(e,t),ot.init(e,t)});function Zz(e){return H0(Th,e)}var Ch=z("ZodCUID",(e,t)=>{Iw.init(e,t),ot.init(e,t)});function Gz(e){return W0(Ch,e)}var Ph=z("ZodCUID2",(e,t)=>{Tw.init(e,t),ot.init(e,t)});function qz(e){return J0(Ph,e)}var Eh=z("ZodULID",(e,t)=>{Cw.init(e,t),ot.init(e,t)});function Hz(e){return K0(Eh,e)}var Ah=z("ZodXID",(e,t)=>{Pw.init(e,t),ot.init(e,t)});function Wz(e){return X0(Ah,e)}var zh=z("ZodKSUID",(e,t)=>{Ew.init(e,t),ot.init(e,t)});function Jz(e){return Y0(zh,e)}var Nh=z("ZodIPv4",(e,t)=>{Mw.init(e,t),ot.init(e,t)});function Kz(e){return Q0(Nh,e)}var g_=z("ZodMAC",(e,t)=>{Ow.init(e,t),ot.init(e,t)});function Xz(e){return N2(g_,e)}var Rh=z("ZodIPv6",(e,t)=>{Dw.init(e,t),ot.init(e,t)});function Yz(e){return eh(Rh,e)}var Mh=z("ZodCIDRv4",(e,t)=>{jw.init(e,t),ot.init(e,t)});function Qz(e){return th(Mh,e)}var Dh=z("ZodCIDRv6",(e,t)=>{Uw.init(e,t),ot.init(e,t)});function eN(e){return rh(Dh,e)}var Oh=z("ZodBase64",(e,t)=>{Fw.init(e,t),ot.init(e,t)});function tN(e){return nh(Oh,e)}var jh=z("ZodBase64URL",(e,t)=>{Bw.init(e,t),ot.init(e,t)});function rN(e){return oh(jh,e)}var Uh=z("ZodE164",(e,t)=>{Vw.init(e,t),ot.init(e,t)});function nN(e){return ih(Uh,e)}var Lh=z("ZodJWT",(e,t)=>{Zw.init(e,t),ot.init(e,t)});function oN(e){return ah(Lh,e)}var Sl=z("ZodCustomStringFormat",(e,t)=>{Gw.init(e,t),ot.init(e,t)});function iN(e,t,r={}){return bl(Sl,e,t,r)}function aN(e){return bl(Sl,"hostname",ln.hostname,e)}function sN(e){return bl(Sl,"hex",ln.hex,e)}function lN(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=ln[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return bl(Sl,o,n,t)}var $l=z("ZodNumber",(e,t)=>{z0.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(o,n,i)=>y6(e,o,n,i),e.gt=(o,n)=>e.check(Vn(o,n)),e.gte=(o,n)=>e.check(fr(o,n)),e.min=(o,n)=>e.check(fr(o,n)),e.lt=(o,n)=>e.check(Bn(o,n)),e.lte=(o,n)=>e.check(qr(o,n)),e.max=(o,n)=>e.check(qr(o,n)),e.int=o=>e.check(kh(o)),e.safe=o=>e.check(kh(o)),e.positive=o=>e.check(Vn(0,o)),e.nonnegative=o=>e.check(fr(0,o)),e.negative=o=>e.check(Bn(0,o)),e.nonpositive=o=>e.check(qr(0,o)),e.multipleOf=(o,n)=>e.check(zi(o,n)),e.step=(o,n)=>e.check(zi(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 v_(e){return U2($l,e)}var Aa=z("ZodNumberFormat",(e,t)=>{qw.init(e,t),$l.init(e,t)});function kh(e){return F2(Aa,e)}function cN(e){return B2(Aa,e)}function uN(e){return V2(Aa,e)}function dN(e){return Z2(Aa,e)}function pN(e){return G2(Aa,e)}var Il=z("ZodBoolean",(e,t)=>{qu.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>b6(e,r,o,n)});function y_(e){return q2(Il,e)}var Tl=z("ZodBigInt",(e,t)=>{N0.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(o,n,i)=>x6(e,o,n,i),e.gte=(o,n)=>e.check(fr(o,n)),e.min=(o,n)=>e.check(fr(o,n)),e.gt=(o,n)=>e.check(Vn(o,n)),e.gte=(o,n)=>e.check(fr(o,n)),e.min=(o,n)=>e.check(fr(o,n)),e.lt=(o,n)=>e.check(Bn(o,n)),e.lte=(o,n)=>e.check(qr(o,n)),e.max=(o,n)=>e.check(qr(o,n)),e.positive=o=>e.check(Vn(BigInt(0),o)),e.negative=o=>e.check(Bn(BigInt(0),o)),e.nonpositive=o=>e.check(qr(BigInt(0),o)),e.nonnegative=o=>e.check(fr(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(zi(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function mN(e){return W2(Tl,e)}var Fh=z("ZodBigIntFormat",(e,t)=>{Hw.init(e,t),Tl.init(e,t)});function fN(e){return K2(Fh,e)}function hN(e){return X2(Fh,e)}var b_=z("ZodSymbol",(e,t)=>{Ww.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>w6(e,r,o,n)});function gN(e){return Y2(b_,e)}var x_=z("ZodUndefined",(e,t)=>{Jw.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>k6(e,r,o,n)});function vN(e){return Q2(x_,e)}var w_=z("ZodNull",(e,t)=>{Kw.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_6(e,r,o,n)});function __(e){return e6(w_,e)}var k_=z("ZodAny",(e,t)=>{Xw.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>I6(e,r,o,n)});function yN(){return t6(k_)}var S_=z("ZodUnknown",(e,t)=>{Yw.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>T6(e,r,o,n)});function Ea(){return r6(S_)}var $_=z("ZodNever",(e,t)=>{Qw.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$6(e,r,o,n)});function Bh(e){return n6($_,e)}var I_=z("ZodVoid",(e,t)=>{e2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>S6(e,r,o,n)});function bN(e){return o6(I_,e)}var id=z("ZodDate",(e,t)=>{t2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(o,n,i)=>C6(e,o,n,i),e.min=(o,n)=>e.check(fr(o,n)),e.max=(o,n)=>e.check(qr(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 xN(e){return i6(id,e)}var T_=z("ZodArray",(e,t)=>{r2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>L6(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(Co(r,o)),e.nonempty=r=>e.check(Co(1,r)),e.max=(r,o)=>e.check(Ca(r,o)),e.length=(r,o)=>e.check(Pa(r,o)),e.unwrap=()=>e.element});function ad(e,t){return l6(T_,e,t)}function wN(e){let t=e._zod.def.shape;return Zh(Object.keys(t))}var sd=z("ZodObject",(e,t)=>{n2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>F6(e,r,o,n),J.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Zh(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ea()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ea()}),e.strict=()=>e.clone({...e._zod.def,catchall:Bh()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>J.extend(e,r),e.safeExtend=r=>J.safeExtend(e,r),e.merge=r=>J.merge(e,r),e.pick=r=>J.pick(e,r),e.omit=r=>J.omit(e,r),e.partial=(...r)=>J.partial(qh,e,r[0]),e.required=(...r)=>J.required(Hh,e,r[0])});function _N(e,t){let r={type:"object",shape:e??{},...J.normalizeParams(t)};return new sd(r)}function kN(e,t){return new sd({type:"object",shape:e,catchall:Bh(),...J.normalizeParams(t)})}function SN(e,t){return new sd({type:"object",shape:e,catchall:Ea(),...J.normalizeParams(t)})}var ld=z("ZodUnion",(e,t)=>{Hu.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>mh(e,r,o,n),e.options=t.options});function Vh(e,t){return new ld({type:"union",options:e,...J.normalizeParams(t)})}var C_=z("ZodXor",(e,t)=>{ld.init(e,t),o2.init(e,t),e._zod.processJSONSchema=(r,o,n)=>mh(e,r,o,n),e.options=t.options});function $N(e,t){return new C_({type:"union",options:e,inclusive:!1,...J.normalizeParams(t)})}var P_=z("ZodDiscriminatedUnion",(e,t)=>{ld.init(e,t),i2.init(e,t)});function IN(e,t,r){return new P_({type:"union",options:t,discriminator:e,...J.normalizeParams(r)})}var E_=z("ZodIntersection",(e,t)=>{a2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>B6(e,r,o,n)});function A_(e,t){return new E_({type:"intersection",left:e,right:t})}var z_=z("ZodTuple",(e,t)=>{R0.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>V6(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function N_(e,t,r){let o=t instanceof Te,n=o?r:t,i=o?t:null;return new z_({type:"tuple",items:e,rest:i,...J.normalizeParams(n)})}var cd=z("ZodRecord",(e,t)=>{s2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Z6(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function R_(e,t,r){return new cd({type:"record",keyType:e,valueType:t,...J.normalizeParams(r)})}function TN(e,t,r){let o=mr(e);return o._zod.values=void 0,new cd({type:"record",keyType:o,valueType:t,...J.normalizeParams(r)})}function CN(e,t,r){return new cd({type:"record",keyType:e,valueType:t,mode:"loose",...J.normalizeParams(r)})}var M_=z("ZodMap",(e,t)=>{l2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>j6(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Zn(...r)),e.nonempty=r=>e.check(Zn(1,r)),e.max=(...r)=>e.check(Ni(...r)),e.size=(...r)=>e.check(Ta(...r))});function PN(e,t,r){return new M_({type:"map",keyType:e,valueType:t,...J.normalizeParams(r)})}var D_=z("ZodSet",(e,t)=>{c2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>U6(e,r,o,n),e.min=(...r)=>e.check(Zn(...r)),e.nonempty=r=>e.check(Zn(1,r)),e.max=(...r)=>e.check(Ni(...r)),e.size=(...r)=>e.check(Ta(...r))});function EN(e,t){return new D_({type:"set",valueType:e,...J.normalizeParams(t)})}var _l=z("ZodEnum",(e,t)=>{u2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(o,n,i)=>P6(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 _l({...t,checks:[],...J.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 _l({...t,checks:[],...J.normalizeParams(n),entries:i})}});function Zh(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new _l({type:"enum",entries:r,...J.normalizeParams(t)})}function AN(e,t){return new _l({type:"enum",entries:e,...J.normalizeParams(t)})}var O_=z("ZodLiteral",(e,t)=>{d2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>E6(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 zN(e,t){return new O_({type:"literal",values:Array.isArray(e)?e:[e],...J.normalizeParams(t)})}var j_=z("ZodFile",(e,t)=>{p2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>N6(e,r,o,n),e.min=(r,o)=>e.check(Zn(r,o)),e.max=(r,o)=>e.check(Ni(r,o)),e.mime=(r,o)=>e.check(ml(Array.isArray(r)?r:[r],o))});function NN(e){return c6(j_,e)}var U_=z("ZodTransform",(e,t)=>{m2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>O6(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ti(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(J.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(J.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 Gh(e){return new U_({type:"transform",transform:e})}var qh=z("ZodOptional",(e,t)=>{M0.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function td(e){return new qh({type:"optional",innerType:e})}var L_=z("ZodExactOptional",(e,t)=>{f2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function F_(e){return new L_({type:"optional",innerType:e})}var B_=z("ZodNullable",(e,t)=>{h2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>G6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new B_({type:"nullable",innerType:e})}function RN(e){return td(rd(e))}var V_=z("ZodDefault",(e,t)=>{g2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>H6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Z_(e,t){return new V_({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():J.shallowClone(t)}})}var G_=z("ZodPrefault",(e,t)=>{v2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>W6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function q_(e,t){return new G_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():J.shallowClone(t)}})}var Hh=z("ZodNonOptional",(e,t)=>{y2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>q6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function H_(e,t){return new Hh({type:"nonoptional",innerType:e,...J.normalizeParams(t)})}var W_=z("ZodSuccess",(e,t)=>{b2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>R6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function MN(e){return new W_({type:"success",innerType:e})}var J_=z("ZodCatch",(e,t)=>{x2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>J6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function K_(e,t){return new J_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var X_=z("ZodNaN",(e,t)=>{w2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>A6(e,r,o,n)});function DN(e){return s6(X_,e)}var Wh=z("ZodPipe",(e,t)=>{_2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>K6(e,r,o,n),e.in=t.in,e.out=t.out});function nd(e,t){return new Wh({type:"pipe",in:e,out:t})}var Jh=z("ZodCodec",(e,t)=>{Wh.init(e,t),Wu.init(e,t)});function ON(e,t,r){return new Jh({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var Y_=z("ZodReadonly",(e,t)=>{k2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>X6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Q_(e){return new Y_({type:"readonly",innerType:e})}var ek=z("ZodTemplateLiteral",(e,t)=>{S2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>z6(e,r,o,n)});function jN(e,t){return new ek({type:"template_literal",parts:e,...J.normalizeParams(t)})}var tk=z("ZodLazy",(e,t)=>{T2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Q6(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function rk(e){return new tk({type:"lazy",getter:e})}var nk=z("ZodPromise",(e,t)=>{I2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Y6(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function UN(e){return new nk({type:"promise",innerType:e})}var ok=z("ZodFunction",(e,t)=>{$2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>D6(e,r,o,n)});function LN(e){return new ok({type:"function",input:Array.isArray(e?.input)?N_(e?.input):e?.input??ad(Ea()),output:e?.output??Ea()})}var ud=z("ZodCustom",(e,t)=>{C2.init(e,t),Re.init(e,t),e._zod.processJSONSchema=(r,o,n)=>M6(e,r,o,n)});function FN(e){let t=new st({check:"custom"});return t._zod.check=e,t}function BN(e,t){return u6(ud,e??(()=>!0),t)}function ik(e,t={}){return d6(ud,e,t)}function ak(e){return p6(e)}var VN=m6,ZN=f6;function GN(e,t={}){let r=new ud({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...J.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 qN=(...e)=>h6({Codec:Jh,Boolean:Il,String:kl},...e);function HN(e){let t=rk(()=>Vh([_h(e),v_(),y_(),__(),ad(t),R_(_h(),t)]));return t}function WN(e,t){return nd(Gh(e),t)}var zK={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 NK(e){Ct({customError:e})}function RK(){return Ct().customError}var sk;sk||(sk={});var ie={...Qu,...vh,iso:wl},MK=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 DK(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 OK(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 JN(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ie.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 ie.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=OK(n,t),a=tr(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 ie.null();if(n.length===0)return ie.never();if(n.length===1)return ie.literal(n[0]);if(n.every(a=>typeof a=="string"))return ie.enum(n);let i=n.map(a=>ie.literal(a));return i.length<2?i[0]:ie.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return ie.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return JN(a,t)});return n.length===0?ie.never():n.length===1?n[0]:ie.union(n)}if(!r)return ie.any();let o;switch(r){case"string":{let n=ie.string();if(e.format){let i=e.format;i==="email"?n=n.check(ie.email()):i==="uri"||i==="uri-reference"?n=n.check(ie.url()):i==="uuid"||i==="guid"?n=n.check(ie.uuid()):i==="date-time"?n=n.check(ie.iso.datetime()):i==="date"?n=n.check(ie.iso.date()):i==="time"?n=n.check(ie.iso.time()):i==="duration"?n=n.check(ie.iso.duration()):i==="ipv4"?n=n.check(ie.ipv4()):i==="ipv6"?n=n.check(ie.ipv6()):i==="mac"?n=n.check(ie.mac()):i==="cidr"?n=n.check(ie.cidrv4()):i==="cidr-v6"?n=n.check(ie.cidrv6()):i==="base64"?n=n.check(ie.base64()):i==="base64url"?n=n.check(ie.base64url()):i==="e164"?n=n.check(ie.e164()):i==="jwt"?n=n.check(ie.jwt()):i==="emoji"?n=n.check(ie.emoji()):i==="nanoid"?n=n.check(ie.nanoid()):i==="cuid"?n=n.check(ie.cuid()):i==="cuid2"?n=n.check(ie.cuid2()):i==="ulid"?n=n.check(ie.ulid()):i==="xid"?n=n.check(ie.xid()):i==="ksuid"&&(n=n.check(ie.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"?ie.number().int():ie.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=ie.boolean();break}case"null":{o=ie.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[l,c]of Object.entries(i)){let u=tr(c,t);n[l]=a.has(l)?u:u.optional()}if(e.propertyNames){let l=tr(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?tr(e.additionalProperties,t):ie.any();if(Object.keys(n).length===0){o=ie.record(l,c);break}let u=ie.object(n).passthrough(),d=ie.looseRecord(l,c);o=ie.intersection(u,d);break}if(e.patternProperties){let l=e.patternProperties,c=Object.keys(l),u=[];for(let p of c){let m=tr(l[p],t),g=ie.string().regex(new RegExp(p));u.push(ie.looseRecord(g,m))}let d=[];if(Object.keys(n).length>0&&d.push(ie.object(n).passthrough()),d.push(...u),d.length===0)o=ie.object({}).passthrough();else if(d.length===1)o=d[0];else{let p=ie.intersection(d[0],d[1]);for(let m=2;m<d.length;m++)p=ie.intersection(p,d[m]);o=p}break}let s=ie.object(n);e.additionalProperties===!1?o=s.strict():typeof e.additionalProperties=="object"?o=s.catchall(tr(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=>
102tr(l,t)),s=i&&typeof i=="object"&&!Array.isArray(i)?tr(i,t):void 0;s?o=ie.tuple(a).rest(s):o=ie.tuple(a),typeof e.minItems=="number"&&(o=o.check(ie.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ie.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(l=>tr(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?tr(e.additionalItems,t):void 0;s?o=ie.tuple(a).rest(s):o=ie.tuple(a),typeof e.minItems=="number"&&(o=o.check(ie.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ie.maxLength(e.maxItems)))}else if(i!==void 0){let a=tr(i,t),s=ie.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=ie.array(ie.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 tr(e,t){if(typeof e=="boolean")return e?ie.any():ie.never();let r=JN(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(c=>tr(c,t)),l=ie.union(s);r=o?ie.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>tr(c,t)),l=ie.xor(s);r=o?ie.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:ie.any();else{let s=o?r:tr(e.allOf[0],t),l=o?0:1;for(let c=l;c<e.allOf.length;c++)s=ie.intersection(s,tr(e.allOf[c],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=ie.nullable(r)),e.readOnly===!0&&(r=ie.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))MK.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function KN(e,t){if(typeof e=="boolean")return e?ie.any():ie.never();let r=DK(e,t?.defaultTarget),o=e.$defs||e.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Jt};return tr(e,n)}var lk={};_r(lk,{bigint:()=>FK,boolean:()=>LK,date:()=>BK,number:()=>UK,string:()=>jK});function jK(e){return z2(kl,e)}function UK(e){return L2($l,e)}function LK(e){return H2(Il,e)}function FK(e){return J2(Tl,e)}function BK(e){return a6(id,e)}Ct(D0());var ZK=Object.defineProperty,GK=(e,t)=>{for(var r in t)ZK(e,r,{get:t[r],enumerable:!0})},qK="AI_InvalidArgumentError",HK=`vercel.ai.error.${qK}`,WK=Symbol.for(HK),JK;JK=WK;var KK="AI_InvalidStreamPartError",XK=`vercel.ai.error.${KK}`,YK=Symbol.for(XK),QK;QK=YK;var eX="AI_InvalidToolApprovalError",tX=`vercel.ai.error.${eX}`,rX=Symbol.for(tX),nX;nX=rX;var oX="AI_InvalidToolApprovalSignatureError",iX=`vercel.ai.error.${oX}`,aX=Symbol.for(iX),sX;sX=aX;var lX="AI_InvalidToolInputError",cX=`vercel.ai.error.${lX}`,uX=Symbol.for(cX),dX;dX=uX;var pX="AI_ToolCallNotFoundForApprovalError",mX=`vercel.ai.error.${pX}`,fX=Symbol.for(mX),hX;hX=fX;var gX="AI_MissingToolResultsError",vX=`vercel.ai.error.${gX}`,yX=Symbol.for(vX),bX;bX=yX;var xX="AI_NoImageGeneratedError",wX=`vercel.ai.error.${xX}`,_X=Symbol.for(wX),kX;kX=_X;var YN="AI_NoObjectGeneratedError",QN=`vercel.ai.error.${YN}`,SX=Symbol.for(QN),eR,Oi=class extends Ze{constructor({message:e="No object generated.",cause:t,text:r,response:o,usage:n,finishReason:i}){super({name:YN,message:e,cause:t}),this[eR]=!0,this.text=r,this.response=o,this.usage=n,this.finishReason=i}static isInstance(e){return Ze.hasMarker(e,QN)}};eR=SX;var $X="AI_NoOutputGeneratedError",IX=`vercel.ai.error.${$X}`,TX=Symbol.for(IX),CX;CX=TX;var PX="AI_NoSpeechGeneratedError",EX=`vercel.ai.error.${PX}`,AX=Symbol.for(EX),zX;zX=AX;var NX="AI_NoTranscriptGeneratedError",RX=`vercel.ai.error.${NX}`,MX=Symbol.for(RX),DX;DX=MX;var OX="AI_NoVideoGeneratedError",jX=`vercel.ai.error.${OX}`,UX=Symbol.for(jX),LX;LX=UX;var FX="AI_NoSuchToolError",BX=`vercel.ai.error.${FX}`,VX=Symbol.for(BX),ZX;ZX=VX;var GX="AI_ToolCallRepairError",qX=`vercel.ai.error.${GX}`,HX=Symbol.for(qX),WX;WX=HX;var tR="AI_UIMessageStreamError",rR=`vercel.ai.error.${tR}`,JX=Symbol.for(rR),nR,Cl=class extends Ze{constructor({chunkType:e,chunkId:t,message:r}){super({name:tR,message:r}),this[nR]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return Ze.hasMarker(e,rR)}};nR=JX;var KX="AI_InvalidDataContentError",XX=`vercel.ai.error.${KX}`,YX=Symbol.for(XX),QX;QX=YX;var eY="AI_InvalidMessageRoleError",tY=`vercel.ai.error.${eY}`,rY=Symbol.for(tY),nY;nY=rY;var oY="AI_MessageConversionError",iY=`vercel.ai.error.${oY}`,aY=Symbol.for(iY),sY;sY=aY;
102var lY="AI_RetryError",cY=`vercel.ai.error.${lY}`,uY=Symbol.for(cY),dY;dY=uY;var pY=12,mY=128*1024,P7e=mY+pY;var fY="6.0.248",hY=async({url:e,maxBytes:t,abortSignal:r})=>{var o;let n=e.toString();try{let i=i0({},`ai-sdk/${fY}`,rA()),a=await QE({url:n,headers:i,abortSignal:r});if(!a.ok)throw await o0(a),new pr({url:n,statusCode:a.status,statusText:a.statusText});return{data:await eA({response:a,url:n,maxBytes:t??c4}),mediaType:(o=a.headers.get("content-type"))!=null?o:void 0}}catch(i){throw pr.isInstance(i)?i:new pr({url:n,cause:i})}};function oR(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]=oR(i,n):r[o]=n}return r}var iR=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 za=v.lazy(()=>v.union([v.null(),v.string(),v.number(),v.boolean(),v.record(v.string(),za.optional()),v.array(za)])),me=v.record(v.string(),v.record(v.string(),za.optional())),aR=v.object({type:v.literal("text"),text:v.string(),providerOptions:me.optional()}),gY=v.object({type:v.literal("image"),image:v.union([iR,v.instanceof(URL)]),mediaType:v.string().optional(),providerOptions:me.optional()}),sR=v.object({type:v.literal("file"),data:v.union([iR,v.instanceof(URL)]),filename:v.string().optional(),mediaType:v.string(),providerOptions:me.optional()}),vY=v.object({type:v.literal("reasoning"),text:v.string(),providerOptions:me.optional()}),yY=v.object({type:v.literal("tool-call"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerOptions:me.optional(),providerExecuted:v.boolean().optional()}),bY=v.discriminatedUnion("type",[v.object({type:v.literal("text"),value:v.string(),providerOptions:me.optional()}),v.object({type:v.literal("json"),value:za,providerOptions:me.optional()}),v.object({type:v.literal("execution-denied"),reason:v.string().optional(),providerOptions:me.optional()}),v.object({type:v.literal("error-text"),value:v.string(),providerOptions:me.optional()}),v.object({type:v.literal("error-json"),value:za,providerOptions:me.optional()}),v.object({type:v.literal("content"),value:v.array(v.union([v.object({type:v.literal("text"),text:v.string(),providerOptions:me.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:me.optional()}),v.object({type:v.literal("file-url"),url:v.string(),providerOptions:me.optional()}),v.object({type:v.literal("file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:me.optional()}),v.object({type:v.literal("image-data"),data:v.string(),mediaType:v.string(),providerOptions:me.optional()}),v.object({type:v.literal("image-url"),url:v.string(),providerOptions:me.optional()}),v.object({type:v.literal("image-file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:me.optional()}),v.object({type:v.literal("custom"),providerOptions:me.optional()})]))})]),lR=v.object({type:v.literal("tool-result"),toolCallId:v.string(),toolName:v.string(),output:bY,providerOptions:me.optional()}),xY=v.object({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string()}),wY=v.object({type:v.literal("tool-approval-response"),approvalId:v.string(),approved:v.boolean(),reason:v.string().optional()}),_Y=v.object({role:v.literal("system"),content:v.string(),providerOptions:me.optional()}),kY=v.object({role:v.literal("user"),content:v.union([v.string(),v.array(v.union([aR,gY,sR]))]),providerOptions:me.optional()}),SY=v.object({role:v.literal("assistant"),content:v.union([v.string(),v.array(v.union([aR,sR,vY,yY,lR,xY]))]),providerOptions:me.optional()}),$Y=v.object({role:v.literal("tool"),content:v.array(v.union([lR,wY])),providerOptions:me.optional()}),O7e=v.union([_Y,kY,SY,$Y]);var j7e=new TextEncoder;var IY={};GK(IY,{array:()=>EY,choice:()=>AY,json:()=>zY,object:()=>PY,text:()=>CY});function TY(e){let t=["ROOT"],r=-1,o=null,n=0;function i(u){return u>="0"&&u<="9"||u>="A"&&u<="F"||u>="a"&&u<="f"}function a(u,d,p){switch(u){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(u,d){switch(u){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=d,t.pop();break}}}function l(u,d){switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=d,t.pop();break}}}for(let u=0;u<e.length;u++){let d=e[u];switch(t[t.length-1]){case"ROOT":a(d,u,"FINISH");break;case"INSIDE_OBJECT_START":{switch(d){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=u,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,u,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(d,u);break}case"INSIDE_STRING":{switch(d){case'"':{t.pop(),r=u;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=u}break}case"INSIDE_ARRAY_START":{d==="]"?(r=u,t.pop()):(r=u,a(d,u,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(d){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=u,t.pop();break}default:{r=u;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{a(d,u,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),d==="u"?(n=0,t.push("INSIDE_STRING_UNICODE_ESCAPE")):r=u;break}case"INSIDE_STRING_UNICODE_ESCAPE":{i(d)&&(n++,n===4&&(t.pop(),r=u));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=u;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(d,u),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(d,u);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(d,u);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(d,u);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let m=e.substring(o,u+1);!"false".startsWith(m)&&!"true".startsWith(m)&&!"null".startsWith(m)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(d,u):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(d,u)):r=u;break}}}let c=e.slice(0,r+1);for(let u=t.length-1;u>=0;u--)switch(t[u]){case"INSIDE_STRING":{c+='"';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":{c+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{c+="]";break}case"INSIDE_LITERAL":{let p=e.substring(o,e.length);"true".startsWith(p)?c+="true".slice(p.length):"false".startsWith(p)?c+="false".slice(p.length):"null".startsWith(p)&&(c+="null".slice(p.length))}}return c}async function md(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Io({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Io({text:TY(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var CY=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}
vendor: 9,600 bytes, lines 102-106
102),PY=({schema:e,name:t,description:r})=>{let o=l0(e);return{name:"object",responseFormat:Fn(o.jsonSchema).then(n=>({type:"json",schema:n,...t!=null&&{name:t},...r!=null&&{description:r}})),async parseCompleteOutput({text:n},i){let a=await Io({text:n});if(!a.success)throw new Oi({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 Xs({value:a.value,schema:o});if(!s.success)throw new Oi({message:"No object generated: response did not match schema.",cause:s.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});return s.value},async parsePartialOutput({text:n}){let i=await md(n);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:i.value}}},createElementStreamTransform(){}}},EY=({element:e,name:t,description:r})=>{let o=l0(e);return{name:"array",responseFormat:Fn(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 Io({text:n});if(!a.success)throw new Oi({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 Oi({message:"No object generated: response did not match schema.",cause:new On({value:s,cause:"response must be an object with an elements array"}),text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});let l=[];for(let c of s.elements){let u=await Xs({value:c,schema:o});if(!u.success)throw new Oi({message:"No object generated: response did not match schema.",cause:u.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});l.push(u.value)}return l},async parsePartialOutput({text:n}){let i=await md(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 c of s){let u=await Xs({value:c,schema:o});u.success&&l.push(u.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])}})}}},AY=({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 Io({text:o});if(!i.success)throw new Oi({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 Oi({message:"No object generated: response did not match schema.",cause:new On({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 md(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(){}}),zY=({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 Io({text:r});if(!n.success)throw new Oi({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 md(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 B7e=$o({prefix:"aitxt",size:24});var Z7e=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)} 103 104`)},flush(e){e.enqueue(`data: [DONE] 105 106`)}})}};var dd=v.record(v.string(),za.optional()),NY=a0(()=>zu(v.union([v.looseObject({type:v.literal("text-start"),id:v.string(),providerMetadata:me.optional()}),v.looseObject({type:v.literal("text-delta"),id:v.string(),delta:v.string(),providerMetadata:me.optional()}),v.looseObject({type:v.literal("text-end"),id:v.string(),providerMetadata:me.optional()}),v.looseObject({type:v.literal("error"),errorText:v.string()}),v.looseObject({type:v.literal("tool-input-start"),toolCallId:v.string(),toolName:v.string(),providerExecuted:v.boolean().optional(),providerMetadata:me.optional(),toolMetadata:dd.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.looseObject({type:v.literal("tool-input-delta"),toolCallId:v.string(),inputTextDelta:v.string()}),v.looseObject({type:v.literal("tool-input-available"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:me.optional(),toolMetadata:dd.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.looseObject({type:v.literal("tool-input-error"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:me.optional(),toolMetadata:dd.optional(),dynamic:v.boolean().optional(),errorText:v.string(),title:v.string().optional()}),v.looseObject({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string(),signature:v.string().optional()}),v.looseObject({type:v.literal("tool-output-available"),toolCallId:v.string(),output:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:me.optional(),toolMetadata:dd.optional(),dynamic:v.boolean().optional(),preliminary:v.boolean().optional()}),v.looseObject({type:v.literal("tool-output-error"),toolCallId:v.string(),errorText:v.string(),providerExecuted:v.boolean().optional(),providerMetadata:me.optional(),toolMetadata:dd.optional(),dynamic:v.boolean().optional()}),v.looseObject({type:v.literal("tool-output-denied"),toolCallId:v.string()}),v.looseObject({type:v.literal("reasoning-start"),id:v.string(),providerMetadata:me.optional()}),v.looseObject({type:v.literal("reasoning-delta"),id:v.string(),delta:v.string(),providerMetadata:me.optional()}),v.looseObject({type:v.literal("reasoning-end"),id:v.string(),providerMetadata:me.optional()}),v.looseObject({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:me.optional()}),v.looseObject({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:me.optional()}),v.looseObject({type:v.literal("file"),url:v.string(),mediaType:v.string(),providerMetadata:me.optional()}),v.looseObject({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.looseObject({type:v.literal("start-step")}),v.looseObject({type:v.literal("finish-step")}),v.looseObject({type:v.literal("start"),messageId:v.string().optional(),messageMetadata:v.unknown().optional()}),v.looseObject({type:v.literal("finish"),finishReason:v.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:v.unknown().optional()}),v.looseObject({type:v.literal("abort"),reason:v.string().optional()}),v.looseObject({type:v.literal("message-metadata"),messageMetadata:v.unknown()})])));function RY(e){return e.type.startsWith("data-")}function pd(){return Object.create(null)}function ck(e){return e.type.startsWith("tool-")}function MY(e){return e.type==="dynamic-tool"}function cn(e){return ck(e)||MY(e)}function XN(e){return e.type.split("-").slice(1).join("-")}function DY({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:pd(),activeReasoningParts:pd(),partialToolCalls:pd()}}function OY({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:c,write:u})=>{var d,p,m,g;function x(){let w=c.message.parts,P=w.length-1;for(;P>=0&&w[P].type!=="step-start";)P--;return w.slice(P+1)}function y(){return x().filter(cn)}function k(w){let D=y().find(j=>j.toolCallId===w);if(D==null){let j=c.message.parts;for(let M=j.length-1;M>=0;M--){let U=j[M];if(cn(U)&&U.toolCallId===w){D=U;break}}}if(D==null)throw new Cl({chunkType:"tool-invocation",chunkId:w,message:`No tool invocation found for tool call ID "${w}".`});return D}function _(w,P){var D;let j=P??x().find(V=>ck(V)&&V.toolCallId===w.toolCallId),M=w,U=j;
106if(j!=null){j.state=w.state,U.input=M.input,U.output=M.output,U.errorText=M.errorText,U.rawInput=M.rawInput,U.preliminary=M.preliminary,w.title!==void 0&&(U.title=w.title),w.toolMetadata!==void 0&&(U.toolMetadata=w.toolMetadata),U.providerExecuted=(D=M.providerExecuted)!=null?D:j.providerExecuted;let V=M.providerMetadata;if(V!=null)if(w.state==="output-available"||w.state==="output-error"){let F=j;F.resultProviderMetadata=V}else j.callProviderMetadata=V}else c.message.parts.push({type:`tool-${w.toolName}`,toolCallId:w.toolCallId,state:w.state,title:w.title,...w.toolMetadata!==void 0?{toolMetadata:w.toolMetadata}:{},input:M.input,output:M.output,rawInput:M.rawInput,errorText:M.errorText,providerExecuted:M.providerExecuted,preliminary:M.preliminary,...M.providerMetadata!=null&&(w.state==="output-available"||w.state==="output-error")?{resultProviderMetadata:M.providerMetadata}:{},...M.providerMetadata!=null&&!(w.state==="output-available"||w.state==="output-error")?{callProviderMetadata:M.providerMetadata}:{}})}function $(w,P){var D,j;let M=P??x().find(F=>F.type==="dynamic-tool"&&F.toolCallId===w.toolCallId),U=w,V=M;if(M!=null){M.state=w.state,V.toolName=w.toolName,V.input=U.input,V.output=U.output,V.errorText=U.errorText,V.rawInput=(D=U.rawInput)!=null?D:V.rawInput,V.preliminary=U.preliminary,w.title!==void 0&&(V.title=w.title),w.toolMetadata!==void 0&&(V.toolMetadata=w.toolMetadata),V.providerExecuted=(j=U.providerExecuted)!=null?j:M.providerExecuted;let F=U.providerMetadata;if(F!=null)if(w.state==="output-available"||w.state==="output-error"){let Ge=M;Ge.resultProviderMetadata=F}else M.callProviderMetadata=F}else c.message.parts.push({type:"dynamic-tool",toolName:w.toolName,toolCallId:w.toolCallId,state:w.state,input:U.input,output:U.output,errorText:U.errorText,preliminary:U.preliminary,providerExecuted:U.providerExecuted,title:w.title,...w.toolMetadata!==void 0?{toolMetadata:w.toolMetadata}:{},...U.providerMetadata!=null&&(w.state==="output-available"||w.state==="output-error")?{resultProviderMetadata:U.providerMetadata}:{},...U.providerMetadata!=null&&!(w.state==="output-available"||w.state==="output-error")?{c
106allProviderMetadata:U.providerMetadata}:{}})}async function I(w){if(w!=null){let P=c.message.metadata!=null?oR(c.message.metadata,w):w;t!=null&&await c0({value:P,schema:t,context:{field:"message.metadata",entityId:c.message.id}}),c.message.metadata=P}}switch(s.type){case"text-start":{let w={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};c.activeTextParts[s.id]=w,c.message.parts.push(w),u();break}case"text-delta":{let w=c.activeTextParts[s.id];if(w==null)throw new Cl({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.`});w.text+=s.delta,w.providerMetadata=(d=s.providerMetadata)!=null?d:w.providerMetadata,u();break}case"text-end":{let w=c.activeTextParts[s.id];if(w==null)throw new Cl({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.`});w.state="done",w.providerMetadata=(p=s.providerMetadata)!=null?p:w.providerMetadata,delete c.activeTextParts[s.id],u();break}case"reasoning-start":{let w={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};c.activeReasoningParts[s.id]=w,c.message.parts.push(w),u();break}case"reasoning-delta":{let w=c.activeReasoningParts[s.id];if(w==null)throw new Cl({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.`});w.text+=s.delta,w.providerMetadata=(m=s.providerMetadata)!=null?m:w.providerMetadata,u();break}case"reasoning-end":{let w=c.activeReasoningParts[s.id];if(w==null)throw new Cl({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.`});w.providerMetadata=(g=s.providerMetadata)!=null?g:w.providerMetadata,w.state="done",delete c.activeReasoningParts[s.id],u();break}case"file":{c.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url,...s.providerMetadata!=null?{providerMetadata:s.providerMetadata}:{}}),u();break}case"source-url":{c.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),u();break}case"source-document":{c.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),u();break}case"tool-input-start":{let w=x().filter(ck);c.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:w.length,dynamic:s.dynamic,title:s.title,toolMetadata:s.toolMetadata},s.dynamic?$({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}):_({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}),u();break}case"tool-input-delta":{let w=c.partialToolCalls[s.toolCallId];if(w==null)throw new Cl({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.`});w.text+=s.inputTextDelta;let{value:P}=await md(w.text);w.dynamic?$({toolCallId:s.toolCallId,toolName:w.toolName,state:"input-streaming",input:P,title:w.title,toolMetadata:w.toolMetadata}):_({toolCallId:s.toolCallId,toolName:w.toolName,state:"input-streaming",input:P,title:w.title,toolMetadata:w.toolMetadata}),u();break}case"tool-input-available":{s.dynamic?$({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}):_({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}),u(),i&&!s.providerExecuted&&await i({toolCall:s});break}case"tool-input-error":{let w=x().filter(cn).find(D=>D.toolCallId===s.toolCallId);(w!=null?w.type==="dynamic-tool":!!s.dynamic)?$({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,toolMetadata:s.toolMetadata}):_({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}),u();break}case"tool-approval-request":{let w=k(s.toolCallId);w.state="approval-requested",w.approval={id:s.approvalId,...s.signature!=null?{signature:s.signature}:{}},u();break}case"tool-output-denied":{let w=k(s.toolCallId);w.state="output-denied",u();break}case"tool-output-available":{let w=k(s.toolCallId);w.type==="dynamic-tool"?$({toolCallId:s.toolCallId,toolName:w.toolName,state:"output-available",input:w.input,output:s.output,preliminary:s.preliminary,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:w.title,toolMetadata:w.toolMetadata},w):_({toolCallId:s.toolCallId,toolName:XN(w),state:"output-available",input:w.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary,providerMetadata:s.providerMetadata,title:w.title,toolMetadata:w.toolMetadata},w),u();break}case"tool-output-error":{let w=k(s.toolCallId);w.type==="dynamic-tool"?$({toolCallId:s.toolCallId,toolName:w.toolName,state:"output-error",input:w.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:w.title,toolMetadata:w.toolMetadata},w):_({toolCallId:s.toolCallId,toolName:XN(w),state:"output-error",input:w.input,rawInput:w.rawInput,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:w.title,toolMetadata:w.toolMetadata},w),u();break}case"start-step":{c.message.parts.push({type:"step-start"});break}case"finish-step":{c.activeTextParts=pd(),c.activeReasoningParts=pd();break}case"start":{s.messageId!=null&&(c.message.id=s.messageId),await I(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&u();break}case"finish":{s.finishReason!=null&&(c.finishReason=s.finishReason),await I(s.messageMetadata),s.messageMetadata!=null&&u();break}case"message-metadata":{await I(s.messageMetadata),s.messageMetadata!=null&&u();break}case"error":{n?.(new Error(s.errorText));break}default:if(RY(s)){if(r?.[s.type]!=null){let D=c.message.parts.findIndex(M=>"id"in M&&"data"in M&&M.id===s.id&&M.type===s.type),j=D>=0?D:c.message.parts.length;await c0({value:s.data,schema:r[s.type],context:{field:`message.parts[${j}].data`,entityName:s.type,entityId:s.id}})}let w=s;if(w.transient){a?.(w);break}let P=w.id!=null?c.message.parts.find(D=>w.type===D.type&&w.id===D.id):void 0;P!=null?P.data=w.data:c.message.parts.push(w),a?.(w),u()}}l.enqueue(s)})}}))}
106async function jY({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 W7e=$o({prefix:"aitxt",size:24});var Er=v.record(v.string(),za.optional()),X7e=a0(()=>zu(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:me.optional()}),v.object({type:v.literal("reasoning"),text:v.string(),state:v.enum(["streaming","done"]).optional(),providerMetadata:me.optional()}),v.object({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:me.optional()}),v.object({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:me.optional()}),v.object({type:v.literal("file"),mediaType:v.string(),filename:v.string().optional(),url:v.string(),providerMetadata:me.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:Er.optional(),state:v.literal("input-streaming"),input:v.unknown().optional(),providerExecuted:v.boolean().optional(),callProviderMetadata:me.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:Er.optional(),state:v.literal("input-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:me.optional(),approval:v.never().optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),toolMetadata:Er.optional(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:me.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:Er.optional(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:me.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:Er.optional(),state:v.literal("output-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:me.optional(),resultProviderMetadata:me.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:Er.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:me.optional(),resultProviderMetadata:me.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:Er.optional(),state:v.literal("output-denied"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:me.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:Er.optional(),state:v.literal("input-streaming"),providerExecuted:v.boolean().optional(),callProviderMetadata:me.optional(),input
106: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:Er.optional(),state:v.literal("input-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:me.optional(),approval:v.never().optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),toolMetadata:Er.optional(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:me.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:Er.optional(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:me.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:Er.optional(),state:v.literal("output-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:me.optional(),resultProviderMetadata:me.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:Er.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:me.optional(),resultProviderMetadata:me.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:Er.optional(),state:v.literal("output-denied"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:me.optional(),approval:v.object({id:v.string(),approved:v.literal(!1),reason:v.string().optional(),signature:v.string().optional()})})]))}).superRefine((e,t)=>{e.role!=="assistant"&&e.parts.length===0&&t.addIssue({origin:"array",code:"too_small",minimum:1,inclusive:!0,input:e.parts,path:["parts"],message:"Message must contain at least one part"})})).nonempty("Messages array must not be empty")));var Q7e=$o({prefix:"aiobj",size:24});function cR(e){return({url:t,abortSignal:r})=>hY({url:t,maxBytes:e?.maxBytes,abortSignal:r})}var UY=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 tIe=$o({prefix:"aiobj",size:24});var rIe=cR();var LY="AI_NoSuchProviderError",FY=`vercel.ai.error.${LY}`,BY=Symbol.for(FY),VY;VY=BY;var nIe=cR();async function ZY(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 c;i((c=l.target)==null?void 0:c.result)},s.onerror=l=>a(l),s.readAsDataURL(t)});return{type:"file",mediaType:o,filename:r,url:n}}))}var GY=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 Fn(this.body),l=await Fn(this.headers),c=await Fn(this.credentials),u={...Ii(l),...Ii(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:u,credentials:c,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=(o=d?.api)!=null?o:this.api,m=d?.headers!==void 0?Ii(d.headers):u,g=
vendor: 4,409 bytes, line 106
106d?.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:c,k=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(!k.ok)throw new Error((a=await k.text())!=null?a:"Failed to fetch the chat response.");if(!k.body)throw new Error("The response body is empty.");return this.processResponseStream(k.body)}async reconnectToStream(e){var t,r,o,n,i;let a=await Fn(this.body),s=await Fn(this.headers),l=await Fn(this.credentials),c={...Ii(s),...Ii(e.headers)},u=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...a,...e.body},headers:c,credentials:l,requestMetadata:e.metadata})),d=(r=u?.api)!=null?r:`${this.api}/${e.chatId}/stream`,p=u?.headers!==void 0?Ii(u.headers):c,m=(o=u?.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)}},fd=class extends GY{constructor(e={}){super(e)}processResponseStream(e){return sA({stream:e,schema:NY}).pipeThrough(new TransformStream({async transform(t,r){if(!t.success)throw t.error;r.enqueue(t.value)}}))}},uR=class{constructor({generateId:e=tA,id:t=e(),transport:r=new fd,messageMetadataSchema:o,dataPartSchemas:n,state:i,onError:a,onToolCall:s,onFinish:l,onData:c,sendAutomaticallyWhen:u}){this.activeResponse=void 0,this.jobExecutor=new UY,this.sendMessage=async(d,p)=>{var m,g,x,y;if(d==null){await this.makeRequest({trigger:"submit-message",messageId:(m=this.lastMessage)==null?void 0:m.id,...p});return}let k;if("text"in d||"files"in d?k={parts:[...Array.isArray(d.files)?d.files:await ZY(d.files),..."text"in d&&d.text!=null?[{type:"text",text:d.text}]:[]]}:k=d,d.messageId!=null){let _=this.state.messages.findIndex($=>$.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(_,{...k,id:d.messageId,role:(g=k.role)!=null?g:"user",metadata:d.metadata})}else this.state.pushMessage({...k,id:(x=k.id)!=null?x:this.generateId(),role:(y=k.role)!=null?y:"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,y=x[x.length-1],k=_=>cn(_)&&_.state==="approval-requested"&&_.approval.id===d?{..._,state:"approval-responded",approval:{..._.approval,id:d,approved:p,reason:m}}:_;this.state.replaceMessage(x.length-1,{...y,parts:y.parts.map(k)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(k)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(_=>{var $;_&&this.makeRequest({trigger:"submit-message",messageId:($=this.lastMessage)==null?void 0:$.id,...g})})}),this.addToolOutput=async({state:d="output-available",toolCallId:p,output:m,errorText:g,options:x})=>this.jobExecutor.run(async()=>{let y=this.state.messages,k=y[y.length-1],_=$=>cn($)&&$.toolCallId===p?{...$,state:d,output:m,errorText:g}:$;this.state.replaceMessage(y.length-1,{...k,parts:k.parts.map(_)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(_)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSe
106ndAutomatically().then($=>{var I;$&&this.makeRequest({trigger:"submit-message",messageId:(I=this.lastMessage)==null?void 0:I.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=c,this.sendAutomaticallyWhen=u}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;let s;if(e==="resume-stream")try{let m=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:o});if(m==null)return;s=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 l=this.lastMessage,c=!1,u=!1,d=!1,p;try{let m={state:DY({lastMessage:e==="regenerate-message"?void 0:this.state.snapshot(l),messageId:this.generateId()}),abortController:new AbortController};p=m,m.abortController.signal.addEventListener("abort",()=>{c=!0}),this.activeResponse=m;let g;e==="resume-stream"?g=s: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=y=>this.jobExecutor.run(()=>y({state:m.state,write:()=>{var k;this.setStatus({status:"streaming"}),m.state.message.id===((k=this.lastMessage)==null?void 0:k.id)?this.state.replaceMessage(this.state.messages.length-1,m.state.message):this.state.pushMessage(m.state.message)}}));await jY({stream:OY({stream:g,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:x,onError:y=>{throw y}}),onError:y=>{throw y}}),this.setStatus({status:"ready"})}catch(m){if(c||m.name==="AbortError")return c=!0,this.setStatus({status:"ready"}),null;d=!0,m instanceof TypeError&&(m.message.toLowerCase().includes("fetch")||m.message.toLowerCase().includes("network"))&&(u=!0),this.onError&&m instanceof Error&&this.onError(m),this.setStatus({status:"error",error:m})}finally{try{p&&((i=this.onFinish)==null||i.call(this,{message:p.state.message,messages:this.state.messages,isAbort:c,isDisconnect:u,isError:d,finishReason:p.state.finishReason}))}catch(m){console.error(m)}this.activeResponse===p&&(this.activeResponse=void 0)}!d&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(a=this.lastMessage)==null?void 0:a.id,metadata:t,headers:r,body:o})}};function dR({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(cn);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 pR({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(cn).filter(n=>!n.providerExecuted);return o.length>0&&o.every(n=>n.state==="output-available"||n.state==="output-error")}var gR=R(ne());var Kt=R(ne(),1);var qY={damping:.7,stiffness:.05,mass:1.25},HY=70,WY=1e3/60,JY=350,Kh=!1;globalThis.document?.addEventListener("mousedown",()=>{Kh=!0});globalThis.document?.addEventListener("mouseup",()=>{Kh=!1});globalThis.document?.addEventListener("click",()=>{Kh=!1});var fR=(e={})=>{let[t,r]=(0,Kt.useState)(!1),[o,n]=(0,Kt.useState)(e.initial!==!1),[i,a]=(0,Kt.useState)(!1),s=(0,Kt.useRef)(null);s.current=e;let l=(0,Kt.useCallback)(()=>
106{if(!Kh)return!1;let _=window.getSelection();if(!_||!_.rangeCount)return!1;let $=_.getRangeAt(0);return $.commonAncestorContainer.contains(y.current)||y.current?.contains($.commonAncestorContainer)},[]),c=(0,Kt.useCallback)(_=>{d.isAtBottom=_,n(_)},[]),u=(0,Kt.useCallback)(_=>{d.escapedFromLock=_,r(_)},[]),d=(0,Kt.useMemo)(()=>{let _;return{escapedFromLock:t,isAtBottom:o,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return y.current?.scrollTop??0},set scrollTop($){y.current&&(y.current.scrollTop=$,d.ignoreScrollToTop=y.current.scrollTop)},get targetScrollTop(){return!y.current||!k.current?0:y.current.scrollHeight-1-y.current.clientHeight},get calculatedTargetScrollTop(){if(!y.current||!k.current)return 0;let{targetScrollTop:$}=this;if(!e.targetScrollTop)return $;if(_?.targetScrollTop===$)return _.calculatedScrollTop;let I=Math.max(Math.min(e.targetScrollTop($,{scrollElement:y.current,contentElement:k.current}),$),0);return _={targetScrollTop:$,calculatedScrollTop:I},requestAnimationFrame(()=>{_=void 0}),I},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=HY}}},[]),p=(0,Kt.useCallback)((_={})=>{typeof _=="string"&&(_={animation:_}),_.preserveScrollPosition||c(!0);let $=Date.now()+(Number(_.wait)||0),I=dk(s.current,_.animation),{ignoreEscapes:w=!1}=_,P,D=d.calculatedTargetScrollTop;_.duration instanceof Promise?_.duration.finally(()=>{P=Date.now()}):P=$+(_.duration??0);let j=async()=>{let M=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;let{scrollTop:U}=d,V=performance.now(),F=(V-(d.lastTick??V))/WY;if(d.animation||(d.animation={behavior:I,promise:M,ignoreEscapes:w}),d.animation.behavior===I&&(d.lastTick=V),l()||$>Date.now())return j();if(U<Math.min(D,d.calculatedTargetScrollTop)){if(d.animation?.behavior===I){if(I==="instant")return d.scrollTop=d.calculatedTargetScrollTop,j();d.velocity=(I.damping*d.velocity+I.stiffness*d.scrollDifference)/I.mass,d.accumulated+=d.velocity*F,d.scrollTop+=d.accumulated,d.scrollTop!==U&&(d.accumulated=0)}return j()}return P>Date.now()?(D=d.calculatedTargetScrollTop,j()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?p({animation:dk(s.current,s.current.resize),ignoreEscapes:w,duration:Math.max(0,P-Date.now())||void 0}):d.isAtBottom)});return M.then(U=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),U))};return _.wait!==!0&&(d.animation=void 0),d.animation?.behavior===I?d.animation.promise:j()},[c,l,d]),m=(0,Kt.useCallback)(()=>{u(!0),c(!1)},[u,c]),g=(0,Kt.useCallback)(({target:_})=>{if(_!==y.current)return;let{scrollTop:$,ignoreScrollToTop:I}=d,{lastScrollTop:w=$}=d;d.lastScrollTop=$,d.ignoreScrollToTop=void 0,I&&I>$&&(w=I),a(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||$===I)return;if(l()){u(!0),c(!1);return}let P=$>w,D=$<w;if(d.animation?.ignoreEscapes){d.scrollTop=w;return}D&&(u(!0),c(!1)),P&&u(!1),!d.escapedFromLock&&d.isNearBottom&&c(!0)},1)},[u,c,l,d]),x=(0,Kt.useCallback)(({target:_,deltaY:$})=>{let I=_;for(;!["scroll","auto"].includes(getComputedStyle(I).overflow);){if(!I.parentElement)return;I=I.parentElement}I===y.current&&$<0&&y.current.scrollHeight>y.current.clientHeight&&!d.animation?.ignoreEscapes&&(u(!0),c(!1))},[u,c,d]),y=mR(_=>{y.current?.removeEventListener("scroll",g),y.current?.removeEventListener("wheel",x),_?.addEventListener("scroll",g,{passive:!0}),_?.addEventListener("wheel",x,{passive:!0})},[]),k=mR(_=>{if(d.resizeObserver?.disconnect(),!_)return;let $;d.resizeObserver=new ResizeObserver(([I])=>{let{height:w}=I.contentRect,P=w-($??w);if(d.resizeDifference=P,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),a(d.isNearBottom),P>=0){let D=dk(s.current,$?s.current.resize:s.current.initial);p({animation:D,wait:!0,preserveScrollPosition:!0,duration:D==="instant"?void 0:JY})}else d.isNearBottom&&(u(!1),c(!0));$=w,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===P&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(_)},[]);return{contentRef:k,scrollRef:y,scrollToBottom:p,stopScroll:m,isAtBottom:o||i,isNearBottom:i,escapedFromLock:t,state:d}};function mR(e,t){let r=(0,Kt.useCallback)(o=>(r.current=o,e(o)),t);return r}var uk=new Map;function dk(...e){let t={...qY},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 uk.has(o)||uk.set(o,Object.freeze(t)),r?"instant":uk.get(o)}var Na=R(ne(),1),Ar=R(ne(),1);var hR=(0,Ar.createContext)(null),KY=typeof window<"u"?Ar.useLayoutEffect:Ar.useEffect;function hd({instance:e,children:t,resize:r,initial:o,mass:n,damping:i,stiffness:a,targetScrollTop:s,contextRef:l,...c}){let u=(0,Ar.useRef)(null),d=Na.useCallback((w,P)=>(I?.targetScrollTop??s)?.(w,P)??w,[s]),p=fR({mass:n,damping:i,stiffness:a,resize:r,initial:o,targetScrollTop:d}),{scrollRef:m,contentRef:g,scrollToBottom:x,stopScroll:y,isAtBottom:k,escapedFromLock:_,state:$}=e??p,I=(0,Ar.useMemo)(()=>({scrollToBottom:x,stopScroll:y,scrollRef:m,isAtBottom:k,escapedFromLock:_,contentRef:g,state:$,get targetScrollTop(){return u.current},set targetScrollTop(w){u.current=w}}),[x,k,g,m,y,_,$]);return(0,Ar.useImperativeHandle)(l,()=>I,[I]),KY(()=>{m.current&&getComputedStyle(m.current).overflow==="visible"&&(m.current.style.overflow="auto")},[]),Na.createElement(hR.Provider,{value:I},Na.createElement("div",{...c},typeof t=="function"?t(I):t))}(function(e){function t({children:r,scrollClassName:o,...n}){let i=pk();return Na.createElement("div",{ref:i.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:o},Na.createElement("div",{...n,ref:i.contentRef},typeof r=="function"?r(i):r))}e.Content=t})(hd||(hd={}));function pk(){let e=(0,Ar.useContext)(hR);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}var zr=R(q()),vR=({className:e,...t})=>(0,zr.jsx)(hd,{className:ce("relative min-h-0 flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),yR=({className:e,...t})=>(0,zr.jsx)(hd.Content,{className:ce("flex flex-col gap-8 p-4",e),...t}),bR=({className:e,title:t="No messages yet",description:r="Start a conversation to see messages here",icon:o,children:n,...i})=>(0,zr.jsx)("div",{className:ce("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...i,children:n??(0,zr.jsxs)(zr.Fragment,{children:[o&&(0,zr.jsx)("div",{className:"text-muted-foreground",children:o}),(0,zr.jsxs)("div",{className:"space-y-1",children:[(0,zr.jsx)("h3",{className:"text-sm font-medium",children:t}),r&&(0,zr.jsx)("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),xR=({className:e,...t})=>{let{isAtBottom:r,scrollToBottom:o}=pk(),n=(0,gR.useCallback)(()=>{o()},[o]);return!r&&(0,zr.jsx)(Ht,{className:ce("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,zr.jsx)($5,{className:"size-4"})})};var SIe=R(ne());var XY=R(q());var YY=R(q()),EIe=bn("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 zIe=R(ne());var wR=R(q());var Xt={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 qn={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 Hr={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 Xh=[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 106
1060,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],Yh=[12288,12288,65281,65376,65504,65510],Qh=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],eg=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],gd=[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 QY=Xh[0],eQ=Xh.at(-1),tQ=Yh[0],rQ=Yh.at(-1),nQ=Qh[0],oQ=Qh.at(-1),iQ=eg[0],aQ=eg.at(-1),sQ=gd[0],lQ=gd.at(-1),_R=19968,[cQ,uQ]=dQ(gd);function dQ(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(_R>=n&&_R<=i)return[n,i];i-n>r-t&&(t=n,r=i)}return[t,r]}var kR=e=>e<QY||e>eQ?!1:Pl(Xh,e),SR=e=>e<tQ||e>rQ?!1:Pl(Yh,e),pQ=e=>e<nQ||e>oQ?!1:Pl(Qh,e),mQ=e=>e<iQ||e>aQ?!1:Pl(eg,e),$R=e=>e>=cQ&&e<=uQ?!0:e<sQ||e>lQ?!1:Pl(gd,e);function IR(e){return kR(e)?"ambiguous":SR(e)?"fullwidth":pQ(e)?"halfwidth":mQ(e)?"narrow":$R(e)?"wide":"neutral"}function fQ(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function TR(e){return fQ(e),IR(e)}function hQ(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function CR(e){if(!e||e<4352)return!1;switch(TR(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!hQ(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 PR(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function ER(e){return e!==null&&e>=65024&&e<=65038}var AR=NR(/\p{P}|\p{S}/u),zR=NR(/\s/);function NR(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}function Eo(e){return!!(e&qn.characterGroupWhitespace)}function Ra(e){return(e&gr.cjkPunctuation)===qn.characterGroupPunctuation}function El(e){return!!(e&gr.cjk)}function fk(e){return e===gr.ivs}function hk(e){return!!(e&gr.cjkOrIvs)}function gk(e){return e===gr.nonEmojiGeneralUseVS}function tg(e){return!!(e&gr.spaceOrPunctuation)}var gr;(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})(gr||(gr={}));function Ao(e){if(e===Xt.eof||J5(e)||zR(e))return qn.characterGroupWhitespace;let t=0;if(e>=4352){if(ER(e))return gr.nonEmojiGeneralUseVS;switch(CR(e)){case null:return gr.ivs;case!0:t|=gr.cjk;break}}return AR(e)&&(t|=qn.characterGroupPunctuation),t}function vd(e,t,r){if(!gk(e))return e;let o=t(),n=Ao(o);return!o||Eo(n)?e:PR(o,r)?gr.cjkPunctuation:gQ(n)}function gQ(e){return e&~gr.ivs}function yd(e){return!!(e&&e>=55296&&e<=56319)}function bd(e){return!!(e&&e>=56320&&e<=57343)}function xd(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 RR(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 wd=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=RR(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};
vendor: 9,037 bytes, line 106
106function _d(e,t,r){let o=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return o&&o>=65536?o:e}var rg={name:"attention",resolveAll:vQ,tokenize:yQ};function vQ(e,t){let r=-1,o,n,i,a,s,l,c,u;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};MR(d,-l),MR(p,l),a={type:l>1?Hr.strongSequence:Hr.emphasisSequence,start:d,end:{...e[o][1].end}},s={type:l>1?Hr.strongSequence:Hr.emphasisSequence,start:{...e[r][1].start},end:p},i={type:l>1?Hr.strongText:Hr.emphasisText,start:{...e[o][1].end},end:{...e[r][1].start}},n={type:l>1?Hr.strong:Hr.emphasis,start:{...a.start},end:{...s.end}},e[o][1].end={...a.start},e[r][1].start={...s.end},c=[],e[o][1].end.offset-e[o][1].start.offset&&(c=Ga(c,[["enter",e[o][1],t],["exit",e[o][1],t]])),c=Ga(c,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),t.parser.constructs.insideSpan.null,c=Ga(c,vp(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),c=Ga(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,c=Ga(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,Za(e,o-1,r-o+3,c),r=o+c.length-u-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function yQ(e,t){let r=this.parser.constructs.attentionMarkers.null,{now:o,sliceSerialize:n,previous:i}=this,a=bd(i)?xd(i,o(),n):i,s=Ao(a),l=new wd(a,o(),n),c=vd(s,l.value.bind(l),a),u;return d;function d(m){return m===Xt.asterisk||Xt.underscore,u=m,e.enter("attentionSequence"),p(m)}function p(m){if(m===u)return e.consume(m),p;let g=e.exit("attentionSequence"),x=Ao(yd(m)?_d(m,o(),n):m);let y=Ra(c),k=y||Eo(c),_=Ra(x),$=_||Eo(x),I=hk(c),w=!$||_&&(k||I)||r.includes(m),P=!k||y&&($||El(x))||r.includes(a);return g._open=!!(u===Xt.asterisk?w:w&&(tg(c)||!P)),g._close=!!(u===Xt.asterisk?P:P&&(tg(x)||!w)),t(m)}}function MR(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function DR(){return{text:{[Xt.asterisk]:rg,[Xt.underscore]:rg},insideSpan:{null:[rg]}}}function OR(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(DR())}function vk(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:n,resolveAll:o};return t==null&&(t=!0),{text:{[Xt.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[Xt.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 c={type:"strikethrough",start:Object.assign({},i[l][1].start),end:Object.assign({},i[s][1].end)},u={type:"strikethroughText",start:Object.assign({},i[l][1].end),end:Object.assign({},i[s][1].start)},d=[["enter",c,a],["enter",i[l][1],a],["exit",i[l][1],a],["enter",u,a]],p=a.parser.constructs.insideSpan.null;p&&Za(d,d.length,0,vp(p,i.slice(l+1,s),a)),Za(d,d.length,0,[["exit",u,a],["enter",i[s][1],a],["exit",i[s][1],a],["exit",c,a]]),Za(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=Hr.data);return i}function n(i,a,s){let{now:l,sliceSerialize:c,previous:u}=this,d=bd(u)?xd(u,l(),c):u,p=Ao(d),m=new wd(d,l(),c),g=vd(p,m.value.bind(m),d),x=this.events,y=0;return k;function k($){return Xt.tilde,d===Xt.tilde&&x[x.length-1][1].type!==Hr.characterEscape?s($):(i.enter("strikethroughSequenceTemporary"),_($))}function _($){let I=Ao(d);if($===Xt.tilde)return y>1?s($):(i.consume($),y++,_);if(y<2&&!t)return s($);let w=i.exit("strikethroughSequenceTemporary"),P=Ao(yd($)?_d($,l(),c):$),D=Ra(g)||Eo(g),j=Ra(P)||Eo(P),M=El(g)||fk(I);return w._open=!j||P===qn.attentionSideAfter&&(D||M),w._close=!D||I===qn.attentionSideAfter&&(j||El(P)),a($)}}}function jR(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(vk(e))}var bQ=new Set(["\u3002","\uFF0E","\uFF0C","\u3001","\uFF1F","\uFF01","\uFF1A","\uFF1B","\uFF08","\uFF09","\u3010","\u3011","\u300C","\u300D","\u300E","\u300F","\u3008","\u3009","\u300A","\u300B"]),xQ=/^(https?:\/\/|mailto:|www\.)/i,wQ=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type==="text"&&t.value===e.url},_Q=e=>{let t=0;for(let r of e){if(bQ.has(r))return t;t+=r.length}return null},kQ=(e,t)=>({...t,url:e,children:[{type:"text",value:e}]}),SQ=e=>({type:"text",value:e}),$Q=()=>e=>{Q5(e,"link",(t,r,o)=>{if(!o||typeof r!="number"||!wQ(t)||!xQ.test(t.url))return;let n=_Q(t.url);if(n===null||n===0)return;let i=t.url.slice(0,n),a=t.url.slice(n),s=kQ(i,t),l=SQ(a);return o.children.splice(r,1,s,l),r+1})};function IQ(){let e=[OR],t=[$Q,jR],r=[...e,...t];return{name:"cjk",type:"cjk",remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:r}}var UR=IQ();var lt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function TQ(e){return Tk(e)}function Tk(e){return Array.isArray(e)?CQ(e):e instanceof RegExp?e:typeof e=="object"?PQ(e):e}function CQ(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=Tk(e[r]);return t}function PQ(e){let t={};for(let r in e)t[r]=Tk(e[r]);return t}function WR(e,...t){return t.forEach(r=>{for(let o in r)e[o]=r[o]}),e}function JR(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?JR(e.substring(0,e.length-1)):e.substr(~t+1)}var yk=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ng=class{static hasCaptures(e){return e===null?!1:(yk.lastIndex=0,yk.test(e))}static replaceCaptures(e,t,r){return e.replace(yk,(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 KR(e,t){return e<t?-1:e>t?1:0}function XR(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=KR(e[n],t[n]);if(i!==0)return i}return 0}return r-o}function LR(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 YR(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var QR=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}},$d=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(zQ(e),t)}static createFromParsedTheme(e,t){return RQ(e,t)}_cachedMatchRoot=new QR(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=>EQ(e.parent,n.parentScopes));return o?new eM(o.fontStyle,o.foreground,o.background):null}},bk=class og{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(let o of r)t=new og(t,o);return t}static from(...t){let r=null;for(let o=0;o<t.length;o++)r=new og(r,t[o]);return r}push(t){return new og(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 EQ(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&&!AQ(e.scopeName,o);){if(n)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function AQ(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var eM=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function zQ(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 c=null;typeof a.settings.foreground=="string"&&LR(a.settings.foreground)&&
vendor: 13,005 bytes, line 106
106(c=a.settings.foreground);let u=null;typeof a.settings.background=="string"&&LR(a.settings.background)&&(u=a.settings.background);for(let d=0,p=s.length;d<p;d++){let g=s[d].trim().split(" "),x=g[g.length-1],y=null;g.length>1&&(y=g.slice(0,g.length-1),y.reverse()),r[o++]=new NQ(x,y,n,l,c,u)}}return r}var NQ=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}},Yt=(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))(Yt||{});function RQ(e,t){e.sort((l,c)=>{let u=KR(l.scope,c.scope);return u!==0||(u=XR(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.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 MQ(t),a=new eM(r,i.getId(o),i.getId(n)),s=new OQ(new wk(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let u=e[l];s.insert(0,u.scope,u.parentScopes,u.fontStyle,i.getId(u.foreground),i.getId(u.background))}return new $d(i,a,s)}var MQ=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)}},DQ=Object.freeze([]),wk=class tM{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,o,n,i){this.scopeDepth=t,this.parentScopes=r||DQ,this.fontStyle=o,this.foreground=n,this.background=i}clone(){return new tM(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)}},OQ=class _k{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(_k._cmpBySpecificity),r}insert(t,r,o,n,i,a){if(r===""){this._doInsertHere(t,o,n,i,a);return}let s=r.indexOf("."),l,c;s===-1?(l=r,c=""):(l=r.substring(0,s),c=r.substring(s+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new _k(this._mainRule.clone(),wk.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,c,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(XR(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 wk(t,r,o,n,i))}},Da=class un{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let r=un.getLanguageId(t),o=un.getTokenType(t),n=un.getFontStyle(t),i=un.getForeground(t),a=un.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=un.getLanguageId(t),c=un.getTokenType(t),u=un.containsBalancedBrackets(t)?1:0,d=un.getFontStyle(t),p=un.getForeground(t),m=un.getBackground(t);return r!==0&&(l=r),o!==8&&(c=o),n!==null&&(u=n?1:0),i!==-1&&(d=i),a!==0&&(p=a),s!==0&&(m=s),(l<<0|c<<8|u<<10|d<<11|p<<15|m<<24)>>>0}};function ag(e,t){let r=[],o=jQ(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 c=a();if(r.push({matcher:c,priority:l}),n!==",")break;n=o.next()}return r;function i(){if(n==="-"){n=o.next();let l=i();return c=>!!l&&!l(c)}if(n==="("){n=o.next();let l=s();return n===")"&&(n=o.next()),l}if(FR(n)){let l=[];do l.push(n),n=o.next();while(FR(n));return c=>t(l,c)}return null}function a(){let l=[],c=i();for(;c;)l.push(c),c=i();return u=>l.every(d=>d(u))}function s(){let l=[],c=a();for(;c&&(l.push(c),n==="|"||n===",");){do n=o.next();while(n==="|"||n===",");c=a()}return u=>l.some(d=>d(u))}}function FR(e){return!!e&&!!e.match(/[\w\.:]+/)}function jQ(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 rM(e){typeof e.dispose=="function"&&e.dispose()}var Id=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},UQ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},LQ=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))}},FQ=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Id(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new LQ;for(let r of e)BQ(r,this.initialScopeName,this.repo,t);for(let r of t.references)if(r instanceof Id){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 BQ(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 Id?ig({baseGrammar:i,selfGrammar:n},o):kk(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 Id(s))}function kk(e,t,r){if(t.repository&&t.repository[e]){let o=t.repository[e];sg([o],t,r)}}function ig(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&sg(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&sg(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function sg(e,t,r){for(let o of e){if(r.visitedRule.has(o))continue;r.visitedRule.add(o);let n=o.repository?WR({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&sg(o.patterns,{...t,repository:n},r);let i=o.include;if(!i)continue;let a=nM(i);switch(a.kind){case 0:ig({...t,selfGrammar:t.baseGrammar},r);break;case 1:ig(t,r);break;case 2:kk(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?kk(a.ruleName,l,r):ig(l,r)}else a.kind===4?r.add(new UQ(a.scopeName,a.ruleName)):r.add(new Id(a.scopeName));break}}}var VQ=class{kind=0},ZQ=class{kind=1},GQ=class{constructor(e){this.ruleName=e}kind=2},qQ=class{constructor(e){this.scopeName=e}kind=3},HQ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function nM(e){if(e==="$base")return new VQ;if(e==="$self")return new ZQ;let t=e.indexOf("#");if(t===-1)return new qQ(e);if(t===0)return new GQ(e.substring(1));{let r=e.substring(0,t),o=e.substring(t+1);return new HQ(r,o)}}var WQ=/\\(\d+)/,BR=/\\(\d+)/g;var JQ=-1,oM=-2;var Pd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,o){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=ng.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=ng.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${JR(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:ng.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ng.replaceCaptures(this._contentName,e,t)}},KQ=class extends Pd{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!")}},XQ=class extends Pd{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,o,n){super(e,t,r,null),this._match=new Td(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 Cd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},VR=class extends Pd{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 Cd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Sk=class extends Pd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,o,n,i,a,s,l,c){super(e,t,r,o),this._begin=new Td(n,this.id),this.beginCaptures=i,this._end=new Td(a||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.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 Cd;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}},lg=class extends Pd{_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 Td(n,this.id),this.beginCaptures=i,this.whileCaptures=s,this._while=ne
vendor: 1,564 bytes, line 106
106w Td(a,oM),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 Cd;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 Cd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}
vendor: 8,911 bytes, lines 106-107
106},iM=class rr{static createCaptureRule(t,r,o,n,i){return t.registerRule(a=>new KQ(r,a,o,n,i))}static getCompiledRuleId(t,r,o){return t.id||r.registerRule(n=>{if(t.id=n,t.match)return new XQ(t.$vscodeTextmateLocation,t.id,t.name,t.match,rr._compileCaptures(t.captures,r,o));if(typeof t.begin>"u"){t.repository&&(o=WR({},o,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new VR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,rr._compilePatterns(i,r,o))}return t.while?new lg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,rr._compileCaptures(t.beginCaptures||t.captures,r,o),t.while,rr._compileCaptures(t.whileCaptures||t.captures,r,o),rr._compilePatterns(t.patterns,r,o)):new Sk(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,rr._compileCaptures(t.beginCaptures||t.captures,r,o),t.end,rr._compileCaptures(t.endCaptures||t.captures,r,o),t.applyEndPatternLast,rr._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=rr.getCompiledRuleId(t[a],r,o)),n[s]=rr.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 c=nM(s.include);switch(c.kind){case 0:case 1:l=rr.getCompiledRuleId(o[s.include],r,o);break;case 2:let u=o[c.ruleName];u&&(l=rr.getCompiledRuleId(u,r,o));break;case 3:case 4:let d=c.scopeName,p=c.kind===4?c.ruleName:null,m=r.getExternalGrammar(d,o);if(m)if(p){let g=m.repository[p];g&&(l=rr.getCompiledRuleId(g,r,m.repository))}else l=rr.getCompiledRuleId(m.repository.$self,r,m.repository);break}}else l=rr.getCompiledRuleId(s,r,o);if(l!==-1){let c=r.getRule(l),u=!1;if((c instanceof VR||c instanceof Sk||c instanceof lg)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;n.push(l)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}},Td=class aM{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 c=t.charAt(s+1);c==="z"?(i.push(t.substring(n,s)),i.push("$(?!\\n)(?<!\\n)"),n=s+2):(c==="A"||c==="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=WQ.test(this.source):this.hasBackReferences=!1}clone(){return new aM(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 BR.lastIndex=0,this.source.replace(BR,(n,i)=>YR(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}},Cd=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 ZR(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 ZR(e,o,this._items.map(n=>n.ruleId))}},ZR=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(` 107`)}findNextMatchSync(e,t,r){let o=this.scanner.findNextMatchSync(e,t,r);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},xk=class{constructor(e,t){this.languageId=e,this.tokenType=t}},YQ=class $k{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new xk(t,8),this._embeddedLanguagesMatcher=new QQ(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?$k._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new xk(0,0);_getBasicScopeAttributes=new QR(t=>{let r=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new xk(r,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let r=t.match($k.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/},QQ=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])=>YR(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])}},DTe={InDebugMode:typeof process<"u"&&!!__PROCESS_ENV.VSCODE_TEXTMATE_DEBUG},sM=!1,GR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function lM(e,t,r,o,n,i,a,s){let l=t.content.length,c=!1,u=-1;if(a){let m=eee(e,t,r,o,n,i);n=m.stack,o=m.linePos,r=m.isFirstLine,u=m.anchorPosition}let d=Date.now();for(;!c;){if(s!==0&&Date.now()-d>s)return new GR(n,!0);p()}return new GR(n,!1);function p(){let m=tee(e,t,r,o,n,u);if(!m){i.produce(n,l),c=!0;return}let g=m.captureIndices,x=m.matchedRuleId,y=g&&g.length>0?g[0].end>o:!1;if(x===JQ){let k=n.getRule(e);i.produce(n,g[0].start),n=n.withContentNameScopesList(n.nameScopesList),kd(e,t,r,n,i,k.endCaptures,g),i.produce(n,g[0].end);let _=n;if(n=n.parent,u=_.getAnchorPos(),!y&&_.getEnterPos()===o){n=_,i.produce(n,l),c=!0;return}}else{let k=e.getRule(x);i.produce(n,g[0].start);let _=n,$=k.getName(t.content,g),I=n.contentNameScopesList.pushAttributed($,e);if(n=n.push(x,o,u,g[0].end===l,null,I,I),k instanceof Sk){let w=k;kd(e,t,r,n,i,w.beginCaptures,g),i.produce(n,g[0].end),u=g[0].end;let P=w.getContentName(t.content,g),D=I.pushAttributed(P,e);if(n=n.withContentNameScopesList(D),w.endHasBackReferences&&(n=n.withEndRule(w.getEndWithResolvedBackReferences(t.content,g))),!y&&_.hasSameRuleAs(n)){n=n.pop(),i.produce(n,l),c=!0;return}}else if(k instanceof lg){let w=k;kd(e,t,r,n,i,w.beginCaptures,g),i.produce(n,g[0].end),u=g[0].end;let P=w.getContentName(t.content,g),D=I.pushAttributed(P,e);if(n=n.withContentNameScopesList(D),w.whileHasBackReferences&&(n=n.withEndRule(w.getWhileWithRes
vendor: 2,487 bytes, line 107
107olvedBackReferences(t.content,g))),!y&&_.hasSameRuleAs(n)){n=n.pop(),i.produce(n,l),c=!0;return}}else if(kd(e,t,r,n,i,k.captures,g),i.produce(n,g[0].end),n=n.pop(),!y){n=n.safePop(),i.produce(n,l),c=!0;return}}g[0].end>o&&(o=g[0].end,r=!1)}}function eee(e,t,r,o,n,i){let a=n.beginRuleCapturedEOL?0:-1,s=[];for(let l=n;l;l=l.pop()){let c=l.getRule(e);c instanceof lg&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){let{ruleScanner:c,findOptions:u}=oee(l.rule,e,l.stack.endRule,r,o===a),d=c.findNextMatchSync(t,o,u);if(d){if(d.ruleId!==oM){n=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(l.stack,d.captureIndices[0].start),kd(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 tee(e,t,r,o,n,i){let a=ree(e,t,r,o,n,i),s=e.getInjections();if(s.length===0)return a;let l=nee(s,e,t,r,o,n,i);if(!l)return a;if(!a)return l;let c=a.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:a}function ree(e,t,r,o,n,i){let a=n.getRule(e),{ruleScanner:s,findOptions:l}=cM(a,e,n.endRule,r,o===i),c=s.findNextMatchSync(t,o,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function nee(e,t,r,o,n,i,a){let s=Number.MAX_VALUE,l=null,c,u=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:y,findOptions:k}=cM(x,t,null,o,n===a),_=y.findNextMatchSync(r,n,k);if(!_)continue;let $=_.captureIndices[0].start;if(!($>=s)&&(s=$,l=_.captureIndices,c=_.ruleId,u=g.priority,s===n))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function cM(e,t,r,o,n){if(sM){let a=e.compile(t,r),s=uM(o,n);return{ruleScanner:a,findOptions:s}}return{ruleScanner:e.compileAG(t,r,o,n),findOptions:0}}function oee(e,t,r,o,n){if(sM){let a=e.compileWhile(t,r),s=uM(o,n);return{ruleScanner:a,findOptions:s}}return{ruleScanner:e.compileWhileAG(t,r,o,n),findOptions:0}}function uM(e,t){let r=0;return e||(r|=1),t||(r|=4),r}function kd(e,t,r,o,n,i,a){if(i.length===0)return;let s=t.content,l=Math.min(i.length,a.length),c=[],u=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>u)break;for(;c.length>0&&c[c.length-1].endPos<=m.start;
vendor: 9,487 bytes, lines 107-108
107)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?n.produceFromScopes(c[c.length-1].scopes,m.start):n.produce(o,m.start),p.retokenizeCapturedWithRuleId){let x=p.getName(s,a),y=o.contentNameScopesList.pushAttributed(x,e),k=p.getContentName(s,a),_=y.pushAttributed(k,e),$=o.push(p.retokenizeCapturedWithRuleId,m.start,-1,!1,null,y,_),I=e.createOnigString(s.substring(0,m.end));lM(e,I,r&&m.start===0,m.start,$,n,!1,0),rM(I);continue}let g=p.getName(s,a);if(g!==null){let y=(c.length>0?c[c.length-1].scopes:o.contentNameScopesList).pushAttributed(g,e);c.push(new iee(y,m.end))}}for(;c.length>0;)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var iee=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function aee(e,t,r,o,n,i,a,s){return new lee(e,t,r,o,n,i,a,s)}function qR(e,t,r,o,n){let i=ag(t,cg),a=iM.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 cg(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(see(t[n],o))return r=n+1,!0;return!1})}function see(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 lee=class{constructor(e,t,r,o,n,i,a,s){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=s,this._basicScopeAttributesProvider=new YQ(r,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=HR(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(let l of Object.keys(n)){let c=ag(l,cg);for(let u of c)this._tokenTypeMatchers.push({matcher:u.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)qR(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&&qR(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]=HR(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=iM.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!t||t===Ik.NULL){n=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),d=Da.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null),m;p?m=Sd.createRootAndLookUpScopeName(p,d,this):m=Sd.createRoot("unknown",d),t=new Ik(null,this._rootId,-1,-1,!1,null,m,m)}else n=!1,t.reset();e=e+` 108`;let i=this.createOnigString(e),a=i.content.length,s=new uee(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=lM(this,i,n,0,t,s,!0,o);return rM(i),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function HR(e,t){return e=TQ(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 Sd=class Hn{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=bk.push(n,i.scopeNames),o=new Hn(o,n,i.encodedTokenAttributes);return o}static createRoot(t,r){return new Hn(null,new bk(null,t),r)}static createRootAndLookUpScopeName(t,r,o){let n=o.getMetadataForScope(t),i=new bk(null,t),a=o.themeProvider.themeMatch(i),s=Hn.mergeAttributes(r,n,a);return new Hn(null,i,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Hn.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),Da.set(t,r.languageId,r.tokenType,null,n,i,a)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return Hn._pushAttributed(this,t,r);let o=t.split(/ /g),n=this;for(let i of o)n=Hn._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=Hn.mergeAttributes(t.tokenAttributes,n,a);return new Hn(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}},Ik=class Ma{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 Ma(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ma._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?Sd.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(){Ma._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,o,n,i,a,s){return new Ma(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 Ma(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=Sd.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new Ma(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,o,Sd.fromExtension(o,r.contentNameScopesList))}},cee=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ag(r,cg).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>ag(r,cg).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}},uee=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>
vendor: 18,478 bytes, line 108
1080||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let i=e?.getScopeNames()??[];for(let a of this._tokenTypeOverrides)a.matcher(i)&&(o=Da.set(o,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(i))}if(n&&(o=Da.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}},dee=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,aee(e,i,t,r,o,n,this,this._onigLib))}return this._grammars.get(e)}},dM=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new dee($d.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme($d.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 cee(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,o,n){let i=new FQ(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)}},ug=Ik.NULL;function Ad(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 zo(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function gM(e){return Array.isArray(e)?e:[e]}async function Ck(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function zd(e){return!e||["plaintext","txt","text","plain"].includes(e)}function vM(e){return e==="ansi"||zd(e)}function Nd(e){return e==="none"}function yM(e){return Nd(e)}function Al(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 pM={light:"#333333",dark:"#bbbbbb"},mM={light:"#fffffe",dark:"#1e1e1e"},fM="__shiki_resolved";function dg(e){if(e?.[fM])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"?pM.light:pM.dark),r||(r=t.type==="light"?mM.light:mM.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("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;let u={...s,settings:{...s.settings}};if(l){let d=a(s.settings.foreground);t.colorReplacements[d]=s.settings.foreground,u.settings.foreground=d}if(c){let d=a(s.settings.background);t.colorReplacements[d]=s.settings.background,u.settings.background=d}return u});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,fM,{enumerable:!1,writable:!1,value:!0}),t}async function bM(e){return Array.from(new Set((await Promise.all(e.filter(t=>!vM(t)).map(async t=>await Ck(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function xM(e){return(await Promise.all(e.map(async t=>yM(t)?null:dg(await Ck(t))))).filter(t=>!!t)}function wM(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 lt(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var pee=class extends dM{_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=dg(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=$d.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=wM(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 lt(`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))}},mee=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}},Ed=0;function Pk(e){Ed+=1,e.warnings!==!1&&Ed>=10&&Ed%10===0&&console.warn(`[Shiki] ${Ed} 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 lt("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(dg),n=new pee(new mee(e.engine,r),o,r,e.langAlias),i;function a(_){return wM(_,e.langAlias)}function s(_){y();let $=n.getGrammar(typeof _=="string"?_:_.name);if(!$)throw new lt(`Language \`${_}\` not found, you may need to load it first`);return $}function l(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();let $=n.getTheme(_);if(!$)throw new lt(`Theme \`${_}\` not found, you may need to load it first`);return $}function c(_){y();let $=l(_);return i!==_&&(n.setTheme($),i=_),{theme:$,colorMap:n.getColorMap()}}function u(){return y(),n.getLoadedThemes()}function d(){return y(),n.getLoadedLanguages()}function p(..._){y(),n.loadLanguages(_.flat(1))}async function m(..._){return p(await bM(_))}function g(..._){y();for(let $ of _.flat(1))n.loadTheme($)}async function x(..._){return y(),g(await xM(_))}function y(){if(t)throw new lt("Shiki instance has been disposed")}function k(){t||(t=!0,n.dispose(),Ed-=1)}return{setTheme:c,getTheme:l,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:a,loadLanguage:m,loadLanguageSync:p,loadTheme:x,loadThemeSync:g,dispose:k,[Symbol.dispose]:k}}async function Ek(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,o]=await Promise.all([xM(e.themes||[]),bM(e.langs||[]),e.engine]);return Pk({...e,themes:t,langs:r,engine:o})}var _M=new WeakMap;function Rd(e,t){_M.set(e,t)}function zl(e){return _M.get(e)}var pg=class kM{_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 kM(Object.fromEntries(gM(r).map(o=>[o,ug])),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 fee(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function fee(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 hee(e,t){if(!(e instanceof pg))throw new lt("Invalid grammar state");return e.getInternalStack(t)}function Ak(e,t,r={}){let{theme:o=e.getLoadedThemes()[0]}=r;if(zd(e.resolveLangAlias(r.lang||"text"))||Nd(o))return Al(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 lt(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${a.name}"`);if(!r.grammarState.themes.includes(n.name))throw new lt(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${n.name}"`)}return $M(t,a,n,i,r)}function SM(...e){if(e.length===2)return zl(e[1]);let[t,r,o={}]=e,{lang:n="text",theme:i=t.getLoadedThemes()[0]}=o;if(zd(n)||Nd(i))throw new lt("Plain language does not have grammar state");if(n==="ansi")throw new lt("ANSI language does not have grammar state");let{theme:a,colorMap:s}=t.setTheme(i),l=t.getLanguage(n);return new pg(zk(r,l,a,s,o).stateStack,l.name,a.name)}function $M(e,t,r,o,n){let i=zk(e,t,r,o,n),a=new pg(i.stateStack,t.name,r.name);return Rd(i.tokens,a),i.tokens}function zk(e,t,r,o,n){let i=Ad(r,n),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=n,l=Al(e),c=n.grammarState?hee(n.grammarState,r.name)??ug:n.grammarContextCode!=null?zk(n.grammarContextCode,t,r,o,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:ug,u=[],d=[];for(let p=0,m=l.length;p<m;p++){let[g,x]=l[p];if(g===""){u=[],d.push([]);continue}if(a>0&&g.length>=a){u=[],d.push([{content:g,offset:x,color:"",fontStyle:0}]);continue}let y,k,_;n.includeExplanation&&(y=t.tokenizeLine(g,c,s),k=y.tokens,_=0);let $=t.tokenizeLine2(g,c,s),I=$.tokens.length/2;for(let w=0;w<I;w++){let P=$.tokens[2*w],D=w+1<I?$.tokens[2*w+2]:g.length;if(P===D)continue;let j=$.tokens[2*w+1],M=zo(o[Da.getForeground(j)],i),U=Da.getFontStyle(j),V={content:g.substring(P,D),offset:x+P,color:M,fontStyle:U};if(n.includeExplanation){let F=[];if(n.includeExplanation!=="scopeName")for(let ve of r.settings){let $e;switch(typeof ve.scope){case"string":$e=ve.scope.split(/,/).map(qe=>qe.trim());break;case"object":$e=ve.scope;break;default:continue}F.push({settings:ve,selectors:$e.map(qe=>qe.split(/ /))})}V.explanation=[];let Ge=0;for(;P+Ge<D;){let ve=k[_],$e=g.substring(ve.startIndex,ve.endIndex);Ge+=$e.length,V.explanation.push({content:$e,scopes:n.includeExplanation==="scopeName"?gee(ve.scopes):vee(F,ve.scopes)}),_+=1}}u.push(V)}d.push(u),u=[],c=$.ruleStack}return{tokens:d,stateStack:c}}function gee(e){return e.map(t=>({scopeName:t}))}function vee(e,t){let r=[];for(let o=0,n=t.length;o<n;o++){let i=t[o];r[o]={scopeName:i,themeMatches:bee(e,i,t.slice(0,o))}}return r}function hM(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function yee(e,t,r){if(!hM(e[e.length-1],t))return!1;let o=e.length-2,n=r.length-1;for(;o>=0&&n>=0;)hM(e[o],r[n])&&(o-=1),n-=1;return o===-1}function bee(e,t,r){let o=[];for(let{selectors:n,settings:i}of e)for(let a of n)if(yee(a,t,r)){o.push(i);break}return o}function mg(e,t,r,o=Ak){let n=Object.entries(r.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),i=n.map(c=>{let u=o(e,t,{...r,theme:c.theme});return{tokens:u,state:zl(u),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),a=xee(...i.map(c=>c.tokens)),s=a[0].map((c,u)=>c.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:y,explanation:k,offset:_,...$}=g[u][p];m.variants[n[x].color]=$}),m})),l=i[0].state?new pg(Object.fromEntries(i.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),i[0].state.lang):void 0;return l&&Rd(s,l),s}function xee(...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,c)=>l.push(i[c]));let a=n.map(()=>0),s=n.map(l=>l[0]);for(;s.every(l=>l);){let l=Math.min(...s.map(c=>c.content.length));for(let c=0;c<r;c++){let u=s[c];u.content.length===l?(i[c].push(u),a[c]+=1,s[c]=n[c][a[c]]):(i[c].push({...u,content:u.content.slice(0,l)}),s[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}var wee=/["&'<>`]/g,_ee=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kee=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,See=/[|\\{}()[\]^$+*?.]/g,IM=new WeakMap;function TM(e,t){if(e=e.replace(t.subset?$ee(t.subset):wee,o),t.subset||t.escapeOnly)return e;return e.replace(_ee,r).replace(kee,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 $ee(e){let t=IM.get(e);return t||(t=Iee(e),IM.set(e,t)),t}function Iee(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(See,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var Tee=/[\dA-Fa-f]/;function CM(e,t,r){let o="&#x"+e.toString(16).toUpperCase();return r&&t&&!Tee.test(String.fromCharCode(t))?o:o+";"}var Cee=/\d/;function PM(e,t,r){let o="&#"+String(e);return r&&t&&!Cee.test(String.fromCharCode(t))?o:o+";"}var EM=["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
108h","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 fg={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 AM=["cent","copy","divide","gt","lt","not","para","times"];var zM={}.hasOwnProperty,Nk={},hg;for(hg in fg)zM.call(fg,hg)&&(Nk[fg[hg]]=hg);var Pee=/[^\dA-Za-z]/;function NM(e,t,r,o){let n=String.fromCharCode(e);if(zM.call(Nk,n)){let i=Nk[n],a="&"+i;return r&&EM.includes(i)&&!AM.includes(i)&&(!o||t&&t!==61&&Pee.test(String.fromCharCode(t)))?a:a+";"}return""}function RM(e,t,r){let o=CM(e,t,r.omitOptionalSemicolons),n;if((r.useNamedReferences||r.useShortestReferences)&&(n=NM(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let i=PM(e,t,r.omitOptionalSemicolons);i.length<o.length&&(o=i)}return n&&(!r.useShortestReferences||n.length<o.length)?n:o}function No(e,t){return TM(e,Object.assign({format:RM},t))}var Eee=/^>|^->|<!--|-->|--!>|<!-$/g,Aee=[">"],zee=["<",">"];function MM(e,t,r,o){return o.settings.bogusComments?"<?"+No(e.value,Object.assign({},o.settings.characterReferences,{subset:Aee}))+">":"<!--"+e.value.replace(Eee,n)+"-->";function n(i){return No(i,Object.assign({},o.settings.characterReferences,{subset:zee}))}}function DM(e,t,r,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}var At=OM(1),Rk=OM(-1),Nee=[];function OM(e){return t;function t(r,o,n){let i=r?r.children:Nee,a=(o||0)+e,s=i[a];if(!n)for(;s&&qa(s);)a+=e,s=i[a];return s}}var Ree={}.hasOwnProperty;function gg(e){return t;function t(r,o,n){return Ree.call(e,r.tagName)&&e[r.tagName](r,o,n)}}var Md=gg({body:Dee,caption:Mk,colgroup:Mk,dd:Lee,dt:Uee,head:Mk,html:Mee,li:jee,optgroup:Fee,option:Bee,p:Oee,rp:jM,rt:jM,tbody:Zee,td:UM,tfoot:Gee,th:UM,thead:Vee,tr:qee});function Mk(e,t,r){let o=At(r,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&qa(o.value.charAt(0)))}function Mee(e,t,r){let o=At(r,t);return!o||o.type!=="comment"}function Dee(e,t,r){let o=At(r,t);return!o||o.type!=="comment"}function Oee(e,t,r){let o=At(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 jee(e,t,r){let o=At(r,t);return!o||o.type==="element"&&o.tagName==="li"}function Uee(e,t,r){let o=At(r,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Lee(e,t,r){let o=At(r,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function jM(e,t,r){let o=At(r,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Fee(e,t,r){let o=At(r,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function Bee(e,t,r){let o=At(r,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Vee(e,t,r){let o=At(r,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Zee(e,t,r){let o=At(r,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Gee(e,t,r){return!At(r,t)}function qee(e,t,r){let o=At(r,t);return!o||o.type==="element"&&o.tagName==="tr"}function UM(e,t,r){let o=At(r,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}var LM=gg({body:Jee,colgroup:Kee,head:Wee,html:Hee,tbody:Xee});function Hee(e){let t=At(e,-1);return!t||t.type!=="comment"}function Wee(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 Jee(e){let t=At(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&qa(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Kee(e,t,r){let o=Rk(r,t),n=At(e,-1,!0);return r&&o&&o.type==="element"&&o.tagName==="colgroup"&&Md(o,r.children.indexOf(o),r)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Xee(e,t,r){let o=Rk(r,t),n=At(e,-1);return r&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&Md(o,r.children.indexOf(o),r)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}var vg={name:[[` 109\f\r &/=>`.split(""),` 110\f\r "&'/=>
vendor: 21,171 bytes, lines 110-117
110\``.split("")],[`\0 111\f\r "&'/<=>`.split(""),`\0 112\f\r "&'/<=>\``.split("")]],unquoted:[[` 113\f\r &>`.split(""),`\0 114\f\r "&'<=>\``.split("")],[`\0 115\f\r "&'<=>\``.split(""),`\0 116\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function FM(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=yp);let c=Yee(o,e.properties),u=o.all(n.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=n,u&&(a=!1),(c||!i||!LM(e,t,r))&&(s.push("<",e.tagName,c?" "+c:""),a&&(n.space==="svg"||o.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!o.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!a&&(!i||!Md(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function Yee(e,t){let r=[],o=-1,n;if(t){for(n in t)if(t[n]!==null&&t[n]!==void 0){let i=Qee(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 Qee(e,t,r){let o=t3(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=No(o.attribute,Object.assign({},e.settings.characterReferences,{subset:vg.name[n][i]}));return r===!0||(r=Array.isArray(r)?(o.commaSeparated?o3:i3)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=No(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:vg.unquoted[n][i]}))),s!==r&&(e.settings.quoteSmart&&Cv(r,a)>Cv(r,e.alternative)&&(a=e.alternative),s=a+No(r,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?vg.single:vg.double)[n][i],attribute:!0}))+a),l+(s&&"="+s))}var ete=["<","&"];function yg(e,t,r,o){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:No(e.value,Object.assign({},o.settings.characterReferences,{subset:ete}))}function BM(e,t,r,o){return o.settings.allowDangerousHtml?e.value:yg(e,t,r,o)}function VM(e,t,r,o){return o.all(e)}var ZM=n3("type",{invalid:tte,unknown:rte,handlers:{comment:MM,doctype:DM,element:FM,raw:BM,root:VM,text:yg}});function tte(e){throw new Error("Expected node, not `"+e+"`")}function rte(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var nte={},ote={},ite=[];function Dk(e,t){let r=t||nte,o=r.quote||'"',n=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:ate,all:ste,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||e3,characterReferences:r.characterReferences||ote,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?yp:r3,quote:o,alternative:n}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function ate(e,t,r){return ZM(e,t,r,this)}function ste(e){let t=[],r=e&&e.children||ite,o=-1;for(;++o<r.length;)t[o]=this.one(r[o],o,e);return t.join("")}function HM(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 lte(e){let t=Al(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 Lk="light-dark()",cte=["color","background-color"];function ute(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 dte(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?ute(n,i):n})):e}function pte(e,t,r,o,n="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(u=>bg(e.variants[u])),s=new Set(a.flatMap(u=>Object.keys(u))),l={},c=(u,d)=>{let p=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return r+t[u]+(d==="color"?"":p)};return a.forEach((u,d)=>{for(let p of s){let m=u[p]||"inherit";if(d===0&&o&&cte.includes(p))if(o===Lk&&a.length>1){let g=t.findIndex(y=>y==="light"),x=t.findIndex(y=>y==="dark");if(g===-1||x===-1)throw new lt('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[c(d,p)]=m)}else l[p]=m;else n==="css-vars"&&(l[c(d,p)]=m)}}),i.htmlStyle=l,i}function bg(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Yt.Italic&&(t["font-style"]="italic"),e.fontStyle&Yt.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&Yt.Underline&&r.push("underline"),e.fontStyle&Yt.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function jk(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function mte(){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 lt(`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 lt(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${n.lines.length}`);let c=s.character;if(c<0&&(c=l.length+c),c<0||c>l.length)throw new lt(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:c,offset:n.posToIndex(s.line,c)}}};var o=i;let n=lte(r.source),a=(r.options.decorations||[]).map(s=>({...s,start:i(s.start),end:i(s.end)}));fte(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 dte(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(u=>u.type==="element"&&u.tagName==="span");if(n.length!==o.converter.lines.length)throw new lt(`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(u,d,p,m){let g=n[u],x="",y=-1,k=-1;if(d===0&&(y=0),p===0&&(k=0),p===Number.POSITIVE_INFINITY&&(k=g.children.length),y===-1||k===-1)for(let $=0;$<g.children.length;$++)x+=WM(g.children[$]),y===-1&&x.length===d&&(y=$+1),k===-1&&x.length===p&&(k=$+1);if(y===-1)throw new lt(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(k===-1)throw new lt(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);let _=g.children.slice(y,k);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 $={type:"element",tagName:"span",properties:{},children:_};s($,m,"wrapper"),g.children.splice(y,_.length,$)}}function a(u,d){n[u]=s(n[u],d,"line")}function s(u,d,p){let m=d.properties||{},g=d.transform||(x=>x);return u.tagName=d.tagName||"span",u.properties={...u.properties,...m,class:u.properties.class},d.properties?.class&&HM(u,d.properties.class),u=g(u,p)||u,u}let l=[],c=o.decorations.sort((u,d)=>d.start.offset-u.start.offset||u.end.offset-d.end.offset);for(let u of c){let{start:d,end:p}=u;if(d.line===p.line)i(d.line,d.character,p.character,u);else if(d.line<p.line){i(d.line,d.character,Number.POSITIVE_INFINITY,u);for(let m=d.line+1;m<p.line;m++)l.unshift(()=>a(m,u));i(p.line,0,p.character,u)}}l.forEach(u=>u())}}}function fte(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new lt(`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 lt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function WM(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(WM).join(""):""}var hte=[mte()];function xg(e){let t=gte(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...hte]}function gte(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 Oa=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ok={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function vte(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 GM(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 yte(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)Ok[o]&&t.push({type:"setDecoration",value:Ok[o]});else if(o<=29){let n=Ok[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:Oa[o-30]}});else if(o===38){let n=GM(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:Oa[o-40]}});else if(o===48){let n=GM(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:Oa[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Oa[o-100+8]}})}return t}function bte(){let e=null,t=null,r=new Set;return{parse(o){let n=[],i=0;do{let a=vte(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=yte(a.sequence);for(let c of l)c.type==="resetAll"?(e=null,t=null,r.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&r.delete(c.value);for(let c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&r.add(c.value)}i=a.position}while(i<o.length);return n}}}var xte={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 wte(e=xte){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 c=0;c<Oa.length;c++)o.push(t(Oa[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let d=0;d<6;d++)o.push(r([s[c],s[u],s[d]]));let l=8;for(let c=0;c<24;c++,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 _te={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 kte(e,t,r){let o=Ad(e,r),n=Al(t),i=wte(Object.fromEntries(Oa.map(s=>{let l=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,e.colors?.[l]||_te[s]]}))),a=bte();return n.map(s=>a.parse(s[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?i.value(l.background):e.bg,u=l.foreground?i.value(l.foreground):e.fg):(c=l.foreground?i.value(l.foreground):e.fg,u=l.background?i.value(l.background):void 0),c=zo(c,o),u=zo(u,o),l.decorations.has("dim")&&(c=Ste(c));let d=Yt.None;return l.decorations.has("bold")&&(d|=Yt.Bold),l.decorations.has("italic")&&(d|=Yt.Italic),l.decorations.has("underline")&&(d|=Yt.Underline),l.decorations.has("strikethrough")&&(d|=Yt.Strikethrough),{content:l.value,offset:s[1],color:c,bgColor:u,fontStyle:d}}))}function Ste(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 Uk(e,t,r={}){let o=e.resolveLangAlias(r.lang||"text"),{theme:n=e.getLoadedThemes()[0]}=r;if(!zd(o)&&!Nd(n)&&o==="ansi"){let{theme:i}=e.setTheme(n);return kte(i,t,r)}return Ak(e,t,r)}function wg(e,t,r){let o,n,i,a,s,l;if("themes"in r){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=r,p=Object.entries(r.themes).filter(k=>k[1]).map(k=>({color:k[0],theme:k[1]})).sort((k,_)=>k.color===c?-1:_.color===c?1:0);if(p.length===0)throw new lt("`themes` option must not be empty");let m=mg(e,t,r,Uk);if(l=zl(m),c&&Lk!==c&&!p.find(k=>k.color===c))throw new lt(`\`themes\` option must contain the defaultColor key \`${c}\``);let g=p.map(k=>e.getTheme(k.theme)),x=p.map(k=>k.color);i=m.map(k=>k.map(_=>pte(_,x,u,c,d))),l&&Rd(i,l);let y=p.map(k=>Ad(k.theme,r));n=qM(p,g,y,u,c,"fg",d),o=qM(p,g,y,u,c,"bg",d),a=`shiki-themes ${g.map(k=>k.name).join(" ")}`,s=c?void 0:[n,o].join(";")}else if("theme"in r){let c=Ad(r.theme,r);i=Uk(e,t,r);let u=e.getTheme(r.theme);o=zo(u.bg,c),n=zo(u.fg,c),a=u.name,l=zl(i)}else throw new lt("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:n,bg:o,themeName:a,rootStyle:s,grammarState:l}}function qM(e,t,r,o,n,i,a){return e.map((s,l)=>{let c=zo(t[l][i],r[l])||"inherit",u=`${o+s.color}${i==="bg"?"-bg":""}:${c}`;if(l===0&&n){if(n===Lk&&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 lt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${zo(t[d][i],r[d])||"inherit"}, ${zo(t[p][i],r[p])||"inherit"});${u}`}return c}return a==="css-vars"?u:null}).filter(s=>!!s).join(";")}function _g(e,t,r,o={meta:{},options:r,codeToHast:(n,i)=>_g(e,n,i),codeToTokens:(n,i)=>wg(e,n,i)}){let n=t;for(let g of xg(r))n=g.preprocess?.call(o,n,r)||n;let{tokens:i,fg:a,bg:s,themeName:l,rootStyle:c,grammarState:u}=wg(e,n,r),{mergeWhitespaces:d=!0,mergeSameStyleTokens:p=!1}=r;d===!0?i=Ite(i):d==="never"&&(i=Tte(i)),p&&(i=Cte(i));let m={...o,get source(){return n}};for(let g of xg(r))i=g.tokens?.call(m,i)||i;return $te(i,{...r,fg:a,bg:s,themeName:l,rootStyle:r.rootStyle===!1?!1:r.rootStyle??c},m,u)}function $te(e,t,r,o=zl(e)){let n=xg(t),i=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(let[x,y]of Object.entries(t.meta||{}))x.startsWith("_")||(c[x]=y);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:i},p=[],m={...r,structure:s,addClassToHast:HM,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return u},get code(){return d},get lines(){return p}};if(e.forEach((x,y)=>{y&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&i.push({type:"text",value:` 117`}));let k={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(let $ of x){let I={type:"element",tagName:"span",properties:{...$.htmlAttrs},children:[{type:"text",value:$.content}]},w=jk($.htmlStyle||bg($));w&&(I.properties.style=w);for(let P of n)I=P?.span?.call(m,I,y+1,_,k,$)||I;s==="inline"?a.children.push(I):s==="classic"&&k.children.push(I),_+=$.content.length}if(s==="classic"){for(let $ of n)k=$?.line?.call(m,k,y+1)||k;p.push(k),i.push(k)}else s==="inline"&&p.push(k)}),s==="classic"){for(let x of n)d=x?.code?.call(m,d)||d;u.children.push(d);for(let x of n)u=x?.pre?.call(m,u)||u;a.children.push(u)}else if(s==="inline"){let x=[],y={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let _ of a.children)_.type==="element"&&_.tagName==="br"?(x.push(y),y={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(_.type==="element"||_.type==="text")&&y.children.push(_);x.push(y);let k={type:"element",tagName:"code",properties:{},children:x};for(let _ of n)k=_?.code?.call(m,k)||k;a.children=[];for(let _=0;_<k.children.length;_++){_>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let $=k.children[_];$.type==="element"&&a.children.push(...$.children)}}let g=a;for(let x of n)g=x?.root?.call(m,g)||g;return o&&Rd(g,o),g}function Ite(e){return e.map(t=>{let r=[],o="",n;return t.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&Yt.Underline||i.fontStyle&Yt.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 Tte(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 Cte(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=jk(n.htmlStyle||bg(n)),a=jk(o.htmlStyle||bg(o)),s=n.fontStyle&&(n.fontStyle&Yt.Underline||n.fontStyle&Yt.Strikethrough),l=o.fontStyle&&(o.fontStyle&Yt.Underline||o.fontStyle&Yt.Strikethrough);!s&&!l&&i===a?n.content+=o.content:r.push({...o})}return r})}var Pte=Dk;function Ete(e,t,r){let o={meta:{},options:r,codeToHast:(i,a)=>_g(e,i,a),codeToTokens:(i,a)=>wg(e,i,a)},n=Pte(_g(e,t,r,o));for(let i of xg(r))n=i.postprocess?.call(o,n,r)||n;return n}async function JM(e){let t=await Ek(e);return{getLastGrammarState:(...r)=>SM(t,...r),codeToTokensBase:(r,o)=>Uk(t,r,o),codeToTokensWithThemes:(r,o)=>mg(t,r,o),codeToTokens:(r,o)=>wg(t,r,o),codeToHast:(r,o)=>_g(t,r,o),codeToHtml:(r,o)=>Ete(t,r,o),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var KM=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=>
117{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(c=>c==null?{start:4294967295,end:4294967295,length:0}:{start:c[0]+l,end:c[1]+l,length:c[1]-c[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,c]of n)if(l.index===a)return i(s,l,c)}return null}};function ji(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function XM(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var Dd=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Rt=String.raw;function Ro(e,t){if(e==null)throw new Error(t??"Value expected");return e}var nD=Rt`\[\^?`,oD=`c.? | C(?:-.?)?|${Rt`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Rt`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Rt`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Rt`o\{[^\}]*\}?`}|${Rt`\d{1,3}`}`,Bk=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,kg=new RegExp(Rt` 118 \\ (?: 119 ${oD} 120 | [gk]<[^>]*>? 121 | [gk]'[^']*'? 122 | . 123 ) 124 | \( (?: 125 \? (?: 126 [:=!>({] 127 | <[=!] 128 | <[^>]*> 129 | '[^']*' 130 | ~\|? 131 | #(?:[^)\\]|\\.?)* 132 | [^:)]*[:)] 133 )? 134 | \*[^\)]*\)? 135 )? 136 | (?:${Bk.source})+ 137 | ${nD} 138 | . 139`.replace(/\s+/g,""),"gsu"),Fk=new RegExp(Rt` 140 \\ (?: 141 ${oD} 142 | . 143 ) 144 | \[:(?:\^?\p{Alpha}+|\^):\] 145 | ${nD} 146 | && 147 | . 148`.replace(/\s+/g,""),"gsu");function iD(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=Jte(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(kg.lastIndex=0;s=kg.exec(e);){let d=Ate(i,e,s[0],kg.lastIndex);d.tokens?a.push(...d.tokens):d.token&&a.push(d.token),d.lastIndex!==void 0&&(kg.lastIndex=d.lastIndex)}let l=[],c=0;a.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++c:d.raw==="("&&l.push(d)}),c||l.forEach((d,p)=>{d.kind="capturing",d.number=p+1});let u=c||l.length;return{tokens:a.map(d=>d.type==="EscapedNumber"?Xte(d,u):d).flat(),flags:o}}function Ate(e,t,r,o){let[n,i]=r;if(r==="["||r==="[^"){let a=zte(t,r,o);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(n==="\\"){if("AbBGyYzZ".includes(i))return{token:YM(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Bte(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:sD(r)}}if(i==="K")return{token:lD("keep",r)};if(i==="N"||i==="R")return{token:ja("newline",r,{negate:i==="N"})};if(i==="O")return{token:ja("any",r)};if(i==="X")return{token:ja("text_segment",r)};let a=aD(r,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(n==="("){if(i==="*")return{token:qte(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:Gte(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:Nl("group",r)};if(r==="(?>")return{token:Nl("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:Nl(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:Nl("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:Nl("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:Ute(r)}}if(e.getCurrentModX()){if(r==="#"){let a=t.indexOf(` 149`,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:ja("dot",r)};if(r==="^"||r==="$"){let a=e.singleline?{"^":Rt`\A`,$:Rt`\Z`}[r]:r;return{token:YM(a,r)}}return r==="|"?{token:Rte(r)}:Bk.test(r)?{tokens:Yte(r)}:{token:Mo(ji(r),r)}}function zte(e,t,r){let o=[QM(t[1]==="^",t)],n=1,i;for(Fk.lastIndex=r;i=Fk.exec(e);){let a=i[0];if(a[0]==="["&&a[1]!==":")n++,o.push(QM(a[1]==="^",a));else if(a==="]"){if(o.at(-1).type==="CharacterClassOpen")o.push(Mo(93,a));else if(n--,o.push(Mte(a)),!n)break}else{let s=Nte(a);Array.isArray(s)?o.push(...s):o.push(s)}}return{tokens:o,lastIndex:Fk.lastIndex||e.length}}function Nte(e){if(e[0]==="\\")return aD(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Dd.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ja("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Dte(e):e==="&&"?Ote(e):Mo(ji(e),e)}function aD(e,{inCharClass:t}){let r=e[1];
vendor: 16,533 bytes, line 149
149if(r==="c"||r==="C")return Zte(e);if("dDhHsSwW".includes(r))return Hte(e);if(e.startsWith(Rt`\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 Wte(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 Mo(ji(a),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return Mo(Kte(e),e);if(eD.has(r))return Mo(eD.get(r),e);if(/\d/.test(r))return jte(t,e);if(e==="\\")throw new Error(Rt`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Mo(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function Rte(e){return{type:"Alternator",raw:e}}function YM(e,t){return{type:"Assertion",kind:e,raw:t}}function sD(e){return{type:"Backreference",raw:e}}function Mo(e,t){return{type:"Character",value:e,raw:t}}function Mte(e){return{type:"CharacterClassClose",raw:e}}function Dte(e){return{type:"CharacterClassHyphen",raw:e}}function Ote(e){return{type:"CharacterClassIntersector",raw:e}}function QM(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ja(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function lD(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Ro(r.flags),raw:t}}function jte(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function Ute(e){return{type:"GroupClose",raw:e}}function Nl(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function Lte(e,t,r,o){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:o}}function Fte(e,t,r,o){return{type:"Quantifier",kind:e,min:t,max:r,raw:o}}function Bte(e){return{type:"Subroutine",raw:e}}var Vte=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),eD=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Zte(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 Mo(ji(t.toUpperCase())-64,e)}function Gte(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=rD(r),a=rD(o),s={};if(i&&(s.enable=i),a&&(s.disable=a),e.endsWith(")"))return t.replaceCurrentModX(n),lD("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(n),t.numOpenGroups++,Nl("group",e,{...(i||a)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function qte(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(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[a,s,l]=i,c=Vte.has(r)?r.toLowerCase():"custom";switch(c){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 "${c}"`)}return Lte(c,o??null,n?.split(",")??null,e)}function tD(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 Fte(t,r,o,e)}function Hte(e){let t=e[1].toLowerCase();return ja({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function Wte(e){let{p:t,neg:r,value:o}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return ja("property",e,{value:o,negate:t==="P"&&!r||t==="p"&&!!r})}function rD(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 Jte(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 Kte(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 Xte(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[sD(r)];let i=[],a=n.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){let l=a[s],c;if(s===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(Rt`Octal encoded byte above 177 unsupported "${r}"`)}else c=ji(l);i.push(Mo(c,(s===0?"\\":"")+l))}return i}function Yte(e){let t=[],r=new RegExp(Bk,"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(tD(n.slice(0,-1)));continue}}}t.push(tD(n))}return t}function Sg(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 cD(e){return Qte.has(e.type)}var Qte=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Ig(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},o=iD(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 Do();case"Assertion":return ere(g);case"Backreference":return tre(g,i);case"Character":return Rl(g.value,{useLastValid:!!m.isCheckingRangeEnd});case"CharacterClassHyphen":return rre(g,i,m);case"CharacterClassOpen":return nre(g,i,m);case"CharacterSet":return ore(g,i);case"Directive":return ure(g.kind,{flags:g.flags});case"GroupOpen":return ire(g,i,m);case"NamedCallout":return pre(g.kind,g.tag,g.arguments);case"Quantifier":return are(g,i);case"Subroutine":return sre(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=fre(dre(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:c,namedGroupsByName:u,subroutines:d}=i;if(c&&u.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(u.has(p)){if(u.get(p).length>1)throw new Error(Rt`Subroutine uses a duplicate group name "\g<${p}>"`);u.get(p)[0].isSubroutined=!0}else throw new Error(Rt`Subroutine uses a group name that's not defined "\g<${p}>"`);return a}function ere({kind:e}){return Tg(Ro({"^":"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===Rt`\B`||e===Rt`\Y`})}function tre({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,$g(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 $g(o)}return n(+o)}function rre(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(),cre(a,l);throw new Error("Invalid character class range")}return Rl(ji("-"))}function nre({negate:e},t,r){let{tokens:o,walk:n}=t,i=o[t.nextIndex],a=[Od()],s=pD(i);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")a.push(Od()),t.nextIndex++;else{let c=a.at(-1);c.body.push(n(c,r))}s=pD(o[t.nextIndex],i)}let l=Od({negate:e});return a.length===1?l.body=a[0].body:(l.kind="intersection",l.body=a.map(c=>c.body.length===1?c.body[0]:c)),t.nextIndex++,l}function ore({kind:e,negate:t,value:r},o){let{normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:a}=o;if(e==="property"){let s=Ml(r);if(Dd.has(s)&&!a?.has(s))e="posix",r=s;else return Ua(r,{negate:t,normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:a})}return e==="posix"?mre(r,{negate:t}):Cg(e,{negate:t})}function ire(e,t,r){let{tokens:o,capturingGroups:n,namedGroupsByName:i,skipLookbehindValidation:a,walk:s}=t,l=hre(e),c=l.type==="AbsenceFunction",u=dD(l),d=u&&l.negate;if(l.type==="CapturingGroup"&&(n.push(l),l.name&&XM(i,l.name,[]).push(l)),c&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let p=mD(o[t.nextIndex]);for(;p.type!=="GroupClose";){if(p.type==="Alternator")l.body.push(Do()),t.nextIndex++;else{let m=l.body.at(-1),g=s(m,{...r,isInAbsenceFunction:r.isInAbsenceFunction||c,isInLookbehind:r.isInLookbehind||u,isInNegLookbehind:r.isInNegLookbehind||d});if(m.body.push(g),(u||r.isInLookbehind)&&!a){let x="Lookbehind includes a pattern not allowed by Oniguruma";if(d||r.isInNegLookbehind){if(uD(g)||g.type==="CapturingGroup")throw new Error(x)}else if(uD(g)||dD(g)&&g.negate)throw new Error(x)}}p=mD(o[t.nextIndex])}return t.nextIndex++,l}function are({kind:e,min:t,max:r},o){let n=o.parent,i=n.body.at(-1);if(!i||!cD(i))throw new Error("Quantifier requires a repeatable token");let a=Zk(e,t,r,i);return n.body.pop(),a}function sre({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=Gk(n);return o.push(a),a}function lre(e,t){if(e!=="repeater")throw new Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:jd(t?.body)}}function Do(e){return{type:"Alternative",body:fD(e?.body)}}function Tg(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function $g(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function Vk(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!gre(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:jd(t?.body)}}function Rl(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 Od(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:fD(e?.body)}}function cre(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Cg(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 ure(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Ro(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function dre(e){return{type:"Flags",...e}}function Wr(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:jd(e?.body)}}function Ui(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:jd(e?.body)}}function pre(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function mre(e,t){let r=!!t?.negate;if(!Dd.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function Zk(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 fre(e,t){return{type:"Regex",body:jd(t?.body),flags:e}}function Gk(e){return{type:"Subroutine",ref:e}}function Ua(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},o=r.unicodePropertyMap?.get(Ml(e));if(!o){if(r.normalizeUnknownPropertyNames)o=vre(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(Rt`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:o??e,negate:r.negate}}function hre({flags:e,kind:t,name:r,negate:o,number:n}){switch(t){case"absence_repeater":return lre("repeater");case"atomic":return Wr({atomic:!0});case"capturing":return Vk(n,{name:r});case"group":return Wr({flags:e});case"lookahead":case"lookbehind":return Ui({behind:t==="lookbehind",negate:o});default:throw new Error(`Unexpected group kind "${t}"`)}}
vendor: 4,345 bytes, line 149
149function jd(e){if(e===void 0)e=[Do()];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 fD(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 uD(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function dD(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function gre(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function vre(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 Ml(e){return e.replace(/[- _]+/g,"").toLowerCase()}function pD(e,t){return Ro(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function mD(e){return Ro(e,"Unclosed group")}function La(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 c=0,u=!1,d={node:i,parent:a,key:s,container:l,root:e,remove(){Pg(l).splice(Math.max(0,Dl(s)+c),1),c--,u=!0},removeAllNextSiblings(){return Pg(l).splice(Dl(s)+1)},removeAllPrevSiblings(){let k=Dl(s)+c;return c-=k,Pg(l).splice(0,Math.max(0,k))},replaceWith(k,_={}){let $=!!_.traverse;l?l[Math.max(0,Dl(s)+c)]=k:Ro(a,"Can't replace root node")[s]=k,$&&n(k,a,s,l),u=!0},replaceWithMultiple(k,_={}){let $=!!_.traverse;if(Pg(l).splice(Math.max(0,Dl(s)+c),1,...k),c+=k.length-1,$){let I=0;for(let w=0;w<k.length;w++)I+=n(k[w],a,Dl(s)+w+I,l)}u=!0},skip(){u=!0}},{type:p}=i,m=t["*"],g=t[p],x=typeof m=="function"?m:m?.enter,y=typeof g=="function"?g:g?.enter;if(x?.(d,r),y?.(d,r),!u)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),c}return n(e),e}function Pg(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Dl(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}var hD=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function gD(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function vD(e,t,r,o){return e.slice(0,t)+o+e.slice(t+r.length)}var Nr=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Ud(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:c,groups:{$skip:u}}=l;if(!u&&(!o||o===Nr.DEFAULT==!a)){r instanceof Function?s+=r(l,{context:a?Nr.CHAR_CLASS:Nr.DEFAULT,negated:i[i.length-1]}):s+=r;continue}c[0]==="["?(a++,i.push(c[1]==="^")):c==="]"&&a&&(a--,i.pop()),s+=c}return s}function qk(e,t,r,o){Ud(e,t,r,o)}function yre(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===Nr.DEFAULT==!i))return a;s==="["?i++:s==="]"&&i&&i--,n.lastIndex==a.index&&n.lastIndex++}return null}function Ld(e,t,r){return!!yre(e,t,0,r)}function yD(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 bD=new RegExp(String.raw`(?<noncapturingStart>${hD})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Wk(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,c=0,u=NaN,d;do{d=!1;let p=0,m=0,g=!1,x;for(bD.lastIndex=Number.isNaN(u)?0:u+i.length;x=bD.exec(e);){let{0:y,index:k,groups:{capturingStart:_,noncapturingStart:$}}=x;if(y==="[")p++;else if(p)y==="]"&&p--;else if(y===n&&!g)u=k,g=!0;else if(g&&$)m++;else if(_)g?m++:(l++,a.push(l+c));else if(y===")"&&g){if(!m){c++;let I=l+c;
vendor: 4,626 bytes, lines 149-164
149if(e=`${e.slice(0,u)}${i}${e.slice(u+n.length,k)}))<$$${I}>)${e.slice(k+1)}`,d=!0,s.push(I),gD(r,I),o.size){let w=new Map;o.forEach((P,D)=>{w.set(D>=I?D+1:D,P.map(j=>j>=I?j+1:j))}),o=w}break}m--}}}while(d);return r.push(...s),e=Ud(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}`},Nr.DEFAULT),{pattern:e,captureTransfers:o,hiddenCaptures:r}}var xD=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Hk=new RegExp(String.raw` 150\\(?: \d+ 151 | c[A-Za-z] 152 | [gk]<[^>]+> 153 | [pPu]\{[^\}]+\} 154 | u[A-Fa-f\d]{4} 155 | x[A-Fa-f\d]{2} 156 ) 157| \((?: \? (?: [:=!>] 158 | <(?:[=!]|[^>]+>) 159 | [A-Za-z\-]+: 160 | \(DEFINE\) 161 ))? 162| (?<qBase>${xD})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 163| \\?. 164`.replace(/\s+/g,""),"gsu");function Jk(e){if(!new RegExp(`${xD}\\+`).test(e))return{pattern:e};let t=[],r=null,o=null,n="",i=0,a;for(Hk.lastIndex=0;a=Hk.exec(e);){let{0:s,index:l,groups:{qBase:c,qMod:u,invalidQ:d}}=a;if(s==="[")i||(o=l),i++;else if(s==="]")i?i--:o=null;else if(!i)if(u==="+"&&n&&!n.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${s}"`);let p=-1;if(/^\{\d+\}$/.test(c))e=vD(e,l+c.length,u,"");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)}${c})${e.slice(l+s.length)}`}else e=`${e.slice(0,l-n.length)}(?>${n}${c})${e.slice(l+s.length)}`;p+=4}Hk.lastIndex+=p}else s[0]==="("?t.push(l):s===")"&&(r=t.length?t.pop():null);n=s}return{pattern:e}}var dn=String.raw,bre=dn`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Xk=dn`\(\?R=(?<rDepth>[^\)]+)\)|${bre}`,Eg=dn`\(\?<(?![=!])(?<captureName>[^>]+)>`,$D=dn`${Eg}|(?<unnamed>\()(?!\?)`,Fa=new RegExp(dn`${Eg}|${Xk}|\(\?|\\?.`,"gsu"),Kk="Cannot use multiple overlapping recursions";function ID(e,t){let{hiddenCaptures:r,mode:o}={hiddenCaptures:[],mode:"plugin",...t},n=t?.captureTransfers??new Map;if(!new RegExp(Xk,"su").test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};if(o==="plugin"&&Ld(e,dn`\(\?\(DEFINE\)`,Nr.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let i=[],a=Ld(e,dn`\\[1-9]`,Nr.DEFAULT),s=new Map,l=[],c=!1,u=0,d=0,p;for(Fa.lastIndex=0;p=Fa.exec(e);){let{0:m,groups:{captureName:g,rDepth:x,gRNameOrNum:y,gRDepth:k}}=p;if(m==="[")u++;else if(u)m==="]"&&u--;else if(x){if(wD(x),c)throw new Error(Kk);if(a)throw new Error(`${o==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let _=e.slice(0,p.index),$=e.slice(Fa.lastIndex);if(Ld($,Xk,Nr.DEFAULT))throw new Error(Kk);let I=+x-1;e=_D(_,$,I,!1,r,i,d),n=SD(n,_,I,i.length,0,d);break}else if(y){wD(k);let _=!1;for(let F of l)if(F.name===y||F.num===+y){if(_=!0,F.hasRecursedWithin)throw new Error(Kk);break}if(!_)throw new Error(dn`Recursive \g cannot be used outside the referenced group "${o==="external"?y:dn`\g<${y}&R=${k}>`}"`);let $=s.get(y),I=yD(e,$);if(a&&Ld(I,dn`${Eg}|\((?!\?)`,Nr.DEFAULT))throw new Error(`${o==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let w=e.slice($,p.index),P=I.slice(w.length+m.length),D=i.length,j=+k-1,M=_D(w,P,j,!0,r,i,d);n=SD(n,w,j,i.length-D,D,d);let U=e.slice(0,$),V=e.slice($+I.length);e=`${U}${M}${V}`,Fa.lastIndex+=M.length-m.length-w.length-P.length,l.forEach(F=>F.hasRecursedWithin=!0),c=!0}else if(g)d++,s.set(String(d),Fa.lastIndex),s.set(g,Fa.lastIndex),l.push({num:d,name:g});else if(m[0]==="("){let _=m==="(";_&&(d++,s.set(String(d),Fa.lastIndex)),l.push(_?{num:d}:{})}else m===")"&&l.pop()}return r.push(...i),{pattern:e,captureTransfers:n,hiddenCaptures:r}}function wD(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 _D(e,t,r,o,n,i,a){let s=new Set;o&&qk(e+t,Eg,({groups:{captureName:c}})=>{s.add(c)},Nr.DEFAULT);let l=[r,o?s:null,n,i,a];return`${e}${kD(`(?:${e}`,"forward",...l)}(?:)${kD(`${t})`,"backward",...l)}${t}`}function kD(e,t,r,o,n,i,a){let l=u=>t==="forward"?u+2:r-u+2-1,c="";for(let u=0;u<r;u++){let d=l(u);c+=Ud(e,dn`${$D}|\\k<(?<backref>[^>]+)>`,({0:p,groups:{captureName:m,unnamed:g,backref:x}})=>{if(x&&o&&!o.has(x))return p;let y=`_$${d}`;if(g||m){let k=a+i.length+1;return i.push(k),xre(n,k),g?p:`(?<${m}${y}>`}return dn`\k<${x}${y}>`},Nr.DEFAULT)}return c}function xre(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function SD(e,t,r,o,n,i){if(e.size&&o){let a=0;qk(t,$D,()=>a++,Nr.DEFAULT);let s=i-a+n,l=new Map;return e.forEach((c,u)=>
vendor: 3,425 bytes, lines 164-246
164{let d=(o-a*r)/r,p=a*r,m=u>s+a?u+o:u,g=[];for(let x of c)if(x<=s)g.push(x);else if(x>s+a+d)g.push(x+o);else if(x<=s+a)for(let y=0;y<=r;y++)g.push(x+a*y);else for(let y=0;y<=r;y++)g.push(x+p+d*y);l.set(m,g)}),l}return e}var Bt=String.fromCodePoint,Ae=String.raw,Tn={},zg=globalThis.RegExp;Tn.flagGroups=(()=>{try{new zg("(?i:)")}catch{return!1}return!0})();Tn.unicodeSets=(()=>{try{new zg("[[]]","v")}catch{return!1}return!0})();Tn.bugFlagVLiteralHyphenIsRange=Tn.unicodeSets?(()=>{try{new zg(Ae`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Tn.bugNestedClassIgnoresNegation=Tn.unicodeSets&&new zg("[[^a]]","v").test("a");function Ag(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Fd(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function rS(e,t){return TD[e]>=TD[t]}function wre(e,t){if(e==null)throw new Error(t??"Value expected");return e}var TD={ES2025:2025,ES2024:2024,ES2018:2018},_re={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function zD(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!_re[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=Tn.flagGroups?"ES2025":Tn.unicodeSets?"ES2024":"ES2018"),t}var kre="[ -\r ]",Sre=new Set([Bt(304),Bt(305)]),Oo=Ae`[\p{L}\p{M}\p{N}\p{Pc}]`;function ND(e){if(Sre.has(e))return[e];let t=new Set,r=e.toLowerCase(),o=r.toUpperCase(),n=Tre.get(r),i=$re.get(r),a=Ire.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 oS=new Map(`C Other 165Cc Control cntrl 166Cf Format 167Cn Unassigned 168Co Private_Use 169Cs Surrogate 170L Letter 171LC Cased_Letter 172Ll Lowercase_Letter 173Lm Modifier_Letter 174Lo Other_Letter 175Lt Titlecase_Letter 176Lu Uppercase_Letter 177M Mark Combining_Mark 178Mc Spacing_Mark 179Me Enclosing_Mark 180Mn Nonspacing_Mark 181N Number 182Nd Decimal_Number digit 183Nl Letter_Number 184No Other_Number 185P Punctuation punct 186Pc Connector_Punctuation 187Pd Dash_Punctuation 188Pe Close_Punctuation 189Pf Final_Punctuation 190Pi Initial_Punctuation 191Po Other_Punctuation 192Ps Open_Punctuation 193S Symbol 194Sc Currency_Symbol 195Sk Modifier_Symbol 196Sm Math_Symbol 197So Other_Symbol 198Z Separator 199Zl Line_Separator 200Zp Paragraph_Separator 201Zs Space_Separator 202ASCII 203ASCII_Hex_Digit AHex 204Alphabetic Alpha 205Any 206Assigned 207Bidi_Control Bidi_C 208Bidi_Mirrored Bidi_M 209Case_Ignorable CI 210Cased 211Changes_When_Casefolded CWCF 212Changes_When_Casemapped CWCM 213Changes_When_Lowercased CWL 214Changes_When_NFKC_Casefolded CWKCF 215Changes_When_Titlecased CWT 216Changes_When_Uppercased CWU 217Dash 218Default_Ignorable_Code_Point DI 219Deprecated Dep 220Diacritic Dia 221Emoji 222Emoji_Component EComp 223Emoji_Modifier EMod 224Emoji_Modifier_Base EBase 225Emoji_Presentation EPres 226Extended_Pictographic ExtPict 227Extender Ext 228Grapheme_Base Gr_Base 229Grapheme_Extend Gr_Ext 230Hex_Digit Hex 231IDS_Binary_Operator IDSB 232IDS_Trinary_Operator IDST 233ID_Continue IDC 234ID_Start IDS 235Ideographic Ideo 236Join_Control Join_C 237Logical_Order_Exception LOE 238Lowercase Lower 239Math 240Noncharacter_Code_Point NChar 241Pattern_Syntax Pat_Syn 242Pattern_White_Space Pat_WS 243Quotation_Mark QMark 244Radical 245Regional_Indicator RI 246Sentence_Terminal STerm
247Soft_Dotted SD 248Terminal_Punctuation Term 249Unified_Ideograph UIdeo 250Uppercase Upper 251Variation_Selector VS 252White_Space space 253XID_Continue XIDC 254XID_Start XIDS`.split(/\s/).map(e=>[Ml(e),e])),$re=new Map([["s",Bt(383)],[Bt(383),"s"]]),Ire=new Map([[Bt(223),Bt(7838)],[Bt(107),Bt(8490)],[Bt(229),Bt(8491)],[Bt(969),Bt(8486)]]),Tre=new Map([Li(453),Li(456),Li(459),Li(498),...Yk(8072,8079),...Yk(8088,8095),...Yk(8104,8111),Li(8124),Li(8140),Li(8188)]),Cre=new Map([["alnum",Ae`[\p{Alpha}\p{Nd}]`],["alpha",Ae`\p{Alpha}`],["ascii",Ae`\p{ASCII}`],["blank",Ae`[\p{Zs}\t]`],["cntrl",Ae`\p{Cc}`],["digit",Ae`\p{Nd}`],["graph",Ae`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Ae`\p{Lower}`],["print",Ae`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Ae`[\p{P}\p{S}]`],["space",Ae`\p{space}`],["upper",Ae`\p{Upper}`],["word",Ae`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Ae`\p{AHex}`]]);function Pre(e,t){let r=[];for(let o=e;o<=t;o++)r.push(o);return r}function Li(e){let t=Bt(e);return[t.toLowerCase(),t]}function Yk(e,t){return Pre(e,t).map(r=>Li(r))}var RD=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Ere(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};MD(e);let o={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:rS(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};La(e,Are,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};La(e,zre,i);let a={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return La(e,Nre,a),e._originMap=i.groupOriginByCopy,e._strategy=o.strategy,e}var Are={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:o,kind:n}=e;if(n==="repeater"){let i=Wr();i.body[0].body.push(Ui({negate:!0,body:o}),Ua("Any"));let a=Wr();a.body[0].body.push(Zk("greedy",0,1/0,i)),r(zt(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];Fd(o,a,[]).push(...n)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=OD(t.get(e));if(r){let o=Wr({flags:r});o.body[0].body=e.body,e.body=[zt(o,e)]}}}},Assertion({node:e,parent:t,key:r,container:o,root:n,remove:i,replaceWith:a},s){let{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:p,wordIsAscii:m}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")a(zt(Ui({body:[Do({body:[Tg("string_end")]}),Do({body:[Rl(10)]})]}),t));else if(l==="line_start")a(zt(jo(Ae`(?<=\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&&Ure(g))a(zt(Ui({negate:!0}),t));else{if(d)throw new Error(Ae`Uses "\G" in a way that requires a subclass`);a(Fi(Tg("string_start"),t)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(zt(jo(Ae`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!m&&!u){let g=`(?:(?<=${Oo})(?!${Oo})|(?<!${Oo})(?=${Oo}))`,x=`(?:(?<=${Oo})(?=${Oo})|(?<!${Oo})(?!${Oo}))`;a(zt(jo(c?x:g),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!eS(r)&&(r=Qk(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:o}=e;o&&!eS(o)&&(o=Qk(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=Od({body:[e]});r(zt(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:c,value:u}=e;if(i&&(l==="digit"||u==="digit")){r(Fi(Cg("digit",{negate:c}),t));return}
vendor: 17,346 bytes, lines 254-257
254if(a&&(l==="space"||u==="space")){r(zt(tS(jo(kre),c),t));return}if(s&&(l==="word"||u==="word")){r(Fi(Cg("word",{negate:c}),t));return}if(l==="any")r(Fi(Ua("Any"),t));else if(l==="digit")r(Fi(Ua("Nd",{negate:c}),t));else if(l!=="dot")if(l==="text_segment"){if(o==="strict")throw new Error(Ae`Use of "\X" requires non-strict accuracy`);let d="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",p=Ae`\p{RI}{2}|${d}(?:\u200D${d})*`;r(zt(jo(Ae`(?>\r\n|${n?Ae`\p{RGI_Emoji}`:p}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")r(Fi(Ua("AHex",{negate:c}),t));else if(l==="newline")r(zt(jo(c?`[^ 255]`:`(?>\r 256?|[ 257\v\f\x85\u2028\u2029])`),t));else if(l==="posix")if(!n&&(u==="graph"||u==="print")){if(o==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[u];c&&(d=`\0-${Bt(d.codePointAt(0)-1)}${Bt(d.codePointAt(2)+1)}-\u{10FFFF}`),r(zt(jo(`[${d}]`),t))}else r(zt(tS(jo(Cre.get(u)),c),t));else if(l==="property")oS.has(Ml(u))||(e.key="sc");else if(l==="space")r(Fi(Ua("space",{negate:c}),t));else if(l==="word")r(zt(tS(jo(Oo),c),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 c=Wr({flags:l});c.body[0].body=a(),n(zt(c,t),{traverse:!0})}else if(s==="keep"){let c=r.body[0],d=r.body.length===1&&Sg(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:r;if(t.parent!==d||d.body.length>1)throw new Error(Ae`Uses "\K" in a way that's unsupported`);let p=Ui({behind:!0});p.body[0].body=i(),n(zt(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(zt(Ui({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${o.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=Wr();t.body[0].body.push(e.body),e.body=zt(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=UD(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(Ae`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!eS(r)&&(r=Qk(r,t),e.ref=r)}},zre={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 c=n.get(e);if(c&&s.has(e.number)){let d=Fi(CD(e.number),t);l.set(d,s.get(e.number)),r(d);return}s.set(e.number,e),a.set(e.number,[]),e.name&&Fd(a,e.name,[]);let u=a.get(e.name??e.number);for(let d=0;d<u.length;d++){let p=u[d];if(c===p.node||c&&c===p.origin||e===p.origin){u.splice(d,1);break}}if(a.get(e.number).push({node:e,origin:c}),e.name&&a.get(e.name).push({node:e,origin:c}),e.name){let d=Fd(i,e.name,new Map),p=!1;if(c)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=Ag(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 u=t;for(;(u=u.parent)&&!(u.type==="CapturingGroup"&&(u.name===i||u.number===i)););o.reffedNodesByReferencer.set(e,u);return}let a=o.subroutineRefMap.get(i),s=i===0,l=s?CD(0):DD(a,o.groupOriginByCopy,null),c=l;if(!s){let u=OD(Dre(a,p=>p.type==="Group"&&!!p.flags)),d=u?Ag(o.globalFlags,u):o.globalFlags;Rre(d,o.currentFlags)||(c=Wr({flags:Ore(d)}),c.body[0].body.push(l))}r(zt(c,t),{traverse:!s})}},Nre={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=>Mre(a,e));if(!i.length)r(zt(Ui({negate:!0}),t));else if(i.length>1){let a=Wr({atomic:!0,body:i.reverse().map(s=>Do({body:[$g(s.number)]}))});r(zt(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=Vk();e.body.at(-1).body.push(n)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function MD(e){La(e,{"*"({node:t,parent:r}){t.parent=r}})}function Rre(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Mre(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let o=jD(r.parent);for(let n of o){if(n===r)break;if(n===e||LD(n,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function DD(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]=DD(a,t,n,r):(i==="type"&&a==="CapturingGroup"&&t.set(n,t.get(e)??e),n[i]=a);return n}function CD(e){let t=Gk(e);return t.isRecursive=!0,t}function Dre(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function Qk(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 OD(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 Ore({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 jD(e){if(!e)throw new Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function UD(e){let t=e.find(r=>r.kind==="search_start"||Lre(r,{negate:!1})||!jre(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=UD(o.body);if(!n)return null;Array.isArray(n)?r.push(...n):r.push(n)}return r}return null}function LD(e,t){let r=jD(e)??[];for(let o of r)if(o===t||LD(o,t))return!0;return!1}function jre({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Ure(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function Lre(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&Sg(e.body[0],{type:"Assertion",kind:"search_start"})}function eS(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function jo(e,t){let o=Ig(e,{...t,unicodePropertyMap:oS}).body;return o.length>1||o[0].body.length>1?Wr({body:o}):o[0].body[0]}function tS(e,t){return e.negate=t,e}function Fi(e,t){return e.parent=t,e}function zt(e,t){return MD(e),e.parent=t,e}function Fre(e,t){let r=zD(t),o=rS(r.target,"ES2024"),n=rS(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];La(e,Bre,{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)},c=e,u={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!n&&a&&s),useFlagMods:n,useFlagV:o,verbose:r.verbose};function d(m){return u.lastNode=c,c=m,wre(Vre[m.type],`Unexpected node type "${m.type}"`)(m,u,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=[],u.captureMap.forEach((m,g)=>{m.hidden&&p._hiddenCaptures.push(g),m.transferTo&&Fd(p._captureTransfers,m.transferTo,[]).push(g)}),p}var Bre={"*":{enter({node:e},t){if(ED(e)){let r=t.getCurrentModI();t.pushModI(e.flags?Ag({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){ED(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){iS(Bt(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),FD(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&RD.has(e.value)&&t.setHasCasedChar()}},Vre={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?Ae`\B`:Ae`\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=Bt(e),o=Ol(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(o!==r)return o;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&iS(r)){let n=ND(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");Tn.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&a.some(AD)&&(a=[Rl(45),...a.filter(c=>!AD(c))]);let s=()=>`[${n?"^":""}${a.map(r).join(o==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Tn.bugNestedClassIgnoresNegation)&&!n){let u=a.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(u.length){let d=Wr(),p=d.body[0];return d.parent=i,p.parent=d,a=a.filter(m=>!u.includes(m)),e.body=a,a.length?(e.parent=p,p.body.push(e)):d.body.pop(),u.forEach(m=>{let g=Do({body:[m]});m.parent=g,g.parent=d,d.body.push(g)}),r(d)}}t.inCharClass=!0;let c=s();return t.inCharClass=!1,c}let l=a[0];if(o==="union"&&!n&&l&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(Tn.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=Ol(r,n),a=Ol(o,n),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let l=FD(e);Wre(l).forEach(u=>{s.add(Array.isArray(u)?`${Ol(u[0],n)}-${Ol(u[1],n)}`:Ol(u,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?".":"[^]":Ae`[^\n]`;if(e==="digit")return t?Ae`\D`:Ae`\d`;if(e==="property"){if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&RD.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?Ae`\P`:Ae`\p`}{${o?`${o}=`:""}${r}}`}if(e==="word")return t?Ae`\W`:Ae`\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=Ag(a,r));let s=t.map(i).join("|"),l=!n.verbose&&t.length===1&&o.type!=="Quantifier"&&!e&&(!n.useFlagMods||!r)?s:`(?${Jre(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)+Kre(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})`:Ae`\g<${t}&R=${o}>`}},Zre=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Gre=new Set(["-","\\","]","^","["]),qre=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),PD=new Map([[9,Ae`\t`],[10,Ae`\n`],[11,Ae`\v`],[12,Ae`\f`],[13,Ae`\r`],[8232,Ae`\u2028`],[8233,Ae`\u2029`],[65279,Ae`\uFEFF`]]),Hre=/^\p{Cased}$/u;function iS(e){return Hre.test(e)}function FD(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=Bt(a);if(!iS(s))continue;let l=ND(s).filter(c=>{let u=c.codePointAt(0);return u<o||u>n});if(l.length&&(i.push(...l),r))break}return i}function Ol(e,{escDigit:t,inCharClass:r,useFlagV:o}){if(PD.has(e))return PD.get(e);if(e<32||e>126&&e<160||e>262143||t&&Xre(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let n=r?o?qre:Gre:Zre,i=Bt(e);return(n.has(i)?"\\":"")+i}function Wre(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 Jre(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 Kre({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 ED({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function Xre(e){return e>47&&e<58}function AD({type:e,value:t}){return e==="Character"&&t===45}var Yre=class nS 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 nS&&(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=ene(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 nS(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&&(Qre(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 c=i[l];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(r[c]=o[a],this.hasIndices&&(r.indices[c]=n[a]),r.groups){this.#r||(this.#r=tne(this.source));let u=this.#r.get(l);u&&(r.groups[u]=o[a],this.hasIndices&&(r.indices.groups[u]=n[a]))}}}return r}};function Qre(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,008 bytes, line 257
257i&&Object.keys(i).forEach(a=>{let s=i[a];s&&(i[a]=[s[0]+t,s[1]+t])})}}function ene(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)Fd(r,i,{}).transferTo=o;return r}function tne(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 BD(e,t){let r=rne(e,t);return r.options?new Yre(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function rne(e,t){let r=zD(t),o=Ig(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:oS}),n=Ere(o,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),i=Fre(n,r),a=ID(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),s=Jk(a.pattern),l=Wk(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),c={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 u=l.hiddenCaptures.sort((g,x)=>g-x),d=Array.from(l.captureTransfers),p=n._strategy,m=c.pattern.length>=r.lazyCompileLength;(u.length||d.length||p||m)&&(c.options={...u.length&&{hiddenCaptures:u},...d.length&&{transfers:d},...p&&{strategy:p},...m&&{lazyCompile:m}})}return c}function VD(e,t){return BD(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function aS(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=r=>VD(r,{target:t.target}),{createScanner(r){return new KM(r,t)},createString(r){return{content:r}}}}var ZD
vendor: 11,376 bytes, line 257
257=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"}'));
257var GD=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
257d":"#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
257d":"#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 nne="https://esm.sh/@shikijs/[email protected]/",sS=null;function one(){return sS||(sS=JM({themes:[GD,ZD],langs:[],engine:aS()})),sS}var qD=new Set,lS=new Map;async function ine(e,t){if(qD.has(t))return;let r=lS.get(t);if(r)return r;let o=(async()=>{try{let n=await import(`${nne}${t}.mjs`);await e.loadLanguage(n.default??n)}catch{}finally{qD.add(t),lS.delete(t)}})();return lS.set(t,o),o}async function HD(e){let t=await one();return await ine(t,e),t}var WD=["github-light","github-dark"],JD=new Map,jl=new Map;function ane(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 sne(e){let t=r=>typeof r=="string"?r:r?.name??"custom";return[t(e[0]),t(e[1])]}var KD={name:"shiki",type:"code-highlighter",supportsLanguage(e){return!0},getSupportedLanguages(){return[]},getThemes(){return[WD[0],WD[1]]}
257,highlight(e,t){let{code:r,language:o}=e,n=sne(e.themes),i=ane(r,o,n),a=JD.get(i);return a||(t&&(jl.has(i)||jl.set(i,new Set),jl.get(i).add(t)),HD(o).then(s=>{let l=s.getLoadedLanguages().includes(o)?o:"text",c=s.codeToTokens(r,{lang:l,themes:{light:n[0],dark:n[1]}}),u={bg:c.bg??void 0,fg:c.fg??void 0,tokens:c.tokens};JD.set(i,u);let d=jl.get(i);if(d){for(let p of d)p(u);jl.delete(i)}}).catch(s=>{console.error("[streamdown-code] Failed to highlight:",s),jl.delete(i)}),null)}};function cS(e,t){return YD(e,t||{})||{type:"root",children:[]}}function YD(e,t){let r=lne(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function lne(e,t){switch(e.nodeType){case 1:return pne(e,t);case 3:return une(e);case 8:return dne(e);case 9:return XD(e,t);case 10:return cne();case 11:return XD(e,t);default:return}}function XD(e,t){return{type:"root",children:QD(e,t)}}function cne(){return{type:"doctype"}}function une(e){return{type:"text",value:e.nodeValue||""}}function dne(e){return{type:"comment",value:e.nodeValue||""}}function pne(e,t){let r=e.namespaceURI,o=r===bp.svg?s3:a3,n=r===bp.html?e.tagName.toLowerCase():e.tagName,i=r===bp.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,QD(i,t))}function QD(e,t){let r=e.childNodes,o=[],n=-1;for(;++n<r.length;){let i=YD(r[n],t);i!==void 0&&o.push(i)}return o}var mne=new DOMParser;function eO(e,t){let r=t?.fragment?fne(e):mne.parseFromString(e,"text/html");return cS(r)}function fne(e){let t=document.createElement("template");return t.innerHTML=e,t.content}var Ng=(function(e,t,r){let o=K5(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 Uo=(function(e){if(e==null)return vne;if(typeof e=="string")return gne(e);if(typeof e=="object")return hne(e);if(typeof e=="function")return uS(e);throw new Error("Expected function, string, or array as `test`")});function hne(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Uo(e[r]);return uS(o);function o(...n){let i=-1;for(;++i<t.length;)if(t[i].apply(this,n))return!0;return!1}}function gne(e){return uS(t);function t(r){return r.tagName===e}}function uS(e){return t;function t(r,o,n){return!!(yne(r)&&e.call(this,r,typeof o=="number"?o:void 0,n||void 0))}}function vne(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function yne(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}var tO=/\n/g,rO=/[\t ]+/g,dS=Uo("br"),nO=Uo($ne),bne=Uo("p"),oO=Uo("tr"),xne=Uo(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Sne,Ine]),iO=Uo(["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 pS(e,t){let r=t||{},o="children"in e?e.children:[],n=iO(e),i=lO(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),a=[];(e.type==="text"||e.type==="comment")&&a.push(...sO(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<o.length;)a.push(...aO(o[s],e,{whitespace:i,breakBefore:s?void 0:n,breakAfter:s<o.length-1?dS(o[s+1]):n}));let l=[],c;for(s=-1;++s<a.length;){let u=a[s];typeof u=="number"?c!==void 0&&u>c&&(c=u):u&&(c!==void 0&&c>-1&&l.push(` 258`.repeat(c)||" "),c=-1,l.push(u))}return l.join("")}function aO(e,t,r){return e.type==="element"?wne(e,t,r):e.type==="text"?r.whitespace==="normal"?sO(e,r):_ne(e):[]}function wne(e,t,r){let o=lO(e,r),n=e.children||[],i=-1,a=[];if(xne(e))return a;let s,l;for(dS(e)||oO(e)&&Ng(t,e,oO)?l=` 259`:bne(e)?(s=2,l=2):iO(e)&&(s=1,l=1);++i<n.length;)a=a.concat(aO(n[i],e,{whitespace:o,breakBefore:i?void 0:s,breakAfter:i<n.length-1?dS(n[i+1]):l}));return nO(e)&&Ng(t,e,nO)&&a.push(" "),s&&a.unshift(s),l&&a.push(l),a}function sO(e,t){let r=String(e.value),o=[],n=[],i=0;for(;i<=r.length;){tO.lastIndex=i;let l=tO.exec(r),c=l&&"index"in l?l.index:r.length;o.push(kne(r.slice(i,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,c===r.length?t.breakAfter:!0)),i=c+1}let a=-1,s;for(;++a<o.length;
259)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 _ne(e){return[String(e.value)]}function kne(e,t,r){let o=[],n=0,i;for(;n<e.length;){rO.lastIndex=n;let a=rO.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 lO(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 Sne(e){return!!(e.properties||{}).hidden}function $ne(e){return e.tagName==="td"||e.tagName==="th"}function Ine(e){return e.tagName==="dialog"&&!(e.properties||{}).open}var Q=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"),c;n>15?c="\u2026"+s.slice(n-15,n):c=s.slice(0,n);var u;i+15<s.length?u=s.slice(i,i+15)+"\u2026":u=s.slice(i),o+=c+l+u}super(o),this.name="ParseError",Object.setPrototypeOf(this,e.prototype),this.position=n,n!=null&&i!=null&&(this.length=i-n),this.rawMessage=t}},Tne=/([A-Z])/g,VS=e=>e.replace(Tne,"-$1").toLowerCase(),Cne={"&":"&",">":">","<":"<",'"':""","'":"'"},Pne=/[&><"']/g,or=e=>String(e).replace(Pne,t=>Cne[t]),Gg=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Gg(e.body[0]):e:e.type==="font"?Gg(e.body):e,Ene=new Set(["mathord","textord","atom"]),Vo=e=>Ene.has(Gg(e).type),Ane=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"},TS={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 zne(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 qd=class{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(TS)){var o=TS[r],n=t[r];this[r]=n!==void 0?o.processor?o.processor(n):n:zne(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 Q("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=Ane(t.url);if(r==null)return!1;t.protocol=r}var o=typeof this.trust=="function"?this.trust(t):this.trust;return!!o}},Wn=class{constructor(t,r,o){this.id=t,this.size=r,this.cramped=o}sup(){return Jn[Nne[this.id]]}sub(){return Jn[Rne[this.id]]}fracNum(){return Jn[Mne[this.id]]}fracDen(){return Jn[Dne[this.id]]}cramp(){return Jn[One[this.id]]}text(){return Jn[jne[this.id]]}isTight(){return this.size>=2}},ZS=0,Hg=1,Ll=2,Bo=3,Hd=4,pn=5,Fl=6,yr=7,Jn=[new Wn(ZS,0,!1),new Wn(Hg,0,!0),new Wn(Ll,1,!1),new Wn(Bo,1,!0),new Wn(Hd,2,!1),new Wn(pn,2,!0),new Wn(Fl,3,!1),new Wn(yr,3,!0)],Nne=[Hd,pn,Hd,pn,Fl,yr,Fl,yr],Rne=[pn,pn,pn,pn,yr,yr,yr,yr],Mne=[Ll,Bo,Hd,pn,Fl,yr,Fl,yr],Dne=[Bo,Bo,pn,pn,yr,yr,yr,yr],One=[Hg,Hg,Bo,Bo,pn,pn,yr,yr],jne=[ZS,Hg,Ll,Bo,Ll,Bo,Ll,Bo],Ce={DISPLAY:Jn[ZS],TEXT:Jn[Ll],SCRIPT:Jn[Hd],SCRIPTSCRIPT:Jn[Fl]},CS=[{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 Une(e){for(var t=0;t<CS.length;t++)for(var r=CS[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 qg=[];
vendor: 4,440 bytes, lines 259-310
259CS.forEach(e=>e.blocks.forEach(t=>qg.push(...t)));function jO(e){for(var t=0;t<qg.length;t+=2)if(e>=qg[t]&&e<=qg[t+1])return!0;return!1}var Ul=80,Lne=function(t,r){return"M95,"+(622+t+r)+` 260c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 261c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 262c44.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 263s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 264c69,-144,104.5,-217.7,106.5,-221 265l`+t/2.075+" -"+t+` 266c5.3,-9.3,12,-14,20,-14 267H400000v`+(40+t)+`H845.2724 268s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 269c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 270M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Fne=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 271c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 272c340,-704.7,510.7,-1060.3,512,-1067 273l`+t/2.084+" -"+t+` 274c4.7,-7.3,11,-11,19,-11 275H40000v`+(40+t)+`H1012.3 276s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 277c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 278s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 279c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 280M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Bne=function(t,r){return"M983 "+(10+t+r)+` 281l`+t/3.13+" -"+t+` 282c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` 283H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 284s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 285c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 286c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 287c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 288c53.7,-170.3,84.5,-266.8,92.5,-289.5z 289M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Vne=function(t,r){return"M424,"+(2398+t+r)+` 290c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 291c0,-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 292s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 293s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 294l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 295v`+(40+t)+`H1014.6 296s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 297c-2,6,-10,9,-24,9 298c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` 299h400000v`+(40+t)+"h-400000z"},Zne=function(t,r){return"M473,"+(2713+t+r)+` 300c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` 301c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 302s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 303c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 304c0,-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 305s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 306606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},Gne=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},qne=function(t,r,o){var n=o-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` 307H742v`+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 308h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 309c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 310219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},Hne=function(t,r,o){r=1e3*r;var n="";switch(t){case"sqrtMain":n=Lne(r,Ul);break;case"sqrtSize1":n=Fne(r,Ul);break;case"sqrtSize2":n=Bne(r,Ul);break;case"sqrtSize3":n=Vne(r,Ul);break;case"sqrtSize4":n=Zne(r,Ul);break;case"sqrtTall":n=qne(r,Ul,o)}return n},Wne=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""}},cO
vendor: 10,493 bytes, lines 310-431
310={doubleleftarrow:`M262 157 311l10-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 312 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 313 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 314c2 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 315 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 316-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 317-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 318m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 319-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 320 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 321-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 322-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 323-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 324c-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 325-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 326 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 327-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 328c-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 329 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 330 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 331 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 332-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 333 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 334 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 335 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 336-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 337H435C64 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 338 435 0h399565z`,leftgroupunder:`M400000 262 339H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 340 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 341-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 342-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 343-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 344 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 345-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 346-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 347m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 348 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 349 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 350-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 351 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 352-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 353v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 354-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 355-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 356 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 357M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z 358M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z 359M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 360M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 361-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 362c28.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 363 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 364M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 365c-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 366-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 367 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 368 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 369c100.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 370 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 371 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 372-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 373-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 374m368.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 37560.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 376-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 377m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 378c0 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 379-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 380m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 38185.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 382-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 383m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 384c0 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 385-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 386 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 387 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 388-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 389-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 390 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 391-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 392s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 393c124.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 394 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 395-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 396 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 397 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 398-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 399-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 400 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 401-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 402 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 403m0 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 404 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 405-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 406-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 407 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 408 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 409-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 410m0-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 411 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 412-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 413 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 414M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z 415M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z 416M399995 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 417 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 418-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 419-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 420 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 421-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 422-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 423-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 424 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 425c-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 426 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 427 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 428-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 429 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 430-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 431 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 431-489
4316.525 0 432 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 433-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 434-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 435 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 436c1 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 437 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 438-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 439 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 440 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 441 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 442-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 443 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 444 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 445 -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 4463.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 44710.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 448-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 449-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 450H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 451c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 452c-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 453-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 454-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 455-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, 456-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, 457-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, 458-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, 459-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 460c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 461c-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 462s-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 463121.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 464s2.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 465c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 466M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 467-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 46813.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 469-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 470-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 471-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 472151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 473c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 474c2,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 475c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 476c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 477M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 478c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 479-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 480c-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 481M0 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 482c1.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, 4831c0,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, 484-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 485M93 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 486c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 487-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 488c-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 489M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 6,035 bytes, lines 489-517
489Jne=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 490H403z 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 491M347 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 492c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 493c-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 494c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 495c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z 496M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 497c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 498c-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 499MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z 500MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z 501M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z 502M347 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 503c-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, 504-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 505949.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 506c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 507-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 508l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 509-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, 51063,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 511c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` 512c-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 513c-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 514c0,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 515c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 516l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 517-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.")}},Zi=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("")}},PS={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},Kne={ex:!0,em:!0,mu:!0},UO=function(t){return typeof t!="string"&&(t=t.unit),t in PS||t in Kne||t==="ex"},It=function(t,r){var o;if(t.unit in PS)o=PS[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 Q("Invalid unit: '"+t.unit+"'");n!==r&&(o*=n.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*o,r.maxSize)},te=function(t){return+t.toFixed(4)+"em"},Gi=function(t){return t.filter(r=>r).join(" ")},LO=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)}},FO=function(t){var r=document.createElement(t);r.className=Gi(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},Xne=/[\s"'>/=\x00-\x1f]/,BO=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+or(Gi(this.classes))+'"');var o="";for(var n of Object.keys(this.style))o+=VS(n)+":"+this.style[n]+";";o&&(r+=' style="'+or(o)+'"');for(var i of Object.keys(this.attributes)){if(Xne.test(i))throw new Q("Invalid attribute name '"+i+"'");r+=" "+i+'="'+or(this.attributes[i])+'"'}r+=">";for(var a=0;a<this.children.length;a++)r+=this.children[a].toMarkup();return r+="</"+t+">",r},qi=class{constructor(t,r,o,n){LO.call(this,t,o,n),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return FO.call(this,"span")}toMarkup(){return BO.call(this,"span")}},Bl=class{constructor(t,r,o,n){LO.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 FO.call(this,"a")}toMarkup(){return BO.call(this,"a")}},ES=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="'+or(this.src)+'"'+(' alt="'+or(this.alt)+'"'),r="";for(var o of Object.keys(this.style))r+=VS(o)+":"+this.style[o]+";";return r&&(t+=' style="'+or(r)+'"'),t+="'/>",t}},Yne={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},br=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,486 bytes, line 517
5170,this.skew=i||0,this.width=a||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var c=Une(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=Yne[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=te(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Gi(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+=or(Gi(this.classes)),r+='"');var o="";this.italic>0&&(o+="margin-right:"+te(this.italic)+";");for(var n of Object.keys(this.style))o+=VS(n)+":"+this.style[n]+";";o&&(t=!0,r+=' style="'+or(o)+'"');var i=or(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}},Cn=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+'="'+or(this.attributes[r])+'"';t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</svg>",t}},Xn=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",cO[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+or(this.alternate)+'"/>':'<path d="'+or(cO[this.pathName])+'"/>'}},Wd=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+'="'+or(this.attributes[r])+'"';return t+="/>",t}};function Qne(e){if(e instanceof br)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function eoe(e){if(e instanceof qi)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var toe=e=>e instanceof qi||e instanceof Bl||e instanceof Zi,Kn
vendor: 57,629 bytes, line 517
517={"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 517
517Rg={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]},uO={\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 roe(e,t){Kn[e]=t}function GS(e,t,r){if(!Kn[t])throw new Error("Font metrics not found for font: "+t+".");var o=e.charCodeAt(0),n=Kn[t][o];if(!n&&e[0]in uO&&(o=uO[e[0]].charCodeAt(0),n=Kn[t][o]),!n&&r==="text"&&jO(o)&&(n=Kn[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var mS={};function noe(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!mS[t]){var r=mS[t]={cssEmPerMu:Rg.quad[t]/18};for(var o in Rg)Rg.hasOwnProperty(o)&&(r[o]=Rg[o][t])}return mS[t]}var ooe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ioe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},vt={math:{},text:{}};function f(e,t,r,o,n,i){vt[e][n]={font:t,group:r,replace:o},i&&o&&(vt[e][o]=vt[e][n])}var h="math",B="text",b="main",T="ams",yt="accent-token",de="bin",xr="close",Gl="inner",ye="mathord",Dt="op-token",Kr="open",Kd="punct",C="rel",Zo="spacing",E="textord";f(h,b,C,"\u2261","\\equiv",!0);f(h,b,C,"\u227A","\\prec",!0);f(h,b,C,"\u227B","\\succ",!0);f(h,b,C,"\u223C","\\sim",!0);f(h,b,C,"\u22A5","\\perp");f(h,b,C,"\u2AAF","\\preceq",!0);f(h,b,C,"\u2AB0","\\succeq",!0);f(h,b,C,"\u2243","\\simeq",!0);f(h,b,C,"\u2223","\\mid",!0);f(h,b,C,"\u226A","\\ll",!0);f(h,b,C,"\u226B","\\gg",!0);f(h,b,C,"\u224D","\\asymp",!0);f(h,b,C,"\u2225","\\parallel");f(h,b,C,"\u22C8","\\bowtie",!0);f(h,b,C,"\u2323","\\smile",!0);f(h,b,C,"\u2291","\\sqsubseteq",!0);f(h,b,C,"\u2292","\\sqsupseteq",!0);f(h,b,C,"\u2250","\\doteq",!0);f(h,b,C,"\u2322","\\frown",!0);f(h,b,C,"\u220B","\\ni",!0);f(h,b,C,"\u221D","\\propto",!0);f(h,b,C,"\u22A2","\\vdash",!0);f(h,b,C,"\u22A3","\\dashv",!0);f(h,b,C,"\u220B","\\owns");f(h,b,Kd,".","\\ldotp");f(h,b,Kd,"\u22C5","\\cdotp");f(h,b,Kd,"\u22C5","\xB7");f(B,b,E,"\u22C5","\xB7");f(h,b,E,"#","\\#");f(B,b,E,"#","\\#");f(h,b,E,"&","\\&");f(B,b,E,"&","\\&");f(h,b,E,"\u2135","\\aleph",!0);f(h,b,E,"\u2200","\\forall",!0);f(h,b,E,"\u210F","\\hbar",!0);f(h,b,E,"\u2203","\\exists",!0);f(h,b,E,"\u2207","\\nabla",!0);f(h,b,E,"\u266D","\\flat",!0);f(h,b,E,"\u2113","\\ell",!0);f(h,b,E,"\u266E","\\natural",!0);f(h,b,E,"\u2663","\\clubsuit",!0);f(h,b,E,"\u2118","\\wp",!0);f(h,b,E,"\u266F","\\sharp",!0);f(h,b,E,"\u2662","\\diamondsuit",!0);f(h,b,E,"\u211C","\\Re",!0);f(h,b,E,"\u2661","\\heartsuit",!0);f(h,b,E,"\u2111","\\Im",!0);f(h,b,E,"\u2660","\\spadesuit",!0);f(h,b,E,"\xA7","\\S",!0);f(B,b,E,"\xA7","\\S");f(h,b,E,"\xB6","\\P",!0);f(B,b,E,"\xB6","\\P");f(h,b,E,"\u2020","\\dag");f(B,b,E,"\u2020","\\dag");f(B,b,E,"\u2020","\\textdagger");f(h,b,E,"\u2021","\\ddag");f(B,b,E,"\u2021","\\ddag");f(B,b,E,"\u2021","\\textdaggerdbl");f(h,b,xr,"\u23B1","\\rmoustache",!0);f(h,b,Kr,"\u23B0","\\lmoustache",!0);f(h,b,xr,"\u27EF","\\rgroup",!0);f(h,b,Kr,"\u27EE","\\lgroup",!0);f(h,b,de,"\u2213","\\mp",!0);f(h,b,de,"\u2296","\\ominus",!0);f(h,b,de,"\u228E","\\uplus",!0);f(h,b,de,"\u2293","\\sqcap",!0);f(h,b,de,"\u2217","\\ast");f(h,b,de,"\u2294","\\sqcup",!0);f(h,b,de,"\u25EF","\\bigcirc",!0);f(h,b,de,"\u2219","\\bullet",!0);f(h,b,de,"\u2021","\\ddagger");f(h,b,de,"\u2240","\\wr",!0);f(h,b,de,"\u2A3F","\\amalg");f(h,b,de,"&","\\And");f(h,b,C,"\u27F5","\\longleftarrow",!0);f(h,b,C,"\u21D0","\\Leftarrow",!0);f(h,b,C,"\u27F8","\\Longleftarrow",!0);f(h,b,C,"\u27F6","\\longrightarrow",!0);f(h,b,C,"\u21D2","\\Rightarrow",!0);f(h,b,C,"\u27F9","\\Longrightarrow",!0);f(h,b,C,"\u2194","\\leftrightarrow",!0);f(h,b,C,"\u27F7","\\longleftrightarrow",!0);f(h,b,C,"\u21D4","\\Leftrightarrow",!0);f(h,b,C,"\u27FA","\\Longleftrightarrow",!0);f(h,b,C,"\u21A6","\\mapsto",!0);f(h,b,C,"\u27FC","\\longmapsto",!0);f(h,b,C,"\u2197","\\nearrow",!0);f(h,b,C,"\u21A9","\\hookleftarrow",!0);f(h,b,C,"\u21AA","\\hookrightarrow",!0);f(h,b,C,"\u2198","\\searrow",!0);f(h,b,C,"\u21BC","\\leftharpoonup",!0);f(h,b,C,"\u21C0","\\rightharpoonup",!0);f(h,b,C,"\u2199","\\swarrow",!0);f(h,b,C,"\u21BD","\\leftharpoondown",!0);f(h,b,C,"\u21C1","\\rightharpoondown",!0);f(h,b,C,"\u2196","\\nwarrow",!0);f(h,b,C,"\u21CC","\\rightleftharpoons",!0);f(h,T,C,"\u226E","\\nless",!0);f(h,T,C,"\uE010","\\@nleqslant");f(h,T,C,"\uE011","\\@nleqq");f(h,T,C,"\u2A87","\\lneq",!0);f(h,T,C,"\u2268","\\lneqq",!0);f(h,T,C,"\uE00C","\\@lvertneqq");f(h,T,C,"\u22E6","\\lnsim",!0);f(h,T,C,"\u2A89","\\lnapprox",!0);f(h,T,C,"\u2280","\\nprec",!0);f(h,T,C,"\u22E0","\\npreceq",!0);f(h,T,C,"\u22E8","\\precnsim",!0);f(h,T,C,"\u2AB9","\\precnapprox",!0);f(h,T,C,"\u2241","\\nsim",!0);f(h,T,C,"\uE006","\\@nshortmid");f(h,T,C,"\u2224","\\nmid",!0);f(h,T,C,"\u22AC","\\nvdash",!0);f(h,T,C,"\u22AD","\\nvDash",!0);f(h,T,C,"\u22EA","\\ntriangleleft");f(h,T,C,"\u22EC","\\ntrianglelefteq",!0);f(h,T,C,"\u228A","\\subsetneq",!0);f(h,T,C,"\uE01A","\\@varsubsetneq");f(h,T,C,"\u2ACB","\\subsetneqq",!0);f(h,T,C,"\uE017","\\@varsubsetneqq");f(h,T,C,"\u226F","\\ngtr",!0);f(h,T,C,"\uE00F","\\@ngeqslant");f(h,T,C,"\uE00E","\\@ngeqq");f(h,T,C,"\u2A88","\\gneq",!0);f(h,T,C,"\u2269","\\gneqq",!0);f(h,T,C,"\uE00D","\\@gvertneqq");f(h,T,C,"\u22E7","\\gnsim",!0);f(h,T,C,"\u2A8A","\\gnapprox",!0);f(h,T,C,"\u2281","\\nsucc",!0);f(h,T,C,"\u22E1","\\nsucceq",!0);f(h,T,C,"\u22E9","\\succnsim",!0);f(h,T,C,"\u2ABA","\\succnapprox",!0);f(h,T,C,"\u2246","\\ncong",!0);f(h,T,C,"\uE007","\\@nshortparallel");f(h,T,C,"\u2226","\\nparallel",!0);f(h,T,C,"\u22AF","\\nVDash",!0);f(h,T,C,"\u22EB","\\ntriangleright");f(h,T,C,"\u22ED","\\ntrianglerighteq",!0);f(h,T,C,"\uE018","\\@nsupseteqq");f(h,T,C,"\u228B","\\supsetneq",!0);f(h,T,C,"\uE01B","\\@varsupsetneq");f(h,T,C,"\u2ACC","\\supsetneqq",!0);f(h,T,C,"\uE019","\\@varsupsetneqq");f(h,T,C,"\u22AE","\\nVdash",!0);f(h,T,C,"\u2AB5","\\precneqq",!0);f(h,T,C,"\u2AB6","\\succneqq",!0);
517f(h,T,C,"\uE016","\\@nsubseteqq");f(h,T,de,"\u22B4","\\unlhd");f(h,T,de,"\u22B5","\\unrhd");f(h,T,C,"\u219A","\\nleftarrow",!0);f(h,T,C,"\u219B","\\nrightarrow",!0);f(h,T,C,"\u21CD","\\nLeftarrow",!0);f(h,T,C,"\u21CF","\\nRightarrow",!0);f(h,T,C,"\u21AE","\\nleftrightarrow",!0);f(h,T,C,"\u21CE","\\nLeftrightarrow",!0);f(h,T,C,"\u25B3","\\vartriangle");f(h,T,E,"\u210F","\\hslash");f(h,T,E,"\u25BD","\\triangledown");f(h,T,E,"\u25CA","\\lozenge");f(h,T,E,"\u24C8","\\circledS");f(h,T,E,"\xAE","\\circledR");f(B,T,E,"\xAE","\\circledR");f(h,T,E,"\u2221","\\measuredangle",!0);f(h,T,E,"\u2204","\\nexists");f(h,T,E,"\u2127","\\mho");f(h,T,E,"\u2132","\\Finv",!0);f(h,T,E,"\u2141","\\Game",!0);f(h,T,E,"\u2035","\\backprime");f(h,T,E,"\u25B2","\\blacktriangle");f(h,T,E,"\u25BC","\\blacktriangledown");f(h,T,E,"\u25A0","\\blacksquare");f(h,T,E,"\u29EB","\\blacklozenge");f(h,T,E,"\u2605","\\bigstar");f(h,T,E,"\u2222","\\sphericalangle",!0);f(h,T,E,"\u2201","\\complement",!0);f(h,T,E,"\xF0","\\eth",!0);f(B,b,E,"\xF0","\xF0");f(h,T,E,"\u2571","\\diagup");f(h,T,E,"\u2572","\\diagdown");f(h,T,E,"\u25A1","\\square");f(h,T,E,"\u25A1","\\Box");f(h,T,E,"\u25CA","\\Diamond");f(h,T,E,"\xA5","\\yen",!0);f(B,T,E,"\xA5","\\yen",!0);f(h,T,E,"\u2713","\\checkmark",!0);f(B,T,E,"\u2713","\\checkmark");f(h,T,E,"\u2136","\\beth",!0);f(h,T,E,"\u2138","\\daleth",!0);f(h,T,E,"\u2137","\\gimel",!0);f(h,T,E,"\u03DD","\\digamma",!0);f(h,T,E,"\u03F0","\\varkappa");f(h,T,Kr,"\u250C","\\@ulcorner",!0);f(h,T,xr,"\u2510","\\@urcorner",!0);f(h,T,Kr,"\u2514","\\@llcorner",!0);f(h,T,xr,"\u2518","\\@lrcorner",!0);f(h,T,C,"\u2266","\\leqq",!0);f(h,T,C,"\u2A7D","\\leqslant",!0);f(h,T,C,"\u2A95","\\eqslantless",!0);f(h,T,C,"\u2272","\\lesssim",!0);f(h,T,C,"\u2A85","\\lessapprox",!0);f(h,T,C,"\u224A","\\approxeq",!0);f(h,T,de,"\u22D6","\\lessdot");f(h,T,C,"\u22D8","\\lll",!0);f(h,T,C,"\u2276","\\lessgtr",!0);f(h,T,C,"\u22DA","\\lesseqgtr",!0);f(h,T,C,"\u2A8B","\\lesseqqgtr",!0);f(h,T,C,"\u2251","\\doteqdot");f(h,T,C,"\u2253","\\risingdotseq",!0);f(h,T,C,"\u2252","\\fallingdotseq",!0);f(h,T,C,"\u223D","\\backsim",!0);f(h,T,C,"\u22CD","\\backsimeq",!0);f(h,T,C,"\u2AC5","\\subseteqq",!0);f(h,T,C,"\u22D0","\\Subset",!0);f(h,T,C,"\u228F","\\sqsubset",!0);f(h,T,C,"\u227C","\\preccurlyeq",!0);f(h,T,C,"\u22DE","\\curlyeqprec",!0);f(h,T,C,"\u227E","\\precsim",!0);f(h,T,C,"\u2AB7","\\precapprox",!0);f(h,T,C,"\u22B2","\\vartriangleleft");f(h,T,C,"\u22B4","\\trianglelefteq");f(h,T,C,"\u22A8","\\vDash",!0);f(h,T,C,"\u22AA","\\Vvdash",!0);f(h,T,C,"\u2323","\\smallsmile");f(h,T,C,"\u2322","\\smallfrown");f(h,T,C,"\u224F","\\bumpeq",!0);f(h,T,C,"\u224E","\\Bumpeq",!0);f(h,T,C,"\u2267","\\geqq",!0);f(h,T,C,"\u2A7E","\\geqslant",!0);f(h,T,C,"\u2A96","\\eqslantgtr",!0);f(h,T,C,"\u2273","\\gtrsim",!0);f(h,T,C,"\u2A86","\\gtrapprox",!0);f(h,T,de,"\u22D7","\\gtrdot");f(h,T,C,"\u22D9","\\ggg",!0);f(h,T,C,"\u2277","\\gtrless",!0);f(h,T,C,"\u22DB","\\gtreqless",!0);f(h,T,C,"\u2A8C","\\gtreqqless",!0);f(h,T,C,"\u2256","\\eqcirc",!0);f(h,T,C,"\u2257","\\circeq",!0);f(h,T,C,"\u225C","\\triangleq",!0);f(h,T,C,"\u223C","\\thicksim");f(h,T,C,"\u2248","\\thickapprox");f(h,T,C,"\u2AC6","\\supseteqq",!0);f(h,T,C,"\u22D1","\\Supset",!0);f(h,T,C,"\u2290","\\sqsupset",!0);f(h,T,C,"\u227D","\\succcurlyeq",!0);f(h,T,C,"\u22DF","\\curlyeqsucc",!0);f(h,T,C,"\u227F","\\succsim",!0);f(h,T,C,"\u2AB8","\\succapprox",!0);f(h,T,C,"\u22B3","\\vartriangleright");f(h,T,C,"\u22B5","\\trianglerighteq");f(h,T,C,"\u22A9","\\Vdash",!0);f(h,T,C,"\u2223","\\shortmid");f(h,T,C,"\u2225","\\shortparallel");f(h,T,C,"\u226C","\\between",!0);f(h,T,C,"\u22D4","\\pitchfork",!0);f(h,T,C,"\u221D","\\varpropto");f(h,T,C,"\u25C0","\\blacktriangleleft");f(h,T,C,"\u2234","\\therefore",!0);f(h,T,C,"\u220D","\\backepsilon");f(h,T,C,"\u25B6","\\blacktriangleright");f(h,T,C,"\u2235","\\because",!0);f(h,T,C,"\u22D8","\\llless");f(h,T,C,"\u22D9","\\gggtr");f(h,T,de,"\u22B2","\\lhd");f(h,T,de,"\u22B3","\\rhd");f(h,T,C,"\u2242","\\eqsim",!0);f(h,b,C,"\u22C8","\\Join");f(h,T,C,"\u2251","\\Doteq",!0);f(h,T,de,"\u2214","\\dotplus",!0);f(h,T,de,"\u2216","\\smallsetminus");f(h,T,de,"\u22D2","\\Cap",!0);f(h,T,de,"\u22D3","\\Cup",!0);f(h,T,de,"\u2A5E","\\doublebarwedge",!0);f(h,T,de,"\u229F","\\boxminus",!0);f(h,T,de,"\u229E","\\boxplus",!0);
517f(h,T,de,"\u22C7","\\divideontimes",!0);f(h,T,de,"\u22C9","\\ltimes",!0);f(h,T,de,"\u22CA","\\rtimes",!0);f(h,T,de,"\u22CB","\\leftthreetimes",!0);f(h,T,de,"\u22CC","\\rightthreetimes",!0);f(h,T,de,"\u22CF","\\curlywedge",!0);f(h,T,de,"\u22CE","\\curlyvee",!0);f(h,T,de,"\u229D","\\circleddash",!0);f(h,T,de,"\u229B","\\circledast",!0);f(h,T,de,"\u22C5","\\centerdot");f(h,T,de,"\u22BA","\\intercal",!0);f(h,T,de,"\u22D2","\\doublecap");f(h,T,de,"\u22D3","\\doublecup");f(h,T,de,"\u22A0","\\boxtimes",!0);f(h,T,C,"\u21E2","\\dashrightarrow",!0);f(h,T,C,"\u21E0","\\dashleftarrow",!0);f(h,T,C,"\u21C7","\\leftleftarrows",!0);f(h,T,C,"\u21C6","\\leftrightarrows",!0);f(h,T,C,"\u21DA","\\Lleftarrow",!0);f(h,T,C,"\u219E","\\twoheadleftarrow",!0);f(h,T,C,"\u21A2","\\leftarrowtail",!0);f(h,T,C,"\u21AB","\\looparrowleft",!0);f(h,T,C,"\u21CB","\\leftrightharpoons",!0);f(h,T,C,"\u21B6","\\curvearrowleft",!0);f(h,T,C,"\u21BA","\\circlearrowleft",!0);f(h,T,C,"\u21B0","\\Lsh",!0);f(h,T,C,"\u21C8","\\upuparrows",!0);f(h,T,C,"\u21BF","\\upharpoonleft",!0);f(h,T,C,"\u21C3","\\downharpoonleft",!0);f(h,b,C,"\u22B6","\\origof",!0);f(h,b,C,"\u22B7","\\imageof",!0);f(h,T,C,"\u22B8","\\multimap",!0);f(h,T,C,"\u21AD","\\leftrightsquigarrow",!0);f(h,T,C,"\u21C9","\\rightrightarrows",!0);f(h,T,C,"\u21C4","\\rightleftarrows",!0);f(h,T,C,"\u21A0","\\twoheadrightarrow",!0);f(h,T,C,"\u21A3","\\rightarrowtail",!0);f(h,T,C,"\u21AC","\\looparrowright",!0);f(h,T,C,"\u21B7","\\curvearrowright",!0);f(h,T,C,"\u21BB","\\circlearrowright",!0);f(h,T,C,"\u21B1","\\Rsh",!0);f(h,T,C,"\u21CA","\\downdownarrows",!0);f(h,T,C,"\u21BE","\\upharpoonright",!0);f(h,T,C,"\u21C2","\\downharpoonright",!0);f(h,T,C,"\u21DD","\\rightsquigarrow",!0);f(h,T,C,"\u21DD","\\leadsto");f(h,T,C,"\u21DB","\\Rrightarrow",!0);f(h,T,C,"\u21BE","\\restriction");f(h,b,E,"\u2018","`");f(h,b,E,"$","\\$");f(B,b,E,"$","\\$");f(B,b,E,"$","\\textdollar");f(h,b,E,"%","\\%");f(B,b,E,"%","\\%");f(h,b,E,"_","\\_");f(B,b,E,"_","\\_");f(B,b,E,"_","\\textunderscore");f(h,b,E,"\u2220","\\angle",!0);f(h,b,E,"\u221E","\\infty",!0);f(h,b,E,"\u2032","\\prime");f(h,b,E,"\u25B3","\\triangle");f(h,b,E,"\u0393","\\Gamma",!0);f(h,b,E,"\u0394","\\Delta",!0);f(h,b,E,"\u0398","\\Theta",!0);f(h,b,E,"\u039B","\\Lambda",!0);f(h,b,E,"\u039E","\\Xi",!0);f(h,b,E,"\u03A0","\\Pi",!0);f(h,b,E,"\u03A3","\\Sigma",!0);f(h,b,E,"\u03A5","\\Upsilon",!0);f(h,b,E,"\u03A6","\\Phi",!0);f(h,b,E,"\u03A8","\\Psi",!0);f(h,b,E,"\u03A9","\\Omega",!0);f(h,b,E,"A","\u0391");f(h,b,E,"B","\u0392");f(h,b,E,"E","\u0395");f(h,b,E,"Z","\u0396");f(h,b,E,"H","\u0397");f(h,b,E,"I","\u0399");f(h,b,E,"K","\u039A");f(h,b,E,"M","\u039C");f(h,b,E,"N","\u039D");f(h,b,E,"O","\u039F");f(h,b,E,"P","\u03A1");f(h,b,E,"T","\u03A4");f(h,b,E,"X","\u03A7");f(h,b,E,"\xAC","\\neg",!0);f(h,b,E,"\xAC","\\lnot");f(h,b,E,"\u22A4","\\top");f(h,b,E,"\u22A5","\\bot");f(h,b,E,"\u2205","\\emptyset");f(h,T,E,"\u2205","\\varnothing");f(h,b,ye,"\u03B1","\\alpha",!0);f(h,b,ye,"\u03B2","\\beta",!0);f(h,b,ye,"\u03B3","\\gamma",!0);f(h,b,ye,"\u03B4","\\delta",!0);f(h,b,ye,"\u03F5","\\epsilon",!0);f(h,b,ye,"\u03B6","\\zeta",!0);f(h,b,ye,"\u03B7","\\eta",!0);f(h,b,ye,"\u03B8","\\theta",!0);f(h,b,ye,"\u03B9","\\iota",!0);f(h,b,ye,"\u03BA","\\kappa",!0);f(h,b,ye,"\u03BB","\\lambda",!0);f(h,b,ye,"\u03BC","\\mu",!0);f(h,b,ye,"\u03BD","\\nu",!0);f(h,b,ye,"\u03BE","\\xi",!0);f(h,b,ye,"\u03BF","\\omicron",!0);f(h,b,ye,"\u03C0","\\pi",!0);f(h,b,ye,"\u03C1","\\rho",!0);f(h,b,ye,"\u03C3","\\sigma",!0);f(h,b,ye,"\u03C4","\\tau",!0);f(h,b,ye,"\u03C5","\\upsilon",!0);f(h,b,ye,"\u03D5","\\phi",!0);f(h,b,ye,"\u03C7","\\chi",!0);f(h,b,ye,"\u03C8","\\psi",!0);f(h,b,ye,"\u03C9","\\omega",!0);f(h,b,ye,"\u03B5","\\varepsilon",!0);f(h,b,ye,"\u03D1","\\vartheta",!0);f(h,b,ye,"\u03D6","\\varpi",!0);f(h,b,ye,"\u03F1","\\varrho",!0);f(h,b,ye,"\u03C2","\\varsigma",!0);f(h,b,ye,"\u03C6","\\varphi",!0);f(h,b,de,"\u2217","*",!0);f(h,b,de,"+","+");f(h,b,de,"\u2212","-",!0);f(h,b,de,"\u22C5","\\cdot",!0);f(h,b,de,"\u2218","\\circ",!0);f(h,b,de,"\xF7","\\div",!0);f(h,b,de,"\xB1","\\pm",!0);f(h,b,de,"\xD7","\\times",!0);f(h,b,de,"\u2229","\\cap",!0);f(h,b,de,"\u222A","\\cup",!0);f(h,b,de,"\u2216","\\setminus",!0);f(h,b,de,"\u2227","\\land");f(h,b,de,"\u2228","\\lor");f(h,b,de,"\u2227","\\wedge",!0);f(h,b,de,"\u2228","\\vee",!0);f(h,b,E,"\u221A","\\surd");f(h,b,Kr,"\u27E8","\\langle",!0);f(h,b,Kr,"\u2223","\\lvert");f(h,b,Kr,"\u2225","\\lVert");f(h,b,xr,"?","?");f(h,b,xr,"!","!");f(h,b,xr,"\u27E9","\\rangle",!0);f(h,b,xr,"\u2223","\\rvert");f(h,b,xr,"\u2225","\\rVert");f(h,b,C,"=","=");f(h,b,C,":",":");f(h,b,C,"\u2248","\\approx",!0);f(h,b,C,"\u2245","\\cong",!0);f(h,b,C,"\u2265","\\ge");f(h,b,C,"\u2265","\\geq",!0);f(h,b,C,"\u2190","\\gets");f(h,b,C,">","\\gt",!0);f(h,b,C,"\u2208","\\in",!0);f(h,b,C,"\uE020","\\@not");f(h,b,C,"\u2282","\\subset",!0);f(h,b,C,"\u2283","\\supset",!0);f(h,b,C,"\u2286","\\subseteq",!0);f(h,b,C,"\u2287","\\supseteq",!0);f(h,T,C,"\u2288","\\nsubseteq",!0);f(h,T,C,"\u2289","\\nsupseteq",!0);f(h,b,C,"\u22A8","\\models");f(h,b,C,"\u2190","\\leftarrow",!0);f(h,b,C,"\u2264","\\le");f(h,b,C,"\u2264","\\leq",!0);f(h,b,C,"<","\\lt",!0);f(h,b,C,"\u2192","\\rightarrow",!0);f(h,b,C,"\u2192","\\to");f(h,T,C,"\u2271","\\ngeq",!0);f(h,T,C,"\u2270","\\nleq",!0);f(h,b,Zo,"\xA0","\\ ");f(h,b,Zo,"\xA0","\\space");f(h,b,Zo,"\xA0","\\nobreakspace");f(B,b,Zo,"\xA0","\\ ");f(B,b,Zo,"\xA0"," ");f(B,b,Zo,"\xA0","\\space");f(B,b,Zo,"\xA0","\\nobreakspace");f(h,b,Zo,null,"\\nobreak");f(h,b,Zo,null,"\\allowbreak");f(h,b,Kd,",",",");f(h,b,Kd,";",";");f(h,T,de,"\u22BC","\\barwedge",!0);f(h,T,de,"\u22BB","\\veebar",!0);f(h,b,de,"\u2299","\\odot",!0);f(h,b,de,"\u2295","\\oplus",!0);f(h,b,de,"\u2297","\\otimes",!0);f(h,b,E,"\u2202","\\partial",!0);f(h,b,de,"\u2298","\\oslash",!0);f(h,T,de,"\u229A","\\circledcirc",!0);f(h,T,de,"\u22A1","\\boxdot",!0);
vendor: 5,201 bytes, line 517
517f(h,b,de,"\u25B3","\\bigtriangleup");f(h,b,de,"\u25BD","\\bigtriangledown");f(h,b,de,"\u2020","\\dagger");f(h,b,de,"\u22C4","\\diamond");f(h,b,de,"\u22C6","\\star");f(h,b,de,"\u25C3","\\triangleleft");f(h,b,de,"\u25B9","\\triangleright");f(h,b,Kr,"{","\\{");f(B,b,E,"{","\\{");f(B,b,E,"{","\\textbraceleft");f(h,b,xr,"}","\\}");f(B,b,E,"}","\\}");f(B,b,E,"}","\\textbraceright");f(h,b,Kr,"{","\\lbrace");f(h,b,xr,"}","\\rbrace");f(h,b,Kr,"[","\\lbrack",!0);f(B,b,E,"[","\\lbrack",!0);f(h,b,xr,"]","\\rbrack",!0);f(B,b,E,"]","\\rbrack",!0);f(h,b,Kr,"(","\\lparen",!0);f(h,b,xr,")","\\rparen",!0);f(B,b,E,"<","\\textless",!0);f(B,b,E,">","\\textgreater",!0);f(h,b,Kr,"\u230A","\\lfloor",!0);f(h,b,xr,"\u230B","\\rfloor",!0);f(h,b,Kr,"\u2308","\\lceil",!0);f(h,b,xr,"\u2309","\\rceil",!0);f(h,b,E,"\\","\\backslash");f(h,b,E,"\u2223","|");f(h,b,E,"\u2223","\\vert");f(B,b,E,"|","\\textbar",!0);f(h,b,E,"\u2225","\\|");f(h,b,E,"\u2225","\\Vert");f(B,b,E,"\u2225","\\textbardbl");f(B,b,E,"~","\\textasciitilde");f(B,b,E,"\\","\\textbackslash");f(B,b,E,"^","\\textasciicircum");f(h,b,C,"\u2191","\\uparrow",!0);f(h,b,C,"\u21D1","\\Uparrow",!0);f(h,b,C,"\u2193","\\downarrow",!0);f(h,b,C,"\u21D3","\\Downarrow",!0);f(h,b,C,"\u2195","\\updownarrow",!0);f(h,b,C,"\u21D5","\\Updownarrow",!0);f(h,b,Dt,"\u2210","\\coprod");f(h,b,Dt,"\u22C1","\\bigvee");f(h,b,Dt,"\u22C0","\\bigwedge");f(h,b,Dt,"\u2A04","\\biguplus");f(h,b,Dt,"\u22C2","\\bigcap");f(h,b,Dt,"\u22C3","\\bigcup");f(h,b,Dt,"\u222B","\\int");f(h,b,Dt,"\u222B","\\intop");f(h,b,Dt,"\u222C","\\iint");f(h,b,Dt,"\u222D","\\iiint");f(h,b,Dt,"\u220F","\\prod");f(h,b,Dt,"\u2211","\\sum");f(h,b,Dt,"\u2A02","\\bigotimes");f(h,b,Dt,"\u2A01","\\bigoplus");f(h,b,Dt,"\u2A00","\\bigodot");f(h,b,Dt,"\u222E","\\oint");f(h,b,Dt,"\u222F","\\oiint");f(h,b,Dt,"\u2230","\\oiiint");f(h,b,Dt,"\u2A06","\\bigsqcup");f(h,b,Dt,"\u222B","\\smallint");f(B,b,Gl,"\u2026","\\textellipsis");f(h,b,Gl,"\u2026","\\mathellipsis");f(B,b,Gl,"\u2026","\\ldots",!0);f(h,b,Gl,"\u2026","\\ldots",!0);f(h,b,Gl,"\u22EF","\\@cdots",!0);f(h,b,Gl,"\u22F1","\\ddots",!0);f(h,b,E,"\u22EE","\\varvdots");f(B,b,E,"\u22EE","\\varvdots");f(h,b,yt,"\u02CA","\\acute");f(h,b,yt,"\u02CB","\\grave");f(h,b,yt,"\xA8","\\ddot");f(h,b,yt,"~","\\tilde");f(h,b,yt,"\u02C9","\\bar");f(h,b,yt,"\u02D8","\\breve");f(h,b,yt,"\u02C7","\\check");f(h,b,yt,"^","\\hat");f(h,b,yt,"\u20D7","\\vec");f(h,b,yt,"\u02D9","\\dot");f(h,b,yt,"\u02DA","\\mathring");f(h,b,ye,"\uE131","\\@imath");f(h,b,ye,"\uE237","\\@jmath");f(h,b,E,"\u0131","\u0131");f(h,b,E,"\u0237","\u0237");f(B,b,E,"\u0131","\\i",!0);f(B,b,E,"\u0237","\\j",!0);f(B,b,E,"\xDF","\\ss",!0);f(B,b,E,"\xE6","\\ae",!0);f(B,b,E,"\u0153","\\oe",!0);f(B,b,E,"\xF8","\\o",!0);f(B,b,E,"\xC6","\\AE",!0);f(B,b,E,"\u0152","\\OE",!0);f(B,b,E,"\xD8","\\O",!0);f(B,b,yt,"\u02CA","\\'");f(B,b,yt,"\u02CB","\\`");f(B,b,yt,"\u02C6","\\^");f(B,b,yt,"\u02DC","\\~");f(B,b,yt,"\u02C9","\\=");f(B,b,yt,"\u02D8","\\u");f(B,b,yt,"\u02D9","\\.");f(B,b,yt,"\xB8","\\c");f(B,b,yt,"\u02DA","\\r");f(B,b,yt,"\u02C7","\\v");f(B,b,yt,"\xA8",'\\"');f(B,b,yt,"\u02DD","\\H");f(B,b,yt,"\u25EF","\\textcircled");var VO={"--":!0,"---":!0,"``":!0,"''":!0};f(B,b,E,"\u2013","--",!0);f(B,b,E,"\u2013","\\textendash");f(B,b,E,"\u2014","---",!0);f(B,b,E,"\u2014","\\textemdash");f(B,b,E,"\u2018","`",!0);f(B,b,E,"\u2018","\\textquoteleft");f(B,b,E,"\u2019","'",!0);f(B,b,E,"\u2019","\\textquoteright");f(B,b,E,"\u201C","``",!0);f(B,b,E,"\u201C","\\textquotedblleft");f(B,b,E,"\u201D","''",!0);f(B,b,E,"\u201D","\\textquotedblright");f(h,b,E,"\xB0","\\degree",!0);f(B,b,E,"\xB0","\\degree");f(B,b,E,"\xB0","\\textdegree",!0);f(h,b,E,"\xA3","\\pounds");f(h,b,E,"\xA3","\\mathsterling",!0);f(B,b,E,"\xA3","\\pounds");f(B,b,E,"\xA3","\\textsterling",!0);f(h,T,E,"\u2720","\\maltese");f(B,T,E,"\u2720","\\maltese");var dO='0123456789/@."';for(Mg=0;Mg<dO.length;Mg++)fS=dO.charAt(Mg),f(h,b,E,fS,fS);var fS,Mg,pO='0123456789!@*()-=+";:?/.,';for(Dg=0;Dg<pO.length;Dg++)hS=pO.charAt(Dg),f(B,b,E,hS,hS);var hS,Dg,Wg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(Og=0;Og<Wg.length;Og++)Bd=Wg.charAt(Og),f(h,b,ye,Bd,Bd),f(B,b,E,Bd,Bd);var Bd,Og;f(h,T,E,"C","\u2102");f(B,T,E,"C","\u2102");f(h,T,E,"H","\u210D");f(B,T,E,"H","\u210D");f(h,T,E,"N","\u2115");f(B,T,E,"N","\u2115");f(h,T,E,"P","\u2119");f(B,T,E,"P","\u2119");f(h,T,E,"Q","\u211A");f(B,T,E,"Q","\u211A");f(h,T,E,"R","\u211D");f(B,T,E,"R","\u211D");f(h,T,E,"Z","\u2124");f(B,T,E,"Z","\u2124");f(h,b,ye,"h","\u210E");f(B,b,ye,"h","\u210E");var Se="";for(nr=0;nr<Wg.length;nr++)St=Wg.charAt(nr),Se=String.fromCharCode(55349,56320+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),Se=String.fromCharCode(55349,56372+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),Se=String.fromCharCode(55349,56424+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),Se=String.fromCharCode(55349,56580+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),Se=String.fromCharCode(55349,56684+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),Se=String.fromCharCode(55349,56736+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),Se=String.fromCharCode(55349,56788+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),Se=String.fromCharCode(55349,56840+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),Se=String.fromCharCode(55349,56944+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),nr<26&&
vendor: 45,322 bytes, lines 517-518
517(Se=String.fromCharCode(55349,56632+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se),Se=String.fromCharCode(55349,56476+nr),f(h,b,ye,St,Se),f(B,b,E,St,Se));var St,nr;Se="\u{1D55C}";f(h,b,ye,"k",Se);f(B,b,E,"k",Se);for(Bi=0;Bi<10;Bi++)Lo=Bi.toString(),Se=String.fromCharCode(55349,57294+Bi),f(h,b,ye,Lo,Se),f(B,b,E,Lo,Se),Se=String.fromCharCode(55349,57314+Bi),f(h,b,ye,Lo,Se),f(B,b,E,Lo,Se),Se=String.fromCharCode(55349,57324+Bi),f(h,b,ye,Lo,Se),f(B,b,E,Lo,Se),Se=String.fromCharCode(55349,57334+Bi),f(h,b,ye,Lo,Se),f(B,b,E,Lo,Se);var Lo,Bi,AS="\xD0\xDE\xFE";for(jg=0;jg<AS.length;jg++)Vd=AS.charAt(jg),f(h,b,ye,Vd,Vd),f(B,b,E,Vd,Vd);var Vd,jg,Ug=[["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"]],mO=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],aoe=(e,t)=>{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[Ug[a][2],Ug[a][i]]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return[mO[s][2],mO[s][i]]}else{if(n===120485||n===120486)return[Ug[0][2],Ug[0][i]];if(120486<n&&n<120782)return["",""];throw new Q("Unsupported character: "+e)}},rv=function(t,r,o){if(vt[o][t]){var n=vt[o][t].replace;n&&(t=n)}return{value:t,metrics:GS(t,r,o)}},vr=function(t,r,o,n,i){var a=rv(t,r,o),s=a.metrics;t=a.value;var l;if(s){var c=s.italic;(o==="text"||n&&n.font==="mathit")&&(c=0),l=new br(t,s.height,s.depth,c,s.skew,s.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+o+"'")),l=new br(t,0,0,0,0,0,i);if(n){l.maxFontSize=n.sizeMultiplier,n.style.isTight()&&l.classes.push("mtight");var u=n.getColor();u&&(l.style.color=u)}return l},qS=function(t,r,o,n){return n===void 0&&(n=[]),o.font==="boldsymbol"&&rv(t,"Main-Bold",r).metrics?vr(t,"Main-Bold",r,o,n.concat(["mathbf"])):t==="\\"||vt[r][t].font==="main"?vr(t,"Main-Regular",r,o,n):vr(t,"AMS-Regular",r,o,n.concat(["amsrm"]))},soe=function(t,r,o,n,i){return i!=="textord"&&rv(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},nv=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,c="",u="";if(i.charCodeAt(0)===55349&&([c,u]=aoe(i,n)),c.length>0)return vr(i,c,n,r,a.concat(u));if(l){var d,p;if(l==="boldsymbol"){var m=soe(i,n,r,a,o);d=m.fontName,p=[m.fontClass]}else s?(d=zS[l].fontName,p=[l]):(d=Lg(l,r.fontWeight,r.fontShape),p=[l,r.fontWeight,r.fontShape]);if(rv(i,d,n).metrics)return vr(i,d,n,r,a.concat(p));if(VO.hasOwnProperty(i)&&d.slice(0,10)==="Typewriter"){for(var g=[],x=0;x<i.length;x++)g.push(vr(i[x],d,n,r,a.concat(p)));return Go(g)}}if(o==="mathord")return vr(i,"Math-Italic",n,r,a.concat(["mathnormal"]));if(o==="textord"){var y=vt[n][i]&&vt[n][i].font;if(y==="ams"){var k=Lg("amsrm",r.fontWeight,r.fontShape);return vr(i,k,n,r,a.concat("amsrm",r.fontWeight,r.fontShape))}else if(y==="main"||!y){var _=Lg("textrm",r.fontWeight,r.fontShape);return vr(i,_,n,r,a.concat(r.fontWeight,r.fontShape))}else{var $=Lg(y,r.fontWeight,r.fontShape);return vr(i,$,n,r,a.concat($,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+o+" in makeOrd")},loe=(e,t)=>{if(Gi(e.classes)!==Gi(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},ZO=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],o=e[t+1];r instanceof br&&o instanceof br&&loe(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},HS=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},Z=function(t,r,o,n){var i=new qi(t,r,o,n);return HS(i),i},Hi=(e,t,r,o)=>new qi(e,t,r,o),Vl=function(t,r,o){var n=Z([t],[],r);return n.height=Math.max(o||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),n.style.borderBottomWidth=te(n.height),n.maxFontSize=1,n},coe=function(t,r,o,n){var i=new Bl(t,r,o,n);return HS(i),i},Go=function(t){var r=new Zi(t);return HS(r),r},Zl=function(t,r){return t instanceof Zi?Z([],[t],r):t},uoe=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 c;if(t.positionType==="top"){for(var u=t.positionData,d=0;d<t.children.length;d++){var p=t.children[d];u-=p.type==="kern"?p.size:p.elem.height+p.elem.depth}c=u}else if(t.positionType==="bottom")c=-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")c=-m.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")c=-m.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:c}},Je=function(t,r){for(var{children:o,depth:n}=uoe(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 c=Z(["pstrut"],[]);c.style.height=te(i);for(var u=[],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 y=x.elem,k=x.wrapperClasses||[],_=x.wrapperStyle||{},$=Z(k,[c,y],void 0,_);$.style.top=te(-i-m-y.depth),x.marginLeft&&($.style.marginLeft=x.marginLeft),x.marginRight&&($.style.marginRight=x.marginRight),u.push($),m+=y.height+y.depth}d=Math.min(d,m),p=Math.max(p,m)}var I=Z(["vlist"],u);I.style.height=te(p);var w;if(d<0){var P=Z([],[]),D=Z(["vlist"],[P]);D.style.height=te(-d);var j=Z(["vlist-s"],[new br("\u200B")]);w=[Z(["vlist-r"],[I,j]),Z(["vlist-r"],[D])]}else w=[Z(["vlist-r"],[I])];var M=Z(["vlist-t"],w);return w.length===2&&M.classes.push("vlist-t2"),M.height=p,M.depth=-d,M},GO=(e,t)=>{var r=Z(["mspace"],[],t),o=It(e,t);return r.style.marginRight=te(o),r},Lg=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},zS={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"}},qO={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},HO=function(t,r){var[o,n,i]=qO[t],a=new Xn(o),s=new Cn([a],{width:te(n),height:te(i),style:"width:"+te(n),viewBox:"0 0 "+1e3*n+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Hi(["overlay"],[s],r);return l.height=i,l.style.height=te(i),l.style.width=te(n),l},$t={number:3,unit:"mu"},Ba={number:4,unit:"mu"},Fo={number:5,unit:"mu"},doe={mord:{mop:$t,mbin:Ba,mrel:Fo,minner:$t},mop:{mord:$t,mop:$t,mrel:Fo,minner:$t},mbin:{mord:Ba,mop:Ba,mopen:Ba,minner:Ba},mrel:{mord:Fo,mop:Fo,mopen:Fo,minner:Fo},mopen:{},mclose:{mop:$t,mbin:Ba,mrel:Fo,minner:$t},mpunct:{mord:$t,mop:$t,mrel:Fo,mopen:$t,mclose:$t,mpunct:$t,minner:$t},minner:{mord:$t,mop:$t,mbin:Ba,mrel:Fo,mopen:$t,mpunct:$t,minner:$t}},poe={mord:{mop:$t},mop:{mord:$t,mop:$t},mbin:{},mrel:{},mopen:{},mclose:{mop:$t},mpunct:{},minner:{mop:$t}},WO={},Jg={},Kg={};function se(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)WO[r[l]]=s;t&&(i&&(Jg[t]=i),a&&(Kg[t]=a))}function Va(e){var{type:t,htmlBuilder:r,mathmlBuilder:o}=e;se({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:o})}var Xg=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Mt=function(t){return t.type==="ordgroup"?t.body:[t]},moe=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),foe=new Set(["rightmost","mrel","mclose","mpunct"]),hoe={display:Ce.DISPLAY,text:Ce.TEXT,script:Ce.SCRIPT,scriptscript:Ce.SCRIPTSCRIPT},goe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Vt=function(t,r,o,n){n===void 0&&(n=[null,null]);for(var i=[],a=0;a<t.length;a++){var s=Ke(t[a],r);if(s instanceof Zi){var l=s.children;i.push(...l)}else i.push(s)}if(ZO(i),!o)return i;var c=r;if(t.length===1){var u=t[0];u.type==="sizing"?c=r.havingSize(u.size):u.type==="styling"&&(c=r.havingStyle(hoe[u.style]))}var d=Z([n[0]||"leftmost"],[],r),p=Z([n[1]||"rightmost"],[],r),m=o==="root";return NS(i,(g,x)=>{var y=x.classes[0],k=g.classes[0];y==="mbin"&&foe.has(k)?x.classes[0]="mord":k==="mbin"&&moe.has(y)&&(g.classes[0]="mord")},{node:d},p,m),NS(i,(g,x)=>{var y,k,_=MS(x),$=MS(g),I=_&&$?g.hasClass("mtight")?(y=poe[_])==null?void 0:y[$]:(k=doe[_])==null?void 0:k[$]:null;if(I)return GO(I,c)},{node:d},p,m),i},NS=function(t,r,o,n,i){n&&t.push(n);for(var a=0;a<t.length;a++){var s=t[a],l=JO(s);if(l){NS(l.children,r,o,null,i);continue}var c=!s.hasClass("mspace");if(c){var u=r(s,o.node);u&&(o.insertAfter?o.insertAfter(u):(t.unshift(u),a++))}c?o.node=s:i&&s.hasClass("newline")&&(o.node=Z(["leftmost"])),o.insertAfter=(d=>p=>{t.splice(d+1,0,p),a++})(a)}n&&t.pop()},JO=function(t){return t instanceof Zi||t instanceof Bl||t instanceof qi&&t.hasClass("enclosing")?t:null},RS=function(t,r){var o=JO(t);if(o){var n=o.children;if(n.length){if(r==="right")return RS(n[n.length-1],"right");if(r==="left")return RS(n[0],"left")}}return t},MS=function(t,r){if(!t)return null;r&&(t=RS(t,r));var o=t.classes[0];return goe[o]||null},Jd=function(t,r){var o=["nulldelimiter"].concat(t.baseSizingClasses());return Z(r.concat(o))},Ke=function(t,r,o){if(!t)return Z();if(Jg[t.type]){var n=Jg[t.type](t,r);if(o&&r.size!==o.size){n=Z(r.sizingClasses(o),[n],r);var i=r.sizeMultiplier/o.sizeMultiplier;n.height*=i,n.depth*=i}return n}else throw new Q("Got group of unknown type: '"+t.type+"'")};function Fg(e,t){var r=Z(["base"],e,t),o=Z(["strut"]);return o.style.height=te(r.height+r.depth),r.depth&&(o.style.verticalAlign=te(-r.depth)),r.children.unshift(o),r}function DS(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var o=Vt(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(Fg(a,t)),a=[])}else o[s].hasClass("newline")&&(a.pop(),a.length>0&&(i.push(Fg(a,t)),a=[]),i.push(o[s]));a.length>0&&i.push(Fg(a,t));var c;r?(c=Fg(Vt(r,t,!0),t),c.classes=["tag"],i.push(c)):n&&i.push(n);var u=Z(["katex-html"],i);if(u.setAttribute("aria-hidden","true"),c){var d=c.children[0];d.style.height=te(u.height+u.depth),u.depth&&(d.style.verticalAlign=te(-u.depth))}return u}function KO(e){return new Zi(e)}var K=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=Gi(this.classes));for(var o=0;o<this.children.length;o++)if(this.children[o]instanceof Pt&&this.children[o+1]instanceof Pt){for(var n=this.children[o].toText()+this.children[++o].toText();this.children[o+1]instanceof Pt;)n+=this.children[++o].toText();t.appendChild(new Pt(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+=or(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+or(Gi(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("")}},Pt=class{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return or(this.toText())}toText(){return this.text}},Yg=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",te(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+te(this.width)+'"/>'}toText(){return this.character?this.character:" "}},voe=new Set(["\\imath","\\jmath"]),yoe=new Set(["mrow","mtable"]),mn=function(t,r,o){return vt[r][t]&&vt[r][t].replace&&t.charCodeAt(0)!==55349&&!(VO.hasOwnProperty(t)&&o&&(o.fontFamily&&o.fontFamily.slice(4,6)==="tt"||o.font&&o.font.slice(4,6)==="tt"))&&(t=vt[r][t].replace),new Pt(t)},WS=function(t){return t.length===1?t[0]:new K("mrow",t)},JS=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(voe.has(i))return null;if(vt[n][i]){var a=vt[n][i].replace;a&&(i=a)}var s=zS[o].fontName;return GS(i,s,n)?zS[o].variant:null};function gS(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Pt&&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 Pt&&r.text===","}else return!1}var Xr=function(t,r,o){if(t.length===1){var n=ct(t[0],r);return o&&n instanceof K&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var i=[],a,s=0;s<t.length;s++){var l=ct(t[s],r);if(l instanceof K&&a instanceof K){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(gS(l)&&a.type==="mn"){a.children.push(...l.children);continue}else if(l.type==="mn"&&gS(a))l.children=[...a.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(a.type==="mn"||gS(a))){var c=l.children[0];c instanceof K&&c.type==="mn"&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type==="mi"&&a.children.length===1){var u=a.children[0];if(u instanceof Pt&&u.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var d=l.children[0];d instanceof Pt&&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},Wi=function(t,r,o){return WS(Xr(t,r,o))},ct=function(t,r){if(!t)return new K("mrow");if(Kg[t.type]){var o=Kg[t.type](t,r);return o}else throw new Q("Got group of unknown type: '"+t.type+"'")};function fO(e,t,r,o,n){var i=Xr(e,r),a;i.length===1&&i[0]instanceof K&&yoe.has(i[0].type)?a=i[0]:a=new K("mrow",i);var s=new K("annotation",[new Pt(t)]);s.setAttribute("encoding","application/x-tex");var l=new K("semantics",[a,s]),c=new K("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),o&&c.setAttribute("display","block");var u=n?"katex":"katex-mathml";return Z([u],[c])}var boe=[[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]],hO=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],gO=function(t,r){return r.size<2?t:boe[t-1][r.size-1]},Qg=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=hO[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:gO(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:hO[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=gO(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=noe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Qg.BASESIZE=6;var XO=function(t){return new Qg({style:t.displayMode?Ce.DISPLAY:Ce.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},YO=function(t,r){if(r.displayMode){var o=["katex-display"];r.leqno&&o.push("leqno"),r.fleqn&&o.push("fleqn"),t=Z(o,[t])}return t},xoe=function(t,r,o){var n=XO(o),i;if(o.output==="mathml")return fO(t,r,n,o.displayMode,!0);if(o.output==="html"){var a=DS(t,n);i=Z(["katex"],[a])}else{var s=fO(t,r,n,o.displayMode,!1),l=DS(t,n);i=Z(["katex"],[s,l])}return YO(i,o)},woe=function(t,r,o){var n=XO(o),i=DS(t,n),a=Z(["katex"],[i]);return YO(a,o)},_oe={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":"="},ov=function(t){var r=new K("mo",[new Pt(_oe[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},koe={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]},Soe=new Set(["widehat","widecheck","widetilde","utilde"]),iv=function(t,r){function o(){var s=4e5,l=t.label.slice(1);if(Soe.has(l)){var c=t,u=c.base.type==="ordgroup"?c.base.body.length:1,d,p,m;if(u>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][u];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 Xn(p),y=new Cn([x],{width:"100%",height:te(m),viewBox:"0 0 "+s+" "+d,preserveAspectRatio:"none"});return{span:Hi([],[y],r),minWidth:0,height:m}}else{var k=[],_=koe[l],[$,I,w]=_,P=w/1e3,D=$.length,j,M;if(D===1){var U=_[3];j=["hide-tail"],M=[U]}else if(D===2)j=["halfarrow-left","halfarrow-right"],M=["xMinYMin","xMaxYMin"];else if(D===3)j=["brace-left","brace-center","brace-right"],M=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support 518 `+D+" children.");for(var V=0;V<D;V++){var F=new Xn($[V]),Ge=new Cn([F],{width:"400em",height:te(P),viewBox:"0 0 "+s+" "+w,preserveAspectRatio:M[V]+" slice"}),ve=Hi([j[V]],[Ge],r);if(D===1)return{span:ve,minWidth:I,height:P};ve.style.height=te(P),k.push(ve)}return{span:Z(["stretchy"],k,r),minWidth:I,height:P}}}var{span:n,minWidth:i,height:a}=o();return n.height=a,n.style.height=te(a),i>0&&(n.style.minWidth=te(i)),n},$oe=function(t,r,o,n,i){var a,s=t.height+t.depth+o+n;if(/fbox|color|angl/.test(r)){if(a=Z(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(a.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(r)&&c.push(new Wd({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&c.push(new Wd({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Cn(c,{width:"100%",height:te(s)});a=Hi([],[u],i)}return a.height=s,a.style.height=te(s),a};function Oe(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 av(e){var t=sv(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 sv(e){return e&&(e.type==="atom"||ioe.hasOwnProperty(e.type))?e:null}var QO=e=>{if(e instanceof br)return e;if(toe(e)&&e.children.length===1)return QO(e.children[0])},KS=(e,t)=>{var r,o,n;e&&e.type==="supsub"?(o=Oe(e.base,"accent"),r=o.base,e.base=r,n=eoe(Ke(e,t)),e.base=o):(o=Oe(e,"accent"),r=o.base);var i=Ke(r,t.havingCrampedStyle()),a=o.isShifty&&Vo(r),s=0;if(a){var l,c;s=(l=(c=QO(i))==null?void 0:c.skew)!=null?l:0}var u=o.label==="\\c",d=u?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),p;if(o.isStretchy)p=iv(o,t),p=Je({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+te(2*s)+")",marginLeft:te(2*s)}:void 0}]});else{var m,g;o.label==="\\vec"?(m=HO("vec",t),g=qO.vec[1]):(m=nv({type:"textord",mode:o.mode,text:o.label},t,"textord"),m=Qne(m),m.italic=0,g=m.width,u&&(d+=m.depth)),p=Z(["accent-body"],[m]);var x=o.label==="\\textcircled";x&&(p.classes.push("accent-full"),d=i.height);var y=s;x||(y-=g/2),p.style.left=te(y),o.label==="\\textcircled"&&(p.style.top=".2em"),p=Je({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-d},{type:"elem",elem:p}]})}var k=Z(["mord","accent"],[p],t);return n?(n.children[0]=k,n.height=Math.max(k.height,n.height),n.classes[0]="mord",n):k},ej=(e,t)=>{var r=e.isStretchy?ov(e.label):new K("mo",[mn(e.label,e.mode)]),o=new K("mover",[ct(e.base,t),r]);return o.setAttribute("accent","true"),o},Ioe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));se({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=Xg(t[0]),o=!Ioe.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:KS,mathmlBuilder:ej});se({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:KS,mathmlBuilder:ej});se({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=Ke(e.base,t),o=iv(e,t),n=e.label==="\\utilde"?.12:0,i=Je({positionType:"top",positionData:r.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]});return Z(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=ov(e.label),o=new K("munder",[ct(e.base,t),r]);return o.setAttribute("accentunder","true"),o}});var Bg=e=>{var t=new K("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};se({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=Zl(Ke(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=Zl(Ke(e.below,o,t),t),a.classes.push(i+"-arrow-pad"));var s=iv(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(c-=n.depth);var u;if(a){var d=-t.fontMetrics().axisHeight+a.height+.5*s.height+.111;u=Je({positionType:"individualShift",children:[{type:"elem",elem:n,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:a,shift:d}]})}else u=Je({positionType:"individualShift",children:[{type:"elem",elem:n,shift:c},{type:"elem",elem:s,shift:l}]});return u.children[0].children[0].children[1].classes.push("svg-align"),Z(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var r=ov(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var o;if(e.body){var n=Bg(ct(e.body,t));if(e.below){var i=Bg(ct(e.below,t));o=new K("munderover",[r,i,n])}else o=new K("mover",[r,n])}else if(e.below){var a=Bg(ct(e.below,t));o=new K("munder",[r,a])}else o=Bg(),o=new K("mover",[r,o]);return o}});function tj(e,t){var r=Vt(e.body,t,!0);return Z([e.mclass],r,t)}function rj(e,t){var r,o=Xr(e.body,t);return e.mclass==="minner"?r=new K("mpadded",o):e.mclass==="mord"?e.isCharacterBox?(r=o[0],r.type="mi"):r=new K("mi",o):(e.isCharacterBox?(r=o[0],r.type="mo"):r=new K("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}se({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:Mt(n),isCharacterBox:Vo(n)}},htmlBuilder:tj,mathmlBuilder:rj});var lv=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"};se({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:lv(t[0]),body:Mt(t[1]),isCharacterBox:Vo(t[1])}}});se({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=lv(n):a="mrel";var s={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:o!=="\\stackrel",body:Mt(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:Vo(l)}},htmlBuilder:tj,mathmlBuilder:rj});se({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:lv(t[0]),body:Mt(t[0])}},htmlBuilder(e,t){var r=Vt(e.body,t,!0),o=Z([e.mclass],r,t);return o.style.textShadow="0.02em 0.01em 0.04px",o},mathmlBuilder(e,t){var r=Xr(e.body,t),o=new K("mstyle",r);return o.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),o}});var Toe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},vO=()=>({type:"styling",body:[],mode:"math",style:"display"}),yO=e=>e.type==="textord"&&e.text==="@",Coe=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Poe(e,t,r){var o=Toe[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 c={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Eoe(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 Q("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var o=[],n=[o],i=0;i<t.length;i++){for(var a=t[i],s=vO(),l=0;l<a.length;l++)if(!yO(a[l]))s.body.push(a[l]);else{o.push(s),l+=1;var c=av(a[l]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(c))if("<>AV".includes(c))for(var d=0;d<2;d++){for(var p=!0,m=l+1;m<a.length;m++){if(Coe(a[m],c)){p=!1,l=m;break}if(yO(a[m]))throw new Q("Missing a "+c+" character to complete a CD arrow.",a[m]);u[d].body.push(a[m])}if(p)throw new Q("Missing a "+c+" character to complete a CD arrow.",a[l])}else throw new Q('Expected one of "<>AV=|." after @',a[l]);var g=Poe(c,u,e),x={type:"styling",body:[g],mode:"math",style:"display"};o.push(x),s=vO()}i%2===0?o.push(s):o.shift(),o=[],n.push(o)}e.gullet.endGroup(),e.gullet.endGroup();var y=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:y,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}se({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=Zl(Ke(e.label,r,t),t);return o.classes.push("cd-label-"+e.side),o.style.bottom=te(.8-o.depth),o.height=0,o.depth=0,o},mathmlBuilder(e,t){var r=new K("mrow",[ct(e.label,t)]);return r=new K("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new K("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});se({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=Zl(Ke(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new K("mrow",[ct(e.fragment,t)])}});se({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,o=Oe(t[0],"ordgroup"),n=o.body,i="",a=0;a<n.length;a++){var s=Oe(n[a],"textord");i+=s.text}var l=parseInt(i),c;if(isNaN(l))throw new Q("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new Q("\\@char with invalid code point "+i);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:c}}});var nj=(e,t)=>{var r=Vt(e.body,t.withColor(e.color),!1);return Go(r)},oj=(e,t)=>{var r=Xr(e.body,t.withColor(e.color)),o=new K("mstyle",r);return o.setAttribute("mathcolor",e.color),o};se({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,o=Oe(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:o,body:Mt(n)}},htmlBuilder:nj,mathmlBuilder:oj});se({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:o}=e,n=Oe(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:nj,mathmlBuilder:oj});se({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 LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:o.mode,newLine:i,size:n&&Oe(n,"size").value}},htmlBuilder(e,t){var r=Z(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=te(It(e.size,t)))),r},mathmlBuilder(e,t){var r=new K("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",te(It(e.size,t)))),r}});var OS={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},ij=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Q("Expected a control sequence",e);return t},Aoe=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},aj=(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)};se({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(OS[o.text])return(r==="\\global"||r==="\\\\globallong")&&(o.text=OS[o.text]),Oe(t.parseFunction(),"internal");throw new Q("Invalid token after macro prefix",o)}});se({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 Q("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 Q('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==i+1)throw new Q('Argument number "'+o.text+'" out of order');i++,s.push([])}else{if(o.text==="EOF")throw new Q("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===OS[r]),{type:"internal",mode:t.mode}}});se({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=ij(t.gullet.popToken());t.gullet.consumeSpaces();var n=Aoe(t);return aj(t,o,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});se({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=ij(t.gullet.popToken()),n=t.gullet.popToken(),i=t.gullet.popToken();return aj(t,o,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var Zd=function(t,r,o){var n=vt.math[t]&&vt.math[t].replace,i=GS(n||t,r,o);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},XS=function(t,r,o,n){var i=o.havingBaseStyle(r),a=Z(n.concat(i.sizingClasses(o)),[t],o),s=i.sizeMultiplier/o.sizeMultiplier;return a.height*=s,a.depth*=s,a.maxFontSize=i.sizeMultiplier,a},sj=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=te(i),t.height-=i,t.depth+=i},zoe=function(t,r,o,n,i,a){var s=vr(t,"Main-Regular",i,n),l=XS(s,r,n,a);return o&&sj(l,n,r),l},Noe=function(t,r,o,n){return vr(t,"Size"+r+"-Regular",o,n)},lj=function(t,r,o,n,i,a){var s=Noe(t,r,i,n),l=XS(Z(["delimsizing","size"+r],[s],n),Ce.TEXT,n,a);return o&&sj(l,n,Ce.TEXT),l},vS=function(t,r,o){var n;r==="Size1-Regular"?n="delim-size1":n="delim-size4";var i=Z(["delimsizinginner",n],[Z([],[vr(t,r,o)])]);return{type:"elem",elem:i}},yS=function(t,r,o){var n=Kn["Size4-Regular"][t.charCodeAt(0)]?Kn["Size4-Regular"][t.charCodeAt(0)][4]:Kn["Size1-Regular"][t.charCodeAt(0)][4],i=new Xn("inner",Wne(t,Math.round(1e3*r))),a=new Cn([i],{width:te(n),height:te(r),style:"width:"+te(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=Hi([],[a],o);return s.height=r,s.style.height=te(r),s.style.width=te(n),{type:"elem",elem:s}},jS=.008,Vg={type:"kern",size:-1*jS},Roe=new Set(["|","\\lvert","\\rvert","\\vert"]),Moe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),cj=function(t,r,o,n,i,a){var s,l,c,u,d="",p=0;s=c=u=t,l=null;var m="Size1-Regular";t==="\\uparrow"?c=u="\u23D0":t==="\\Uparrow"?c=u="\u2016":t==="\\downarrow"?s=c="\u23D0":t==="\\Downarrow"?s=c="\u2016":t==="\\updownarrow"?(s="\\uparrow",c="\u23D0",u="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",c="\u2016",u="\\Downarrow"):Roe.has(t)?(c="\u2223",d="vert",p=333):Moe.has(t)?(c="\u2225",d="doublevert",p=556):t==="["||t==="\\lbrack"?(s="\u23A1",c="\u23A2",u="\u23A3",m="Size4-Regular",d="lbrack",p=667):t==="]"||t==="\\rbrack"?(s="\u23A4",c="\u23A5",u="\u23A6",m="Size4-Regular",d="rbrack",p=667):t==="\\lfloor"||t==="\u230A"?(c=s="\u23A2",u="\u23A3",m="Size4-Regular",d="lfloor",p=667):t==="\\lceil"||t==="\u2308"?(s="\u23A1",c=u="\u23A2",m="Size4-Regular",d="lceil",p=667):t==="\\rfloor"||t==="\u230B"?(c=s="\u23A5",u="\u23A6",m="Size4-Regular",d="rfloor",p=667):t==="\\rceil"||t==="\u2309"?(s="\u23A4",c=u="\u23A5",m="Size4-Regular",d="rceil",p=667):t==="("||t==="\\lparen"?(s="\u239B",c="\u239C",u="\u239D",m="Size4-Regular",d="lparen",p=875):t===")"||t==="\\rparen"?(s="\u239E",c="\u239F",u="\u23A0",m="Size4-Regular",d="rparen",p=875):t==="\\{"||t==="\\lbrace"?(s="\u23A7",l="\u23A8",u="\u23A9",c="\u23AA",m="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="\u23AB",l="\u23AC",u="\u23AD",c="\u23AA",m="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(s="\u23A7",u="\u23A9",c="\u23AA",m="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(s="\u23AB",u="\u23AD",c="\u23AA",m="Size4-Regular"):t==="\\lmou
518stache"||t==="\u23B0"?(s="\u23A7",u="\u23AD",c="\u23AA",m="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(s="\u23AB",u="\u23A9",c="\u23AA",m="Size4-Regular");var g=Zd(s,m,i),x=g.height+g.depth,y=Zd(c,m,i),k=y.height+y.depth,_=Zd(u,m,i),$=_.height+_.depth,I=0,w=1;if(l!==null){var P=Zd(l,m,i);I=P.height+P.depth,w=2}var D=x+$+I,j=Math.max(0,Math.ceil((r-D)/(w*k))),M=D+j*w*k,U=n.fontMetrics().axisHeight;o&&(U*=n.sizeMultiplier);var V=M/2-U,F=[];if(d.length>0){var Ge=M-x-$,ve=Math.round(M*1e3),$e=Jne(d,Math.round(Ge*1e3)),qe=new Xn(d,$e),ar=te(p/1e3),He=te(ve/1e3),ut=new Cn([qe],{width:ar,height:He,viewBox:"0 0 "+p+" "+ve}),bt=Hi([],[ut],n);bt.height=ve/1e3,bt.style.width=ar,bt.style.height=He,F.push({type:"elem",elem:bt})}else{if(F.push(vS(u,m,i)),F.push(Vg),l===null){var L=M-x-$+2*jS;F.push(yS(c,L,n))}else{var re=(M-x-$-I)/2+2*jS;F.push(yS(c,re,n)),F.push(Vg),F.push(vS(l,m,i)),F.push(Vg),F.push(yS(c,re,n))}F.push(Vg),F.push(vS(s,m,i))}var fe=n.havingBaseStyle(Ce.TEXT),ge=Je({positionType:"bottom",positionData:V,children:F});return XS(Z(["delimsizing","mult"],[ge],fe),Ce.TEXT,n,a)},bS=80,xS=.08,wS=function(t,r,o,n,i){var a=Hne(t,n,o),s=new Xn(t,a),l=new Cn([s],{width:"400em",height:te(r),viewBox:"0 0 400000 "+o,preserveAspectRatio:"xMinYMin slice"});return Hi(["hide-tail"],[l],i)},Doe=function(t,r){var o=r.havingBaseSizing(),n=fj("\\surd",t*o.sizeMultiplier,mj,o),i=o.sizeMultiplier,a=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,l=0,c=0,u=0,d;return n.type==="small"?(u=1e3+1e3*a+bS,t<1?i=1:t<1.4&&(i=.7),l=(1+a+xS)/i,c=(1+a)/i,s=wS("sqrtMain",l,u,a,r),s.style.minWidth="0.853em",d=.833/i):n.type==="large"?(u=(1e3+bS)*Gd[n.size],c=(Gd[n.size]+a)/i,l=(Gd[n.size]+a+xS)/i,s=wS("sqrtSize"+n.size,l,u,a,r),s.style.minWidth="1.02em",d=1/i):(l=t+a+xS,c=t+a,u=Math.floor(1e3*t+a)+bS,s=wS("sqrtTall",l,u,a,r),s.style.minWidth="0.742em",d=1.056),s.height=c,s.style.height=te(l),{span:s,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+a)*i}},uj=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),Ooe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),dj=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Gd=[0,1.2,1.8,2.4,3],pj=function(t,r,o,n,i){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),uj.has(t)||dj.has(t))return lj(t,r,!1,o,n,i);if(Ooe.has(t))return cj(t,Gd[r],!1,o,n,i);throw new Q("Illegal delimiter: '"+t+"'")},joe=[{type:"small",style:Ce.SCRIPTSCRIPT},{type:"small",style:Ce.SCRIPT},{type:"small",style:Ce.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Uoe=[{type:"small",style:Ce.SCRIPTSCRIPT},{type:"small",style:Ce.SCRIPT},{type:"small",style:Ce.TEXT},{type:"stack"}],mj=[{type:"small",style:Ce.SCRIPTSCRIPT},{type:"small",style:Ce.SCRIPT},{type:"small",style:Ce.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Loe=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.")},fj=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=Zd(t,Loe(s),"math"),c=l.height+l.depth;if(s.type==="small"){var u=n.havingBaseStyle(s.style);c*=u.sizeMultiplier}if(c>r)return s}return o[o.length-1]},US=function(t,r,o,n,i,a){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var s;dj.has(t)?s=joe:uj.has(t)?s=mj:s=Uoe;var l=fj(t,r,s,n);return l.type==="small"?zoe(t,l.style,o,n,i,a):l.type==="large"?lj(t,l.size,o,n,i,a):cj(t,r,o,n,i,a)},_S=function(t,r,o,n,i,a){var s=n.fontMetrics().axisHeight*n.sizeMultiplier,l=901,c=5/n.fontMetrics().ptPerEm,u=Math.max(r-s,o+s),d=Math.max(u/500*l,2*u-c);return US(t,d,!0,n,i,a)},bO={"\\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}},Foe=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 cv(e,t){var r=sv(e);if(r&&Foe.has(r.text))return r;
vendor: 7,521 bytes, line 518
518throw r?new Q("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Q("Invalid delimiter type '"+e.type+"'",e)}se({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=cv(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:bO[e.funcName].size,mclass:bO[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Z([e.mclass]):pj(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(mn(e.delim,e.mode));var r=new K("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var o=te(Gd[e.size]);return r.setAttribute("minsize",o),r.setAttribute("maxsize",o),r}});function xO(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}se({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 Q("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:cv(t[0],e).text,color:r}}});se({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=cv(t[0],e),o=e.parser;++o.leftrightDepth;var n=o.parseExpression(!1);--o.leftrightDepth,o.expect("\\right",!1);var i=Oe(o.parseFunction(),"leftright-right");return{type:"leftright",mode:o.mode,body:n,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{xO(e);for(var r=Vt(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=Jd(t,["mopen"]):s=_S(e.left,o,n,t,e.mode,["mopen"]),r.unshift(s),i)for(var l=1;l<r.length;l++){var c=r[l],u=c.isMiddle;u&&(r[l]=_S(u.delim,o,n,u.options,e.mode,[]))}var d;if(e.right===".")d=Jd(t,["mclose"]);else{var p=e.rightColor?t.withColor(e.rightColor):t;d=_S(e.right,o,n,p,e.mode,["mclose"])}return r.push(d),Z(["minner"],r,t)},mathmlBuilder:(e,t)=>{xO(e);var r=Xr(e.body,t);if(e.left!=="."){var o=new K("mo",[mn(e.left,e.mode)]);o.setAttribute("fence","true"),r.unshift(o)}if(e.right!=="."){var n=new K("mo",[mn(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return WS(r)}});se({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=cv(t[0],e);if(!e.parser.leftrightDepth)throw new Q("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Jd(t,[]);else{r=pj(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==="|"?mn("|","text"):mn(e.delim,e.mode),o=new K("mo",[r]);return o.setAttribute("fence","true"),o.setAttribute("lspace","0.05em"),o.setAttribute("rspace","0.05em"),o}});var uv=(e,t)=>{var r=Zl(Ke(e.body,t),t),o=e.label.slice(1),n=t.sizeMultiplier,i,a=0,s=Vo(e.body);if(o==="sout")i=Z(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/n,a=-.5*t.fontMetrics().xHeight;else if(o==="phase"){var l=It({number:.6,unit:"pt"},t),c=It({number:.35,unit:"ex"},t),u=t.havingBaseSizing();n=n/u.sizeMultiplier;var d=r.height+r.depth+l+c;r.style.paddingLeft=te(d/2+l);var p=Math.floor(1e3*d*n),m=Gne(p),g=new Cn([new Xn("phase",m)],{width:"400em",height:te(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});i=Hi(["hide-tail"],[g],t),i.style.height=te(d),a=r.depth+l+c}else{/cancel/.test(o)?s||r.classes.push("cancel-pad"):o==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var x=0,y=0,k=0;/box/.test(o)?(k=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),x=t.fontMetrics().fboxsep+(o==="colorbox"?0:k),y=x):o==="angl"?(k=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),x=4*k,y=Math.max(0,.25-r.depth)):(x=s?.2:0,y=x),i=$oe(r,o,x,y,t),/fbox|boxed|fcolorbox/.test(o)?(i.style.borderStyle="solid",i.style.borderWidth=te(k)):o==="angl"&&k!==.049&&(i.style.borderTopWidth=te(k),i.style.borderRightWidth=te(k)),a=r.depth+y,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var _;if(e.backgroundColor)_=Je({positionType:"individualShift",children:[{type:"elem",elem:i,shift:a},{type:"elem",elem:r,shift:0}]});else{var $=/cancel|phase/.test(o)?["svg-align"]:[];_=Je({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:a,wrapperClasses:$}]})}return/cancel/.test(o)&&(_.height=r.height,_.depth=r.depth),/cancel/.test(o)&&!s?Z(["mord","cancel-lap"],[_],t):Z(["mord"],[_],t)},dv=(e,t)=>{var r=0,o=new K(e.label.includes("colorbox")?"mpadded":"menclose",[ct(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: "+te(n)+" solid "+e.borderColor)}break;case"\\xcancel":o.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&o.setAttribute("mathbackground",e.backgroundColor),o};se({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:o,funcName:n}=e,i=Oe(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:o.mode,label:n,backgroundColor:i,body:a}},htmlBuilder:uv,mathmlBuilder:dv});se({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:o,funcName:n}=e,i=Oe(t[0],"color-token").color,a=Oe(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:o.mode,label:n,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:uv,mathmlBuilder:dv});se({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]}}});se({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:uv,mathmlBuilder:dv});se({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:uv,mathmlBuilder:dv});se({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 hj={};function Yn(e){for(var{type:t,names:r,props:o,handler:n,htmlBuilder:i,mathmlBuilder:
vendor: 2,734 bytes, line 518
518a}=e,s={type:t,numArgs:o.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l<r.length;++l)hj[r[l]]=s;i&&(Jg[t]=i),a&&(Kg[t]=a)}var gj={};function S(e,t){gj[e]=t}var Rr=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}},Jr=class e{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new e(r,Rr.range(this,t))}};function wO(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 pv=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Q("{"+e.envName+"} can be used only in display mode.")},Boe=new Set(["gather","gather*"]);function YS(e){if(!e.includes("ed"))return!e.includes("*")}function Ji(e,t,r){var{hskipBeforeAndAfter:o,addJot:n,cols:i,arraystretch:a,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:p}=t;if(e.gullet.beginGroup(),c||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 Q("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var g=[],x=[g],y=[],k=[],_=l!=null?[]:void 0;function $(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function I(){_&&(e.gullet.macros.get("\\df@tag")?(_.push(e.subparse([new Jr("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):_.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for($(),k.push(wO(e));;){var w=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var P={type:"ordgroup",mode:e.mode,body:w};r&&(P={type:"styling",mode:e.mode,style:r,body:[P]}),g.push(P);var D=e.fetch().text;if(D==="&"){if(d&&g.length===d){if(c||s)throw new Q("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(D==="\\end"){I(),g.length===1&&P.type==="styling"&&P.body.length===1&&P.body[0].type==="ordgroup"&&P.body[0].body.length===0&&(x.length>1||!u)&&x.pop(),k.length<x.length+1&&k.push([]);break}else if(D==="\\\\"){e.consume();var j=void 0;e.gullet.future().text!==" "&&(j=e.parseSizeGroup(!0)),y.push(j?j.value:null),I(),k.push(wO(e)),g=[],x.push(g),$()}else throw new Q("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:y,hskipBeforeAndAfter:o,hLinesBeforeRow:k,colSeparationType:s,tags:_,leqno:p}}function QS(e){return e.slice(0,1)==="d"?"display":"text"}
vendor: 49,561 bytes, lines 518-522
518var Qn=function(t,r){var o,n,i=t.body.length,a=t.hLinesBeforeRow,s=0,l=new Array(i),c=[],u=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(Ce.SCRIPT).sizeMultiplier;p=.2778*(m/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?It({number:3,unit:"ex"},r):12*d,x=3*d,y=t.arraystretch*g,k=.7*y,_=.3*y,$=0;function I(dp){for(var pp=0;pp<dp.length;++pp)pp>0&&($+=.25),c.push({pos:$,isDashed:dp[pp]})}for(I(a[0]),o=0;o<t.body.length;++o){var w=t.body[o],P=k,D=_;s<w.length&&(s=w.length);var j=new Array(w.length);for(n=0;n<w.length;++n){var M=Ke(w[n],r);D<M.depth&&(D=M.depth),P<M.height&&(P=M.height),j[n]=M}var U=t.rowGaps[o],V=0;U&&(V=It(U,r),V>0&&(V+=_,D<V&&(D=V),V=0)),t.addJot&&o<t.body.length-1&&(D+=x),j.height=P,j.depth=D,$+=P,j.pos=$,$+=D+V,l[o]=j,I(a[o+1])}var F=$/2+r.fontMetrics().axisHeight,Ge=t.cols||[],ve=[],$e,qe,ar=[];if(t.tags&&t.tags.some(dp=>dp))for(o=0;o<i;++o){var He=l[o],ut=He.pos-F,bt=t.tags[o],L=void 0;bt===!0?L=Z(["eqn-num"],[],r):bt===!1?L=Z([],[],r):L=Z([],Vt(bt,r,!0),r),L.depth=He.depth,L.height=He.height,ar.push({type:"elem",elem:L,shift:ut})}for(n=0,qe=0;n<s||qe<Ge.length;++n,++qe){for(var re,fe=Ge[qe],ge=!0;((Le=fe)==null?void 0:Le.type)==="separator";){var Le;if(ge||($e=Z(["arraycolsep"],[]),$e.style.width=te(r.fontMetrics().doubleRuleSep),ve.push($e)),fe.separator==="|"||fe.separator===":"){var Ie=fe.separator==="|"?"solid":"dashed",we=Z(["vertical-separator"],[],r);we.style.height=te($),we.style.borderRightWidth=te(u),we.style.borderRightStyle=Ie,we.style.margin="0 "+te(-u/2);var Qe=$-F;Qe&&(we.style.verticalAlign=te(-Qe)),ve.push(we)}else throw new Q("Invalid separator type: "+fe.separator);qe++,fe=Ge[qe],ge=!1}if(!(n>=s)){var Gt=void 0;if(n>0||t.hskipBeforeAndAfter){var wr,Jo;Gt=(wr=(Jo=fe)==null?void 0:Jo.pregap)!=null?wr:p,Gt!==0&&($e=Z(["arraycolsep"],[]),$e.style.width=te(Gt),ve.push($e))}var lp=[];for(o=0;o<i;++o){var Xl=l[o],cp=Xl[n];if(cp){var yU=Xl.pos-F;cp.depth=Xl.depth,cp.height=Xl.height,lp.push({type:"elem",elem:cp,shift:yU})}}var bU=Je({positionType:"individualShift",children:lp}),xU=Z(["col-align-"+(((re=fe)==null?void 0:re.align)||"c")],[bU]);if(ve.push(xU),n<s-1||t.hskipBeforeAndAfter){var b5,x5;Gt=(b5=(x5=fe)==null?void 0:x5.postgap)!=null?b5:p,Gt!==0&&($e=Z(["arraycolsep"],[]),$e.style.width=te(Gt),ve.push($e))}}}var up=Z(["mtable"],ve);if(c.length>0){for(var wU=Vl("hline",r,u),_U=Vl("hdashline",r,u),_v=[{type:"elem",elem:up,shift:0}];c.length>0;){var w5=c.pop(),_5=w5.pos-F;w5.isDashed?_v.push({type:"elem",elem:_U,shift:_5}):_v.push({type:"elem",elem:wU,shift:_5})}up=Je({positionType:"individualShift",children:_v})}if(ar.length===0)return Z(["mord"],[up],r);var kU=Je({positionType:"individualShift",children:ar}),SU=Z(["tag"],[kU],r);return Go([up,SU])},Voe={c:"center ",l:"left ",r:"right "},eo=function(t,r){for(var o=[],n=new K("mtd",[],["mtr-glue"]),i=new K("mtd",[],["mml-eqn-num"]),a=0;a<t.body.length;a++){for(var s=t.body[a],l=[],c=0;c<s.length;c++)l.push(new K("mtd",[ct(s[c],r)]));t.tags&&t.tags[a]&&(l.unshift(n),l.push(n),t.leqno?l.unshift(i):l.push(i)),o.push(new K("mtr",l))}var u=new K("mtable",o),d=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);u.setAttribute("rowspacing",te(d));var p="",m="";if(t.cols&&t.cols.length>0){var g=t.cols,x="",y=!1,k=0,_=g.length;g[0].type==="separator"&&(p+="top ",k=1),g[g.length-1].type==="separator"&&(p+="bottom ",_-=1);for(var $=k;$<_;$++){var I=g[$];I.type==="align"?(m+=Voe[I.align],y&&(x+="none "),y=!0):I.type==="separator"&&y&&(x+=I.separator==="|"?"solid ":"dashed ",y=!1)}u.setAttribute("columnalign",m.trim()),/[sd]/.test(x)&&u.setAttribute("columnlines",x.trim())}if(t.colSeparationType==="align"){for(var w=t.cols||[],P="",D=1;D<w.length;D++)P+=D%2?"0em ":"1em ";u.setAttribute("columnspacing",P.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var j="",M=t.hLinesBeforeRow;p+=M[0].length>0?"left ":"",p+=M[M.length-1].length>0?"right ":"";for(var U=1;U<M.length-1;U++)j+=M[U].length===0?"none ":M[U][0]?"dashed ":"solid ";return/[sd]/.test(j)&&u.setAttribute("rowlines",j.trim()),p!==""&&(u=new K("menclose",[u]),u.setAttribute("notation",p.trim())),t.arraystretch&&t.arraystretch<1&&(u=new K("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},vj=function(t,r){t.envName.includes("ed")||pv(t);var o=[],n=t.envName.includes("at")?"alignat":"align",i=t.envName==="split",a=Ji(t.parser,{cols:o,addJot:!0,autoTag:i?void 0:YS(t.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,l=0,c={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var u="",d=0;d<r[0].body.length;d++){var p=Oe(r[0].body[d],"textord");u+=p.text}s=Number(u),l=s*2}var m=!l;a.body.forEach(function(k){for(var _=1;_<k.length;_+=2){var $=Oe(k[_],"styling"),I=Oe($.body[0],"ordgroup");I.body.unshift(c)}if(m)l<k.length&&(l=k.length);else{var w=k.length/2;if(s<w)throw new Q("Too many math in a row: "+("expected "+s+", but got "+w),k[0])}});for(var g=0;g<l;++g){var x="r",y=0;g%2===1?x="l":g>0&&m&&(y=1),o[g]={type:"align",align:x,pregap:y,postgap:0}}return a.colSeparationType=m?"align":"alignat",a};Yn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=sv(t[0]),o=r?[t[0]]:Oe(t[0],"ordgroup").body,n=o.map(function(a){var s=av(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 Q("Unknown column alignment: "+l,a)}),i={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Ji(e.parser,i,QS(e.envName))},htmlBuilder:Qn,mathmlBuilder:eo});Yn({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 Q("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),o.cols=[{type:"align",align:r}]}}var i=Ji(e.parser,o,QS(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:Qn,mathmlBuilder:eo});Yn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Ji(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Qn,mathmlBuilder:eo});Yn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=sv(t[0]),o=r?[t[0]]:Oe(t[0],"ordgroup").body,n=o.map(function(s){var l=av(s),c=l.text;if("lc".includes(c))return{type:"align",align:c};throw new Q("Unknown column alignment: "+c,s)});if(n.length>1)throw new Q("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},a=Ji(e.parser,i,"script");if(a.body.length>0&&a.body[0].length>1)throw new Q("{subarray} can contain only one column");return a},htmlBuilder:Qn,mathmlBuilder:eo});Yn({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=Ji(e.parser,t,QS(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Qn,mathmlBuilder:eo});Yn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:vj,htmlBuilder:Qn,mathmlBuilder:eo});Yn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Boe.has(e.envName)&&pv(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:YS(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ji(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:eo});Yn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:vj,htmlBuilder:Qn,mathmlBuilder:eo});Yn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){pv(e);var t={autoTag:YS(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ji(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:eo});Yn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return pv(e),Eoe(e.parser)},htmlBuilder:Qn,mathmlBuilder:eo});S("\\nonumber","\\gdef\\@eqnsw{0}");S("\\notag","\\nonumber");se({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Q(e.funcName+" valid only within array environment")}});var _O=hj;se({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 Q("Invalid environment name",n);for(var i="",a=0;a<n.body.length;++a)i+=Oe(n.body[a],"textord").text;if(o==="\\begin"){if(!_O.hasOwnProperty(i))throw new Q("No such environment: "+i,n);var s=_O[i],{args:l,optArgs:c}=r.parseArguments("\\begin{"+i+"}",s),u={mode:r.mode,envName:i,parser:r},d=s.handler(u,l,c);r.expect("\\end",!1);var p=r.nextToken,m=Oe(r.parseFunction(),"environment");if(m.name!==i)throw new Q("Mismatch: \\begin{"+i+"} matched by \\end{"+m.name+"}",p);return d}return{type:"environment",mode:r.mode,name:i,nameGroup:n}}});var yj=(e,t)=>{var r=e.font,o=t.withFont(r);return Ke(e.body,o)},bj=(e,t)=>{var r=e.font,o=t.withFont(r);return ct(e.body,o)},kO={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};se({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=Xg(t[0]),i=o;return i in kO&&(i=kO[i]),{type:"font",mode:r.mode,font:i.slice(1),body:n}},htmlBuilder:yj,mathmlBuilder:bj});se({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:lv(o),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:o}],isCharacterBox:Vo(o)}}});se({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:yj,mathmlBuilder:bj});var Zoe=(e,t)=>{var r=t.style,o=r.fracNum(),n=r.fracDen(),i;i=t.havingStyle(o);var a=Ke(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 c=Ke(e.denom,i,t),u,d,p;e.hasBarLine?(e.barSize?(d=It(e.barSize,t),u=Vl("frac-line",t,d)):u=Vl("frac-line",t),d=u.height,p=u.height):(u=null,d=0,p=t.fontMetrics().defaultRuleThickness);var m,g,x;r.size===Ce.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 y;if(u){var _=t.fontMetrics().axisHeight;m-a.depth-(_+.5*d)<g&&(m+=g-(m-a.depth-(_+.5*d))),_-.5*d-(c.height-x)<g&&(x+=g-(_-.5*d-(c.height-x)));var $=-(_-.5*d);y=Je({positionType:"individualShift",children:[{type:"elem",elem:c,shift:x},{type:"elem",elem:u,shift:$},{type:"elem",elem:a,shift:-m}]})}else{var k=m-a.depth-(c.height-x);k<g&&(m+=.5*(g-k),x+=.5*(g-k)),y=Je({positionType:"individualShift",children:[{type:"elem",elem:c,shift:x},{type:"elem",elem:a,shift:-m}]})}i=t.havingStyle(r),y.height*=i.sizeMultiplier/t.sizeMultiplier,y.depth*=i.sizeMultiplier/t.sizeMultiplier;var I;r.size===Ce.DISPLAY.size?I=t.fontMetrics().delim1:r.size===Ce.SCRIPTSCRIPT.size?I=t.havingStyle(Ce.SCRIPT).fontMetrics().delim2:I=t.fontMetrics().delim2;var w,P;return e.leftDelim==null?w=Jd(t,["mopen"]):w=US(e.leftDelim,I,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?P=Z([]):e.rightDelim==null?P=Jd(t,["mclose"]):P=US(e.rightDelim,I,!0,t.havingStyle(r),e.mode,["mclose"]),Z(["mord"].concat(i.sizingClasses(t)),[w,Z(["mfrac"],[y]),P],t)},Goe=(e,t)=>{var r=new K("mfrac",[ct(e.numer,t),ct(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var o=It(e.barSize,t);r.setAttribute("linethickness",te(o))}if(e.leftDelim!=null||e.rightDelim!=null){var n=[];if(e.leftDelim!=null){var i=new K("mo",[new Pt(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),n.push(i)}if(n.push(r),e.rightDelim!=null){var a=new K("mo",[new Pt(e.rightDelim.replace("\\",""))]);a.setAttribute("fence","true"),n.push(a)}return WS(n)}return r},xj=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};se({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 c=o==="\\cfrac",u=null;return c||o.startsWith("\\d")?u="display":o.startsWith("\\t")&&(u="text"),xj({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:c,hasBarLine:a,leftDelim:s,rightDelim:l,barSize:null},u)},htmlBuilder:Zoe,mathmlBuilder:Goe});se({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 SO=["display","text","script","scriptscript"],$O=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};se({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=Xg(t[0]),a=i.type==="atom"&&i.family==="open"?$O(i.text):null,s=Xg(t[1]),l=s.type==="atom"&&s.family==="close"?$O(s.text):null,c=Oe(t[2],"size"),u,d=null;c.isBlank?u=!0:(d=c.value,u=d.number>0);var p=null,m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var g=Oe(m.body[0],"textord");p=SO[Number(g.text)]}}else m=Oe(m,"textord"),p=SO[Number(m.text)];return xj({type:"genfrac",mode:r.mode,numer:o,denom:n,continued:!1,hasBarLine:u,barSize:d,leftDelim:a,rightDelim:l},p)}});se({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:Oe(t[0],"size").value,token:n}}});se({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0],i=Oe(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 wj=(e,t)=>{var r=t.style,o,n;e.type==="supsub"?(o=e.sup?Ke(e.sup,t.havingStyle(r.sup()),t):Ke(e.sub,t.havingStyle(r.sub()),t),n=Oe(e.base,"horizBrace")):n=Oe(e,"horizBrace");var i=Ke(n.base,t.havingBaseStyle(Ce.DISPLAY)),a=iv(n,t),s;if(n.isOver?(s=Je({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=Je({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=Z(["minner",n.isOver?"mover":"munder"],[s],t);n.isOver?s=Je({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:o}]}):s=Je({positionType:"bottom",positionData:l.depth+.2+o.height+o.depth,children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:l}]})}return Z(["minner",n.isOver?"mover":"munder"],[s],t)},qoe=(e,t)=>{var r=ov(e.label);return new K(e.isOver?"mover":"munder",[ct(e.base,t),r])};se({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:wj,mathmlBuilder:qoe});se({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[1],n=Oe(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:Mt(o)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Vt(e.body,t,!1);return coe(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Wi(e.body,t);return r instanceof K||(r=new K("mrow",[r])),r.setAttribute("href",e.href),r}});se({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=Oe(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:Mt(s)}}});se({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:Mt(t[0])}},htmlBuilder(e,t){var r=Vt(e.body,t,!1);return Go(r)},mathmlBuilder(e,t){return new K("mrow",Xr(e.body,t))}});se({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=Oe(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 c=i.split(","),u=0;u<c.length;u++){var d=c[u],p=d.indexOf("=");if(p<0)throw new Q("\\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:Mt(a)}:r.formatUnsupportedCmd(o)},htmlBuilder:(e,t)=>{var r=Vt(e.body,t,!1),o=["enclosing"];e.attributes.class&&o.push(...e.attributes.class.trim().split(/\s+/));var n=Z(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)=>Wi(e.body,t)});se({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:Mt(t[0]),mathml:Mt(t[1])}},htmlBuilder:(e,t)=>{var r=Vt(e.html,t,!1);return Go(r)},mathmlBuilder:(e,t)=>Wi(e.mathml,t)});var kS=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 Q("Invalid size: '"+t+"' in \\includegraphics");var o={number:+(r[1]+r[2]),unit:r[3]};if(!UO(o))throw new Q("Invalid unit: '"+o.unit+"' in \\includegraphics.");return o};se({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=Oe(r[0],"raw").string,c=l.split(","),u=0;u<c.length;u++){var d=c[u].split("=");if(d.length===2){var p=d[1].trim();switch(d[0].trim()){case"alt":s=p;break;case"width":n=kS(p);break;case"height":i=kS(p);break;case"totalheight":a=kS(p);break;default:throw new Q("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var m=Oe(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=It(e.height,t),o=0;e.totalheight.number>0&&(o=It(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=It(e.width,t));var i={height:te(r+o)};n>0&&(i.width=te(n)),o>0&&(i.verticalAlign=te(-o));var a=new ES(e.src,e.alt,i);return a.height=r,a.depth=o,a},mathmlBuilder:(e,t)=>{var r=new K("mglyph",[]);r.setAttribute("alt",e.alt);var o=It(e.height,t),n=0;if(e.totalheight.number>0&&(n=It(e.totalheight,t)-o,r.setAttribute("valign",te(-n))),r.setAttribute("height",te(o+n)),e.width.number>0){var i=It(e.width,t);r.setAttribute("width",te(i))}return r.setAttribute("src",e.src),r}});se({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=Oe(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 GO(e.dimension,t)},mathmlBuilder(e,t){var r=It(e.dimension,t);return new Yg(r)}});se({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=Z([],[Ke(e.body,t)]),r=Z(["inner"],[r],t)):r=Z(["inner"],[Ke(e.body,t)]);var o=Z(["fix"],[]),n=Z([e.alignment],[r,o],t),i=Z(["strut"]);return i.style.height=te(n.height+n.depth),n.depth&&(i.style.verticalAlign=te(-n.depth)),n.children.unshift(i),n=Z(["thinbox"],[n],t),Z(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new K("mpadded",[ct(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}});se({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}}});se({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Q("Mismatched "+e.funcName)}});var IO=(e,t)=>{switch(t.style.size){case Ce.DISPLAY.size:return e.display;case Ce.TEXT.size:return e.text;case Ce.SCRIPT.size:return e.script;case Ce.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};se({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Mt(t[0]),text:Mt(t[1]),script:Mt(t[2]),scriptscript:Mt(t[3])}},htmlBuilder:(e,t)=>{var r=IO(e,t),o=Vt(r,t,!1);return Go(o)},mathmlBuilder:(e,t)=>{var r=IO(e,t);return Wi(r,t)}});var _j=(e,t,r,o,n,i,a)=>{e=Z([],[e]);var s=r&&Vo(r),l,c;if(t){var u=Ke(t,o.havingStyle(n.sup()),o);c={elem:u,kern:Math.max(o.fontMetrics().bigOpSpacing1,o.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var d=Ke(r,o.havingStyle(n.sub()),o);l={elem:d,kern:Math.max(o.fontMetrics().bigOpSpacing2,o.fontMetrics().bigOpSpacing4-d.height)}}var p;if(c&&l){var m=o.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+a;p=Je({positionType:"bottom",positionData:m,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:te(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:te(i)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]})}else if(l){var g=e.height-a;p=Je({positionType:"top",positionData:g,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:te(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]})}else if(c){var x=e.depth+a;p=Je({positionType:"bottom",positionData:x,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:te(i)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]})}else return e;var y=[p];if(l&&i!==0&&!s){var k=Z(["mspace"],[],o);k.style.marginRight=te(i),y.unshift(k)}return Z(["mop","op-limits"],y,o)},kj=new Set(["\\smallint"]),ql=(e,t)=>{var r,o,n=!1,i;e.type==="supsub"?(r=e.sup,o=e.sub,i=Oe(e.base,"op"),n=!0):i=Oe(e,"op");var a=t.style,s=!1;a.size===Ce.DISPLAY.size&&i.symbol&&!kj.has(i.name)&&(s=!0);var l;if(i.symbol){var c=s?"Size2-Regular":"Size1-Regular",u="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(u=i.name.slice(1),i.name=u==="oiint"?"\\iint":"\\iiint"),l=vr(i.name,c,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),u.length>0){var d=l.italic,p=HO(u+"Size"+(s?"2":"1"),t);l=Je({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:s?.08:0}]}),i.name="\\"+u,l.classes.unshift("mop"),l.italic=d}}else if(i.body){var m=Vt(i.body,t,!0);m.length===1&&m[0]instanceof br?(l=m[0],l.classes[0]="mop"):l=Z(["mop"],m,t)}else{for(var g=[],x=1;x<i.name.length;x++)g.push(qS(i.name[x],i.mode,t));l=Z(["mop"],g,t)}var y=0,k=0;return(l instanceof br||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(y=(l.height-l.depth)/2-t.fontMetrics().axisHeight,k=l.italic||0),n?_j(l,r,o,t,a,k,y):(y&&(l.style.position="relative",l.style.top=te(y)),l)},Xd=(e,t)=>{var r;if(e.symbol)r=new K("mo",[mn(e.name,e.mode)]),kj.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new K("mo",Xr(e.body,t));else{r=new K("mi",[new Pt(e.name.slice(1))]);var o=new K("mo",[mn("\u2061","text")]);e.parentIsSupSub?r=new K("mrow",[r,o]):r=KO([r,o])}return r},Hoe={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};se({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=Hoe[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ql,mathmlBuilder:Xd});se({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:Mt(o)}},htmlBuilder:ql,mathmlBuilder:Xd});var Woe={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};se({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:ql,mathmlBuilder:Xd});se({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:ql,mathmlBuilder:Xd});se({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=Woe[o]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:ql,mathmlBuilder:Xd});var Sj=(e,t)=>{var r,o,n=!1,i;e.type==="supsub"?(r=e.sup,o=e.sub,i=Oe(e.base,"operatorname"),n=!0):i=Oe(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=Vt(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof br&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=Z(["mop"],l,t)}else a=Z(["mop"],[],t);return n?_j(a,r,o,t,t.style,0,0):a},Joe=(e,t)=>{for(var r=Xr(e.body,t.withFont("mathrm")),o=!0,n=0;n<r.length;n++){var i=r[n];if(!(i instanceof Yg))if(i instanceof K)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 Pt?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):o=!1;break}default:o=!1}else o=!1}if(o){var s=r.map(u=>u.toText()).join("");r=[new Pt(s)]}var l=new K("mi",r);l.setAttribute("mathvariant","normal");var c=new K("mo",[mn("\u2061","text")]);return e.parentIsSupSub?new K("mrow",[l,c]):KO([l,c])};se({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:Mt(n),alwaysHandleSupSub:o==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Sj,mathmlBuilder:Joe});S("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Va({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Go(Vt(e.body,t,!1)):Z(["mord"],Vt(e.body,t,!0),t)},mathmlBuilder(e,t){return Wi(e.body,t,!0)}});se({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=Ke(e.body,t.havingCrampedStyle()),o=Vl("overline-line",t),n=t.fontMetrics().defaultRuleThickness,i=Je({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:o},{type:"kern",size:n}]});return Z(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new K("mo",[new Pt("\u203E")]);r.setAttribute("stretchy","true");var o=new K("mover",[ct(e.body,t),r]);return o.setAttribute("accent","true"),o}});se({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:Mt(o)}},htmlBuilder:(e,t)=>{var r=Vt(e.body,t.withPhantom(),!1);return Go(r)},mathmlBuilder:(e,t)=>{var r=Xr(e.body,t);return new K("mphantom",r)}});S("\\hphantom","\\smash{\\phantom{#1}}");se({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=Z(["inner"],[Ke(e.body,t.withPhantom())]),o=Z(["fix"],[]);return Z(["mord","rlap"],[r,o],t)},mathmlBuilder:(e,t)=>{var r=Xr(Mt(e.body),t),o=new K("mphantom",r),n=new K("mpadded",[o]);return n.setAttribute("width","0px"),n}});se({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,o=Oe(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:o,body:n}},htmlBuilder(e,t){var r=Ke(e.body,t),o=It(e.dy,t);return Je({positionType:"shift",positionData:-o,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new K("mpadded",[ct(e.body,t)]),o=e.dy.number+e.dy.unit;return r.setAttribute("voffset",o),r}});se({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});se({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=Oe(t[0],"size"),a=Oe(t[1],"size");return{type:"rule",mode:o.mode,shift:n&&Oe(n,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var r=Z(["mord","rule"],[],t),o=It(e.width,t),n=It(e.height,t),i=e.shift?It(e.shift,t):0;return r.style.borderRightWidth=te(o),r.style.borderTopWidth=te(n),r.style.bottom=te(i),r.width=o,r.height=n+i,r.depth=-i,r.maxFontSize=n*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=It(e.width,t),o=It(e.height,t),n=e.shift?It(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new K("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",te(r)),a.setAttribute("height",te(o));var s=new K("mpadded",[a]);return n>=0?s.setAttribute("height",te(n)):(s.setAttribute("height",te(n)),s.setAttribute("depth",te(-n))),s.setAttribute("voffset",te(n)),s}});function $j(e,t,r){for(var o=Vt(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 Go(o)}var TO=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Koe=(e,t)=>{var r=t.havingSize(e.size);return $j(e.body,r,t)};se({type:"sizing",names:TO,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:TO.indexOf(o)+1,body:i}},htmlBuilder:Koe,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),o=Xr(e.body,r),n=new K("mstyle",o);return n.setAttribute("mathsize",te(r.sizeMultiplier)),n}});se({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]&&Oe(r[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l){var c=a.body[l];if(s=av(c).text,s==="t")n=!0;else if(s==="b")i=!0;else{n=!1,i=!1;break}}else n=!0,i=!0;var u=t[0];return{type:"smash",mode:o.mode,body:u,smashHeight:n,smashDepth:i}},htmlBuilder:(e,t)=>{var r=Z([],[Ke(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 Z(["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=Je({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Z(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var r=new K("mpadded",[ct(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});se({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=Ke(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Zl(r,t);var o=t.fontMetrics(),n=o.defaultRuleThickness,i=n;t.style.id<Ce.TEXT.id&&(i=t.fontMetrics().xHeight);var a=n+i/4,s=r.height+r.depth+a+n,{span:l,ruleWidth:c,advanceWidth:u}=Doe(s,t),d=l.height-c;d>r.height+r.depth+a&&(a=(a+d-r.height-r.depth)/2);var p=l.height-r.height-a-c;r.style.paddingLeft=te(u);var m=Je({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+p)},{type:"elem",elem:l},{type:"kern",size:c}]});if(e.index){var g=t.havingStyle(Ce.SCRIPTSCRIPT),x=Ke(e.index,g,t),y=.6*(m.height-m.depth),k=Je({positionType:"shift",positionData:-y,children:[{type:"elem",elem:x}]}),_=Z(["root"],[k]);return Z(["mord","sqrt"],[_,m],t)}else return Z(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:r,index:o}=e;return o?new K("mroot",[ct(r,t),ct(o,t)]):new K("msqrt",[ct(r,t)])}});var CO={display:Ce.DISPLAY,text:Ce.TEXT,script:Ce.SCRIPT,scriptscript:Ce.SCRIPTSCRIPT};se({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=CO[e.style],o=t.havingStyle(r).withFont("");return $j(e.body,o,t)},mathmlBuilder(e,t){var r=CO[e.style],o=t.havingStyle(r),n=Xr(e.body,o),i=new K("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 Xoe=function(t,r){var o=t.base;if(o)if(o.type==="op"){var n=o.limits&&(r.style.size===Ce.DISPLAY.size||o.alwaysHandleSupSub);return n?ql:null}else if(o.type==="operatorname"){var i=o.alwaysHandleSupSub&&(r.style.size===Ce.DISPLAY.size||o.limits);return i?Sj:null}else{if(o.type==="accent")return Vo(o.base)?KS:null;if(o.type==="horizBrace"){var a=!t.sub;return a===o.isOver?wj:null}else return null}else return null};Va({type:"supsub",htmlBuilder(e,t){var r=Xoe(e,t);if(r)return r(e,t);var{base:o,sup:n,sub:i}=e,a=Ke(o,t),s,l,c=t.fontMetrics(),u=0,d=0,p=o&&Vo(o);if(n){var m=t.havingStyle(t.style.sup());s=Ke(n,m,t),p||(u=a.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(i){var g=t.havingStyle(t.style.sub());l=Ke(i,g,t),p||(d=a.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var x;t.style===Ce.DISPLAY?x=c.sup1:t.style.cramped?x=c.sup3:x=c.sup2;var y=t.sizeMultiplier,k=te(.5/c.ptPerEm/y),_=null;if(l){var $=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(a instanceof br||$)&&(_=te(-a.italic))}var I;if(s&&l){u=Math.max(u,x,s.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var w=c.defaultRuleThickness,P=4*w;if(u-s.depth-(l.height-d)<P){d=P-(u-s.depth)+l.height;var D=.8*c.xHeight-(u-s.depth);D>0&&(u+=D,d-=D)}var j=[{type:"elem",elem:l,shift:d,marginRight:k,marginLeft:_},{type:"elem",elem:s,shift:-u,marginRight:k}];I=Je({positionType:"individualShift",children:j})}else if(l){d=Math.max(d,c.sub1,l.height-.8*c.xHeight);var M=[{type:"elem",elem:l,marginLeft:_,marginRight:k}];I=Je({positionType:"shift",positionData:d,children:M})}else if(s)u=Math.max(u,x,s.depth+.25*c.xHeight),I=Je({positionType:"shift",positionData:-u,children:[{type:"elem",elem:s,marginRight:k}]});else throw new Error("supsub must have either sup or sub.");var U=MS(a,"right")||"mord";return Z([U],[a,Z(["msupsub"],[I])],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=[ct(e.base,t)];e.sub&&i.push(ct(e.sub,t)),e.sup&&i.push(ct(e.sup,t));var a;if(r)a=o?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===Ce.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===Ce.DISPLAY||c.limits)?a="munderover":a="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ce.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ce.DISPLAY)?a="munder":a="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Ce.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Ce.DISPLAY)?a="mover":a="msup"}return new K(a,i)}});Va({type:"atom",htmlBuilder(e,t){return qS(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new K("mo",[mn(e.text,e.mode)]);if(e.family==="bin"){var o=JS(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 Ij={mi:"italic",mn:"normal",mtext:"normal"};Va({type:"mathord",htmlBuilder(e,t){return nv(e,t,"mathord")},mathmlBuilder(e,t){var r=new K("mi",[mn(e.text,e.mode,t)]),o=JS(e,t)||"italic";return o!==Ij[r.type]&&r.setAttribute("mathvariant",o),r}});Va({type:"textord",htmlBuilder(e,t){return nv(e,t,"textord")},mathmlBuilder(e,t){var r=mn(e.text,e.mode,t),o=JS(e,t)||"normal",n;return e.mode==="text"?n=new K("mtext",[r]):/[0-9]/.test(e.text)?n=new K("mn",[r]):e.text==="\\prime"?n=new K("mo",[r]):n=new K("mi",[r]),o!==Ij[n.type]&&n.setAttribute("mathvariant",o),n}});var SS={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},$S={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Va({type:"spacing",htmlBuilder(e,t){if($S.hasOwnProperty(e.text)){var r=$S[e.text].className||"";if(e.mode==="text"){var o=nv(e,t,"textord");return o.classes.push(r),o}else return Z(["mspace",r],[qS(e.text,e.mode,t)],t)}else{if(SS.hasOwnProperty(e.text))return Z(["mspace",SS[e.text]],[],t);throw new Q('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if($S.hasOwnProperty(e.text))r=new K("mtext",[new Pt("\xA0")]);else{if(SS.hasOwnProperty(e.text))return new K("mspace");throw new Q('Unknown type of space "'+e.text+'"')}return r}});var PO=()=>{var e=new K("mtd",[]);return e.setAttribute("width","50%"),e};Va({type:"tag",mathmlBuilder(e,t){var r=new K("mtable",[new K("mtr",[PO(),new K("mtd",[Wi(e.body,t)]),PO(),new K("mtd",[Wi(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var EO={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},AO={"\\textbf":"textbf","\\textmd":"textmd"},Yoe={"\\textit":"textit","\\textup":"textup"},zO=(e,t)=>{var r=e.font;if(r){if(EO[r])return t.withTextFontFamily(EO[r]);if(AO[r])return t.withTextFontWeight(AO[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Yoe[r])};se({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:Mt(n),font:o}},htmlBuilder(e,t){var r=zO(e,t),o=Vt(e.body,r,!0);return Z(["mord","text"],o,r)},mathmlBuilder(e,t){var r=zO(e,t);return Wi(e.body,r)}});se({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=Ke(e.body,t),o=Vl("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=Je({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:o},{type:"kern",size:3*n},{type:"elem",elem:r}]});return Z(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new K("mo",[new Pt("\u203E")]);r.setAttribute("stretchy","true");var o=new K("munder",[ct(e.body,t),r]);return o.setAttribute("accentunder","true"),o}});se({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=Ke(e.body,t),o=t.fontMetrics().axisHeight,n=.5*(r.height-o-(r.depth+o));return Je({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new K("mpadded",[ct(e.body,t)],["vcenter"])}});se({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Q("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=NO(e),o=[],n=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var a=r[i];a==="~"&&(a="\\textasciitilde"),o.push(vr(a,"Typewriter-Regular",e.mode,n,["mord","texttt"]))}return Z(["mord","text"].concat(n.sizingClasses(t)),ZO(o),n)},mathmlBuilder(e,t){var r=new Pt(NO(e)),o=new K("mtext",[r]);return o.setAttribute("mathvariant","monospace"),o}});var NO=e=>e.body.replace(/ /g,e.star?"\u2423":"\xA0"),Vi=WO,Tj=`[ \r 519 ]`,Qoe="\\\\[a-zA-Z@]+",eie="\\\\[^\uD800-\uDFFF]",tie="("+Qoe+")"+Tj+"*",rie=`\\\\( 520|[ \r ]+ 521?)[ \r ]*`,LS="[\u0300-\u036F]",nie=new RegExp(LS+"+$"),oie="("+Tj+"+)|"+(rie+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(LS+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(LS+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+tie)+("|"+eie+")"),ev=class{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(oie,"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 Jr("EOF",new Rr(this,r,r));var o=this.tokenRegex.exec(t);if(o===null||o.index!==r)throw new Q("Unexpected character: '"+t[r]+"'",new Jr(t[r],new Rr(this,r,r+1)));var n=o[6]||o[3]||(o[2]?"\\ ":" ");if(this.catcodes[n]===14){var i=t.indexOf(` 522`,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 Jr(n,new Rr(this,r,this.tokenRegex.lastIndex))}},FS=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 Q("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}},iie=gj;S("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});S("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});S("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});S("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});S("\\@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}});S("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");S("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var RO={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};S("\\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 Q("\\char` missing argument");o=t.text.charCodeAt(0)}else r=10;if(r){if(o=RO[t.text],o==null||o>=r)throw new Q("Invalid base-"+r+" digit "+t.text);for(var n;(n=RO[e.future().text])!=null&&n<r;)o*=r,o+=n,e.popToken()}return"\\@char{"+o+"}"});var e5=(e,t,r,o)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new Q("\\newcommand's first argument must be a macro name");var i=n[0].text,a=e.isDefined(i);if(a&&!t)throw new Q("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new Q("\\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="",c=e.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Q("Invalid number of arguments: "+l);s=parseInt(l),n=e.consumeArg().tokens}return a&&o||e.macros.set(i,{tokens:n,numArgs:s}),""};S("\\newcommand",e=>e5(e,!1,!0,!1));S("\\renewcommand",e=>e5(e,!0,!1,!1));S("\\providecommand",e=>e5(e,!0,!0,!0));S("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});S("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});S("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Vi[r],vt.math[r],vt.text[r]),""});S("\\bgroup","{");S("\\egroup","}");
522S("~","\\nobreakspace");S("\\lq","`");S("\\rq","'");S("\\aa","\\r a");S("\\AA","\\r A");S("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");S("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");S("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");S("\u212C","\\mathscr{B}");S("\u2130","\\mathscr{E}");S("\u2131","\\mathscr{F}");S("\u210B","\\mathscr{H}");S("\u2110","\\mathscr{I}");S("\u2112","\\mathscr{L}");S("\u2133","\\mathscr{M}");S("\u211B","\\mathscr{R}");S("\u212D","\\mathfrak{C}");S("\u210C","\\mathfrak{H}");S("\u2128","\\mathfrak{Z}");S("\\Bbbk","\\Bbb{k}");S("\\llap","\\mathllap{\\textrm{#1}}");S("\\rlap","\\mathrlap{\\textrm{#1}}");S("\\clap","\\mathclap{\\textrm{#1}}");S("\\mathstrut","\\vphantom{(}");S("\\underbar","\\underline{\\text{#1}}");S("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');S("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");S("\\ne","\\neq");S("\u2260","\\neq");S("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");
vendor: 5,432 bytes, line 522
522S("\u2209","\\notin");S("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");S("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");S("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");S("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");S("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");S("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");S("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");S("\u27C2","\\perp");S("\u203C","\\mathclose{!\\mkern-0.8mu!}");S("\u220C","\\notni");S("\u231C","\\ulcorner");S("\u231D","\\urcorner");S("\u231E","\\llcorner");S("\u231F","\\lrcorner");S("\xA9","\\copyright");S("\xAE","\\textregistered");S("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');S("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');S("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');S("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');S("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");S("\u22EE","\\vdots");S("\\varGamma","\\mathit{\\Gamma}");S("\\varDelta","\\mathit{\\Delta}");S("\\varTheta","\\mathit{\\Theta}");S("\\varLambda","\\mathit{\\Lambda}");S("\\varXi","\\mathit{\\Xi}");S("\\varPi","\\mathit{\\Pi}");S("\\varSigma","\\mathit{\\Sigma}");S("\\varUpsilon","\\mathit{\\Upsilon}");S("\\varPhi","\\mathit{\\Phi}");S("\\varPsi","\\mathit{\\Psi}");S("\\varOmega","\\mathit{\\Omega}");S("\\substack","\\begin{subarray}{c}#1\\end{subarray}");S("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");S("\\boxed","\\fbox{$\\displaystyle{#1}$}");S("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");S("\\implies","\\DOTSB\\;\\Longrightarrow\\;");S("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");S("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");S("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var MO={",":"\\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"},aie=new Set(["bin","rel"]);S("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in MO?t=MO[r]:(r.slice(0,4)==="\\not"||r in vt.math&&aie.has(vt.math[r].group))&&(t="\\dotsb"),t});var t5={")":!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};S("\\dotso",function(e){var t=e.future().text;return t in t5?"\\ldots\\,":"\\ldots"});S("\\dotsc",function(e){var t=e.future().text;return t in t5&&t!==","?"\\ldots\\,":"\\ldots"});S("\\cdots",function(e){var t=e.future().text;return t in t5?"\\@cdots\\,":"\\@cdots"});S("\\dotsb","\\cdots");S("\\dotsm","\\cdots");S("\\dotsi","\\!\\cdots");S("\\dotsx","\\ldots\\,");S("\\DOTSI","\\relax");S("\\DOTSB","\\relax");S("\\DOTSX","\\relax");S("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");S("\\,","\\tmspace+{3mu}{.1667em}");S("\\thinspace","\\,");S("\\>","\\mskip{4mu}");S("\\:","\\tmspace+{4mu}{.2222em}");S("\\medspace","\\:");S("\\;","\\tmspace+{5mu}{.2777em}");S("\\thickspace","\\;");S("\\!","\\tmspace-{3mu}{.1667em}");S("\\negthinspace","\\!");S("\\negmedspace","\\tmspace-{4mu}{.2222em}");S("\\negthickspace","\\tmspace-{5mu}{.277em}");S("\\enspace","\\kern.5em ");S("\\enskip","\\hskip.5em\\relax");S("\\quad","\\hskip1em\\relax");S("\\qquad","\\hskip2em\\relax");S("\\tag","\\@ifstar\\tag@literal\\tag@paren");S("\\tag@paren","\\tag@literal{({#1})}");S("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Q("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});S("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");S("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");S("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");S("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");S("\\newline","\\\\\\relax");S("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Cj=te(Kn["Main-Regular"][84][1]-.7*Kn["Main-Regular"][65][1]);S("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Cj+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");
522S("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Cj+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");S("\\hspace","\\@ifstar\\@hspacer\\@hspace");S("\\@hspace","\\hskip #1\\relax");S("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");S("\\ordinarycolon",":");S("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");S("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');S("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');S("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');S("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');S("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');S("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');S("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');S("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');S("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');S("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');S("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');S("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');S("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');S("\u2237","\\dblcolon");S("\u2239","\\eqcolon");S("\u2254","\\coloneqq");S("\u2255","\\eqqcolon");S("\u2A74","\\Coloneqq");S("\\ratio","\\vcentcolon");S("\\coloncolon","\\dblcolon");S("\\colonequals","\\coloneqq");S("\\coloncolonequals","\\Coloneqq");S("\\equalscolon","\\eqqcolon");S("\\equalscoloncolon","\\Eqqcolon");S("\\colonminus","\\coloneq");S("\\coloncolonminus","\\Coloneq");S("\\minuscolon","\\eqcolon");S("\\minuscoloncolon","\\Eqcolon");S("\\coloncolonapprox","\\Colonapprox");S("\\coloncolonsim","\\Colonsim");S("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");S("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");S("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");S("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");S("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");S("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");S("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");S("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");S("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");S("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");S("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");S("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");S("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");S("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");S("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");S("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");S("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");S("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");S("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");S("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");S("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");S("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");S("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");S("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");S("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");S("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");S("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");S("\\imath","\\html@mathml{\\@imath}{\u0131}");S("\\jmath","\\html@mathml{\\@jmath}{\u0237}");S("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}
522{\\mathopen{\\char`\u27E6}}");S("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");S("\u27E6","\\llbracket");S("\u27E7","\\rrbracket");S("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");S("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");S("\u2983","\\lBrace");S("\u2984","\\rBrace");S("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");S("\u29B5","\\minuso");S("\\darr","\\downarrow");S("\\dArr","\\Downarrow");S("\\Darr","\\Downarrow");S("\\lang","\\langle");S("\\rang","\\rangle");S("\\uarr","\\uparrow");S("\\uArr","\\Uparrow");S("\\Uarr","\\Uparrow");S("\\N","\\mathbb{N}");S("\\R","\\mathbb{R}");S("\\Z","\\mathbb{Z}");S("\\alef","\\aleph");S("\\alefsym","\\aleph");S("\\Alpha","\\mathrm{A}");S("\\Beta","\\mathrm{B}");S("\\bull","\\bullet");S("\\Chi","\\mathrm{X}");S("\\clubs","\\clubsuit");S("\\cnums","\\mathbb{C}");S("\\Complex","\\mathbb{C}");S("\\Dagger","\\ddagger");S("\\diamonds","\\diamondsuit");S("\\empty","\\emptyset");S("\\Epsilon","\\mathrm{E}");S("\\Eta","\\mathrm{H}");S("\\exist","\\exists");S("\\harr","\\leftrightarrow");S("\\hArr","\\Leftrightarrow");S("\\Harr","\\Leftrightarrow");S("\\hearts","\\heartsuit");S("\\image","\\Im");S("\\infin","\\infty");S("\\Iota","\\mathrm{I}");S("\\isin","\\in");S("\\Kappa","\\mathrm{K}");S("\\larr","\\leftarrow");S("\\lArr","\\Leftarrow");S("\\Larr","\\Leftarrow");S("\\lrarr","\\leftrightarrow");S("\\lrArr","\\Leftrightarrow");S("\\Lrarr","\\Leftrightarrow");S("\\Mu","\\mathrm{M}");S("\\natnums","\\mathbb{N}");S("\\Nu","\\mathrm{N}");S("\\Omicron","\\mathrm{O}");S("\\plusmn","\\pm");S("\\rarr","\\rightarrow");S("\\rArr","\\Rightarrow");S("\\Rarr","\\Rightarrow");S("\\real","\\Re");S("\\reals","\\mathbb{R}");S("\\Reals","\\mathbb{R}");S("\\Rho","\\mathrm{P}");S("\\sdot","\\cdot");S("\\sect","\\S");S("\\spades","\\spadesuit");S("\\sub","\\subset");S("\\sube","\\subseteq");S("\\supe","\\supseteq");S("\\Tau","\\mathrm{T}");S("\\thetasym","\\vartheta");S("\\weierp","\\wp");S("\\Zeta","\\mathrm{Z}");S("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");S("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");S("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");S("\\bra","\\mathinner{\\langle{#1}|}");S("\\ket","\\mathinner{|{#1}\\rangle}");S("\\braket","\\mathinner{\\langle{#1}\\rangle}");S("\\Bra","\\left\\langle#1\\right|");S("\\Ket","\\left|#1\\right\\rangle");var Pj=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 c=t.consumeArg().tokens,u=t.expandTokens([...i,...c,...r]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};S("\\bra@ket",Pj(!1));S("\\bra@set",Pj(!0));S("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");S("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");S("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");S("\\angln","{\\angl n}");S("\\blue","\\textcolor{##6495ed}{#1}");S("\\orange","\\textcolor{##ffa500}{#1}");S("\\pink","\\textcolor{##ff00af}{#1}");S("\\red","\\textcolor{##df0030}{#1}");S("\\green","\\textcolor{##28ae7b}{#1}");S("\\gray","\\textcolor{gray}{#1}");S("\\purple","\\textcolor{##9d38bd}{#1}");S("\\blueA","\\textcolor{##ccfaff}{#1}");S("\\blueB","\\textcolor{##80f6ff}{#1}");S("\\blueC","\\textcolor{##63d9ea}{#1}");S("\\blueD","\\textcolor{##11accd}{#1}");S("\\blueE","\\textcolor{##0c7f99}{#1}");S("\\tealA","\\textcolor{##94fff5}{#1}");S("\\tealB","\\textcolor{##26edd5}{#1}");S("\\tealC","\\textcolor{##01d1c1}{#1}");S("\\tealD","\\textcolor{##01a995}{#1}");S("\\tealE","\\textcolor{##208170}{#1}");S("\\greenA","\\textcolor{##b6ffb0}{#1}");
vendor: 13,082 bytes, line 522
522S("\\greenB","\\textcolor{##8af281}{#1}");S("\\greenC","\\textcolor{##74cf70}{#1}");S("\\greenD","\\textcolor{##1fab54}{#1}");S("\\greenE","\\textcolor{##0d923f}{#1}");S("\\goldA","\\textcolor{##ffd0a9}{#1}");S("\\goldB","\\textcolor{##ffbb71}{#1}");S("\\goldC","\\textcolor{##ff9c39}{#1}");S("\\goldD","\\textcolor{##e07d10}{#1}");S("\\goldE","\\textcolor{##a75a05}{#1}");S("\\redA","\\textcolor{##fca9a9}{#1}");S("\\redB","\\textcolor{##ff8482}{#1}");S("\\redC","\\textcolor{##f9685d}{#1}");S("\\redD","\\textcolor{##e84d39}{#1}");S("\\redE","\\textcolor{##bc2612}{#1}");S("\\maroonA","\\textcolor{##ffbde0}{#1}");S("\\maroonB","\\textcolor{##ff92c6}{#1}");S("\\maroonC","\\textcolor{##ed5fa6}{#1}");S("\\maroonD","\\textcolor{##ca337c}{#1}");S("\\maroonE","\\textcolor{##9e034e}{#1}");S("\\purpleA","\\textcolor{##ddd7ff}{#1}");S("\\purpleB","\\textcolor{##c6b9fc}{#1}");S("\\purpleC","\\textcolor{##aa87ff}{#1}");S("\\purpleD","\\textcolor{##7854ab}{#1}");S("\\purpleE","\\textcolor{##543b78}{#1}");S("\\mintA","\\textcolor{##f5f9e8}{#1}");S("\\mintB","\\textcolor{##edf2df}{#1}");S("\\mintC","\\textcolor{##e0e5cc}{#1}");S("\\grayA","\\textcolor{##f6f7f7}{#1}");S("\\grayB","\\textcolor{##f0f1f2}{#1}");S("\\grayC","\\textcolor{##e3e5e6}{#1}");S("\\grayD","\\textcolor{##d6d8da}{#1}");S("\\grayE","\\textcolor{##babec2}{#1}");S("\\grayF","\\textcolor{##888d93}{#1}");S("\\grayG","\\textcolor{##626569}{#1}");S("\\grayH","\\textcolor{##3b3e40}{#1}");S("\\grayI","\\textcolor{##21242c}{#1}");S("\\kaBlue","\\textcolor{##314453}{#1}");S("\\kaGreen","\\textcolor{##71B307}{#1}");var Ej={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},BS=class{constructor(t,r,o){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new FS(iie,r.macros),this.mode=o,this.stack=[]}feed(t){this.lexer=new ev(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 Jr("EOF",o.loc)),this.pushTokens(n),new Jr("",Rr.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 Q("Extra }",i)}else if(i.text==="EOF")throw new Q("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 Q("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 Q("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 Q("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 Q("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 Q("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 Q("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 Jr(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 ev(n,this.settings),l=[],c=s.lex();c.text!=="EOF";)l.push(c),c=s.lex();l.reverse();var u={tokens:l,numArgs:i};return u}return n}isDefined(t){return this.macros.has(t)||Vi.hasOwnProperty(t)||vt.math.hasOwnProperty(t)||vt.text.hasOwnProperty(t)||Ej.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Vi.hasOwnProperty(t)&&!Vi[t].primitive}},DO=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,Zg=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"}),IS={"\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"}},OO={\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
5220302",\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"},tv=class e{constructor(t,r){this.mode="math",this.gullet=new BS(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 Q("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 Jr("}")),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&&Vi[n.text]&&Vi[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 Q("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),c=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?a=l[0]:a={type:"ordgroup",mode:this.mode,body:l},c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c};var u;return o==="\\\\abovefrac"?u=this.callFunction(o,[a,t[r],s],[]):u=this.callFunction(o,[a,s],[]),[u]}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 Q("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 Q("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(o)throw new Q("Double superscript",i);o=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(n)throw new Q("Double subscript",i);n=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(o)throw new Q("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(Zg[i.text]){var c=DO.test(i.text),u=[];for(u.push(new Jr(Zg[i.text])),this.consume();;){var d=this.fetch().text;if(!Zg[d]||DO.test(d)!==c)break;
vendor: 4,467 bytes, line 522
522u.unshift(new Jr(Zg[d])),this.consume()}var p=this.subparse(u);c?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=Vi[n];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new Q("Got function '"+n+"' with no arguments"+(r?" as "+r:""),o);if(this.mode==="text"&&!i.allowedInText)throw new Q("Can't use function '"+n+"' in text mode",o);if(this.mode==="math"&&i.allowedInMath===!1)throw new Q("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=Vi[t];if(s&&s.handler)return s.handler(a,r,o);throw new Q("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 c=this.parseGroupOfType("argument to '"+t+"'",s,l);if(l)i.push(c);else if(c!=null)n.push(c);else throw new Q("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 Q("A primitive argument cannot be optional");var a=this.parseGroup(t);if(a==null)throw new Q("Expected group as "+t,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(o);default:throw new Q("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 Q("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 Q("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 Q("Invalid size: '"+r.text+"'",r);var i={number:+(n[1]+n[2]),unit:n[3]};if(!UO(i))throw new Q("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:Rr.range(o,l),body:s,semisimple:n==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&n[0]==="\\"&&!Ej.hasOwnProperty(n)){if(this.settings.throwOnError)throw new Q("Undef
522ined 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:Rr.range(n,s),text:"---"}),r-=2):(t.splice(o,2,{type:"textord",mode:"text",loc:Rr.range(n,a),text:"--"}),r-=1)}(i==="'"||i==="`")&&a.text===i&&(t.splice(o,2,{type:"textord",mode:"text",loc:Rr.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 Q(`\\verb assertion failed -- 523 please report what input caused this bug`);return o=o.slice(1,-1),{type:"verb",mode:"text",body:o,star:n}}OO.hasOwnProperty(r[0])&&!vt[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=OO[r[0]]+r.slice(1));var i=nie.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var a;if(vt[this.mode][r]){this.settings.strict&&this.mode==="math"&&AS.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var s=vt[this.mode][r].group,l=Rr.range(t),c;if(ooe.hasOwnProperty(s)){var u=s;c={type:"atom",mode:this.mode,family:u,loc:l,text:r}}else c={type:s,mode:this.mode,loc:l,text:r};a=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(jO(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:Rr.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(!IS[p])throw new Q("Unknown accent ' "+p+"'",t);var m=IS[p][this.mode]||IS[p].text;if(!m)throw new Q("Accent "+p+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:Rr.range(t),label:m,isStretchy:!1,isShifty:!0,base:a}}return a}};tv.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var r5=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var o=new tv(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 Q("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:o.subparse([new Jr("\\df@tag")])}]}return n},Aj=function(t,r,o){r.textContent="";var n=n5(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."),Aj=function(){throw new Q("KaTeX doesn't work in quirks mode.")});var sie=function(t,r){var o=n5(t,r).toMarkup();return o},lie=function(t,r){var o=new qd(r);return r5(t,o)},zj=function(t,r,o){if(o.throwOnError||!(t instanceof Q))throw t;var n=Z(["katex-error"],[new br(r)]);return n.setAttribute("title",t.toString()),n.setAttribute("style","color:"+o.errorColor),n},n5=function(t,r){var o=new qd(r);try{var n=r5(t,o);return xoe(n,t,o)}catch(i){return zj(i,t,o)}},cie=function(t,r){var o=new qd(r);try{var n=r5(t,o);return woe(n,t,o)}catch(i){return zj(i,t,o)}},uie="0.16.44",die={Span:qi,Anchor:Bl,SymbolNode:br,SvgNode:Cn,PathNode:Xn,LineNode:Wd},o5={version:uie,render:Aj,renderToString:sie,ParseError:Q,SETTINGS_SCHEMA:TS,__parse:lie,__renderToDomTree:n5,__renderToHTMLTree:cie,__setFontMetrics:roe,__defineSymbol:f,__defineFunction:se,__defineMacro:S,__domTree:die};var pie={},mie=[];function mv(e){let t=e||pie;return function(r,o){Y5(r,"element",function(n,i){let a=Array.isArray(n.properties.className)?n.properties.className:mie,s=a.includes("language-math"),l=a.includes("math-display"),c=a.includes("math-inline"),u=l;if(!s&&!l&&!c)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],u=!0),!d)return;let m=pS(p,{whitespace:"pre"}),g;
vendor: 5,333 bytes, lines 523-527
523try{g=o5.renderToString(m,{...t,displayMode:u,throwOnError:!0})}catch(y){let k=y,_=k.name.toLowerCase();o.message("Could not render math with KaTeX",{ancestors:[...i,n],cause:k,place:n.position,ruleId:_,source:"rehype-katex"});try{g=o5.renderToString(m,{...t,displayMode:u,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(y)},children:[{type:"text",value:m}]}]}}typeof g=="string"&&(g=eO(g,{fragment:!0}).children);let x=d.children.indexOf(p);return d.children.splice(x,1,...g),X5})}}function i5(){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 c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},l)}function t(){this.buffer()}function r(){let l=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=l}function o(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(l){let c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.stack[this.stack.length-1];u.type,this.exit(l),u.value=c;let d=u.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function i(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function a(l){let c=this.resume(),u=this.stack[this.stack.length-1];u.type,this.exit(l),u.value=c,u.data.hChildren.push({type:"text",value:c})}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function a5(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),o.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 524`,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 c=i.value||"",u=s.createTracker(l),d="$".repeat(Math.max(l3(c,"$")+1,2)),p=s.enter("mathFlow"),m=u.move(d);if(i.meta){let g=s.enter("mathFlowMeta");m+=u.move(s.safe(i.meta,{after:` 525`,before:m,encode:["$"],...u.current()})),g()}return m+=u.move(` 526`),c&&(m+=u.move(c+` 527`)),m+=u.move(d),p(),m}function o(i,a,s){let l=i.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;let u="$".repeat(c);/[^ \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 u+l+u}function n(){return"$"}}var Rj={tokenize:fie,concrete:!0,name:"mathFlow"},Nj={tokenize:hie,partial:!0};function fie(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"),Ql(e,c,"whitespace")(_))}function c(_){return _===null||no(_)?d(_):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),u(_))}function u(_){return _===null||no(_)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(_)):_===36?r(_):(e.consume(_),u)}function d(_){return e.exit("mathFlowFence"),o.interrupt?t(_):e.attempt(Nj,p,y)(_)}function p(_){return e.attempt({tokenize:k,partial:!0},y,m)(_)}function m(_){return(i?Ql(e,g,"linePrefix",i+1):g)(_)}function g(_){return _===null?y(_):no(_)?e.attempt(Nj,p,y)(_):(e.enter("mathFlowValue"),x(_))}function x(_){return _===null||no(_)?(e.exit("mathFlowValue"),g(_)):(e.consume(_),x)}function y(_){return e.exit("mathFlow"),t(_)}function k(_,$,I){let w=0;return Ql(_,P,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function P(M){return _.enter("mathFlowFence"),_.enter("mathFlowFenceSequence"),D(M)}function D(M){return M===36?(w++,_.consume(M),D):w<a?I(M):(_.exit("mathFlowFenceSequence"),Ql(_,j,"whitespace")(M))}function j(M){return M===null||no(M)?(_.exit("mathFlowFence"),$(M)):I(M)}}}function hie(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 Mj(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:o,resolve:gie,previous:vie,name:"mathText"};function o(n,i,a){let s=this,l=0,c,u;return d;function d(y){return n.enter("mathText"),n.enter("mathTextSequence"),p(y)}function p(y){return y===36?(n.consume(y),l++,p):l<2&&!r?a(y):(n.exit("mathTextSequence"),m(y))}function m(y){return y===null?a(y):y===36?(u=n.enter("mathTextSequence"),c=0,x(y)):y===32?(n.enter("space"),n.consume(y),n.exit("space"),m):no(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),m):(n.enter("mathTextData"),g(y))}function g(y){return y===null||y===32||y===36||no(y)?(n.exit("mathTextData"),m(y)):(n.
527consume(y),g)}function x(y){return y===36?(n.consume(y),c++,x):c===l?(n.exit("mathTextSequence"),n.exit("mathText"),i(y)):(u.type="mathTextData",g(y))}}}function gie(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 vie(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function s5(e){return{flow:{36:Rj},text:{36:Mj(e)}}}var yie={};function fv(e){let t=this,r=e||yie,o=t.data(),n=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),a=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);n.push(s5(r)),i.push(i5()),a.push(a5(r))}function bie(e={}){var t,r;let o=[fv,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],n=[mv,{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 Dj=bie();var xie="11.14.0",wie=`https://esm.sh/mermaid@${xie}`,_ie={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},l5=null,c5=!1;function kie(){return l5||(l5=import(wie)),l5}var Oj={name:"mermaid",type:"diagram",language:"mermaid",getMermaid(e){let t={..._ie,...e};return{initialize(r){Object.assign(t,r),c5=!1},async render(r,o){let i=(await kie()).default;return c5||(i.initialize(t),c5=!0),i.render(r,o)}}}};var qo=R(ne());var Yd=R(q()),jj=({className:e,from:t,...r})=>(0,Yd.jsx)("div",{className:ce("group flex w-full max-w-[95%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...r}),Uj=({children:e,className:t,...r})=>(0,Yd.jsx)("div",{className:ce("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 dEe=(0,qo.createContext)(null);var Tie={cjk:UR,code:KD,math:Dj,mermaid:Oj},hv=(0,qo.memo)(({className:e,...t})=>(0,Yd.jsx)(Pv,{className:ce("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),plugins:Tie,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);hv.displayName="MessageResponse";var u5=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");var Ee=R(ne());var $Ee=R(ne());var vEe=R(ne());var Lj=R(q());var Fj=R(q());var PEe=R(ne());var Cie=R(q());var zEe=R(ne());var Qd=R(q());function Bj({className:e,...t}){return(0,Qd.jsx)("div",{"data-slot":"input-group",role:"group",className:ce("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 Pie=bn("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>
527svg: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 Vj({className:e,align:t="inline-start",...r}){return(0,Qd.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:ce(Pie({align:t}),e),onClick:o=>{o.target.closest("button")||o.currentTarget.parentElement?.querySelector("input")?.focus()},...r})}var Eie=bn("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 Zj({className:e,type:t="button",variant:r="ghost",size:o="xs",...n}){return(0,Qd.jsx)(Ht,{type:t,"data-size":o,variant:r,className:ce(Eie({size:o}),e),...n})}function Gj({className:e,...t}){return(0,Qd.jsx)(of,{"data-slot":"input-group-control",className:ce("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}var Zt=R(q()),Aie=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 zie=(0,Ee.createContext)(null),Nie=(0,Ee.createContext)(null);var qj=()=>(0,Ee.useContext)(zie);var Rie=()=>(0,Ee.useContext)(Nie);var Hj=(0,Ee.createContext)(null),Mie=()=>{let e=Rie(),r=(0,Ee.useContext)(Hj)??e;if(!r)throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return r},Die=(0,Ee.createContext)(null);var Wj=({className:e,accept:t,multiple:r,globalDrop:o,syncHiddenInput:n,maxFiles:i,maxFileSize:a,onError:s,onSubmit:l,children:c,...u})=>{let d=qj(),p=!!d,m=(0,Ee.useRef)(null),g=(0,Ee.useRef)(null),[x,y]=(0,Ee.useState)([]),k=p?d.attachments.files:x,[_,$]=(0,Ee.useState)([]),I=(0,Ee.useRef)(k);(0,Ee.useEffect)(()=>{I.current=k},[k]);let w=(0,Ee.useCallback)(()=>{m.current?.click()},[]),P=(0,Ee.useCallback)(re=>!t||t.trim()===""?!0:t.split(",").map(ge=>ge.trim()).filter(Boolean).some(ge=>{if(ge.endsWith("/*")){let Le=ge.slice(0,-1);return re.type.startsWith(Le)}return re.type===ge}),[t]),D=(0,Ee.useCallback)(re=>{let fe=[...re],ge=fe.filter(we=>P(we));if(fe.length&&ge.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let Le=we=>a?we.size<=a:!0,Ie=ge.filter(Le);if(ge.length>0&&Ie.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}y(we=>{let Qe=typeof i=="number"?Math.max(0,i-we.length):void 0,Gt=typeof Qe=="number"?Ie.slice(0,Qe):Ie;typeof Qe=="number"&&Ie.length>Qe&&s?.({code:"max_files",message:"Too many files. Some were not added."});let wr=[];for(let Jo of Gt)wr.push({filename:Jo.name,id:u5(),mediaType:Jo.type,type:"file",url:URL.createObjectURL(Jo)});return[...we,...wr]})},[P,i,a,s]),j=(0,Ee.useCallback)(re=>y(fe=>{let ge=fe.find(Le=>Le.id===re);return ge?.url&&URL.revokeObjectURL(ge.url),fe.filter(Le=>Le.id!==re)}),[]),M=(0,Ee.useCallback)(re=>{let fe=[...re],ge=fe.filter(wr=>P(wr));if(fe.length&&ge.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let Le=wr=>a?wr.size<=a:!0,Ie=ge.filter(Le);if(ge.length>0&&Ie.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}let we=k.length,Qe=typeof i=="number"?Math.max(0,i-we):void 0,Gt=typeof Qe=="number"?Ie.slice(0,Qe):Ie;typeof Qe=="number"&&Ie.length>Qe&&s?.({code:"max_files",message:"Too many files. Some were not added."}),Gt.length>0&&d?.attachments.add(Gt)},[P,a,i,s,k.length,d]),U=(0,Ee.useCallback)(()=>p?d?.attachments.clear():y(re=>{for(let fe of re)fe.url&&URL.revokeObjectURL(fe.url);return[]}),[p,d]),V=(0,Ee.useCallback)(()=>$([]),[]),F=p?M:D,Ge=p?d.attachments.remove:j,ve=p?d.attachments.openFileDialog:w,$e=(0,Ee.useCallback)(()=>{U(),V()},[U,V]);(0,Ee.useEffect)(()=>{p&&d.__registerFileInput(m,()=>m.current?.click())},[p,d]),(0,Ee.useEffect)(()=>{n&&m.current&&k.length===0&&(m.current.value="")},[k,n]),(0,Ee.useEffect)(()=>{let re=g.current;if(!re||o)return;let fe=Le=>{Le.dataTransfer?.types?.includes("Files")&&Le.preventDefault()},ge=Le=>{Le.dataTransfer?.types?.includes("Files")&&Le.preventDefault(),Le.dataTransfer?.files&&Le.dataTransfer.files.length>0&&F(Le.dataTransfer.files)};return re.addEventListener("dragover",fe),re.addEventListener("drop",ge),()=>{re.removeEventListener("dragover",fe),re.removeEventListener("drop",ge)}},[F,o]),(0,Ee.useEffect)(()=>
527{if(!o)return;let re=ge=>{ge.dataTransfer?.types?.includes("Files")&&ge.preventDefault()},fe=ge=>{ge.dataTransfer?.types?.includes("Files")&&ge.preventDefault(),ge.dataTransfer?.files&&ge.dataTransfer.files.length>0&&F(ge.dataTransfer.files)};return document.addEventListener("dragover",re),document.addEventListener("drop",fe),()=>{document.removeEventListener("dragover",re),document.removeEventListener("drop",fe)}},[F,o]),(0,Ee.useEffect)(()=>()=>{if(!p)for(let re of I.current)re.url&&URL.revokeObjectURL(re.url)},[p]);let qe=(0,Ee.useCallback)(re=>{let fe=re.currentTarget;fe.files&&F(fe.files),fe.value=""},[F]),ar=(0,Ee.useMemo)(()=>({add:F,clear:U,fileInputRef:m,files:k.map(re=>({...re,id:re.id})),openFileDialog:ve,remove:Ge}),[k,F,Ge,U,ve]),He=(0,Ee.useMemo)(()=>({add:re=>{let fe=Array.isArray(re)?re:[re];$(ge=>[...ge,...fe.map(Le=>({...Le,id:u5()}))])},clear:V,remove:re=>{$(fe=>fe.filter(ge=>ge.id!==re))},sources:_}),[_,V]),ut=(0,Ee.useCallback)(async re=>{re.preventDefault();let fe=re.currentTarget,ge=p?d.textInput.value:new FormData(fe).get("message")||"";p||fe.reset();try{let Le=await Promise.all(k.map(async({id:we,...Qe})=>{if(Qe.url?.startsWith("blob:")){let Gt=await Aie(Qe.url);return{...Qe,url:Gt??Qe.url}}return Qe})),Ie=l({files:Le,text:ge},re);if(Ie instanceof Promise)try{await Ie,$e(),p&&d.textInput.clear()}catch{}else $e(),p&&d.textInput.clear()}catch{}},[p,d,k,l,$e]),bt=(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:r,onChange:qe,ref:m,title:"Upload files",type:"file"}),(0,Zt.jsx)("form",{className:ce("w-full",e),onSubmit:ut,ref:g,...u,children:(0,Zt.jsx)(Bj,{className:"overflow-hidden",children:c})})]}),L=(0,Zt.jsx)(Die.Provider,{value:He,children:bt});return(0,Zt.jsx)(Hj.Provider,{value:ar,children:L})},Jj=({className:e,...t})=>(0,Zt.jsx)("div",{className:ce("contents",e),...t}),Kj=({onChange:e,onKeyDown:t,className:r,placeholder:o="What would you like to know?",...n})=>{let i=qj(),a=Mie(),[s,l]=(0,Ee.useState)(!1),c=(0,Ee.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]),u=(0,Ee.useCallback)(g=>{let x=g.clipboardData?.items;if(!x)return;let y=[];for(let k of x)if(k.kind==="file"){let _=k.getAsFile();_&&y.push(_)}y.length>0&&(g.preventDefault(),a.add(y))},[a]),d=(0,Ee.useCallback)(()=>l(!1),[]),p=(0,Ee.useCallback)(()=>l(!0),[]),m=i?{onChange:g=>{i.textInput.setInput(g.currentTarget.value),e?.(g)},value:i.textInput.value}:{onChange:e};return(0,Zt.jsx)(Gj,{className:ce("field-sizing-content max-h-48 min-h-16 resize-y",r),name:"message",onCompositionEnd:d,onCompositionStart:p,onKeyDown:c,onPaste:u,placeholder:o,...n,...m})};var Xj=({className:e,...t})=>(0,Zt.jsx)(Vj,{align:"block-end",className:ce("justify-between gap-1",e),...t}),Yj=({className:e,...t})=>(0,Zt.jsx)("div",{className:ce("flex min-w-0 items-center gap-1",e),...t});var Qj=({className:e,variant:t="default",size:r="icon-sm",status:o,onStop:n,onClick:i,children:a,...s})=>{let l=o==="submitted"||o==="streaming",c=(0,Zt.jsx)(P5,{className:"size-4"});o==="submitted"?c=(0,Zt.jsx)(lb,{}):o==="streaming"?c=(0,Zt.jsx)(U5,{className:"size-4"}):o==="error"&&(c=(0,Zt.jsx)(hp,{className:"size-4"}));let u=(0,Ee.useCallback)(d=>{if(l&&n){d.preventDefault(),n();return}i?.(d)},[l,n,i]);return(0,Zt.jsx)(Zj,{"aria-label":l?"Stop":"Submit",className:ce(e),onClick:u,size:r,type:l&&n?"button":"submit",variant:t,...s,children:a??c})};var eU=R(ne()),Hl=R(q()),tU=({className:e,children:t,...r})=>(0,Hl.jsxs)(sb,{className:"w-full overflow-x-auto whitespace-nowrap",...r,children:[(0,Hl.jsx)("div",{className:ce("flex w-max flex-nowrap items-center gap-2",e),children:t}),(0,Hl.jsx)(rf,{className:"hidden",orientation:"horizontal"})]}),rU=({suggestion:e,onClick:t,className:r,variant:o="outline",size:n="sm",children:i,...a})=>{let s=(0,eU.useCallback)(()=>{t?.(e)},[t,e]);return(0,Hl.jsx)(Ht,{className:ce("cursor-pointer rounded-full px-4",r),onClick:s,size:n,type:"button",variant:o,...a,children:i||e})};var Xe=R(q()),nU=["What can you help me with?","Give me a quick overview","Summarize what I have here","What should I look at first?"];function Oie(e){return e.parts.filter(t=>t.type==="text").map(t=>t.text).join("")}function jie(e){return e.parts.some(t=>cn(t))}var Uie={"input-streaming":"Working on it...","input-available":"Working on it...","a
527pproval-requested":"Needs your approval","approval-responded":"Working on it...","output-available":null,"output-error":"Something went wrong","output-denied":"Skipped"};function d5({messages:e,onSend:t,busy:r=!1,status:o,onStop:n,onApprove:i,errorMessage:a,suggestions:s=nU,title:l="Assistant",placeholder:c="Ask me anything\u2026",emptyTitle:u="How can I help?",emptyDescription:d="Ask a question or pick a starter below.",className:p}){let m=e.length===0,g=o??(r?"submitted":void 0),x=y=>{let k=y.text.trim();if(!(!k||r))return t(k)};return(0,Xe.jsxs)(ho,{className:ce("bg-card text-card-foreground flex h-full min-h-0 flex-col overflow-hidden",p),children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-2 border-b px-4 py-3",children:[(0,Xe.jsx)(Sv,{className:"text-muted-foreground size-4","aria-hidden":!0}),(0,Xe.jsx)("span",{className:"text-foreground text-sm font-semibold",children:l})]}),(0,Xe.jsxs)(vR,{children:[(0,Xe.jsx)(yR,{children:m?(0,Xe.jsx)(bR,{title:u,description:d,icon:(0,Xe.jsx)(Sv,{className:"size-6","aria-hidden":!0})}):e.map(y=>(0,Xe.jsx)(jj,{from:y.role,children:(0,Xe.jsx)(Uj,{children:jie(y)?y.parts.map((k,_)=>{if(k.type==="text")return(0,Xe.jsx)(hv,{children:k.text},_);if(cn(k)){let $=Uie[k.state];return $==null?null:(0,Xe.jsxs)("div",{className:"text-muted-foreground my-1 flex flex-wrap items-center gap-2 text-xs",children:[(0,Xe.jsx)("span",{className:"italic",children:$}),k.state==="approval-requested"&&k.approval!=null&&i!=null?(0,Xe.jsxs)("span",{className:"flex gap-1.5",children:[(0,Xe.jsx)(Ht,{type:"button",size:"sm",onClick:()=>i(k.approval.id,!0),children:"Approve"}),(0,Xe.jsx)(Ht,{type:"button",size:"sm",variant:"outline",onClick:()=>i(k.approval.id,!1),children:"Deny"})]}):null]},_)}return null}):(0,Xe.jsx)(hv,{children:Oie(y)})})},y.id))}),(0,Xe.jsx)(xR,{})]}),a!=null&&a!==""?(0,Xe.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",role:"alert",children:a}):null,s.length>0?(0,Xe.jsx)("div",{className:"px-4 pb-2",children:(0,Xe.jsx)(tU,{children:s.map(y=>(0,Xe.jsx)(rU,{suggestion:y,onClick:t,disabled:r},y))})}):null,(0,Xe.jsx)("div",{className:"p-4 pt-0",children:(0,Xe.jsxs)(Wj,{onSubmit:x,children:[(0,Xe.jsx)(Jj,{children:(0,Xe.jsx)(Kj,{placeholder:c,disabled:r})}),(0,Xe.jsxs)(Xj,{children:[(0,Xe.jsx)(Yj,{}),(0,Xe.jsx)(Qj,{status:g,onStop:n})]})]})})]})}var ir=R(ne(),1);var sU=R(iU(),1);var np=R(ne(),1);var bv=R(ne(),1);var aU=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},mt=(e,t,r)=>(aU(e,t,"read from private field"),r?r.call(e):t.get(e)),to=(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)},Ki=(e,t,r,o)=>(aU(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);function Fie(e,t){return t!=null?(0,sU.default)(e,t):e}var fn,gv,vv,ep,tp,rp,Wl,p5,m5,Bie=class{constructor(e=[]){to(this,fn,void 0),to(this,gv,"ready"),to(this,vv,void 0),to(this,ep,new Set),to(this,tp,new Set),to(this,rp,new Set),this.pushMessage=t=>{Ki(this,fn,mt(this,fn).concat(t)),mt(this,Wl).call(this)},this.popMessage=()=>{Ki(this,fn,mt(this,fn).slice(0,-1)),mt(this,Wl).call(this)},this.replaceMessage=(t,r)=>{Ki(this,fn,[...mt(this,fn).slice(0,t),this.snapshot(r),...mt(this,fn).slice(t+1)]),mt(this,Wl).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,r)=>{let o=r?Fie(t,r):t;return mt(this,ep).add(o),()=>{mt(this,ep).delete(o)}},this["~registerStatusCallback"]=t=>(mt(this,tp).add(t),()=>{mt(this,tp).delete(t)}),this["~registerErrorCallback"]=t=>(mt(this,rp).add(t),()=>{mt(this,rp).delete(t)}),to(this,Wl,()=>{mt(this,ep).forEach(t=>t())}),to(this,p5,()=>{mt(this,tp).forEach(t=>t())}),to(this,m5,()=>{mt(this,rp).forEach(t=>t())}),Ki(this,fn,e)}get status(){return mt(this,gv)}set status(e){Ki(this,gv,e),mt(this,p5).call(this)}get error(){return mt(this,vv)}set error(e){Ki(this,vv,e),mt(this,m5).call(this)}get messages(){return mt(this,fn)}set messages(e){Ki(this,fn,[...e]),mt(this,Wl).call(this)}};fn=new WeakMap;gv=new WeakMap;vv=new WeakMap;ep=new WeakMap;tp=new WeakMap;rp=new WeakMap;Wl=new WeakMap;p5=new WeakMap;m5=new WeakMap;var Jl,yv=class extends uR{constructor({messages:e,...t}){let r=new Bie(e);super({...t,state:r}),to(this,Jl,void 0),this["~registerMessagesCallback"]=(o,n)=>mt(this,Jl)["~registerMessagesCallback"](o,n),this["~registerStatusCallback"]=o=>mt(this,Jl)["~registerStatusCallback"](o),this["~registerErrorCallback"]=o=>mt(this,Jl)["~registerErrorCallback"](o),Ki(this,Jl,r)}};Jl=new WeakMap;function lU({experimental_throttle:e,resume:t=!1,...r}={}){let o=(0,ir.useRef)({});"chat"in r||(o.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen,transport:r.transport});let n,i=()=>{var $;return($=o.current.transport)!=null?$:n??(n=new fd)},a={...r,transport:{sendMessages:$=>i().sendMessages($),reconnectToStream:$=>i().reconnectToStream($)},onToolCall:$=>{var I,w;return(w=(I=o.current).onToolCall)==null?void 0:w.call(I,$)},onData:$=>{var I,w;return(w=(I=o.current).onData)==null?void 0:w.call(I,$)},onFinish:$=>{var I,w;return(w=(I=o.current).onFinish)==null?void 0:w.call(I,$)},onError:$=>{var I,w;return(w=(I=o.current).onError)==null?void 0:w.call(I,$)},sendAutomaticallyWhen:$=>{var I,w,P;return(P=(w=(I=o.current).sendAutomaticallyWhen)==null?void 0:w.call(I,$))!=null?P:!1}},s=(0,ir.useRef)("chat"in r?r.chat:new yv(a));("chat"in r&&r.chat!==s.current||"id"in r&&r.id!=null&&s.current.id!==r.id)&&
527(s.current="chat"in r?r.chat:new yv(a));let c=s.current,u=(0,ir.useRef)({chat:c,messages:c.messages});u.current.chat!==c&&(u.current={chat:c,messages:c.messages});let d=(0,ir.useCallback)($=>{let I=!0,w=()=>{!I||u.current.chat!==c||(u.current={chat:c,messages:c.messages},$())},P=c["~registerMessagesCallback"](w,e);return u.current={chat:c,messages:c.messages},()=>{I=!1,P()}},[c,e]),p=(0,ir.useCallback)(()=>u.current.messages,[]),m=(0,ir.useSyncExternalStore)(d,p,p),g=(0,ir.useCallback)($=>c["~registerStatusCallback"](()=>{u.current.chat===c&&((c.status==="ready"||c.status==="error")&&(u.current={chat:c,messages:c.messages}),$())}),[c]),x=(0,ir.useCallback)(()=>c.status,[c]),y=(0,ir.useSyncExternalStore)(g,x,x),k=(0,ir.useSyncExternalStore)(s.current["~registerErrorCallback"],()=>s.current.error,()=>s.current.error),_=(0,ir.useCallback)($=>{typeof $=="function"&&($=$(s.current.messages)),s.current.messages=$},[s]);return(0,ir.useEffect)(()=>{t&&s.current.resumeStream()},[t,s]),{id:s.current.id,messages:m,setMessages:_,sendMessage:s.current.sendMessage,regenerate:s.current.regenerate,clearError:s.current.clearError,stop:s.current.stop,error:k,resumeStream:s.current.resumeStream,status:y,addToolResult:s.current.addToolOutput,addToolOutput:s.current.addToolOutput,addToolApprovalResponse:s.current.addToolApprovalResponse}}var Wo=R(ne());function op(e){if(!Kl(e))throw new Error("Parameter was not an error")}function Kl(e){return!!e&&typeof e=="object"&&Vie(e)==="[object Error]"||e instanceof Error}function Vie(e){return Object.prototype.toString.call(e)}var Zie="Layerr",Gie=Zie;function f5(){return Gie}function cU(e){let t,r="";if(e.length===0)t={};else if(Kl(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}}var Ho=class e extends Error{constructor(t,r){let o=[...arguments],{options:n,shortMessage:i}=cU(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=f5(),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 op(t),t._cause&&Kl(t._cause)?t._cause:null}static fullStack(t){op(t);let r=e.cause(t);return r?`${t.stack} 528caused by: ${e.fullStack(r)}`:t.stack??""}static info(t){op(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 dU="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ap=32,uU=0xffffffffffff,qie=10,Hie=16,ip=Object.freeze({source:"ulid"});function Wie(e){let t=e||Jie(),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 Ho({info:{code:"PRNG_DETECT",...ip}},"Failed to find a reliable PRNG")}function Jie(){return Yie()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function Kie(e,t){let r="";for(;e>0;e--)r=Qie(t)+r;return r}function Xie(e,t){if(isNaN(e))throw new Ho({info:{code:"ENC_TIME_NAN",...ip}},`Time must be a number: ${e}`);if(e>uU)throw new Ho({info:{code:"ENC_TIME_SIZE_EXCEED",...ip}},`Cannot encode a time larger than ${uU}: ${e}`);if(e<0)throw new Ho({info:{code:"ENC_TIME_NEG",...ip}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Ho({info:{code:"ENC_TIME_TYPE",...ip}},`Time must be an integer: ${e}`);let r,o="";for(let n=t;n>0;n--)r=e%ap,o=dU.charAt(r)+o,e=(e-r)/ap;return o}function Yie(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Qie(e){let t=Math.floor(e()*ap);return t===ap&&(t=ap-1),dU.charAt(t)}function xv(e,t){let r=t||Wie(),o=isNaN(e)?Date.now():e;return Xie(o,qie)+Kie(Hie,r)}function eae(e){return e==null||e.trim().length===0}async function h5(e,t){if(eae(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(()=>"");
528if(!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 tae(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&&cn(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 rae=6;function g5(e,t,r){let n=`${r?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations/${encodeURIComponent(t)}/chat`,i=new yv({messages:[],transport:new fd({api:n,prepareSendMessagesRequest:a=>{let{history:s,messages:l}=tae(a.messages),c=Math.max(0,rae-l.length),u=c===0?[]:s.slice(-c);return{body:{messages:l,history:u}}}}),id:t,generateId:xv,sendAutomaticallyWhen:a=>!(!(pR(a)||dR(a))||i.error!=null)});return i}var ft=R(q()),nae={1:"bg-chart-1",2:"bg-chart-2",3:"bg-chart-3",4:"bg-chart-4",5:"bg-chart-5"};function v5({agentId:e,publicAgentId:t,title:r="Assistant",accent:o,suggestions:n,placeholder:i,defaultOpen:a=!1,className:s}){let[l,c]=(0,Wo.useState)(a),[u,d]=(0,Wo.useState)(null),[p,m]=(0,Wo.useState)(!1),[g,x]=(0,Wo.useState)(!1),y=e!=null&&e!=="",k=t!=null&&t!==""?`https://www.taskade.com/a/${encodeURIComponent(t)}`:null,_=(0,Wo.useCallback)(async()=>{if(!(!y||u!=null||g)){x(!0);try{let{conversationId:I}=await h5(e);d(g5(e,I)),m(!1)}catch{m(!0)}finally{x(!1)}}},[y,u,g,e]);if((0,Wo.useEffect)(()=>{l&&y&&u==null&&!p&&!g&&_()},[l,y,u,p,g,_]),!y&&k==null)return null;let $=()=>{c(!0),_()};return(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Ly,{children:l?(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)("div",{className:"bg-foreground
528/20 fixed inset-0 z-40 sm:hidden",onClick:()=>c(!1),"aria-hidden":!0}),(0,ft.jsx)(Jy.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:16},className:ce("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,ft.jsxs)("div",{className:"bg-card text-card-foreground flex h-full flex-col overflow-hidden border shadow-lg sm:rounded-xl",children:[(0,ft.jsxs)("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[(0,ft.jsx)("span",{className:"text-foreground text-sm font-semibold",children:r}),(0,ft.jsx)(Ht,{variant:"ghost",size:"icon",onClick:()=>c(!1),"aria-label":"Close chat",children:(0,ft.jsx)(hp,{className:"size-4","aria-hidden":!0})})]}),y&&u!=null?(0,ft.jsx)(oae,{chat:u,title:r,suggestions:n,placeholder:i}):y&&p?(0,ft.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center",children:[(0,ft.jsx)("p",{className:"text-muted-foreground text-sm",children:"The assistant is warming up - try again."}),(0,ft.jsx)(Ht,{onClick:()=>{_()},disabled:g,children:"Try again"}),k!=null?(0,ft.jsx)("a",{href:k,target:"_blank",rel:"noreferrer",className:"text-muted-foreground text-xs underline",children:"Open hosted chat"}):null]}):y?(0,ft.jsx)("div",{className:"text-muted-foreground flex flex-1 items-center justify-center text-sm",children:"Connecting..."}):k!=null?(0,ft.jsx)("iframe",{src:k,title:r,allow:"clipboard-read; clipboard-write",className:"h-full w-full flex-1 border-0"}):null]})})]}):null}),l?null:(0,ft.jsx)(Ht,{onClick:$,"aria-label":`Open ${r}`,className:ce("fixed bottom-6 right-6 z-50 size-14 rounded-full shadow-lg",o!=null?nae[o]:"bg-primary text-primary-foreground"),children:(0,ft.jsx)(R5,{className:"size-6","aria-hidden":!0})})]})}function oae({chat:e,title:t,suggestions:r,placeholder:o}){let{messages:n,status:i,stop:a,error:s,addToolApprovalResponse:l}=lU({chat:e,id:e.id});return(0,ft.jsx)(d5,{messages:n,onSend:async d=>{try{await e.sendMessage({id:xv(),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"})}var sp=R(ne());var hze=R(ne());var pU=R(q());var yze=R(ne());var iae=R(q());var mU=R(q());var y5=R(q());var nNe=R(ne());var Gze=R(ne());var aae=R(q());var Wze=R(ne());var sae=R(q());var fU=R(q());var A=R(q()),hU=[{id:"one",name:"60 Minute In-Studio Massage",description:"Indulge in the ultimate relaxation experience here in my studio for all your essential bodywork. I'm dedicated to providing you with a rejuvenating and therapeutic session tailored to your specific needs.",duration:60,price:140,category:"In-Studio Massage"},{id:"two",name:"90 Minute In-Studio Massage",description:"Indulge in the ultimate relaxation experience here in my studio for all your essential bodywork. I'm dedicated to providing you with a rejuvenating and therapeutic session tailored to your specific needs.",duration:90,price:0,category:"In-Studio Massage"},{id:"three",name:"120 Minute In-Studio Massage",description:"Indulge in the ultimate relaxation experience here in my studio for all your essential bodywork. I'm dedicated to providing you with a rejuvenating and therapeutic session tailored to your specific needs.",duration:120,price:0,category:"In-Studio Massage"},{id:"four",name:"180 Minute In-Studio Massage",description:"Indulge in the ultimate relaxation experience here in my studio for all your essential bodywork. I'm dedicated to providing you with a rejuvenating and therapeutic session tailored to your specific needs.",duration:180,price:0,category:"In-Studio Massage"}],lae=Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Chicago",gU={name:"",email:"",phone:"",date:"",timeZone:lae,notificationPreference:"email",smsConsent:"not-asked",notes:"",masseur:""},wv=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(e),vU=["Service","Time","Details"],cae=["Which massage is right for me?","What appointment times are available?","How does private booking work?"];function uae(){let{theme:e,setTheme:t}=S5(),[r,o]=(0,Ot.useState)(hU),[n,i]=(0,Ot.useState)(hU[0].name),[a,s]=(0,Ot.useState)(0),[l,c]=(0,Ot.useState)(gU),[u,d]=(0,Ot.useState)(0),[p,m]=(0,Ot.useState)([]),[g,x]=(0,Ot.useState)([]),[y,k]=(0,Ot.useState)([]),[_,$]=(0,Ot.useState)(""),[I,w]=(0,Ot.useState)(!0),[P,D]=(0,Ot.useState)(!1),[j,M]=(0,Ot.useState)(!1),[U,V]=(0,Ot.useState)("");(0,Ot.useEffect)(()=>{document.title="Essential Bodywork | Book an appointment";let L=!0;return Promise.allSettled([Yl(G5),Yl(Tv),Yl(q5),Yl(H5)]).then(([re,fe,ge,Le])=>
528{if(L){if(re.status==="fulfilled"){let Ie=re.value.map(we=>({id:we.id,name:Iv(we,"Service Name")??"",description:xt(we,"Description")??"",duration:ro(we,"Duration Minutes")??60,price:ro(we,"Price")??0,category:xt(we,"Category")??"Massage"})).filter(we=>we.name.length>0);Ie.length>0&&(o(Ie),i(Ie[0].name))}if(fe.status==="fulfilled"&&(d(fe.value.length),m(fe.value.map(Ie=>({time:String(xt(Ie,"Appointment Time")??""),status:String(xt(Ie,"Status")??"").toLowerCase(),buffer:ro(Ie,"Buffer Minutes")??30})))),ge.status==="fulfilled"&&x(ge.value.map(Ie=>({day:String(xt(Ie,"Day of Week")??""),start:String(xt(Ie,"Start Time")??""),end:String(xt(Ie,"End Time")??""),buffer:ro(Ie,"Buffer Minutes")??30,active:String(xt(Ie,"Status")??"").toLowerCase()==="active"}))),Le.status==="fulfilled"){let Ie=Le.value.map(we=>({id:we.id,name:String(xt(we,"Masseur Name")??Iv(we)??""),email:String(xt(we,"Email")??""),location:String(xt(we,"Location")??""),bio:String(xt(we,"Bio")??""),price:ro(we,"60 Minute Price")??0,availability:String(xt(we,"Availability Summary")??""),status:String(xt(we,"Status")??""),promotionTitle:String(xt(we,"Promotion Title")??""),promotionPercent:ro(we,"Promotion Percent")??0,promotionStatus:String(xt(we,"Promotion Status")??""),photo:String(xt(we,"Profile Photo 1")??""),available:String(xt(we,"Public Availability")??"").toLowerCase()!=="not available",gallery:String(xt(we,"Private Gallery Offered")??"").toLowerCase()==="yes",video:String(xt(we,"Video Calls Offered")??"").toLowerCase()==="yes",rating:ro(we,"Verified Rating")??0,reviewCount:ro(we,"Verified Review Count")??0,city:String(xt(we,"City")??xt(we,"Location")??"")}));k(Ie.filter(we=>we.status.toLowerCase()==="approved"))}}}).finally(()=>{L&&w(!1)}),()=>{L=!1}},[]),(0,Ot.useEffect)(()=>{if(I||y.length===0||r.length===0)return;let L=new URLSearchParams(window.location.search),re=L.get("masseur"),fe=L.get("service"),ge=re?y.find(Ie=>Ie.id===re):void 0,Le=fe?r.find(Ie=>Ie.name===fe):void 0;!ge&&!Le||(c(Ie=>({...Ie,masseur:ge?.id??Ie.masseur})),Le&&i(Le.name),s(0),window.location.hash==="#booking"&&window.requestAnimationFrame(()=>document.getElementById("booking")?.scrollIntoView({behavior:"smooth",block:"start"})))},[I,y,r]);let F=(0,Ot.useMemo)(()=>r.find(L=>L.name===n)??r[0],[r,n]),Ge=(0,Ot.useMemo)(()=>{let L=_.trim().toLowerCase();return L?y.filter(re=>[re.name,re.location,re.city,re.availability,re.bio].some(fe=>fe.toLowerCase().includes(L))):y},[_,y]),ve=e==="dark",$e=(L,re)=>c(fe=>({...fe,[L]:re})),qe=a===0?F!=null:a===1?l.date.length>0&&l.timeZone.length>0:l.name.length>0&&l.email.length>0&&(l.notificationPreference==="email"||l.notificationPreference==="none"||l.smsConsent==="accepted"||l.smsConsent==="declined");function ar(L){let re=new Date(L);if(Number.isNaN(re.getTime())||!F)return"Choose a valid date and time.";let fe=re.toLocaleDateString("en-US",{weekday:"long"}),ge=g.find(Qe=>Qe.day.toLowerCase()===fe.toLowerCase()&&Qe.active);if(ge){let Qe=re.getHours()*60+re.getMinutes(),[Gt,wr]=ge.start.split(":").map(Number),[Jo,lp]=ge.end.split(":").map(Number);if(!(Qe>=Gt*60+wr&&Qe+F.duration<=Jo*60+lp))return`That time is outside the masseur's ${ge.start} to ${ge.end} availability.`}let Le=re.getTime(),Ie=Le+F.duration*6e4;return p.some(Qe=>{if(!["requested","confirmed"].includes(Qe.status)||!Qe.time)return!1;let Gt=new Date(Qe.time).getTime(),wr=Math.max(Qe.buffer,30)*6e4;return Le<Gt+wr&&Ie>Gt-wr})?"That time is too close to another requested or confirmed appointment. Choose a different time.":null}function He(){if(V(""),a===1&&l.date.length===0){V("Choose a preferred time to continue.");return}if(a===1){let L=ar(l.date);if(L){V(L);return}}a<2&&s(L=>L+1)}async function ut(){let L=window.prompt("Masseur name or profile"),re=window.prompt("Report reason, for example scam, unsafe behavior, or misleading listing"),fe=window.prompt("What happened?"),ge=window.prompt("Your email for follow-up (optional)",l.email);if(!(!L?.trim()||!re?.trim()||!fe?.trim()))try{await $v(W5,{"Masseur Name":L.trim(),"Customer Email":ge?.trim()??"",Reason:re.trim(),Details:fe.trim(),"Created At":new Date().toISOString(),Status:"New"}),V("Report received. The admin team will review it privately.")}catch{V("The report could not be submitted. Please try again.")}}async function bt(L){if(L.preventDefault(),V(""),!F||!l.name||!l.email||!l.date){V("Add your name, email, and preferred time to continue.");return}let re=ar(l.date);if(re){V(re);return}D(!0);let fe=g.find(Ie=>Ie.day.toLowerCase()===new Date(l.date).toLocaleDateString("en-US",{weekday:"long"}).toLowerCase()&&Ie.active),ge=y.find(Ie=>Ie.id===l.masseur);if(l.notificationPreference==="sms"||l.notificationPreference==="both"){if(l.smsConsent!=="accepted"){V("Please accept SMS notifications before choosing SMS or both."),D(!1);return}if(!l.phone.trim()){V("Add a phone number before choosing SMS notifications."),D(!1);return}}let Le={"Customer Name":l.name,Email:l.email,Phone:l.phone,Service:F.name,"Appointment Time":new Date(l.date).toISOString(),Price:F.price,Status:"Requested","Buffer Minutes":fe?.buffer??30,"Masseur Email"
528:ge?.email??"[email protected]","Notification State":"new","Customer Time Zone":l.timeZone,"Notification Preference":l.notificationPreference,"SMS Consent":l.smsConsent};l.notes.trim()&&(Le.Notes=l.notes.trim());try{await $v(Tv,Le),d(Ie=>Ie+1),M(!0)}catch{V("Your request could not be saved. Please try again.")}finally{D(!1)}}return(0,A.jsxs)("main",{className:"min-h-screen bg-background text-foreground",children:[(0,A.jsx)("header",{className:"border-b border-border bg-background",children:(0,A.jsxs)("div",{className:"mx-auto flex max-w-3xl items-center justify-between px-5 py-4",children:[(0,A.jsxs)("a",{href:"#top",className:"flex items-center gap-3",children:[(0,A.jsx)("span",{className:"flex h-10 w-10 items-center justify-center overflow-hidden rounded-full bg-background",children:(0,A.jsx)("img",{src:"https://files.taskade.com/space-files/56c0714e-2980-454e-a8e1-e3abee716293/original/IMG_7544.png",alt:"Essential Bodywork logo",className:"h-full w-full object-contain"})}),(0,A.jsxs)("span",{children:[(0,A.jsx)("span",{className:"block font-semibold tracking-wide",children:"Essential Bodywork"}),(0,A.jsx)("span",{className:"block text-xs text-muted-foreground",children:"Private appointments in Memphis"})]})]}),(0,A.jsxs)("div",{className:"flex items-center gap-2",children:[(0,A.jsxs)("span",{className:"hidden text-xs text-muted-foreground sm:block",children:[u," requests in queue"]}),(0,A.jsx)(Z5,{}),(0,A.jsx)("button",{type:"button",onClick:()=>t(ve?"light":"dark"),className:"min-h-11 min-w-11 rounded-full border border-border","aria-label":"Toggle color theme",children:ve?(0,A.jsx)(F5,{className:"mx-auto h-4 w-4"}):(0,A.jsx)(M5,{className:"mx-auto h-4 w-4"})})]})]})}),(0,A.jsxs)("section",{id:"top",className:"mx-auto max-w-6xl px-5 pb-10 pt-12",children:[(0,A.jsxs)("p",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[(0,A.jsx)("span",{className:"h-2 w-2 rounded-full bg-chart-2"})," Verified massage professionals, clear pricing, private booking"]}),(0,A.jsx)("h1",{className:"mt-5 max-w-3xl text-4xl font-semibold leading-tight tracking-tight sm:text-6xl",children:"Find your right bodywork match."}),(0,A.jsx)("p",{className:"mt-4 max-w-2xl text-lg leading-8 text-muted-foreground",children:"Search approved masseurs by location, compare their 60-minute rate, see when they are generally available, and book without back-to-back scheduling."}),(0,A.jsxs)("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[(0,A.jsxs)("label",{className:"flex min-h-12 flex-1 items-center gap-3 rounded-xl border border-input bg-card px-4",children:[(0,A.jsx)(O5,{className:"h-5 w-5 text-muted-foreground"}),(0,A.jsx)("span",{className:"sr-only",children:"Search masseurs"}),(0,A.jsx)("input",{value:_,onChange:L=>$(L.target.value),className:"min-w-0 flex-1 bg-transparent outline-none",placeholder:"Search by name, area, or availability"})]}),(0,A.jsxs)("button",{type:"button",onClick:()=>{ut()},className:"inline-flex min-h-12 items-center justify-center gap-2 rounded-xl border border-destructive/40 px-4 text-sm font-medium text-destructive",children:[(0,A.jsx)(B5,{className:"h-4 w-4"})," Report a masseur or scam"]})]})]}),(0,A.jsxs)("section",{className:"mx-auto max-w-6xl px-5 pb-14",children:[(0,A.jsxs)("div",{className:"mb-5 flex items-end justify-between gap-3",children:[(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{className:"text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground",children:"Directory"}),(0,A.jsx)("h2",{className:"mt-2 text-2xl font-semibold",children:"Available masseurs"})]}),(0,A.jsxs)("span",{className:"text-sm text-muted-foreground",children:[Ge.length," approved profiles"]})]}),(0,A.jsx)("div",{className:"grid gap-4 md:grid-cols-2",children:Ge.map(L=>(0,A.jsxs)("article",{className:"rounded-3xl border border-border bg-card p-5 shadow-sm",children:[(0,A.jsx)("a",{href:`/masseurs/${L.id}`,className:"block",children:L.photo?(0,A.jsx)("img",{src:L.photo,alt:`${L.name} profile`,className:"mb-5 aspect-[16/9] w-full rounded-2xl object-cover"}):(0,A.jsx)("div",{className:"mb-5 flex aspect-[16/9] items-center justify-center rounded-2xl bg-muted text-4xl font-semibold text-muted-foreground",children:L.name.slice(0,1)})}),(0,A.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,A.jsxs)("div",{className:"min-w-0",children:[(0,A.jsx)("h3",{className:"text-xl font-semibold",children:(0,A.jsx)("a",{href:`/masseurs/${L.id}`,className:"hover:underline",children:L.name})}),(0,A.jsxs)("p",{className:"mt-2 flex items-center gap-2 text-sm text-muted-foreground",children:[(0,A.jsx)(N5,{className:"h-4 w-4 shrink-0"}),L.location]})]}),(0,A.jsxs)("div",{className:"text-right",children:[(0,A.jsx)("p",{className:"text-xs text-muted-foreground",children:"60 minutes"}),(0,A.jsx)("p",{className:"text-xl font-semibold tabular-nums",children:wv(L.price)})]})]}),(0,A.jsx)("p",{className:"mt-4 text-sm leading-6 text-muted-foreground",children:L.bio}),(0,A.jsxs)("div",{className:"mt-5 flex flex-wrap gap-2 text-xs",children:[(0,A.jsx)("span",{className:`inline-flex items-center gap-1 rounded-full px-3 py-1 ${L.available?"bg-chart-2/15 text-chart-2":"bg-muted text-muted-foreground"}`,children:L.available?"Available":"Not available"}),(0,A.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-chart-2/15 px-3 py-1 text-chart-2",children:[(0,A.jsx)(j5,{className:"h-3.5 w-3.5"})," Approved"]}),(0,A.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-muted px-3 py-1",children:[(0,A.jsx)(fp,{className:"h-3.5 w-3.5"})," ",L.availability]}),L.gallery?(0,A.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-chart-4/15 px-3 py-1 text-chart-4",children:[(0,A.jsx)(E5,{className:"h-3.5 w-3.5"})," Gallery"]}):null,L.video?(0,A.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-chart-5/15 px-3 py-1 text-chart-5",children:[(0,A.jsx)(V5,{className:"h-3.5 w-3.5"})," Video calls"]}):null,L.rating>0?(0,A.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-chart-3/1
5285 px-3 py-1 text-chart-3",children:[(0,A.jsx)(L5,{className:"h-3.5 w-3.5"})," ",L.rating.toFixed(1)," (",L.reviewCount,")"]}):null,L.promotionStatus.toLowerCase()==="active"?(0,A.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-chart-3/15 px-3 py-1 text-chart-3",children:[(0,A.jsx)(D5,{className:"h-3.5 w-3.5"})," Discount available"]}):null]}),(0,A.jsxs)("div",{className:"mt-5 grid gap-2",children:[(0,A.jsxs)("a",{href:`/masseurs/${L.id}`,className:"inline-flex min-h-11 w-full items-center justify-center gap-2 rounded-xl bg-primary px-4 text-sm font-medium text-primary-foreground",children:["View profile and sessions ",(0,A.jsx)(mp,{className:"h-4 w-4"})]}),(0,A.jsxs)("a",{href:`/masseurs/${L.id}`,className:"inline-flex min-h-10 items-center justify-center text-sm font-medium text-primary underline underline-offset-4",children:["Navigate to ",L.name]})]})]},L.id))}),Ge.length===0?(0,A.jsx)("div",{className:"rounded-3xl border border-dashed border-border p-8 text-center text-sm text-muted-foreground",children:"No approved masseurs match that search yet."}):null]}),(0,A.jsxs)("section",{id:"booking",className:"mx-auto max-w-3xl px-5 pb-20",children:[(0,A.jsx)("div",{className:"mb-8 flex items-center gap-2","aria-label":"Booking progress",children:vU.map((L,re)=>(0,A.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,A.jsx)("div",{className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-sm font-semibold ${re<=a?"bg-primary text-primary-foreground":"border border-border text-muted-foreground"}`,children:re<a?(0,A.jsx)(C5,{className:"h-4 w-4"}):re+1}),(0,A.jsx)("span",{className:`hidden text-sm sm:block ${re===a?"font-semibold":"text-muted-foreground"}`,children:L}),re<vU.length-1?(0,A.jsx)("div",{className:`h-px flex-1 ${re<a?"bg-primary":"bg-border"}`}):null]},L))}),(0,A.jsx)("div",{className:"rounded-3xl border border-border bg-card p-5 shadow-xl shadow-primary/5 sm:p-8",children:I?(0,A.jsxs)("div",{className:"space-y-4",children:[(0,A.jsx)("div",{className:"h-7 w-48 animate-pulse rounded bg-muted"}),(0,A.jsx)("div",{className:"h-24 animate-pulse rounded-2xl bg-muted"}),(0,A.jsx)("div",{className:"h-24 animate-pulse rounded-2xl bg-muted"})]}):j?(0,A.jsxs)("div",{className:"py-10 text-center",children:[(0,A.jsx)("div",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-full bg-chart-2/15",children:(0,A.jsx)(kv,{className:"h-7 w-7 text-chart-2"})}),(0,A.jsx)("h2",{className:"mt-6 text-2xl font-semibold",children:"Request received."}),(0,A.jsxs)("p",{className:"mx-auto mt-3 max-w-md leading-7 text-muted-foreground",children:["Thanks, ",l.name,". We will review your preferred time and follow up with confirmation."]}),(0,A.jsx)("button",{type:"button",onClick:()=>{M(!1),s(0),c(gU)},className:"mt-8 inline-flex min-h-11 items-center rounded-xl border border-border px-5 font-medium",children:"Request another session"})]}):(0,A.jsxs)(A.Fragment,{children:[a===0?(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{className:"text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground",children:"Step 1 of 3"}),(0,A.jsx)("h2",{className:"mt-2 text-2xl font-semibold",children:"Choose your session"}),(0,A.jsx)("p",{className:"mt-2 text-muted-foreground",children:"Every appointment begins with a conversation about comfort, pressure, and boundaries."}),(0,A.jsx)("div",{className:"mt-7 grid gap-3",children:r.map(L=>(0,A.jsx)("button",{type:"button",onClick:()=>i(L.name),className:`rounded-none border-x-0 border-t-0 border-b p-5 text-left transition ${L.name===n?"border-foreground bg-background shadow-sm":"border-border hover:border-foreground
528/50"}`,children:(0,A.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,A.jsxs)("div",{className:"min-w-0",children:[(0,A.jsx)("h3",{className:"text-lg font-semibold",children:L.name}),(0,A.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:L.description})]}),(0,A.jsxs)("div",{className:"shrink-0 text-right",children:[(0,A.jsx)("p",{className:"font-semibold",children:L.price>0?wv(L.price):"Gratuity not included*"}),(0,A.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:L.duration===60?"1 hr":L.duration===90?"1 hr 30 min":L.duration===120?"2 hr":"3 hr"})]})]})},L.id))})]}):null,a===1?(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{className:"text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground",children:"Step 2 of 3"}),(0,A.jsx)("h2",{className:"mt-2 text-2xl font-semibold",children:"Choose a preferred time"}),(0,A.jsx)("p",{className:"mt-2 text-muted-foreground",children:"This is a request, not a final confirmation. We will reply with the closest available time."}),(0,A.jsxs)("div",{className:"mt-7 rounded-2xl border border-border bg-muted/30 p-4",children:[(0,A.jsx)("p",{className:"text-sm font-medium",children:y.find(L=>L.id===l.masseur)?.name??"Choose an approved masseur from the directory"}),(0,A.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:y.find(L=>L.id===l.masseur)?.availability??"Availability is shown on each profile above."})]}),(0,A.jsxs)("label",{className:"mt-4 grid gap-2 text-sm font-medium",children:["Preferred date and time",(0,A.jsx)("input",{required:!0,type:"datetime-local",value:l.date,onChange:L=>$e("date",L.target.value),className:"h-12 rounded-xl border border-input bg-background px-4 font-normal outline-none focus:ring-2 focus:ring-ring"})]}),(0,A.jsxs)("label",{className:"mt-4 grid gap-2 text-sm font-medium",children:["Your time zone",(0,A.jsxs)("select",{value:l.timeZone,onChange:L=>$e("timeZone",L.target.value),className:"h-12 rounded-xl border border-input bg-background px-4 font-normal outline-none focus:ring-2 focus:ring-ring",children:[(0,A.jsx)("option",{value:"America/Chicago",children:"Central Time, Memphis"}),(0,A.jsx)("option",{value:"America/New_York",children:"Eastern Time"}),(0,A.jsx)("option",{value:"America/Denver",children:"Mountain Time"}),(0,A.jsx)("option",{value:"America/Los_Angeles",children:"Pacific Time"}),(0,A.jsx)("option",{value:"UTC",children:"UTC"})]}),(0,A.jsx)("span",{className:"text-xs font-normal text-muted-foreground",children:"We will use this zone when reviewing your requested time."})]}),(0,A.jsx)("div",{className:"mt-6 rounded-2xl border border-border bg-muted/30 p-5",children:(0,A.jsxs)("div",{className:"flex gap-3",children:[(0,A.jsx)(T5,{className:"h-5 w-5 shrink-0 text-chart-3"}),(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{className:"font-medium",children:F?.name}),(0,A.jsxs)("p",{className:"mt-1 text-sm text-muted-foreground",children:[F?.duration," minutes \xB7 ",wv(F?.price??0)]})]})]})})]}):null,a===2?(0,A.jsxs)("form",{id:"booking-details-form",onSubmit:bt,children:[(0,A.jsx)("p",{className:"text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground",children:"Step 3 of 3"}),(0,A.jsx)("h2",{className:"mt-2 text-2xl font-semibold",children:"Your details"}),(0,A.jsx)("p",{className:"mt-2 text-muted-foreground",children:"We use this information only to coordinate your appointment."}),(0,A.jsxs)("div",{className:"mt-7 grid gap-4 sm:grid-cols-2",children:[(0,A.jsxs)("label",{className:"grid gap-2 text-sm font-medium",children:["Name",(0,A.jsx)("input",{required:!0,autoComplete:"name",value:l.name,onChange:L=>$e("name",L.target.value),className:"h-12 rounded-xl border border-input bg-background px-4 font-normal outline-none focus:ring-2 focus:ring-ring",placeholder:"Your name"})]}),(0,A.jsxs)("label",{className:"grid gap-2 text-sm font-medium",children:["Email",(0,A.jsx)("input",{required:!0,type:"email",autoComplete:"email",value:l.email,onChange:L=>$e("email",L.target.value),className:"h-12 rounded-xl border border-input bg-background px-4 font-normal outline-none focus:ring-2 focus:ring-ring",placeholder:"[email protected]"})]}),(0,A.jsxs)("label",{className:"grid gap-2 text-sm font-medium",children:["Phone ",(0,A.jsx)("span",{className:"font-normal text-muted-foreground",children:"optional"}),(0,A.jsx)("input",{type:"tel",autoComplete:"tel",value:l.phone,onChange:L=>$e("phone",L.target.value),className:"h-12 rounded-xl border border-input bg-background px-4 font-normal outline-none focus:ring-2 focus:ring-ring",placeholder:"(312) 555-0123"})]}),(0,A.jsxs)("label",{className:"grid gap-2 text-sm font-medium",children:["Session note ",(0,A.jsx)("span",{className:"font-normal text-muted-foreground",children:"optional"}),(0,A.jsx)("input",{value:l.notes,onChange:L=>$e("notes",L.target.value),className:"h-12 rounded-xl border border-input bg-background px-4 font-normal outline-none focus:ring-2 focus:ring-ring",placeholder:"Pressure, access, or a question"})]})]}),(0,A.jsxs)("label",{className:"mt-6 grid gap-2 text-sm font-medium",children:["How should we contact you?",(0,A.jsxs)("select",{value:l.notificationPreference,onChange:L=>$e("notificationPreference",L.target.value),className:"h-12 rounded-xl border border-input bg-background px-4 font-normal outline-none focus:ring-2 focus:ring-ring",children:[(0,A.jsx)("option",{value:"email",children:"Email only"}),(0,A.jsx)("option",{value:"sms",children:"SMS only"}),(0,A.jsx)("option",{value:"both",children:"Email and SMS"}),(0,A.jsx)("option",{value:"none",children:"No appointment notifications"})]})]}),l.notificationPreference==="sms"||l.notificationPreference==="both"?(0,A.jsxs)("label",{className:"mt-4 flex items-start gap-3 rounded-2xl border border-border bg-muted/30 p-4 text-sm",children:[(0,A.jsx)("input",{type:"checkbox",checked:l.smsConsent==="accepted",onChange:L=>$e("smsConsent",L.target.checked?"accepted":"declined"),className:"mt-1 h-4 w-4"}
528),(0,A.jsx)("span",{children:"I agree to receive appointment-related SMS messages at the phone number above. I can decline SMS and use email instead."})]}):null,(0,A.jsx)("div",{className:"mt-6 rounded-2xl border border-border bg-muted/30 p-5",children:(0,A.jsxs)("div",{className:"flex items-center gap-3",children:[(0,A.jsx)(fp,{className:"h-5 w-5 text-chart-4"}),(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{className:"font-medium",children:F?.name}),(0,A.jsxs)("p",{className:"mt-1 text-sm text-muted-foreground",children:[l.date?new Date(l.date).toLocaleString([],{dateStyle:"full",timeStyle:"short"}):"Time to be selected"," \xB7 ",l.timeZone," \xB7 ",wv(F?.price??0)]})]})]})})]}):null,U?(0,A.jsx)("p",{role:"alert",className:"mt-5 text-sm text-destructive",children:U}):null,(0,A.jsxs)("div",{className:"mt-8 flex flex-col-reverse gap-3 sm:flex-row sm:justify-between",children:[a>0?(0,A.jsxs)("button",{type:"button",onClick:()=>{V(""),s(L=>L-1)},className:"inline-flex min-h-12 items-center justify-center gap-2 rounded-xl border border-border px-5 font-medium",children:[(0,A.jsx)(I5,{className:"h-4 w-4"})," Back"]}):(0,A.jsx)("span",{}),a<2?(0,A.jsxs)("button",{type:"button",disabled:!qe,onClick:He,className:"inline-flex min-h-12 items-center justify-center gap-2 rounded-xl bg-primary px-5 font-medium text-primary-foreground disabled:opacity-50",children:["Continue ",(0,A.jsx)(mp,{className:"h-4 w-4"})]}):(0,A.jsxs)("button",{type:"submit",form:"booking-details-form",disabled:P,onClick:()=>{(!l.name||!l.email)&&V("Add your name and email to continue.")},className:"inline-flex min-h-12 items-center justify-center gap-2 rounded-xl bg-primary px-5 font-medium text-primary-foreground disabled:opacity-60",children:[P?"Saving your request...":"Request appointment"," ",(0,A.jsx)(mp,{className:"h-4 w-4"})]})]})]})})]}),(0,A.jsx)("section",{className:"border-y border-border bg-muted/30",children:(0,A.jsxs)("div",{className:"mx-auto grid max-w-3xl gap-6 px-5 py-10 sm:grid-cols-3",children:[(0,A.jsxs)("div",{className:"flex gap-3",children:[(0,A.jsx)(A5,{className:"h-5 w-5 shrink-0 text-chart-5"}),(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{className:"font-medium",children:"Consent-led"}),(0,A.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Your boundaries guide the work."})]})]}),(0,A.jsxs)("div",{className:"flex gap-3",children:[(0,A.jsx)(fp,{className:"h-5 w-5 shrink-0 text-chart-4"}),(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{className:"font-medium",children:"Private"}),(0,A.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Discreet care, no judgment."})]})]}),(0,A.jsxs)("div",{className:"flex gap-3",children:[(0,A.jsx)(kv,{className:"h-5 w-5 shrink-0 text-chart-2"}),(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{className:"font-medium",children:"By request"}),(0,A.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"A human confirms every visit."})]})]})]})}),(0,A.jsxs)("footer",{className:"mx-auto max-w-3xl px-5 py-10 text-center text-sm text-muted-foreground",children:[(0,A.jsxs)("nav",{className:"flex flex-wrap items-center justify-center gap-x-5 gap-y-2",children:[(0,A.jsx)("a",{href:"/account",className:"font-medium underline underline-offset-4 hover:text-foreground",children:"Customer Login"}),(0,A.jsx)("a",{href:"/account?audience=masseurs",className:"font-medium underline underline-offset-4 hover:text-foreground",children:"Masseur Login"}),(0,A.jsx)("a",{href:"/blog",className:"font-medium underline underline-offset-4 hover:text-foreground",children:"Journal"}),(0,A.jsx)("a",{href:"/legal",className:"underline underline-offset-4 hover:text-foreground",children:"Privacy policy"}),(0,A.jsx)("a",{href:"/legal#terms",className:"underline underline-offset-4 hover:text-foreground",children:"Terms of use"}),(0,A.jsx)("a",{href:"/legal#safety",className:"underline underline-offset-4 hover:text-foreground",children:"Safety and reporting"})]}),(0,A.jsxs)("p",{className:"mt-4",children:["\xA9 2026 Essential Bodywork \xB7 ",u," booking requests"]}),(0,A.jsx)("a",{href:"/account#referrals",className:"mt-4 inline-block rounded-xl border border-border px-4 py-3 font-medium text-foreground hover:bg-muted",children:"Invite a customer or masseur \xB7 earn $20 when a referred masseur joins"})]}),(0,A.jsx)(v5,{agentId:"01M0GTG1TT2XFVDPSZJM5G3Z0K",publicAgentId:"essential-bodywork-booking-concierge-01M0GTG1V087S2SP7D5DKMJ2RR",title:"Booking Concierge",suggestions:cae,placeholder:"Ask about services, timing, or privacy"})]})}
528export{uae as default}; 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.