1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"}; 2import{a as z_}from"/chunks/chunk-NBZUXRLJ.js";import{B as Dv,a as Tf,b as na,c as N_,d as Wi,e as Ji,f as $f,g as O_,h as F_,i as U_,j as B_,k as j_,l as V_,m as Z_,n as Pf,o as q_,p as Rv,q as G_,r as H_,s as Ki,t as W_,u as J_,v as Lf,w as K_,x as ru}from"/chunks/chunk-WGBE7G63.js";import{a as D_,b as wF,c as vr,d as R,e as ee,f as SF,g as j}from"/chunks/chunk-6VKH6YVR.js";var XO=wF((REe,KO)=>{"use strict";function Boe(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r,a=0;return function(...o){clearTimeout(r);let i=Date.now(),s=i-a,l=t-s;l<=0?(a=i,e.apply(this,o)):r=setTimeout(()=>{a=Date.now(),e.apply(this,o)},l)}}KO.exports=Boe});var Jr=R(ee());var Ef=R(ee());var Af=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();var X_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Y_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase());var zv=e=>{let t=Y_(e);return t.charAt(0).toUpperCase()+t.slice(1)};var nu=R(ee());var Q_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var e5=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var t5=(0,nu.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},l)=>(0,nu.createElement)("svg",{ref:l,...Q_,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Af("lucide",n),...!o&&!e5(s)&&{"aria-hidden":"true"},...s},[...i.map(([u,c])=>(0,nu.createElement)(u,c)),...Array.isArray(o)?o:[o]]));var Xe=(e,t)=>{let r=(0,Ef.forwardRef)(({className:a,...n},o)=>(0,Ef.createElement)(t5,{ref:o,iconNode:t,className:Af(`lucide-${X_(zv(e))}`,`lucide-${e}`,a),...n}));return r.displayName=zv(e),r};var IF=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],au=Xe("arrow-down",IF);var kF=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],ou=Xe("compass",kF);var _F=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],iu=Xe("corner-down-left",_F);var CF=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],su=Xe("external-link",CF);var TF=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],lu=Xe("heart",TF);var $F=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Wa=Xe("loader-circle",$F);var PF=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Xi=Xe("map-pin",PF);var LF=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],uu=Xe("message-circle",LF);var AF=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],cu=Xe("moon",AF);var EF=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],du=Xe("save",EF);var MF=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
2],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Kr=Xe("sparkles",MF);var RF=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],fu=Xe("square",RF);var DF=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],pu=Xe("sun",DF);var zF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yo=Xe("x",zF);var tc=R(j(),1),vn=R(ee(),1);var r5=R(ee(),1),Yi=(0,r5.createContext)({});var n5=R(ee(),1);function Qi(e){let t=(0,n5.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Mf=R(ee(),1);var a5=typeof window<"u";var Rf=a5?Mf.useLayoutEffect:Mf.useEffect;var qy=R(j(),1),m3=R(ee(),1),Qu=R(ee(),1);var o5=R(ee(),1),Ja=(0,o5.createContext)(null);var f3=R(j(),1);function Qo(e,t){e.indexOf(t)===-1&&e.push(t)}function Ka(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var Rt=(e,t,r)=>r>t?t:r<e?e:r;var aa=()=>{},Xr=()=>{};var nr={};var mu=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function hu(e){return typeof e=="object"&&e!==null}var gu=e=>/^0[^.\s]+$/u.test(e);function vu(e){let t;return()=>(t===void 0&&(t=e()),t)}var vt=e=>e;var NF=(e,t)=>r=>t(e(r)),mn=(...e)=>e.reduce(NF);var Pn=(e,t,r)=>{let a=t-e;return a===0?1:(r-e)/a};var oa=class{constructor(){this.subscriptions=[]}add(t){return Qo(this.subscriptions,t),()=>Ka(this.subscriptions,t)}notify(t,r,a){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,a);else for(let o=0;o<n;o++){let i=this.subscriptions[o];i&&i(t,r,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var Tt=e=>e*1e3,jt=e=>e/1e3;function yu(e,t){return t?e*(1e3/t):0}var i5=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,OF=1e-7,FF=12;function UF(e,t,r,a,n){let o,i,s=0;do i=t+(r-t)/2,o=i5(i,a,n)-e,o>0?r=i:t=i;while(Math.abs(o)>OF&&++s<FF);return i}function Xa(e,t,r,a){if(e===t&&r===a)return vt;let n=o=>UF(o,0,1,e,r);return o=>o===0||o===1?o:i5(n(o),t,a)}var Df=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var zf=e=>t=>1-e(1-t);var Nf=Xa(.33,1.53,.69,.99),es=zf(Nf),xu=Df(es);var bu=e=>e>=1?1:(e*=2)<1?.5*es(e):.5*(2-Math.pow(2,-10*(e-1)));var wu=e=>1-Math.sin(Math.acos(e)),Su=zf(wu),Iu=Df(wu);var Nv=Xa(.42,0,1,1),Ov=Xa(0,0,.58,1),ku=Xa(.42,0,.58,1);var Fv=e=>Array.isArray(e)&&typeof e[0]!="number";var _u=e=>Array.isArray(e)&&typeof e[0]=="number";var s5={linear:vt,easeIn:Nv,easeInOut:ku,easeOut:Ov,circIn:wu,circInOut:Iu,circOut:Su,backIn:es,backInOut:xu,backOut:Nf,anticipate:bu},BF=e=>typeof e=="string",Of=e=>{if(_u(e)){Xr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,a,n]=e;return Xa(t,r,a,n)}else if(BF(e))return Xr(s5[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),s5[e];return e};var Cu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Er={value:null,addProjectionMetrics:null};function l5(e,t){let r=new Set,a=new Set,n=!1,o=!1,i=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){i.has(d)&&(c.schedule(d),e()),l++,d(s)}let c={schedule:(d,f=!1,p=!1)=>{let w=p&&n?r:a;return f&&i.add(d),w.add(d),d},cancel:d=>{a.delete(d),i.delete(d)},process:d=>{if(s=d,n){o=!0;return}n=!0;let f=r;r=a,a=f,r.forEach(u),t&&Er.value&&Er.value.frameloop[t].push(l),l=0,r.clear(),n=!1,o&&(o=!1,c.process(d))}};return c}var jF=40;function Ff(e,t){let r=!1,a=!0,n={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,i=Cu.reduce((x,C)=>(x[C]=l5(o,t?C:void 0),x),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:g}=i,w=()=>{let x=nr.useManualTiming,C=x?n.timestamp:performance.now();r=!1,x||(n.delta=a?1e3/60:Math.max(Math.min(C-n.timestamp,jF),1)),n.timestamp=C,n.isProcessing=!0,s.process(n),l.process(n),u.process(n),c.process(n),d.process(n),f.process(n),p.process(n),g.process(n),n.isProcessing=!1,r&&t&&(a=!1,e(w))},y=()=>{r=!0,a=!0,n.isProcessing||e(w)};return{schedule:Cu.reduce((x,C)=>{let _=i[C];return x[C]=(P,D=!1,N=!1)=>(r||y(),_.schedule(P,D,N)),x},{}),cancel:x=>{for(let C=0;C<Cu.length;C++)i[Cu[C]].cancel(x)},state:n,steps:i}}var{schedule:Ce,cancel:yr,state:It,steps:Tu}=Ff(typeof requestAnimationFrame<"u"?requestAnimationFrame:vt,!0);var Uf;function VF(){Uf=void 0}var yt={now:()=>(Uf===void 0&&yt.set(It.isProcessing||nr.useManualTiming?It.timestamp:performance.now()),Uf),set:e=>{Uf=e,queueMicrotask(VF)}};var Ln={layout:0,mainThread:0,waapi:0};var u5=e=>t=>typeof t=="string"&&t.startsWith(e),Bf=u5("--"),ZF=u5("var(--"),ts=e=>ZF(e)?qF.test(e.split("/*")[0].trim()):!1,qF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Uv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var An={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ia={...An,transform:e=>Rt(0,1,e)},$u={...An,default:1};var Ya=e=>Math.round(e*1e5)/1e5;var rs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function c5(e){return e==null}var d5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ns=(e,t)=>r=>!!(typeof r=="string"&&d5.test(r)&&r.startsWith(e)||t&&!c5(r)&&Object.prototype.hasOwnProperty.call(r,t)),jf=(e,t,r)=>a=>{if(typeof a!="string")return a;let[n,o,i,s]=a.match(rs);return{[e]:parseFloat(n),[t]:parseFloat(o),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var GF=e=>Rt(0,255,e),Bv={...An,transform:e=>Math.round(GF(e))},En={test:ns("rgb","red"),parse:jf("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+Bv.transform(e)+", "+Bv.transform(t)+", "+Bv.transform(r)+", "+Ya(ia.transform(a))+")"};function HF(e){let t="",r="",a="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),a=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),a=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,a+=a,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alph
2a:n?parseInt(n,16)/255:1}}var Pu={test:ns("#"),parse:HF,transform:En.transform};var Lu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hn=Lu("deg"),Xt=Lu("%"),ie=Lu("px"),jv=Lu("vh"),Vv=Lu("vw"),Vf={...Xt,parse:e=>Xt.parse(e)/100,transform:e=>Xt.transform(e*100)};var Qa={test:ns("hsl","hue"),parse:jf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+Xt.transform(Ya(t))+", "+Xt.transform(Ya(r))+", "+Ya(ia.transform(a))+")"};var pt={test:e=>En.test(e)||Pu.test(e)||Qa.test(e),parse:e=>En.test(e)?En.parse(e):Qa.test(e)?Qa.parse(e):Pu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?En.transform(e):Qa.transform(e),getAnimatableNone:e=>{let t=pt.parse(e);return t.alpha=0,pt.transform(t)}};var f5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WF(e){return isNaN(e)&&typeof e=="string"&&(e.match(rs)?.length||0)+(e.match(f5)?.length||0)>0}var m5="number",h5="color",JF="var",KF="var(",p5="${}",XF=/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 eo(e){let t=e.toString(),r=[],a={color:[],number:[],var:[]},n=[],o=0,s=t.replace(XF,l=>(pt.test(l)?(a.color.push(o),n.push(h5),r.push(pt.parse(l))):l.startsWith(KF)?(a.var.push(o),n.push(JF),r.push(l)):(a.number.push(o),n.push(m5),r.push(parseFloat(l))),++o,p5)).split(p5);return{values:r,split:s,indexes:a,types:n}}function YF(e){return eo(e).values}function g5({split:e,types:t}){let r=e.length;return a=>{let n="";for(let o=0;o<r;o++)if(n+=e[o],a[o]!==void 0){let i=t[o];i===m5?n+=Ya(a[o]):i===h5?n+=pt.transform(a[o]):n+=a[o]}return n}}function QF(e){return g5(eo(e))}var eU=e=>typeof e=="number"?0:pt.test(e)?pt.getAnimatableNone(e):e,tU=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:eU(e);function rU(e){let t=eo(e);return g5(t)(t.values.map((a,n)=>tU(a,t.split[n])))}var Dt={test:WF,parse:YF,createTransformer:QF,getAnimatableNone:rU};function Zv(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 v5({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let n=0,o=0,i=0;if(!t)n=o=i=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=Zv(l,s,e+1/3),o=Zv(l,s,e),i=Zv(l,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:a}}function as(e,t){return r=>r>0?t:e}var Oe=(e,t,r)=>e+(t-e)*r;var qv=(e,t,r)=>{let a=e*e,n=r*(t*t-a)+a;return n<0?0:Math.sqrt(n)},nU=[Pu,En,Qa],aU=e=>nU.find(t=>t.test(e));function y5(e){let t=aU(e);if(aa(!!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===Qa&&(r=v5(r)),r}var Gv=(e,t)=>{let r=y5(e),a=y5(t);if(!r||!a)return as(e,t);let n={...r};return o=>(n.red=qv(r.red,a.red,o),n.green=qv(r.green,a.green,o),n.blue=qv(r.blue,a.blue,o),n.alpha=Oe(r.alpha,a.alpha,o),En.transform(n))};var Zf=new Set(["none","hidden"]);function x5(e,t){return Zf.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function oU(e,t){return r=>Oe(e,t,r)}function qf(e){return typeof e=="number"?oU:typeof e=="string"?ts(e)?as:pt.test(e)?Gv:lU:Array.isArray(e)?b5:typeof e=="object"?pt.test(e)?Gv:iU:as}function b5(e,t){let r=[...e],a=r.length,n=e.map((o,i)=>qf(o)(o,t[i]));return o=>{for(let i=0;i<a;i++)r[i]=n[i](o);return r}}function iU(e,t){let r={...e,...t},a={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(a[n]=qf(e[n])(e[n],t[n]));return n=>{for(let o in a)r[o]=a[o](n);return r}}function sU(e,t){let r=[],a={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let o=t.types[n],i=e.indexes[o][a[o]],s=e.values[i]??0;r[n]=s,a[o]++}return r}var lU=(e,t)=>{let r=Dt.createTransformer(t),a=eo(e),n=eo(t);return a.indexes.var.length===n.indexes.var.length&&a.indexes.color.length===n.indexes.color.length&&a.indexes.number.length>=n.indexes.number.length?Zf.has(e)&&!n.values.length||Zf.has(t)&&!a.values.length?x5(e,t):mn(b5(sU(a,n),n.values),r):(aa(!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"),as(e,t))};function Gf(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Oe(e,t,r):qf(e)(e,t)}var w5=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>Ce.update(t,r),stop:()=>yr(t),now:()=>It.isProcessing?It.timestamp:yt.now()}};var Hf=(e,t,r=10)=>{let a="",n=Math.max(Math.round(t/r),2);for(let o=0;o<n;o++)a+=Math.round(e(o/(n-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`};function os(e){let t=0,r=50,a=e.next(t);for(;!a.done&&t<2e4;)t+=r,a=e.next(t);return t>=2e4?1/0:t}function S5(e,t=100,r){let a=r({...e,keyframes:[0,t]}),n=Math.min(os(a),2e4);return{type:"keyframes",ease:o=>a.next(n*o).value/t,duration:jt(n)}}var xt={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 Jv(e,t){return e*Math.sqrt(1-t*t)}var uU=12;function cU(e,t,r){let a=r;for(let n=1;n<uU;n++)a=a-e(a)/t(a);return a}var Wv=.001;function dU({duration:e=xt.duration,bounce:t=xt.bounce,velocity:r=xt.velocity,mass:a=xt.mass}){let n,o;aa(e<=Tt(xt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=Rt(xt.minDamping,xt.maxDamping,i),e=Rt(xt.minDuration,xt.maxDuration,jt(e)),i<1?(n=u=>{let c=u*i,d=c*e,f=c-r,p=Jv(u,i),g=Math.exp(-d);return Wv-f/p*g},o=u=>{let d=u*i*e,f=d*r+r,p=Math.pow(i,2)*Math.pow(u,2)*e,g=Math.exp(-d),w=Jv(Math.pow(u,2),i);return(-n(u)+Wv>0?-1:1)*((f-p)*g)/w}):(n=u=>{let c=Math.exp(-u*e),d=(u-r)*e+1;return-Wv+c*d},o=u=>{let c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});let s=5/e,l=cU(n,o,s);
2if(e=Tt(e),isNaN(l))return{stiffness:xt.stiffness,damping:xt.damping,duration:e};{let u=Math.pow(l,2)*a;return{stiffness:u,damping:i*2*Math.sqrt(a*u),duration:e}}}var fU=["duration","bounce"],pU=["stiffness","damping","mass"];function I5(e,t){return t.some(r=>e[r]!==void 0)}function mU(e){let t={velocity:xt.velocity,stiffness:xt.stiffness,damping:xt.damping,mass:xt.mass,isResolvedFromDuration:!1,...e};if(!I5(e,pU)&&I5(e,fU))if(t.velocity=0,e.visualDuration){let r=e.visualDuration,a=2*Math.PI/(r*1.2),n=a*a,o=2*Rt(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:xt.mass,stiffness:n,damping:o}}else{let r=dU({...e,velocity:0});t={...t,...r,mass:xt.mass},t.isResolvedFromDuration=!0}return t}function is(e=xt.visualDuration,t=xt.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:n}=r,o=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=mU({...r,velocity:-jt(r.velocity||0)}),g=f||0,w=u/(2*Math.sqrt(l*c)),y=i-o,I=jt(Math.sqrt(l/c)),S=Math.abs(y)<5;a||(a=S?xt.restSpeed.granular:xt.restSpeed.default),n||(n=S?xt.restDelta.granular:xt.restDelta.default);let x,C,_,P,D,N;if(w<1)_=Jv(I,w),P=(g+w*I*y)/_,x=O=>{let oe=Math.exp(-w*I*O);return i-oe*(P*Math.sin(_*O)+y*Math.cos(_*O))},D=w*I*P+y*_,N=w*I*y-P*_,C=O=>Math.exp(-w*I*O)*(D*Math.sin(_*O)+N*Math.cos(_*O));else if(w===1){x=oe=>i-Math.exp(-I*oe)*(y+(g+I*y)*oe);let O=g+I*y;C=oe=>Math.exp(-I*oe)*(I*O*oe-g)}else{let O=I*Math.sqrt(w*w-1);x=pe=>{let Me=Math.exp(-w*I*pe),Be=Math.min(O*pe,300);return i-Me*((g+w*I*y)*Math.sinh(Be)+O*y*Math.cosh(Be))/O};let oe=(g+w*I*y)/O,Y=w*I*oe-y*O,He=w*I*y-oe*O;C=pe=>{let Me=Math.exp(-w*I*pe),Be=Math.min(O*pe,300);return Me*(Y*Math.sinh(Be)+He*Math.cosh(Be))}}let A={calculatedDuration:p&&d||null,velocity:O=>Tt(C(O)),next:O=>{if(!p&&w<1){let Y=Math.exp(-w*I*O),He=Math.sin(_*O),pe=Math.cos(_*O),Me=i-Y*(P*He+y*pe),Be=Tt(Y*(D*He+N*pe));return s.done=Math.abs(Be)<=a&&Math.abs(i-Me)<=n,s.value=s.done?i:Me,s}let oe=x(O);if(p)s.done=O>=d;else{let Y=Tt(C(O));s.done=Math.abs(Y)<=a&&Math.abs(i-oe)<=n}return s.value=s.done?i:oe,s},toString:()=>{let O=Math.min(os(A),2e4),oe=Hf(Y=>A.next(O*Y).value,O,30);return O+"ms "+oe},toTransition:()=>{}};return A}is.applyToOptions=e=>{let t=S5(e,100,is);return e.ease=t.ease,e.duration=Tt(t.duration),e.type="keyframes",e};var hU=5;function Wf(e,t,r){let a=Math.max(t-hU,0);return yu(r-e(a),t-a)}function Au({keyframes:e,velocity:t=0,power:r=.8,timeConstant:a=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:i,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],f={done:!1,value:d},p=N=>s!==void 0&&N<s||l!==void 0&&N>l,g=N=>s===void 0?l:l===void 0||Math.abs(s-N)<Math.abs(l-N)?s:l,w=r*t,y=d+w,I=i===void 0?y:i(y);I!==y&&(w=I-d);let S=N=>-w*Math.exp(-N/a),x=N=>I+S(N),C=N=>{let A=S(N),O=x(N);f.done=Math.abs(A)<=u,f.value=f.done?I:O},_,P,D=N=>{p(f.value)&&(_=N,P=is({keyframes:[f.value,g(f.value)],velocity:Wf(x,N,f.value),damping:n,stiffness:o,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:N=>{let A=!1;return!P&&_===void 0&&(A=!0,C(N),D(N)),_!==void 0&&N>=_?P.next(N-_):(!A&&C(N),f)}}}function gU(e,t,r){let a=[],n=r||nr.mix||Gf,o=e.length-1;for(let i=0;i<o;i++){let s=n(e[i],e[i+1]);if(t){let l=Array.isArray(t)?t[i]||vt:t;s=mn(l,s)}a.push(s)}return a}function k5(e,t,{clamp:r=!0,ease:a,mixer:n}={}){let o=e.length;if(Xr(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=gU(t,a,n),l=s.length,u=c=>{if(i&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let f=Pn(e[d],e[d+1],c);return s[d](f)};return r?c=>u(Rt(e[0],e[o-1],c)):u}function _5(e,t){let r=e[e.length-1];for(let a=1;a<=t;a++){let n=Pn(0,t,a);e.push(Oe(r,1,n))}}function C5(e){let t=[0];return _5(t,e.length-1),t}function T5(e,t){return e.map(r=>r*t)}function vU(e,t){return e.map(()=>t||ku).splice(0,e.length-1)}function ei({duration:e=300,keyframes:t,times:r,ease:a="easeInOut"}){let n=Fv(a)?a.map(Of):Of(a),o={done:!1,value:t[0]},i=T5(r&&r.length===t.length?r:C5(t),e),s=k5(i,t,{ease:Array.isArray(n)?n:vU(t,n)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}var yU=e=>e!==null;function to(e,{repeat:t,repeatType:r="loop"},a,n=1){let o=e.filter(yU),s=n<0||t&&r!=="loop"&&t%2===1?0:o.length-1;return!s||a===void 0?o[s]:a}var xU={decay:Au,inertia:Au,tween:ei,keyframes:ei,spring:is};function Jf(e){typeof e.type=="string"&&(e.type=xU[e.type])}var ro=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 bU=e=>e/100,sa=class extends ro{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!==yt.now()&&this.tick(yt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},Ln.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Jf(t);
2let{type:r=ei,repeat:a=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=t,{keyframes:s}=t,l=r||ei;l!==ei&&typeof s[0]!="number"&&(this.mixKeyframes=mn(bU,Gf(s[0],s[1])),s=[0,100]);let u=l({...t,keyframes:s});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=os(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(a+1)-n,this.generator=u}updateTime(t){let r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){let{generator:a,totalDuration:n,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return a.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:g,onUpdate:w,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 I=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?I<0:I>n;this.currentTime=Math.max(I,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let x=this.currentTime,C=a;if(d){let N=Math.min(this.currentTime,n)/s,A=Math.floor(N),O=N%1;!O&&N>=1&&(O=1),O===1&&A--,A=Math.min(A,d+1),A%2&&(f==="reverse"?(O=1-O,p&&(O-=p/s)):f==="mirror"&&(C=i)),x=Rt(0,1,O)*s}let _;S?(this.delayState.value=c[0],_=this.delayState):_=C.next(x),o&&!S&&(_.value=o(_.value));let{done:P}=_;!S&&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!==Au&&(_.value=to(c,this.options,y,this.speed)),w&&w(_.value),D&&this.finish(),_}then(t,r){return this.finished.then(t,r)}get duration(){return jt(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+jt(t)}get time(){return jt(this.currentTime)}set time(t){t=Tt(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 Wf(a=>this.generator.next(a).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(yt.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=jt(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=w5,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),this.options.onPlay?.();let a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=r??a),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(yt.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,Ln.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 $5(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ti=e=>e*180/Math.PI,Kv=e=>{let t=ti(Math.atan2(e[1],e[0]));return Xv(t)},wU={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Kv,rotateZ:Kv,skewX:e=>ti(Math.atan(e[1])),skewY:e=>ti(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xv=e=>(e=e%360,e<0&&(e+=360),e),P5=Kv,L5=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),A5=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),SU={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:L5,scaleY:A5,scale:e=>(L5(e)+A5(e))/2,rotateX:e=>Xv(ti(Math.atan2(e[6],e[5]))),rotateY:e=>Xv(ti(Math.atan2(-e[2],e[0]))),rotateZ:P5,rotate:P5,skewX:e=>ti(Math.atan(e[4])),skewY:e=>ti(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Kf(e){return e.includes("scale")?1:0}function Xf(e,t){if(!e||e==="none")return Kf(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),a,n;if(r)a=SU,n=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=wU,n=s}if(!n)return Kf(t);let o=a[t],i=n[1].split(",").map(IU);return typeof o=="function"?o(i):i[o]}var E5=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return Xf(r,t)};function IU(e){return parseFloat(e.trim())}var Mn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yr=new Set(Mn);var Yv=e=>e===An||e===ie,kU=new Set(["x","y","z"]),_U=Mn.filter(e=>!kU.has(e));function M5(e){let t=[];
2return _U.forEach(r=>{let a=e.getValue(r);a!==void 0&&(t.push([r,a.get()]),a.set(r.startsWith("scale")?1:0))}),t}var la={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:a})=>{let n=e.max-e.min;return a==="border-box"?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:a})=>{let n=e.max-e.min;return a==="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})=>Xf(t,"x"),y:(e,{transform:t})=>Xf(t,"y")};la.translateX=la.x;la.translateY=la.y;var ri=new Set,Qv=!1,ey=!1,ty=!1;function R5(){if(ey){let e=Array.from(ri).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),r=new Map;t.forEach(a=>{let n=M5(a);n.length&&(r.set(a,n),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();let n=r.get(a);n&&n.forEach(([o,i])=>{a.getValue(o)?.set(i)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}ey=!1,Qv=!1,ri.forEach(e=>e.complete(ty)),ri.clear()}function D5(){ri.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ey=!0)})}function z5(){ty=!0,D5(),R5(),ty=!1}var no=class{constructor(t,r,a,n,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=a,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(ri.add(this),Qv||(Qv=!0,Ce.read(D5),Ce.resolveKeyframes(R5))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:a,motionValue:n}=this;if(t[0]===null){let o=n?.get(),i=t[t.length-1];if(o!==void 0)t[0]=o;else if(a&&r){let s=a.readValue(r,i);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=i),n&&o===void 0&&n.set(t[0])}$5(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ri.delete(this)}cancel(){this.state==="scheduled"&&(ri.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var N5=e=>e.startsWith("--");function Yf(e,t,r){N5(t)?e.style.setProperty(t,r):e.style[t]=r}var O5={};function Qf(e,t){let r=vu(e);return()=>O5[t]??r()}var F5=Qf(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var ep=Qf(()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var ni=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`;var ry={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ni([0,.65,.55,1]),circOut:ni([.55,0,1,.45]),backIn:ni([.31,.01,.66,-.59]),backOut:ni([.33,1.53,.69,.99])};function ny(e,t){if(e)return typeof e=="function"?ep()?Hf(e,t):"ease-out":_u(e)?ni(e):Array.isArray(e)?e.map(r=>ny(r,t)||ry.easeOut):ry[e]}function U5(e,t,r,{delay:a=0,duration:n=300,repeat:o=0,repeatType:i="loop",ease:s="easeOut",times:l}={},u=void 0){let c={[t]:r};l&&(c.offset=l);let d=ny(s,n);Array.isArray(d)&&(c.easing=d),Er.value&&Ln.waapi++;let f={delay:a,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"};u&&(f.pseudoElement=u);let p=e.animate(c,f);return Er.value&&p.finished.finally(()=>{Ln.waapi--}),p}function tp(e){return typeof e=="function"&&"applyToOptions"in e}function B5({type:e,...t}){return tp(e)&&ep()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var ss=class extends ro{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:r,name:a,keyframes:n,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=i,this.options=t,Xr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=B5(t);this.animation=U5(r,a,n,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let c=to(n,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(c),Yf(r,a,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return jt(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+jt(t)}get time(){return jt(Number(this.animation.currentTime)||0)}set time(t){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Tt(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:a,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&F5()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),a&&(this.animation.rangeEnd=a),vt):n(this)}};var j5={anticipate:bu,backInOut:xu,circInOut:Iu};function CU(e){return e in j5}function V5(e){typeof e.ease=="string"&&CU(e.ease)&&(e.ease=j5[e.ease])}var ay=10,rp=class extends ss{constructor(t){V5(t),Jf(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:a,onComplete:n,element:o,...i}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let s=new sa({...i,autoplay:!1}),l=Math.max(ay,yt.now()-this.startTime),u=Rt(0,ay,l-ay),c=s.sample(l).value,{name:d}=this.options;o&&d&&Yf(o,d,c),r.setWithVelocity(s.sample(Math.max(0,l-u)).value,c,u),s.stop()}};var oy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Dt.test(e)||e==="0")&&!e.startsWith("url("));function TU(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 Z5(e,t,r,a){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let o=e[e.length-1],i=oy(n,t),s=oy(o,t);return aa(i===s,`You are trying to animate ${t} from "${n}" to "${o}". "${i?o:n}" is not an animatable value.`,"value-not-animatable"),!i||!s?!1:TU(e)||(r==="spring"||tp(r))&&a}function Eu(e){e.duration=0,e.type="keyframes"}var np=new Set(["opacity","clipPath","filter","transform"]);
2var $U=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function q5(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&$U.test(e[t]))return!0;return!1}var PU=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),LU=vu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function G5(e){let{motionValue:t,name:r,repeatDelay:a,repeatType:n,damping:o,type:i,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return LU()&&r&&(np.has(r)||PU.has(r)&&q5(s))&&(r!=="transform"||!c)&&!u&&!a&&n!=="mirror"&&o!==0&&i!=="inertia"}var AU=40,ap=class extends ro{constructor({autoplay:t=!0,delay:r=0,type:a="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",keyframes:s,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=yt.now();let f={autoplay:t,delay:r,type:a,repeat:n,repeatDelay:o,repeatType:i,name:l,motionValue:u,element:c,...d},p=c?.KeyframeResolver||no;this.keyframeResolver=new p(s,(g,w,y)=>this.onKeyframesResolved(g,w,f,!y),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,a,n){this.keyframeResolver=void 0;let{name:o,type:i,velocity:s,delay:l,isHandoff:u,onUpdate:c}=a;this.resolvedAt=yt.now();let d=!0;Z5(t,o,i,s)||(d=!1,(nr.instantAnimations||!l)&&c?.(to(t,a,r)),t[0]=t[t.length-1],Eu(a),a.repeat=0);let p={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>AU?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...a,keyframes:t},g=d&&!u&&G5(p),w=p.motionValue?.owner?.current,y;if(g)try{y=new rp({...p,element:w})}catch{y=new sa(p)}else y=new sa(p);y.finished.then(()=>{this.notifyFinished()}).catch(vt),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(),z5()),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 op(e,t,r,a=0,n=1){let o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),i=e.size,s=(i-1)*a;return typeof r=="function"?r(o,i):n===1?o*a:s-o*a}var EU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function MU(e){let t=EU.exec(e);if(!t)return[,];let[,r,a,n]=t;return[`--${r??a}`,n]}var RU=4;function iy(e,t,r=1){Xr(r<=RU,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,n]=MU(e);if(!a)return;let o=window.getComputedStyle(t).getPropertyValue(a);if(o){let i=o.trim();return mu(i)?parseFloat(i):i}return ts(n)?iy(n,t,r+1):n}var DU={type:"spring",stiffness:500,damping:25,restSpeed:10},zU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),NU={type:"keyframes",duration:.8},OU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},H5=(e,{keyframes:t})=>t.length>2?NU:Yr.has(e)?e.startsWith("scale")?zU(t[1]):DU:OU;function ip(e,t){if(e?.inherit&&t){let{inherit:r,...a}=e;return{...t,...a}}return e}function ls(e,t){let r=e?.[t]??e?.default??e;return r!==e?ip(r,e):r}var FU=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function W5(e){for(let t in e)if(!FU.has(t))return!0;return!1}var ai=(e,t,r,a={},n,o)=>i=>{let s=ls(a,e)||{},l=s.delay||a.delay||0,{elapsed:u=0}=a;u=u-Tt(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:f=>
2{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:n};W5(s)||Object.assign(c,H5(e,c)),c.duration&&(c.duration=Tt(c.duration)),c.repeatDelay&&(c.repeatDelay=Tt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Eu(c),c.delay===0&&(d=!0)),(nr.instantAnimations||nr.skipAnimations||n?.shouldSkipAnimations)&&(d=!0,Eu(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!o&&t.get()!==void 0){let f=to(c.keyframes,s);if(f!==void 0){Ce.update(()=>{c.onUpdate(f),c.onComplete()});return}}return s.isSync?new sa(c):new ap(c)};function J5(e){let t=[{},{}];return e?.values.forEach((r,a)=>{t[0][a]=r.get(),t[1][a]=r.getVelocity()}),t}function oi(e,t,r,a){if(typeof t=="function"){let[n,o]=J5(a);t=t(r!==void 0?r:e.custom,n,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,o]=J5(a);t=t(r!==void 0?r:e.custom,n,o)}return t}function Mr(e,t,r){let a=e.getProps();return oi(a,t,r!==void 0?r:a.custom,e)}var sp=new Set(["width","height","top","left","right","bottom",...Mn]);var K5=30,UU=e=>!isNaN(parseFloat(e)),X5={current:void 0},sy=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let n=yt.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=yt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=UU(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 oa);let a=this.events[t].add(r);return t==="change"?()=>{a(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:a}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,a){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}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 X5.current&&X5.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>K5)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,K5);return yu(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 gn(e,t){return new sy(e,t)}var Mu=e=>Array.isArray(e);function BU(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,gn(r))}function jU(e){return Mu(e)?e[e.length-1]||0:e}function Y5(e,t){let r=Mr(e,t),{transitionEnd:a={},transition:n={},...o}=r||{};o={...o,...a};for(let i in o){let s=jU(o[i]);BU(e,i,s)}}var Je=e=>!!(e&&e.getVelocity);function Q5(e){return!!(Je(e)&&e.add)}function us(e,t){let r=e.getValue("willChange");if(Q5(r))return r.add(t);if(!r&&nr.WillChange){let a=new nr.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function cs(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var eC="framerAppearId",Ru="data-"+cs(eC);function lp(e){return e.props[Ru]}function VU({protectedKeys:e,needsAnimating:t},r){let a=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,a}
2function up(e,t,{delay:r=0,transitionOverride:a,type:n}={}){let{transition:o,transitionEnd:i,...s}=t,l=e.getDefaultTransition();o=o?ip(o,l):l;let u=o?.reduceMotion;a&&(o=a);let c=[],d=n&&e.animationState&&e.animationState.getState()[n];for(let f in s){let p=e.getValue(f,e.latestValues[f]??null),g=s[f];if(g===void 0||d&&VU(d,f))continue;let w={delay:r,...ls(o||{},f)},y=p.get();if(y!==void 0&&!p.isAnimating()&&!Array.isArray(g)&&g===y&&!w.velocity){Ce.update(()=>p.set(g));continue}let I=!1;if(window.MotionHandoffAnimation){let C=lp(e);if(C){let _=window.MotionHandoffAnimation(C,f,Ce);_!==null&&(w.startTime=_,I=!0)}}us(e,f);let S=u??e.shouldReduceMotion;p.start(ai(f,p,g,S&&sp.has(f)?{type:!1}:w,e,I));let x=p.animation;x&&c.push(x)}if(i){let f=()=>Ce.update(()=>{i&&Y5(e,i)});c.length?Promise.all(c).then(f):f()}return c}function cp(e,t,r={}){let a=Mr(e,t,r.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(n=r.transitionOverride);let o=a?()=>Promise.all(up(e,a,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=n;return ZU(e,t,l,u,c,d,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[l,u]=s==="beforeChildren"?[o,i]:[i,o];return l().then(()=>u())}else return Promise.all([o(),i(r.delay)])}function ZU(e,t,r=0,a=0,n=0,o=1,i){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(cp(l,t,{...i,delay:r+(typeof a=="function"?0:a)+op(e.variantChildren,l,a,n,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function tC(e,t,r={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let n=t.map(o=>cp(e,o,r));a=Promise.all(n)}else if(typeof t=="string")a=cp(e,t,r);else{let n=typeof t=="function"?Mr(e,t,r.custom):t;a=Promise.all(up(e,n,r))}return a.then(()=>{e.notify("AnimationComplete",t)})}var rC={test:e=>e==="auto",parse:e=>e};var dp=e=>t=>t.test(e);var ly=[An,ie,Xt,hn,Vv,jv,rC],uy=e=>ly.find(dp(e));function nC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gu(e):!0}var qU=new Set(["brightness","contrast","saturate","opacity"]);function GU(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=r.match(rs)||[];if(!a)return e;let n=r.replace(a,""),o=qU.has(t)?1:0;return a!==r&&(o*=100),t+"("+o+n+")"}var HU=/\b([a-z-]*)\(.*?\)/gu,Du={...Dt,getAnimatableNone:e=>{let t=e.match(HU);return t?t.map(GU).join(" "):e}};var zu={...Dt,getAnimatableNone:e=>{let t=Dt.parse(e);return Dt.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}};var cy={...An,transform:Math.round};var aC={rotate:hn,rotateX:hn,rotateY:hn,rotateZ:hn,scale:$u,scaleX:$u,scaleY:$u,scaleZ:$u,skew:hn,skewX:hn,skewY:hn,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:ia,originX:Vf,originY:Vf,originZ:ie};var ds={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,inset:ie,insetBlock:ie,insetBlockStart:ie,insetBlockEnd:ie,insetInline:ie,insetInlineStart:ie,insetInlineEnd:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,paddingBlock:ie,paddingBlockStart:ie,paddingBlockEnd:ie,paddingInline:ie,paddingInlineStart:ie,paddingInlineEnd:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,marginBlock:ie,marginBlockStart:ie,marginBlockEnd:ie,marginInline:ie,marginInlineStart:ie,marginInlineEnd:ie,fontSize:ie,backgroundPositionX:ie,backgroundPositionY:ie,...aC,zIndex:cy,fillOpacity:ia,strokeOpacity:ia,numOctaves:cy};var WU={...ds,color:pt,backgroundColor:pt,outlineColor:pt,fill:pt,stroke:pt,borderColor:pt,borderTopColor:pt,borderRightColor:pt,borderBottomColor:pt,borderLeftColor:pt,filter:Du,WebkitFilter:Du,mask:zu,WebkitMask:zu},fp=e=>WU[e];var JU=new Set([Du,zu]);function pp(e,t){let r=fp(e);return JU.has(r)||(r=Dt),r.getAnimatableNone?r.getAnimatableNone(t):void 0}
2var KU=new Set(["auto","none","0"]);function oC(e,t,r){let a=0,n;for(;a<e.length&&!n;){let o=e[a];typeof o=="string"&&!KU.has(o)&&eo(o).values.length&&(n=e[a]),a++}if(n&&r)for(let o of t)e[o]=pp(r,n)}var mp=class extends no{constructor(t,r,a,n,o){super(t,r,a,n,o,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:a}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),ts(d))){let f=iy(d,r.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!sp.has(a)||t.length!==2)return;let[n,o]=t,i=uy(n),s=uy(o),l=Uv(n),u=Uv(o);if(l!==u&&la[a]){this.needsMeasurement=!0;return}if(i!==s)if(Yv(i)&&Yv(s))for(let c=0;c<t.length;c++){let d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else la[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,a=[];for(let n=0;n<t.length;n++)(t[n]===null||nC(t[n]))&&a.push(n);a.length&&oC(t,a,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=la[a](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&t.getValue(a,n).jump(n,!1)}measureEndState(){let{element:t,name:r,unresolvedKeyframes:a}=this;if(!t||!t.current)return;let n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);let o=a.length-1,i=a[o];a[o]=la[r](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEac
2h(([s,l])=>{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}};function hp(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let n=r?.[e]??a.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(a=>a!=null)}var gp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ii(e){return hu(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:si,cancel:XU}=Ff(queueMicrotask,!1);var Qr={x:!1,y:!1};function vp(){return Qr.x||Qr.y}function dy(e){return e==="x"||e==="y"?Qr[e]?null:(Qr[e]=!0,()=>{Qr[e]=!1}):Qr.x||Qr.y?null:(Qr.x=Qr.y=!0,()=>{Qr.x=Qr.y=!1})}function yp(e,t){let r=hp(e),a=new AbortController,n={passive:!0,...t,signal:a.signal};return[r,n,()=>a.abort()]}function YU(e){return!(e.pointerType==="touch"||vp())}function fy(e,t,r={}){let[a,n,o]=yp(e,r);return a.forEach(i=>{let s=!1,l=!1,u,c=()=>{i.removeEventListener("pointerleave",g)},d=y=>{u&&(u(y),u=void 0),c()},f=y=>{s=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(y))},p=()=>{s=!0,window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",f,n)},g=y=>{if(y.pointerType!=="touch"){if(s){l=!0;return}d(y)}},w=y=>{if(!YU(y))return;l=!1;let I=t(i,y);typeof I=="function"&&(u=I,i.addEventListener("pointerleave",g,n))};i.addEventListener("pointerenter",w,n),i.addEventListener("pointerdown",p,n)}),o}var py=(e,t)=>t?e===t?!0:py(e,t.parentElement):!1;var li=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var QU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function my(e){return QU.has(e.tagName)||e.isContentEditable===!0}var eB=new Set(["INPUT","SELECT","TEXTAREA"]);function hy(e){return eB.has(e.tagName)||e.isContentEditable===!0}var fs=new WeakSet;function iC(e){return t=>{t.key==="Enter"&&e(t)}}function gy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var sC=(e,t)=>{let r=e.currentTarget;if(!r)return;let a=iC(()=>{if(fs.has(r))return;gy(r,"down");let n=iC(()=>{gy(r,"up")}),o=()=>gy(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",o,t)});r.addEventListener("keydown",a,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",a),t)};function lC(e){return li(e)&&!vp()}var uC=new WeakSet;function vy(e,t,r={}){let[a,n,o]=yp(e,r),i=s=>{let l=s.currentTarget;if(!lC(s)||uC.has(s))return;fs.add(l),r.stopPropagation&&uC.add(s);let u=t(l,s),c=(p,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),fs.has(l)&&fs.delete(l),lC(p)&&typeof u=="function"&&u(p,{success:g})},d=p=>{c(p,l===window||l===document||r.useGlobalTarget||py(l,p.target))},f=p=>{c(p,!1)};window.addEventListener("pointerup",d,n),window.addEventListener("pointercancel",f,n)};return a.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",i,n),ii(s)&&(s.addEventListener("focus",u=>sC(u,n)),!my(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}function ps(e){return hu(e)&&"ownerSVGElement"in e}var xp=new WeakMap,bp,cC=(e,t,r)=>(a,n)=>n&&n[0]?n[0][e+"Size"]:ps(a)&&"getBBox"in a?a.getBBox()[t]:a[r],tB=cC("inline","width","offsetWidth"),rB=cC("block","height","offsetHeight");function nB({target:e,borderBoxSize:t}){xp.get(e)?.forEach(r=>{r(e,{get width(){return tB(e,t)},get height(){return rB(e,t)}})})}function aB(e){e.forEach(nB)}function oB(){typeof ResizeObserver>"u"||(bp=new ResizeObserver(aB))}function dC(e,t){bp||oB();let r=hp(e);return r.forEach(a=>{let n=xp.get(a);n||(n=new Set,xp.set(a,n)),n.add(t),bp?.observe(a)}),()=>{r.forEach(a=>{let n=xp.get(a);n?.delete(t),n?.size||bp?.unobserve(a)})}}var wp=new Set,ms;function iB(){ms=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};wp.forEach(t=>t(e))},window.addEventListener("resize",ms)}function fC(e){return wp.add(e),ms||iB(),()=>{wp.delete(e),!wp.size&&typeof ms=="function"&&(window.removeEventListener("resize",ms),ms=void 0)}}function Sp(e,t){return typeof e=="function"?fC(e):dC(e,t)}function pC(e){return ps(e)&&e.tagName==="svg"}var sB=[...ly,pt,Dt],mC=e=>sB.find(dp(e));var yy=()=>({translate:0,scale:1,origin:0,originPoint:0}),ao=()=>({x:yy(),y:yy()}),xy=()=>({min:0,max:0}),mt=()=>({x:xy(),y:xy()});var hC=new WeakMap;function ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rn(e){return typeof e=="string"||Array.isArray(e)}var Ip=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nu=["initial",...Ip];function oo(e){return ua(e.animate)||Nu.some(t=>Rn(e[t]))}function Ou(e){return!!(oo(e)||e.variants)}function gC(e,t,r){for(let a in t){let n=t[a],o=r[a];if(Je(n))e.addValue(a,n);else if(Je(o))e.addValue(a,gn(n,{owner:e}));else if(o!==n)if(e.hasValue(a)){let i=e.getValue(a);i.liveStyle===!0?i.jump(n):i.hasAnimated||i.set(n)}else{let i=e.getStaticValue(a);e.addValue(a,gn(i!==void 0?i:n,{owner:e}))}}for(let a in r)t[a]===void 0&&e.removeValue(a);return t}var Fu={current:null},kp={current:!1};var lB=typeof window<"u";function vC(){if(kp.current=!0,!!lB)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fu.current=e.matches;e.addEventListener("change",t),t()}else Fu.current=!1}var yC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_p={};function Bu(e){_p=e}function by(){return _p}var Uu=class{scrapeMotionValuesFromProps(t,r,a){return{}}constructor({parent:t,props:r,presenceContext:a,reducedMotionConfig:n,skipAnimations:o,blockInitialAnimation:i,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=no,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 p=yt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Ce.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=oo(r),this.isVariantNode=Ou(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(let p in f){let g=f[p];u[p]!==void 0&&Je(g)&&g.set(u[p])}}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,hC.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,a)=>this.bindToMotionValue(a,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(kp.current||vC(),this.shouldReduceMotion=Fu.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(),yr(this.notifyUpdate),yr(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&&np.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:l,ease:u,duration:c}=r.accelerate,d=new ss({element:this.current,name:t,keyframes:s,times:l,ease:u,duration:Tt(c)}),f=i(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}let a=Yr.has(t);a&&this.onBindTransform&&this.onBindTransform();let n=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{n(),o&&o(),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 _p){let r=_p[t];if(!r)continue;let{isEnabled:a,Feature:n}=r;if(!this.features[t]&&n&&a(this.props)&&(this.features[t]=new n(this)),this.features[t]){let o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mt()}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 a=0;a<yC.length;a++){let n=yC[a];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let o="on"+n,i=t[o];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=gC(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 a=this.values.get(t);r!==a&&(a&&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 a=this.values.get(t);return a===void 0&&r!==void 0&&(a=gn(r===null?void 0:r,{owner:this}),this.addValue(t,a)),a}readValue(t,r){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);
2return a!=null&&(typeof a=="string"&&(mu(a)||gu(a))?a=parseFloat(a):!mC(a)&&Dt.test(r)&&(a=pp(t,r)),this.setBaseTarget(t,Je(a)?a.get():a)),Je(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){let{initial:r}=this.props,a;if(typeof r=="string"||typeof r=="object"){let o=oi(this.props,r,this.presenceContext?.custom);o&&(a=o[t])}if(r&&a!==void 0)return a;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!Je(n)?n:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new oa),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){si.render(this.render)}};var hs=class extends Uu{constructor(){super(...arguments),this.KeyframeResolver=mp}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){let a=t.style;return a?a[r]:void 0}removeValueFromRenderState(t,{vars:r,style:a}){delete r[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Je(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};var zt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function ju({top:e,left:t,right:r,bottom:a}){return{x:{min:t,max:r},y:{min:e,max:a}}}function wy({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Sy(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:a.y,right:a.x}}function Iy(e){return e===void 0||e===1}function Cp({scale:e,scaleX:t,scaleY:r}){return!Iy(e)||!Iy(t)||!Iy(r)}function ca(e){return Cp(e)||ky(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ky(e){return xC(e.x)||xC(e.y)}function xC(e){return e&&e!=="0%"}function Vu(e,t,r){let a=e-r,n=t*a;return r+n}function bC(e,t,r,a,n){return n!==void 0&&(e=Vu(e,n,a)),Vu(e,r,a)+t}function _y(e,t=0,r=1,a,n){e.min=bC(e.min,t,r,a,n),e.max=bC(e.max,t,r,a,n)}function Cy(e,{x:t,y:r}){_y(e.x,t.translate,t.scale,t.originPoint),_y(e.y,r.translate,r.scale,r.originPoint)}var wC=.999999999999,SC=1.0000000000001;function _C(e,t,r,a=!1){let n=r.length;if(!n)return;t.x=t.y=1;let o,i;for(let s=0;s<n;s++){o=r[s],i=o.projectionDelta;let{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(en(e.x,-o.scroll.offset.x),en(e.y,-o.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Cy(e,i)),a&&ca(o.latestValues)&&Zu(e,o.latestValues,o.layout?.layoutBox))}t.x<SC&&t.x>wC&&(t.x=1),t.y<SC&&t.y>wC&&(t.y=1)}function en(e,t){e.min+=t,e.max+=t}function IC(e,t,r,a,n=.5){let o=Oe(e.min,e.max,n);_y(e,t,r,o,a)}function kC(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Zu(e,t,r){let a=r??e;IC(e.x,kC(t.x,a.x),t.scaleX,t.scale,t.originX),IC(e.y,kC(t.y,a.y),t.scaleY,t.scale,t.originY)}function Tp(e,t){return ju(Sy(e.getBoundingClientRect(),t))}function Ty(e,t,r){let a=Tp(e,r),{scroll:n}=t;return n&&(en(a.x,n.offset.x),en(a.y,n.offset.y)),a}var uB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cB=Mn.length;function CC(e,t,r){let a="",n=!0;for(let o=0;o<cB;o++){let i=Mn[o],s=e[i];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(i.startsWith("scale")?1:0);else{let u=parseFloat(s);l=i.startsWith("scale")?u===1:u===0}if(!l||r){let u=gp(s,ds[i]);if(!l){n=!1;let c=uB[i]||i;a+=`${c}(${u}) `}r&&(t[i]=u)}}return a=a.trim(),r?a=r(t,n?"":a):n&&(a="none"),a}function ui(e,t,r){let{style:a,vars:n,transformOrigin:o}=e,i=!1,s=!1;for(let l in t){let u=t[l];if(Yr.has(l)){i=!0;continue}else if(Bf(l)){n[l]=u;continue}else{let c=gp(u,ds[l]);l.startsWith("origin")?(s=!0,o[l]=c):a[l]=c}}if(t.transform||(i||r?a.transform=CC(t,e.transform,r):a.transform&&(a.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:c=0}=o;a.transformOrigin=`${l} ${u} ${c}`}}function $p(e,{style:t,vars:r},a,n){let o=e.style,i;for(i in t)o[i]=t[i];n?.applyProjectionStyles(o,a);for(i in r)o.setProperty(i,r[i])}function TC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var gs={correct:(e,t)=>
2{if(!t.target)return e;if(typeof e=="string")if(ie.test(e))e=parseFloat(e);else return e;let r=TC(e,t.target.x),a=TC(e,t.target.y);return`${r}% ${a}%`}};var $C={correct:(e,{treeScale:t,projectionDelta:r})=>{let a=e,n=Dt.parse(e);if(n.length>5)return a;let o=Dt.createTransformer(e),i=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+i]/=s,n[1+i]/=l;let u=Oe(s,l,.5);return typeof n[2+i]=="number"&&(n[2+i]/=u),typeof n[3+i]=="number"&&(n[3+i]/=u),o(n)}};var qu={borderRadius:{...gs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gs,borderTopRightRadius:gs,borderBottomLeftRadius:gs,borderBottomRightRadius:gs,boxShadow:$C};function Gu(e,{layout:t,layoutId:r}){return Yr.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!qu[e]||e==="opacity")}function ci(e,t,r){let a=e.style,n=t?.style,o={};if(!a)return o;for(let i in a)(Je(a[i])||n&&Je(n[i])||Gu(i,e)||r?.getValue(i)?.liveStyle!==void 0)&&(o[i]=a[i]);return o}function dB(e){return window.getComputedStyle(e)}var Hu=class extends hs{constructor(){super(...arguments),this.type="html",this.renderInstance=$p}readValueFromInstance(t,r){if(Yr.has(r))return this.projection?.isProjecting?Kf(r):E5(t,r);{let a=dB(t),n=(Bf(r)?a.getPropertyValue(r):a[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Tp(t,r)}build(t,r,a){ui(t,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,r,a){return ci(t,r,a)}};var fB={offset:"stroke-dashoffset",array:"stroke-dasharray"},pB={offset:"strokeDashoffset",array:"strokeDasharray"};function PC(e,t,r=1,a=0,n=!0){e.pathLength=1;let o=n?fB:pB;e[o.offset]=`${-a}`,e[o.array]=`${t} ${r}`}var mB=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Wu(e,{attrX:t,attrY:r,attrScale:a,pathLength:n,pathSpacing:o=1,pathOffset:i=0,...s},l,u,c){if(ui(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox);for(let p of mB)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),a!==void 0&&(d.scale=a),n!==void 0&&PC(d,n,o,i,!1)}var Pp=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 Ju=e=>typeof e=="string"&&e.toLowerCase()==="svg";function LC(e,t,r,a){$p(e,t,void 0,a);for(let n in t.attrs)e.setAttribute(Pp.has(n)?n:cs(n),t.attrs[n])}function Ku(e,t,r){let a=ci(e,t,r);for(let n in e)if(Je(e[n])||Je(t[n])){let o=Mn.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;a[o]=e[n]}return a}var Xu=class extends hs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Yr.has(r)){let a=fp(r);return a&&a.default||0}return r=Pp.has(r)?r:cs(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,a){return Ku(t,r,a)}build(t,r,a){Wu(t,r,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,r,a,n){LC(t,r,a,n)}mount(t){this.isSVGTag=Ju(t.tagName),super.mount(t)}};var hB=Nu.length;function $y(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?$y(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<hB;r++){let a=Nu[r],n=e.props[a];(Rn(n)||n===!1)&&(t[a]=n)}return t}function Py(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let a=0;a<r;a++)if(t[a]!==e[a])return!1;return!0}var gB=[...Ip].reverse(),vB=Ip.length;function yB(e){return t=>Promise.all(t.map(({animation:r,options:a})=>tC(e,r,a)))}function Ly(e){let t=yB(e),r=AC(),a=!0,n=!1,o=u=>(c,d)=>{let f=Mr(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:p,transitionEnd:g,...w}=f;c={...c,...w,...g}}return c};function i(u){t=u(e)}function s(u){let{props:c}=e,d=$y(e.parent)||{},f=[],p=new Set,g={},w=1/0;for(let I=0;I<vB;I++){let S=gB[I],x=r[S],C=c[S]!==void 0?c[S]:d[S],_=Rn(C),P=S===u?x.isActive:null;P===!1&&(w=I);let D=C===d[S]&&C!==c[S]&&_;if(D&&(a||n)&&e.manuallyAnimateOnMount&&(D=!1),x.protectedKeys={...g},!x.isActive&&P===null||!C&&!x.prevProp||ua(C)||typeof C=="boolean")continue;if(S==="exit"&&x.isActive&&P!==!0){x.prevResolvedValues&&(g={...g,...x.prevResolvedValues});continue}
2let N=EC(x.prevProp,C),A=N||S===u&&x.isActive&&!D&&_||I>w&&_,O=!1,oe=Array.isArray(C)?C:[C],Y=oe.reduce(o(S),{});P===!1&&(Y={});let{prevResolvedValues:He={}}=x,pe={...He,...Y},Me=je=>{A=!0,p.has(je)&&(O=!0,p.delete(je)),x.needsAnimating[je]=!0;let ft=e.getValue(je);ft&&(ft.liveStyle=!1)};for(let je in pe){let ft=Y[je],Ct=He[je];if(g.hasOwnProperty(je))continue;let tt=!1;Mu(ft)&&Mu(Ct)?tt=!Py(ft,Ct):tt=ft!==Ct,tt?ft!=null?Me(je):p.add(je):ft!==void 0&&p.has(je)?Me(je):x.protectedKeys[je]=!0}x.prevProp=C,x.prevResolvedValues=Y,x.isActive&&(g={...g,...Y}),(a||n)&&e.blockInitialAnimation&&(A=!1);let Be=D&&N;A&&(!Be||O)&&f.push(...oe.map(je=>{let ft={type:S};if(typeof je=="string"&&(a||n)&&!Be&&e.manuallyAnimateOnMount&&e.parent){let{parent:Ct}=e,tt=Mr(Ct,je);if(Ct.enteringChildren&&tt){let{delayChildren:be}=tt.transition||{};ft.delay=op(Ct.enteringChildren,e,be)}}return{animation:je,options:ft}}))}if(p.size){let I={};if(typeof c.initial!="boolean"){let S=Mr(e,Array.isArray(c.initial)?c.initial[0]:c.initial);S&&S.transition&&(I.transition=S.transition)}p.forEach(S=>{let x=e.getBaseTarget(S),C=e.getValue(S);C&&(C.liveStyle=!0),I[S]=x??null}),f.push({animation:I})}let y=!!f.length;return a&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),a=!1,n=!1,y?t(f):Promise.resolve()}function l(u,c){if(r[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),r[u].isActive=c;let d=s(u);for(let f in r)r[f].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>r,reset:()=>{r=AC(),n=!0}}}function EC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Py(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function AC(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}function Lp(e,t){e.min=t.min,e.max=t.max}function tn(e,t){Lp(e.x,t.x),Lp(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var MC=1e-4,xB=1-MC,bB=1+MC,RC=.01,wB=0-RC,SB=0+RC;function Lt(e){return e.max-e.min}function Dy(e,t,r){return Math.abs(e-t)<=r}function Ey(e,t,r,a=.5){e.origin=a,e.originPoint=Oe(t.min,t.max,e.origin),e.scale=Lt(r)/Lt(t),e.translate=Oe(r.min,r.max,e.origin)-e.originPoint,(e.scale>=xB&&e.scale<=bB||isNaN(e.scale))&&(e.scale=1),(e.translate>=wB&&e.translate<=SB||isNaN(e.translate))&&(e.translate=0)}function fi(e,t,r,a){Ey(e.x,t.x,r.x,a?a.originX:void 0),Ey(e.y,t.y,r.y,a?a.originY:void 0)}function My(e,t,r,a=0){let n=a?Oe(r.min,r.max,a):r.min;e.min=n+t.min,e.max=e.min+Lt(t)}function zy(e,t,r,a){My(e.x,t.x,r.x,a?.x),My(e.y,t.y,r.y,a?.y)}function Ry(e,t,r,a=0){let n=a?Oe(r.min,r.max,a):r.min;e.min=t.min-n,e.max=e.min+Lt(t)}function vs(e,t,r,a){Ry(e.x,t.x,r.x,a?.x),Ry(e.y,t.y,r.y,a?.y)}function DC(e,t,r,a,n){return e-=t,e=Vu(e,1/r,a),n!==void 0&&(e=Vu(e,1/n,a)),e}function IB(e,t=0,r=1,a=.5,n,o=e,i=e){if(Xt.test(t)&&(t=parseFloat(t),t=Oe(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=Oe(o.min,o.max,a);e===o&&(s-=t),e.min=DC(e.min,t,r,s,n),e.max=DC(e.max,t,r,s,n)}function zC(e,t,[r,a,n],o,i){IB(e,t[r],t[a],t[n],t.scale,o,i)}var kB=["x","scaleX","originX"],_B=["y","scaleY","originY"];function Ny(e,t,r,a){zC(e.x,t,kB,r?r.x:void 0,a?a.x:void 0),zC(e.y,t,_B,r?r.y:void 0,a?a.y:void 0)}function NC(e){return e.translate===0&&e.scale===1}function Oy(e){return NC(e.x)&&NC(e.y)}function OC(e,t){return e.min===t.min&&e.max===t.max}function UC(e,t){return OC(e.x,t.x)&&OC(e.y,t.y)}function FC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fy(e,t){return FC(e.x,t.x)&&FC(e.y,t.y)}function Uy(e){return Lt(e.x)/Lt(e.y)}function By(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Rr(e){return[e("x"),e("y")]}
2function BC(e,t,r){let a="",n=e.x.translate/t.x,o=e.y.translate/t.y,i=r?.z||0;if((n||o||i)&&(a=`translate3d(${n}px, ${o}px, ${i}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:g}=r;u&&(a=`perspective(${u}px) ${a}`),c&&(a+=`rotate(${c}deg) `),d&&(a+=`rotateX(${d}deg) `),f&&(a+=`rotateY(${f}deg) `),p&&(a+=`skewX(${p}deg) `),g&&(a+=`skewY(${g}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(a+=`scale(${s}, ${l})`),a||"none"}var qC=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],CB=qC.length,jC=e=>typeof e=="string"?parseFloat(e):e,VC=e=>typeof e=="number"||ie.test(e);function GC(e,t,r,a,n,o){n?(e.opacity=Oe(0,r.opacity??1,TB(a)),e.opacityExit=Oe(t.opacity??1,0,$B(a))):o&&(e.opacity=Oe(t.opacity??1,r.opacity??1,a));for(let i=0;i<CB;i++){let s=qC[i],l=ZC(t,s),u=ZC(r,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||VC(l)===VC(u)?(e[s]=Math.max(Oe(jC(l),jC(u),a),0),(Xt.test(u)||Xt.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||r.rotate)&&(e.rotate=Oe(t.rotate||0,r.rotate||0,a))}function ZC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var TB=HC(0,.5,Su),$B=HC(.5,.95,vt);function HC(e,t,r){return a=>a<e?0:a>t?1:r(Pn(e,t,a))}function WC(e,t,r){let a=Je(e)?e:gn(e);return a.start(ai("",a,t,r)),a.animation}function Dn(e,t,r,a={passive:!0}){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r)}var JC=(e,t)=>e.depth-t.depth;var Ap=class{constructor(){this.children=[],this.isDirty=!1}add(t){Qo(this.children,t),this.isDirty=!0}remove(t){Ka(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(JC),this.isDirty=!1,this.children.forEach(t)}};function KC(e,t){let r=yt.now(),a=({timestamp:n})=>{let o=n-r;o>=t&&(yr(a),e(o-t))};return Ce.setup(a,!0),()=>yr(a)}function pi(e){return Je(e)?e.get():e}var Ep=class{constructor(){this.members=[]}add(t){Qo(this.members,t);for(let r=this.members.length-1;r>=0;r--){let a=this.members[r];if(a===t||a===this.lead||a===this.prevLead)continue;let n=a.instance;(!n||n.isConnected===!1)&&!a.snapshot&&(Ka(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(Ka(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 a=this.members[r];if(a.isPresent!==!1&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(t,r){let a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=a.options,{layoutDependency:o}=t.options;(n===void 0||n!==o)&&(t.resumeFrom=a,r&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var mi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var hi={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},jy=["","X","Y","Z"],PB=1e3,LB=0;function Vy(e,t,r,a){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),a&&(a[e]=0))}function o3(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=lp(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:n,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Ce,!(n||o))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&o3(a)}function Mp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:a,resetTransform:n}){return class{constructor(i={},s=t?.()){this.id=LB++,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,Er.value&&(hi.nodes=hi.calculatedTargetDeltas=hi.calculatedProjections=0),this.nodes.forEac
2h(MB),this.nodes.forEach(FB),this.nodes.forEach(UB),this.nodes.forEach(RB),Er.addProjectionMetrics&&Er.addProjectionMetrics(hi)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,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 Ap)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new oa),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){let l=this.eventHandlers.get(i);l&&l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=ps(i)&&!pC(i),this.instance=i;let{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let c,d=0,f=()=>this.root.updateBlockedByResize=!1;Ce.read(()=>{d=window.innerWidth}),e(i,()=>{let p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,c&&c(),c=KC(f,250),mi.hasAnimatedSinceResize&&(mi.hasAnimatedSinceResize=!1,this.nodes.forEach(QC)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||u.getDefaultTransition()||qB,{onLayoutAnimationStart:w,onLayoutAnimationComplete:y}=u.getProps(),I=!this.targetLayout||!Fy(this.targetLayout,p),S=!d&&f;if(this.options.layoutRoot||this.resumeFrom||S||d&&(I||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let x={...ls(g,"layout"),onPlay:w,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,S)}else d||QC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),yr(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(BB),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&o3(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&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(zB),this.nodes.forEach(XC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(YC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEac
2h(NB),this.nodes.forEach(OB),this.nodes.forEach(AB),this.nodes.forEach(EB)):this.nodes.forEach(YC),this.clearAllSnapshots();let s=yt.now();It.delta=Rt(0,1e3/60,s-It.timestamp),It.timestamp=s,It.isProcessing=!0,Tu.update.process(It),Tu.preRender.process(It),Tu.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,si.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(DB),this.sharedNodes.forEach(jB)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ce.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Lt(this.snapshot.measuredBox.x)&&!Lt(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 i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=mt()),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,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s&&this.instance){let l=a(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!n)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Oy(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;i&&this.instance&&(s||ca(this.latestValues)||c)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),GB(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return mt();let s=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(HB))){let{scroll:u}=this.root;u&&(en(s.x,u.offset.x),en(s.y,u.offset.y))}return s}removeElementScroll(i){let s=mt();if(tn(s,i),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&tn(s,i),en(s.x,c.offset.x),en(s.y,c.offset.y))}return s}applyTransform(i,s=!1,l){let u=l||mt();tn(u,i);for(let c=0;c<this.path.length;c++){let d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(en(u.x,-d.scroll.offset.x),en(u.y,-d.scroll.offset.y)),ca(d.latestValues)&&Zu(u,d.latestValues,d.layout?.layoutBox)}return ca(this.latestValues)&&Zu(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(i){let s=mt();tn(s,i);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!ca(u.latestValues))continue;let c;u.instance&&(Cp(u.latestValues)&&u.updateSnapshot(),c=mt(),tn(c,u.measurePageBox())),Ny(s,u.latestValues,u.snapshot?.layoutBox,c)}return ca(this.latestValues)&&Ny(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
2haredProjectionDirty);let l=!!this.resumingFrom||this!==s;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=It.timestamp;let f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=mt(),this.targetWithTransforms=mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zy(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):tn(this.target,this.layout.layoutBox),Cy(this.target,this.targetDelta)):tn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),Er.value&&hi.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Cp(this.parent.latestValues)||ky(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,s,l){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),vs(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),tn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let i=this.getLead(),s=!!this.resumingFrom||this!==i,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===It.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;tn(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,f=this.treeScale.y;_C(this.layoutCorrected,this.treeScale,this.path,s),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=mt());let{target:p}=i;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),fi(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!By(this.projectionDelta.x,this.prevProjectionDelta.x)||!By(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Er.value&&hi.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ao(),this.projectionDelta=ao(),this.projectionDeltaWithTransform=ao()}setAnimationOrigin(i,s=!1){let l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=ao();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let f=mt(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,w=p!==g,y=this.getStack(),I=!y||y.members.length<=1,S=!!(w&&!I&&this.options.crossfade===!0&&!this.path.some(ZB));this.animationProgress=0;let x;this.mixTargetDelta=C=>{let _=C/1e3;e3(d.x,i.x,_),e3(d.y,i.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vs(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),VB(this.relativeTarget,this.relativeTargetOrigin,f,_),x&&UC(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=mt()),tn(x,this.relativeTarget)),w&&(this.animationValues=c,GC(c,u,this.latestValues,_,S,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(yr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ce.update(()=>{mi.hasAnimatedSinceResize=!0,Ln.layout++,this.motionValue||(this.motionValue=gn(0)),this.motionValue.jump(0,!1),this.currentAnimation=WC(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{Ln.layout--},onComplete:()=>{Ln.layout--,i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(PB),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,target:l,layout:u,latestValues:c}=i;if(!(!s||!l||!u)){if(this!==i&&this.layout&&u&&i3(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||mt();let d=Lt(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+d;let f=Lt(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}tn(s,l),Zu(s,c),fi(this.projectionDeltaWithTransform,this.layoutCorrected,s,c
2)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Ep),this.sharedNodes.get(i).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){let{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let s=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let u={};l.z&&Vy("z",i,u,this.animationValues);for(let c=0;c<jy.length;c++)Vy(`rotate${jy[c]}`,i,u,this.animationValues),Vy(`skew${jy[c]}`,i,u,this.animationValues);i.render();for(let c in u)i.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);i.scheduleRender()}applyProjectionStyles(i,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=pi(s?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=pi(s?.pointerEvents)||""),this.hasProjected&&!ca(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";let c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=BC(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),i.transform=d;let{x:f,y:p}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?i.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:i.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let g in qu){if(c[g]===void 0)continue;let{correct:w,applyTo:y,isCSSVariable:I}=qu[g],S=d==="none"?c[g]:w(c[g],u);if(y){let x=y.length;for(let C=0;C<x;C++)i[y[C]]=S}else I?this.options.visualElement.renderState.vars[g]=S:i[g]=S}this.options.layoutId&&(i.pointerEvents=u===this?pi(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(XC),this.root.sharedNodes.clear()}}}function AB(e){e.updateLayout()}function EB(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:a}=e.layout,{animationType:n}=e.options,o=t.source!==e.layout.source;if(n==="size")Rr(c=>{let d=o?t.measuredBox[c]:t.layoutBox[c],f=Lt(d);d.min=r[c].min,d.max=d.min+f});else if(n==="x"||n==="y"){let c=n==="x"?"y":"x";Lp(o?t.measuredBox[c]:t.layoutBox[c],r[c])}else i3(n,t.layoutBox,r)&&Rr(c=>{let d=o?t.measuredBox[c]:t.layoutBox[c],f=Lt(r[c]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+f)});let i=ao();fi(i,r,t.layoutBox);let s=ao();o?fi(s,e.applyTransform(a,!0),t.measuredBox):fi(s,r,t.layoutBox);let l=!Oy(i),u=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:d,layout:f}=c;if(d&&f){let p=e.options.layoutAnchor||void 0,g=mt();vs(g,t.layoutBox,d.layoutBox,p);let w=mt();vs(w,r,f.layoutBox,p),Fy(g,w)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=g,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function MB(e){Er.value&&hi.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 RB(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function DB(e){e.clearSnapshot()}function XC(e){e.clearMeasurements()}function zB(e){e.isLayoutDirty=!0,e.updateLayout()}function YC(e){e.isLayoutDirty=!1}function NB(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function OB(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function QC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FB(e){e.resolveTargetDelta()}function UB(e){e.calcProjection()}
2function BB(e){e.resetSkewAndRotation()}function jB(e){e.removeLeadSnapshot()}function e3(e,t,r){e.translate=Oe(t.translate,0,r),e.scale=Oe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function t3(e,t,r,a){e.min=Oe(t.min,r.min,a),e.max=Oe(t.max,r.max,a)}function VB(e,t,r,a){t3(e.x,t.x,r.x,a),t3(e.y,t.y,r.y,a)}function ZB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var qB={duration:.45,ease:[.4,0,.1,1]},r3=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n3=r3("applewebkit/")&&!r3("chrome/")?Math.round:vt;function a3(e){e.min=n3(e.min),e.max=n3(e.max)}function GB(e){a3(e.x),a3(e.y)}function i3(e,t,r){return e==="position"||e==="preserve-aspect"&&!Dy(Uy(t),Uy(r),.2)}function HB(e){return e!==e.root&&e.scroll?.wasRoot}var s3=Mp({attachResizeListener:(e,t)=>Dn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var Rp={current:void 0},Yu=Mp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rp.current){let e=new s3({});e.mount(window),e.setOptions({layoutScroll:!0}),Rp.current=e}return Rp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Dp=R(ee(),1),da=R(ee(),1);var l3=R(ee(),1),ys=(0,l3.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var c3=R(ee(),1);function u3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function WB(...e){return t=>{let r=!1,a=e.map(n=>{let o=u3(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){let o=a[n];typeof o=="function"?o():u3(e[n],null)}}}}function d3(...e){return c3.useCallback(WB(...e),e)}var Zy=class extends Dp.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(ii(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let a=r.offsetParent,n=ii(a)&&a.offsetWidth||0,o=ii(a)&&a.offsetHeight||0,i=getComputedStyle(r),s=this.props.sizeRef.current;s.height=parseFloat(i.height),s.width=parseFloat(i.width),s.top=r.offsetTop,s.left=r.offsetLeft,s.right=n-s.width-s.left,s.bottom=o-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}};function p3({children:e,isPresent:t,anchorX:r,anchorY:a,root:n,pop:o}){let i=(0,da.useId)(),s=(0,da.useRef)(null),l=(0,da.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,da.useContext)(ys),c=e.props?.ref??e?.ref,d=d3(s,c);return(0,da.useInsertionEffect)(()=>{let{width:f,height:p,top:g,left:w,right:y,bottom:I}=l.current;if(t||o===!1||!s.current||!f||!p)return;let S=r==="left"?`left: ${w}`:`right: ${y}`,x=a==="bottom"?`bottom: ${I}`:`top: ${g}`;s.current.dataset.motionPopId=i;let C=document.createElement("style");u&&(C.nonce=u);let _=n??document.head;return _.appendChild(C),C.sheet&&C.sheet.insertRule(` 3 [data-motion-pop-id="${i}"] { 4 position: absolute !important; 5 width: ${f}px !important; 6 height: ${p}px !important; 7 ${S}px !important; 8 ${x}px !important; 9 } 10 `),()=>{s.current?.removeAttribute("data-motion-pop-id"),_.contains(C)&&_.removeChild(C)}},[t]),(0,f3.jsx)(Zy,{isPresent:t,childRef:s,sizeRef:l,pop:o,children:o===!1?e:Dp.cloneElement(e,{ref:d})})}var h3=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:n,presenceAffectsLayout:o,mode:i,anchorX:s,anchorY:l,root:u})=>{let c=Qi(JB),d=(0,Qu.useId)(),f=!0,p=(0,Qu.useMemo)(()=>(f=!1,{id:d,initial:t,isPresent:r,custom:n,onExitComplete:g=>{c.set(g,!0);for(let w of c.values())if(!w)return;a&&a()},register:g=>(c.set(g,!1),()=>c.delete(g))}),[r,c,a]);return o&&f&&(p={...p}),(0,Qu.useMemo)(()=>{c.forEach((g,w)=>c.set(w,!1))},[r]),m3.useEffect(()=>{!r&&!c.size&&a&&a()},[r]),e=(0,qy.jsx)(p3,{pop:i==="popLayout",isPresent:r,anchorX:s,anchorY:l,root:u,children:e}),(0,qy.jsx)(Ja.Provider,{value:p,children:e})};function JB(){return new Map}var io=R(ee(),1);function zp(e=!0){let t=(0,io.useContext)(Ja);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:a,register:n}=t,o=(0,io.useId)();(0,io.useEffect)(()=>
10{if(e)return n(o)},[e]);let i=(0,io.useCallback)(()=>e&&a&&a(o),[o,a,e]);return!r&&a?[!1,i]:[!0]}var Np=R(ee(),1),ec=e=>e.key||"";function Gy(e){let t=[];return Np.Children.forEach(e,r=>{(0,Np.isValidElement)(r)&&t.push(r)}),t}var Hy=({children:e,custom:t,initial:r=!0,onExitComplete:a,presenceAffectsLayout:n=!0,mode:o="sync",propagate:i=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=zp(i),f=(0,vn.useMemo)(()=>Gy(e),[e]),p=i&&!c?[]:f.map(ec),g=(0,vn.useRef)(!0),w=(0,vn.useRef)(f),y=Qi(()=>new Map),I=(0,vn.useRef)(new Set),[S,x]=(0,vn.useState)(f),[C,_]=(0,vn.useState)(f);Rf(()=>{g.current=!1,w.current=f;for(let N=0;N<C.length;N++){let A=ec(C[N]);p.includes(A)?(y.delete(A),I.current.delete(A)):y.get(A)!==!0&&y.set(A,!1)}},[C,p.length,p.join("-")]);let P=[];if(f!==S){let N=[...f];for(let A=0;A<C.length;A++){let O=C[A],oe=ec(O);p.includes(oe)||(N.splice(A,0,O),P.push(O))}return o==="wait"&&P.length&&(N=P),_(Gy(N)),x(f),null}let{forceRender:D}=(0,vn.useContext)(Yi);return(0,tc.jsx)(tc.Fragment,{children:C.map(N=>{let A=ec(N),O=i&&!c?!1:f===C||p.includes(A),oe=()=>{if(I.current.has(A))return;if(y.has(A))I.current.add(A),y.set(A,!0);else return;let Y=!0;y.forEach(He=>{He||(Y=!1)}),Y&&(D?.(),_(w.current),i&&d?.(),a&&a())};return(0,tc.jsx)(h3,{isPresent:O,initial:!g.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:o,root:u,onExitComplete:O?void 0:oe,anchorX:s,anchorY:l,children:N},A)})})};var g3=R(ee(),1),Op=(0,g3.createContext)({strict:!1});var v3={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"]},y3=!1;function KB(){if(y3)return;let e={};for(let t in v3)e[t]={isEnabled:r=>v3[t].some(a=>!!r[a])};Bu(e),y3=!0}function Fp(){return KB(),by()}function x3(e){let t=Fp();for(let r in e)t[r]={...t[r],...e[r]};Bu(t)}var XB=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 rc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||XB.has(e)}var b3=e=>!rc(e);function YB(e){typeof e=="function"&&(b3=t=>t.startsWith("on")?!rc(t):e(t))}try{YB(D_("@emotion/is-prop-valid").default)}catch{}function w3(e,t,r){let a={};for(let n in e)n==="values"&&typeof e.values=="object"||Je(e[n])||(b3(n)||r===!0&&rc(n)||!t&&!rc(n)||e.draggable&&n.startsWith("onDrag"))&&(a[n]=e[n]);return a}var Zp=R(j(),1);var Ss=R(ee(),1);var S3=R(ee(),1),so=(0,S3.createContext)({});var Up=R(ee(),1);function I3(e,t){if(oo(e)){let{initial:r,animate:a}=e;return{initial:r===!1||Rn(r)?r:void 0,animate:Rn(a)?a:void 0}}return e.inherit!==!1?t:{}}function _3(e){let{initial:t,animate:r}=I3(e,(0,Up.useContext)(so));return(0,Up.useMemo)(()=>({initial:t,animate:r}),[k3(t),k3(r)])}function k3(e){return Array.isArray(e)?e.join(" "):e}var ws=R(ee(),1);var C3=R(ee(),1);var xs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wy(e,t,r){for(let a in t)!Je(t[a])&&!Gu(a,r)&&(e[a]=t[a])}function QB({transformTemplate:e},t){return(0,C3.useMemo)(()=>{let r=xs();return ui(r,t,e),Object.assign({},r.vars,r.style)},[t])}function ej(e,t){let r=e.style||{},a={};return Wy(a,r,e),Object.assign(a,QB(e,t)),a}function T3(e,t){let r={},a=ej(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.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=a,r}var $3=R(ee(),1);var Bp=()=>({...xs(),attrs:{}});function P3(e,t,r,a){let n=(0,$3.useMemo)(()=>{let o=Bp();return Wu(o,t,Ju(a),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};Wy(o,e.style,e),n.style={...o,...n.style}}return n}var L3=["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 bs(e){return typeof e!="string"||e.includes("-")?!1:!!(L3.indexOf(e)>-1||/[A-Z]/u.test(e))}function A3(e,t,r,{latestValues:a},n,o=!1,i){let l=(i??bs(e)?P3:T3)(t,a,n,e),u=w3(t,typeof e=="string",o),c=e!==ws.Fragment?{...u,...l,ref:r}:{},{children:d}=t,f=(0,ws.useMemo)(()=>Je(d)?d.get():d,[d]);return(0,ws.createElement)(e,{...c,children:f})}var Jy=R(ee(),1);function tj({scrapeMotionValuesFromProps:e,createRenderState:t},r,a,n){return{latestValues:rj(r,a,n,e),renderState:t()}}function rj(e,t,r,a){let n={},o=a(e,{});for(let f in o)n[f]=pi(o[f]);let{initial:i,animate:s}=e,l=oo(e),u=Ou(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||i===!1;let d=c?s:i;if(d&&typeof d!="boolean"&&!ua(d)){let f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){let g=oi(e,f[p]);if(g){let{transitionEnd:w,transition:y,...I}=g;for(let S in I){let x=I[S];if(Array.isArray(x)){let C=c?x.length-1:0;x=x[C]}x!==null&&(n[S]=x)}for(let S in w)n[S]=w[S]}}}return n}var jp=e=>(t,r)=>{let a=(0,Jy.useContext)(so),n=(0,Jy.useContext)(Ja),o=()=>tj(e,t,a,n);return r?o():Qi(o)};var E3=jp({scrapeMotionValuesFromProps:ci,createRenderState:xs});var M3=jp({scrapeMotionValuesFromProps:Ku,createRenderState:Bp});var R3=Symbol.for("motionComponentSymbol");var gi=R(ee(),1);function D3(e,t,r){let a=(0,gi.useRef)(r);(0,gi.useInsertionEffect)(()=>{a.current=r});let n=(0,gi.useRef)(null);return(0,gi.useCallback)(o=>{o&&e.onMount?.(o);let i=a.current;if(typeof i=="function")if(o){let s=i(o);typeof s=="function"&&(n.current=s)}else n.current?(n.current(),n.current=null):i(o);else i&&(i.current=o);t&&(o?t.mount(o):t.unmount())},[t])}var ar=R(ee(),1);var z3=R(ee(),1),Vp=(0,z3.createContext)({});function lo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function N3(e,t,r,a,n,o){let{visualElement:i}=(0,ar.useContext)(so),s=(0,ar.useContext)(Op),l=(0,ar.useContext)(Ja),u=(0,ar.useContext)(ys),c=u.reducedMotion,d=u.skipAnimations,f=(0,ar.useRef)(null),p=(0,ar.useRef)(!1);a=a||s.renderer,!f.current&&a&&(f.current=a(e,{visualState:t,parent:i,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:o}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let g=f.current,w=(0,ar.useContext)(Vp);g&&!g.projection&&n&&(g.type==="html"||g.type==="svg")&&nj(f.current,r,n,w);let y=(0,ar.useRef)(!1);(0,ar.useInsertionEffect)(()=>{g&&y.current&&g.update(r,l)});let I=r[Ru],S=(0,ar.useRef)(!!I&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(I)&&window.MotionHasOptimisedAnimation?.(I));return Rf(()=>{p.current=!0,g&&(y.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),S.current&&g.animationState&&g.animationState.animateChanges())}),(0,ar.useEffect)(()=>{g&&(!S.current&&g.animationState&&g.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(I)}),S.current=!1),g.enteringChildren=void 0)}),g}function nj(e,t,r,a){let{layoutId:n,layout:o,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:O3(e.parent)),e.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!i||s&&lo(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:a,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function O3(e){if(e)return e.options.allowProjection!==!1?e.projection:O3(e.parent)}function qp(e,{forwardMotionProps:t=!1,type:r}={},a,n){a&&x3(a);let o=r?r==="svg":bs(e),i=o?M3:E3;function s(u,c){let d,f={...(0,Ss.useContext)(ys),...u,layoutId:aj(u)},{isStatic:p}
10=f,g=_3(u),w=i(u,p);if(!p&&typeof window<"u"){oj(f,a);let y=ij(f);d=y.MeasureLayout,g.visualElement=N3(e,w,f,n,y.ProjectionNode,o)}return(0,Zp.jsxs)(so.Provider,{value:g,children:[d&&g.visualElement?(0,Zp.jsx)(d,{visualElement:g.visualElement,...f}):null,A3(e,u,D3(w,g.visualElement,c),w,p,t,o)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,Ss.forwardRef)(s);return l[R3]=e,l}function aj({layoutId:e}){let t=(0,Ss.useContext)(Yi).id;return t&&e!==void 0?t+"-"+e:e}function oj(e,t){let r=(0,Ss.useContext)(Op).strict}function ij(e){let t=Fp(),{drag:r,layout:a}=t;if(!r&&!a)return{};let n={...r,...a};return{MeasureLayout:r?.isEnabled(e)||a?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function F3(e,t){if(typeof Proxy>"u")return qp;let r=new Map,a=(o,i)=>qp(o,i,e,t),n=(o,i)=>a(o,i);return new Proxy(n,{get:(o,i)=>i==="create"?a:(r.has(i)||r.set(i,qp(i,void 0,e,t)),r.get(i))})}var U3=R(ee(),1);var B3=(e,t)=>t.isSVG??bs(e)?new Xu(t):new Hu(t,{allowProjection:e!==U3.Fragment});var Gp=class extends zt{constructor(t){super(t),t.animationState||(t.animationState=Ly(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ua(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 sj=0,Hp=class extends zt{constructor(){super(...arguments),this.id=sj++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){let{initial:o,custom:i}=this.node.getProps();if(typeof o=="string"){let s=Mr(this.node,o,i);if(s){let{transition:l,transitionEnd:u,...c}=s;for(let d in c)this.node.getValue(d)?.jump(c[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);r&&!t&&n.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){let{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var j3={animation:{Feature:Gp},exit:{Feature:Hp}};function fa(e){return{point:{x:e.pageX,y:e.pageY}}}var V3=e=>t=>li(t)&&e(t,fa(t));function uo(e,t,r,a){return Dn(e,t,V3(r),a)}var Wp=({current:e})=>e?e.ownerDocument.defaultView:null;var Z3=(e,t)=>Math.abs(e-t);function q3(e,t){let r=Z3(e.x,t.x),a=Z3(e.y,t.y);return Math.sqrt(r**2+a**2)}var G3=new Set(["auto","scroll"]),Is=class{constructor(t,r,{transformPagePoint:a,contextWindow:n=window,dragSnapToOrigin:o=!1,distanceThreshold:i=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=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Jp(this.lastRawMoveEventInfo,this.transformPagePoint));let p=Ky(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,w=q3(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!w)return;let{point:y}=p,{timestamp:I}=It;this.history.push({...y,timestamp:I});let{onStart:S,onMove:x}=this.handlers;g||(S&&S(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,g)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=Jp(g,this.transformPagePoint),Ce.update(this.updatePoint,!0)},this.handlePointerUp=(p,g)=>{this.end();let{onEnd:w,onSessionEnd:y,resumeAnimation:I}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let S=Ky(p.type==="pointercancel"?this.lastMoveEventInfo:Jp(g,this.transformPagePoint),this.history);this.startEvent&&w&&w(p,S),y&&y(p,S)},!li(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=a,this.distanceThreshold=i,this.contextWindow=n||window;let l=fa(t),u=Jp(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=It;this.history=[{...c,timestamp:d}];let{onSessionStart:f}=r;f&&f(t,Ky(u,this.history)),this.removeListeners=mn(uo(this.contextWindow,"pointermove",this.handlePointerMove),uo(this.contextWindow,"pointerup",this.handlePointerUp),uo(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let r=t.parentElement;for(;r;){let a=getComputedStyle(r);(G3.has(a.overflowX)||G3.has(a.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 a=t===window,n=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:n.x-r.x,y:n.y-r.y};o.x===0&&o.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,n),Ce.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),yr(this.updatePoint)}};function Jp(e,t){return t?{point:t(e.point)}:e}function H3(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ky({point:e},t){return{point:e,delta:H3(e,W3(t)),offset:H3(e,lj(t)),velocity:uj(t,.1)}}function lj(e){return e[0]}function W3(e){return e[e.length-1]}function uj(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,a=null,n=W3(e);for(;r>=0&&(a=e[r],!(n.timestamp-a.timestamp>Tt(t)));)r--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&n.timestamp-a.timestamp>Tt(t)*2&&(a=e[1]);let o=jt(n.timestamp-a.timestamp);if(o===0)return{x:0,y:0};let i={x:(n.x-a.x)/o,y:(n.y-a.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Q3(e,{min:t,max:r},a){return t!==void 0&&e<t?e=a?Oe(t,e,a.min):Math.max(e,t):r!==void 0&&e>
10r&&(e=a?Oe(r,e,a.max):Math.min(e,r)),e}function J3(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 eT(e,{top:t,left:r,bottom:a,right:n}){return{x:J3(e.x,r,n),y:J3(e.y,t,a)}}function K3(e,t){let r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,a]=[a,r]),{min:r,max:a}}function tT(e,t){return{x:K3(e.x,t.x),y:K3(e.y,t.y)}}function rT(e,t){let r=.5,a=Lt(e),n=Lt(t);return n>a?r=Pn(t.min,t.max-a,e.min):a>n&&(r=Pn(e.min,e.max-n,t.min)),Rt(0,1,r)}function nT(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 Kp=.35;function aT(e=Kp){return e===!1?e=0:e===!0&&(e=Kp),{x:X3(e,"left","right"),y:X3(e,"top","bottom")}}function X3(e,t,r){return{min:Y3(e,t),max:Y3(e,r)}}function Y3(e,t){return typeof e=="number"?e:e[t]||0}var cj=new WeakMap,Yp=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=mt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:a}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let o=d=>{r&&this.snapToCursor(fa(d).point),this.stopAnimation()},i=(d,f)=>{let{drag:p,dragPropagation:g,onDragStart:w}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=dy(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Rr(I=>{let S=this.getAxisMotionValue(I).get()||0;if(Xt.test(S)){let{projection:x}=this.visualElement;if(x&&x.layout){let C=x.layout.layoutBox[I];C&&(S=Lt(C)*(parseFloat(S)/100))}}this.originPoint[I]=S}),w&&Ce.update(()=>w(d,f),!1,!0),us(this.visualElement,"transform");let{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;let{dragPropagation:p,dragDirectionLock:g,onDirectionLock:w,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:I}=f;if(g&&this.currentDirection===null){this.currentDirection=fj(I),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",f.point,I),this.updateAxis("y",f.point,I),this.visualElement.render(),y&&Ce.update(()=>y(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new Is(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:a,contextWindow:Wp(this.visualElement),element:this.visualElement.current})}stop(t,r){let a=t||this.latestPointerEvent,n=r||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!n||!a)return;let{velocity:i}=n;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&Ce.postRender(()=>s(a,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:a}=this.getProps();!a&&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,a){let{drag:n}=this.getProps();if(!a||!Xp(t,n,this.currentDirection))return;let o=this.getAxisMotionValue(t),i=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(i=Q3(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&lo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=eT(a.layoutBox,t):this.constraints=!1,this.elastic=aT(r),n!==this.constraints&&!lo(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&Rr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=nT(a.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!lo(t))return!1;let a=t.current;Xr(a!==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 o=Ty(a,n.root,this.visualElement.getTransformPagePoint()),i=tT(n.layout.layoutBox,o);if(r){let s=r(wy(i));this.hasMutatedConstraints=!!s,s&&(i=ju(s))}return i}startAnimation(t){let{drag:r,dragMomentum:a,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Rr(c=>{if(!Xp(c,r,this.currentDirection))return;let d=l&&l[c]||{};(i===!0||i===c)&&(d={min:0,max:0});let f=n?200:1e6,p=n?40:1e7,g={type:"inertia",velocity:a?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){let a=this.getAxisMotionValue(t);return us(this.visualElement,t),a.start(ai(t,a,0,r,this.visualElement,!1))}stopAnimation(){Rr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),n=a[r];return n||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){Rr(r=>{let{drag:a}=this.getProps();if(!Xp(r,a,this.currentDirection))return;let{projection:n}=this.visualElement,o=this.getAxisMotionValue(r);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[r],l=o.get()||0;o.set(t[r]-Oe(i,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:a}=this.visualElement;if(!lo(r)||!a||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Rr(i=>{let s=this.getAxisMotionValue(i);if(s&&this.constraints!==!1){let l=s.get();n[i]=rT({min:l,max:l},this.constraints[i])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),Rr(i=>{if(!Xp(i,t,null))return;let s=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];s.set(Oe(l,u,n[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;cj.set(this.visualElement,this);let t=this.visualElement.current,r=uo(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,p=f!==t&&hy(f);c&&d&&!p&&this.start(u)}),a,n=()=>{let{dragConstraints:u}=this.getProps();lo(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),a||(a=dj(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ce.read(n);let s=Dn(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Rr(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())}));return()=>{s(),r(),i(),l&&l(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:a=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=Kp,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:a,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:s}}};function oT(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function dj(e,t,r){let a=Sp(e,oT(r)),n=Sp(t,oT(r));return()=>{a(),n()}}function Xp(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function fj(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var Qp=class extends zt{constructor(t){super(t),this.removeGroupControls=vt,this.removeListeners=vt,this.controls=new Yp(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vt}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 Xy=e=>(t,r)=>{e&&Ce.update(()=>e(t,r),!1,!0)},em=class extends zt{constructor(){super(...arguments),this.removePointerDownListener=vt}onPointerDown(t){this.session=new Is(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wp(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:a,onPanEnd:n}=this.node.getProps();return{onSessionStart:Xy(t),onStart:Xy(r),onMove:Xy(a),onEnd:(o,i)=>{delete this.session,n&&Ce.postRender(()=>n(o,i))}}}mount(){this.removePointerDownListener=uo(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 iT=R(j(),1);var nc=R(ee(),1);var Yy=!1,Qy=class extends nc.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a,layoutId:n}=this.props,{projection:o}=t;o&&(r.group&&r.group.add(o),a&&a.register&&n&&a.register(o),Yy&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),mi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:a,drag:n,isPresent:o}=this.props,{projection:i}=a;return i&&(i.isPresent=o,t.layoutDependency!==r&&i.setOptions({...i.options,layoutDependency:r}
10),Yy=!0,n||t.layoutDependency!==r||r===void 0||t.isPresent!==o?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||Ce.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:r}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=r,a.root.didUpdate(),si.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a}=this.props,{projection:n}=t;Yy=!0,n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),a&&a.deregister&&a.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function tm(e){let[t,r]=zp(),a=(0,nc.useContext)(Yi);return(0,iT.jsx)(Qy,{...e,layoutGroup:a,switchLayoutGroup:(0,nc.useContext)(Vp),isPresent:t,safeToRemove:r})}var sT={pan:{Feature:em},drag:{Feature:Qp,ProjectionNode:Yu,MeasureLayout:tm}};function lT(e,t,r){let{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",r==="Start");let n="onHover"+r,o=a[n];o&&Ce.postRender(()=>o(t,fa(t)))}var rm=class extends zt{mount(){let{current:t}=this.node;t&&(this.unmount=fy(t,(r,a)=>(lT(this.node,a,"Start"),n=>lT(this.node,n,"End"))))}unmount(){}};var nm=class extends zt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mn(Dn(this.node.current,"focus",()=>this.onFocus()),Dn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function uT(e,t,r){let{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",r==="Start");let n="onTap"+(r==="End"?"":r),o=a[n];o&&Ce.postRender(()=>o(t,fa(t)))}var am=class extends zt{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:r,propagate:a}=this.node.props;this.unmount=vy(t,(n,o)=>(uT(this.node,o,"Start"),(i,{success:s})=>uT(this.node,i,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:a?.tap===!1})}unmount(){}};var tx=new WeakMap,ex=new WeakMap,pj=e=>{let t=tx.get(e.target);t&&t(e)},mj=e=>{e.forEach(pj)};function hj({root:e,...t}){let r=e||document;ex.has(r)||ex.set(r,{});let a=ex.get(r),n=JSON.stringify(t);return a[n]||(a[n]=new IntersectionObserver(mj,{root:e,...t})),a[n]}function cT(e,t,r){let a=hj(t);return tx.set(e,r),a.observe(e),()=>{tx.delete(e),a.unobserve(e)}}var gj={some:0,all:1},om=class extends zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:r,margin:a,amount:n="some",once:o}=t,i={root:r?r.current:void 0,rootMargin:a,threshold:typeof n=="number"?n:gj[n]},s=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};this.stopObserver=cT(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(vj(t,r))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function vj({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var dT={inView:{Feature:om},tap:{Feature:am},focus:{Feature:nm},hover:{Feature:rm}};var fT={layout:{ProjectionNode:Yu,MeasureLayout:tm}};var pT={...j3,...dT,...sT,...fT};var rx=F3(pT,B3);var y4e=R(ee());var yj=e=>{let t=bj(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let s=i.split("-");return s[0]===""&&s.length!==1&&s.shift(),gT(s,t)||xj(i)},getConflictingClassGroupIds:(i,s)=>{let l=r[i]||[];return s&&a[i]?[...l,...a[i]]:l}}},gT=(e,t)=>
vendor: 5,488 bytes, line 10
10{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),n=a?gT(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let o=e.join("-");return t.validators.find(({validator:i})=>i(o))?.classGroupId},mT=/^\[(.+)\]$/,xj=e=>{if(mT.test(e)){let t=mT.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},bj=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return Sj(Object.entries(e.classGroups),r).forEach(([o,i])=>{ax(i,a,o,t)}),a},ax=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){let o=n===""?t:hT(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(wj(n)){ax(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{ax(i,hT(t,o),r,a)})})},hT=(e,t)=>{let r=e;return t.split("-").forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},wj=e=>e.isThemeGetter,Sj=(e,t)=>t?e.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[r,n]}):e,Ij=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,n=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}};var kj=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=s=>{let l=[],u=0,c=0,d;for(let y=0;y<s.length;y++){let I=s[y];if(u===0){if(I===n&&(a||s.slice(y,y+o)===t)){l.push(s.slice(c,y)),c=y+o;continue}if(I==="/"){d=y;continue}}I==="["?u++:I==="]"&&u--}let f=l.length===0?s:s.substring(c),p=f.startsWith("!"),g=p?f.substring(1):f,w=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:w}};return r?s=>r({className:s,parseClassName:i}):i},_j=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Cj=e=>({cache:Ij(e.cacheSize),parseClassName:kj(e),...yj(e)}),Tj=/\s+/,$j=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(Tj),s="";for(let l=i.length-1;l>=0;l-=1){let u=i[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=r(u),g=!!p,w=a(g?f.substring(0,p):f);if(!w){if(!g){s=u+(s.length>0?" "+s:s);continue}if(w=a(f),!w){s=u+(s.length>0?" "+s:s);continue}g=!1}let y=_j(c).join(":"),I=d?y+"!":y,S=I+w;if(o.includes(S))continue;o.push(S);let x=n(w,g);for(let C=0;C<x.length;++C){let _=x[C];o.push(I+_)}s=u+(s.length>0?" "+s:s)}return s};function Pj(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=vT(t))&&(a&&(a+=" "),a+=r);return a}var vT=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=vT(e[a]))&&(r&&(r+=" "),r+=t);return r};function Lj(e,...t){let r,a,n,o=i;function i(l){let u=t.reduce((c,d)=>d(c),e());return r=Cj(u),a=r.cache.get,n=r.cache.set,o=s,s(l)}function s(l){let u=a(l);if(u)return u;let c=$j(l,r);return n(l,c),c}return function(){return o(Pj.apply(null,arguments))}}var ut=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},yT=/^\[(?:([a-z-]+):)?(.+)\]$/i,Aj=/^\d+\/\d+$/,Ej=new Set(["px","full","screen"]),Mj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rj=/\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$/,Dj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pa=e=>ks(e)||Ej.has(e)||Aj.test(e),co=e=>_s(e,"length",qj),ks=e=>!!e&&!Number.isNaN(Number(e)),nx=e=>_s(e,"number",ks),ac=e=>!!e&&Number.isInteger(Number(e)),Oj=e=>e.endsWith("%")&&ks(e.slice(0,-1)),Le=e=>yT.test(e),fo=e=>Mj.test(e),Fj=new Set(["length","size","percentage"]),Uj=e=>_s(e,Fj,xT),Bj=e=>_s(e,"position",xT),jj=new Set(["image","url"]),Vj=e=>_s(e,jj,Hj),Zj=e=>_s(e,"",Gj),oc=()=>!0,_s=(e,t,r)=>{let a=yT.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},qj=e=>Rj.test(e)&&!Dj.test(e),xT=()=>!1,Gj=e=>zj.test(e),Hj=e=>Nj.test(e);var Wj=()=>{let e=ut("colors"),t=ut("spacing"),r=ut("blur"),a=ut("brightness"),n=ut("borderColor"),o=ut("borderRadius"),i=ut("borderSpacing"),s=ut("borderWidth"),l=ut("contrast"),u=ut("grayscale"),c=ut("hueRotate"),d=ut("invert"),f=ut("gap"),p=ut("gradientColorStops"),g=ut("gradientColorStopPositions"),w=ut("inset"),y=ut("margin"),I=ut("opacity"),S=ut("padding"),x=ut("saturate"),C=ut("scale"),_=ut("sepia"),P=ut("skew"),D=ut("space"),N=ut("translate"),A=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",Le,t],Y=()=>[Le,t],He=()=>["",pa,co],pe=()=>["auto",ks,Le],Me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Be=()=>["solid","dashed","dotted","double","none"],qt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],je=()=>["start","end","center","between","around","evenly","stretch"],ft=()=>["","0",Le],Ct=()=>["auto","avoid","all","avoid-page","page","left","right","column"],tt=()=>[ks,Le];return{cacheSize:500,separator:":",theme:{colors:[oc],spacing:[pa,co],blur:["none","",fo,Le],brightness:tt(),borderColor:[e],borderRadius:["n
10one","","full",fo,Le],borderSpacing:Y(),borderWidth:He(),contrast:tt(),grayscale:ft(),hueRotate:tt(),invert:ft(),gap:Y(),gradientColorStops:[e],gradientColorStopPositions:[Oj,co],inset:oe(),margin:oe(),opacity:tt(),padding:Y(),saturate:tt(),scale:tt(),sepia:ft(),skew:tt(),space:Y(),translate:Y()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[fo]}],"break-after":[{"break-after":Ct()}],"break-before":[{"break-before":Ct()}],"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:[...Me(),Le]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ac,Le]}],basis:[{basis:oe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:ft()}],shrink:[{shrink:ft()}],order:[{order:["first","last","none",ac,Le]}],"grid-cols":[{"grid-cols":[oc]}],"col-start-end":[{col:["auto",{span:["full",ac,Le]},Le]}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":[oc]}],"row-start-end":[{row:["auto",{span:[ac,Le]},Le]}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...je()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...je(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...je(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],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",Le,t]}],"min-w":[{"min-w":[Le,t,"min","max","fit"]}],"max-w":[{"max-w":[Le,t,"none","full","min","max","fit","prose",{screen:[fo]},fo]}],h:[{h:[Le,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fo,co]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nx]}],"font-family":[{font:[oc]}],"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",Le]}],"line-clamp":[{"line-clamp":["none",ks,nx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pa,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pa,co]}],"underline-offset":[{"underline-offset":["auto",pa,Le]}],"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:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],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",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Me(),Bj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Uj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Vj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}
vendor: 5,188 bytes, line 10
10],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[I]}],"border-style":[{border:[...Be(),"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":[I]}],"divide-style":[{divide:Be()}],"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:["",...Be()]}],"outline-offset":[{"outline-offset":[pa,Le]}],"outline-w":[{outline:[pa,co]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:He()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[pa,co]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fo,Zj]}],"shadow-color":[{shadow:[oc]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...qt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":qt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",fo,Le]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:tt()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:tt()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[ac,Le]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"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",Le]}],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",Le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
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",Le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pa,co,nx]}],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 bT=Lj(Wj);function se(...e){return bT(Tf(e))}var wT=R(j());function ma({className:e,...t}){return(0,wT.jsx)("div",{"data-slot":"card",className:se("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}var ic=R(ee());var ox=R(j());var S4e=ic.createContext(null);var ST=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,IT=Tf,yn=(e,t)=>r=>{var a;if(t?.variants==null)return IT(e,r?.class,r?.className);let{variants:n,defaultVariants:o}=t,i=Object.keys(n).map(u=>{let c=r?.[u],d=o?.[u];if(c===null)return null;let f=ST(c)||ST(d);return n[u][f]}),s=r&&Object.entries(r).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((u,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every(g=>{let[w,y]=g;return Array.isArray(y)?y.includes({...o,...s}[w]):{...o,...s}[w]===y})?[...u,d,f]:u},[]);return IT(e,i,l,r?.class,r?.className)};var Jj=R(j());var $4e=yn("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 Kj=R(j());var kT=R(j());var N4e=R(ee());var Nt=R(ee(),1);var CT=R(ee(),1);function _T(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ix(...e){return t=>{let r=!1,a=e.map(n=>{let o=_T(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){let o=a[n];typeof o=="function"?o():_T(e[n],null)}}}}function ha(...e){return CT.useCallback(ix(...e),e)}var im=R(j(),1);function sx(e){let t=Xj(e),r=Nt.forwardRef((a,n)=>{let{children:o,...i}=a,s=Nt.Children.toArray(o),l=s.find(Qj);if(l){let u=l.props.children,c=s.map(d=>d===l?Nt.Children.count(u)>1?Nt.Children.only(null):Nt.isValidElement(u)?u.props.children:null:d);return(0,im.jsx)(t,{...i,ref:n,children:Nt.isValidElement(u)?Nt.cloneElement(u,void 0,c):null})}return(0,im.jsx)(t,{...i,ref:n,children:o})});return r.displayName=`${e}.Slot`,r}var TT=sx("Slot");function Xj(e){let t=Nt.forwardRef((r,a)=>{let{children:n,...o}=r;if(Nt.isValidElement(n)){let i=tV(n),s=eV(o,n.props);return n.type!==Nt.Fragment&&(s.ref=a?ix(a,i):i),Nt.cloneElement(n,s)}return Nt.Children.count(n)>1?Nt.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yj=Symbol("radix.slottable");function Qj(e){return Nt.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yj}function eV(e,t){let r={...t};for(let a in t){let n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...s)=>{let l=o(...s);return n(...s),l}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}
10:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function tV(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 rV=R(j()),U4e=yn("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 $T=R(j());var MT=R(j());var YT=R(ee());var awe=R(ee());var RT=R(j()),iV=yn("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 Vt({className:e,variant:t,size:r,asChild:a=!1,...n}){return(0,RT.jsx)(a?TT:"button",{"data-slot":"button",className:se(iV({variant:t,size:r,className:e})),...n})}var bwe=R(ee());var uwe=!!(typeof window<"u"&&window.document&&window.document.createElement);function po(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var ga=R(ee(),1),DT=R(j(),1);function zT(e,t=[]){let r=[];function a(o,i){let s=ga.createContext(i),l=r.length;r=[...r,i];let u=d=>{let{scope:f,children:p,...g}=d,w=f?.[e]?.[l]||s,y=ga.useMemo(()=>g,Object.values(g));return(0,DT.jsx)(w.Provider,{value:y,children:p})};u.displayName=o+"Provider";function c(d,f){let p=f?.[e]?.[l]||s,g=ga.useContext(p);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[u,c]}let n=()=>{let o=r.map(i=>ga.createContext(i));return function(s){let l=s?.[e]||o;return ga.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[a,sV(n,...t)]}function sV(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){let i=a.reduce((s,{useScope:l,scopeName:u})=>{let d=l(o)[`__scope${u}`];return{...s,...d}},{});return ga.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var NT=R(ee(),1),lc=globalThis?.document?NT.useLayoutEffect:()=>{};var OT=R(ee(),1),lV=R(SF(),1);var FT=R(j(),1),uV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ts=uV.reduce((e,t)=>
10{let r=sx(`Primitive.${t}`),a=OT.forwardRef((n,o)=>{let{asChild:i,...s}=n,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,FT.jsx)(l,{...s,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});var lm=R(ee(),1),cV=R(j(),1),dV=lm.createContext(void 0);function UT(e){let t=lm.useContext(dV);return e||t||"ltr"}var $s=R(ee(),1);function mo(e){let t=$s.useRef(e);return $s.useEffect(()=>{t.current=e}),$s.useMemo(()=>(...r)=>t.current?.(...r),[])}var xr=R(ee(),1);var BT=R(ee(),1);function fV(e,t){return BT.useReducer((r,a)=>t[r][a]??r,e)}var Ps=e=>{let{present:t,children:r}=e,a=pV(t),n=typeof r=="function"?r({present:a.isPresent}):xr.Children.only(r),o=ha(a.ref,mV(n));return typeof r=="function"||a.isPresent?xr.cloneElement(n,{ref:o}):null};Ps.displayName="Presence";function pV(e){let[t,r]=xr.useState(),a=xr.useRef(null),n=xr.useRef(e),o=xr.useRef("none"),i=e?"mounted":"unmounted",[s,l]=fV(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return xr.useEffect(()=>{let u=um(a.current);o.current=s==="mounted"?u:"none"},[s]),lc(()=>{let u=a.current,c=n.current;if(c!==e){let f=o.current,p=um(u);e?l("MOUNT"):p==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),lc(()=>{if(t){let u,c=t.ownerDocument.defaultView??window,d=p=>{let w=um(a.current).includes(CSS.escape(p.animationName));if(p.target===t&&w&&(l("ANIMATION_END"),!n.current)){let y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=p=>{p.target===t&&(o.current=um(a.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:xr.useCallback(u=>{a.current=u?getComputedStyle(u):null,r(u)},[])}}function um(e){return e?.animationName||"none"}function mV(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 jT=R(j());var VT=R(ee());var ZT=R(j()),cm=VT.forwardRef(({className:e,type:t,...r},a)=>(0,ZT.jsx)("input",{ref:a,type:t,"data-slot":"input",className:se("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}));cm.displayName="Input";var Cwe=R(ee());function qT(e,[t,r]){return Math.min(r,Math.max(t,e))}var GT=R(j());var Pwe=R(ee());var hV=R(j());var QT=R(j());var gm=R(ee());var e2e=R(ee());var fe=R(ee(),1);var t$=R(ee(),1),Ve=R(j(),1);function TV(e,t){return t$.useReducer((r,a)=>t[r][a]??r,e)}var ux="ScrollArea",[r$,Qwe]=zT(ux),[$V,rn]=r$(ux),n$=fe.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:a="hover",dir:n,scrollHideDelay:o=600,...i}=e,[s,l]=fe.useState(null),[u,c]=fe.useState(null),[d,f]=fe.useState(null),[p,g]=fe.useState(null),[w,y]=fe.useState(null),[I,S]=fe.useState(0),[x,C]=fe.useState(0),[_,P]=fe.useState(!1),[D,N]=fe.useState(!1),A=ha(t,oe=>l(oe)),O=UT(n);return(0,Ve.jsx)($V,{scope:r,type:a,dir:O,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:P,scrollbarY:w,onScrollbarYChange:y,scrollbarYEnabled:D,onScrollbarYEnabledChange:N,onCornerWidthChange:S,onCornerHeight
vendor: 8,906 bytes, line 10
10Change:C,children:(0,Ve.jsx)(Ts.div,{dir:O,...i,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":I+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});n$.displayName=ux;var a$="ScrollAreaViewport",o$=fe.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:a,nonce:n,...o}=e,i=rn(a$,r),s=fe.useRef(null),l=ha(t,s,i.onViewportChange);return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.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,Ve.jsx)(Ts.div,{"data-radix-scroll-area-viewport":"",...o,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,Ve.jsx)("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});o$.displayName=a$;var zn="ScrollAreaScrollbar",cx=fe.forwardRef((e,t)=>{let{forceMount:r,...a}=e,n=rn(zn,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=n,s=e.orientation==="horizontal";return fe.useEffect(()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)}),[s,o,i]),n.type==="hover"?(0,Ve.jsx)(PV,{...a,ref:t,forceMount:r}):n.type==="scroll"?(0,Ve.jsx)(LV,{...a,ref:t,forceMount:r}):n.type==="auto"?(0,Ve.jsx)(i$,{...a,ref:t,forceMount:r}):n.type==="always"?(0,Ve.jsx)(dx,{...a,ref:t}):null});cx.displayName=zn;var PV=fe.forwardRef((e,t)=>{let{forceMount:r,...a}=e,n=rn(zn,e.__scopeScrollArea),[o,i]=fe.useState(!1);return fe.useEffect(()=>{let s=n.scrollArea,l=0;if(s){let u=()=>{window.clearTimeout(l),i(!0)},c=()=>{l=window.setTimeout(()=>i(!1),n.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",c)}}},[n.scrollArea,n.scrollHideDelay]),(0,Ve.jsx)(Ps,{present:r||o,children:(0,Ve.jsx)(i$,{"data-state":o?"visible":"hidden",...a,ref:t})})}),LV=fe.forwardRef((e,t)=>{let{forceMount:r,...a}=e,n=rn(zn,e.__scopeScrollArea),o=e.orientation==="horizontal",i=mm(()=>l("SCROLL_END"),100),[s,l]=TV("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 fe.useEffect(()=>{if(s==="idle"){let u=window.setTimeout(()=>l("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,n.scrollHideDelay,l]),fe.useEffect(()=>{let u=n.viewport,c=o?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let p=u[c];d!==p&&(l("SCROLL"),i()),d=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[n.viewport,o,l,i]),(0,Ve.jsx)(Ps,{present:r||s!=="hidden",children:(0,Ve.jsx)(dx,{"data-state":s==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:po(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:po(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),i$=fe.forwardRef((e,t)=>{let r=rn(zn,e.__scopeScrollArea),{forceMount:a,...n}=e,[o,i]=fe.useState(!1),s=e.orientation==="horizontal",l=mm(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?u:c)}},10);return Ls(r.viewport,l),Ls(r.content,l),(0,Ve.jsx)(Ps,{present:a||o,children:(0,Ve.jsx)(dx,{"data-state":o?"visible":"hidden",...n,ref:t})})}),dx=fe.forwardRef((e,t)=>{let{orientation:r="vertical",...a}=e,n=rn(zn,e.__scopeScrollArea),o=fe.useRef(null),i=fe.useRef(0),[s,l]=fe.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=c$(s.viewport,s.content),c={...a,sizes:s,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:f=>o.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,p){return zV(f,i.current,s,p)}return r==="horizontal"?(0,Ve.jsx)(AV,{...c,ref:t,onThumbPositionChange:()=>{if(n.viewport&&o.current){let f=n.viewport.scrollLeft,p=e$(f,s,n.dir);o.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{n.viewport&&(n.viewport.scrollLeft=f)},onDragScroll:f=>{n.viewport&&(n.viewport.scrollLeft=d(f,n.dir))}}):r==="vertical"?(0,Ve.jsx)(EV,{...c,ref:t,onThumbPositionChange:()=>{if(n.viewport&&o.current){let f=n.viewport.scrollTop,p=e$(f,s);o.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{n.viewport&&(n.viewport.scrollTop=f)},onDragScroll:f=>{n.viewport&&(n.viewport.scrollTop=d(f))}}):null}),AV=fe.forwardRef((e,t)=>{let{sizes:r,onSizesChange:a,...n}=e,o=rn(zn,e.__scopeScrollArea),[i,s]=fe.useState(),l=fe.useRef(null),u=ha(t,l,o.onScrollbarXChange);return fe.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,Ve.jsx)(l$,{"data-orientation":"horizontal",...n,ref:u,sizes:r,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":pm(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(o.viewport){let f=o.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),f$(f,d)&&c.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&a({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:fm(i.paddingLeft),paddingEnd:fm(i.paddingRight)}})}})}),EV=fe.forwardRef((e,t)=>{let{sizes:r,onSizesChange:a,...n}=e,o=rn(zn,e.__scopeScrollArea),[i,s]=fe.useState(),l=fe.useRef(null),u=ha(t,l,o.onScrollbarYChange);return fe.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,Ve.jsx)(l$,{"data-orientation":"vertical",...n,ref:u,sizes:r,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":pm(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(o.viewport){let f=o.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),f$(f,d)&&c.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&a({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:fm(i.paddingTop),paddingEnd:fm(i.paddingBottom)}})}})}),[MV,s$]=r$(zn),l$=fe.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:a,hasThumb:n,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=rn(zn,r),[g,w]=fe.useState(null),y=ha(t,A=>w(A)),I=fe.useRef(null),S=fe.useRef(""),x=p.viewport,C=a.content-a.viewport,_=mo(c),P=mo(l),D=mm(d,10);function N(A){if(I.current){let O=A.clientX-I.current.left,oe=A.clientY-I.current.top;u({x:O,y:oe})}}return fe.useEffect(()=>{let A=O=>{let oe=O.target;g?.contains(oe)&&_(O,C)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[x,g,C,_]),fe.useEffect(P,[a,P]),Ls(g,D),Ls(p.content,D),(0,Ve.jsx)(MV,{scope:r,scrollbar:g,hasThumb:n,onThumbChange:mo(o),onThumbPointerUp:mo(i),onThumbPositionChange:P,onThumbPointerDown:mo(s),children:(0,Ve.jsx)(Ts.div,{...f,ref:y,style:{position:"absolute",...f.style},onPointerDown:po(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),I.current=g.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),N(A))}),onPointerMove:po(e.onPointerMove,N),onPointerUp:po(e.onPointerUp,A=>{let O=A.target;O.hasPointerCapture(A.pointerId)&&O.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=S.current,p.viewport&&(p.viewport.style.scrollBehavior=""),I.current=null})})})}),dm="ScrollAreaThumb",fx=fe.forwardRef((e,t)=>{let{forceMount:r,...a}=e,n=s$(dm,e.__scopeScrollArea);return(0,Ve.jsx)(Ps,{present:r||n.hasThumb,children:(0,Ve.jsx)(RV,{ref:t,...a})})}),RV=fe.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:a,...n}=e,o=rn(dm,r),i=s$(dm,r),{onThumbPositionChange:s}=i,l=ha(t,d=>i.onThumbChange(d)),u=fe.useRef(void 0),c=mm(()=>{u.current&&(u.current(),u.current=void 0)},100);return fe.useEffect(()=>{let d=o.viewport;if(d){let f=()=>{if(c(),!u.current){let p=NV(d,s);u.current=p,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[o.viewport,c,s]),(0,Ve.jsx)(Ts.div,{"data-state":i.hasThumb?"visible":"hidden",...n,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:po(e.onPointerDownCapture,d=>{let p=d.target.getBoundingClientRect(),g=d.clientX-p.left,w=d.clientY-p.top;i.onThumbPointerDown({x:g,y:w})}),onPointerUp:po(e.onPointerUp,i.onThumbPointerUp)})});fx.displayName=dm;var px="ScrollAreaCorner",u$=fe.forwardRef((e,t)=>
10{let r=rn(px,e.__scopeScrollArea),a=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&a?(0,Ve.jsx)(DV,{...e,ref:t}):null});u$.displayName=px;var DV=fe.forwardRef((e,t)=>{let{__scopeScrollArea:r,...a}=e,n=rn(px,r),[o,i]=fe.useState(0),[s,l]=fe.useState(0),u=!!(o&&s);return Ls(n.scrollbarX,()=>{let c=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(c),l(c)}),Ls(n.scrollbarY,()=>{let c=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(c),i(c)}),u?(0,Ve.jsx)(Ts.div,{...a,ref:t,style:{width:o,height:s,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function fm(e){return e?parseInt(e,10):0}function c$(e,t){let r=e/t;return isNaN(r)?0:r}function pm(e){let t=c$(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-r)*t;return Math.max(a,18)}function zV(e,t,r,a="ltr"){let n=pm(r),o=n/2,i=t||o,s=n-i,l=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-s,c=r.content-r.viewport,d=a==="ltr"?[0,c]:[c*-1,0];return d$([l,u],d)(e)}function e$(e,t,r="ltr"){let a=pm(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-n,i=t.content-t.viewport,s=o-a,l=r==="ltr"?[0,i]:[i*-1,0],u=qT(e,l);return d$([0,i],[0,s])(u)}function d$(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}function f$(e,t){return e>0&&e<t}var NV=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},a=0;return(function n(){let o={left:e.scrollLeft,top:e.scrollTop},i=r.left!==o.left,s=r.top!==o.top;(i||s)&&t(),r=o,a=window.requestAnimationFrame(n)})(),()=>window.cancelAnimationFrame(a)};function mm(e,t){let r=mo(e),a=fe.useRef(0);return fe.useEffect(()=>()=>window.clearTimeout(a.current),[]),fe.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)},[r,t])}function Ls(e,t){let r=mo(t);lc(()=>{let a=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(a),n.unobserve(e)}}},[e,r])}var p$=n$,m$=o$;var h$=u$;var ho=R(j());function mx({className:e,children:t,...r}){return(0,ho.jsxs)(p$,{"data-slot":"scroll-area",className:se("relative",e),...r,children:[(0,ho.jsx)(m$,{"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,ho.jsx)(hm,{}),(0,ho.jsx)(h$,{})]})}function hm({className:e,orientation:t="vertical",...r}){return(0,ho.jsx)(cx,{"data-slot":"scroll-area-scrollbar",orientation:t,className:se("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,ho.jsx)(fx,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var g$=R(j());var b$=R(ee());var m2e=R(ee());var FV=R(j());var uc=R(ee());var v2e=R(ee());var UV=R(j());var BV=R(j());var I2e=uc.createContext({});var k2e=uc.createContext({});var v$=R(j());function hx({className:e,...t}){return(0,v$.jsx)(Wa,{role:"status","aria-label":"Loading",className:se("size-4 animate-spin",e),...t})}var y$=R(ee());var x$=R(j()),vm=y$.forwardRef(({className:e,...t},r)=>(0,x$.jsx)("textarea",{ref:r,"data-slot":"textarea",className:se("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}));vm.displayName="Textarea";var w$=R(j());var K$="vercel.ai.error",VV=Symbol.for(K$),S$,I$,Ue=class X$ extends(I$=Error,S$=VV,I$){constructor({name:t,message:r,cause:a}){super(r),this[S$]=!0,this.name=t,this.cause=a}static isInstance(t){return X$.hasMarker(t,K$)}static hasMarker(t,r){let a=Symbol.for(r);return t!=null&&typeof t=="object"&&a in t&&typeof t[a]=="boolean"&&t[a]===!0}},Y$="AI_APICallError",Q$=`vercel.ai.error.${Y$}`,ZV=Symbol.for(Q$),k$,_$,Y2e=class extends(_$=Ue,k$=ZV,_$){constructor({message:e,url:t,requestBodyValues:r,statusCode:a,responseHeaders:n,responseBody:o,cause:i,isRetryable:s=a!=null&&(a===408||a===409||a===429||a>=500),data:l}){super({name:Y$,message:e,cause:i}),this[k$]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=a,this.responseHeaders=n,this.responseBody=o,this.isRetryable=s,this.data=l}static isInstance(e){return Ue.hasMarker(e,Q$)}},e7="AI_EmptyResponseBodyError",t7=`vercel.ai.error.${e7}`,qV=Symbol.for(t7),C$,T$,Q2e=class extends(T$=Ue,C$=qV,T$){constructor({message:e="Empty response body"}={}){super({name:e7,message:e}),this[C$]=!0}static isInstance(e){return Ue.hasMarker(e,t7)}};function r7(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var n7="AI_InvalidArgumentError",a7=`vercel.ai.error.${n7}`,GV=Symbol.for(a7),$$,P$,o7=class extends(P$=Ue,$$=GV,P$){constructor({message:e,cause:t,argument:r}){super({name:n7,message:e,cause:t}),this[$$]=!0,this.argument=r}static isInstance(e){return Ue.hasMarker(e,a7)}},i7="AI_InvalidPromptError",s7=`vercel.ai.error.${i7}`,HV=Symbol.for(s7),L$,A$,eSe=class extends(A$=Ue,L$=HV,A$){constructor({prompt:e,message:t,cause:r}){super({name:i7,message:`Invalid prompt: ${t}`,cause:r}),this[L$]=!0,this.prompt=e}static isInstance(e){return Ue.hasMarker(e,s7)}},l7="AI_InvalidResponseDataError",u7=`vercel.ai.error.${l7}`,WV=Symbol.for(u7),E$,M$,tSe=class extends(M$=Ue,E$=WV,M$){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:l7,message:t}),this[E$]=!0,this.data=e}static isInstance(e){return Ue.hasMarker(e,u7)}},c7="AI_JSONParseError",d7=`vercel.ai.error.${c7}`,JV=Symbol.for(d7),R$,D$,vx=class extends(D$=Ue,R$=JV,D$){constructor({text:e,cause:t}){super({name:c7,message:`JSON parsing failed: Text: ${e}. 11Error message: ${r7(t)}`,cause:t}),this[R$]=!0,this.text=e}static isInstance(e){return Ue.hasMarker(e,d7)}},f7="AI_LoadAPIKeyError",p7=`vercel.ai.error.${f7}`,KV=Symbol.for(p7),z$,N$,rSe=class extends(N$=Ue,z$=KV,N$){constructor({message:e}){super({name:f7,message:e}),this[z$]=!0}static isInstance(e){return Ue.hasMarker(e,p7)}},m7="AI_LoadSettingError",h7=`vercel.ai.error.${m7}`,XV=Symbol.for(h7),O$,F$,nSe=class extends(F$=Ue,O$=XV,F$){constructor({message:e}){super({name:m7,message:e}),this[O$]=!0}static isInstance(e){return Ue.hasMarker(e,h7)}},g7="AI_NoContentGeneratedError",v7=`vercel.ai.error.${g7}`,YV=Symbol.for(v7),U$,B$,aSe=class extends(B$=Ue,U$=YV,B$){constructor({message:e="No content generated."}={}){super({name:g7,message:e}),this[U$]=!0}static isInstance(e){return Ue.hasMarker(e,v7)}}
11,y7="AI_NoSuchModelError",x7=`vercel.ai.error.${y7}`,QV=Symbol.for(x7),j$,V$,oSe=class extends(V$=Ue,j$=QV,V$){constructor({errorName:e=y7,modelId:t,modelType:r,message:a=`No such ${r}: ${t}`}){super({name:e,message:a}),this[j$]=!0,this.modelId=t,this.modelType=r}static isInstance(e){return Ue.hasMarker(e,x7)}},b7="AI_TooManyEmbeddingValuesForCallError",w7=`vercel.ai.error.${b7}`,eZ=Symbol.for(w7),Z$,q$,iSe=class extends(q$=Ue,Z$=eZ,q$){constructor(e){super({name:b7,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[Z$]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return Ue.hasMarker(e,w7)}},S7="AI_TypeValidationError",I7=`vercel.ai.error.${S7}`,tZ=Symbol.for(I7),G$,H$,Nn=class gx extends(H$=Ue,G$=tZ,H$){constructor({value:t,cause:r,context:a}){let n="Type validation failed";if(a?.field&&(n+=` for ${a.field}`),a?.entityName||a?.entityId){n+=" (";let o=[];a.entityName&&o.push(a.entityName),a.entityId&&o.push(`id: "${a.entityId}"`),n+=o.join(", "),n+=")"}super({name:S7,message:`${n}: Value: ${JSON.stringify(t)}. 12Error message: ${r7(r)}`,cause:r}),this[G$]=!0,this.value=t,this.context=a}static isInstance(t){return Ue.hasMarker(t,I7)}static wrap({value:t,cause:r,context:a}){var n,o,i;return gx.isInstance(r)&&r.value===t&&((n=r.context)==null?void 0:n.field)===a?.field&&((o=r.context)==null?void 0:o.entityName)===a?.entityName&&((i=r.context)==null?void 0:i.entityId)===a?.entityId?r:new gx({value:t,cause:r,context:a})}},k7="AI_UnsupportedFunctionalityError",_7=`vercel.ai.error.${k7}`,rZ=Symbol.for(_7),W$,J$,sSe=class extends(J$=Ue,W$=rZ,J$){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:k7,message:t}),this[W$]=!0,this.functionality=e}static isInstance(e){return Ue.hasMarker(e,_7)}};var nZ=Object.freeze({status:"aborted"});function M(e,t,r){function a(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let u=i.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){let f=c[d];f in s||(s[f]=u[f].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function i(s){var l;let u=r?.Parent?new o:this;a(u,s),(l=u._zod).deferred??(l.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:a}),Object.defineProperty(i,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var On=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},vi=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},ym={};function Zt(e){return e&&Object.assign(ym,e),ym}var W={};vr(W,{BIGINT_FORMAT_RANGES:()=>Cx,Class:()=>xx,NUMBER_FORMAT_RANGES:()=>_x,aborted:()=>xo,allowsEval:()=>Sx,assert:()=>lZ,assertEqual:()=>aZ,assertIs:()=>iZ,assertNever:()=>sZ,assertNotEqual:()=>oZ,assignProp:()=>vo,base64ToUint8Array:()=>$7,base64urlToUint8Array:()=>_Z,cached:()=>Es,captureStackTrace:()=>bm,cleanEnum:()=>kZ,cleanRegex:()=>fc,clone:()=>Dr,cloneDef:()=>cZ,createTransparentProxy:()=>gZ,defineLazy:()=>Re,esc:()=>xm,escapeRegex:()=>nn,extend:()=>xZ,finalizeIssue:()=>br,floatSafeRemainder:()=>bx,getElementAtPath:()=>dZ,getEnumValues:()=>dc,getLengthableOrigin:()=>hc,getParsedType:()=>hZ,getSizableOrigin:()=>mc,hexToUint8Array:()=>TZ,isObject:()=>yi,isPlainObject:()=>yo,issue:()=>Ms,joinValues:()=>he,jsonStringifyReplacer:()=>As,merge:()=>wZ,mergeDefs:()=>va,normalizeParams:()=>ne,nullish:()=>go,numKeys:()=>mZ,objectClone:()=>uZ,omit:()=>yZ,optionalKeys:()=>kx,parsedType:()=>ve,partial:()=>SZ,pick:()=>vZ,prefixIssues:()=>zr,primitiveTypes:()=>Ix,promiseAllObject:()=>fZ,propertyKeyTypes:()=>pc,randomString:()=>pZ,required:()=>IZ,safeExtend:()=>bZ,shallowClone:()=>T7,slugify:()=>wx,stringifyPrimitive:()=>ge,uint8ArrayToBase64:()=>P7,uint8ArrayToBase64url:()=>CZ,uint8ArrayToHex:()=>$Z,unwrapMessage:()=>cc});function aZ(e){return e}function oZ(e){return e}function iZ(e){}function sZ(e){throw new Error("Unexpected value in exhaustive check")}function lZ(e){}function dc(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,n])=>t.indexOf(+a)===-1).map(([a,n])=>n)}function he(e,t="|"){return e.map(r=>ge(r)).join(t)}function As(e,t){return typeof t=="bigint"?t.toString():t}function Es(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function go(e){return e==null}function fc(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function bx(e,t){let r=(e.toString().split(".")[1]||"").length,a=t.toString(),n=(a.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(a)){let l=a.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var C7=Symbol("evaluating");function Re(e,t,r){let a;
vendor: 4,807 bytes, line 12
12Object.defineProperty(e,t,{get(){if(a!==C7)return a===void 0&&(a=C7,a=r()),a},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function uZ(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function vo(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function va(...e){let t={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function cZ(e){return va(e._zod.def)}function dZ(e,t){return t?t.reduce((r,a)=>r?.[a],e):e}function fZ(e){let t=Object.keys(e),r=t.map(a=>e[a]);return Promise.all(r).then(a=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=a[o];return n})}function pZ(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let a=0;a<e;a++)r+=t[Math.floor(Math.random()*t.length)];return r}function xm(e){return JSON.stringify(e)}function wx(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var bm="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function yi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Sx=Es(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function yo(e){if(yi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(yi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function T7(e){return yo(e)?{...e}:Array.isArray(e)?[...e]:e}function mZ(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var hZ=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}`)}},pc=new Set(["string","number","symbol"]),Ix=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dr(e,t,r){let a=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(a._zod.parent=e),a}function ne(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 gZ(e){let t;return new Proxy({},{get(r,a,n){return t??(t=e()),Reflect.get(t,a,n)},set(r,a,n,o){return t??(t=e()),Reflect.set(t,a,n,o)},has(r,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(r,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(r,a,n){return t??(t=e()),Reflect.defineProperty(t,a,n)}})}function ge(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function kx(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var _x={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]},Cx={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function vZ(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=va(e._zod.def,{get shape(){let i={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(i[s]=r.shape[s])}return vo(this,"shape",i),i},checks:[]});return Dr(e,o)}function yZ(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=va(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete i[s]}return vo(this,"shape",i),i},checks:[]});return Dr(e,o)}function xZ(e,t){if(!yo(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot over
12write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=va(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return vo(this,"shape",o),o}});return Dr(e,n)}function bZ(e,t){if(!yo(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=va(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return vo(this,"shape",a),a}});return Dr(e,r)}function wZ(e,t){let r=va(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return vo(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return Dr(e,r)}function SZ(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 i=va(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)l[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return vo(this,"shape",l),l},checks:[]});return Dr(t,i)}function IZ(e,t,r){let a=va(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=new e({type:"nonoptional",innerType:n[i]}))}else for(let i in n)o[i]=new e({type:"nonoptional",innerType:n[i]});return vo(this,"shape",o),o}});return Dr(t,a)}function xo(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 zr(e,t){return t.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function cc(e){return typeof e=="string"?e:e?.message}function br(e,t,r){let a={...e,path:e.path??[]};if(!e.message){let n=cc(e.inst?._zod.def?.error?.(e))??cc(t?.error?.(e))??cc(r.customError?.(e))??cc(r.localeError?.(e))??"Invalid input";a.message=n}return delete a.inst,delete a.continue,t?.reportInput||delete a.input,a}function mc(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function hc(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ve(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 Ms(...e){let[t,r,a]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:a}:{...t}}function kZ(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function $7(e){let t=atob(e),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a);return r}function P7(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function _Z(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return $7(t+r)}function CZ(e){return P7(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function TZ(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 a=0;a<t.length;a+=2)r[a/2]=Number.parseInt(t.slice(a,a+2),16);return r}function $Z(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var xx=class{constructor(...t){}};var L7=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,As,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},wm=M("$ZodError",L7),gc=M("$ZodError",L7,{Parent:Error});function Tx(e,t=r=>r.message){let r={},a=[];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))):a.push(t(n));return{formErrors:a,fieldErrors:r}}function $x(e,t=r=>r.message){let r={_errors:[]},a=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>a({issues:i}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let i=r,s=0;for(;s<o.path.length;){let l=o.path[s];s===o.path.length-1?(i[l]=i[l]||{_errors:[]},i[l]._errors.push(t(o))):i[l]=i[l]||{_errors:[]},i=i[l],s++}}};return a(e),r}var vc=e=>(t,r,a,n)=>{let o=a?Object.assign(a,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new On;
12if(i.issues.length){let s=new(n?.Err??e)(i.issues.map(l=>br(l,o,Zt())));throw bm(s,n?.callee),s}return i.value},Px=vc(gc),yc=e=>async(t,r,a,n)=>{let o=a?Object.assign(a,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){let s=new(n?.Err??e)(i.issues.map(l=>br(l,o,Zt())));throw bm(s,n?.callee),s}return i.value},Lx=yc(gc),xc=e=>(t,r,a)=>{let n=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new On;return o.issues.length?{success:!1,error:new(e??wm)(o.issues.map(i=>br(i,n,Zt())))}:{success:!0,data:o.value}},A7=xc(gc),bc=e=>async(t,r,a)=>{let n=a?Object.assign(a,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>br(i,n,Zt())))}:{success:!0,data:o.value}},E7=bc(gc),M7=e=>(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return vc(e)(t,r,n)};var R7=e=>(t,r,a)=>vc(e)(t,r,a);var D7=e=>async(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return yc(e)(t,r,n)};var z7=e=>async(t,r,a)=>yc(e)(t,r,a);var N7=e=>(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return xc(e)(t,r,n)};var O7=e=>(t,r,a)=>xc(e)(t,r,a);var F7=e=>async(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return bc(e)(t,r,n)};var U7=e=>async(t,r,a)=>bc(e)(t,r,a);var Fn={};vr(Fn,{base64:()=>Gx,base64url:()=>Sm,bigint:()=>Yx,boolean:()=>eb,browserEmail:()=>NZ,cidrv4:()=>Zx,cidrv6:()=>qx,cuid:()=>Ax,cuid2:()=>Ex,date:()=>Wx,datetime:()=>Kx,domain:()=>UZ,duration:()=>Nx,e164:()=>Hx,email:()=>Fx,emoji:()=>Ux,extendedDuration:()=>LZ,guid:()=>Ox,hex:()=>BZ,hostname:()=>FZ,html5Email:()=>RZ,idnEmail:()=>zZ,integer:()=>Qx,ipv4:()=>Bx,ipv6:()=>jx,ksuid:()=>Dx,lowercase:()=>nb,mac:()=>Vx,md5_base64:()=>VZ,md5_base64url:()=>ZZ,md5_hex:()=>jZ,nanoid:()=>zx,null:()=>tb,number:()=>Im,rfc5322Email:()=>DZ,sha1_base64:()=>GZ,sha1_base64url:()=>HZ,sha1_hex:()=>qZ,sha256_base64:()=>JZ,sha256_base64url:()=>KZ,sha256_hex:()=>WZ,sha384_base64:()=>YZ,sha384_base64url:()=>QZ,sha384_hex:()=>XZ,sha512_base64:()=>tq,sha512_base64url:()=>rq,sha512_hex:()=>eq,string:()=>Xx,time:()=>Jx,ulid:()=>Mx,undefined:()=>rb,unicodeEmail:()=>B7,uppercase:()=>ab,uuid:()=>xi,uuid4:()=>AZ,uuid6:()=>EZ,uuid7:()=>MZ,xid:()=>Rx});var Ax=/^[cC][^\s-]{8,}$/,Ex=/^[0-9a-z]+$/,Mx=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Rx=/^[0-9a-vA-V]{20}$/,Dx=/^[A-Za-z0-9]{27}$/,zx=/^[a-zA-Z0-9_-]{21}$/,Nx=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,LZ=/^[-+]?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)?)??$/,Ox=/^([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})$/,xi=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)$/,AZ=xi(4),EZ=xi(6),MZ=xi(7),Fx=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,RZ=/^[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])?)*$/,DZ=/^(([^<>()\[\]\\.,;:\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,}))$/,B7=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,zZ=B7,NZ=/^[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])?)*$/,OZ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ux(){return new RegExp(OZ,"u")}var Bx=/^(?:(?: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])$/,jx=/^(([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}|:))$/,Vx=e=>{let t=nn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Zx=/^((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])$/,qx=/^(([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])$/,Gx=/^$|^(?:[0-9a-zA-Z+/]{4}
vendor: 83,109 bytes, lines 12-50
12)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Sm=/^[A-Za-z0-9_-]*$/,FZ=/^(?=.{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])?)*\.?$/,UZ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Hx=/^\+[1-9]\d{6,14}$/,j7="(?:(?:\\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])))",Wx=new RegExp(`^${j7}$`);function V7(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 Jx(e){return new RegExp(`^${V7(e)}$`)}function Kx(e){let t=V7({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${t}(?:${r.join("|")})`;return new RegExp(`^${j7}T(?:${a})$`)}var Xx=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Yx=/^-?\d+n?$/,Qx=/^-?\d+$/,Im=/^-?\d+(?:\.\d+)?$/,eb=/^(?:true|false)$/i,tb=/^null$/i;var rb=/^undefined$/i;var nb=/^[^A-Z]*$/,ab=/^[^a-z]*$/,BZ=/^[0-9a-fA-F]*$/;function wc(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Sc(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var jZ=/^[0-9a-fA-F]{32}$/,VZ=wc(22,"=="),ZZ=Sc(22),qZ=/^[0-9a-fA-F]{40}$/,GZ=wc(27,"="),HZ=Sc(27),WZ=/^[0-9a-fA-F]{64}$/,JZ=wc(43,"="),KZ=Sc(43),XZ=/^[0-9a-fA-F]{96}$/,YZ=wc(64,""),QZ=Sc(64),eq=/^[0-9a-fA-F]{128}$/,tq=wc(86,"=="),rq=Sc(86);var lt=M("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),q7={number:"number",bigint:"bigint",object:"date"},ob=M("$ZodCheckLessThan",(e,t)=>{lt.init(e,t);let r=q7[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ib=M("$ZodCheckGreaterThan",(e,t)=>{lt.init(e,t);let r=q7[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),G7=M("$ZodCheckMultipleOf",(e,t)=>{lt.init(e,t),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.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):bx(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})}}),H7=M("$ZodCheckNumberFormat",(e,t)=>{lt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),a=r?"int":"number",[n,o]=_x[t.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=Qx)}),e._zod.check=i=>{let s=i.value;if(r){if(!Number.isInteger(s)){i.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}s<n&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),W7=M("$ZodCheckBigIntFormat",(e,t)=>{lt.init(e,t);let[r,a]=Cx[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=a}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>a&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),J7=M("$ZodCheckMaxSize",(e,t)=>{var r;lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!go(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;n.size<=t.maximum||a.issues.push({origin:mc(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),K7=M("$ZodCheckMinSize",(e,t)=>{var r;lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!go(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;n.size>=t.minimum||a.issues.push({origin:mc(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),X7=M("$ZodCheckSizeEquals",(e,t)=>{var r;lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!go(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=a=>{let n=a.value,o=n.size;if(o===t.size)return;let i=o>t.size;a.issues.push({origin:mc(n),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Y7=M("$ZodCheckMaxLength",(e,t)=>{var r;lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!go(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;if(n.length<=t.maximum)return;let i=hc(n);a.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Q7=M("$ZodCheckMinLength",(e,t)=>{var r;lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!go(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;if(n.length>=t.minimum)return;let i=hc(n);a.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),e8=M("$ZodCheckLengthEquals",(e,t)=>{var r;lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!go(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=a=>{let n=a.value,o=n.length;if(o===t.length)return;let i=hc(n),s=o>t.length;a.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Ic=M("$ZodCheckStringFormat",(e,t)=>{var r,a;lt.init(e,t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.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})}):(a=e._zod).check??(a.check=()=>{})}),t8=M("$ZodCheckRegex",(e,t)=>{Ic.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})}}),r8=M("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=nb),Ic.init(e,t)}),n8=M("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ab),Ic.init(e,t)}),a8=M("$ZodCheckIncludes",(e,t)=>{lt.init(e,t);let r=nn(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=a,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),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})}}),o8=M("$ZodCheckStartsWith",(e,t)=>{lt.init(e,t);let r=new RegExp(`^${nn(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),i8=M("$ZodCheckEndsWith",(e,t)=>{lt.init(e,t);let r=new RegExp(`.*${nn(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function Z7(e,t,r){e.issues.length&&t.issues.push(...zr(r,e.issues))}var s8=M("$ZodCheckProperty",(e,t)=>{lt.init(e,t),e._zod.check=r=>{let a=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(n=>Z7(n,r,t.property));Z7(a,r,t.property)}}),l8=M("$ZodCheckMimeType",(e,t)=>{lt.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=t.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),u8=M("$ZodCheckOverwrite",(e,t)=>{lt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var km=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 a=t.split(` 13`).filter(i=>i),n=Math.min(...a.map(i=>i.length-i.trimStart().length)),o=a.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(` 14`))}};var d8={major:4,minor:3,patch:6};var Ie=M("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=d8;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let n of a)for(let o of n._zod.onattach)o(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(i,s,l)=>{let u=xo(i),c;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(i))continue}else if(u)continue;let f=i.issues.length,p=d._zod.check(i);if(p instanceof Promise&&l?.async===!1)throw new On;if(c||p instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await p,i.issues.length!==f&&(u||(u=xo(i,f)))});else{if(i.issues.length===f)continue;u||(u=xo(i,f))}}return c?c.then(()=>i):i},o=(i,s,l)=>{if(xo(i))return i.aborted=!0,i;let u=n(s,a,l);if(u instanceof Promise){if(l.async===!1)throw new On;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){let u=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(c=>o(c,i,s)):o(u,i,s)}let l=e._zod.parse(i,s);if(l instanceof Promise){if(s.async===!1)throw new On;return l.then(u=>n(u,a,s))}return n(l,a,s)}}Re(e,"~standard",()=>({validate:n=>{try{let o=A7(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return E7(e,n).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Rs=M("$ZodString",(e,t)=>{Ie.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Xx(e._zod.bag),e._zod.parse=(r,a)=>{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}}),rt=M("$ZodStringFormat",(e,t)=>{Ic.init(e,t),Rs.init(e,t)}),I8=M("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ox),rt.init(e,t)}),k8=M("$ZodUUID",(e,t)=>{if(t.version){let a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=xi(a))}else t.pattern??(t.pattern=xi());rt.init(e,t)}),_8=M("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Fx),rt.init(e,t)}),C8=M("$ZodURL",(e,t)=>{rt.init(e,t),e._zod.check=r=>{try{let a=r.value.trim(),n=new URL(a);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=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),T8=M("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ux()),rt.init(e,t)}),$8=M("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=zx),rt.init(e,t)}),P8=M("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ax),rt.init(e,t)}),L8=M("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ex),rt.init(e,t)}),A8=M("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Mx),rt.init(e,t)}),E8=M("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Rx),rt.init(e,t)}),M8=M("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Dx),rt.init(e,t)}),R8=M("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Kx(t)),rt.init(e,t)}),D8=M("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Wx),rt.init(e,t)}),z8=M("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Jx(t)),rt.init(e,t)}),N8=M("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Nx),rt.init(e,t)}),O8=M("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Bx),rt.init(e,t),e._zod.bag.format="ipv4"}),F8=M("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=jx),rt.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})}}}),U8=M("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Vx(t.delimiter)),rt.init(e,t),e._zod.bag.format="mac"}),B8=M("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Zx),rt.init(e,t)}),j8=M("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=qx),rt.init(e,t),e._zod.check=r=>{let a=r.value.split("/");try{if(a.length!==2)throw new Error;let[n,o]=a;if(!o)throw new Error;let i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>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 V8(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Z8=M("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Gx),rt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{V8(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function nq(e){if(!Sm.test(e))return!1;let t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return V8(r)}var q8=M("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Sm),rt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{nq(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),G8=M("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Hx),rt.init(e,t)});function aq(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let n=JSON.parse(atob(a));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var H8=M("$ZodJWT",(e,t)=>{rt.init(e,t),e._zod.check=r=>{aq(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),W8=M("$ZodCustomStringFormat",(e,t)=>{rt.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})}}),lb=M("$ZodNumber",(e,t)=>{Ie.init(e,t),e._zod.pattern=e._zod.bag.pattern??Im,e._zod.parse=(r,a)=>{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 o=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,...o?{received:o}:{}}),r}}),J8=M("$ZodNumberFormat",(e,t)=>{H7.init(e,t),lb.init(e,t)}),Lm=M("$ZodBoolean",(e,t)=>{Ie.init(e,t),e._zod.pattern=eb,e._zod.parse=(r,a)=>{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}}),ub=M("$ZodBigInt",(e,t)=>{Ie.init(e,t),e._zod.pattern=Yx,e._zod.parse=(r,a)=>{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}}),K8=M("$ZodBigIntFormat",(e,t)=>{W7.init(e,t),ub.init(e,t)}),X8=M("$ZodSymbol",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Y8=M("$ZodUndefined",(e,t)=>{Ie.init(e,t),e._zod.pattern=rb,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Q8=M("$ZodNull",(e,t)=>{Ie.init(e,t),e._zod.pattern=tb,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),eP=M("$ZodAny",(e,t)=>{Ie.init(e,t),e._zod.parse=r=>r}),tP=M("$ZodUnknown",(e,t)=>{Ie.init(e,t),e._zod.parse=r=>r}),rP=M("$ZodNever",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),nP=M("$ZodVoid",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),aP=M("$ZodDate",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function f8(e,t,r){e.issues.length&&t.issues.push(...zr(r,e.issues)),t.value[r]=e.value}var oP=M("$ZodArray",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{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 o=[];for(let i=0;i<n.length;i++){let s=n[i],l=t.element._zod.run({value:s,issues:[]},a);l instanceof Promise?o.push(l.then(u=>f8(u,r,i))):f8(l,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function Pm(e,t,r,a,n){if(e.issues.length){if(n&&!(r in a))return;t.issues.push(...zr(r,e.issues))}e.value===void 0?r in a&&(t.value[r]=void 0):t.value[r]=e.value}function iP(e){let t=Object.keys(e.shape);for(let a of t)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);let r=kx(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function sP(e,t,r,a,n,o){let i=[],s=n.keySet,l=n.catchall._zod,u=l.def.type,c=l.optout==="optional";for(let d in t){if(s.has(d))continue;if(u==="never"){i.push(d);continue}let f=l.run({value:t[d],issues:[]},a);f instanceof Promise?e.push(f.then(p=>Pm(p,r,d,t,c))):Pm(f,r,d,t,c)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var oq=M("$ZodObject",(e,t)=>{if(Ie.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 a=Es(()=>iP(t));Re(e._zod,"propValues",()=>{let s=t.shape,l={};for(let u in s){let c=s[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let d of c.values)l[u].add(d)}}return l});let n=yi,o=t.catchall,i;e._zod.parse=(s,l)=>{i??(i=a.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let c=[],d=i.shape;for(let f of i.keys){let p=d[f],g=p._zod.optout==="optional",w=p._zod.run({value:u[f],issues:[]},l);w instanceof Promise?c.push(w.then(y=>Pm(y,s,f,u,g))):Pm(w,s,f,u,g)}return o?sP(c,u,s,l,a.value,e):c.length?Promise.all(c).then(()=>s):s}}),lP=M("$ZodObjectJIT",(e,t)=>{oq.init(e,t);let r=e._zod.parse,a=Es(()=>iP(t)),n=f=>{let p=new km(["shape","payload","ctx"]),g=a.value,w=x=>{let C=xm(x);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};p.write("const input = payload.value;");let y=Object.create(null),I=0;for(let x of g.keys)y[x]=`key_${I++}`;p.write("const newResult = {};");for(let x of g.keys){let C=y[x],_=xm(x),D=f[x]?._zod?.optout==="optional";p.write(`const ${C} = ${w(x)};`),D?p.write(` 15 if (${C}.issues.length) { 16 if (${_} in input) { 17 payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ 18 ...iss, 19 path: iss.path ? [${_}, ...iss.path] : [${_}] 20 }))); 21 } 22 } 23 24 if (${C}.value === undefined) { 25 if (${_} in input) { 26 newResult[${_}] = undefined; 27 } 28 } else { 29 newResult[${_}] = ${C}.value; 30 } 31 32 `):p.write(` 33 if (${C}.issues.length) { 34 payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ 35 ...iss, 36 path: iss.path ? [${_}, ...iss.path] : [${_}] 37 }))); 38 } 39 40 if (${C}.value === undefined) { 41 if (${_} in input) { 42 newResult[${_}] = undefined; 43 } 44 } else { 45 newResult[${_}] = ${C}.value; 46 } 47 48 `)}p.write("payload.value = newResult;"),p.write("return payload;");let S=p.compile();return(x,C)=>S(f,x,C)},o,i=yi,s=!ym.jitless,u=s&&Sx.value,c=t.catchall,d;e._zod.parse=(f,p)=>{d??(d=a.value);let g=f.value;return i(g)?s&&u&&p?.async===!1&&p.jitless!==!0?(o||(o=n(t.shape)),f=o(f,p),c?sP([],g,f,p,d,e):f):r(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function p8(e,t,r,a){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!xo(o));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(o=>o.issues.map(i=>br(i,a,Zt())))}),t)}var Am=M("$ZodUnion",(e,t)=>{Ie.init(e,t),Re(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Re(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Re(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Re(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>fc(o.source)).join("|")})$`)}});let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return a(n,o);let i=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},o);if(u instanceof Promise)s.push(u),i=!0;else{if(u.issues.length===0)return u;s.push(u)}}return i?Promise.all(s).then(l=>p8(l,n,e,o)):p8(s,n,e,o)}});function m8(e,t,r,a){let n=e.filter(o=>o.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(o=>o.issues.map(i=>br(i,a,Zt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var uP=M("$ZodXor",(e,t)=>{Am.init(e,t),t.inclusive=!1;let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return a(n,o);let i=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},o);u instanceof Promise?(s.push(u),i=!0):s.push(u)}return i?Promise.all(s).then(l=>m8(l,n,e,o)):m8(s,n,e,o)}}),cP=M("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Am.init(e,t);let r=e._zod.parse;Re(e._zod,"propValues",()=>{let n={};for(let o of t.options){let i=o._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,l]of Object.entries(i)){n[s]||(n[s]=new Set);for(let u of l)n[s].add(u)}}return n});let a=Es(()=>{let n=t.options,o=new Map;for(let i of n){let s=i._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let l of s){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,i)}}return o});e._zod.parse=(n,o)=>{let i=n.value;if(!yi(i))return n.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),n;let s=a.value.get(i?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),n)}}),dP=M("$ZodIntersection",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},a),i=t.right._zod.run({value:n,issues:[]},a);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([l,u])=>h8(r,l,u)):h8(r,o,i)}});function sb(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(yo(e)&&yo(t)){let r=Object.keys(t),a=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of a){let i=sb(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n[o]=i.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 a=0;a<e.length;a++){let n=e[a],o=t[a],i=sb(n,o);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function h8(e,t,r){let a=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let l of s.keys)a.has(l)||a.set(l,{}),a.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)a.has(l)||a.set(l,{}),a.get(l).r=!0;else e.issues.push(s);let o=[...a].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&e.issues.push({...n,keys:o}),xo(e))return e;let i=sb(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var cb=M("$ZodTuple",(e,t)=>{Ie.init(e,t);let r=t.items;e._zod.parse=(a,n)=>{let o=a.value;if(!Array.isArray(o))return a.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];let i=[],s=[...r].reverse().findIndex(c=>c._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let c=o.length>r.length,d=o.length<l-1;if(c||d)return a.issues.push({...c?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),a}let u=-1;for(let c of r){if(u++,u>=o.length&&u>=l)continue;let d=c._zod.run({value:o[u],issues:[]},n);d instanceof Promise?i.push(d.then(f=>_m(f,a,u))):_m(d,a,u)}if(t.rest){let c=o.slice(r.length);for(let d of c){u++;let f=t.rest._zod.run({value:d,issues:[]},n);f instanceof Promise?i.push(f.then(p=>_m(p,a,u))):_m(f,a,u)}}return i.length?Promise.all(i).then(()=>a):a}});function _m(e,t,r){e.issues.length&&t.issues.push(...zr(r,e.issues)),t.value[r]=e.value}var fP=M("$ZodRecord",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!yo(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],i=t.keyType._zod.values;if(i){r.value={};let s=new Set;for(let u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let c=t.valueType._zod.run({value:n[u],issues:[]},a);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&r.issues.push(...zr(u,d.issues)),r.value[u]=d.value})):(c.issues.length&&r.issues.push(...zr(u,c.issues)),r.value[u]=c.value)}let l;for(let u in n)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},a);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Im.test(s)&&l.issues.length){let d=t.keyType._zod.run({value:Number(s),issues:[]},a);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=>br(d,a,Zt())),input:s,path:[s],inst:e});continue}let c=t.valueType._zod.run({value:n[s],issues:[]},a);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&r.issues.push(...zr(s,d.issues)),r.value[l.value]=d.value})):(c.issues.length&&r.issues.push(...zr(s,c.issues)),r.value[l.value]=c.value)}}return o.length?Promise.all(o).then(()=>r):r}}),pP=M("$ZodMap",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[i,s]of n){let l=t.keyType._zod.run({value:i,issues:[]},a),u=t.valueType._zod.run({value:s,issues:[]},a);l instanceof Promise||u instanceof Promise?o.push(Promise.all([l,u]).then(([c,d])=>{g8(c,d,r,i,n,e,a)})):g8(l,u,r,i,n,e,a)}return o.length?Promise.all(o).then(()=>r):r}});function g8(e,t,r,a,n,o,i){e.issues.length&&(pc.has(typeof a)?r.issues.push(...zr(a,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>br(s,i,Zt()))})),t.issues.length&&(pc.has(typeof a)?r.issues.push(...zr(a,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:a,issues:t.issues.map(s=>br(s,i,Zt()))})),r.value.set(e.value,t.value)}var mP=M("$ZodSet",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let i of n){let s=t.valueType._zod.run({value:i,issues:[]},a);s instanceof Promise?o.push(s.then(l=>v8(l,r))):v8(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function v8(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var hP=M("$ZodEnum",(e,t)=>{Ie.init(e,t);let r=dc(t.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(n=>pc.has(typeof n)).map(n=>typeof n=="string"?nn(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let i=n.value;return a.has(i)||n.issues.push({code:"invalid_value",values:r,input:i,inst:e}),n}}),gP=M("$ZodLiteral",(e,t)=>{if(Ie.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(a=>typeof a=="string"?nn(a):a?nn(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,n)=>{let o=a.value;return r.has(o)||a.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),a}}),vP=M("$ZodFile",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),yP=M("$ZodTransform",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new vi(e.constructor.name);let n=t.transform(r.value,r);if(a.async)return(n instanceof Promise?n:Promise.resolve(n)).then(i=>(r.value=i,r));if(n instanceof Promise)throw new On;return r.value=n,r}});function y8(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var db=M("$ZodOptional",(e,t)=>{Ie.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Re(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${fc(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>y8(o,r.value)):y8(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,a)}}),xP=M("$ZodExactOptional",(e,t)=>{db.init(e,t),Re(e._zod,"values",()=>t.innerType._zod.values),Re(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,a)=>t.innerType._zod.run(r,a)}),bP=M("$ZodNullable",(e,t)=>{Ie.init(e,t),Re(e._zod,"optin",()=>t.innerType._zod.optin),Re(e._zod,"optout",()=>t.innerType._zod.optout),Re(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${fc(r.source)}|null)$`):void 0}),Re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:t.innerType._zod.run(r,a)}),wP=M("$ZodDefault",(e,t)=>{Ie.init(e,t),e._zod.optin="optional",Re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>x8(o,t)):x8(n,t)}});function x8(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var SP=M("$ZodPrefault",(e,t)=>{Ie.init(e,t),e._zod.optin="optional",Re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,a))}),IP=M("$ZodNonOptional",(e,t)=>{Ie.init(e,t),Re(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>b8(o,e)):b8(n,e)}});function b8(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 kP=M("$ZodSuccess",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new vi("ZodSuccess");let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),_P=M("$ZodCatch",(e,t)=>{Ie.init(e,t),Re(e._zod,"optin",()=>t.innerType._zod.optin),Re(e._zod,"optout",()=>t.innerType._zod.optout),Re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>br(i,a,Zt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>br(o,a,Zt()))},input:r.value}),r.issues=[]),r)}}),CP=M("$ZodNaN",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),TP=M("$ZodPipe",(e,t)=>{Ie.init(e,t),Re(e._zod,"values",()=>t.in._zod.values),Re(e._zod,"optin",()=>t.in._zod.optin),Re(e._zod,"optout",()=>t.out._zod.optout),Re(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){let o=t.out._zod.run(r,a);return o instanceof Promise?o.then(i=>Cm(i,t.in,a)):Cm(o,t.in,a)}let n=t.in._zod.run(r,a);return n instanceof Promise?n.then(o=>Cm(o,t.out,a)):Cm(n,t.out,a)}});function Cm(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Em=M("$ZodCodec",(e,t)=>{Ie.init(e,t),Re(e._zod,"values",()=>t.in._zod.values),Re(e._zod,"optin",()=>t.in._zod.optin),Re(e._zod,"optout",()=>t.out._zod.optout),Re(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if((a.direction||"forward")==="forward"){let o=t.in._zod.run(r,a);return o instanceof Promise?o.then(i=>Tm(i,t,a)):Tm(o,t,a)}else{let o=t.out._zod.run(r,a);return o instanceof Promise?o.then(i=>Tm(i,t,a)):Tm(o,t,a)}}});function Tm(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(o=>$m(e,o,t.out,r)):$m(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>$m(e,o,t.in,r)):$m(e,n,t.in,r)}}function $m(e,t,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},a)}var $P=M("$ZodReadonly",(e,t)=>{Ie.init(e,t),Re(e._zod,"propValues",()=>t.innerType._zod.propValues),Re(e._zod,"values",()=>t.innerType._zod.values),Re(e._zod,"optin",()=>t.innerType?._zod?.optin),Re(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(w8):w8(n)}});function w8(e){return e.value=Object.freeze(e.value),e}var PP=M("$ZodTemplateLiteral",(e,t)=>{Ie.init(e,t);let r=[];for(let a of t.parts)if(typeof a=="object"&&a!==null){if(!a._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);let n=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${a._zod.traits}`);let o=n.startsWith("^")?1:0,i=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,i))}else if(a===null||Ix.has(typeof a))r.push(nn(`${a}`));else throw new Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(a,n)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"string",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),a)}),LP=M("$ZodFunction",(e,t)=>(Ie.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(...a){let n=e._def.input?Px(e._def.input,a):a,o=Reflect.apply(r,this,n);return e._def.output?Px(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...a){let n=e._def.input?await Lx(e._def.input,a):a,o=await Reflect.apply(r,this,n);return e._def.output?await Lx(e._def.output,o):o}},e._zod.parse=(r,a)=>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 a=e.constructor;return Array.isArray(r[0])?new a({type:"function",input:new cb({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new a({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let a=e.constructor;return new a({type:"function",input:e._def.input,output:r})},e)),AP=M("$ZodPromise",(e,t)=>{Ie.init(e,t),e._zod.parse=(r,a)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},a))}),EP=M("$ZodLazy",(e,t)=>{Ie.init(e,t),Re(e._zod,"innerType",()=>t.getter()),Re(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Re(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Re(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Re(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,a)=>e._zod.innerType._zod.run(r,a)}),MP=M("$ZodCustom",(e,t)=>{lt.init(e,t),Ie.init(e,t),e._zod.parse=(r,a)=>r,e._zod.check=r=>{let a=r.value,n=t.fn(a);if(n instanceof Promise)return n.then(o=>S8(o,r,a,e));S8(n,r,a,e)}});function S8(e,t,r,a){if(!e){let n={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(n.params=a._zod.def.params),t.issues.push(Ms(n))}}var sq=()=>{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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=ve(n.input),s=a[i]??i;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ge(n.values[0])}`:`Invalid option: expected one of ${he(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${i.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.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":""}: ${he(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 fb(){return{localeError:sq()}}var DP;var pb=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let a=r[0];return this._map.set(t,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.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 a={...this.get(r)??{}};delete a.id;let n={...a,...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 zP(){return new pb}(DP=globalThis).__zod_globalRegistry??(DP.__zod_globalRegistry=zP());var wr=globalThis.__zod_globalRegistry;function NP(e,t){return new e({type:"string",...ne(t)})}function mb(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ne(t)})}function Mm(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ne(t)})}function hb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ne(t)})}function gb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ne(t)})}function vb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ne(t)})}function yb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ne(t)})}function Rm(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ne(t)})}function xb(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ne(t)})}function bb(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ne(t)})}function wb(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ne(t)})}function Sb(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ne(t)})}function Ib(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ne(t)})}function kb(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ne(t)})}function _b(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ne(t)})}function Cb(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ne(t)})}function Tb(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ne(t)})}function OP(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ne(t)})}function $b(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ne(t)})}function Pb(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ne(t)})}function Lb(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ne(t)})}function Ab(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ne(t)})}function Eb(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ne(t)})}function Mb(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ne(t)})}function FP(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ne(t)})}function UP(e,t){return new e({type:"string",format:"date",check:"string_format",...ne(t)})}function BP(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ne(t)})}function jP(e,t){return new e({type:"string",format:"duration",check:"string_format",...ne(t)})}function VP(e,t){return new e({type:"number",checks:[],...ne(t)})}function ZP(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ne(t)})}function qP(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ne(t)})}function GP(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ne(t)})}function HP(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ne(t)})}function WP(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ne(t)})}function JP(e,t){return new e({type:"boolean",...ne(t)})}function KP(e,t){return new e({type:"bigint",...ne(t)})}function XP(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ne(t)})}function YP(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ne(t)})}function QP(e,t){return new e({type:"symbol",...ne(t)})}function e9(e,t){return new e({type:"undefined",...ne(t)})}function t9(e,t){return new e({type:"null",...ne(t)})}function r9(e){return new e({type:"any"})}function n9(e){return new e({type:"unknown"})}function a9(e,t){return new e({type:"never",...ne(t)})}function o9(e,t){return new e({type:"void",...ne(t)})}function i9(e,t){return new e({type:"date",...ne(t)})}function s9(e,t){return new e({type:"nan",...ne(t)})}function bo(e,t){return new ob({check:"less_than",...ne(t),value:e,inclusive:!1})}function xn(e,t){return new ob({check:"less_than",...ne(t),value:e,inclusive:!0})}function wo(e,t){return new ib({check:"greater_than",...ne(t),value:e,inclusive:!1})}function Nr(e,t){return new ib({check:"greater_than",...ne(t),value:e,inclusive:!0})}function l9(e){return wo(0,e)}function u9(e){return bo(0,e)}function c9(e){return xn(0,e)}function d9(e){return Nr(0,e)}function Ds(e,t){return new G7({check:"multiple_of",...ne(t),value:e})}function zs(e,t){return new J7({check:"max_size",...ne(t),maximum:e})}function So(e,t){return new K7({check:"min_size",...ne(t),minimum:e})}function kc(e,t){return new X7({check:"size_equals",...ne(t),size:e})}function _c(e,t){return new Y7({check:"max_length",...ne(t),maximum:e})}function bi(e,t){return new Q7({check:"min_length",...ne(t),minimum:e})}function Cc(e,t){return new e8({check:"length_equals",...ne(t),length:e})}function Dm(e,t){return new t8({check:"string_format",format:"regex",...ne(t),pattern:e})}function zm(e){return new r8({check:"string_format",format:"lowercase",...ne(e)})}function Nm(e){return new n8({check:"string_format",format:"uppercase",...ne(e)})}function Om(e,t){return new a8({check:"string_format",format:"includes",...ne(t),includes:e})}function Fm(e,t){return new o8({check:"string_format",format:"starts_with",...ne(t),prefix:e})}function Um(e,t){return new i8({check:"string_format",format:"ends_with",...ne(t),suffix:e})}function f9(e,t,r){return new s8({check:"property",property:e,schema:t,...ne(r)})}function Bm(e,t){return new l8({check:"mime_type",mime:e,...ne(t)})}function ya(e){return new u8({check:"overwrite",tx:e})}function jm(e){return ya(t=>t.normalize(e))}function Vm(){return ya(e=>e.trim())}function Zm(){return ya(e=>e.toLowerCase())}function qm(){return ya(e=>e.toUpperCase())}function Gm(){return ya(e=>wx(e))}function p9(e,t,r){return new e({type:"array",element:t,...ne(r)})}function m9(e,t){return new e({type:"file",...ne(t)})}function h9(e,t,r){let a=ne(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function g9(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ne(r)})}function v9(e){let t=dq(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(Ms(a,r.value,t._zod.def));else{let n=a;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(Ms(n))}},e(r.value,r)));return t}function dq(e,t){let r=new lt({check:"custom",...ne(t)});return r._zod.check=e,r}function y9(e){let t=new lt({check:"describe"});return t._zod.onattach=[r=>{let a=wr.get(r)??{};wr.add(r,{...a,description:e})}],t._zod.check=()=>{},t}function x9(e){let t=new lt({check:"meta"});return t._zod.onattach=[r=>{let a=wr.get(r)??{};wr.add(r,{...a,...e})}],t._zod.check=()=>{},t}function b9(e,t){let r=ne(t),a=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(a=a.map(p=>typeof p=="string"?p.toLowerCase():p),n=n.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(a),i=new Set(n),s=e.Codec??Em,l=e.Boolean??Lm,u=e.String??Rs,c=new u({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),f=new s({type:"pipe",in:c,out:d,transform:((p,g)=>{let w=p;return r.case!=="sensitive"&&(w=w.toLowerCase()),o.has(w)?!0:i.has(w)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:g.value,inst:f,continue:!1}),{})}),reverseTransform:((p,g)=>p===!0?a[0]||"true":n[0]||"false"),error:r.error});return f}function Tc(e,t,r,a={}){let n=ne(a),o={...ne(a),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ns(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??wr,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 a;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let i={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,i);let s=e._zod.toJSONSchema?.();if(s)i.schema=s;else{let c={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,c);else{let f=i.schema,p=t.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(e,t,f,c)}let d=e._zod.parent;d&&(i.ref||(i.ref=d),Ye(d,t,c),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(i.schema,l),t.io==="input"&&or(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((a=i.schema).default??(a.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Os(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=new Map;for(let i of e.seen.entries()){let s=e.metadataRegistry.get(i[0])?.id;if(s){let l=a.get(s);if(l&&l!==i[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(s,i[0])}}let n=i=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(i[0])?.id,f=e.external.uri??(g=>g);if(d)return{ref:f(d)};let p=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=p,{defId:p,ref:`${f("__shared")}#/${s}/${p}`}}if(i[1]===r)return{ref:"#"};let u=`#/${s}/`,c=i[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},o=i=>{if(i[1].schema.$ref)return;let s=i[1],{ref:l,defId:u}=n(i);s.def={...s.schema},u&&(s.defId=u);let c=s.schema;for(let d in c)delete c[d];c.$ref=l};if(e.cycles==="throw")for(let i of e.seen.entries()){let s=i[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 i of e.seen.entries()){let s=i[1];if(t===i[0]){o(i);continue}if(e.external){let u=e.external.registry.get(i[0])?.id;if(t!==i[0]&&u){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(s.cycle){o(i);continue}if(s.count>1&&e.reused==="ref"){o(i);continue}}}function Fs(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=i=>{let s=e.seen.get(i);if(s.ref===null)return;let l=s.def??s.schema,u={...l},c=s.ref;if(s.ref=null,c){a(c);let f=e.seen.get(c),p=f.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(p)):Object.assign(l,p),Object.assign(l,u),i._zod.parent===c)for(let w in l)w==="$ref"||w==="allOf"||w in u||delete l[w];if(p.$ref&&f.def)for(let w in l)w==="$ref"||w==="allOf"||w in f.def&&JSON.stringify(l[w])===JSON.stringify(f.def[w])&&delete l[w]}let d=i._zod.parent;if(d&&d!==c){a(d);let f=e.seen.get(d);if(f?.schema.$ref&&(l.$ref=f.schema.$ref,f.def))for(let p in l)p==="$ref"||p==="allOf"||p in f.def&&JSON.stringify(l[p])===JSON.stringify(f.def[p])&&delete l[p]}e.override({zodSchema:i,jsonSchema:l,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())a(i[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 i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(i)}Object.assign(n,r.def??r.schema);let o=e.external?.defs??{};for(let i of e.seen.entries()){let s=i[1];s.def&&s.defId&&(o[s.defId]=s.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?n.$defs=o:n.definitions=o);try{let i=JSON.parse(JSON.stringify(n));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:$c(t,"input",e.processors),output:$c(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function or(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return or(a.element,r);if(a.type==="set")return or(a.valueType,r);if(a.type==="lazy")return or(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return or(a.innerType,r);if(a.type==="intersection")return or(a.left,r)||or(a.right,r);if(a.type==="record"||a.type==="map")return or(a.keyType,r)||or(a.valueType,r);if(a.type==="pipe")return or(a.in,r)||or(a.out,r);if(a.type==="object"){for(let n in a.shape)if(or(a.shape[n],r))return!0;return!1}if(a.type==="union"){for(let n of a.options)if(or(n,r))return!0;return!1}if(a.type==="tuple"){for(let n of a.items)if(or(n,r))return!0;return!!(a.rest&&or(a.rest,r))}return!1}var w9=(e,t={})=>r=>{let a=Ns({...r,processors:t});return Ye(e,a),Os(a,e),Fs(a,e)},$c=(e,t,r={})=>a=>{let{libraryOptions:n,target:o}=a??{},i=Ns({...n??{},target:o,io:t,processors:r});return Ye(e,i),Os(i,e),Fs(i,e)};var fq={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Db=(e,t,r,a)=>{let n=r;n.type="string";let{minimum:o,maximum:i,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof i=="number"&&(n.maxLength=i),s&&(n.format=fq[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?n.pattern=c[0].source:c.length>1&&(n.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},zb=(e,t,r,a)=>{let n=r,{minimum:o,maximum:i,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c),typeof o=="number"&&(n.minimum=o,typeof c=="number"&&t.target!=="draft-04"&&(c>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u),typeof i=="number"&&(n.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},Nb=(e,t,r,a)=>{r.type="boolean"},Ob=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Fb=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Ub=(e,t,r,a)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Bb=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},jb=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Vb=(e,t,r,a)=>{r.not={}},Zb=(e,t,r,a)=>{},qb=(e,t,r,a)=>{},Gb=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Hb=(e,t,r,a)=>{let n=e._zod.def,o=dc(n.entries);o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),r.enum=o},Wb=(e,t,r,a)=>{let n=e._zod.def,o=[];for(let i of n.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(i))}else o.push(i);if(o.length!==0)if(o.length===1){let i=o[0];r.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[i]:r.const=i}else o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),o.every(i=>typeof i=="boolean")&&(r.type="boolean"),o.every(i=>i===null)&&(r.type="null"),r.enum=o},Jb=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Kb=(e,t,r,a)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},Xb=(e,t,r,a)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:l}=e._zod.bag;i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),l?l.length===1?(o.contentMediaType=l[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(n,o)},Yb=(e,t,r,a)=>{r.type="boolean"},Qb=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},e1=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},t1=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},r1=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},n1=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},a1=(e,t,r,a)=>{let n=r,o=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(n.minItems=i),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=Ye(o.element,t,{...a,path:[...a.path,"items"]})},o1=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let i=o.shape;for(let u in i)n.properties[u]=Ye(i[u],t,{...a,path:[...a.path,"properties",u]});let s=new Set(Object.keys(i)),l=new Set([...s].filter(u=>{let c=o.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(n.required=Array.from(l)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=Ye(o.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Hm=(e,t,r,a)=>{let n=e._zod.def,o=n.inclusive===!1,i=n.options.map((s,l)=>Ye(s,t,{...a,path:[...a.path,o?"oneOf":"anyOf",l]}));o?r.oneOf=i:r.anyOf=i},i1=(e,t,r,a)=>{let n=e._zod.def,o=Ye(n.left,t,{...a,path:[...a.path,"allOf",0]}),i=Ye(n.right,t,{...a,path:[...a.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(o)?o.allOf:[o],...s(i)?i.allOf:[i]];r.allOf=l},s1=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((f,p)=>Ye(f,t,{...a,path:[...a.path,i,p]})),u=o.rest?Ye(o.rest,t,{...a,path:[...a.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:l},u&&n.items.anyOf.push(u),n.minItems=l.length,u||(n.maxItems=l.length)):(n.items=l,u&&(n.additionalItems=u));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(n.minItems=c),typeof d=="number"&&(n.maxItems=d)},l1=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="object";let i=o.keyType,l=i._zod.bag?.patterns;if(o.mode==="loose"&&l&&l.size>0){let c=Ye(o.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});n.patternProperties={};for(let d of l)n.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=Ye(o.keyType,t,{...a,path:[...a.path,"propertyNames"]})),n.additionalProperties=Ye(o.valueType,t,{...a,path:[...a.path,"additionalProperties"]});let u=i._zod.values;if(u){let c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(n.required=c)}},u1=(e,t,r,a)=>{let n=e._zod.def,o=Ye(n.innerType,t,a),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},c1=(e,t,r,a)=>{let n=e._zod.def;Ye(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},d1=(e,t,r,a)=>{let n=e._zod.def;Ye(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},f1=(e,t,r,a)=>{let n=e._zod.def;Ye(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},p1=(e,t,r,a)=>{let n=e._zod.def;Ye(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType;let i;try{i=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},m1=(e,t,r,a)=>{let n=e._zod.def,o=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;Ye(o,t,a);let i=t.seen.get(e);i.ref=o},h1=(e,t,r,a)=>{let n=e._zod.def;Ye(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},g1=(e,t,r,a)=>{let n=e._zod.def;Ye(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},Wm=(e,t,r,a)=>{let n=e._zod.def;Ye(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},v1=(e,t,r,a)=>{let n=e._zod.innerType;Ye(n,t,a);let o=t.seen.get(e);o.ref=n},Rb={string:Db,number:zb,boolean:Nb,bigint:Ob,symbol:Fb,null:Ub,undefined:Bb,void:jb,never:Vb,any:Zb,unknown:qb,date:Gb,enum:Hb,literal:Wb,nan:Jb,template_literal:Kb,file:Xb,success:Yb,custom:Qb,function:e1,transform:t1,map:r1,set:n1,array:a1,object:o1,union:Hm,intersection:i1,tuple:s1,record:l1,nullable:u1,nonoptional:c1,default:d1,prefault:f1,catch:p1,pipe:m1,readonly:h1,promise:g1,optional:Wm,lazy:v1};function Jm(e,t){if("_idmap"in e){let a=e,n=Ns({...t,processors:Rb}),o={};for(let l of a._idmap.entries()){let[u,c]=l;Ye(c,n)}let i={},s={registry:a,uri:t?.uri,defs:o};n.external=s;for(let l of a._idmap.entries()){let[u,c]=l;Os(n,c),i[u]=Fs(n,c)}if(Object.keys(o).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[l]:o}}return{schemas:i}}let r=Ns({...t,processors:Rb});return Ye(e,r),Os(r,e),Fs(r,e)}var Lc={};vr(Lc,{ZodAny:()=>B9,ZodArray:()=>q9,ZodBase64:()=>B1,ZodBase64URL:()=>j1,ZodBigInt:()=>ih,ZodBigIntFormat:()=>q1,ZodBoolean:()=>oh,ZodCIDRv4:()=>F1,ZodCIDRv6:()=>U1,ZodCUID:()=>E1,ZodCUID2:()=>M1,ZodCatch:()=>pL,ZodCodec:()=>e4,ZodCustom:()=>dh,ZodCustomStringFormat:()=>Ec,ZodDate:()=>H1,ZodDefault:()=>sL,ZodDiscriminatedUnion:()=>H9,ZodE164:()=>V1,ZodEmail:()=>P1,ZodEmoji:()=>L1,ZodEnum:()=>Ac,ZodExactOptional:()=>aL,ZodFile:()=>rL,ZodFunction:()=>SL,ZodGUID:()=>Ym,ZodIPv4:()=>N1,ZodIPv6:()=>O1,ZodIntersection:()=>W9,ZodJWT:()=>Z1,ZodKSUID:()=>z1,ZodLazy:()=>xL,ZodLiteral:()=>tL,ZodMAC:()=>R9,ZodMap:()=>Q9,ZodNaN:()=>hL,ZodNanoID:()=>A1,ZodNever:()=>V9,ZodNonOptional:()=>Y1,ZodNull:()=>F9,ZodNullable:()=>iL,ZodNumber:()=>ah,ZodNumberFormat:()=>Bs,ZodObject:()=>lh,ZodOptional:()=>X1,ZodPipe:()=>Q1,ZodPrefault:()=>uL,ZodPromise:()=>wL,ZodReadonly:()=>gL,ZodRecord:()=>ch,ZodSet:()=>eL,ZodString:()=>rh,ZodStringFormat:()=>nt,ZodSuccess:()=>fL,ZodSymbol:()=>N9,ZodTemplateLiteral:()=>yL,ZodTransform:()=>nL,ZodTuple:()=>K9,ZodType:()=>Ae,ZodULID:()=>R1,ZodURL:()=>nh,ZodUUID:()=>xa,ZodUndefined:()=>O9,ZodUnion:()=>uh,ZodUnknown:()=>j9,ZodVoid:()=>Z9,ZodXID:()=>D1,ZodXor:()=>G9,_ZodString:()=>$1,_default:()=>lL,_function:()=>bG,any:()=>Yq,array:()=>sh,base64:()=>Dq,base64url:()=>zq,bigint:()=>Hq,boolean:()=>z9,catch:()=>mL,check:()=>wG,cidrv4:()=>Mq,cidrv6:()=>Rq,codec:()=>vG,cuid:()=>_q,cuid2:()=>Cq,custom:()=>SG,date:()=>eG,describe:()=>IG,discriminatedUnion:()=>iG,e164:()=>Nq,email:()=>hq,emoji:()=>Iq,enum:()=>J1,exactOptional:()=>oL,file:()=>pG,float32:()=>Vq,float64:()=>Zq,function:()=>bG,guid:()=>gq,hash:()=>jq,hex:()=>Bq,hostname:()=>Uq,httpUrl:()=>Sq,instanceof:()=>_G,int:()=>T1,int32:()=>qq,int64:()=>Wq,intersection:()=>J9,ipv4:()=>Lq,ipv6:()=>Eq,json:()=>TG,jwt:()=>Oq,keyof:()=>tG,ksuid:()=>Pq,lazy:()=>bL,literal:()=>fG,looseObject:()=>aG,looseRecord:()=>lG,mac:()=>Aq,map:()=>uG,meta:()=>kG,nan:()=>gG,nanoid:()=>kq,nativeEnum:()=>dG,never:()=>G1,nonoptional:()=>dL,null:()=>U9,nullable:()=>eh,nullish:()=>mG,number:()=>D9,object:()=>rG,optional:()=>Qm,partialRecord:()=>sG,pipe:()=>th,prefault:()=>cL,preprocess:()=>$G,promise:()=>xG,readonly:()=>vL,record:()=>Y9,refine:()=>IL,set:()=>cG,strictObject:()=>nG,string:()=>C1,stringFormat:()=>Fq,stringbool:()=>CG,success:()=>hG,superRefine:()=>kL,symbol:()=>Kq,templateLiteral:()=>yG,transform:()=>K1,tuple:()=>X9,uint32:()=>Gq,uint64:()=>Jq,ulid:()=>Tq,undefined:()=>Xq,union:()=>W1,unknown:()=>Us,url:()=>wq,uuid:()=>vq,uuidv4:()=>yq,uuidv6:()=>xq,uuidv7:()=>bq,void:()=>Qq,xid:()=>$q,xor:()=>oG});var Km={};vr(Km,{endsWith:()=>Um,gt:()=>wo,gte:()=>Nr,includes:()=>Om,length:()=>Cc,lowercase:()=>zm,lt:()=>bo,lte:()=>xn,maxLength:()=>_c,maxSize:()=>zs,mime:()=>Bm,minLength:()=>bi,minSize:()=>So,multipleOf:()=>Ds,negative:()=>u9,nonnegative:()=>d9,nonpositive:()=>c9,normalize:()=>jm,overwrite:()=>ya,positive:()=>l9,property:()=>f9,regex:()=>Dm,size:()=>kc,slugify:()=>Gm,startsWith:()=>Fm,toLowerCase:()=>Zm,toUpperCase:()=>qm,trim:()=>Vm,uppercase:()=>Nm});var Pc={};vr(Pc,{ZodISODate:()=>b1,ZodISODateTime:()=>y1,ZodISODuration:()=>k1,ZodISOTime:()=>S1,date:()=>w1,datetime:()=>x1,duration:()=>_1,time:()=>I1});var y1=M("ZodISODateTime",(e,t)=>{R8.init(e,t),nt.init(e,t)});function x1(e){return FP(y1,e)}var b1=M("ZodISODate",(e,t)=>{D8.init(e,t),nt.init(e,t)});function w1(e){return UP(b1,e)}var S1=M("ZodISOTime",(e,t)=>{z8.init(e,t),nt.init(e,t)});function I1(e){return BP(S1,e)}var k1=M("ZodISODuration",(e,t)=>{N8.init(e,t),nt.init(e,t)});function _1(e){return jP(k1,e)}var S9=(e,t)=>{wm.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>$x(e,r)},flatten:{value:r=>Tx(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,As,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,As,2)}},isEmpty:{get(){return e.issues.length===0}}})},N6e=M("ZodError",S9),Or=M("ZodError",S9,{Parent:Error});var I9=vc(Or),k9=yc(Or),_9=xc(Or),Xm=bc(Or),C9=M7(Or),T9=R7(Or),$9=D7(Or),P9=z7(Or),L9=N7(Or),A9=O7(Or),E9=F7(Or),M9=U7(Or);var Ae=M("ZodType",(e,t)=>(Ie.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:$c(e,"input"),output:$c(e,"output")}}),e.toJSONSchema=w9(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(W.mergeDefs(t,{checks:[...t.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(r,a)=>Dr(e,r,a),e.brand=()=>e,e.register=((r,a)=>(r.add(e,a),e)),e.parse=(r,a)=>I9(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>_9(e,r,a),e.parseAsync=async(r,a)=>k9(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>Xm(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>C9(e,r,a),e.decode=(r,a)=>T9(e,r,a),e.encodeAsync=async(r,a)=>$9(e,r,a),e.decodeAsync=async(r,a)=>P9(e,r,a),e.safeEncode=(r,a)=>L9(e,r,a),e.safeDecode=(r,a)=>A9(e,r,a),e.safeEncodeAsync=async(r,a)=>E9(e,r,a),e.safeDecodeAsync=async(r,a)=>M9(e,r,a),e.refine=(r,a)=>e.check(IL(r,a)),e.superRefine=r=>e.check(kL(r)),e.overwrite=r=>e.check(ya(r)),e.optional=()=>Qm(e),e.exactOptional=()=>oL(e),e.nullable=()=>eh(e),e.nullish=()=>Qm(eh(e)),e.nonoptional=r=>dL(e,r),e.array=()=>sh(e),e.or=r=>W1([e,r]),e.and=r=>J9(e,r),e.transform=r=>th(e,K1(r)),e.default=r=>lL(e,r),e.prefault=r=>cL(e,r),e.catch=r=>mL(e,r),e.pipe=r=>th(e,r),e.readonly=()=>vL(e),e.describe=r=>{let a=e.clone();return wr.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){return wr.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return wr.get(e);let a=e.clone();return wr.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),$1=M("_ZodString",(e,t)=>{Rs.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(a,n,o)=>Db(e,a,n,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check(Dm(...a)),e.includes=(...a)=>e.check(Om(...a)),e.startsWith=(...a)=>e.check(Fm(...a)),e.endsWith=(...a)=>e.check(Um(...a)),e.min=(...a)=>e.check(bi(...a)),e.max=(...a)=>e.check(_c(...a)),e.length=(...a)=>e.check(Cc(...a)),e.nonempty=(...a)=>e.check(bi(1,...a)),e.lowercase=a=>e.check(zm(a)),e.uppercase=a=>e.check(Nm(a)),e.trim=()=>e.check(Vm()),e.normalize=(...a)=>e.check(jm(...a)),e.toLowerCase=()=>e.check(Zm()),e.toUpperCase=()=>e.check(qm()),e.slugify=()=>e.check(Gm())}),rh=M("ZodString",(e,t)=>{Rs.init(e,t),$1.init(e,t),e.email=r=>e.check(mb(P1,r)),e.url=r=>e.check(Rm(nh,r)),e.jwt=r=>e.check(Mb(Z1,r)),e.emoji=r=>e.check(xb(L1,r)),e.guid=r=>e.check(Mm(Ym,r)),e.uuid=r=>e.check(hb(xa,r)),e.uuidv4=r=>e.check(gb(xa,r)),e.uuidv6=r=>e.check(vb(xa,r)),e.uuidv7=r=>e.check(yb(xa,r)),e.nanoid=r=>e.check(bb(A1,r)),e.guid=r=>e.check(Mm(Ym,r)),e.cuid=r=>e.check(wb(E1,r)),e.cuid2=r=>e.check(Sb(M1,r)),e.ulid=r=>e.check(Ib(R1,r)),e.base64=r=>e.check(Lb(B1,r)),e.base64url=r=>e.check(Ab(j1,r)),e.xid=r=>e.check(kb(D1,r)),e.ksuid=r=>e.check(_b(z1,r)),e.ipv4=r=>e.check(Cb(N1,r)),e.ipv6=r=>e.check(Tb(O1,r)),e.cidrv4=r=>e.check($b(F1,r)),e.cidrv6=r=>e.check(Pb(U1,r)),e.e164=r=>e.check(Eb(V1,r)),e.datetime=r=>e.check(x1(r)),e.date=r=>e.check(w1(r)),e.time=r=>e.check(I1(r)),e.duration=r=>e.check(_1(r))});function C1(e){return NP(rh,e)}var nt=M("ZodStringFormat",(e,t)=>{rt.init(e,t),$1.init(e,t)}),P1=M("ZodEmail",(e,t)=>{_8.init(e,t),nt.init(e,t)});function hq(e){return mb(P1,e)}var Ym=M("ZodGUID",(e,t)=>{I8.init(e,t),nt.init(e,t)});function gq(e){return Mm(Ym,e)}var xa=M("ZodUUID",(e,t)=>{k8.init(e,t),nt.init(e,t)});function vq(e){return hb(xa,e)}function yq(e){return gb(xa,e)}function xq(e){return vb(xa,e)}function bq(e){return yb(xa,e)}var nh=M("ZodURL",(e,t)=>{C8.init(e,t),nt.init(e,t)});function wq(e){return Rm(nh,e)}function Sq(e){return Rm(nh,{protocol:/^https?$/,hostname:Fn.domain,...W.normalizeParams(e)})}var L1=M("ZodEmoji",(e,t)=>{T8.init(e,t),nt.init(e,t)});function Iq(e){return xb(L1,e)}var A1=M("ZodNanoID",(e,t)=>{$8.init(e,t),nt.init(e,t)});function kq(e){return bb(A1,e)}var E1=M("ZodCUID",(e,t)=>{P8.init(e,t),nt.init(e,t)});function _q(e){return wb(E1,e)}var M1=M("ZodCUID2",(e,t)=>{L8.init(e,t),nt.init(e,t)});function Cq(e){return Sb(M1,e)}var R1=M("ZodULID",(e,t)=>{A8.init(e,t),nt.init(e,t)});function Tq(e){return Ib(R1,e)}var D1=M("ZodXID",(e,t)=>{E8.init(e,t),nt.init(e,t)});function $q(e){return kb(D1,e)}var z1=M("ZodKSUID",(e,t)=>{M8.init(e,t),nt.init(e,t)});function Pq(e){return _b(z1,e)}var N1=M("ZodIPv4",(e,t)=>{O8.init(e,t),nt.init(e,t)});function Lq(e){return Cb(N1,e)}var R9=M("ZodMAC",(e,t)=>{U8.init(e,t),nt.init(e,t)});function Aq(e){return OP(R9,e)}var O1=M("ZodIPv6",(e,t)=>{F8.init(e,t),nt.init(e,t)});function Eq(e){return Tb(O1,e)}var F1=M("ZodCIDRv4",(e,t)=>{B8.init(e,t),nt.init(e,t)});function Mq(e){return $b(F1,e)}var U1=M("ZodCIDRv6",(e,t)=>{j8.init(e,t),nt.init(e,t)});function Rq(e){return Pb(U1,e)}var B1=M("ZodBase64",(e,t)=>{Z8.init(e,t),nt.init(e,t)});function Dq(e){return Lb(B1,e)}var j1=M("ZodBase64URL",(e,t)=>{q8.init(e,t),nt.init(e,t)});function zq(e){return Ab(j1,e)}var V1=M("ZodE164",(e,t)=>{G8.init(e,t),nt.init(e,t)});function Nq(e){return Eb(V1,e)}var Z1=M("ZodJWT",(e,t)=>{H8.init(e,t),nt.init(e,t)});function Oq(e){return Mb(Z1,e)}var Ec=M("ZodCustomStringFormat",(e,t)=>{W8.init(e,t),nt.init(e,t)});function Fq(e,t,r={}){return Tc(Ec,e,t,r)}function Uq(e){return Tc(Ec,"hostname",Fn.hostname,e)}function Bq(e){return Tc(Ec,"hex",Fn.hex,e)}function jq(e,t){let r=t?.enc??"hex",a=`${e}_${r}`,n=Fn[a];if(!n)throw new Error(`Unrecognized hash format: ${a}`);return Tc(Ec,a,n,t)}var ah=M("ZodNumber",(e,t)=>{lb.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(a,n,o)=>zb(e,a,n,o),e.gt=(a,n)=>e.check(wo(a,n)),e.gte=(a,n)=>e.check(Nr(a,n)),e.min=(a,n)=>e.check(Nr(a,n)),e.lt=(a,n)=>e.check(bo(a,n)),e.lte=(a,n)=>e.check(xn(a,n)),e.max=(a,n)=>e.check(xn(a,n)),e.int=a=>e.check(T1(a)),e.safe=a=>e.check(T1(a)),e.positive=a=>e.check(wo(0,a)),e.nonnegative=a=>e.check(Nr(0,a)),e.negative=a=>e.check(bo(0,a)),e.nonpositive=a=>e.check(xn(0,a)),e.multipleOf=(a,n)=>e.check(Ds(a,n)),e.step=(a,n)=>e.check(Ds(a,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 D9(e){return VP(ah,e)}var Bs=M("ZodNumberFormat",(e,t)=>{J8.init(e,t),ah.init(e,t)});function T1(e){return ZP(Bs,e)}function Vq(e){return qP(Bs,e)}function Zq(e){return GP(Bs,e)}function qq(e){return HP(Bs,e)}function Gq(e){return WP(Bs,e)}var oh=M("ZodBoolean",(e,t)=>{Lm.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Nb(e,r,a,n)});function z9(e){return JP(oh,e)}var ih=M("ZodBigInt",(e,t)=>{ub.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(a,n,o)=>Ob(e,a,n,o),e.gte=(a,n)=>e.check(Nr(a,n)),e.min=(a,n)=>e.check(Nr(a,n)),e.gt=(a,n)=>e.check(wo(a,n)),e.gte=(a,n)=>e.check(Nr(a,n)),e.min=(a,n)=>e.check(Nr(a,n)),e.lt=(a,n)=>e.check(bo(a,n)),e.lte=(a,n)=>e.check(xn(a,n)),e.max=(a,n)=>e.check(xn(a,n)),e.positive=a=>e.check(wo(BigInt(0),a)),e.negative=a=>e.check(bo(BigInt(0),a)),e.nonpositive=a=>e.check(xn(BigInt(0),a)),e.nonnegative=a=>e.check(Nr(BigInt(0),a)),e.multipleOf=(a,n)=>e.check(Ds(a,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Hq(e){return KP(ih,e)}var q1=M("ZodBigIntFormat",(e,t)=>{K8.init(e,t),ih.init(e,t)});function Wq(e){return XP(q1,e)}function Jq(e){return YP(q1,e)}var N9=M("ZodSymbol",(e,t)=>{X8.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Fb(e,r,a,n)});function Kq(e){return QP(N9,e)}var O9=M("ZodUndefined",(e,t)=>{Y8.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Bb(e,r,a,n)});function Xq(e){return e9(O9,e)}var F9=M("ZodNull",(e,t)=>{Q8.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Ub(e,r,a,n)});function U9(e){return t9(F9,e)}var B9=M("ZodAny",(e,t)=>{eP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Zb(e,r,a,n)});function Yq(){return r9(B9)}var j9=M("ZodUnknown",(e,t)=>{tP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>qb(e,r,a,n)});function Us(){return n9(j9)}var V9=M("ZodNever",(e,t)=>{rP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Vb(e,r,a,n)});function G1(e){return a9(V9,e)}var Z9=M("ZodVoid",(e,t)=>{nP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>jb(e,r,a,n)});function Qq(e){return o9(Z9,e)}var H1=M("ZodDate",(e,t)=>{aP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(a,n,o)=>Gb(e,a,n,o),e.min=(a,n)=>e.check(Nr(a,n)),e.max=(a,n)=>e.check(xn(a,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 eG(e){return i9(H1,e)}var q9=M("ZodArray",(e,t)=>{oP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>a1(e,r,a,n),e.element=t.element,e.min=(r,a)=>e.check(bi(r,a)),e.nonempty=r=>e.check(bi(1,r)),e.max=(r,a)=>e.check(_c(r,a)),e.length=(r,a)=>e.check(Cc(r,a)),e.unwrap=()=>e.element});function sh(e,t){return p9(q9,e,t)}function tG(e){let t=e._zod.def.shape;return J1(Object.keys(t))}var lh=M("ZodObject",(e,t)=>{lP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>o1(e,r,a,n),W.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>J1(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Us()}),e.loose=()=>e.clone({...e._zod.def,catchall:Us()}),e.strict=()=>e.clone({...e._zod.def,catchall:G1()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>W.extend(e,r),e.safeExtend=r=>W.safeExtend(e,r),e.merge=r=>W.merge(e,r),e.pick=r=>W.pick(e,r),e.omit=r=>W.omit(e,r),e.partial=(...r)=>W.partial(X1,e,r[0]),e.required=(...r)=>W.required(Y1,e,r[0])});function rG(e,t){let r={type:"object",shape:e??{},...W.normalizeParams(t)};return new lh(r)}function nG(e,t){return new lh({type:"object",shape:e,catchall:G1(),...W.normalizeParams(t)})}function aG(e,t){return new lh({type:"object",shape:e,catchall:Us(),...W.normalizeParams(t)})}var uh=M("ZodUnion",(e,t)=>{Am.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Hm(e,r,a,n),e.options=t.options});function W1(e,t){return new uh({type:"union",options:e,...W.normalizeParams(t)})}var G9=M("ZodXor",(e,t)=>{uh.init(e,t),uP.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Hm(e,r,a,n),e.options=t.options});function oG(e,t){return new G9({type:"union",options:e,inclusive:!1,...W.normalizeParams(t)})}var H9=M("ZodDiscriminatedUnion",(e,t)=>{uh.init(e,t),cP.init(e,t)});function iG(e,t,r){return new H9({type:"union",options:t,discriminator:e,...W.normalizeParams(r)})}var W9=M("ZodIntersection",(e,t)=>{dP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>i1(e,r,a,n)});function J9(e,t){return new W9({type:"intersection",left:e,right:t})}var K9=M("ZodTuple",(e,t)=>{cb.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>s1(e,r,a,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function X9(e,t,r){let a=t instanceof Ie,n=a?r:t,o=a?t:null;return new K9({type:"tuple",items:e,rest:o,...W.normalizeParams(n)})}var ch=M("ZodRecord",(e,t)=>{fP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>l1(e,r,a,n),e.keyType=t.keyType,e.valueType=t.valueType});function Y9(e,t,r){return new ch({type:"record",keyType:e,valueType:t,...W.normalizeParams(r)})}function sG(e,t,r){let a=Dr(e);return a._zod.values=void 0,new ch({type:"record",keyType:a,valueType:t,...W.normalizeParams(r)})}function lG(e,t,r){return new ch({type:"record",keyType:e,valueType:t,mode:"loose",...W.normalizeParams(r)})}var Q9=M("ZodMap",(e,t)=>{pP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>r1(e,r,a,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(So(...r)),e.nonempty=r=>e.check(So(1,r)),e.max=(...r)=>e.check(zs(...r)),e.size=(...r)=>e.check(kc(...r))});function uG(e,t,r){return new Q9({type:"map",keyType:e,valueType:t,...W.normalizeParams(r)})}var eL=M("ZodSet",(e,t)=>{mP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>n1(e,r,a,n),e.min=(...r)=>e.check(So(...r)),e.nonempty=r=>e.check(So(1,r)),e.max=(...r)=>e.check(zs(...r)),e.size=(...r)=>e.check(kc(...r))});function cG(e,t){return new eL({type:"set",valueType:e,...W.normalizeParams(t)})}var Ac=M("ZodEnum",(e,t)=>{hP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(a,n,o)=>Hb(e,a,n,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(a,n)=>{let o={};for(let i of a)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Ac({...t,checks:[],...W.normalizeParams(n),entries:o})},e.exclude=(a,n)=>{let o={...t.entries};for(let i of a)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new Ac({...t,checks:[],...W.normalizeParams(n),entries:o})}});function J1(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Ac({type:"enum",entries:r,...W.normalizeParams(t)})}function dG(e,t){return new Ac({type:"enum",entries:e,...W.normalizeParams(t)})}var tL=M("ZodLiteral",(e,t)=>{gP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Wb(e,r,a,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
50(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function fG(e,t){return new tL({type:"literal",values:Array.isArray(e)?e:[e],...W.normalizeParams(t)})}var rL=M("ZodFile",(e,t)=>{vP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Xb(e,r,a,n),e.min=(r,a)=>e.check(So(r,a)),e.max=(r,a)=>e.check(zs(r,a)),e.mime=(r,a)=>e.check(Bm(Array.isArray(r)?r:[r],a))});function pG(e){return m9(rL,e)}var nL=M("ZodTransform",(e,t)=>{yP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>t1(e,r,a,n),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new vi(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(W.issue(o,r.value,t));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(W.issue(i))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function K1(e){return new nL({type:"transform",transform:e})}var X1=M("ZodOptional",(e,t)=>{db.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Wm(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function Qm(e){return new X1({type:"optional",innerType:e})}var aL=M("ZodExactOptional",(e,t)=>{xP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Wm(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function oL(e){return new aL({type:"optional",innerType:e})}var iL=M("ZodNullable",(e,t)=>{bP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>u1(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function eh(e){return new iL({type:"nullable",innerType:e})}function mG(e){return Qm(eh(e))}var sL=M("ZodDefault",(e,t)=>{wP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>d1(e,r,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lL(e,t){return new sL({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():W.shallowClone(t)}})}var uL=M("ZodPrefault",(e,t)=>{SP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>f1(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function cL(e,t){return new uL({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():W.shallowClone(t)}})}var Y1=M("ZodNonOptional",(e,t)=>{IP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>c1(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function dL(e,t){return new Y1({type:"nonoptional",innerType:e,...W.normalizeParams(t)})}var fL=M("ZodSuccess",(e,t)=>{kP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Yb(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function hG(e){return new fL({type:"success",innerType:e})}var pL=M("ZodCatch",(e,t)=>{_P.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>p1(e,r,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function mL(e,t){return new pL({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var hL=M("ZodNaN",(e,t)=>{CP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Jb(e,r,a,n)});function gG(e){return s9(hL,e)}var Q1=M("ZodPipe",(e,t)=>{TP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>m1(e,r,a,n),e.in=t.in,e.out=t.out});function th(e,t){return new Q1({type:"pipe",in:e,out:t})}var e4=M("ZodCodec",(e,t)=>{Q1.init(e,t),Em.init(e,t)});function vG(e,t,r){return new e4({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var gL=M("ZodReadonly",(e,t)=>{$P.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>h1(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function vL(e){return new gL({type:"readonly",innerType:e})}var yL=M("ZodTemplateLiteral",(e,t)=>{PP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Kb(e,r,a,n)});function yG(e,t){return new yL({type:"template_literal",parts:e,...W.normalizeParams(t)})}var xL=M("ZodLazy",(e,t)=>{EP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>v1(e,r,a,n),e.unwrap=()=>e._zod.def.getter()});function bL(e){return new xL({type:"lazy",getter:e})}var wL=M("ZodPromise",(e,t)=>{AP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>g1(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function xG(e){return new wL({type:"promise",innerType:e})}var SL=M("ZodFunction",(e,t)=>{LP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>e1(e,r,a,n)});function bG(e){return new SL({type:"function",input:Array.isArray(e?.input)?X9(e?.input):e?.input??sh(Us()),output:e?.output??Us()})}var dh=M("ZodCustom",(e,t)=>{MP.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Qb(e,r,a,n)});function wG(e){let t=new lt({check:"custom"});return t._zod.check=e,t}function SG(e,t){return h9(dh,e??(()=>!0),t)}function IL(e,t={}){return g9(dh,e,t)}function kL(e){return v9(e)}var IG=y9,kG=x9;function _G(e,t={}){let r=new dh({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...W.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:r,path:[...r._zod.def.path??[]]})},r}var CG=(...e)=>b9({Codec:e4,Boolean:oh,String:rh},...e);function TG(e){let t=bL(()=>W1([C1(e),D9(),z9(),U9(),sh(t),Y9(C1(),t)]));return t}function $G(e,t){return th(K1(e),t)}var _L;_L||(_L={});var q6e={...Lc,...Km,iso:Pc};Zt(fb());var Fe;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let o={};for(let i of n)o[i]=i;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),i={};for(let s of o)i[s]=n[s];return e.objectValues(i)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.push(i);return o},e.find=(n,o)=>{for(let i of n)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function a(n,o=" | "){return n.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=a,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(Fe||(Fe={}));var CL;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(CL||(CL={}));var le=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ba=e=>{switch(typeof e){case"undefined":return le.undefined;case"string":return le.string;case"number":return Number.isNaN(e)?le.nan:le.number;case"boolean":return le.boolean;case"function":return le.function;case"bigint":return le.bigint;case"symbol":return le.symbol;case"object":return Array.isArray(e)?le.array:e===null?le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?le.promise:typeof Map<"u"&&e instanceof Map?le.map:typeof Set<"u"&&e instanceof Set?le.set:typeof Date<"u"&&e instanceof Date?le.date:le.object;default:return le.unknown}};
vendor: 6,002 bytes, line 50
50var V=Fe.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 Fr=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};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(o){return o.message},a={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)a._errors.push(r(i));else{let s=a,l=0;for(;l<i.path.length;){let u=i.path[l];l===i.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(r(i))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return n(this),a}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,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),a=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];r[o]=r[o]||[],r[o].push(t(n))}else a.push(t(n));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}};Fr.create=e=>new Fr(e);var MG=(e,t)=>{let r;switch(e.code){case V.invalid_type:e.received===le.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case V.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Fe.jsonStringifyReplacer)}`;break;case V.unrecognized_keys:r=`Unrecognized key(s) in object: ${Fe.joinValues(e.keys,", ")}`;break;case V.invalid_union:r="Invalid input";break;case V.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Fe.joinValues(e.options)}`;break;case V.invalid_enum_value:r=`Invalid enum value. Expected ${Fe.joinValues(e.options)}, received '${e.received}'`;break;case V.invalid_arguments:r="Invalid function arguments";break;case V.invalid_return_type:r="Invalid function return type";break;case V.invalid_date:r="Invalid date";break;case V.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}"`:Fe.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case V.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 V.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 V.custom:r="Invalid input";break;case V.invalid_intersection_types:r="Intersection results could not be merged";break;case V.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case V.not_finite:r="Number must be finite";break;default:r=t.defaultError,Fe.assertNever(e)}return{message:r}},Io=MG;var RG=Io;function Mc(){return RG}var fh=e=>{let{data:t,path:r,errorMaps:a,issueData:n}=e,o=[...r,...n.path||[]],i={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let s="",l=a.filter(u=>!!u).slice().reverse();for(let u of l)s=u(i,{data:t,defaultError:s}).message;return{...n,path:o,message:s}};function te(e,t){let r=Mc(),a=fh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Io?void 0:Io].filter(n=>!!n)});e.common.issues.push(a)}var Yt=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 a=[];for(let n of r){if(n.status==="aborted")return ye;n.status==="dirty"&&t.dirty(),a.push(n.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,r){let a=[];for(let n of r){let o=await n.key,i=await n.value;a.push({key:o,value:i})}return e.mergeObjectSync(t,a)}static mergeObjectSync(t,r){let a={};for(let n of r){let{key:o,value:i}=n;if(o.status==="aborted"||i.status==="aborted")return ye;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet)&&(a[o.value]=i.value)}return{status:t.value,value:a}}},ye=Object.freeze({status:"aborted"}),js=e=>({status:"dirty",value:e}),ir=e=>
vendor: 50,041 bytes, line 50
50({status:"valid",value:e}),t4=e=>e.status==="aborted",r4=e=>e.status==="dirty",Si=e=>e.status==="valid",Rc=e=>typeof Promise<"u"&&e instanceof Promise;var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ce||(ce={}));var an=class{constructor(t,r,a,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=a,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}},TL=(e,t)=>{if(Si(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 Fr(e.common.issues);return this._error=r,this._error}}};function Te(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:a,description:n}=e;if(t&&(r||a))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:(i,s)=>{let{message:l}=e;return i.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??a??s.defaultError}:i.code!=="invalid_type"?{message:s.defaultError}:{message:l??r??s.defaultError}},description:n}}var Ne=class{get description(){return this._def.description}_getType(t){return ba(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:ba(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Yt,ctx:{common:t.parent.common,data:t.data,parsedType:ba(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Rc(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 a=this.safeParse(t,r);if(a.success)return a.data;throw a.error}safeParse(t,r){let a={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ba(t)},n=this._parseSync({data:t,path:a.path,parent:a});return TL(a,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ba(t)};if(!this["~standard"].async)try{let a=this._parseSync({data:t,path:[],parent:r});return Si(a)?{value:a.value}:{issues:r.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(a=>Si(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(t,r){let a=await this.safeParseAsync(t,r);if(a.success)return a.data;throw a.error}async safeParseAsync(t,r){let a={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ba(t)},n=this._parse({data:t,path:a.path,parent:a}),o=await(Rc(n)?n:Promise.resolve(n));return TL(a,o)}refine(t,r){let a=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,o)=>{let i=t(n),s=()=>o.addIssue({code:V.custom,...a(n)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(s(),!1)):i?!0:(s(),!1)})}refinement(t,r){return this._refinement((a,n)=>t(a)?!0:(n.addIssue(typeof r=="function"?r(a,n):r),!1))}_refinement(t){return new wn({schema:this,typeName:J.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 bn.create(this,this._def)}nullable(){return Ia.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _o.create(this)}promise(){return Ii.create(this,this._def)}or(t){return Hs.create([this,t],this._def)}and(t){return Ws.create(this,t,this._def)}transform(t){return new wn({...Te(this._def),schema:this,typeName:J.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Qs({...Te(this._def),innerType:this,defaultValue:r,typeName:J.ZodDefault})}brand(){return new ph({typeName:J.ZodBranded,type:this,...Te(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new el({...Te(this._def),innerType:this,catchValue:r,typeName:J.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return mh.create(this,t)}readonly(){return tl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},DG=/^c[^\s-]{8,}$/i,zG=/^[0-9a-z]+$/,NG=/^[0-9A-HJKMNP-TV-Z]{26}$/i,OG=/^[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,FG=/^[a-z0-9_-]{21}$/i,UG=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,BG=/^[-+]?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)?)??$/,jG=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,VG="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",n4,ZG=/^(?:(?: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])$/,qG=/^(?:(?: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])$/,GG=/^(([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]))$/,HG=/^(([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])$/,WG=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,JG=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$L="((\\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])))",KG=new RegExp(`^${$L}$`);function PL(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 XG(e){return new RegExp(`^${PL(e)}$`)}function YG(e){let t=`${$L}T${PL(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 QG(e,t){return!!((t==="v4"||!t)&&ZG.test(e)||(t==="v6"||!t)&&GG.test(e))}function eH(e,t){if(!UG.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let a=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(a));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function tH(e,t){return!!((t==="v4"||!t)&&qG.test(e)||(t==="v6"||!t)&&HG.test(e))}var Zs=class e extends Ne{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==le.string){let o=this._getOrReturnCtx(t);return te(o,{code:V.invalid_type,expected:le.string,received:o.parsedType}),ye}let a=new Yt,n;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(n=this._getOrReturnCtx(t,n),te(n,{code:V.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="max")t.data.length>o.value&&(n=this._getOrReturnCtx(t,n),te(n,{code:V.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="length"){let i=t.data.length>o.value,s=t.data.length<o.value;(i||s)&&(n=this._getOrReturnCtx(t,n),i?te(n,{code:V.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&te(n,{code:V.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),a.dirty())}else if(o.kind==="email")jG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"email",code:V.invalid_string,message:o.message}),a.dirty());else if(o.kind==="emoji")n4||(n4=new RegExp(VG,"u")),n4.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"emoji",code:V.invalid_string,message:o.message}),a.dirty());else if(o.kind==="uuid")OG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"uuid",code:V.invalid_string,message:o.message}),a.dirty());else if(o.kind==="nanoid")FG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"nanoid",code:V.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid")DG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"cuid",code:V.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid2")zG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"cuid2",code:V.invalid_string,message:o.message}),a.dirty());else if(o.kind==="ulid")NG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"ulid",code:V.invalid_string,message:o.message}),a.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),te(n,{validation:"url",code:V.invalid_string,message:o.message}),a.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"regex",code:V.invalid_string,message:o.message}),a.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(t,n),te(n,{code:V.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),a.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(n=this._getOrReturnCtx(t,n),te(n,{code:V.invalid_string,validation:{startsWith:o.value},message:o.message}),a.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(n=this._getOrReturnCtx(t,n),te(n,{code:V.invalid_string,validation:{endsWith:o.value},message:o.message}),a.dirty()):o.kind==="datetime"?YG(o).test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{code:V.invalid_string,validation:"datetime",message:o.message}),a.dirty()):o.kind==="date"?KG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{code:V.invalid_string,validation:"date",message:o.message}),a.dirty()):o.kind==="time"?XG(o).test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{code:V.invalid_string,validation:"time",message:o.message}),a.dirty()):o.kind==="duration"?BG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"duration",code:V.invalid_string,message:o.message}),a.dirty()):o.kind==="ip"?QG(t.data,o.version)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"ip",code:V.invalid_string,message:o.message}),a.dirty()):o.kind==="jwt"?eH(t.data,o.alg)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"jwt",code:V.invalid_string,message:o.message}),a.dirty()):o.kind==="cidr"?tH(t.data,o.version)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"cidr",code:V.invalid_string,message:o.message}),a.dirty()):o.kind==="base64"?WG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"base64",code:V.invalid_string,message:o.message}),a.dirty()):o.kind==="base64url"?JG.test(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{validation:"base64url",code:V.invalid_string,message:o.message}),a.dirty()):Fe.assertNever(o);return{status:a.value,value:t.data}}_regex(t,r,a){return this.refinement(n=>t.test(n),{validation:r,code:V.invalid_string,...ce.errToObj(a)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ce.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ce.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ce.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,...ce.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,...ce.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ce.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...ce.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...ce.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...ce.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...ce.errToObj(r)})}nonempty(t){return this.min(1,ce.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}};Zs.create=e=>new Zs({checks:[],typeName:J.ZodString,coerce:e?.coerce??!1,...Te(e)});function rH(e,t){let r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,n=r>a?r:a,o=Number.parseInt(e.toFixed(n).replace(".","")),i=Number.parseInt(t.toFixed(n).replace(".",""));return o%i/10**n}var Dc=class e extends Ne{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)!==le.number){let o=this._getOrReturnCtx(t);return te(o,{code:V.invalid_type,expected:le.number,received:o.parsedType}),ye}let a,n=new Yt;for(let o of this._def.checks)o.kind==="int"?Fe.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),te(a,{code:V.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),te(a,{code:V.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),te(a,{code:V.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?rH(t.data,o.value)!==0&&(a=this._getOrReturnCtx(t,a),te(a,{code:V.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),te(a,{code:V.not_finite,message:o.message}),n.dirty()):Fe.assertNever(o);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,ce.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ce.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ce.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ce.toString(r))}setLimit(t,r,a,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:ce.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.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"&&Fe.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Dc.create=e=>new Dc({checks:[],typeName:J.ZodNumber,coerce:e?.coerce||!1,...Te(e)});var zc=class e extends Ne{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)!==le.bigint)return this._getInvalidInput(t);let a,n=new Yt;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),te(a,{code:V.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),te(a,{code:V.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),te(a,{code:V.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):Fe.assertNever(o);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return te(r,{code:V.invalid_type,expected:le.bigint,received:r.parsedType}),ye}gte(t,r){return this.setLimit("min",t,!0,ce.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ce.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ce.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ce.toString(r))}setLimit(t,r,a,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:ce.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:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ce.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}};zc.create=e=>new zc({checks:[],typeName:J.ZodBigInt,coerce:e?.coerce??!1,...Te(e)});var Nc=class extends Ne{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==le.boolean){let a=this._getOrReturnCtx(t);return te(a,{code:V.invalid_type,expected:le.boolean,received:a.parsedType}),ye}return ir(t.data)}};Nc.create=e=>new Nc({typeName:J.ZodBoolean,coerce:e?.coerce||!1,...Te(e)});var Oc=class e extends Ne{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==le.date){let o=this._getOrReturnCtx(t);return te(o,{code:V.invalid_type,expected:le.date,received:o.parsedType}),ye}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return te(o,{code:V.invalid_date}),ye}let a=new Yt,n;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(n=this._getOrReturnCtx(t,n),te(n,{code:V.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),a.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(n=this._getOrReturnCtx(t,n),te(n,{code:V.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),a.dirty()):Fe.assertNever(o);return{status:a.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:ce.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:ce.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}};Oc.create=e=>new Oc({checks:[],coerce:e?.coerce||!1,typeName:J.ZodDate,...Te(e)});var Fc=class extends Ne{_parse(t){if(this._getType(t)!==le.symbol){let a=this._getOrReturnCtx(t);return te(a,{code:V.invalid_type,expected:le.symbol,received:a.parsedType}),ye}return ir(t.data)}};Fc.create=e=>new Fc({typeName:J.ZodSymbol,...Te(e)});var qs=class extends Ne{_parse(t){if(this._getType(t)!==le.undefined){let a=this._getOrReturnCtx(t);return te(a,{code:V.invalid_type,expected:le.undefined,received:a.parsedType}),ye}return ir(t.data)}};qs.create=e=>new qs({typeName:J.ZodUndefined,...Te(e)});var Gs=class extends Ne{_parse(t){if(this._getType(t)!==le.null){let a=this._getOrReturnCtx(t);return te(a,{code:V.invalid_type,expected:le.null,received:a.parsedType}),ye}return ir(t.data)}};Gs.create=e=>new Gs({typeName:J.ZodNull,...Te(e)});var Uc=class extends Ne{constructor(){super(...arguments),this._any=!0}_parse(t){return ir(t.data)}};Uc.create=e=>new Uc({typeName:J.ZodAny,...Te(e)});var ko=class extends Ne{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ir(t.data)}};ko.create=e=>new ko({typeName:J.ZodUnknown,...Te(e)});var Un=class extends Ne{_parse(t){let r=this._getOrReturnCtx(t);return te(r,{code:V.invalid_type,expected:le.never,received:r.parsedType}),ye}};Un.create=e=>new Un({typeName:J.ZodNever,...Te(e)});var Bc=class extends Ne{_parse(t){if(this._getType(t)!==le.undefined){let a=this._getOrReturnCtx(t);return te(a,{code:V.invalid_type,expected:le.void,received:a.parsedType}),ye}return ir(t.data)}};Bc.create=e=>new Bc({typeName:J.ZodVoid,...Te(e)});var _o=class e extends Ne{_parse(t){let{ctx:r,status:a}=this._processInputParams(t),n=this._def;if(r.parsedType!==le.array)return te(r,{code:V.invalid_type,expected:le.array,received:r.parsedType}),ye;if(n.exactLength!==null){let i=r.data.length>n.exactLength.value,s=r.data.length<n.exactLength.value;(i||s)&&(te(r,{code:i?V.too_big:V.too_small,minimum:s?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),a.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(te(r,{code:V.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),a.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(te(r,{code:V.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((i,s)=>n.type._parseAsync(new an(r,i,r.path,s)))).then(i=>Yt.mergeArray(a,i));let o=[...r.data].map((i,s)=>n.type._parseSync(new an(r,i,r.path,s)));return Yt.mergeArray(a,o)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:ce.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:ce.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:ce.toString(r)}})}nonempty(t){return this.min(1,t)}};_o.create=(e,t)=>new _o({type:e,minLength:null,maxLength:null,exactLength:null,typeName:J.ZodArray,...Te(t)});function Vs(e){if(e instanceof Ur){let t={};for(let r in e.shape){let a=e.shape[r];t[r]=bn.create(Vs(a))}return new Ur({...e._def,shape:()=>t})}else return e instanceof _o?new _o({...e._def,type:Vs(e.element)}):e instanceof bn?bn.create(Vs(e.unwrap())):e instanceof Ia?Ia.create(Vs(e.unwrap())):e instanceof Sa?Sa.create(e.items.map(t=>Vs(t))):e}var Ur=class e extends Ne{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=Fe.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==le.object){let u=this._getOrReturnCtx(t);return te(u,{code:V.invalid_type,expected:le.object,received:u.parsedType}),ye}let{status:a,ctx:n}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof Un&&this._def.unknownKeys==="strip"))for(let u in n.data)i.includes(u)||s.push(u);let l=[];for(let u of i){let c=o[u],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})}if(this._def.catchall instanceof Un){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of s)l.push({key:{status:"valid",value:c},value:{status:"valid",value:n.data[c]}});else if(u==="strict")s.length>0&&(te(n,{code:V.unrecognized_keys,keys:s}),a.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of s){let d=n.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new an(n,d,n.path,c)),alwaysSet:c in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>Yt.mergeObjectSync(a,u)):Yt.mergeObjectSync(a,l)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,a)=>{let n=this._def.errorMap?.(r,a).message??a.defaultError;return r.code==="unrecognized_keys"?{message:ce.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:J.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let a of Fe.objectKeys(t))t[a]&&this.shape[a]&&(r[a]=this.shape[a]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let a of Fe.objectKeys(this.shape))t[a]||(r[a]=this.shape[a]);return new e({...this._def,shape:()=>r})}deepPartial(){return Vs(this)}partial(t){let r={};for(let a of Fe.objectKeys(this.shape)){let n=this.shape[a];t&&!t[a]?r[a]=n:r[a]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let a of Fe.objectKeys(this.shape))if(t&&!t[a])r[a]=this.shape[a];else{let o=this.shape[a];for(;o instanceof bn;)o=o._def.innerType;r[a]=o}return new e({...this._def,shape:()=>r})}keyof(){return LL(Fe.objectKeys(this.shape))}};Ur.create=(e,t)=>new Ur({shape:()=>e,unknownKeys:"strip",catchall:Un.create(),typeName:J.ZodObject,...Te(t)});Ur.strictCreate=(e,t)=>new Ur({shape:()=>e,unknownKeys:"strict",catchall:Un.create(),typeName:J.ZodObject,...Te(t)});Ur.lazycreate=(e,t)=>new Ur({shape:e,unknownKeys:"strip",catchall:Un.create(),typeName:J.ZodObject,...Te(t)});var Hs=class extends Ne{_parse(t){let{ctx:r}=this._processInputParams(t),a=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let i=o.map(s=>new Fr(s.ctx.common.issues));return te(r,{code:V.invalid_union,unionErrors:i}),ye}if(r.common.async)return Promise.all(a.map(async o=>{let i={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(n);{let o,i=[];for(let l of a){let u={...r,common:{...r.common,issues:[]},parent:null},c=l._parseSync({data:r.data,path:r.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(l=>new Fr(l));return te(r,{code:V.invalid_union,unionErrors:s}),ye}}get options(){return this._def.options}};Hs.create=(e,t)=>new Hs({options:e,typeName:J.ZodUnion,...Te(t)});var wa=e=>e instanceof Js?wa(e.schema):e instanceof wn?wa(e.innerType()):e instanceof Ks?[e.value]:e instanceof Xs?e.options:e instanceof Ys?Fe.objectValues(e.enum):e instanceof Qs?wa(e._def.innerType):e instanceof qs?[void 0]:e instanceof Gs?[null]:e instanceof bn?[void 0,...wa(e.unwrap())]:e instanceof Ia?[null,...wa(e.unwrap())]:e instanceof ph||e instanceof tl?wa(e.unwrap()):e instanceof el?wa(e._def.innerType):[],a4=class e extends Ne{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==le.object)return te(r,{code:V.invalid_type,expected:le.object,received:r.parsedType}),ye;let a=this.discriminator,n=r.data[a],o=this.optionsMap.get(n);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(te(r,{code:V.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,a){let n=new Map;for(let o of r){let i=wa(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of i){if(n.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);n.set(s,o)}}return new e({typeName:J.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...Te(a)})}};function o4(e,t){let r=ba(e),a=ba(t);if(e===t)return{valid:!0,data:e};if(r===le.object&&a===le.object){let n=Fe.objectKeys(t),o=Fe.objectKeys(e).filter(s=>n.indexOf(s)!==-1),i={...e,...t};for(let s of o){let l=o4(e[s],t[s]);if(!l.valid)return{valid:!1};i[s]=l.data}return{valid:!0,data:i}}else if(r===le.array&&a===le.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let i=e[o],s=t[o],l=o4(i,s);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===le.date&&a===le.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Ws=class extends Ne{_parse(t){let{status:r,ctx:a}=this._processInputParams(t),n=(o,i)=>{if(t4(o)||t4(i))return ye;let s=o4(o.value,i.value);return s.valid?((r4(o)||r4(i))&&r.dirty(),{status:r.value,value:s.data}):(te(a,{code:V.invalid_intersection_types}),ye)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([o,i])=>n(o,i)):n(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}};Ws.create=(e,t,r)=>new Ws({left:e,right:t,typeName:J.ZodIntersection,...Te(r)});var Sa=class e extends Ne{_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==le.array)return te(a,{code:V.invalid_type,expected:le.array,received:a.parsedType}),ye;if(a.data.length<this._def.items.length)return te(a,{code:V.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&a.data.length>this._def.items.length&&(te(a,{code:V.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...a.data].map((i,s)=>{let l=this._def.items[s]||this._def.rest;return l?l._parse(new an(a,i,a.path,s)):null}).filter(i=>!!i);return a.common.async?Promise.all(o).then(i=>Yt.mergeArray(r,i)):Yt.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Sa.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Sa({items:e,typeName:J.ZodTuple,rest:null,...Te(t)})};var i4=class e extends Ne{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==le.object)return te(a,{code:V.invalid_type,expected:le.object,received:a.parsedType}),ye;let n=[],o=this._def.keyType,i=this._def.valueType;for(let s in a.data)n.push({key:o._parse(new an(a,s,a.path,s)),value:i._parse(new an(a,a.data[s],a.path,s)),alwaysSet:s in a.data});return a.common.async?Yt.mergeObjectAsync(r,n):Yt.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,a){return r instanceof Ne?new e({keyType:t,valueType:r,typeName:J.ZodRecord,...Te(a)}):new e({keyType:Zs.create(),valueType:t,typeName:J.ZodRecord,...Te(r)})}},jc=class extends Ne{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==le.map)return te(a,{code:V.invalid_type,expected:le.map,received:a.parsedType}),ye;let n=this._def.keyType,o=this._def.valueType,i=[...a.data.entries()].map(([s,l],u)=>({key:n._parse(new an(a,s,a.path,[u,"key"])),value:o._parse(new an(a,l,a.path,[u,"value"]))}));if(a.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let l of i){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),s.set(u.value,c.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let l of i){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),s.set(u.value,c.value)}return{status:r.value,value:s}}}};jc.create=(e,t,r)=>new jc({valueType:t,keyType:e,typeName:J.ZodMap,...Te(r)});var Vc=class e extends Ne{_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==le.set)return te(a,{code:V.invalid_type,expected:le.set,received:a.parsedType}),ye;let n=this._def;n.minSize!==null&&a.data.size<n.minSize.value&&(te(a,{code:V.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&a.data.size>n.maxSize.value&&(te(a,{code:V.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let o=this._def.valueType;function i(l){let u=new Set;for(let c of l){if(c.status==="aborted")return ye;c.status==="dirty"&&r.dirty(),u.add(c.value)}return{status:r.value,value:u}}let s=[...a.data.values()].map((l,u)=>o._parse(new an(a,l,a.path,u)));return a.common.async?Promise.all(s).then(l=>i(l)):i(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:ce.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:ce.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Vc.create=(e,t)=>new Vc({valueType:e,minSize:null,maxSize:null,typeName:J.ZodSet,...Te(t)});var s4=class e extends Ne{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==le.function)return te(r,{code:V.invalid_type,expected:le.function,received:r.parsedType}),ye;function a(s,l){return fh({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Mc(),Io].filter(u=>!!u),issueData:{code:V.invalid_arguments,argumentsError:l}})}function n(s,l){return fh({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Mc(),Io].filter(u=>!!u),issueData:{code:V.invalid_return_type,returnTypeError:l}})}let o={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof Ii){let s=this;return ir(async function(...l){let u=new Fr([]),c=await s._def.args.parseAsync(l,o).catch(p=>{throw u.addIssue(a(l,p)),u}),d=await Reflect.apply(i,this,c);return await s._def.returns._def.type.parseAsync(d,o).catch(p=>{throw u.addIssue(n(d,p)),u})})}else{let s=this;return ir(function(...l){let u=s._def.args.safeParse(l,o);if(!u.success)throw new Fr([a(l,u.error)]);let c=Reflect.apply(i,this,u.data),d=s._def.returns.safeParse(c,o);if(!d.success)throw new Fr([n(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Sa.create(t).rest(ko.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,a){return new e({args:t||Sa.create([]).rest(ko.create()),returns:r||ko.create(),typeName:J.ZodFunction,...Te(a)})}},Js=class extends Ne{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})}};Js.create=(e,t)=>new Js({getter:e,typeName:J.ZodLazy,...Te(t)});var Ks=class extends Ne{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return te(r,{received:r.data,code:V.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:t.data}}get value(){return this._def.value}};Ks.create=(e,t)=>new Ks({value:e,typeName:J.ZodLiteral,...Te(t)});function LL(e,t){return new Xs({values:e,typeName:J.ZodEnum,...Te(t)})}var Xs=class e extends Ne{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),a=this._def.values;return te(r,{expected:Fe.joinValues(a),received:r.parsedType,code:V.invalid_type}),ye}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),a=this._def.values;return te(r,{received:r.data,code:V.invalid_enum_value,options:a}),ye}return ir(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(a=>!t.includes(a)),{...this._def,...r})}};Xs.create=LL;var Ys=class extends Ne{_parse(t){let r=Fe.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==le.string&&a.parsedType!==le.number){let n=Fe.objectValues(r);return te(a,{expected:Fe.joinValues(n),received:a.parsedType,code:V.invalid_type}),ye}if(this._cache||(this._cache=new Set(Fe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=Fe.objectValues(r);return te(a,{received:a.data,code:V.invalid_enum_value,options:n}),ye}return ir(t.data)}get enum(){return this._def.values}};Ys.create=(e,t)=>new Ys({values:e,typeName:J.ZodNativeEnum,...Te(t)});var Ii=class extends Ne{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==le.promise&&r.common.async===!1)return te(r,{code:V.invalid_type,expected:le.promise,received:r.parsedType}),ye;let a=r.parsedType===le.promise?r.data:Promise.resolve(r.data);return ir(a.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ii.create=(e,t)=>new Ii({type:e,typeName:J.ZodPromise,...Te(t)});var wn=class extends Ne{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===J.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:a}=this._processInputParams(t),n=this._def.effect||null,o={addIssue:i=>{te(a,i),i.fatal?r.abort():r.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let i=n.transform(a.data,o);if(a.common.async)return Promise.resolve(i).then(async s=>{if(r.value==="aborted")return ye;let l=await this._def.schema._parseAsync({data:s,path:a.path,parent:a});return l.status==="aborted"?ye:l.status==="dirty"?js(l.value):r.value==="dirty"?js(l.value):l});{if(r.value==="aborted")return ye;let s=this._def.schema._parseSync({data:i,path:a.path,parent:a});return s.status==="aborted"?ye:s.status==="dirty"?js(s.value):r.value==="dirty"?js(s.value):s}}if(n.type==="refinement"){let i=s=>{let l=n.refinement(s,o);if(a.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(a.common.async===!1){let s=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?ye:(s.status==="dirty"&&r.dirty(),i(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(s=>s.status==="aborted"?ye:(s.status==="dirty"&&r.dirty(),i(s.value).then(()=>({status:r.value,value:s.value}))))}if(n.type==="transform")if(a.common.async===!1){let i=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Si(i))return ye;let s=n.transform(i.value,o);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:a.data,path:a.path,parent:a}).then(i=>Si(i)?Promise.resolve(n.transform(i.value,o)).then(s=>({status:r.value,value:s})):ye);Fe.assertNever(n)}};wn.create=(e,t,r)=>new wn({schema:e,typeName:J.ZodEffects,effect:t,...Te(r)});wn.createWithPreprocess=(e,t,r)=>new wn({schema:t,effect:{type:"preprocess",transform:e},typeName:J.ZodEffects,...Te(r)});var bn=class extends Ne{_parse(t){return this._getType(t)===le.undefined?ir(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};bn.create=(e,t)=>new bn({innerType:e,typeName:J.ZodOptional,...Te(t)});var Ia=class extends Ne{_parse(t){return this._getType(t)===le.null?ir(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ia.create=(e,t)=>new Ia({innerType:e,typeName:J.ZodNullable,...Te(t)});var Qs=class extends Ne{_parse(t){let{ctx:r}=this._processInputParams(t),a=r.data;return r.parsedType===le.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Qs.create=(e,t)=>new Qs({innerType:e,typeName:J.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Te(t)});var el=class extends Ne{_parse(t){let{ctx:r}=this._processInputParams(t),a={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Rc(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Fr(a.common.issues)},input:a.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Fr(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}};el.create=(e,t)=>new el({innerType:e,typeName:J.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Te(t)});var Zc=class extends Ne{_parse(t){if(this._getType(t)!==le.nan){let a=this._getOrReturnCtx(t);return te(a,{code:V.invalid_type,expected:le.nan,received:a.parsedType}),ye}return{status:"valid",value:t.data}}};Zc.create=e=>new Zc({typeName:J.ZodNaN,...Te(e)});var ph=class extends Ne{_parse(t){let{ctx:r}=this._processInputParams(t),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}},mh=class e extends Ne{_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?ye:o.status==="dirty"?(r.dirty(),js(o.value)):this._def.out._parseAsync({data:o.value,path:a.path,parent:a})})();{let n=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return n.status==="aborted"?ye:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:a.path,parent:a})}}static create(t,r){return new e({in:t,out:r,typeName:J.ZodPipeline})}},tl=class extends Ne{_parse(t){let r=this._def.innerType._parse(t),a=n=>(Si(n)&&(n.value=Object.freeze(n.value)),n);return Rc(r)?r.then(n=>a(n)):a(r)}unwrap(){return this._def.innerType}};tl.create=(e,t)=>new tl({innerType:e,typeName:J.ZodReadonly,...Te(t)});var N_e={object:Ur.lazycreate},J;(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"})(J||(J={}));var O_e=Zs.create,F_e=Dc.create,U_e=Zc.create,B_e=zc.create,j_e=Nc.create,V_e=Oc.create,Z_e=Fc.create,q_e=qs.create,G_e=Gs.create,H_e=Uc.create,W_e=ko.create,J_e=Un.create,K_e=Bc.create,X_e=_o.create,Y_e=Ur.create,Q_e=Ur.strictCreate,e5e=Hs.create,t5e=a4.create,r5e=Ws.create,n5e=Sa.create,a5e=i4.create,o5e=jc.create,i5e=Vc.create,s5e=s4.create,l5e=Js.create,u5e=Ks.create,c5e=Xs.create,d5e=Ys.create,f5e=Ii.create,p5e=wn.create,m5e=bn.create,h5e=Ia.create,g5e=wn.createWithPreprocess,v5e=mh.create;var qc=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}},AL=10,aH=13,ki=32;function l4(e){}function RL(e){if(typeof e=="function")throw new TypeError("`config` must be an object, got a function instead. Did
50you mean `createParser({onEvent: fn})`?");let{onEvent:t=l4,onError:r=l4,onRetry:a=l4,onComment:n,maxBufferSize:o}=e,i=[],s=0,l=!0,u,c="",d=0,f,p=!1;function g(_){if(p)throw new Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(l&&(l=!1,_.charCodeAt(0)===239&&_.charCodeAt(1)===187&&_.charCodeAt(2)===191&&(_=_.slice(3))),i.length===0){let N=y(_);N!==""&&(i.push(N),s=N.length),w();return}if(_.indexOf(` 51`)===-1&&_.indexOf("\r")===-1){i.push(_),s+=_.length,w();return}i.push(_);let P=i.join("");i.length=0,s=0;let D=y(P);D!==""&&(i.push(D),s=D.length),w()}function w(){o!==void 0&&(s+c.length<=o||(p=!0,i.length=0,s=0,u=void 0,c="",d=0,f=void 0,r(new qc(`Buffered data exceeded max buffer size of ${o} characters`,{type:"max-buffer-size-exceeded"}))))}function y(_){let P=0;if(_.indexOf("\r")===-1){let D=_.indexOf(` 52`,P);for(;D!==-1;){if(P===D){d>0&&t({id:u,event:f,data:c}),u=void 0,c="",d=0,f=void 0,P=D+1,D=_.indexOf(` 53`,P);continue}let N=_.charCodeAt(P);if(EL(_,P,N)){let A=_.charCodeAt(P+5)===ki?P+6:P+5,O=_.slice(A,D);if(d===0&&_.charCodeAt(D+1)===AL){t({id:u,event:f,data:O}),u=void 0,c="",f=void 0,P=D+2,D=_.indexOf(` 54`,P);continue}c=d===0?O:`${c} 55${O}`,d++}else ML(_,P,N)?f=_.slice(_.charCodeAt(P+6)===ki?P+7:P+6,D)||void 0:I(_,P,D);P=D+1,D=_.indexOf(` 56`,P)}return _.slice(P)}for(;P<_.length;){let D=_.indexOf("\r",P),N=_.indexOf(` 57`,P),A=-1;if(D!==-1&&N!==-1?A=D<N?D:N:D!==-1?D===_.length-1?A=-1:A=D:N!==-1&&(A=N),A===-1)break;I(_,P,A),P=A+1,_.charCodeAt(P-1)===aH&&_.charCodeAt(P)===AL&&P++}return _.slice(P)}function I(_,P,D){if(P===D){x();return}let N=_.charCodeAt(P);if(EL(_,P,N)){let pe=_.charCodeAt(P+5)===ki?P+6:P+5,Me=_.slice(pe,D);c=d===0?Me:`${c} 58${Me}`,d++;return}if(ML(_,P,N)){f=_.slice(_.charCodeAt(P+6)===ki?P+7:P+6,D)||void 0;return}if(N===105&&_.charCodeAt(P+1)===100&&_.charCodeAt(P+2)===58){let pe=_.slice(_.charCodeAt(P+3)===ki?P+4:P+3,D);u=pe.includes("\0")?void 0:pe;return}if(N===58){if(n){let pe=_.slice(P,D);n(pe.slice(_.charCodeAt(P+1)===ki?2:1))}return}let A=_.slice(P,D),O=A.indexOf(":");if(O===-1){S(A,"",A);return}let oe=A.slice(0,O),Y=A.charCodeAt(O+1)===ki?2:1,He=A.slice(O+Y);S(oe,He,A)}function S(_,P,D){switch(_){case"event":f=P||void 0;break;case"data":c=d===0?P:`${c} 59${P}`,d++;break;case"id":u=P.includes("\0")?void 0:P;break;case"retry":/^\d+$/.test(P)?a(parseInt(P,10)):r(new qc(`Invalid \`retry\` value: "${P}"`,{type:"invalid-retry",value:P,line:D}));break;default:r(new qc(`Unknown field "${_.length>20?`${_.slice(0,20)}\u2026`:_}"`,{type:"unknown-field",field:_,value:P,line:D}));break}}function x(){d>0&&t({id:u,event:f,data:c}),u=void 0,c="",d=0,f=void 0}function C(_={}){if(_.consume&&i.length>0){let P=i.join("");I(P,0,P.length)}l=!0,u=void 0,c="",d=0,f=void 0,i.length=0,s=0,p=!1}return{feed:g,reset:C}}function EL(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 ML(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 hh=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:a,maxBufferSize:n}={}){let o;super({start(i){o=RL({onEvent:s=>{i.enqueue(s)},onError(s){typeof t=="function"&&t(s),(t==="terminate"||s.type==="max-buffer-size-exceeded")&&i.error(s)},onRetry:r,onComment:a,maxBufferSize:n})},transform(i){o.feed(i)}})}};var{btoa:L5e,atob:A5e}=globalThis;async function gh(e){var t;try{await((t=e.body)==null?void 0:t.cancel())}catch{}}var UL="AI_DownloadError",BL=`vercel.ai.error.${UL}`,oH=Symbol.for(BL),DL,zL,Sr=class extends(zL=Ue,DL=oH,zL){constructor({url:e,statusCode:t,statusText:r,cause:a,message:n=a==null?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${a}`}){super({name:UL,message:n,cause:a}),this[DL]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return Ue.hasMarker(e,BL)}};function iH(e=globalThis){return e.window!=null}function sH(e){let t;try{t=new URL(e)}catch{throw new Sr({url:e,message:`Invalid URL: ${e}`})}if(t.protocol==="data:")return;if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Sr({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname.toLowerCase().replace(/\.+$/,"");if(!r)throw new Sr({url:e,message:"URL must have a hostname"});if(r==="localhost"||r.endsWith(".local")||r.endsWith(".localhost"))throw new Sr({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){let a=r.slice(1,-1);if(uH(a))throw new Sr({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if(jL(r)){if(VL(r))throw new Sr({url:e,message:`URL with IP address ${r} is not allowed`});return}}function jL(e){let t=e.split(".");return t.length!==4?!1:t.every(r=>{let a=Number(r);return Number.isInteger(a)&&a>=0&&a<=255&&String(a)===r})}function VL(e){let t=e.split(".").map(Number),[r,a,n]=t;return r===0||r===10||r===100&&a>=64&&a<=127||r===127||r===169&&a===254||r===172&&a>=16&&a<=31||r===192&&a===0&&n===0||r===192&&a===168||r===198&&(a===18||a===19)||r>=240}function lH(e){let t=e.toLowerCase(),r=t.indexOf("%");
59r!==-1&&(t=t.slice(0,r));let a=t.split("::");if(a.length>2)return null;let n=i=>{if(i==="")return[];let s=[],l=i.split(":");for(let u=0;u<l.length;u++){let c=l[u];if(c.includes(".")){if(u!==l.length-1||!jL(c))return null;let[d,f,p,g]=c.split(".").map(Number);s.push(d<<8|f,p<<8|g);continue}if(!/^[0-9a-f]{1,4}$/.test(c))return null;s.push(parseInt(c,16))}return s},o=n(a[0]);if(o===null)return null;if(a.length===2){let i=n(a[1]);if(i===null)return null;let s=8-o.length-i.length;return s<0?null:[...o,...new Array(s).fill(0),...i]}return o.length===8?o:null}function uH(e){let t=lH(e);if(t===null)return!0;let r=n=>t.slice(0,n).every(o=>o===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,o=t[6]&255,i=t[7]>>8&255,s=t[7]&255;return VL(`${n}.${o}.${i}.${s}`)}return!1}var cH=10;async function ZL({url:e,headers:t,abortSignal:r,maxRedirects:a=cH}){let n={signal:r};t!==void 0&&(n.headers=t);let o=e;for(let i=0;i<=a;i++){sH(o);let s=await fetch(o,{...n,redirect:"manual"});if(s.type==="opaqueredirect"){if(!iH())throw new Sr({url:e,message:`Redirect from ${o} could not be validated and was blocked`});return await fetch(o,{...n,redirect:"follow"})}let l=s.headers.get("location");if(s.status>=300&&s.status<400&&l){await gh(s),o=new URL(l,o).toString();continue}return s}throw new Sr({url:e,message:`Too many redirects (max ${a})`})}var p4=2*1024*1024*1024;async function qL({response:e,url:t,maxBytes:r=p4}){let a=e.headers.get("content-length");if(a!=null){let c=parseInt(a,10);if(!isNaN(c)&&c>r)throw await gh(e),new Sr({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${c}).`})}let n=e.body;if(n==null)return new Uint8Array(0);let o=n.getReader(),i=[],s=0;try{for(;;){let{done:c,value:d}=await o.read();if(c)break;if(s+=d.length,s>r)throw new Sr({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});i.push(d)}}finally{try{await o.cancel()}finally{o.releaseLock()}}let l=new Uint8Array(s),u=0;for(let c of i)l.set(c,u),u+=c.length;return l}var ka=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:a="-"}={})=>{let n=()=>{let o=r.length,i=new Array(t);for(let s=0;s<t;s++)i[s]=r[Math.random()*o|0];return i.join("")};if(e==null)return n;if(r.includes(a))throw new o7({argument:"separator",message:`The separator "${a}" must not be part of the alphabet "${r}".`});return()=>`${e}${a}${n()}`},GL=ka();function HL(e=globalThis){var t,r,a;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(a=(r=e.process)==null?void 0:r.versions)!=null&&a.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function Co(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((r,a)=>{t[a.toLowerCase()]=r});else{Array.isArray(e)||(e=Object.entries(e));for(let[r,a]of e)a!=null&&(t[r.toLowerCase()]=a)}return t}function vh(e,...t){let r=new Headers(Co(e)),a=r.get("user-agent")||"";return r.set("user-agent",[a,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var dH=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,fH=/"(?: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 NL(e){let t=JSON.parse(e);return t===null||typeof t!="object"||dH.test(e)===!1&&fH.test(e)===!1?t:pH(t)}function pH(e){let t=[e];for(;t.length;){let r=t;t=[];for(let a of r){if(Object.prototype.hasOwnProperty.call(a,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(a,"constructor")&&a.constructor!==null&&typeof a.constructor=="object"&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let n in a){let o=a[n];
vendor: 8,010 bytes, line 59
59o&&typeof o=="object"&&t.push(o)}}}return e}function mH(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return NL(e)}try{return NL(e)}finally{Error.stackTraceLimit=t}}function m4(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 a of Object.keys(r))r[a]=_i(r[a])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(_i):_i(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(_i)),e.allOf!=null&&(e.allOf=e.allOf.map(_i)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(_i));let{definitions:t}=e;if(t!=null)for(let r of Object.keys(t))t[r]=_i(t[r]);return e}function _i(e){return typeof e=="boolean"?e:m4(e)}var hH=Symbol("Let zodToJsonSchema decide on which parser to use"),OL={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"},gH=e=>typeof e=="string"?{...OL,name:e}:{...OL,...e};function Br(){return{}}function vH(e,t){var r,a,n;let o={type:"array"};return(r=e.type)!=null&&r._def&&((n=(a=e.type)==null?void 0:a._def)==null?void 0:n.typeName)!==J.ZodAny&&(o.items=Ke(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(o.minItems=e.minLength.value),e.maxLength&&(o.maxItems=e.maxLength.value),e.exactLength&&(o.minItems=e.exactLength.value,o.maxItems=e.exactLength.value),o}function yH(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 xH(){return{type:"boolean"}}function WL(e,t){return Ke(e.type._def,t)}var bH=(e,t)=>Ke(e.innerType._def,t);function JL(e,t,r){let a=r??t.dateStrategy;if(Array.isArray(a))return{anyOf:a.map((n,o)=>JL(e,t,n))};switch(a){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return wH(e)}}var wH=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 SH(e,t){return{...Ke(e.innerType._def,t),default:e.defaultValue()}}function IH(e,t){return t.effectStrategy==="input"?Ke(e.schema._def,t):Br()}function kH(e){return{type:"string",enum:Array.from(e.values)}}var _H=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function CH(e,t){let r=[Ke(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Ke(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(n=>!!n),a=[];return r.forEach(n=>{if(_H(n))a.push(...n.allOf);else{let o=n;if("additionalProperties"in n&&n.additionalProperties===!1){let{additionalProperties:i,...s}=n;o=s}a.push(o)}}),a.length?{allOf:a}:void 0}function TH(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 u4=void 0,Sn={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(u4===void 0&&(u4=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),u4),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 KL(e,t){let r={type:"string"};if(e.checks)for(let a of e.checks)switch(a.kind){case"min":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,a.value):a.value;break;case"max":r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,a.value):a.value;break;case"email":switch(t.emailStrategy){case"format:email":In(r,"email",a.message,t);break;case"format:idn-email":In(r,"idn-email",a.message,t);break;case"pattern:zod":sr(r,Sn.email,a.message,t);break}break;case"url":In(r,"uri",a.message,t);break;case"uuid":In(r,"uuid",a.message,t);break;case"regex":sr(r,a.regex,a.message,t);break;case"cuid":sr(r,Sn.cuid,a.message,t);break;case"cuid2":sr(r,Sn.cuid2,a.message,t);break;case"startsWith":sr(r,RegExp(`^${c4(a.value,t)}`),a.message,t);break;case"endsWith":sr(r,RegExp(`${c4(a.value,t)}$`),a.message,t);break;case"datetime":In(r,"date-time",a.message,t);break;case"date":In(r,"date",a.message,t);break;case"time":In(r,"time",a.message,t);break;case"duration":In(r,"duration",a.message,t);break;case"length":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,a.value):a.value,r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,a.value):a.value;break;case"includes":{sr(r,RegExp(c4(a.value,t)),a.message,t);break}case"ip":{a.version!=="v6"&&In(r,"ipv4",a.message,t),a.version!=="v4"&&In(r,"ipv6",a.message,t);break}case"base64url":sr(r,Sn.base64url,a.message,t);break;case"jwt":sr(r,Sn.jwt,a.message,t);break;case"cidr":{a.version!=="v6"&&sr(r,Sn.ipv4Cidr,a.message,t),a.version!=="v4"&&sr(r,Sn.ipv6Cidr,a.message,t);break}case"emoji":sr(r,Sn.emoji(),a.message,t);break;case"ulid":{sr(r,Sn.ulid,a.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{In(r,"binary",a.message,t);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{sr(r,Sn.base64,a.message,t);break}}break}case"nanoid":sr(r,Sn.nanoid,a.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function c4(e,t){return t.patternStrategy==="escape"?PH(e):e}var $H=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function PH(e){let t="";for(let r=0;r<e.length;r++)$H.has(e[r])||(t+="\\"),t+=e[r];return t}function In(e,t,r,a){var n;e.format||(n=e.anyOf)!=null&&n.some(o=>o.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&a.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function sr(e,t,r,a){var n;e.pattern||(n=e.allOf)!=null&&n.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}
vendor: 4,682 bytes, lines 59-63
59),delete e.pattern),e.allOf.push({pattern:FL(t,a),...r&&a.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=FL(t,a)}function FL(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let a={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=a.i?e.source.toLowerCase():e.source,o="",i=!1,s=!1,l=!1;for(let u=0;u<n.length;u++){if(i){o+=n[u],i=!1;continue}if(a.i){if(s){if(n[u].match(/[a-z]/)){l?(o+=n[u],o+=`${n[u-2]}-${n[u]}`.toUpperCase(),l=!1):n[u+1]==="-"&&((r=n[u+2])!=null&&r.match(/[a-z]/))?(o+=n[u],l=!0):o+=`${n[u]}${n[u].toUpperCase()}`;continue}}else if(n[u].match(/[a-z]/)){o+=`[${n[u]}${n[u].toUpperCase()}]`;continue}}if(a.m){if(n[u]==="^"){o+=`(^|(?<=[\r 60]))`;continue}else if(n[u]==="$"){o+=`($|(?=[\r 61]))`;continue}}if(a.s&&n[u]==="."){o+=s?`${n[u]}\r 62`:`[${n[u]}\r 63]`;continue}o+=n[u],n[u]==="\\"?i=!0:s&&n[u]==="]"?s=!1:!s&&n[u]==="["&&(s=!0)}try{new RegExp(o)}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 o}function XL(e,t){var r,a,n,o,i,s;let l={type:"object",additionalProperties:(r=Ke(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((a=e.keyType)==null?void 0:a._def.typeName)===J.ZodString&&((n=e.keyType._def.checks)!=null&&n.length)){let{type:u,...c}=KL(e.keyType._def,t);return{...l,propertyNames:c}}else{if(((o=e.keyType)==null?void 0:o._def.typeName)===J.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((i=e.keyType)==null?void 0:i._def.typeName)===J.ZodBranded&&e.keyType._def.type._def.typeName===J.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){let{type:u,...c}=WL(e.keyType._def,t);return{...l,propertyNames:c}}}return l}function LH(e,t){if(t.mapStrategy==="record")return XL(e,t);let r=Ke(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||Br(),a=Ke(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||Br();return{type:"array",maxItems:125,items:{type:"array",items:[r,a],minItems:2,maxItems:2}}}function AH(e){let t=e.values,a=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),n=Array.from(new Set(a.map(o=>typeof o)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:a}}function EH(){return{not:Br()}}function MH(){return{type:"null"}}var d4={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function RH(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(a=>a._def.typeName in d4&&(!a._def.checks||!a._def.checks.length))){let a=r.reduce((n,o)=>{let i=d4[o._def.typeName];return i&&!n.includes(i)?[...n,i]:n},[]);return{type:a.length>1?a:a[0]}}else if(r.every(a=>a._def.typeName==="ZodLiteral"&&!a.description)){let a=r.reduce((n,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...n,i];case"bigint":return[...n,"integer"];case"object":if(o._def.value===null)return[...n,"null"];default:return n}},[]);if(a.length===r.length){let n=a.filter((o,i,s)=>s.indexOf(o)===i);return{type:n.length>1?n:n[0],enum:r.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(r.every(a=>a._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((a,n)=>[...a,...n._def.values.filter(o=>!a.includes(o))],[])};return DH(e,t)}var DH=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((a,n)=>Ke(a._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(a=>!!a&&(!t.strictUnions||typeof a=="object"&&Object.keys(a).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:[d4[e.innerType._def.typeName],"null"]};let r=Ke(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 OH(e,t){let r={type:"object",properties:{}},a=[],n=e.shape();for(let i in n){let s=n[i];if(s===void 0||s._def===void 0)continue;let l=UH(s),u=Ke(s._def,{...t,currentPath:[...t.currentPath,"properties",i],propertyPath:[...t.currentPath,"properties",i]});
63u!==void 0&&(r.properties[i]=u,l||a.push(i))}a.length&&(r.required=a);let o=FH(e,t);return o!==void 0&&(r.additionalProperties=o),r}function FH(e,t){if(e.catchall._def.typeName!=="ZodNever")return Ke(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function UH(e){try{return e.isOptional()}catch{return!0}}var BH=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return Ke(e.innerType._def,t);let a=Ke(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return a?{anyOf:[{not:Br()},a]}:Br()},jH=(e,t)=>{if(t.pipeStrategy==="input")return Ke(e.in._def,t);if(t.pipeStrategy==="output")return Ke(e.out._def,t);let r=Ke(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),a=Ke(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,a].filter(n=>n!==void 0)}};function VH(e,t){return Ke(e.type._def,t)}function ZH(e,t){let a={type:"array",uniqueItems:!0,items:Ke(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(a.minItems=e.minSize.value),e.maxSize&&(a.maxItems=e.maxSize.value),a}function qH(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,a)=>Ke(r._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((r,a)=>a===void 0?r:[...r,a],[]),additionalItems:Ke(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,a)=>Ke(r._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((r,a)=>a===void 0?r:[...r,a],[])}}function GH(){return{not:Br()}}function HH(){return Br()}var WH=(e,t)=>Ke(e.innerType._def,t),JH=(e,t,r)=>{switch(t){case J.ZodString:return KL(e,r);case J.ZodNumber:return NH(e);case J.ZodObject:return OH(e,r);case J.ZodBigInt:return yH(e);case J.ZodBoolean:return xH();case J.ZodDate:return JL(e,r);case J.ZodUndefined:return GH();case J.ZodNull:return MH();case J.ZodArray:return vH(e,r);case J.ZodUnion:case J.ZodDiscriminatedUnion:return RH(e,r);case J.ZodIntersection:return CH(e,r);case J.ZodTuple:return qH(e,r);case J.ZodRecord:return XL(e,r);case J.ZodLiteral:return TH(e);case J.ZodEnum:return kH(e);case J.ZodNativeEnum:return AH(e);case J.ZodNullable:return zH(e,r);case J.ZodOptional:return BH(e,r);case J.ZodMap:return LH(e,r);case J.ZodSet:return ZH(e,r);case J.ZodLazy:return()=>e.getter()._def;case J.ZodPromise:return VH(e,r);case J.ZodNaN:case J.ZodNever:return EH();case J.ZodEffects:return IH(e,r);case J.ZodAny:return Br();case J.ZodUnknown:return HH();case J.ZodDefault:return SH(e,r);case J.ZodBranded:return WL(e,r);case J.ZodReadonly:return WH(e,r);case J.ZodCatch:return bH(e,r);case J.ZodPipeline:return jH(e,r);case J.ZodFunction:case J.ZodVoid:case J.ZodSymbol:return;default:return(a=>{})(t)}},KH=(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 Ke(e,t,r=!1){var a;let n=t.seen.get(e);if(t.override){let l=(a=t.override)==null?void 0:a.call(t,e,t,n,r);if(l!==hH)return l}if(n&&!r){let l=XH(n,t);if(l!==void 0)return l}let o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);let i=JH(e,e.typeName,t),s=typeof i=="function"?Ke(i(),t):i;if(s&&YH(e,t,s),t.postProcess){let l=t.postProcess(s,e,t);return o.jsonSchema=s,l}return o.jsonSchema=s,s}var XH=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:KH(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,a)=>t.currentPath[a]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),Br()):t.$refStrategy==="seen"?Br():void 0}},YH=(e,t,r)=>(e.description&&(r.description=e.description),r),QH=e=>{let t=gH(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(([a,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,a],jsonSchema:void 0}]))}},eW=(e,t)=>{var r;let a=QH(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[c,d])=>{var f;return{...u,[c]:(f=Ke(d._def,{...a,currentPath:[...a.basePath,a.definitionPath,c]},!0))!=null?f:Br()}},{}):void 0,o=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(r=Ke(e._def,o===void 0?a:{...a,currentPath:[...a.basePath,a.definitionPath,o]}
63,!1))!=null?r:Br(),s=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;s!==void 0&&(i.title=s);let l=o===void 0?n?{...i,[a.definitionPath]:n}:i:{$ref:[...a.$refStrategy==="relative"?[]:a.basePath,a.definitionPath,o].join("/"),[a.definitionPath]:{...n,[o]:i}};return l.$schema="http://json-schema.org/draft-07/schema#",l},f4=Symbol.for("vercel.ai.schema");function yh(e){let t;return()=>(t==null&&(t=e()),t)}function xh(e,{validate:t}={}){return{[f4]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function tW(e){return typeof e=="object"&&e!==null&&f4 in e&&e[f4]===!0&&"jsonSchema"in e&&"validate"in e}function bh(e){return e==null?xh({properties:{},additionalProperties:!1}):tW(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?Gc(e):rW(e):e()}function rW(e){return xh(()=>m4(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 Nn({value:t,cause:r.issues})}}})}function nW(e,t){var r;let a=(r=t?.useReferences)!=null?r:!1;return xh(()=>eW(e,{$refStrategy:a?"root":"none"}),{validate:async n=>{let o=await e.safeParseAsync(n);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function aW(e,t){var r;let a=(r=t?.useReferences)!=null?r:!1;return xh(()=>m4(Jm(e,{target:"draft-7",io:"input",reused:a?"ref":"inline"})),{validate:async n=>{let o=await Xm(e,n);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function oW(e){return"_zod"in e}function Gc(e,t){return oW(e)?aW(e,t):nW(e,t)}async function wh({value:e,schema:t,context:r}){let a=await rl({value:e,schema:t,context:r});if(!a.success)throw Nn.wrap({value:e,cause:a.error,context:r});return a.value}async function rl({value:e,schema:t,context:r}){let a=bh(t);try{if(a.validate==null)return{success:!0,value:e,rawValue:e};let n=await a.validate(e);return n.success?{success:!0,value:n.value,rawValue:e}:{success:!1,error:Nn.wrap({value:e,cause:n.error,context:r}),rawValue:e}}catch(n){return{success:!1,error:Nn.wrap({value:e,cause:n,context:r}),rawValue:e}}}async function _a({text:e,schema:t}){try{let r=mH(e);return t==null?{success:!0,value:r,rawValue:r}:await rl({value:r,schema:t})}catch(r){return{success:!1,error:vx.isInstance(r)?r:new vx({text:e,cause:r}),rawValue:void 0}}}function YL({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new hh).pipeThrough(new TransformStream({async transform({data:r},a){r!=="[DONE]"&&a.enqueue(await _a({text:r,schema:t}))}}))}async function Bn(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var B5e=new TextDecoder;var v={};vr(v,{$brand:()=>Sh,$input:()=>R2,$output:()=>M2,NEVER:()=>h4,TimePrecision:()=>O2,ZodAny:()=>TI,ZodArray:()=>AI,ZodBase64:()=>J0,ZodBase64URL:()=>K0,ZodBigInt:()=>El,ZodBigIntFormat:()=>Q0,ZodBoolean:()=>Al,ZodCIDRv4:()=>H0,ZodCIDRv6:()=>W0,ZodCUID:()=>U0,ZodCUID2:()=>B0,ZodCatch:()=>QI,ZodCodec:()=>sg,ZodCustom:()=>kd,ZodCustomStringFormat:()=>Pl,ZodDate:()=>xd,ZodDefault:()=>HI,ZodDiscriminatedUnion:()=>MI,ZodE164:()=>X0,ZodEmail:()=>N0,ZodEmoji:()=>O0,ZodEnum:()=>Tl,ZodError:()=>MK,ZodExactOptional:()=>ZI,ZodFile:()=>jI,ZodFirstPartyTypeKind:()=>dk,ZodFunction:()=>lk,ZodGUID:()=>md,ZodIPv4:()=>q0,ZodIPv6:()=>G0,ZodISODate:()=>A0,ZodISODateTime:()=>L0,ZodISODuration:()=>M0,ZodISOTime:()=>E0,ZodIntersection:()=>RI,ZodIssueCode:()=>DK,ZodJWT:()=>Y0,ZodKSUID:()=>Z0,ZodLazy:()=>ok,ZodLiteral:()=>BI,ZodMAC:()=>bI,ZodMap:()=>FI,ZodNaN:()=>tk,ZodNanoID:()=>F0,ZodNever:()=>PI,ZodNonOptional:()=>og,ZodNull:()=>_I,ZodNullable:()=>GI,ZodNumber:()=>Ll,ZodNumberFormat:()=>Mi,ZodObject:()=>wd,ZodOptional:()=>ag,ZodPipe:()=>ig,ZodPrefault:()=>JI,ZodPromise:()=>sk,ZodReadonly:()=>rk,ZodRealError:()=>_r,ZodRecord:()=>Id,ZodSet:()=>UI,ZodString:()=>$l,ZodStringFormat:()=>et,ZodSuccess:()=>YI,ZodSymbol:()=>II,ZodTemplateLiteral:()=>ak,ZodTransform:()=>VI,ZodTuple:()=>zI,ZodType:()=>$e,ZodULID:()=>j0,ZodURL:()=>yd,ZodUUID:()=>qn,ZodUndefined:()=>kI,ZodUnion:()=>Sd,ZodUnknown:()=>$I,ZodVoid:()=>LI,ZodXID:()=>V0,ZodXor:()=>EI,_ZodString:()=>z0,_default:()=>WI,_function:()=>AM,any:()=>uM,array:()=>bd,base64:()=>GE,base64url:()=>HE,bigint:()=>aM,boolean:()=>SI,catch:()=>ek,check:()=>EM,cidrv4:()=>ZE,cidrv6:()=>qE,clone:()=>lr,codec:()=>$M,coerce:()=>fk,config:()=>kt,core:()=>$a,cuid:()=>zE,cuid2:()=>NE,custom:()=>MM,date:()=>dM,decode:()=>pI,decodeAsync:()=>hI,describe:()=>RM,discriminatedUnion:()=>vM,e164:()=>WE,email:()=>CE,emoji:()=>RE,encode:()=>fI,encodeAsync:()=>mI,endsWith:()=>vl,enum:()=>rg,exactOptional:()=>qI,file:()=>kM,flattenError:()=>td,float32:()=>eM,float64:()=>tM,formatError:()=>rd,fromJSONSchema:()=>BM,function:()=>AM,getErrorMap:()=>NK,globalRegistry:()=>Gt,gt:()=>Vn,gte:()=>ur,guid:()=>TE,hash:()=>QE,hex:()=>YE,hostname:()=>XE,httpUrl:()=>ME,includes:()=>hl,instanceof:()=>zM,int:()=>D0,int32:()=>rM,int64:()=>oM,intersection:()=>DI,ipv4:()=>BE,ipv6:()=>VE,iso:()=>Cl,json:()=>OM,jwt:()=>JE,keyof:()=>fM,ksuid:()=>UE,lazy:()=>ik,length:()=>Ai,literal:()=>IM,locales:()=>cd,looseObject:()=>hM,looseRecord:()=>xM,lowercase:()=>pl,lt:()=>jn,lte:()=>Vr,mac:()=>jE,map:()=>bM,maxLength:()=>Li,maxSize:()=>Mo,meta:()=>DM,mime:()=>yl,minLength:()=>Ta,minSize:()=>Zn,multipleOf:()=>Eo,nan:()=>TM,nanoid:()=>DE,nativeEnum:()=>SM,negative:()=>b0,never:()=>eg,nonnegative:()=>S0,nonoptional:()=>XI,nonpositive:()=>w0,normalize:()=>xl,null:()=>CI,nullable:()=>gd,nullish:()=>_M,number:()=>wI,object:()=>pM,optional:()=>
63hd,overwrite:()=>_n,parse:()=>lI,parseAsync:()=>uI,partialRecord:()=>yM,pipe:()=>vd,positive:()=>x0,prefault:()=>KI,preprocess:()=>FM,prettifyError:()=>T4,promise:()=>LM,property:()=>I0,readonly:()=>nk,record:()=>OI,refine:()=>uk,regex:()=>fl,regexes:()=>sn,registry:()=>Yh,safeDecode:()=>vI,safeDecodeAsync:()=>xI,safeEncode:()=>gI,safeEncodeAsync:()=>yI,safeParse:()=>cI,safeParseAsync:()=>dI,set:()=>wM,setErrorMap:()=>zK,size:()=>Pi,slugify:()=>Il,startsWith:()=>gl,strictObject:()=>mM,string:()=>R0,stringFormat:()=>KE,stringbool:()=>NM,success:()=>CM,superRefine:()=>ck,symbol:()=>sM,templateLiteral:()=>PM,toJSONSchema:()=>T0,toLowerCase:()=>wl,toUpperCase:()=>Sl,transform:()=>ng,treeifyError:()=>C4,trim:()=>bl,tuple:()=>NI,uint32:()=>nM,uint64:()=>iM,ulid:()=>OE,undefined:()=>lM,union:()=>tg,unknown:()=>Ei,uppercase:()=>ml,url:()=>EE,util:()=>G,uuid:()=>$E,uuidv4:()=>PE,uuidv6:()=>LE,uuidv7:()=>AE,void:()=>cM,xid:()=>FE,xor:()=>gM});var $a={};vr($a,{$ZodAny:()=>t2,$ZodArray:()=>i2,$ZodAsyncError:()=>kn,$ZodBase64:()=>qw,$ZodBase64URL:()=>Gw,$ZodBigInt:()=>qh,$ZodBigIntFormat:()=>Xw,$ZodBoolean:()=>id,$ZodCIDRv4:()=>jw,$ZodCIDRv6:()=>Vw,$ZodCUID:()=>Lw,$ZodCUID2:()=>Aw,$ZodCatch:()=>k2,$ZodCheck:()=>at,$ZodCheckBigIntFormat:()=>iw,$ZodCheckEndsWith:()=>yw,$ZodCheckGreaterThan:()=>Oh,$ZodCheckIncludes:()=>gw,$ZodCheckLengthEquals:()=>fw,$ZodCheckLessThan:()=>Nh,$ZodCheckLowerCase:()=>mw,$ZodCheckMaxLength:()=>cw,$ZodCheckMaxSize:()=>sw,$ZodCheckMimeType:()=>bw,$ZodCheckMinLength:()=>dw,$ZodCheckMinSize:()=>lw,$ZodCheckMultipleOf:()=>aw,$ZodCheckNumberFormat:()=>ow,$ZodCheckOverwrite:()=>ww,$ZodCheckProperty:()=>xw,$ZodCheckRegex:()=>pw,$ZodCheckSizeEquals:()=>uw,$ZodCheckStartsWith:()=>vw,$ZodCheckStringFormat:()=>cl,$ZodCheckUpperCase:()=>hw,$ZodCodec:()=>ld,$ZodCustom:()=>E2,$ZodCustomStringFormat:()=>Jw,$ZodDate:()=>o2,$ZodDefault:()=>b2,$ZodDiscriminatedUnion:()=>u2,$ZodE164:()=>Hw,$ZodEmail:()=>Cw,$ZodEmoji:()=>$w,$ZodEncodeError:()=>To,$ZodEnum:()=>m2,$ZodError:()=>ed,$ZodExactOptional:()=>y2,$ZodFile:()=>g2,$ZodFunction:()=>P2,$ZodGUID:()=>kw,$ZodIPv4:()=>Fw,$ZodIPv6:()=>Uw,$ZodISODate:()=>zw,$ZodISODateTime:()=>Dw,$ZodISODuration:()=>Ow,$ZodISOTime:()=>Nw,$ZodIntersection:()=>c2,$ZodJWT:()=>Ww,$ZodKSUID:()=>Rw,$ZodLazy:()=>A2,$ZodLiteral:()=>h2,$ZodMAC:()=>Bw,$ZodMap:()=>f2,$ZodNaN:()=>_2,$ZodNanoID:()=>Pw,$ZodNever:()=>n2,$ZodNonOptional:()=>S2,$ZodNull:()=>e2,$ZodNullable:()=>x2,$ZodNumber:()=>Zh,$ZodNumberFormat:()=>Kw,$ZodObject:()=>_A,$ZodObjectJIT:()=>s2,$ZodOptional:()=>Hh,$ZodPipe:()=>C2,$ZodPrefault:()=>w2,$ZodPromise:()=>L2,$ZodReadonly:()=>T2,$ZodRealError:()=>kr,$ZodRecord:()=>d2,$ZodRegistry:()=>Xh,$ZodSet:()=>p2,$ZodString:()=>$i,$ZodStringFormat:()=>Qe,$ZodSuccess:()=>I2,$ZodSymbol:()=>Yw,$ZodTemplateLiteral:()=>$2,$ZodTransform:()=>v2,$ZodTuple:()=>Gh,$ZodType:()=>we,$ZodULID:()=>Ew,$ZodURL:()=>Tw,$ZodUUID:()=>_w,$ZodUndefined:()=>Qw,$ZodUnion:()=>sd,$ZodUnknown:()=>r2,$ZodVoid:()=>a2,$ZodXID:()=>Mw,$ZodXor:()=>l2,$brand:()=>Sh,$constructor:()=>E,$input:()=>R2,$output:()=>M2,Doc:()=>od,JSONSchema:()=>kE,JSONSchemaGenerator:()=>$0,NEVER:()=>h4,TimePrecision:()=>O2,_any:()=>oS,_array:()=>fS,_base64:()=>h0,_base64url:()=>g0,_bigint:()=>Y2,_boolean:()=>K2,_catch:()=>_K,_check:()=>IE,_cidrv4:()=>p0,_cidrv6:()=>m0,_coercedBigint:()=>Q2,_coercedBoolean:()=>X2,_coercedDate:()=>cS,_coercedNumber:()=>Z2,_coercedString:()=>z2,_cuid:()=>i0,_cuid2:()=>s0,_custom:()=>mS,_date:()=>uS,_decode:()=>$h,_decodeAsync:()=>Lh,_default:()=>SK,_discriminatedUnion:()=>cK,_e164:()=>v0,_email:()=>Qh,_emoji:()=>a0,_encode:()=>Th,_encodeAsync:()=>Ph,_endsWith:()=>vl,_enum:()=>gK,_file:()=>pS,_float32:()=>G2,_float64:()=>H2,_gt:()=>Vn,_gte:()=>ur,_guid:()=>dd,_includes:()=>hl,_int:()=>q2,_int32:()=>W2,_int64:()=>eS,_intersection:()=>dK,_ipv4:()=>d0,_ipv6:()=>f0,_isoDate:()=>U2,_isoDateTime:()=>F2,_isoDuration:()=>j2,_isoTime:()=>B2,_jwt:()=>y0,_ksuid:()=>c0,_lazy:()=>PK,_length:()=>Ai,_literal:()=>yK,_lowercase:()=>pl,_lt:()=>jn,_lte:()=>Vr,_mac:()=>N2,_map:()=>mK,_max:()=>Vr,_maxLength:()=>Li,_maxSize:()=>Mo,_mime:()=>yl,_min:()=>ur,_minLength:()=>Ta,_minSize:()=>Zn,_multipleOf:()=>Eo,_nan:()=>dS,_nanoid:()=>o0,_nativeEnum:()=>vK,_negative:()=>b0,_never:()=>sS,_nonnegative:()=>S0,_nonoptional:()=>IK,_nonpositive:()=>w0,_normalize:()=>xl,_null:()=>aS,_nullable:()=>wK,_number:()=>V2,_optional:()=>bK,_overwrite:()=>_n,_parse:()=>il,_parseAsync:()=>
vendor: 9,658 bytes, line 63
63sl,_pipe:()=>CK,_positive:()=>x0,_promise:()=>LK,_property:()=>I0,_readonly:()=>TK,_record:()=>pK,_refine:()=>hS,_regex:()=>fl,_safeDecode:()=>Eh,_safeDecodeAsync:()=>Rh,_safeEncode:()=>Ah,_safeEncodeAsync:()=>Mh,_safeParse:()=>ll,_safeParseAsync:()=>ul,_set:()=>hK,_size:()=>Pi,_slugify:()=>Il,_startsWith:()=>gl,_string:()=>D2,_stringFormat:()=>kl,_stringbool:()=>xS,_success:()=>kK,_superRefine:()=>gS,_symbol:()=>rS,_templateLiteral:()=>$K,_toLowerCase:()=>wl,_toUpperCase:()=>Sl,_transform:()=>xK,_trim:()=>bl,_tuple:()=>fK,_uint32:()=>J2,_uint64:()=>tS,_ulid:()=>l0,_undefined:()=>nS,_union:()=>lK,_unknown:()=>iS,_uppercase:()=>ml,_url:()=>fd,_uuid:()=>e0,_uuidv4:()=>t0,_uuidv6:()=>r0,_uuidv7:()=>n0,_void:()=>lS,_xid:()=>u0,_xor:()=>uK,clone:()=>lr,config:()=>kt,createStandardJSONSchemaMethod:()=>_l,createToJSONSchemaMethod:()=>bS,decode:()=>MW,decodeAsync:()=>DW,describe:()=>vS,encode:()=>EW,encodeAsync:()=>RW,extractDefs:()=>Do,finalize:()=>zo,flattenError:()=>td,formatError:()=>rd,globalConfig:()=>Hc,globalRegistry:()=>Gt,initializeContext:()=>Ro,isValidBase64:()=>Zw,isValidBase64URL:()=>wA,isValidJWT:()=>SA,locales:()=>cd,meta:()=>yS,parse:()=>_h,parseAsync:()=>Ch,prettifyError:()=>T4,process:()=>We,regexes:()=>sn,registry:()=>Yh,safeDecode:()=>NW,safeDecodeAsync:()=>FW,safeEncode:()=>zW,safeEncodeAsync:()=>OW,safeParse:()=>$4,safeParseAsync:()=>P4,toDotPath:()=>nA,toJSONSchema:()=>T0,treeifyError:()=>C4,util:()=>G,version:()=>Sw});var h4=Object.freeze({status:"aborted"});function E(e,t,r){function a(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let u=i.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){let f=c[d];f in s||(s[f]=u[f].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function i(s){var l;let u=r?.Parent?new o:this;a(u,s),(l=u._zod).deferred??(l.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:a}),Object.defineProperty(i,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var Sh=Symbol("zod_brand"),kn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},To=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Hc={};function kt(e){return e&&Object.assign(Hc,e),Hc}var G={};vr(G,{BIGINT_FORMAT_RANGES:()=>_4,Class:()=>v4,NUMBER_FORMAT_RANGES:()=>k4,aborted:()=>Ao,allowsEval:()=>b4,assert:()=>cW,assertEqual:()=>iW,assertIs:()=>lW,assertNever:()=>uW,assertNotEqual:()=>sW,assignProp:()=>Po,base64ToUint8Array:()=>eA,base64urlToUint8Array:()=>TW,cached:()=>al,captureStackTrace:()=>kh,cleanEnum:()=>CW,cleanRegex:()=>Kc,clone:()=>lr,cloneDef:()=>fW,createTransparentProxy:()=>yW,defineLazy:()=>De,esc:()=>Ih,escapeRegex:()=>on,extend:()=>wW,finalizeIssue:()=>Ir,floatSafeRemainder:()=>y4,getElementAtPath:()=>pW,getEnumValues:()=>Jc,getLengthableOrigin:()=>Qc,getParsedType:()=>vW,getSizableOrigin:()=>Yc,hexToUint8Array:()=>PW,isObject:()=>Ci,isPlainObject:()=>Lo,issue:()=>ol,joinValues:()=>z,jsonStringifyReplacer:()=>nl,merge:()=>IW,mergeDefs:()=>Ca,normalizeParams:()=>X,nullish:()=>$o,numKeys:()=>gW,objectClone:()=>dW,omit:()=>bW,optionalKeys:()=>I4,parsedType:()=>Z,partial:()=>kW,pick:()=>xW,prefixIssues:()=>jr,primitiveTypes:()=>S4,promiseAllObject:()=>mW,propertyKeyTypes:()=>Xc,randomString:()=>hW,required:()=>_W,safeExtend:()=>SW,shallowClone:()=>w4,slugify:()=>x4,stringifyPrimitive:()=>B,uint8ArrayToBase64:()=>tA,uint8ArrayToBase64url:()=>$W,uint8ArrayToHex:()=>LW,unwrapMessage:()=>Wc});function iW(e){return e}function sW(e){return e}function lW(e){}function uW(e){throw new Error("Unexpected value in exhaustive check")}function cW(e){}function Jc(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,n])=>t.indexOf(+a)===-1).map(([a,n])=>n)}function z(e,t="|"){return e.map(r=>B(r)).join(t)}function nl(e,t){return typeof t=="bigint"?t.toString():t}function al(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function $o(e){return e==null}function Kc(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function y4(e,t){let r=(e.toString().split(".")[1]||"").length,a=t.toString(),n=(a.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(a)){let l=a.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var QL=Symbol("evaluating");function De(e,t,r){let a;Object.defineProperty(e,t,{get(){if(a!==QL)return a===void 0&&(a=QL,a=r()),a},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function dW(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Po(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ca(...e){let t={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function fW(e){return Ca(e._zod.def)}function pW(e,t){return t?t.reduce((r,a)=>r?.[a],e):e}function mW(e){let t=Object.keys(e),r=t.map(a=>e[a]);return Promise.all(r).then(a=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=a[o];return n})}function hW(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let a=0;a<e;a++)r+=t[Math.floor(Math.random()*t.length)];return r}function Ih(e){return JSON.stringify(e)}function x4(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var kh="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ci(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var b4=al(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Lo(e){if(Ci(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Ci(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function w4(e){return Lo(e)?{...e}:Array.isArray(e)?[...e]:e}function gW(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var vW=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}`)}},Xc=new Set(["string","number","symbol"]),S4=new Set(["string","number","bigint","boolean","symbol","undefined"]);function on(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function lr(e,t,r){let a=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(a._zod.parent=e),a}function X(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 yW(e){let t;return new Proxy({},{get(r,a,n){return t??(t=e()),Reflect.get(t,a,n)},set(r,a,n,o){return t??(t=e()),Reflect.set(t,a,n,o)},has(r,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(r,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(r,a,n){return t??(t=e()),Reflect.defineProperty(t,a,n)}})}function B(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function I4(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var k4={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]},_4={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function xW(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Ca(e._zod.def,{get shape(){let i={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(i[s]=r.shape[s])}return Po(this,"shape",i),i},checks:[]});return lr(e,o)}function bW(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Ca(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete i[s]}return Po(this,"shape",i),i},checks:[]});return lr(e,o)}function wW(e,t){if(!Lo(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot over
63write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Ca(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Po(this,"shape",o),o}});return lr(e,n)}function SW(e,t){if(!Lo(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Ca(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return Po(this,"shape",a),a}});return lr(e,r)}function IW(e,t){let r=Ca(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return Po(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return lr(e,r)}function kW(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 i=Ca(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)l[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return Po(this,"shape",l),l},checks:[]});return lr(t,i)}function _W(e,t,r){let a=Ca(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=new e({type:"nonoptional",innerType:n[i]}))}else for(let i in n)o[i]=new e({type:"nonoptional",innerType:n[i]});return Po(this,"shape",o),o}});return lr(t,a)}function Ao(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 jr(e,t){return t.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function Wc(e){return typeof e=="string"?e:e?.message}function Ir(e,t,r){let a={...e,path:e.path??[]};if(!e.message){let n=Wc(e.inst?._zod.def?.error?.(e))??Wc(t?.error?.(e))??Wc(r.customError?.(e))??Wc(r.localeError?.(e))??"Invalid input";a.message=n}return delete a.inst,delete a.continue,t?.reportInput||delete a.input,a}function Yc(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Qc(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Z(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 ol(...e){let[t,r,a]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:a}:{...t}}function CW(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function eA(e){let t=atob(e),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a);return r}function tA(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function TW(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return eA(t+r)}function $W(e){return tA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function PW(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 a=0;a<t.length;a+=2)r[a/2]=Number.parseInt(t.slice(a,a+2),16);return r}function LW(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var v4=class{constructor(...t){}};var rA=(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,nl,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ed=E("$ZodError",rA),kr=E("$ZodError",rA,{Parent:Error});function td(e,t=r=>r.message){let r={},a=[];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))):a.push(t(n));return{formErrors:a,fieldErrors:r}}function rd(e,t=r=>r.message){let r={_errors:[]},a=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>a({issues:i}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let i=r,s=0;for(;s<o.path.length;){let l=o.path[s];s===o.path.length-1?(i[l]=i[l]||{_errors:[]},i[l]._errors.push(t(o))):i[l]=i[l]||{_errors:[]},i=i[l],s++}}};return a(e),r}function C4(e,t=r=>r.message){let r={errors:[]},a=(n,o=[])=>{var i,s;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>a({issues:u},l.path));else if(l.code==="invalid_key")a({issues:l.issues},l.path);else if(l.code==="invalid_element")a({issues:l.issues},l.path);else{let u=[...o,...l.path];if(u.length===0){r.errors.push(t(l));continue}let c=r,d=0;for(;d<u.length;){let f=u[d],p=d===u.length-1;typeof f=="string"?(c.properties??(c.properties={}),(i=c.properties)[f]??(i[f]={errors:[]}),c=c.properties[f]):(c.items??(c.items=[]),(s=c.items)[f]??(s[f]={errors:[]}),c=c.items[f]),p&&c.errors.push(t(l)),d++}}};return a(e),r}function nA(e){let t=[],r=e.map(a=>typeof a=="object"?a.key:a);
vendor: 67,250 bytes, lines 63-100
63for(let a of r)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function T4(e){let t=[],r=[...e.issues].sort((a,n)=>(a.path??[]).length-(n.path??[]).length);for(let a of r)t.push(`\u2716 ${a.message}`),a.path?.length&&t.push(` \u2192 at ${nA(a.path)}`);return t.join(` 64`)}var il=e=>(t,r,a,n)=>{let o=a?Object.assign(a,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new kn;if(i.issues.length){let s=new(n?.Err??e)(i.issues.map(l=>Ir(l,o,kt())));throw kh(s,n?.callee),s}return i.value},_h=il(kr),sl=e=>async(t,r,a,n)=>{let o=a?Object.assign(a,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){let s=new(n?.Err??e)(i.issues.map(l=>Ir(l,o,kt())));throw kh(s,n?.callee),s}return i.value},Ch=sl(kr),ll=e=>(t,r,a)=>{let n=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new kn;return o.issues.length?{success:!1,error:new(e??ed)(o.issues.map(i=>Ir(i,n,kt())))}:{success:!0,data:o.value}},$4=ll(kr),ul=e=>async(t,r,a)=>{let n=a?Object.assign(a,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>Ir(i,n,kt())))}:{success:!0,data:o.value}},P4=ul(kr),Th=e=>(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return il(e)(t,r,n)},EW=Th(kr),$h=e=>(t,r,a)=>il(e)(t,r,a),MW=$h(kr),Ph=e=>async(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return sl(e)(t,r,n)},RW=Ph(kr),Lh=e=>async(t,r,a)=>sl(e)(t,r,a),DW=Lh(kr),Ah=e=>(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return ll(e)(t,r,n)},zW=Ah(kr),Eh=e=>(t,r,a)=>ll(e)(t,r,a),NW=Eh(kr),Mh=e=>async(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return ul(e)(t,r,n)},OW=Mh(kr),Rh=e=>async(t,r,a)=>ul(e)(t,r,a),FW=Rh(kr);var sn={};vr(sn,{base64:()=>q4,base64url:()=>Dh,bigint:()=>X4,boolean:()=>Q4,browserEmail:()=>HW,cidrv4:()=>V4,cidrv6:()=>Z4,cuid:()=>L4,cuid2:()=>A4,date:()=>H4,datetime:()=>J4,domain:()=>KW,duration:()=>z4,e164:()=>G4,email:()=>O4,emoji:()=>F4,extendedDuration:()=>UW,guid:()=>N4,hex:()=>XW,hostname:()=>JW,html5Email:()=>ZW,idnEmail:()=>GW,integer:()=>Y4,ipv4:()=>U4,ipv6:()=>B4,ksuid:()=>R4,lowercase:()=>rw,mac:()=>j4,md5_base64:()=>QW,md5_base64url:()=>eJ,md5_hex:()=>YW,nanoid:()=>D4,null:()=>ew,number:()=>zh,rfc5322Email:()=>qW,sha1_base64:()=>rJ,sha1_base64url:()=>nJ,sha1_hex:()=>tJ,sha256_base64:()=>oJ,sha256_base64url:()=>iJ,sha256_hex:()=>aJ,sha384_base64:()=>lJ,sha384_base64url:()=>uJ,sha384_hex:()=>sJ,sha512_base64:()=>dJ,sha512_base64url:()=>fJ,sha512_hex:()=>cJ,string:()=>K4,time:()=>W4,ulid:()=>E4,undefined:()=>tw,unicodeEmail:()=>aA,uppercase:()=>nw,uuid:()=>Ti,uuid4:()=>BW,uuid6:()=>jW,uuid7:()=>VW,xid:()=>M4});var L4=/^[cC][^\s-]{8,}$/,A4=/^[0-9a-z]+$/,E4=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,M4=/^[0-9a-vA-V]{20}$/,R4=/^[A-Za-z0-9]{27}$/,D4=/^[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)?)?)$/,UW=/^[-+]?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})$/,Ti=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)$/,BW=Ti(4),jW=Ti(6),VW=Ti(7),O4=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,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])?)*$/,qW=/^(([^<>()\[\]\\.,;:\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,}))$/,aA=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,GW=aA,HW=/^[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])?)*$/,WW="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function F4(){return new RegExp(WW,"u")}var 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])$/,B4=/^(([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=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}$`)},V4=/^((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])$/,Z4=/^(([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])$/,q4=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Dh=/^[A-Za-z0-9_-]*$/,JW=/^(?=.{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])?)*\.?$/,KW=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,G4=/^\+[1-9]\d{6,14}$/,oA="(?:(?:\\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])))",H4=new RegExp(`^${oA}$`);function iA(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 W4(e){return new RegExp(`^${iA(e)}$`)}function J4(e){let t=iA({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${t}(?:${r.join("|")})`;return new RegExp(`^${oA}T(?:${a})$`)}var K4=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},X4=/^-?\d+n?$/,Y4=/^-?\d+$/,zh=/^-?\d+(?:\.\d+)?$/,Q4=/^(?:true|false)$/i,ew=/^null$/i;var tw=/^undefined$/i;var rw=/^[^A-Z]*$/,nw=/^[^a-z]*$/,XW=/^[0-9a-fA-F]*$/;function nd(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ad(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var YW=/^[0-9a-fA-F]{32}$/,QW=nd(22,"=="),eJ=ad(22),tJ=/^[0-9a-fA-F]{40}$/,rJ=nd(27,"="),nJ=ad(27),aJ=/^[0-9a-fA-F]{64}$/,oJ=nd(43,"="),iJ=ad(43),sJ=/^[0-9a-fA-F]{96}$/,lJ=nd(64,""),uJ=ad(64),cJ=/^[0-9a-fA-F]{128}$/,dJ=nd(86,"=="),fJ=ad(86);var at=E("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),lA={number:"number",bigint:"bigint",object:"date"},Nh=E("$ZodCheckLessThan",(e,t)=>{at.init(e,t);let r=lA[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Oh=E("$ZodCheckGreaterThan",(e,t)=>{at.init(e,t);let r=lA[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),aw=E("$ZodCheckMultipleOf",(e,t)=>{at.init(e,t),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.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):y4(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})}}),ow=E("$ZodCheckNumberFormat",(e,t)=>{at.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),a=r?"int":"number",[n,o]=k4[t.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=Y4)}),e._zod.check=i=>{let s=i.value;if(r){if(!Number.isInteger(s)){i.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}s<n&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),iw=E("$ZodCheckBigIntFormat",(e,t)=>{at.init(e,t);let[r,a]=_4[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=a}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>a&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),sw=E("$ZodCheckMaxSize",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!$o(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;n.size<=t.maximum||a.issues.push({origin:Yc(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),lw=E("$ZodCheckMinSize",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!$o(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;n.size>=t.minimum||a.issues.push({origin:Yc(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),uw=E("$ZodCheckSizeEquals",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!$o(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=a=>{let n=a.value,o=n.size;if(o===t.size)return;let i=o>t.size;a.issues.push({origin:Yc(n),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),cw=E("$ZodCheckMaxLength",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!$o(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;if(n.length<=t.maximum)return;let i=Qc(n);a.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),dw=E("$ZodCheckMinLength",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!$o(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;if(n.length>=t.minimum)return;let i=Qc(n);a.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),fw=E("$ZodCheckLengthEquals",(e,t)=>{var r;at.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!$o(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=a=>{let n=a.value,o=n.length;if(o===t.length)return;let i=Qc(n),s=o>t.length;a.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),cl=E("$ZodCheckStringFormat",(e,t)=>{var r,a;at.init(e,t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.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})}):(a=e._zod).check??(a.check=()=>{})}),pw=E("$ZodCheckRegex",(e,t)=>{cl.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})}}),mw=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=rw),cl.init(e,t)}),hw=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=nw),cl.init(e,t)}),gw=E("$ZodCheckIncludes",(e,t)=>{at.init(e,t);let r=on(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=a,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),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})}}),vw=E("$ZodCheckStartsWith",(e,t)=>{at.init(e,t);let r=new RegExp(`^${on(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),yw=E("$ZodCheckEndsWith",(e,t)=>{at.init(e,t);let r=new RegExp(`.*${on(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function sA(e,t,r){e.issues.length&&t.issues.push(...jr(r,e.issues))}var xw=E("$ZodCheckProperty",(e,t)=>{at.init(e,t),e._zod.check=r=>{let a=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(n=>sA(n,r,t.property));sA(a,r,t.property)}}),bw=E("$ZodCheckMimeType",(e,t)=>{at.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=t.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),ww=E("$ZodCheckOverwrite",(e,t)=>{at.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var od=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 a=t.split(` 65`).filter(i=>i),n=Math.min(...a.map(i=>i.length-i.trimStart().length)),o=a.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(` 66`))}};var Sw={major:4,minor:3,patch:6};var we=E("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Sw;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let n of a)for(let o of n._zod.onattach)o(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(i,s,l)=>{let u=Ao(i),c;for(let d of s){if(d._zod.def.when){if(!d._zod.def.when(i))continue}else if(u)continue;let f=i.issues.length,p=d._zod.check(i);if(p instanceof Promise&&l?.async===!1)throw new kn;if(c||p instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await p,i.issues.length!==f&&(u||(u=Ao(i,f)))});else{if(i.issues.length===f)continue;u||(u=Ao(i,f))}}return c?c.then(()=>i):i},o=(i,s,l)=>{if(Ao(i))return i.aborted=!0,i;let u=n(s,a,l);if(u instanceof Promise){if(l.async===!1)throw new kn;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){let u=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(c=>o(c,i,s)):o(u,i,s)}let l=e._zod.parse(i,s);if(l instanceof Promise){if(s.async===!1)throw new kn;return l.then(u=>n(u,a,s))}return n(l,a,s)}}De(e,"~standard",()=>({validate:n=>{try{let o=$4(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return P4(e,n).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),$i=E("$ZodString",(e,t)=>{we.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??K4(e._zod.bag),e._zod.parse=(r,a)=>{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}}),Qe=E("$ZodStringFormat",(e,t)=>{cl.init(e,t),$i.init(e,t)}),kw=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=N4),Qe.init(e,t)}),_w=E("$ZodUUID",(e,t)=>{if(t.version){let a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ti(a))}else t.pattern??(t.pattern=Ti());Qe.init(e,t)}),Cw=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=O4),Qe.init(e,t)}),Tw=E("$ZodURL",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{try{let a=r.value.trim(),n=new URL(a);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=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),$w=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=F4()),Qe.init(e,t)}),Pw=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=D4),Qe.init(e,t)}),Lw=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=L4),Qe.init(e,t)}),Aw=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=A4),Qe.init(e,t)}),Ew=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=E4),Qe.init(e,t)}),Mw=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=M4),Qe.init(e,t)}),Rw=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=R4),Qe.init(e,t)}),Dw=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=J4(t)),Qe.init(e,t)}),zw=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=H4),Qe.init(e,t)}),Nw=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=W4(t)),Qe.init(e,t)}),Ow=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=z4),Qe.init(e,t)}),Fw=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=U4),Qe.init(e,t),e._zod.bag.format="ipv4"}),Uw=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=B4),Qe.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})}}}),Bw=E("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=j4(t.delimiter)),Qe.init(e,t),e._zod.bag.format="mac"}),jw=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=V4),Qe.init(e,t)}),Vw=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Z4),Qe.init(e,t),e._zod.check=r=>{let a=r.value.split("/");try{if(a.length!==2)throw new Error;let[n,o]=a;if(!o)throw new Error;let i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>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 Zw(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var qw=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=q4),Qe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Zw(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function wA(e){if(!Dh.test(e))return!1;let t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Zw(r)}var Gw=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Dh),Qe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{wA(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Hw=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=G4),Qe.init(e,t)});function SA(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let n=JSON.parse(atob(a));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Ww=E("$ZodJWT",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{SA(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Jw=E("$ZodCustomStringFormat",(e,t)=>{Qe.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})}}),Zh=E("$ZodNumber",(e,t)=>{we.init(e,t),e._zod.pattern=e._zod.bag.pattern??zh,e._zod.parse=(r,a)=>{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 o=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,...o?{received:o}:{}}),r}}),Kw=E("$ZodNumberFormat",(e,t)=>{ow.init(e,t),Zh.init(e,t)}),id=E("$ZodBoolean",(e,t)=>{we.init(e,t),e._zod.pattern=Q4,e._zod.parse=(r,a)=>{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}}),qh=E("$ZodBigInt",(e,t)=>{we.init(e,t),e._zod.pattern=X4,e._zod.parse=(r,a)=>{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}}),Xw=E("$ZodBigIntFormat",(e,t)=>{iw.init(e,t),qh.init(e,t)}),Yw=E("$ZodSymbol",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Qw=E("$ZodUndefined",(e,t)=>{we.init(e,t),e._zod.pattern=tw,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),e2=E("$ZodNull",(e,t)=>{we.init(e,t),e._zod.pattern=ew,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),t2=E("$ZodAny",(e,t)=>{we.init(e,t),e._zod.parse=r=>r}),r2=E("$ZodUnknown",(e,t)=>{we.init(e,t),e._zod.parse=r=>r}),n2=E("$ZodNever",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),a2=E("$ZodVoid",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),o2=E("$ZodDate",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function cA(e,t,r){e.issues.length&&t.issues.push(...jr(r,e.issues)),t.value[r]=e.value}var i2=E("$ZodArray",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{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 o=[];for(let i=0;i<n.length;i++){let s=n[i],l=t.element._zod.run({value:s,issues:[]},a);l instanceof Promise?o.push(l.then(u=>cA(u,r,i))):cA(l,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function Vh(e,t,r,a,n){if(e.issues.length){if(n&&!(r in a))return;t.issues.push(...jr(r,e.issues))}e.value===void 0?r in a&&(t.value[r]=void 0):t.value[r]=e.value}function IA(e){let t=Object.keys(e.shape);for(let a of t)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);let r=I4(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function kA(e,t,r,a,n,o){let i=[],s=n.keySet,l=n.catchall._zod,u=l.def.type,c=l.optout==="optional";for(let d in t){if(s.has(d))continue;if(u==="never"){i.push(d);continue}let f=l.run({value:t[d],issues:[]},a);f instanceof Promise?e.push(f.then(p=>Vh(p,r,d,t,c))):Vh(f,r,d,t,c)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var _A=E("$ZodObject",(e,t)=>{if(we.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 a=al(()=>IA(t));De(e._zod,"propValues",()=>{let s=t.shape,l={};for(let u in s){let c=s[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let d of c.values)l[u].add(d)}}return l});let n=Ci,o=t.catchall,i;e._zod.parse=(s,l)=>{i??(i=a.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let c=[],d=i.shape;for(let f of i.keys){let p=d[f],g=p._zod.optout==="optional",w=p._zod.run({value:u[f],issues:[]},l);w instanceof Promise?c.push(w.then(y=>Vh(y,s,f,u,g))):Vh(w,s,f,u,g)}return o?kA(c,u,s,l,a.value,e):c.length?Promise.all(c).then(()=>s):s}}),s2=E("$ZodObjectJIT",(e,t)=>{_A.init(e,t);let r=e._zod.parse,a=al(()=>IA(t)),n=f=>{let p=new od(["shape","payload","ctx"]),g=a.value,w=x=>{let C=Ih(x);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};p.write("const input = payload.value;");let y=Object.create(null),I=0;for(let x of g.keys)y[x]=`key_${I++}`;p.write("const newResult = {};");for(let x of g.keys){let C=y[x],_=Ih(x),D=f[x]?._zod?.optout==="optional";p.write(`const ${C} = ${w(x)};`),D?p.write(` 67 if (${C}.issues.length) { 68 if (${_} in input) { 69 payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ 70 ...iss, 71 path: iss.path ? [${_}, ...iss.path] : [${_}] 72 }))); 73 } 74 } 75 76 if (${C}.value === undefined) { 77 if (${_} in input) { 78 newResult[${_}] = undefined; 79 } 80 } else { 81 newResult[${_}] = ${C}.value; 82 } 83 84 `):p.write(` 85 if (${C}.issues.length) { 86 payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ 87 ...iss, 88 path: iss.path ? [${_}, ...iss.path] : [${_}] 89 }))); 90 } 91 92 if (${C}.value === undefined) { 93 if (${_} in input) { 94 newResult[${_}] = undefined; 95 } 96 } else { 97 newResult[${_}] = ${C}.value; 98 } 99 100 `)}p.write("payload.value = newResult;"),p.write("return payload;");let S=p.compile();return(x,C)=>S(f,x,C)},o,i=Ci,s=!Hc.jitless,u=s&&b4.value,c=t.catchall,d;e._zod.parse=(f,p)=>{d??(d=a.value);let g=f.value;return i(g)?s&&u&&p?.async===!1&&p.jitless!==!0?(o||(o=n(t.shape)),f=o(f,p),c?kA([],g,f,p,d,e):f):r(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function dA(e,t,r,a){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!Ao(o));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(o=>o.issues.map(i=>Ir(i,a,kt())))}),t)}var sd=E("$ZodUnion",(e,t)=>{we.init(e,t),De(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),De(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),De(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),De(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Kc(o.source)).join("|")})$`)}});let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return a(n,o);let i=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},o);if(u instanceof Promise)s.push(u),i=!0;else{if(u.issues.length===0)return u;s.push(u)}}return i?Promise.all(s).then(l=>dA(l,n,e,o)):dA(s,n,e,o)}});function fA(e,t,r,a){let n=e.filter(o=>o.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(o=>o.issues.map(i=>Ir(i,a,kt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var l2=E("$ZodXor",(e,t)=>{sd.init(e,t),t.inclusive=!1;let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return a(n,o);let i=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},o);u instanceof Promise?(s.push(u),i=!0):s.push(u)}return i?Promise.all(s).then(l=>fA(l,n,e,o)):fA(s,n,e,o)}}),u2=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,sd.init(e,t);let r=e._zod.parse;De(e._zod,"propValues",()=>{let n={};for(let o of t.options){let i=o._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,l]of Object.entries(i)){n[s]||(n[s]=new Set);for(let u of l)n[s].add(u)}}return n});let a=al(()=>{let n=t.options,o=new Map;for(let i of n){let s=i._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let l of s){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,i)}}return o});e._zod.parse=(n,o)=>{let i=n.value;if(!Ci(i))return n.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),n;let s=a.value.get(i?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),n)}}),c2=E("$ZodIntersection",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},a),i=t.right._zod.run({value:n,issues:[]},a);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([l,u])=>pA(r,l,u)):pA(r,o,i)}});function Iw(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Lo(e)&&Lo(t)){let r=Object.keys(t),a=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of a){let i=Iw(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n[o]=i.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 a=0;a<e.length;a++){let n=e[a],o=t[a],i=Iw(n,o);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function pA(e,t,r){let a=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let l of s.keys)a.has(l)||a.set(l,{}),a.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)a.has(l)||a.set(l,{}),a.get(l).r=!0;else e.issues.push(s);let o=[...a].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&e.issues.push({...n,keys:o}),Ao(e))return e;let i=Iw(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var Gh=E("$ZodTuple",(e,t)=>{we.init(e,t);let r=t.items;e._zod.parse=(a,n)=>{let o=a.value;if(!Array.isArray(o))return a.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];let i=[],s=[...r].reverse().findIndex(c=>c._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let c=o.length>r.length,d=o.length<l-1;if(c||d)return a.issues.push({...c?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),a}let u=-1;for(let c of r){if(u++,u>=o.length&&u>=l)continue;let d=c._zod.run({value:o[u],issues:[]},n);d instanceof Promise?i.push(d.then(f=>Fh(f,a,u))):Fh(d,a,u)}if(t.rest){let c=o.slice(r.length);for(let d of c){u++;let f=t.rest._zod.run({value:d,issues:[]},n);f instanceof Promise?i.push(f.then(p=>Fh(p,a,u))):Fh(f,a,u)}}return i.length?Promise.all(i).then(()=>a):a}});function Fh(e,t,r){e.issues.length&&t.issues.push(...jr(r,e.issues)),t.value[r]=e.value}var d2=E("$ZodRecord",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!Lo(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],i=t.keyType._zod.values;if(i){r.value={};let s=new Set;for(let u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let c=t.valueType._zod.run({value:n[u],issues:[]},a);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&r.issues.push(...jr(u,d.issues)),r.value[u]=d.value})):(c.issues.length&&r.issues.push(...jr(u,c.issues)),r.value[u]=c.value)}let l;for(let u in n)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},a);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&zh.test(s)&&l.issues.length){let d=t.keyType._zod.run({value:Number(s),issues:[]},a);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=>Ir(d,a,kt())),input:s,path:[s],inst:e});continue}let c=t.valueType._zod.run({value:n[s],issues:[]},a);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&r.issues.push(...jr(s,d.issues)),r.value[l.value]=d.value})):(c.issues.length&&r.issues.push(...jr(s,c.issues)),r.value[l.value]=c.value)}}return o.length?Promise.all(o).then(()=>r):r}}),f2=E("$ZodMap",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[i,s]of n){let l=t.keyType._zod.run({value:i,issues:[]},a),u=t.valueType._zod.run({value:s,issues:[]},a);l instanceof Promise||u instanceof Promise?o.push(Promise.all([l,u]).then(([c,d])=>{mA(c,d,r,i,n,e,a)})):mA(l,u,r,i,n,e,a)}return o.length?Promise.all(o).then(()=>r):r}});function mA(e,t,r,a,n,o,i){e.issues.length&&(Xc.has(typeof a)?r.issues.push(...jr(a,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>Ir(s,i,kt()))})),t.issues.length&&(Xc.has(typeof a)?r.issues.push(...jr(a,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:a,issues:t.issues.map(s=>Ir(s,i,kt()))})),r.value.set(e.value,t.value)}var p2=E("$ZodSet",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let i of n){let s=t.valueType._zod.run({value:i,issues:[]},a);s instanceof Promise?o.push(s.then(l=>hA(l,r))):hA(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function hA(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var m2=E("$ZodEnum",(e,t)=>{we.init(e,t);let r=Jc(t.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(n=>Xc.has(typeof n)).map(n=>typeof n=="string"?on(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let i=n.value;return a.has(i)||n.issues.push({code:"invalid_value",values:r,input:i,inst:e}),n}}),h2=E("$ZodLiteral",(e,t)=>{if(we.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(a=>typeof a=="string"?on(a):a?on(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,n)=>{let o=a.value;return r.has(o)||a.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),a}}),g2=E("$ZodFile",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),v2=E("$ZodTransform",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new To(e.constructor.name);let n=t.transform(r.value,r);if(a.async)return(n instanceof Promise?n:Promise.resolve(n)).then(i=>(r.value=i,r));if(n instanceof Promise)throw new kn;return r.value=n,r}});function gA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Hh=E("$ZodOptional",(e,t)=>{we.init(e,t),e._zod.optin="optional",e._zod.optout="optional",De(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),De(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Kc(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>gA(o,r.value)):gA(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,a)}}),y2=E("$ZodExactOptional",(e,t)=>{Hh.init(e,t),De(e._zod,"values",()=>t.innerType._zod.values),De(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,a)=>t.innerType._zod.run(r,a)}),x2=E("$ZodNullable",(e,t)=>{we.init(e,t),De(e._zod,"optin",()=>t.innerType._zod.optin),De(e._zod,"optout",()=>t.innerType._zod.optout),De(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Kc(r.source)}|null)$`):void 0}),De(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:t.innerType._zod.run(r,a)}),b2=E("$ZodDefault",(e,t)=>{we.init(e,t),e._zod.optin="optional",De(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>vA(o,t)):vA(n,t)}});function vA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var w2=E("$ZodPrefault",(e,t)=>{we.init(e,t),e._zod.optin="optional",De(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,a))}),S2=E("$ZodNonOptional",(e,t)=>{we.init(e,t),De(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>yA(o,e)):yA(n,e)}});function yA(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 I2=E("$ZodSuccess",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new To("ZodSuccess");let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),k2=E("$ZodCatch",(e,t)=>{we.init(e,t),De(e._zod,"optin",()=>t.innerType._zod.optin),De(e._zod,"optout",()=>t.innerType._zod.optout),De(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>Ir(i,a,kt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>Ir(o,a,kt()))},input:r.value}),r.issues=[]),r)}}),_2=E("$ZodNaN",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),C2=E("$ZodPipe",(e,t)=>{we.init(e,t),De(e._zod,"values",()=>t.in._zod.values),De(e._zod,"optin",()=>t.in._zod.optin),De(e._zod,"optout",()=>t.out._zod.optout),De(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){let o=t.out._zod.run(r,a);return o instanceof Promise?o.then(i=>Uh(i,t.in,a)):Uh(o,t.in,a)}let n=t.in._zod.run(r,a);return n instanceof Promise?n.then(o=>Uh(o,t.out,a)):Uh(n,t.out,a)}});function Uh(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var ld=E("$ZodCodec",(e,t)=>{we.init(e,t),De(e._zod,"values",()=>t.in._zod.values),De(e._zod,"optin",()=>t.in._zod.optin),De(e._zod,"optout",()=>t.out._zod.optout),De(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if((a.direction||"forward")==="forward"){let o=t.in._zod.run(r,a);return o instanceof Promise?o.then(i=>Bh(i,t,a)):Bh(o,t,a)}else{let o=t.out._zod.run(r,a);return o instanceof Promise?o.then(i=>Bh(i,t,a)):Bh(o,t,a)}}});function Bh(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(o=>jh(e,o,t.out,r)):jh(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>jh(e,o,t.in,r)):jh(e,n,t.in,r)}}function jh(e,t,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},a)}var T2=E("$ZodReadonly",(e,t)=>{we.init(e,t),De(e._zod,"propValues",()=>t.innerType._zod.propValues),De(e._zod,"values",()=>t.innerType._zod.values),De(e._zod,"optin",()=>t.innerType?._zod?.optin),De(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(xA):xA(n)}});function xA(e){return e.value=Object.freeze(e.value),e}var $2=E("$ZodTemplateLiteral",(e,t)=>{we.init(e,t);let r=[];for(let a of t.parts)if(typeof a=="object"&&a!==null){if(!a._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);let n=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${a._zod.traits}`);let o=n.startsWith("^")?1:0,i=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,i))}else if(a===null||S4.has(typeof a))r.push(on(`${a}`));else throw new Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(a,n)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"string",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),a)}),P2=E("$ZodFunction",(e,t)=>(we.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(...a){let n=e._def.input?_h(e._def.input,a):a,o=Reflect.apply(r,this,n);return e._def.output?_h(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...a){let n=e._def.input?await Ch(e._def.input,a):a,o=await Reflect.apply(r,this,n);return e._def.output?await Ch(e._def.output,o):o}},e._zod.parse=(r,a)=>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 a=e.constructor;return Array.isArray(r[0])?new a({type:"function",input:new Gh({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new a({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let a=e.constructor;return new a({type:"function",input:e._def.input,output:r})},e)),L2=E("$ZodPromise",(e,t)=>{we.init(e,t),e._zod.parse=(r,a)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},a))}),A2=E("$ZodLazy",(e,t)=>{we.init(e,t),De(e._zod,"innerType",()=>t.getter()),De(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),De(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),De(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),De(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,a)=>e._zod.innerType._zod.run(r,a)}),E2=E("$ZodCustom",(e,t)=>{at.init(e,t),we.init(e,t),e._zod.parse=(r,a)=>r,e._zod.check=r=>{let a=r.value,n=t.fn(a);if(n instanceof Promise)return n.then(o=>bA(o,r,a,e));bA(n,r,a,e)}});function bA(e,t,r,a){if(!e){let n={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(n.params=a._zod.def.params),t.issues.push(ol(n))}}var cd={};vr(cd,{ar:()=>CA,az:()=>TA,be:()=>PA,bg:()=>LA,ca:()=>AA,cs:()=>EA,da:()=>MA,de:()=>RA,en:()=>Wh,eo:()=>DA,es:()=>zA,fa:()=>NA,fi:()=>OA,fr:()=>FA,frCA:()=>UA,he:()=>BA,hu:()=>jA,hy:()=>ZA,id:()=>qA,is:()=>GA,it:()=>HA,ja:()=>WA,ka:()=>JA,kh:()=>KA,km:()=>Jh,ko:()=>XA,lt:()=>QA,mk:()=>eE,ms:()=>tE,nl:()=>rE,no:()=>nE,ota:()=>aE,pl:()=>iE,ps:()=>oE,pt:()=>sE,ru:()=>uE,sl:()=>cE,sv:()=>dE,ta:()=>fE,th:()=>pE,tr:()=>mE,ua:()=>hE,uk:()=>Kh,ur:()=>gE,uz:()=>vE,vi:()=>yE,yo:()=>wE,zhCN:()=>xE,zhTW:()=>bE});var mJ=()=>{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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}\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 ${B(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: ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?` \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"} ${o} ${n.maximum.toString()} ${i.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"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\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 ${o} ${n.minimum.toString()} ${i.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 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`${r[o.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":""}: ${z(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 CA(){return{localeError:mJ()}}var hJ=()=>{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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${B(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.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":""}: ${z(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 TA(){return{localeError:hJ()}}function $A(e,t,r,a){let n=Math.abs(e),o=n%10,i=n%100;return i>=11&&i<=19?a:o===1?t:o>=2&&o<=4?r:a}var gJ=()=>{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"},a={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \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 ${B(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 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);if(i){let s=Number(n.maximum),l=$A(s,i.unit.one,i.unit.few,i.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 ${i.verb} ${o}${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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);if(i){let s=Number(n.minimum),l=$A(s,i.unit.one,i.unit.few,i.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 ${i.verb} ${o}${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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.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"}: ${z(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 PA(){return{localeError:gJ()}}var vJ=()=>{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"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \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 ${B(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 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\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 ${o}${n.maximum.toString()} ${i.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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\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 ${o}${n.minimum.toString()} ${i.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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${i} ${r[o.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":""}: ${z(n.keys,", ")}`;
100case"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 LA(){return{localeError:vJ()}}var yJ=()=>{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\xE
1007a 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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${B(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${z(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",i=t(n.origin);return i?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(n.origin);return i?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.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":""}: ${z(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 AA(){return{localeError:yJ()}}var xJ=()=>{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"},a={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${B(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}
vendor: 22,960 bytes, line 100
100case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.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: ${z(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 EA(){return{localeError:xJ()}}var bJ=()=>{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"},a={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 o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${B(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin),s=a[n.origin]??n.origin;return i?`For stor: forventede ${s??"value"} ${i.verb} ${o} ${n.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin),s=a[n.origin]??n.origin;return i?`For lille: forventede ${s} ${i.verb} ${o} ${n.minimum.toString()} ${i.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.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"}: ${z(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 MA(){return{localeError:bJ()}}var wJ=()=>{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"},a={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${B(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.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"}: ${z(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 RA(){return{localeError:wJ()}}var SJ=()=>{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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${B(n.values[0])}`:`Invalid option: expected one of ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${i.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.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":""}: ${z(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 Wh(){return{localeError:SJ()}}var IJ=()=>{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"},a={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${B(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.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":""}: ${z(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 DA(){return{localeError:IJ()}}var kJ=()=>{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"},a={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 o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${B(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin),s=a[n.origin]??n.origin;return i?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin),s=a[n.origin]??n.origin;return i?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.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":""}: ${z(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${a[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${a[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function zA(){return{localeError:kJ()}}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"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o} \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 ${B(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 ${z(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${i.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 ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.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: ${z(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 NA(){return{localeError:_J()}}var CJ=()=>{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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${B(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.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"}: ${z(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 OA(){return{localeError:CJ()}}var TJ=()=>{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"},a={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${B(n.values[0])}
100 attendu`:`Option invalide : une valeur parmi ${z(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Trop grand : ${n.origin??"valeur"} doit ${i.verb} ${o}${n.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Trop petit : ${n.origin} doit ${i.verb} ${o}${n.minimum.toString()} ${i.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.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":""} : ${z(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 FA(){return{localeError:TJ()}}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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${B(n.values[0])}
100`:`Option invalide : attendu l'une des valeurs suivantes ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",i=t(n.origin);return i?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",i=t(n.origin);return i?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.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":""} : ${z(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 UA(){return{localeError:$J()}}var PJ=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,a=u=>{let c=r(u);return c?c.label:u??e.unknown.label},n=u=>`\u05D4${a(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=u=>u?t[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return u=>
vendor: 33,580 bytes, line 100
100{switch(u.code){case"invalid_type":{let c=u.expected,d=l[c??""]??a(c),f=Z(u.input),p=l[f]??e[f]?.label??f;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${B(u.values[0])}`;let c=u.values.map(p=>B(p));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let d=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let c=i(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let g=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",w=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`.trim()}let f=u.inclusive?"<=":"<",p=o(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()}`}case"too_small":{let c=i(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let g=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let y=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`}let w=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`.trim()}let f=u.inclusive?">=":">",p=o(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${c.pattern}`;let d=s[c.format],f=d?.label??c.format,g=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${g}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${z(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function BA(){return{localeError:PJ()}}var LJ=()=>{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"},a={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${B(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.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":""}: ${z(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 jA(){return{localeError:LJ()}}function VA(e,t,r){return Math.abs(e)===1?t:r}function dl(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 AJ=()=>{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"},a={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \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 ${B(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 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);if(i){let s=Number(n.maximum),l=VA(s,i.unit.one,i.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 ${dl(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${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 ${dl(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);if(i){let s=Number(n.minimum),l=VA(s,i.unit.one,i.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 ${dl(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${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 ${dl(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.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 ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.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":""}. ${z(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${dl(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 ${dl(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function ZA(){return{localeError:AJ()}}var EJ=()=>{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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${B(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.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":""}: ${z(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 qA(){return{localeError:EJ()}}var MJ=()=>{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"},a={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${B(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.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"}: ${z(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 GA(){return{localeError:MJ()}}var RJ=()=>{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"},a={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${B(n.values[0])}`:`Opzione non valida: atteso uno tra ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.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"}: ${z(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 HA(){return{localeError:RJ()}}var DJ=()=>{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"},a={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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: ${o}\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: ${B(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${z(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(n.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(n.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.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":""}: ${z(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 WA(){return{localeError:DJ()}}var zJ=()=>{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"},a={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 o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \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 ${B(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 ${z(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\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"} ${i.verb} ${o}${n.maximum.toString()} ${i.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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\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} ${i.verb} ${o}${n.minimum.toString()} ${i.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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"-\u10D8\u10D7`:o.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 "${o.suffix}"-\u10D8\u10D7`:o.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 "${o.includes}"-\u10E1`:o.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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.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"}: ${z(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 JA(){return{localeError:zJ()}}var NJ=()=>{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"},a={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 o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o} \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 ${B(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 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${i.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"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.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 ${z(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 Jh(){return{localeError:NJ()}}function KA(){return Jh()}var OJ=()=>{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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${B(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${z(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=o==="\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} ${o}${i}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${i}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=o==="\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} ${o}${i}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${i}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.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: ${z(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 XA(){return{localeError:OJ()}}var ud=e=>e.charAt(0).toUpperCase()+e.slice(1);function YA(e){let t=Math.abs(e),r=t%10,a=t%100;return a>=11&&a<=19||r===0?"many":r===1?"one":"few"}var FJ=()=>{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,o,i,s){let l=e[n]??null;return l===null?l:{unit:l.unit[o],verb:l.verb[s][i?"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"},a={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 o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${B(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${z(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=a[n.origin]??n.origin,i=t(n.origin,YA(Number(n.maximum)),n.inclusive??!1,"smaller");if(i?.verb)return`${ud(o??n.origin??"reik\u0161m\u0117")} ${i.verb} ${n.maximum.toString()} ${i.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ud(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${i?.unit}`}case"too_small":{let o=a[n.origin]??n.origin,i=t(n.origin,YA(Number(n.minimum)),n.inclusive??!1,"bigger");if(i?.verb)return`${ud(o??n.origin??"reik\u0161m\u0117")} ${i.verb} ${n.minimum.toString()} ${i.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ud(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${i?.unit}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.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"}: ${z(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=a[n.origin]??n.origin;return`${ud(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function QA(){return{localeError:FJ()}}var UJ=()=>{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"},a={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${B(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 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\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 ${o}${n.maximum.toString()} ${i.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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\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 ${o}${n.minimum.toString()} ${i.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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`Invalid ${r[o.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"}: ${z(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 eE(){return{localeError:UJ()}}var BJ=()=>{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"},a={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${B(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Terlalu besar: dijangka ${n.origin??"nilai"} ${i.verb} ${o}${n.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Terlalu kecil: dijangka ${n.origin} ${i.verb} ${o}${n.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${z(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 tE(){return{localeError:BJ()}}var jJ=()=>{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"},a={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${B(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${z(n.values,"|")}`;
vendor: 7,366 bytes, line 100
100case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return i?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return i?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.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":""}: ${z(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 rE(){return{localeError:jJ()}}var VJ=()=>{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"},a={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${B(n.values[0])}`:`Ugyldig valg: forventet en av ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.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"}: ${z(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 nE(){return{localeError:VJ()}}var ZJ=()=>{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"},a={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${B(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.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":""}: ${z(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 aE(){return{localeError:ZJ()}}var qJ=()=>{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"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o} \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 ${B(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${z(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${i.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 ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.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"}: ${z(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 oE(){return{localeError:qJ()}}var GJ=()=>{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"},a={nan:"NaN",number:"liczba",array:"tablica"};return n=>
vendor: 4,455 bytes, line 100
100{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${B(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.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":""}: ${z(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 iE(){return{localeError:GJ()}}var HJ=()=>{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"},a={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${B(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.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":""}: ${z(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 sE(){return{localeError:HJ()}}function lE(e,t,r,a){let n=Math.abs(e),o=n%10,i=n%100;return i>=11&&i<=19?a:o===1?t:o>=2&&o<=4?r:a}var WJ=()=>{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"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \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 ${B(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 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);if(i){let s=Number(n.maximum),l=lE(s,i.unit.one,i.unit.few,i.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 ${o}${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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);if(i){let s=Number(n.minimum),l=lE(s,i.unit.one,i.unit.few,i.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 ${o}${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 ${o}${n.minimum.toString()}`}
vendor: 105,981 bytes, lines 100-102
100case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.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":""}: ${z(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 uE(){return{localeError:WJ()}}var JJ=()=>{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"},a={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${B(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.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"}: ${z(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 cE(){return{localeError:JJ()}}var KJ=()=>{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"},a={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${B(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.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"}: ${z(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 dE(){return{localeError:KJ()}}var XJ=()=>{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"},a={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 o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \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 ${B(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 ${z(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\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"} ${o}${n.maximum.toString()} ${i.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"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\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} ${o}${n.minimum.toString()} ${i.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} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.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[o.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":""}: ${z(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 fE(){return{localeError:XJ()}}var YJ=()=>{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"},a={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 o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o} \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 ${B(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 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(n.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${i.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${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(n.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.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 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.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: ${z(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 pE(){return{localeError:YJ()}}var QJ=()=>{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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${B(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.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":""}: ${z(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 mE(){return{localeError:QJ()}}var eK=()=>{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"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \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 ${B(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 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\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"} ${i.verb} ${o}${n.maximum.toString()} ${i.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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\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} ${i.verb} ${o}${n.minimum.toString()} ${i.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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.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":""}: ${z(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 Kh(){return{localeError:eK()}}function hE(){return Kh()}var tK=()=>{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"},a={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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: ${o} \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: ${B(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${z(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${i.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 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${i.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 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.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":""}: ${z(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 gE(){return{localeError:tK()}}var rK=()=>{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"},a={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${B(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.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":""}: ${z(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 vE(){return{localeError:rK()}}var nK=()=>{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"},a={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, 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 ${B(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 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${o}${n.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i.verb} ${o}${n.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.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: ${z(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 yE(){return{localeError:nK()}}var aK=()=>{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"},a={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${B(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.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): ${z(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 xE(){return{localeError:aK()}}var oK=()=>{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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${B(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.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${z(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 bE(){return{localeError:oK()}}var iK=()=>{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"},a={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=Z(n.input),s=a[i]??i;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 ${o}, \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 ${B(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${z(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${i.verb} ${o}${n.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${i.verb} ${o}${n.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.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: ${z(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 wE(){return{localeError:iK()}}var SE,M2=Symbol("ZodOutput"),R2=Symbol("ZodInput"),Xh=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let a=r[0];return this._map.set(t,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.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 a={...this.get(r)??{}};delete a.id;let n={...a,...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 Yh(){return new Xh}(SE=globalThis).__zod_globalRegistry??(SE.__zod_globalRegistry=Yh());var Gt=globalThis.__zod_globalRegistry;function D2(e,t){return new e({type:"string",...X(t)})}function z2(e,t){return new e({type:"string",coerce:!0,...X(t)})}function Qh(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...X(t)})}function dd(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...X(t)})}function e0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...X(t)})}function t0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...X(t)})}function r0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...X(t)})}function n0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...X(t)})}function fd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...X(t)})}function a0(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...X(t)})}function o0(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...X(t)})}function i0(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...X(t)})}function s0(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...X(t)})}function l0(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...X(t)})}function u0(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...X(t)})}function c0(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...X(t)})}function d0(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...X(t)})}function f0(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...X(t)})}function N2(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...X(t)})}function p0(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...X(t)})}function m0(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...X(t)})}function h0(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...X(t)})}function g0(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...X(t)})}function v0(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...X(t)})}function y0(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...X(t)})}var O2={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function F2(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...X(t)})}function U2(e,t){return new e({type:"string",format:"date",check:"string_format",...X(t)})}function B2(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...X(t)})}function j2(e,t){return new e({type:"string",format:"duration",check:"string_format",...X(t)})}function V2(e,t){return new e({type:"number",checks:[],...X(t)})}function Z2(e,t){return new e({type:"number",coerce:!0,checks:[],...X(t)})}function q2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...X(t)})}function G2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...X(t)})}function H2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...X(t)})}function W2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...X(t)})}function J2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...X(t)})}function K2(e,t){return new e({type:"boolean",...X(t)})}function X2(e,t){return new e({type:"boolean",coerce:!0,...X(t)})}function Y2(e,t){return new e({type:"bigint",...X(t)})}function Q2(e,t){return new e({type:"bigint",coerce:!0,...X(t)})}function eS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...X(t)})}function tS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...X(t)})}function rS(e,t){return new e({type:"symbol",...X(t)})}function nS(e,t){return new e({type:"undefined",...X(t)})}function aS(e,t){return new e({type:"null",...X(t)})}function oS(e){return new e({type:"any"})}function iS(e){return new e({type:"unknown"})}function sS(e,t){return new e({type:"never",...X(t)})}function lS(e,t){return new e({type:"void",...X(t)})}function uS(e,t){return new e({type:"date",...X(t)})}function cS(e,t){return new e({type:"date",coerce:!0,...X(t)})}function dS(e,t){return new e({type:"nan",...X(t)})}function jn(e,t){return new Nh({check:"less_than",...X(t),value:e,inclusive:!1})}function Vr(e,t){return new Nh({check:"less_than",...X(t),value:e,inclusive:!0})}function Vn(e,t){return new Oh({check:"greater_than",...X(t),value:e,inclusive:!1})}function ur(e,t){return new Oh({check:"greater_than",...X(t),value:e,inclusive:!0})}function x0(e){return Vn(0,e)}function b0(e){return jn(0,e)}function w0(e){return Vr(0,e)}function S0(e){return ur(0,e)}function Eo(e,t){return new aw({check:"multiple_of",...X(t),value:e})}function Mo(e,t){return new sw({check:"max_size",...X(t),maximum:e})}function Zn(e,t){return new lw({check:"min_size",...X(t),minimum:e})}function Pi(e,t){return new uw({check:"size_equals",...X(t),size:e})}function Li(e,t){return new cw({check:"max_length",...X(t),maximum:e})}function Ta(e,t){return new dw({check:"min_length",...X(t),minimum:e})}function Ai(e,t){return new fw({check:"length_equals",...X(t),length:e})}function fl(e,t){return new pw({check:"string_format",format:"regex",...X(t),pattern:e})}function pl(e){return new mw({check:"string_format",format:"lowercase",...X(e)})}function ml(e){return new hw({check:"string_format",format:"uppercase",...X(e)})}function hl(e,t){return new gw({check:"string_format",format:"includes",...X(t),includes:e})}function gl(e,t){return new vw({check:"string_format",format:"starts_with",...X(t),prefix:e})}function vl(e,t){return new yw({check:"string_format",format:"ends_with",...X(t),suffix:e})}function I0(e,t,r){return new xw({check:"property",property:e,schema:t,...X(r)})}function yl(e,t){return new bw({check:"mime_type",mime:e,...X(t)})}function _n(e){return new ww({check:"overwrite",tx:e})}function xl(e){return _n(t=>t.normalize(e))}function bl(){return _n(e=>e.trim())}function wl(){return _n(e=>e.toLowerCase())}function Sl(){return _n(e=>e.toUpperCase())}function Il(){return _n(e=>x4(e))}function fS(e,t,r){return new e({type:"array",element:t,...X(r)})}function lK(e,t,r){return new e({type:"union",options:t,...X(r)})}function uK(e,t,r){return new e({type:"union",options:t,inclusive:!1,...X(r)})}function cK(e,t,r,a){return new e({type:"union",options:r,discriminator:t,...X(a)})}function dK(e,t,r){return new e({type:"intersection",left:t,right:r})}function fK(e,t,r,a){let n=r instanceof we,o=n?a:r,i=n?r:null;return new e({type:"tuple",items:t,rest:i,...X(o)})}function pK(e,t,r,a){return new e({type:"record",keyType:t,valueType:r,...X(a)})}function mK(e,t,r,a){return new e({type:"map",keyType:t,valueType:r,...X(a)})}function hK(e,t,r){return new e({type:"set",valueType:t,...X(r)})}function gK(e,t,r){let a=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:a,...X(r)})}function vK(e,t,r){return new e({type:"enum",entries:t,...X(r)})}function yK(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...X(r)})}function pS(e,t){return new e({type:"file",...X(t)})}function xK(e,t){return new e({type:"transform",transform:t})}function bK(e,t){return new e({type:"optional",innerType:t})}function wK(e,t){return new e({type:"nullable",innerType:t})}function SK(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():w4(r)}})}function IK(e,t,r){return new e({type:"nonoptional",innerType:t,...X(r)})}function kK(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 CK(e,t,r){return new e({type:"pipe",in:t,out:r})}function TK(e,t){return new e({type:"readonly",innerType:t})}function $K(e,t,r){return new e({type:"template_literal",parts:t,...X(r)})}function PK(e,t){return new e({type:"lazy",getter:t})}function LK(e,t){return new e({type:"promise",innerType:t})}function mS(e,t,r){let a=X(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function hS(e,t,r){return new e({type:"custom",check:"custom",fn:t,...X(r)})}function gS(e){let t=IE(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(ol(a,r.value,t._zod.def));else{let n=a;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(ol(n))}},e(r.value,r)));return t}function IE(e,t){let r=new at({check:"custom",...X(t)});return r._zod.check=e,r}function vS(e){let t=new at({check:"describe"});return t._zod.onattach=[r=>{let a=Gt.get(r)??{};Gt.add(r,{...a,description:e})}],t._zod.check=()=>{},t}function yS(e){let t=new at({check:"meta"});return t._zod.onattach=[r=>{let a=Gt.get(r)??{};Gt.add(r,{...a,...e})}],t._zod.check=()=>{},t}function xS(e,t){let r=X(t),a=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(a=a.map(p=>typeof p=="string"?p.toLowerCase():p),n=n.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(a),i=new Set(n),s=e.Codec??ld,l=e.Boolean??id,u=e.String??$i,c=new u({type:"string",error:r.error}),d=new l({type:"boolean",error:r.error}),f=new s({type:"pipe",in:c,out:d,transform:((p,g)=>{let w=p;return r.case!=="sensitive"&&(w=w.toLowerCase()),o.has(w)?!0:i.has(w)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:g.value,inst:f,continue:!1}),{})}),reverseTransform:((p,g)=>p===!0?a[0]||"true":n[0]||"false"),error:r.error});return f}function kl(e,t,r,a={}){let n=X(a),o={...X(a),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ro(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??Gt,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 We(e,t,r={path:[],schemaPath:[]}){var a;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let i={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,i);let s=e._zod.toJSONSchema?.();if(s)i.schema=s;else{let c={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,c);else{let f=i.schema,p=t.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(e,t,f,c)}let d=e._zod.parent;d&&(i.ref||(i.ref=d),We(d,t,c),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(i.schema,l),t.io==="input"&&cr(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((a=i.schema).default??(a.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Do(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=new Map;for(let i of e.seen.entries()){let s=e.metadataRegistry.get(i[0])?.id;if(s){let l=a.get(s);if(l&&l!==i[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(s,i[0])}}let n=i=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(i[0])?.id,f=e.external.uri??(g=>g);if(d)return{ref:f(d)};let p=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=p,{defId:p,ref:`${f("__shared")}#/${s}/${p}`}}if(i[1]===r)return{ref:"#"};let u=`#/${s}/`,c=i[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},o=i=>{if(i[1].schema.$ref)return;let s=i[1],{ref:l,defId:u}=n(i);s.def={...s.schema},u&&(s.defId=u);let c=s.schema;for(let d in c)delete c[d];c.$ref=l};if(e.cycles==="throw")for(let i of e.seen.entries()){let s=i[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 i of e.seen.entries()){let s=i[1];if(t===i[0]){o(i);continue}if(e.external){let u=e.external.registry.get(i[0])?.id;if(t!==i[0]&&u){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(s.cycle){o(i);continue}if(s.count>1&&e.reused==="ref"){o(i);continue}}}function zo(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=i=>{let s=e.seen.get(i);if(s.ref===null)return;let l=s.def??s.schema,u={...l},c=s.ref;if(s.ref=null,c){a(c);let f=e.seen.get(c),p=f.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(p)):Object.assign(l,p),Object.assign(l,u),i._zod.parent===c)for(let w in l)w==="$ref"||w==="allOf"||w in u||delete l[w];if(p.$ref&&f.def)for(let w in l)w==="$ref"||w==="allOf"||w in f.def&&JSON.stringify(l[w])===JSON.stringify(f.def[w])&&delete l[w]}let d=i._zod.parent;if(d&&d!==c){a(d);let f=e.seen.get(d);if(f?.schema.$ref&&(l.$ref=f.schema.$ref,f.def))for(let p in l)p==="$ref"||p==="allOf"||p in f.def&&JSON.stringify(l[p])===JSON.stringify(f.def[p])&&delete l[p]}e.override({zodSchema:i,jsonSchema:l,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())a(i[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 i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(i)}Object.assign(n,r.def??r.schema);let o=e.external?.defs??{};for(let i of e.seen.entries()){let s=i[1];s.def&&s.defId&&(o[s.defId]=s.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?n.$defs=o:n.definitions=o);try{let i=JSON.parse(JSON.stringify(n));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:_l(t,"input",e.processors),output:_l(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}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 a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return cr(a.element,r);if(a.type==="set")return cr(a.valueType,r);if(a.type==="lazy")return cr(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return cr(a.innerType,r);if(a.type==="intersection")return cr(a.left,r)||cr(a.right,r);if(a.type==="record"||a.type==="map")return cr(a.keyType,r)||cr(a.valueType,r);if(a.type==="pipe")return cr(a.in,r)||cr(a.out,r);if(a.type==="object"){for(let n in a.shape)if(cr(a.shape[n],r))return!0;return!1}if(a.type==="union"){for(let n of a.options)if(cr(n,r))return!0;return!1}if(a.type==="tuple"){for(let n of a.items)if(cr(n,r))return!0;return!!(a.rest&&cr(a.rest,r))}return!1}var bS=(e,t={})=>r=>{let a=Ro({...r,processors:t});return We(e,a),Do(a,e),zo(a,e)},_l=(e,t,r={})=>a=>{let{libraryOptions:n,target:o}=a??{},i=Ro({...n??{},target:o,io:t,processors:r});return We(e,i),Do(i,e),zo(i,e)};var AK={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},wS=(e,t,r,a)=>{let n=r;n.type="string";let{minimum:o,maximum:i,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof i=="number"&&(n.maxLength=i),s&&(n.format=AK[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?n.pattern=c[0].source:c.length>1&&(n.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},SS=(e,t,r,a)=>{let n=r,{minimum:o,maximum:i,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c),typeof o=="number"&&(n.minimum=o,typeof c=="number"&&t.target!=="draft-04"&&(c>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u),typeof i=="number"&&(n.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},IS=(e,t,r,a)=>{r.type="boolean"},kS=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},_S=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},CS=(e,t,r,a)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},TS=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},$S=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},PS=(e,t,r,a)=>{r.not={}},LS=(e,t,r,a)=>{},AS=(e,t,r,a)=>{},ES=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},MS=(e,t,r,a)=>{let n=e._zod.def,o=Jc(n.entries);o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),r.enum=o},RS=(e,t,r,a)=>{let n=e._zod.def,o=[];for(let i of n.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(i))}else o.push(i);if(o.length!==0)if(o.length===1){let i=o[0];r.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[i]:r.const=i}else o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),o.every(i=>typeof i=="boolean")&&(r.type="boolean"),o.every(i=>i===null)&&(r.type="null"),r.enum=o},DS=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},zS=(e,t,r,a)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},NS=(e,t,r,a)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:l}=e._zod.bag;i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),l?l.length===1?(o.contentMediaType=l[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(n,o)},OS=(e,t,r,a)=>{r.type="boolean"},FS=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},US=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},BS=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},jS=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},VS=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},ZS=(e,t,r,a)=>{let n=r,o=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(n.minItems=i),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=We(o.element,t,{...a,path:[...a.path,"items"]})},qS=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let i=o.shape;for(let u in i)n.properties[u]=We(i[u],t,{...a,path:[...a.path,"properties",u]});let s=new Set(Object.keys(i)),l=new Set([...s].filter(u=>{let c=o.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(n.required=Array.from(l)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=We(o.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},_0=(e,t,r,a)=>{let n=e._zod.def,o=n.inclusive===!1,i=n.options.map((s,l)=>We(s,t,{...a,path:[...a.path,o?"oneOf":"anyOf",l]}));o?r.oneOf=i:r.anyOf=i},GS=(e,t,r,a)=>{let n=e._zod.def,o=We(n.left,t,{...a,path:[...a.path,"allOf",0]}),i=We(n.right,t,{...a,path:[...a.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(o)?o.allOf:[o],...s(i)?i.allOf:[i]];r.allOf=l},HS=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((f,p)=>We(f,t,{...a,path:[...a.path,i,p]})),u=o.rest?We(o.rest,t,{...a,path:[...a.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:l},u&&n.items.anyOf.push(u),n.minItems=l.length,u||(n.maxItems=l.length)):(n.items=l,u&&(n.additionalItems=u));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(n.minItems=c),typeof d=="number"&&(n.maxItems=d)},WS=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="object";let i=o.keyType,l=i._zod.bag?.patterns;if(o.mode==="loose"&&l&&l.size>0){let c=We(o.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});n.patternProperties={};for(let d of l)n.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=We(o.keyType,t,{...a,path:[...a.path,"propertyNames"]})),n.additionalProperties=We(o.valueType,t,{...a,path:[...a.path,"additionalProperties"]});let u=i._zod.values;if(u){let c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(n.required=c)}},JS=(e,t,r,a)=>{let n=e._zod.def,o=We(n.innerType,t,a),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},KS=(e,t,r,a)=>{let n=e._zod.def;We(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},XS=(e,t,r,a)=>{let n=e._zod.def;We(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},YS=(e,t,r,a)=>{let n=e._zod.def;We(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},QS=(e,t,r,a)=>{let n=e._zod.def;We(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType;let i;try{i=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},eI=(e,t,r,a)=>{let n=e._zod.def,o=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;We(o,t,a);let i=t.seen.get(e);i.ref=o},tI=(e,t,r,a)=>{let n=e._zod.def;We(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},rI=(e,t,r,a)=>{let n=e._zod.def;We(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},C0=(e,t,r,a)=>{let n=e._zod.def;We(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},nI=(e,t,r,a)=>{let n=e._zod.innerType;We(n,t,a);let o=t.seen.get(e);o.ref=n},k0={string:wS,number:SS,boolean:IS,bigint:kS,symbol:_S,null:CS,undefined:TS,void:$S,never:PS,any:LS,unknown:AS,date:ES,enum:MS,literal:RS,nan:DS,template_literal:zS,file:NS,success:OS,custom:FS,function:US,transform:BS,map:jS,set:VS,array:ZS,object:qS,union:_0,intersection:GS,tuple:HS,record:WS,nullable:JS,nonoptional:KS,default:XS,prefault:YS,catch:QS,pipe:eI,readonly:tI,promise:rI,optional:C0,lazy:nI};function T0(e,t){if("_idmap"in e){let a=e,n=Ro({...t,processors:k0}),o={};for(let l of a._idmap.entries()){let[u,c]=l;We(c,n)}let i={},s={registry:a,uri:t?.uri,defs:o};n.external=s;for(let l of a._idmap.entries()){let[u,c]=l;Do(n,c),i[u]=zo(n,c)}if(Object.keys(o).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[l]:o}}return{schemas:i}}let r=Ro({...t,processors:k0});return We(e,r),Do(r,e),zo(r,e)}var $0=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=Ro({processors:k0,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 We(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)),Do(this.ctx,t);let a=zo(this.ctx,t),{"~standard":n,...o}=a;return o}};var kE={};var pd={};vr(pd,{ZodAny:()=>TI,ZodArray:()=>AI,ZodBase64:()=>J0,ZodBase64URL:()=>K0,ZodBigInt:()=>El,ZodBigIntFormat:()=>Q0,ZodBoolean:()=>Al,ZodCIDRv4:()=>H0,ZodCIDRv6:()=>W0,ZodCUID:()=>U0,ZodCUID2:()=>B0,ZodCatch:()=>QI,ZodCodec:()=>sg,ZodCustom:()=>kd,ZodCustomStringFormat:()=>Pl,ZodDate:()=>xd,ZodDefault:()=>HI,ZodDiscriminatedUnion:()=>MI,ZodE164:()=>X0,ZodEmail:()=>N0,ZodEmoji:()=>O0,ZodEnum:()=>Tl,ZodExactOptional:()=>ZI,ZodFile:()=>jI,ZodFunction:()=>lk,ZodGUID:()=>md,ZodIPv4:()=>q0,ZodIPv6:()=>G0,ZodIntersection:()=>RI,ZodJWT:()=>Y0,ZodKSUID:()=>Z0,ZodLazy:()=>ok,ZodLiteral:()=>BI,ZodMAC:()=>bI,ZodMap:()=>FI,ZodNaN:()=>tk,ZodNanoID:()=>F0,ZodNever:()=>PI,ZodNonOptional:()=>og,ZodNull:()=>_I,ZodNullable:()=>GI,ZodNumber:()=>Ll,ZodNumberFormat:()=>Mi,ZodObject:()=>wd,ZodOptional:()=>ag,ZodPipe:()=>ig,ZodPrefault:()=>JI,ZodPromise:()=>sk,ZodReadonly:()=>rk,ZodRecord:()=>Id,ZodSet:()=>UI,ZodString:()=>$l,ZodStringFormat:()=>et,ZodSuccess:()=>YI,ZodSymbol:()=>II,ZodTemplateLiteral:()=>ak,ZodTransform:()=>VI,ZodTuple:()=>zI,ZodType:()=>$e,ZodULID:()=>j0,ZodURL:()=>yd,ZodUUID:()=>qn,ZodUndefined:()=>kI,ZodUnion:()=>Sd,ZodUnknown:()=>$I,ZodVoid:()=>LI,ZodXID:()=>V0,ZodXor:()=>EI,_ZodString:()=>z0,_default:()=>WI,_function:()=>AM,any:()=>uM,array:()=>bd,base64:()=>GE,base64url:()=>HE,bigint:()=>aM,boolean:()=>SI,catch:()=>ek,check:()=>EM,cidrv4:()=>ZE,cidrv6:()=>qE,codec:()=>$M,cuid:()=>zE,cuid2:()=>NE,custom:()=>MM,date:()=>dM,describe:()=>RM,discriminatedUnion:()=>vM,e164:()=>WE,email:()=>CE,emoji:()=>RE,enum:()=>rg,exactOptional:()=>qI,file:()=>kM,float32:()=>eM,float64:()=>tM,function:()=>AM,guid:()=>TE,hash:()=>QE,hex:()=>YE,hostname:()=>XE,httpUrl:()=>ME,instanceof:()=>zM,int:()=>D0,int32:()=>rM,int64:()=>oM,intersection:()=>DI,ipv4:()=>BE,ipv6:()=>VE,json:()=>OM,jwt:()=>JE,keyof:()=>fM,ksuid:()=>UE,lazy:()=>ik,literal:()=>IM,looseObject:()=>hM,looseRecord:()=>xM,mac:()=>jE,map:()=>bM,meta:()=>DM,nan:()=>TM,nanoid:()=>DE,nativeEnum:()=>SM,never:()=>eg,nonoptional:()=>XI,null:()=>CI,nullable:()=>gd,nullish:()=>_M,number:()=>wI,object:()=>pM,optional:()=>hd,partialRecord:()=>yM,pipe:()=>vd,prefault:()=>KI,preprocess:()=>FM,promise:()=>LM,readonly:()=>nk,record:()=>OI,refine:()=>uk,set:()=>wM,strictObject:()=>mM,string:()=>R0,stringFormat:()=>KE,stringbool:()=>NM,success:()=>CM,superRefine:()=>ck,symbol:()=>sM,templateLiteral:()=>PM,transform:()=>ng,tuple:()=>NI,uint32:()=>nM,uint64:()=>iM,ulid:()=>OE,undefined:()=>lM,union:()=>tg,unknown:()=>Ei,url:()=>EE,uuid:()=>$E,uuidv4:()=>PE,uuidv6:()=>LE,uuidv7:()=>AE,void:()=>cM,xid:()=>FE,xor:()=>gM});var P0={};vr(P0,{endsWith:()=>vl,gt:()=>Vn,gte:()=>ur,includes:()=>hl,length:()=>Ai,lowercase:()=>pl,lt:()=>jn,lte:()=>Vr,maxLength:()=>Li,maxSize:()=>Mo,mime:()=>yl,minLength:()=>Ta,minSize:()=>Zn,multipleOf:()=>Eo,negative:()=>b0,nonnegative:()=>S0,nonpositive:()=>w0,normalize:()=>xl,overwrite:()=>_n,positive:()=>x0,property:()=>I0,regex:()=>fl,size:()=>Pi,slugify:()=>Il,startsWith:()=>gl,toLowerCase:()=>wl,toUpperCase:()=>Sl,trim:()=>bl,uppercase:()=>ml});var Cl={};vr(Cl,{ZodISODate:()=>A0,ZodISODateTime:()=>L0,ZodISODuration:()=>M0,ZodISOTime:()=>E0,date:()=>oI,datetime:()=>aI,duration:()=>sI,time:()=>iI});var L0=E("ZodISODateTime",(e,t)=>{Dw.init(e,t),et.init(e,t)});function aI(e){return F2(L0,e)}var A0=E("ZodISODate",(e,t)=>{zw.init(e,t),et.init(e,t)});function oI(e){return U2(A0,e)}var E0=E("ZodISOTime",(e,t)=>{Nw.init(e,t),et.init(e,t)});function iI(e){return B2(E0,e)}var M0=E("ZodISODuration",(e,t)=>{Ow.init(e,t),et.init(e,t)});function sI(e){return j2(M0,e)}var _E=(e,t)=>{ed.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>rd(e,r)},flatten:{value:r=>td(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,nl,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,nl,2)}},isEmpty:{get(){return e.issues.length===0}}})},MK=E("ZodError",_E),_r=E("ZodError",_E,{Parent:Error});var lI=il(_r),uI=sl(_r),cI=ll(_r),dI=ul(_r),fI=Th(_r),pI=$h(_r),mI=Ph(_r),hI=Lh(_r),gI=Ah(_r),vI=Eh(_r),yI=Mh(_r),xI=Rh(_r);var $e=E("ZodType",(e,t)=>(we.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:_l(e,"input"),output:_l(e,"output")}}),e.toJSONSchema=bS(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(G.mergeDefs(t,{checks:[...t.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(r,a)=>lr(e,r,a),e.brand=()=>e,e.register=((r,a)=>(r.add(e,a),e)),e.parse=(r,a)=>lI(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>cI(e,r,a),e.parseAsync=async(r,a)=>uI(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>dI(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>fI(e,r,a),e.decode=(r,a)=>pI(e,r,a),e.encodeAsync=async(r,a)=>mI(e,r,a),e.decodeAsync=async(r,a)=>hI(e,r,a),e.safeEncode=(r,a)=>gI(e,r,a),e.safeDecode=(r,a)=>vI(e,r,a),e.safeEncodeAsync=async(r,a)=>yI(e,r,a),e.safeDecodeAsync=async(r,a)=>xI(e,r,a),e.refine=(r,a)=>e.check(uk(r,a)),e.superRefine=r=>e.check(ck(r)),e.overwrite=r=>e.check(_n(r)),e.optional=()=>hd(e),e.exactOptional=()=>qI(e),e.nullable=()=>gd(e),e.nullish=()=>hd(gd(e)),e.nonoptional=r=>XI(e,r),e.array=()=>bd(e),e.or=r=>tg([e,r]),e.and=r=>DI(e,r),e.transform=r=>vd(e,ng(r)),e.default=r=>WI(e,r),e.prefault=r=>KI(e,r),e.catch=r=>ek(e,r),e.pipe=r=>vd(e,r),e.readonly=()=>nk(e),e.describe=r=>{let a=e.clone();return Gt.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){return Gt.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Gt.get(e);let a=e.clone();return Gt.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),z0=E("_ZodString",(e,t)=>{$i.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(a,n,o)=>wS(e,a,n,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check(fl(...a)),e.includes=(...a)=>e.check(hl(...a)),e.startsWith=(...a)=>e.check(gl(...a)),e.endsWith=(...a)=>e.check(vl(...a)),e.min=(...a)=>e.check(Ta(...a)),e.max=(...a)=>e.check(Li(...a)),e.length=(...a)=>e.check(Ai(...a)),e.nonempty=(...a)=>e.check(Ta(1,...a)),e.lowercase=a=>e.check(pl(a)),e.uppercase=a=>e.check(ml(a)),e.trim=()=>e.check(bl()),e.normalize=(...a)=>e.check(xl(...a)),e.toLowerCase=()=>e.check(wl()),e.toUpperCase=()=>e.check(Sl()),e.slugify=()=>e.check(Il())}),$l=E("ZodString",(e,t)=>{$i.init(e,t),z0.init(e,t),e.email=r=>e.check(Qh(N0,r)),e.url=r=>e.check(fd(yd,r)),e.jwt=r=>e.check(y0(Y0,r)),e.emoji=r=>e.check(a0(O0,r)),e.guid=r=>e.check(dd(md,r)),e.uuid=r=>e.check(e0(qn,r)),e.uuidv4=r=>e.check(t0(qn,r)),e.uuidv6=r=>e.check(r0(qn,r)),e.uuidv7=r=>e.check(n0(qn,r)),e.nanoid=r=>e.check(o0(F0,r)),e.guid=r=>e.check(dd(md,r)),e.cuid=r=>e.check(i0(U0,r)),e.cuid2=r=>e.check(s0(B0,r)),e.ulid=r=>e.check(l0(j0,r)),e.base64=r=>e.check(h0(J0,r)),e.base64url=r=>e.check(g0(K0,r)),e.xid=r=>e.check(u0(V0,r)),e.ksuid=r=>e.check(c0(Z0,r)),e.ipv4=r=>e.check(d0(q0,r)),e.ipv6=r=>e.check(f0(G0,r)),e.cidrv4=r=>e.check(p0(H0,r)),e.cidrv6=r=>e.check(m0(W0,r)),e.e164=r=>e.check(v0(X0,r)),e.datetime=r=>e.check(aI(r)),e.date=r=>e.check(oI(r)),e.time=r=>e.check(iI(r)),e.duration=r=>e.check(sI(r))});function R0(e){return D2($l,e)}var et=E("ZodStringFormat",(e,t)=>{Qe.init(e,t),z0.init(e,t)}),N0=E("ZodEmail",(e,t)=>{Cw.init(e,t),et.init(e,t)});function CE(e){return Qh(N0,e)}var md=E("ZodGUID",(e,t)=>{kw.init(e,t),et.init(e,t)});function TE(e){return dd(md,e)}var qn=E("ZodUUID",(e,t)=>{_w.init(e,t),et.init(e,t)});function $E(e){return e0(qn,e)}function PE(e){return t0(qn,e)}function LE(e){return r0(qn,e)}function AE(e){return n0(qn,e)}var yd=E("ZodURL",(e,t)=>{Tw.init(e,t),et.init(e,t)});function EE(e){return fd(yd,e)}function ME(e){return fd(yd,{protocol:/^https?$/,hostname:sn.domain,...G.normalizeParams(e)})}var O0=E("ZodEmoji",(e,t)=>{$w.init(e,t),et.init(e,t)});function RE(e){return a0(O0,e)}var F0=E("ZodNanoID",(e,t)=>{Pw.init(e,t),et.init(e,t)});function DE(e){return o0(F0,e)}var U0=E("ZodCUID",(e,t)=>{Lw.init(e,t),et.init(e,t)});function zE(e){return i0(U0,e)}var B0=E("ZodCUID2",(e,t)=>{Aw.init(e,t),et.init(e,t)});function NE(e){return s0(B0,e)}var j0=E("ZodULID",(e,t)=>{Ew.init(e,t),et.init(e,t)});function OE(e){return l0(j0,e)}var V0=E("ZodXID",(e,t)=>{Mw.init(e,t),et.init(e,t)});function FE(e){return u0(V0,e)}var Z0=E("ZodKSUID",(e,t)=>{Rw.init(e,t),et.init(e,t)});function UE(e){return c0(Z0,e)}var q0=E("ZodIPv4",(e,t)=>{Fw.init(e,t),et.init(e,t)});function BE(e){return d0(q0,e)}var bI=E("ZodMAC",(e,t)=>{Bw.init(e,t),et.init(e,t)});function jE(e){return N2(bI,e)}var G0=E("ZodIPv6",(e,t)=>{Uw.init(e,t),et.init(e,t)});function VE(e){return f0(G0,e)}var H0=E("ZodCIDRv4",(e,t)=>{jw.init(e,t),et.init(e,t)});function ZE(e){return p0(H0,e)}var W0=E("ZodCIDRv6",(e,t)=>{Vw.init(e,t),et.init(e,t)});function qE(e){return m0(W0,e)}var J0=E("ZodBase64",(e,t)=>{qw.init(e,t),et.init(e,t)});function GE(e){return h0(J0,e)}var K0=E("ZodBase64URL",(e,t)=>{Gw.init(e,t),et.init(e,t)});function HE(e){return g0(K0,e)}var X0=E("ZodE164",(e,t)=>{Hw.init(e,t),et.init(e,t)});function WE(e){return v0(X0,e)}var Y0=E("ZodJWT",(e,t)=>{Ww.init(e,t),et.init(e,t)});function JE(e){return y0(Y0,e)}var Pl=E("ZodCustomStringFormat",(e,t)=>{Jw.init(e,t),et.init(e,t)});function KE(e,t,r={}){return kl(Pl,e,t,r)}function XE(e){return kl(Pl,"hostname",sn.hostname,e)}function YE(e){return kl(Pl,"hex",sn.hex,e)}function QE(e,t){let r=t?.enc??"hex",a=`${e}_${r}`,n=sn[a];if(!n)throw new Error(`Unrecognized hash format: ${a}`);return kl(Pl,a,n,t)}var Ll=E("ZodNumber",(e,t)=>{Zh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(a,n,o)=>SS(e,a,n,o),e.gt=(a,n)=>e.check(Vn(a,n)),e.gte=(a,n)=>e.check(ur(a,n)),e.min=(a,n)=>e.check(ur(a,n)),e.lt=(a,n)=>e.check(jn(a,n)),e.lte=(a,n)=>e.check(Vr(a,n)),e.max=(a,n)=>e.check(Vr(a,n)),e.int=a=>e.check(D0(a)),e.safe=a=>e.check(D0(a)),e.positive=a=>e.check(Vn(0,a)),e.nonnegative=a=>e.check(ur(0,a)),e.negative=a=>e.check(jn(0,a)),e.nonpositive=a=>e.check(Vr(0,a)),e.multipleOf=(a,n)=>e.check(Eo(a,n)),e.step=(a,n)=>e.check(Eo(a,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 wI(e){return V2(Ll,e)}var Mi=E("ZodNumberFormat",(e,t)=>{Kw.init(e,t),Ll.init(e,t)});function D0(e){return q2(Mi,e)}function eM(e){return G2(Mi,e)}function tM(e){return H2(Mi,e)}function rM(e){return W2(Mi,e)}function nM(e){return J2(Mi,e)}var Al=E("ZodBoolean",(e,t)=>{id.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>IS(e,r,a,n)});function SI(e){return K2(Al,e)}var El=E("ZodBigInt",(e,t)=>{qh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(a,n,o)=>kS(e,a,n,o),e.gte=(a,n)=>e.check(ur(a,n)),e.min=(a,n)=>e.check(ur(a,n)),e.gt=(a,n)=>e.check(Vn(a,n)),e.gte=(a,n)=>e.check(ur(a,n)),e.min=(a,n)=>e.check(ur(a,n)),e.lt=(a,n)=>e.check(jn(a,n)),e.lte=(a,n)=>e.check(Vr(a,n)),e.max=(a,n)=>e.check(Vr(a,n)),e.positive=a=>e.check(Vn(BigInt(0),a)),e.negative=a=>e.check(jn(BigInt(0),a)),e.nonpositive=a=>e.check(Vr(BigInt(0),a)),e.nonnegative=a=>e.check(ur(BigInt(0),a)),e.multipleOf=(a,n)=>e.check(Eo(a,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function aM(e){return Y2(El,e)}var Q0=E("ZodBigIntFormat",(e,t)=>{Xw.init(e,t),El.init(e,t)});function oM(e){return eS(Q0,e)}function iM(e){return tS(Q0,e)}var II=E("ZodSymbol",(e,t)=>{Yw.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>_S(e,r,a,n)});function sM(e){return rS(II,e)}var kI=E("ZodUndefined",(e,t)=>{Qw.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>TS(e,r,a,n)});function lM(e){return nS(kI,e)}var _I=E("ZodNull",(e,t)=>{e2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>CS(e,r,a,n)});function CI(e){return aS(_I,e)}var TI=E("ZodAny",(e,t)=>{t2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>LS(e,r,a,n)});function uM(){return oS(TI)}var $I=E("ZodUnknown",(e,t)=>{r2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>AS(e,r,a,n)});function Ei(){return iS($I)}var PI=E("ZodNever",(e,t)=>{n2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>PS(e,r,a,n)});function eg(e){return sS(PI,e)}var LI=E("ZodVoid",(e,t)=>{a2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>$S(e,r,a,n)});function cM(e){return lS(LI,e)}var xd=E("ZodDate",(e,t)=>{o2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(a,n,o)=>ES(e,a,n,o),e.min=(a,n)=>e.check(ur(a,n)),e.max=(a,n)=>e.check(Vr(a,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 dM(e){return uS(xd,e)}var AI=E("ZodArray",(e,t)=>{i2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>ZS(e,r,a,n),e.element=t.element,e.min=(r,a)=>e.check(Ta(r,a)),e.nonempty=r=>e.check(Ta(1,r)),e.max=(r,a)=>e.check(Li(r,a)),e.length=(r,a)=>e.check(Ai(r,a)),e.unwrap=()=>e.element});function bd(e,t){return fS(AI,e,t)}function fM(e){let t=e._zod.def.shape;return rg(Object.keys(t))}var wd=E("ZodObject",(e,t)=>{s2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>qS(e,r,a,n),G.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>rg(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ei()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ei()}),e.strict=()=>e.clone({...e._zod.def,catchall:eg()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>G.extend(e,r),e.safeExtend=r=>G.safeExtend(e,r),e.merge=r=>G.merge(e,r),e.pick=r=>G.pick(e,r),e.omit=r=>G.omit(e,r),e.partial=(...r)=>G.partial(ag,e,r[0]),e.required=(...r)=>G.required(og,e,r[0])});function pM(e,t){let r={type:"object",shape:e??{},...G.normalizeParams(t)};return new wd(r)}function mM(e,t){return new wd({type:"object",shape:e,catchall:eg(),...G.normalizeParams(t)})}function hM(e,t){return new wd({type:"object",shape:e,catchall:Ei(),...G.normalizeParams(t)})}var Sd=E("ZodUnion",(e,t)=>{sd.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>_0(e,r,a,n),e.options=t.options});function tg(e,t){return new Sd({type:"union",options:e,...G.normalizeParams(t)})}var EI=E("ZodXor",(e,t)=>{Sd.init(e,t),l2.init(e,t),e._zod.processJSONSchema=(r,a,n)=>_0(e,r,a,n),e.options=t.options});function gM(e,t){return new EI({type:"union",options:e,inclusive:!1,...G.normalizeParams(t)})}var MI=E("ZodDiscriminatedUnion",(e,t)=>{Sd.init(e,t),u2.init(e,t)});function vM(e,t,r){return new MI({type:"union",options:t,discriminator:e,...G.normalizeParams(r)})}var RI=E("ZodIntersection",(e,t)=>{c2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>GS(e,r,a,n)});function DI(e,t){return new RI({type:"intersection",left:e,right:t})}var zI=E("ZodTuple",(e,t)=>{Gh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>HS(e,r,a,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function NI(e,t,r){let a=t instanceof we,n=a?r:t,o=a?t:null;return new zI({type:"tuple",items:e,rest:o,...G.normalizeParams(n)})}var Id=E("ZodRecord",(e,t)=>{d2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>WS(e,r,a,n),e.keyType=t.keyType,e.valueType=t.valueType});function OI(e,t,r){return new Id({type:"record",keyType:e,valueType:t,...G.normalizeParams(r)})}function yM(e,t,r){let a=lr(e);return a._zod.values=void 0,new Id({type:"record",keyType:a,valueType:t,...G.normalizeParams(r)})}function xM(e,t,r){return new Id({type:"record",keyType:e,valueType:t,mode:"loose",...G.normalizeParams(r)})}var FI=E("ZodMap",(e,t)=>{f2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>jS(e,r,a,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(Mo(...r)),e.size=(...r)=>e.check(Pi(...r))});function bM(e,t,r){return new FI({type:"map",keyType:e,valueType:t,...G.normalizeParams(r)})}var UI=E("ZodSet",(e,t)=>{p2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>VS(e,r,a,n),e.min=(...r)=>e.check(Zn(...r)),e.nonempty=r=>e.check(Zn(1,r)),e.max=(...r)=>e.check(Mo(...r)),e.size=(...r)=>e.check(Pi(...r))});function wM(e,t){return new UI({type:"set",valueType:e,...G.normalizeParams(t)})}var Tl=E("ZodEnum",(e,t)=>{m2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(a,n,o)=>MS(e,a,n,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(a,n)=>{let o={};for(let i of a)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Tl({...t,checks:[],...G.normalizeParams(n),entries:o})},e.exclude=(a,n)=>{let o={...t.entries};for(let i of a)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new Tl({...t,checks:[],...G.normalizeParams(n),entries:o})}});function rg(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Tl({type:"enum",entries:r,...G.normalizeParams(t)})}function SM(e,t){return new Tl({type:"enum",entries:e,...G.normalizeParams(t)})}var BI=E("ZodLiteral",(e,t)=>{h2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>RS(e,r,a,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 IM(e,t){return new BI({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(t)})}var jI=E("ZodFile",(e,t)=>{g2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>NS(e,r,a,n),e.min=(r,a)=>e.check(Zn(r,a)),e.max=(r,a)=>e.check(Mo(r,a)),e.mime=(r,a)=>e.check(yl(Array.isArray(r)?r:[r],a))});function kM(e){return pS(jI,e)}var VI=E("ZodTransform",(e,t)=>{v2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>BS(e,r,a,n),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new To(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(G.issue(o,r.value,t));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(G.issue(i))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function ng(e){return new VI({type:"transform",transform:e})}var ag=E("ZodOptional",(e,t)=>{Hh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>C0(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function hd(e){return new ag({type:"optional",innerType:e})}var ZI=E("ZodExactOptional",(e,t)=>{y2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>C0(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function qI(e){return new ZI({type:"optional",innerType:e})}var GI=E("ZodNullable",(e,t)=>{x2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>JS(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function gd(e){return new GI({type:"nullable",innerType:e})}function _M(e){return hd(gd(e))}var HI=E("ZodDefault",(e,t)=>{b2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>XS(e,r,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function WI(e,t){return new HI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var JI=E("ZodPrefault",(e,t)=>{w2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>YS(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function KI(e,t){return new JI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():G.shallowClone(t)}})}var og=E("ZodNonOptional",(e,t)=>{S2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>KS(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function XI(e,t){return new og({type:"nonoptional",innerType:e,...G.normalizeParams(t)})}var YI=E("ZodSuccess",(e,t)=>{I2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>OS(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function CM(e){return new YI({type:"success",innerType:e})}var QI=E("ZodCatch",(e,t)=>{k2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>QS(e,r,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ek(e,t){return new QI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var tk=E("ZodNaN",(e,t)=>{_2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>DS(e,r,a,n)});function TM(e){return dS(tk,e)}var ig=E("ZodPipe",(e,t)=>{C2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>eI(e,r,a,n),e.in=t.in,e.out=t.out});function vd(e,t){return new ig({type:"pipe",in:e,out:t})}var sg=E("ZodCodec",(e,t)=>{ig.init(e,t),ld.init(e,t)});function $M(e,t,r){return new sg({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var rk=E("ZodReadonly",(e,t)=>{T2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>tI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function nk(e){return new rk({type:"readonly",innerType:e})}var ak=E("ZodTemplateLiteral",(e,t)=>{$2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>zS(e,r,a,n)});function PM(e,t){return new ak({type:"template_literal",parts:e,...G.normalizeParams(t)})}var ok=E("ZodLazy",(e,t)=>{A2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>nI(e,r,a,n),e.unwrap=()=>e._zod.def.getter()});function ik(e){return new ok({type:"lazy",getter:e})}var sk=E("ZodPromise",(e,t)=>{L2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>rI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function LM(e){return new sk({type:"promise",innerType:e})}var lk=E("ZodFunction",(e,t)=>{P2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>US(e,r,a,n)});function AM(e){return new lk({type:"function",input:Array.isArray(e?.input)?NI(e?.input):e?.input??bd(Ei()),output:e?.output??Ei()})}var kd=E("ZodCustom",(e,t)=>{E2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,a,n)=>FS(e,r,a,n)});function EM(e){let t=new at({check:"custom"});return t._zod.check=e,t}function MM(e,t){return mS(kd,e??(()=>!0),t)}function uk(e,t={}){return hS(kd,e,t)}function ck(e){return gS(e)}var RM=vS,DM=yS;function zM(e,t={}){let r=new kd({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...G.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:r,path:[...r._zod.def.path??[]]})},r}var NM=(...e)=>xS({Codec:sg,Boolean:Al,String:$l},...e);function OM(e){let t=ik(()=>tg([R0(e),wI(),SI(),CI(),bd(t),OI(R0(),t)]));return t}function FM(e,t){return vd(ng(e),t)}var DK={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 zK(e){kt({customError:e})}function NK(){return kt().customError}var dk;dk||(dk={});var re={...pd,...P0,iso:Cl},OK=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 FK(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 UK(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 a=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===a){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 UM(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return re.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 re.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let o=UK(n,t),i=Qt(o,t);return t.refs.set(n,i),t.processing.delete(n),i}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 re.null();if(n.length===0)return re.never();if(n.length===1)return re.literal(n[0]);if(n.every(i=>typeof i=="string"))return re.enum(n);let o=n.map(i=>re.literal(i));return o.length<2?o[0]:re.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return re.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let i={...e,type:o};return UM(i,t)});return n.length===0?re.never():n.length===1?n[0]:re.union(n)}if(!r)return re.any();let a;switch(r){case"string":{let n=re.string();if(e.format){let o=e.format;o==="email"?n=n.check(re.email()):o==="uri"||o==="uri-reference"?n=n.check(re.url()):o==="uuid"||o==="guid"?n=n.check(re.uuid()):o==="date-time"?n=n.check(re.iso.datetime()):o==="date"?n=n.check(re.iso.date()):o==="time"?n=n.check(re.iso.time()):o==="duration"?n=n.check(re.iso.duration()):o==="ipv4"?n=n.check(re.ipv4()):o==="ipv6"?n=n.check(re.ipv6()):o==="mac"?n=n.check(re.mac()):o==="cidr"?n=n.check(re.cidrv4()):o==="cidr-v6"?n=n.check(re.cidrv6()):o==="base64"?n=n.check(re.base64()):o==="base64url"?n=n.check(re.base64url()):o==="e164"?n=n.check(re.e164()):o==="jwt"?n=n.check(re.jwt()):o==="emoji"?n=n.check(re.emoji()):o==="nanoid"?n=n.check(re.nanoid()):o==="cuid"?n=n.check(re.cuid()):o==="cuid2"?n=n.check(re.cuid2()):o==="ulid"?n=n.check(re.ulid()):o==="xid"?n=n.check(re.xid()):o==="ksuid"&&(n=n.check(re.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))),a=n;break}case"number":case"integer":{let n=r==="integer"?re.number().int():re.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)),a=n;break}case"boolean":{a=re.boolean();break}case"null":{a=re.null();break}case"object":{let n={},o=e.properties||{},i=new Set(e.required||[]);for(let[l,u]of Object.entries(o)){let c=Qt(u,t);n[l]=i.has(l)?c:c.optional()}if(e.propertyNames){let l=Qt(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Qt(e.additionalProperties,t):re.any();if(Object.keys(n).length===0){a=re.record(l,u);break}let c=re.object(n).passthrough(),d=re.looseRecord(l,u);a=re.intersection(c,d);break}if(e.patternProperties){let l=e.patternProperties,u=Object.keys(l),c=[];for(let f of u){let p=Qt(l[f],t),g=re.string().regex(new RegExp(f));c.push(re.looseRecord(g,p))}let d=[];if(Object.keys(n).length>0&&d.push(re.object(n).passthrough()),d.push(...c),d.length===0)a=re.object({}).passthrough();else if(d.length===1)a=d[0];else{let f=re.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)f=re.intersection(f,d[p]);a=f}break}let s=re.object(n);e.additionalProperties===!1?a=s.strict():typeof e.additionalProperties=="object"?a=s.catchall(Qt(e.additionalProperties,t)):a=s.passthrough();break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let i=n.map(l=>Qt(l,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?Qt(o,t):void 0;s?a=re.tuple(i).rest(s):a=re.tuple(i),typeof e.minItems=="number"&&(a=a.check(re.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(re.maxLength(e.maxItems)))}
102else if(Array.isArray(o)){let i=o.map(l=>Qt(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Qt(e.additionalItems,t):void 0;s?a=re.tuple(i).rest(s):a=re.tuple(i),typeof e.minItems=="number"&&(a=a.check(re.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(re.maxLength(e.maxItems)))}else if(o!==void 0){let i=Qt(o,t),s=re.array(i);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),a=s}else a=re.array(re.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(a=a.describe(e.description)),e.default!==void 0&&(a=a.default(e.default)),a}function Qt(e,t){if(typeof e=="boolean")return e?re.any():re.never();let r=UM(e,t),a=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>Qt(u,t)),l=re.union(s);r=a?re.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>Qt(u,t)),l=re.xor(s);r=a?re.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=a?r:re.any();else{let s=a?r:Qt(e.allOf[0],t),l=a?0:1;for(let u=l;u<e.allOf.length;u++)s=re.intersection(s,Qt(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=re.nullable(r)),e.readOnly===!0&&(r=re.readonly(r));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(n[s]=e[s]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let s of i)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))OK.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function BM(e,t){if(typeof e=="boolean")return e?re.any():re.never();let r=FK(e,t?.defaultTarget),a=e.$defs||e.definitions||{},n={version:r,defs:a,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Gt};return Qt(e,n)}var fk={};vr(fk,{bigint:()=>ZK,boolean:()=>VK,date:()=>qK,number:()=>jK,string:()=>BK});function BK(e){return z2($l,e)}function jK(e){return Z2(Ll,e)}function VK(e){return X2(Al,e)}function ZK(e){return Q2(El,e)}function qK(e){return cS(xd,e)}kt(Wh());var HK=Object.defineProperty,WK=(e,t)=>{for(var r in t)HK(e,r,{get:t[r],enumerable:!0})},JK="AI_InvalidArgumentError",KK=`vercel.ai.error.${JK}`,XK=Symbol.for(KK),YK;YK=XK;var QK="AI_InvalidStreamPartError",eX=`vercel.ai.error.${QK}`,tX=Symbol.for(eX),rX;rX=tX;var nX="AI_InvalidToolApprovalError",aX=`vercel.ai.error.${nX}`,oX=Symbol.for(aX),iX;iX=oX;var sX="AI_InvalidToolApprovalSignatureError",lX=`vercel.ai.error.${sX}`,uX=Symbol.for(lX),cX;cX=uX;var dX="AI_InvalidToolInputError",fX=`vercel.ai.error.${dX}`,pX=Symbol.for(fX),mX;mX=pX;var hX="AI_ToolCallNotFoundForApprovalError",gX=`vercel.ai.error.${hX}`,vX=Symbol.for(gX),yX;yX=vX;var xX="AI_MissingToolResultsError",bX=`vercel.ai.error.${xX}`,wX=Symbol.for(bX),SX;SX=wX;var IX="AI_NoImageGeneratedError",kX=`vercel.ai.error.${IX}`,_X=Symbol.for(kX),CX;CX=_X;var VM="AI_NoObjectGeneratedError",ZM=`vercel.ai.error.${VM}`,TX=Symbol.for(ZM),qM,No=class extends Ue{constructor({message:e="No object generated.",cause:t,text:r,response:a,usage:n,finishReason:o}){super({name:VM,message:e,cause:t}),this[qM]=!0,this.text=r,this.response=a,this.usage=n,this.finishReason=o}static isInstance(e){return Ue.hasMarker(e,ZM)}};qM=TX;var $X="AI_NoOutputGeneratedError",PX=`vercel.ai.error.${$X}`,LX=Symbol.for(PX),AX;AX=LX;var EX="AI_NoSpeechGeneratedError",MX=`vercel.ai.error.${EX}`,RX=Symbol.for(MX),DX;DX=RX;var zX="AI_NoTranscriptGeneratedError",NX=`vercel.ai.error.${zX}`,OX=Symbol.for(NX),FX;FX=OX;var UX="AI_NoVideoGeneratedError",BX=`vercel.ai.error.${UX}`,jX=Symbol.for(BX),VX;VX=jX;var ZX="AI_NoSuchToolError",qX=`vercel.ai.error.${ZX}`,GX=Symbol.for(qX),HX;HX=GX;var WX="AI_ToolCallRepairError",JX=`vercel.ai.error.${WX}`,KX=Symbol.for(JX),XX;XX=KX;var GM="AI_UIMessageStreamError",HM=`vercel.ai.error.${GM}`,YX=Symbol.for(HM),WM,Ml=class extends Ue{constructor({chunkType:e,chunkId:t,message:r}){super({name:GM,message:r}),this[WM]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return Ue.hasMarker(e,HM)}};WM=YX;var QX="AI_InvalidDataContentError",eY=`vercel.ai.error.${QX}`,tY=Symbol.for(eY),rY;rY=tY;var nY="AI_InvalidMessageRoleError",aY=`vercel.ai.error.${nY}`,oY=Symbol.for(aY),iY;iY=oY;var sY="AI_MessageConversionError",lY=`vercel.ai.error.${sY}`,uY=Symbol.for(lY),cY;cY=uY;var dY="AI_RetryError",fY=`vercel.ai.error.${dY}`,pY=Symbol.for(fY),mY;mY=pY;var hY="6.0.218",gY=async({url:e,maxBytes:t,abortSignal:r})=>{var a;let n=e.toString();try{let o=vh({},`ai-sdk/${hY}`,HL()),i=await ZL({url:n,headers:o,abortSignal:r});if(!i.ok)throw await gh(i),new Sr({url:n,statusCode:i.status,statusText:i.statusText});return{data:await qL({response:i,url:n,maxBytes:t??p4}),mediaType:(a=i.headers.get("content-type"))!=null?a:void 0}}catch(o){throw Sr.isInstance(o)?o:new Sr({url:n,cause:o})}};
102var JM=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 Ri=v.lazy(()=>v.union([v.null(),v.string(),v.number(),v.boolean(),v.record(v.string(),Ri.optional()),v.array(Ri)])),de=v.record(v.string(),v.record(v.string(),Ri.optional())),KM=v.object({type:v.literal("text"),text:v.string(),providerOptions:de.optional()}),vY=v.object({type:v.literal("image"),image:v.union([JM,v.instanceof(URL)]),mediaType:v.string().optional(),providerOptions:de.optional()}),XM=v.object({type:v.literal("file"),data:v.union([JM,v.instanceof(URL)]),filename:v.string().optional(),mediaType:v.string(),providerOptions:de.optional()}),yY=v.object({type:v.literal("reasoning"),text:v.string(),providerOptions:de.optional()}),xY=v.object({type:v.literal("tool-call"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerOptions:de.optional(),providerExecuted:v.boolean().optional()}),bY=v.discriminatedUnion("type",[v.object({type:v.literal("text"),value:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("json"),value:Ri,providerOptions:de.optional()}),v.object({type:v.literal("execution-denied"),reason:v.string().optional(),providerOptions:de.optional()}),v.object({type:v.literal("error-text"),value:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("error-json"),value:Ri,providerOptions:de.optional()}),v.object({type:v.literal("content"),value:v.array(v.union([v.object({type:v.literal("text"),text:v.string(),providerOptions:de.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:de.optional()}),v.object({type:v.literal("file-url"),url:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:de.optional()}),v.object({type:v.literal("image-data"),data:v.string(),mediaType:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("image-url"),url:v.string(),providerOptions:de.optional()}),v.object({type:v.literal("image-file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:de.optional()}),v.object({type:v.literal("custom"),providerOptions:de.optional()})]))})]),YM=v.object({type:v.literal("tool-result"),toolCallId:v.string(),toolName:v.string(),output:bY,providerOptions:de.optional()}),wY=v.object({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string()}),SY=v.object({type:v.literal("tool-approval-response"),approvalId:v.string(),approved:v.boolean(),reason:v.string().optional()}),IY=v.object({role:v.literal("system"),content:v.string(),providerOptions:de.optional()}),kY=v.object({role:v.literal("user"),content:v.union([v.string(),v.array(v.union([KM,vY,XM]))]),providerOptions:de.optional()}),_Y=v.object({role:v.literal("assistant"),content:v.union([v.string(),v.array(v.union([KM,XM,yY,xY,YM,wY]))]),providerOptions:de.optional()}),CY=v.object({role:v.literal("tool"),content:v.array(v.union([YM,SY])),providerOptions:de.optional()}),JTe=v.union([IY,kY,_Y,CY]);function QM(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 a in t)if(!(a==="__proto__"||a==="constructor"||a==="prototype")&&Object.prototype.hasOwnProperty.call(t,a)){let n=t[a];if(n===void 0)continue;let o=a in e?e[a]:void 0,i=n!==null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof Date)&&!(n instanceof RegExp),s=o!=null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);i&&s?r[a]=QM(o,n):r[a]=n}return r}var KTe=new TextEncoder;var TY={};WK(TY,{array:()=>AY,choice:()=>EY,json:()=>MY,object:()=>LY,text:()=>PY});function $Y(e){let t=["ROOT"],r=-1,a=null,n=0;function o(c){return c>="0"&&c<="9"||c>="A"&&c<="F"||c>="a"&&c<="f"}function i(c,d,f){switch(c){case'"':{r=d,t.pop(),t.push(f),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=d,a=d,t.pop(),t.push(f),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(f),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(f),t.push("INSIDE_NUMBER");break}case"{":{r=d,t.pop(),t.push(f),t.push("INSIDE_OBJECT_START");break}case"[":{r=d,t.pop(),t.push(f),t.push("INSIDE_ARRAY_START");break}}}function s(c,d){switch(c){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=d,t.pop();break}}}function l(c,d){switch(c){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=d,t.pop();break}}}for(let c=0;c<e.length;c++){let d=e[c];switch(t[t.length-1]){case"ROOT":i(d,c,"FINISH");break;case"INSIDE_OBJECT_START":{switch(d){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=c,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{d==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{d==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{d===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{i(d,c,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(d,c);break}case"INSIDE_STRING":{switch(d){case'"':{t.pop(),r=c;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=c}break}case"INSIDE_ARRAY_START":{d==="]"?(r=c,t.pop()):(r=c,i(d,c,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(d){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=c,t.pop();break}default:{r=c;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{i(d,c,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),d==="u"?(n=0,t.push("INSIDE_STRING_UNICODE_ESCAPE")):r=c;break}case"INSIDE_STRING_UNICODE_ESCAPE":{o(d)&&(n++,n===4&&(t.pop(),r=c));break}case"INSIDE_NUMBER":{switch(d){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=c;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(d,c),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(d,c);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(d,c);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(d,c);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let p=e.substring(a,c+1);!"false".startsWith(p)&&!"true".startsWith(p)&&!"null".startsWith(p)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(d,c):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(d,c)):r=c;break}}}let u=e.slice(0,r+1);for(let c=t.length-1;c>=0;c--)switch(t[c]){case"INSIDE_STRING":{u+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{u+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{u+="]";break}case"INSIDE_LITERAL":{let f=e.substring(a,e.length);"true".startsWith(f)?u+="true".slice(f.length):"false".startsWith(f)?u+="false".slice(f.length):"null".startsWith(f)&&(u+="null".slice(f.length))}}return u}async function Td(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await _a({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await _a({text:$Y(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var PY=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),LY=({schema:e,name:t,description:r})=>{let a=bh(e);return{name:"object",responseFormat:Bn(a.jsonSchema).then(n=>({type:"json",schema:n,...t!=null&&{name:t},...r!=null&&{description:r}})),async parseCompleteOutput({text:n},o){let i=await _a({text:n});if(!i.success)throw new No({message:"No object generated: could not parse the response.",cause:i.error,text:n,response:o.response,usage:o.usage,finishReason:o.finishReason});let s=await rl({value:i.value,schema:a});if(!s.success)throw new No({message:"No object generated: response did not match sc
102hema.",cause:s.error,text:n,response:o.response,usage:o.usage,finishReason:o.finishReason});return s.value},async parsePartialOutput({text:n}){let o=await Td(n);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:o.value}}},createElementStreamTransform(){}}},AY=({element:e,name:t,description:r})=>{let a=bh(e);return{name:"array",responseFormat:Bn(a.jsonSchema).then(n=>{let{$schema:o,...i}=n;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}}),async parseCompleteOutput({text:n},o){let i=await _a({text:n});if(!i.success)throw new No({message:"No object generated: could not parse the response.",cause:i.error,text:n,response:o.response,usage:o.usage,finishReason:o.finishReason});let s=i.value;if(s==null||typeof s!="object"||!("elements"in s)||!Array.isArray(s.elements))throw new No({message:"No object generated: response did not match schema.",cause:new Nn({value:s,cause:"response must be an object with an elements array"}),text:n,response:o.response,usage:o.usage,finishReason:o.finishReason});for(let l of s.elements){let u=await rl({value:l,schema:a});if(!u.success)throw new No({message:"No object generated: response did not match schema.",cause:u.error,text:n,response:o.response,usage:o.usage,finishReason:o.finishReason})}return s.elements},async parsePartialOutput({text:n}){let o=await Td(n);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let i=o.value;if(i==null||typeof i!="object"||!("elements"in i)||!Array.isArray(i.elements))return;let s=o.state==="repaired-parse"&&i.elements.length>0?i.elements.slice(0,-1):i.elements,l=[];for(let u of s){let c=await rl({value:u,schema:a});c.success&&l.push(c.value)}return{partial:l}}}},createElementStreamTransform(){let n=0;return new TransformStream({transform({partialOutput:o},i){if(o!=null)for(;n<o.length;n++)i.enqueue(o[n])}})}}},EY=({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:a},n){let o=await _a({text:a});if(!o.success)throw new No({message:"No object generated: could not parse the response.",cause:o.error,text:a,response:n.response,usage:n.usage,finishReason:n.finishReason});let i=o.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string"||!e.includes(i.result))throw new No({message:"No object generated: response did not match schema.",cause:new Nn({value:i,cause:"response must be an object that contains a choice value."}),text:a,response:n.response,usage:n.usage,finishReason:n.finishReason});return i.result},async parsePartialOutput({text:a}){let n=await Td(a);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let o=n.value;if(o==null||typeof o!="object"||!("result"in o)||typeof o.result!="string")return;let i=e.filter(s=>s.startsWith(o.result));return n.state==="successful-parse"?i.includes(o.result)?{partial:o.result}:void 0:i.length===1?{partial:i[0]}:void 0}}},createElementStreamTransform(){}}),MY=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:r},a){let n=await _a({text:r});if(!n.success)throw new No({message:"No object generated: could not parse the response.",cause:n.error,text:r,response:a.response,usage:a.usage,finishReason:a.finishReason});return n.value},async parsePartialOutput({text:r}){let a=await Td(r);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return a.value===void 0?void 0:{partial:a.value}}},createElementStreamTransform(){}});var e$e=ka({prefix:"aitxt",size:24});var r$e=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 _d=v.record(v.string(),Ri.optional()),RY=yh(()=>Gc(v.union([v.strictObject({type:v.literal("text-start"),id:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("text-delta"),id:v.string(),delta:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("text-end"),id:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("error"),errorText:v.string()}),v.strictObject({type:v.literal("tool-input-start"),toolCallId:v.string(),toolName:v.string(),providerExecuted:v.boolean().optional(),providerMetadata:de.optional(),toolMetadata:_d.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-input-delta"),toolCallId:v.string(),inputTextDelta:v.string()}),v.strictObject({type:v.literal("tool-input-available"),toolCallId:v.string(),toolName:v.string(),input
106:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:de.optional(),toolMetadata:_d.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-input-error"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:de.optional(),toolMetadata:_d.optional(),dynamic:v.boolean().optional(),errorText:v.string(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string(),signature:v.string().optional()}),v.strictObject({type:v.literal("tool-output-available"),toolCallId:v.string(),output:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:de.optional(),toolMetadata:_d.optional(),dynamic:v.boolean().optional(),preliminary:v.boolean().optional()}),v.strictObject({type:v.literal("tool-output-error"),toolCallId:v.string(),errorText:v.string(),providerExecuted:v.boolean().optional(),providerMetadata:de.optional(),toolMetadata:_d.optional(),dynamic:v.boolean().optional()}),v.strictObject({type:v.literal("tool-output-denied"),toolCallId:v.string()}),v.strictObject({type:v.literal("reasoning-start"),id:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("reasoning-delta"),id:v.string(),delta:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("reasoning-end"),id:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:de.optional()}),v.strictObject({type:v.literal("file"),url:v.string(),mediaType:v.string(),providerMetadata:de.optional()}),v.strictObject({type:v.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:v.string().optional(),data:v.unknown(),transient:v.boolean().optional()}),v.strictObject({type:v.literal("start-step")}),v.strictObject({type:v.literal("finish-step")}),v.strictObject({type:v.literal("start"),messageId:v.string().optional(),messageMetadata:v.unknown().optional()}),v.strictObject({type:v.literal("finish"),finishReason:v.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:v.unknown().optional()}),v.strictObject({type:v.literal("abort"),reason:v.string().optional()}),v.strictObject({type:v.literal("message-metadata"),messageMetadata:v.unknown()})])));function DY(e){return e.type.startsWith("data-")}function Cd(){return Object.create(null)}function pk(e){return e.type.startsWith("tool-")}function zY(e){return e.type==="dynamic-tool"}function Cn(e){return pk(e)||zY(e)}function jM(e){return e.type.split("-").slice(1).join("-")}function NY({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:Cd(),activeReasoningParts:Cd(),partialToolCalls:Cd()}}function OY({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:a,onError:n,onToolCall:o,onData:i}){return e.pipeThrough(new TransformStream({async transform(s,l){await a(async({state:u,write:c})=>{var d,f,p,g;function w(x){let _=u.message.parts.filter(Cn).find(P=>P.toolCallId===x);if(_==null)throw new Ml({chunkType:"tool-invocation",chunkId:x,message:`No tool invocation found for tool call ID "${x}".`});return _}function y(x){var C;let _=u.message.parts.find(N=>pk(N)&&N.toolCallId===x.toolCallId),P=x,D=_;if(_!=null){_.state=x.state,D.input=P.input,D.output=P.output,D.errorText=P.errorText,D.rawInput=P.rawInput,D.preliminary=P.preliminary,x.title!==void 0&&(D.title=x.title),x.toolMetadata!==void 0&&(D.toolMetadata=x.toolMetadata),D.providerExecuted=(C=P.providerExecuted)!=null?C:_.providerExecuted;let N=P.providerMetadata;if(N!=null)if(x.state==="output-available"||x.state==="output-error"){let A=_;A.resultProviderMetadata=N}else _.callProviderMetadata=N}else u.message.parts.push({type:`tool-${x.toolName}`,toolCallId:x.toolCallId,state:x.state,title:x.title,...x.toolMetadata!==void 0?{toolMetadata:x.toolMetadata}:{},input:P.input,output:P.output,rawInput:P.rawInput,errorText:P.errorText,providerExecuted:P.providerExecuted,preliminary:P.preliminary,...P.providerMetadata!=null&&(x.state==="output-available"||x.state==="output-error")?{resultProviderMetadata:P.providerMetadata}:{},...P.providerMetadata!=null&&!(x.state==="output-available"||x.state==="output-error")?{c
106allProviderMetadata:P.providerMetadata}:{}})}function I(x){var C,_;let P=u.message.parts.find(A=>A.type==="dynamic-tool"&&A.toolCallId===x.toolCallId),D=x,N=P;if(P!=null){P.state=x.state,N.toolName=x.toolName,N.input=D.input,N.output=D.output,N.errorText=D.errorText,N.rawInput=(C=D.rawInput)!=null?C:N.rawInput,N.preliminary=D.preliminary,x.title!==void 0&&(N.title=x.title),x.toolMetadata!==void 0&&(N.toolMetadata=x.toolMetadata),N.providerExecuted=(_=D.providerExecuted)!=null?_:P.providerExecuted;let A=D.providerMetadata;if(A!=null)if(x.state==="output-available"||x.state==="output-error"){let O=P;O.resultProviderMetadata=A}else P.callProviderMetadata=A}else u.message.parts.push({type:"dynamic-tool",toolName:x.toolName,toolCallId:x.toolCallId,state:x.state,input:D.input,output:D.output,errorText:D.errorText,preliminary:D.preliminary,providerExecuted:D.providerExecuted,title:x.title,...x.toolMetadata!==void 0?{toolMetadata:x.toolMetadata}:{},...D.providerMetadata!=null&&(x.state==="output-available"||x.state==="output-error")?{resultProviderMetadata:D.providerMetadata}:{},...D.providerMetadata!=null&&!(x.state==="output-available"||x.state==="output-error")?{c
vendor: 7,285 bytes, line 106
106allProviderMetadata:D.providerMetadata}:{}})}async function S(x){if(x!=null){let C=u.message.metadata!=null?QM(u.message.metadata,x):x;t!=null&&await wh({value:C,schema:t,context:{field:"message.metadata",entityId:u.message.id}}),u.message.metadata=C}}switch(s.type){case"text-start":{let x={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeTextParts[s.id]=x,u.message.parts.push(x),c();break}case"text-delta":{let x=u.activeTextParts[s.id];if(x==null)throw new Ml({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.`});x.text+=s.delta,x.providerMetadata=(d=s.providerMetadata)!=null?d:x.providerMetadata,c();break}case"text-end":{let x=u.activeTextParts[s.id];if(x==null)throw new Ml({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.`});x.state="done",x.providerMetadata=(f=s.providerMetadata)!=null?f:x.providerMetadata,delete u.activeTextParts[s.id],c();break}case"reasoning-start":{let x={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeReasoningParts[s.id]=x,u.message.parts.push(x),c();break}case"reasoning-delta":{let x=u.activeReasoningParts[s.id];if(x==null)throw new Ml({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.`});x.text+=s.delta,x.providerMetadata=(p=s.providerMetadata)!=null?p:x.providerMetadata,c();break}case"reasoning-end":{let x=u.activeReasoningParts[s.id];if(x==null)throw new Ml({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.`});x.providerMetadata=(g=s.providerMetadata)!=null?g:x.providerMetadata,x.state="done",delete u.activeReasoningParts[s.id],c();break}case"file":{u.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url,...s.providerMetadata!=null?{providerMetadata:s.providerMetadata}:{}}),c();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),c();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),c();break}case"tool-input-start":{let x=u.message.parts.filter(pk);u.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:x.length,dynamic:s.dynamic,title:s.title,toolMetadata:s.toolMetadata},s.dynamic?I({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}):y({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}),c();break}case"tool-input-delta":{let x=u.partialToolCalls[s.toolCallId];if(x==null)throw new Ml({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.`});x.text+=s.inputTextDelta;let{value:C}=await Td(x.text);x.dynamic?I({toolCallId:s.toolCallId,toolName:x.toolName,state:"input-streaming",input:C,title:x.title,toolMetadata:x.toolMetadata}):y({toolCallId:s.toolCallId,toolName:x.toolName,state:"input-streaming",input:C,title:x.title,toolMetadata:x.toolMetadata}),c();break}case"tool-input-available":{s.dynamic?I({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}):y({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}),c(),o&&!s.providerExecuted&&await o({toolCall:s});break}case"tool-input-error":{let x=u.message.parts.filter(Cn).find(_=>_.toolCallId===s.toolCallId);(x!=null?x.type==="dynamic-tool":!!s.dynamic)?I({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,toolMetadata:s.toolMetadata}):y({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:void 0,rawInput:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,toolMetadata:s.toolMetadata}),c();break}case"tool-approval-request":{let x=w(s.toolCallId);x.state="approval-requested",x.approval={id:s.approvalId,...s.signature!=null?{signature:s.signature}:{}},c();break}case"tool-output-denied":{let x=w(s.toolCallId);x.state="output-denied",c();break}case"tool-output-available":{let x=w(s.toolCallId);x.type==="dynamic-tool"?I({toolCallId:s.toolCallId,toolName:x.toolName,state:"output-available",input:x.input,output:s.output,preliminary:s.preliminary,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:x.title,toolMetadata:x.toolMetadata}):y({toolCallId:s.toolCallId,toolName:jM(x),state:"output-available",input:x.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary,providerMetadata:s.providerMetadata,title:x.title,toolMetadata:x.toolMetadata}),c();break}case"tool-output-error":{let x=w(s.toolCallId);x.type==="dynamic-tool"?I({toolCallId:s.toolCallId,toolName:x.toolName,state:"output-error",input:x.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:x.title,toolMetadata:x.toolMetadata}):y({toolCallId:s.toolCallId,toolName:jM(x),state:"output-error",input:x.input,rawInput:x.rawInput,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:x.title,toolMetadata:x.toolMetadata}),c();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts=Cd(),u.activeReasoningParts=Cd();break}case"start":{s.messageId!=null&&(u.message.id=s.messageId),await S(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&c();break}case"finish":{s.finishReason!=null&&(u.finishReason=s.finishReason),await S(s.messageMetadata),s.messageMetadata!=null&&c();break}case"message-metadata":{await S(s.messageMetadata),s.messageMetadata!=null&&c();break}case"error":{n?.(new Error(s.errorText));break}default:if(DY(s)){if(r?.[s.type]!=null){let _=u.message.parts.findIndex(D=>"id"in D&&"data"in D&&D.id===s.id&&D.type===s.type),P=_>=0?_:u.message.parts.length;await wh({value:s.data,schema:r[s.type],context:{field:`message.parts[${P}].data`,entityName:s.type,entityId:s.id}})}let x=s;if(x.transient){i?.(x);break}let C=x.id!=null?u.message.parts.find(_=>x.type===_.type&&x.id===_.id):void 0;C!=null?C.data=x.data:u.message.parts.push(x),i?.(x),c()}}l.enqueue(s)})}}))}
106async function FY({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:a}=await r.read();if(a)break}}catch(a){t?.(a)}finally{r.releaseLock()}}var i$e=ka({prefix:"aitxt",size:24});var Cr=v.record(v.string(),Ri.optional()),u$e=yh(()=>Gc(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:de.optional()}),v.object({type:v.literal("reasoning"),text:v.string(),state:v.enum(["streaming","done"]).optional(),providerMetadata:de.optional()}),v.object({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:de.optional()}),v.object({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:de.optional()}),v.object({type:v.literal("file"),mediaType:v.string(),filename:v.string().optional(),url:v.string(),providerMetadata:de.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:Cr.optional(),state:v.literal("input-streaming"),input:v.unknown().optional(),providerExecuted:v.boolean().optional(),callProviderMetadata:de.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:Cr.optional(),state:v.literal("input-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.never().optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),toolMetadata:Cr.optional(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.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:Cr.optional(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.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:Cr.optional(),state:v.literal("output-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:de.optional(),resultProviderMetadata:de.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:Cr.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:de.optional(),resultProviderMetadata:de.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:Cr.optional(),state:v.literal("output-denied"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.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:Cr.optional(),state:v.literal("input-streaming"),providerExecuted:v.boolean().optional(),callProviderMetadata:de.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:Cr.optional(),state:v.literal("input-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.never().optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),toolMetadata:Cr.optional(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.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:Cr.optional(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.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:Cr.optional(),state:v.literal("output-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:de.optional(),resultProviderMetadata:de.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:Cr.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:de.optional(),resultProviderMetadata:de.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:Cr.optional(),state:v.literal("output-denied"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:de.optional(),approval:v.object({id:v.string(),approved:v.literal(!1),reason:v.string().optional(),signature:v.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var d$e=ka({prefix:"aiobj",size:24});function eR(e){return({url:t,abortSignal:r})=>gY({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(a){r(a)}}),this.processQueue()})}};var p$e=ka({prefix:"aiobj",size:24});var m$e=eR();var BY="AI_NoSuchProviderError",jY=`vercel.ai.error.${BY}`,VY=Symbol.for(jY),ZY;ZY=VY;var h$e=eR();async function qY(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:a}=t,n=await new Promise((o,i)=>{let s=new FileReader;s.onload=l=>{var u;o((u=l.target)==null?void 0:u.result)},s.onerror=l=>i(l),s.readAsDataURL(t)});return{type:"file",mediaType:a,filename:r,url:n}}))}var GY=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:a,fetch:n,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=r,this.body=a,this.fetch=n,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var r,a,n,o,i;let s=await Bn(this.body),l=await Bn(this.headers),u=await Bn(this.credentials),c={...Co(l),...Co(t.headers)},d=await((r=this.prepareSendMessagesRequest)==null?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:c,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),f=(a=d?.api)!=null?a:this.api,p=d?.headers!==void 0?Co(d.headers):c,g=d?.body!==void 0?d.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},w=(n=d?.credentials)!=null?n:u,I=await((o=this.fetch)!=null?o:globalThis.fetch)(f,{method:"POST",headers:{"Content-Type":"application/json",...p},body:JSON.stringify(g),credentials:w,signal:e});if(!I.ok)throw new Error((i=await I.text())!=null?i:"Failed to fetch the chat response.");if(!I.body)throw new Error("The response body is empty.");return this.processResponseStream(I.body)}async reconnectToStream(e){var t,r,a,n,o;let i=await Bn(this.body),s=await Bn(this.headers),l=await Bn(this.credentials),u={...Co(s),...Co(e.headers)},c=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:u,credentials:l,requestMetadata:e.metadata})),d=(r=c?.api)!=null?r:`${this.api}/${e.chatId}/stream`,f=c?.headers!==void 0?Co(c.headers):u,p=(a=c?.credentials)!=null?a:l,w=await((n=this.fetch)!=null?n:globalThis.fetch)(d,{method:"GET",headers:f,credentials:p});if(w.status===204)return null;if(!w.ok)throw new Error((o=await w.text())!=null?o:"Failed to fetch the chat response.");if(!w.body)throw new Error("The response body is empty.");return this.processResponseStream(w.body)}},mk=class extends GY{constructor(e={}){super(e)}processResponseStream(e){return YL({stream:e,schema:RY}).pipeThrough(new TransformStream({async transform(t,r){if(!t.success)throw t.error;r.enqueue(t.value)}}))}},tR=class{constructor({generateId:e=GL,id:t=e(),transport:r=new mk,messageMetadataSchema:a,dataPartSchemas:n,state:o,onError:i,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new UY,this.sendMessage=async(d,f)=>{var p,g,w,y;
vendor: 4,817 bytes, line 106
106if(d==null){await this.makeRequest({trigger:"submit-message",messageId:(p=this.lastMessage)==null?void 0:p.id,...f});return}let I;if("text"in d||"files"in d?I={parts:[...Array.isArray(d.files)?d.files:await qY(d.files),..."text"in d&&d.text!=null?[{type:"text",text:d.text}]:[]]}:I=d,d.messageId!=null){let S=this.state.messages.findIndex(x=>x.id===d.messageId);if(S===-1)throw new Error(`message with id ${d.messageId} not found`);if(this.state.messages[S].role!=="user")throw new Error(`message with id ${d.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,S+1),this.state.replaceMessage(S,{...I,id:d.messageId,role:(g=I.role)!=null?g:"user",metadata:d.metadata})}else this.state.pushMessage({...I,id:(w=I.id)!=null?w:this.generateId(),role:(y=I.role)!=null?y:"user",metadata:d.metadata});await this.makeRequest({trigger:"submit-message",messageId:d.messageId,...f})},this.regenerate=async({messageId:d,...f}={})=>{let p=d==null?this.state.messages.length-1:this.state.messages.findIndex(g=>g.id===d);if(p===-1)throw new Error(`message ${d} not found`);this.state.messages=this.state.messages.slice(0,this.messages[p].role==="assistant"?p:p+1),await this.makeRequest({trigger:"regenerate-message",messageId:d,...f})},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:f,reason:p,options:g})=>this.jobExecutor.run(async()=>{let w=this.state.messages,y=w[w.length-1],I=S=>Cn(S)&&S.state==="approval-requested"&&S.approval.id===d?{...S,state:"approval-responded",approval:{id:d,approved:f,reason:p}}:S;this.state.replaceMessage(w.length-1,{...y,parts:y.parts.map(I)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(I)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(S=>{var x;S&&this.makeRequest({trigger:"submit-message",messageId:(x=this.lastMessage)==null?void 0:x.id,...g})})}),this.addToolOutput=async({state:d="output-available",toolCallId:f,output:p,errorText:g,options:w})=>this.jobExecutor.run(async()=>{let y=this.state.messages,I=y[y.length-1],S=x=>Cn(x)&&x.toolCallId===f?{...x,state:d,output:p,errorText:g}:x;this.state.replaceMessage(y.length-1,{...I,parts:I.parts.map(S)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(S)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(x=>{var C;x&&this.makeRequest({trigger:"submit-message",messageId:(C=this.lastMessage)==null?void 0:C.id,...w})})}),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=a,this.dataPartSchemas=n,this.state=o,this.onError=i,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&typeof e=="object"&&"then"in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:r,body:a,messageId:n}){var o,i,s;let l;if(e==="resume-stream")try{let p=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:a});if(p==null)return;l=p}catch(p){this.onError&&p instanceof Error&&this.onError(p),this.setStatus({status:"error",error:p});return}this.setStatus({status:"submitted",error:void 0});let u=this.lastMessage,c=!1,d=!1,f=!1;try{let p={state:NY({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};p.abortController.signal.addEventListener("abort",()=>{c=!0}),this.activeResponse=p;let g;e==="resume-stream"?g=l:g=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:p.abortController.signal,metadata:t,headers:r,body:a,trigger:e,messageId:n});let w=y=>this.jobExecutor.run(()=>y({state:p.state,write:()=>{var I;this.setStatus({status:"streaming"}),p.state.message.id===((I=this.lastMessage)==null?void 0:I.id)?this.state.replaceMessage(this.state.messages.length-1,p.state.message):this.state.pushMessage(p.state.message)}}));
106await FY({stream:OY({stream:g,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:w,onError:y=>{throw y}}),onError:y=>{throw y}}),this.setStatus({status:"ready"})}catch(p){if(c||p.name==="AbortError")return c=!0,this.setStatus({status:"ready"}),null;f=!0,p instanceof TypeError&&(p.message.toLowerCase().includes("fetch")||p.message.toLowerCase().includes("network"))&&(d=!0),this.onError&&p instanceof Error&&this.onError(p),this.setStatus({status:"error",error:p})}finally{try{(i=this.onFinish)==null||i.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:c,isDisconnect:d,isError:f,finishReason:(o=this.activeResponse)==null?void 0:o.state.finishReason})}catch(p){console.error(p)}this.activeResponse=void 0}!f&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(s=this.lastMessage)==null?void 0:s.id,metadata:t,headers:r,body:a})}};function rR({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,o,i)=>o.type==="step-start"?i:n,-1),a=t.parts.slice(r+1).filter(Cn);return a.filter(n=>n.state==="approval-responded").length>0&&a.every(n=>n.state==="output-available"||n.state==="output-error"||n.state==="approval-responded")}function nR({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,o,i)=>o.type==="step-start"?i:n,-1),a=t.parts.slice(r+1).filter(Cn).filter(n=>!n.providerExecuted);return a.length>0&&a.every(n=>n.state==="output-available"||n.state==="output-error")}var sR=R(ee());var Ht=R(ee(),1);var HY={damping:.7,stiffness:.05,mass:1.25},WY=70,JY=1e3/60,KY=350,lg=!1;globalThis.document?.addEventListener("mousedown",()=>{lg=!0});globalThis.document?.addEventListener("mouseup",()=>{lg=!1});globalThis.document?.addEventListener("click",()=>{lg=!1});var oR=(e={})=>{let[t,r]=(0,Ht.useState)(!1),[a,n]=(0,Ht.useState)(e.initial!==!1),[o,i]=(0,Ht.useState)(!1),s=(0,Ht.useRef)(null);s.current=e;let l=(0,Ht.useCallback)(()=>{if(!lg)return!1;let S=window.getSelection();if(!S||!S.rangeCount)return!1;let x=S.getRangeAt(0);return x.commonAncestorContainer.contains(y.current)||y.current?.contains(x.commonAncestorContainer)},[]),u=(0,Ht.useCallback)(S=>{d.isAtBottom=S,n(S)},[]),c=(0,Ht.useCallback)(S=>{d.escapedFromLock=S,r(S)},[]),d=(0,Ht.useMemo)(()=>{let S;return{escapedFromLock:t,isAtBottom:a,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return y.current?.scrollTop??0},set scrollTop(x){y.current&&(y.current.scrollTop=x,d.ignoreScrollToTop=y.current.scrollTop)},get targetScrollTop(){return!y.current||!I.current?0:y.current.scrollHeight-1-y.current.clientHeight},get calculatedTargetScrollTop(){if(!y.current||!I.current)return 0;let{targetScrollTop:x}=this;if(!e.targetScrollTop)return x;if(S?.targetScrollTop===x)return S.calculatedScrollTop;let C=Math.max(Math.min(e.targetScrollTop(x,{scrollElement:y.current,contentElement:I.current}),x),0);return S={targetScrollTop:x,calculatedScrollTop:C},requestAnimationFrame(()=>{S=void 0}),C},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=WY}}},[]),f=(0,Ht.useCallback)((S={})=>{typeof S=="string"&&(S={animation:S}),S.preserveScrollPosition||u(!0);let x=Date.now()+(Number(S.wait)||0),C=gk(s.current,S.animation),{ignoreEscapes:_=!1}=S,P,D=d.calculatedTargetScrollTop;S.duration instanceof Promise?S.duration.finally(()=>{P=Date.now()}):P=x+(S.duration??0);let N=async()=>{let A=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;let{scrollTop:O}=d,oe=performance.now(),Y=(oe-(d.lastTick??oe))/JY;if(d.animation||(d.animation={behavior:C,promise:A,ignoreEscapes:_}),d.animation.behavior===C&&(d.lastTick=oe),l()||x>Date.now())return N();if(O<Math.min(D,d.calculatedTargetScrollTop)){if(d.animation?.behavior===C){if(C==="instant")return d.scrollTop=d.calculatedTargetScrollTop,N();d.velocity=(C.damping*d.velocity+C.stiffness*d.scrollDifference)/C.mass,d.accumulated+=d.velocity
106*Y,d.scrollTop+=d.accumulated,d.scrollTop!==O&&(d.accumulated=0)}return N()}return P>Date.now()?(D=d.calculatedTargetScrollTop,N()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?f({animation:gk(s.current,s.current.resize),ignoreEscapes:_,duration:Math.max(0,P-Date.now())||void 0}):d.isAtBottom)});return A.then(O=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),O))};return S.wait!==!0&&(d.animation=void 0),d.animation?.behavior===C?d.animation.promise:N()},[u,l,d]),p=(0,Ht.useCallback)(()=>{c(!0),u(!1)},[c,u]),g=(0,Ht.useCallback)(({target:S})=>{if(S!==y.current)return;let{scrollTop:x,ignoreScrollToTop:C}=d,{lastScrollTop:_=x}=d;d.lastScrollTop=x,d.ignoreScrollToTop=void 0,C&&C>x&&(_=C),i(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||x===C)return;if(l()){c(!0),u(!1);return}let P=x>_,D=x<_;if(d.animation?.ignoreEscapes){d.scrollTop=_;return}D&&(c(!0),u(!1)),P&&c(!1),!d.escapedFromLock&&d.isNearBottom&&u(!0)},1)},[c,u,l,d]),w=(0,Ht.useCallback)(({target:S,deltaY:x})=>{let C=S;for(;!["scroll","auto"].includes(getComputedStyle(C).overflow);){if(!C.parentElement)return;C=C.parentElement}C===y.current&&x<0&&y.current.scrollHeight>y.current.clientHeight&&!d.animation?.ignoreEscapes&&(c(!0),u(!1))},[c,u,d]),y=aR(S=>{y.current?.removeEventListener("scroll",g),y.current?.removeEventListener("wheel",w),S?.addEventListener("scroll",g,{passive:!0}),S?.addEventListener("wheel",w,{passive:!0})},[]),I=aR(S=>{if(d.resizeObserver?.disconnect(),!S)return;let x;d.resizeObserver=new ResizeObserver(([C])=>{let{height:_}=C.contentRect,P=_-(x??_);if(d.resizeDifference=P,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),i(d.isNearBottom),P>=0){let D=gk(s.current,x?s.current.resize:s.current.initial);f({animation:D,wait:!0,preserveScrollPosition:!0,duration:D==="instant"?void 0:KY})}else d.isNearBottom&&(c(!1),u(!0));x=_,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===P&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(S)},[]);return{contentRef:I,scrollRef:y,scrollToBottom:f,stopScroll:p,isAtBottom:a||o,isNearBottom:o,escapedFromLock:t,state:d}};function aR(e,t){let r=(0,Ht.useCallback)(a=>(r.current=a,e(a)),t);return r}var hk=new Map;function gk(...e){let t={...HY},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 a=JSON.stringify(t);return hk.has(a)||hk.set(a,Object.freeze(t)),r?"instant":hk.get(a)}var Di=R(ee(),1),Tr=R(ee(),1);var iR=(0,Tr.createContext)(null),XY=typeof window<"u"?Tr.useLayoutEffect:Tr.useEffect;function $d({instance:e,children:t,resize:r,initial:a,mass:n,damping:o,stiffness:i,targetScrollTop:s,contextRef:l,...u}){let c=(0,Tr.useRef)(null),d=Di.useCallback((_,P)=>(C?.targetScrollTop??s)?.(_,P)??_,[s]),f=oR({mass:n,damping:o,stiffness:i,resize:r,initial:a,targetScrollTop:d}),{scrollRef:p,contentRef:g,scrollToBottom:w,stopScroll:y,isAtBottom:I,escapedFromLock:S,state:x}=e??f,C=(0,Tr.useMemo)(()=>({scrollToBottom:w,stopScroll:y,scrollRef:p,isAtBottom:I,escapedFromLock:S,contentRef:g,state:x,get targetScrollTop(){return c.current},set targetScrollTop(_){c.current=_}}),[w,I,g,p,y,S,x]);return(0,Tr.useImperativeHandle)(l,()=>C,[C]),XY(()=>{p.current&&getComputedStyle(p.current).overflow==="visible"&&(p.current.style.overflow="auto")},[]),Di.createElement(iR.Provider,{value:C},Di.createElement("div",{...u},typeof t=="function"?t(C):t))}(function(e){function t({children:r,scrollClassName:a,...n}){let o=vk();return Di.createElement("div",{ref:o.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:a},Di.createElement("div",{...n,ref:o.contentRef},typeof r=="function"?r(o):r))}e.Content=t})($d||($d={}));function vk(){let e=(0,Tr.useContext)(iR);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}var $r=R(j()),lR=({className:e,...t})=>(0,$r.jsx)($d,{className:se("relative min-h-0 flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),uR=({className:e,...t})=>(0,$r.jsx)($d.Content,{className:se("flex flex-col gap-8 p-4",e),...t}),cR=({className:e,title:t="No messages yet",description:r="Start a conversation to see messages here",icon:a,children:n,...o})=>(0,$r.jsx)("div",{className:se("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...o,children:n??(0,$r.jsxs)($r.Fragment,{children:[a&&(0,$r.jsx)("div",{className:"text-muted-foreground",children:a}),(0,$r.jsxs)("div",{className:"space-y-1",children:[(0,$r.jsx)("h3",{className:"text-sm font-medium",children:t}),r&&(0,$r.jsx)("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),dR=({className:e,...t})=>{let{isAtBottom:r,scrollToBottom:a}=vk(),n=(0,sR.useCallback)(()=>{a()},[a]);return!r&&(0,$r.jsx)(Vt,{className:se("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,$r.jsx)(au,{className:"size-4"})})};
106var z$e=R(ee());var YY=R(j());var QY=R(j()),j$e=yn("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 Z$e=R(ee());var fR=R(j());var Wt={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 Gn={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 Zr={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 ug=[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,171 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],cg=[12288,12288,65281,65376,65504,65510],dg=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],fg=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Pd=[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 Rl=(e,t)=>{let r=0,a=Math.floor(e.length/2)-1;for(;r<=a;){let n=Math.floor((r+a)/2),o=n*2;if(t<e[o])a=n-1;else if(t>e[o+1])r=n+1;else return!0}return!1};var eQ=ug[0],tQ=ug.at(-1),rQ=cg[0],nQ=cg.at(-1),aQ=dg[0],oQ=dg.at(-1),iQ=fg[0],sQ=fg.at(-1),lQ=Pd[0],uQ=Pd.at(-1),pR=19968,[cQ,dQ]=fQ(Pd);function fQ(e){let t=e[0],r=e[1];for(let a=0;a<e.length;a+=2){let n=e[a],o=e[a+1];if(pR>=n&&pR<=o)return[n,o];o-n>r-t&&(t=n,r=o)}return[t,r]}var mR=e=>e<eQ||e>tQ?!1:Rl(ug,e),hR=e=>e<rQ||e>nQ?!1:Rl(cg,e),pQ=e=>e<aQ||e>oQ?!1:Rl(dg,e),mQ=e=>e<iQ||e>sQ?!1:Rl(fg,e),gR=e=>e>=cQ&&e<=dQ?!0:e<lQ||e>uQ?!1:Rl(Pd,e);function vR(e){return mR(e)?"ambiguous":hR(e)?"fullwidth":pQ(e)?"halfwidth":mQ(e)?"narrow":gR(e)?"wide":"neutral"}function hQ(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function yR(e){return hQ(e),vR(e)}function gQ(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function xR(e){if(!e||e<4352)return!1;switch(yR(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!gQ(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 bR(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function wR(e){return e!==null&&e>=65024&&e<=65038}var SR=kR(/\p{P}|\p{S}/u),IR=kR(/\s/);function kR(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}function Pa(e){return!!(e&Gn.characterGroupWhitespace)}function zi(e){return(e&dr.cjkPunctuation)===Gn.characterGroupPunctuation}function Dl(e){return!!(e&dr.cjk)}function xk(e){return e===dr.ivs}function bk(e){return!!(e&dr.cjkOrIvs)}function wk(e){return e===dr.nonEmojiGeneralUseVS}function pg(e){return!!(e&dr.spaceOrPunctuation)}var dr;(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})(dr||(dr={}));function La(e){if(e===Wt.eof||N_(e)||IR(e))return Gn.characterGroupWhitespace;let t=0;if(e>=4352){if(wR(e))return dr.nonEmojiGeneralUseVS;switch(xR(e)){case null:return dr.ivs;case!0:t|=dr.cjk;break}}return SR(e)&&(t|=Gn.characterGroupPunctuation),t}function Ld(e,t,r){if(!wk(e))return e;let a=t(),n=La(a);return!a||Pa(n)?e:bR(a,r)?dr.cjkPunctuation:vQ(n)}function vQ(e){return e&~dr.ivs}function Ad(e){return!!(e&&e>=55296&&e<=56319)}function Ed(e){return!!(e&&e>=56320&&e<=57343)}function Md(e,t,r){if(t._bufferIndex<2)return e;let a=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return a&&a>=65536?a:e}function _R(e,t,r){let a=e>=65536?2:1;if(t._bufferIndex<1+a)return null;let n=t._bufferIndex-a-2,o=r({start:{...t,_bufferIndex:n>=0?n:0},end:{...t,_bufferIndex:t._bufferIndex-a}}
vendor: 9,429 bytes, line 106
106),i=o.charCodeAt(o.length-1);if(Number.isNaN(i))return null;if(o.length<2||i<56320||57343<i)return i;let s=o.codePointAt(0);return s&&s>=65536?s:i}var Rd=class{cachedValue=void 0;constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r}value(){return this.cachedValue===void 0&&(this.cachedValue=_R(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function Dd(e,t,r){let a=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return a&&a>=65536?a:e}var mg={name:"attention",resolveAll:yQ,tokenize:xQ};function yQ(e,t){let r=-1,a,n,o,i,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let d={...e[a][1].end},f={...e[r][1].start};CR(d,-l),CR(f,l),i={type:l>1?Zr.strongSequence:Zr.emphasisSequence,start:d,end:{...e[a][1].end}},s={type:l>1?Zr.strongSequence:Zr.emphasisSequence,start:{...e[r][1].start},end:f},o={type:l>1?Zr.strongText:Zr.emphasisText,start:{...e[a][1].end},end:{...e[r][1].start}},n={type:l>1?Zr.strong:Zr.emphasis,start:{...i.start},end:{...s.end}},e[a][1].end={...i.start},e[r][1].start={...s.end},u=[],e[a][1].end.offset-e[a][1].start.offset&&(u=Ji(u,[["enter",e[a][1],t],["exit",e[a][1],t]])),u=Ji(u,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",o,t]]),t.parser.constructs.insideSpan.null,u=Ji(u,$f(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),u=Ji(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=Ji(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Wi(e,a-1,r-a+3,u),r=a+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function xQ(e,t){let r=this.parser.constructs.attentionMarkers.null,{now:a,sliceSerialize:n,previous:o}=this,i=Ed(o)?Md(o,a(),n):o,s=La(i),l=new Rd(i,a(),n),u=Ld(s,l.value.bind(l),i),c;return d;function d(p){return p===Wt.asterisk||Wt.underscore,c=p,e.enter("attentionSequence"),f(p)}function f(p){if(p===c)return e.consume(p),f;let g=e.exit("attentionSequence"),w=La(Ad(p)?Dd(p,a(),n):p);let y=zi(u),I=y||Pa(u),S=zi(w),x=S||Pa(w),C=bk(u),_=!x||S&&(I||C)||r.includes(p),P=!I||y&&(x||Dl(w))||r.includes(i);return g._open=!!(c===Wt.asterisk?_:_&&(pg(u)||!P)),g._close=!!(c===Wt.asterisk?P:P&&(pg(w)||!_)),t(p)}}function CR(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function TR(){return{text:{[Wt.asterisk]:mg,[Wt.underscore]:mg},insideSpan:{null:[mg]}}}function $R(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(TR())}function Sk(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:n,resolveAll:a};return t==null&&(t=!0),{text:{[Wt.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[Wt.tilde]}};function a(o,i){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let l=s;for(;l--;)if(o[l][0]==="exit"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[l][1].end.offset-o[l][1].start.offset){o[s][1].type="strikethroughSequence",o[l][1].type="strikethroughSequence";let u={type:"strikethrough",start:Object.assign({},o[l][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[l][1].end),end:Object.assign({},o[s][1].start)},d=[["enter",u,i],["enter",o[l][1],i],["exit",o[l][1],i],["enter",c,i]],f=i.parser.constructs.insideSpan.null;f&&Wi(d,d.length,0,$f(f,o.slice(l+1,s),i)),Wi(d,d.length,0,[["exit",c,i],["enter",o[s][1],i],["exit",o[s][1],i],["exit",u,i]]),Wi(o,l-1,s-l+3,d),s=l+d.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type=Zr.data);return o}function n(o,i,s){let{now:l,sliceSerialize:u,previous:c}=this,d=Ed(c)?Md(c,l(),u):c,f=La(d),p=new Rd(d,l(),u),g=Ld(f,p.value.bind(p),d),w=this.events,y=0;return I;function I(x){return Wt.tilde,d===Wt.tilde&&w[w.length-1][1].type!==Zr.characterEscape?s(x):(o.enter("strikethroughSequenceTemporary"),S(x))}function S(x){let C=La(d);if(x===Wt.tilde)return y>1?s(x):(o.consume(x),y++,S);if(y<2&&!t)return s(x);let _=o.exit("strikethroughSequenceTemporary"),P=La(Ad(x)?Dd(x,l(),u):x),D=zi(g)||Pa(g),N=zi(P)||Pa(P),A=Dl(g)||xk(C);return _._open=!N||P===Gn.attentionSideAfter&&(D||A),_._close=!D||C===Gn.attentionSideAfter&&(N||Dl(P)),i(x)}}}function PR(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(Sk(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"]),wQ=/^(https?:\/\/|mailto:|www\.)/i,SQ=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type==="text"&&t.value===e.url},IQ=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}]}),_Q=e=>({type:"text",value:e}),CQ=()=>e=>{B_(e,"link",(t,r,a)=>{if(!a||typeof r!="number"||!SQ(t)||!wQ.test(t.url))return;let n=IQ(t.url);if(n===null||n===0)return;let o=t.url.slice(0,n),i=t.url.slice(n),s=kQ(o,t),l=_Q(i);return a.children.splice(r,1,s,l),r+1})};function TQ(){let e=[$R],t=[CQ,PR],r=[...e,...t];return{name:"cjk",type:"cjk",remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:r}}var LR=TQ();var ot=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function $Q(e){return Ek(e)}function Ek(e){return Array.isArray(e)?PQ(e):e instanceof RegExp?e:typeof e=="object"?LQ(e):e}function PQ(e){let t=[];for(let r=0,a=e.length;r<a;r++)t[r]=Ek(e[r]);return t}function LQ(e){let t={};for(let r in e)t[r]=Ek(e[r]);return t}function FR(e,...t){return t.forEach(r=>{for(let a in r)e[a]=r[a]}),e}function UR(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?UR(e.substring(0,e.length-1)):e.substr(~t+1)}var Ik=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,hg=class{static hasCaptures(e){return e===null?!1:(Ik.lastIndex=0,Ik.test(e))}static replaceCaptures(e,t,r){return e.replace(Ik,(a,n,o,i)=>{let s=r[parseInt(n||o,10)];if(s){let l=t.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return a})}};function BR(e,t){return e<t?-1:e>t?1:0}function jR(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,a=t.length;if(r===a){for(let n=0;n<r;n++){let o=BR(e[n],t[n]);if(o!==0)return o}return 0}return r-a}function AR(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 VR(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var ZR=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}},Od=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(MQ(e),t)}static createFromParsedTheme(e,t){return DQ(e,t)}_cachedMatchRoot=new ZR(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,a=this._cachedMatchRoot.get(t).find(n=>AQ(e.parent,n.parentScopes));return a?new qR(a.fontStyle,a.foreground,a.background):null}},kk=class gg{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(let a of r)t=new gg(t,a);return t}static from(...t){let r=null;for(let a=0;a<t.length;a++)r=new gg(r,t[a]);return r}push(t){return new gg(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=[],a=this;for(;a&&a!==t;)r.push(a.scopeName),a=a.parent;return a===t?r.reverse():void 0}};function AQ(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let a=t[r],n=!1;if(a===">"){if(r===t.length-1)return!1;a=t[++r],n=!0}for(;e&&!EQ(e.scopeName,a);){if(n)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function EQ(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var qR=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function MQ(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],a=0;for(let n=0,o=t.length;n<o;n++){let i=t[n];if(!i.settings)continue;let s;if(typeof i.scope=="string"){let d=i.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),s=d.split(",")}else Array.isArray(i.scope)?s=i.scope:s=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let d=i.settings.fontStyle.split(" ");for(let f=0,p=d.length;f<p;f++)switch(d[f]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof i.settings.foreground=="string"&&AR(i.settings.foreground)&&
vendor: 13,005 bytes, line 106
106(u=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&AR(i.settings.background)&&(c=i.settings.background);for(let d=0,f=s.length;d<f;d++){let g=s[d].trim().split(" "),w=g[g.length-1],y=null;g.length>1&&(y=g.slice(0,g.length-1),y.reverse()),r[a++]=new RQ(w,y,n,l,u,c)}}return r}var RQ=class{constructor(e,t,r,a,n,o){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=a,this.foreground=n,this.background=o}},Jt=(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))(Jt||{});function DQ(e,t){e.sort((l,u)=>{let c=BR(l.scope,u.scope);return c!==0||(c=jR(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let r=0,a="#000000",n="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(a=l.foreground),l.background!==null&&(n=l.background)}let o=new zQ(t),i=new qR(r,o.getId(a),o.getId(n)),s=new OQ(new Ck(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];s.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new Od(o,i,s)}var zQ=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)}},NQ=Object.freeze([]),Ck=class GR{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,a,n,o){this.scopeDepth=t,this.parentScopes=r||NQ,this.fontStyle=a,this.foreground=n,this.background=o}clone(){return new GR(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let a=0,n=t.length;a<n;a++)r[a]=t[a].clone();return r}acceptOverwrite(t,r,a,n){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),a!==0&&(this.foreground=a),n!==0&&(this.background=n)}},OQ=class Tk{constructor(t,r=[],a={}){this._mainRule=t,this._children=a,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let a=0,n=0;for(;t.parentScopes[a]===">"&&a++,r.parentScopes[n]===">"&&n++,!(a>=t.parentScopes.length||n>=r.parentScopes.length);){let o=r.parentScopes[n].length-t.parentScopes[a].length;if(o!==0)return o;a++,n++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let a=t.indexOf("."),n,o;if(a===-1?(n=t,o=""):(n=t.substring(0,a),o=t.substring(a+1)),this._children.hasOwnProperty(n))return this._children[n].match(o)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Tk._cmpBySpecificity),r}insert(t,r,a,n,o,i){if(r===""){this._doInsertHere(t,a,n,o,i);return}let s=r.indexOf("."),l,u;s===-1?(l=r,u=""):(l=r.substring(0,s),u=r.substring(s+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new Tk(this._mainRule.clone(),Ck.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,a,n,o,i)}_doInsertHere(t,r,a,n,o){if(r===null){this._mainRule.acceptOverwrite(t,a,n,o);return}for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let l=this._rulesWithParentScopes[i];if(jR(l.parentScopes,r)===0){l.acceptOverwrite(t,a,n,o);return}}a===-1&&(a=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Ck(t,r,a,n,o))}},Oi=class ln{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let r=ln.getLanguageId(t),a=ln.getTokenType(t),n=ln.getFontStyle(t),o=ln.getForeground(t),i=ln.getBackground(t);console.log({languageId:r,tokenType:a,fontStyle:n,foreground:o,background:i})}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,a,n,o,i,s){let l=ln.getLanguageId(t),u=ln.getTokenType(t),c=ln.containsBalancedBrackets(t)?1:0,d=ln.getFontStyle(t),f=ln.getForeground(t),p=ln.getBackground(t);return r!==0&&(l=r),a!==8&&(u=a),n!==null&&(c=n?1:0),o!==-1&&(d=o),i!==0&&(f=i),s!==0&&(p=s),(l<<0|u<<8|c<<10|d<<11|f<<15|p<<24)>>>0}};function yg(e,t){let r=[],a=FQ(e),n=a.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=a.next()}let u=i();if(r.push({matcher:u,priority:l}),n!==",")break;n=a.next()}return r;function o(){if(n==="-"){n=a.next();let l=o();return u=>!!l&&!l(u)}if(n==="("){n=a.next();let l=s();return n===")"&&(n=a.next()),l}if(ER(n)){let l=[];do l.push(n),n=a.next();while(ER(n));return u=>t(l,u)}return null}function i(){let l=[],u=o();for(;u;)l.push(u),u=o();return c=>l.every(d=>d(c))}function s(){let l=[],u=i();for(;u&&(l.push(u),n==="|"||n===",");){do n=a.next();while(n==="|"||n===",");u=i()}return c=>l.some(d=>d(c))}}function ER(e){return!!e&&!!e.match(/[\w\.:]+/)}function FQ(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;let a=r[0];return r=t.exec(e),a}}}function HR(e){typeof e.dispose=="function"&&e.dispose()}var Fd=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}`}},BQ=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))}},jQ=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Fd(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new BQ;for(let r of e)VQ(r,this.initialScopeName,this.repo,t);for(let r of t.references)if(r instanceof Fd){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 VQ(e,t,r,a){let n=r.lookup(e.scopeName);if(!n){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let o=r.lookup(t);e instanceof Fd?vg({baseGrammar:o,selfGrammar:n},a):$k(e.ruleName,{baseGrammar:o,selfGrammar:n,repository:n.repository},a);let i=r.injections(e.scopeName);if(i)for(let s of i)a.add(new Fd(s))}function $k(e,t,r){if(t.repository&&t.repository[e]){let a=t.repository[e];xg([a],t,r)}}function vg(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&xg(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&xg(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function xg(e,t,r){for(let a of e){if(r.visitedRule.has(a))continue;r.visitedRule.add(a);let n=a.repository?FR({},t.repository,a.repository):t.repository;Array.isArray(a.patterns)&&xg(a.patterns,{...t,repository:n},r);let o=a.include;if(!o)continue;let i=WR(o);switch(i.kind){case 0:vg({...t,selfGrammar:t.baseGrammar},r);break;case 1:vg(t,r);break;case 2:$k(i.ruleName,{...t,repository:n},r);break;case 3:case 4:let s=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:n};i.kind===4?$k(i.ruleName,l,r):vg(l,r)}else i.kind===4?r.add(new UQ(i.scopeName,i.ruleName)):r.add(new Fd(i.scopeName));break}}}var ZQ=class{kind=0},qQ=class{kind=1},GQ=class{constructor(e){this.ruleName=e}kind=2},HQ=class{constructor(e){this.scopeName=e}kind=3},WQ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function WR(e){if(e==="$base")return new ZQ;if(e==="$self")return new qQ;let t=e.indexOf("#");if(t===-1)return new HQ(e);if(t===0)return new GQ(e.substring(1));{let r=e.substring(0,t),a=e.substring(t+1);return new WQ(r,a)}}var JQ=/\\(\d+)/,MR=/\\(\d+)/g;var KQ=-1,JR=-2;var jd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,a){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=hg.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=hg.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${UR(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:hg.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:hg.replaceCaptures(this._contentName,e,t)}},XQ=class extends jd{retokenizeCapturedWithRuleId;constructor(e,t,r,a,n){super(e,t,r,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,a){throw new Error("Not supported!")}},YQ=class extends jd{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,a,n){super(e,t,r,null),this._match=new Ud(a,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,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Bd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},RR=class extends jd{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,a,n){super(e,t,r,a),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,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Bd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Pk=class extends jd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,a,n,o,i,s,l,u){super(e,t,r,a),this._begin=new Ud(n,this.id),this.beginCaptures=o,this._end=new Ud(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Bd;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}},bg=class extends jd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,a,n,o,i,s,l){super(e,t,r,a),this._begin=new Ud(n,this.id),this.beginCaptures=o,this.whileCaptures=s,this._while=ne
vendor: 1,564 bytes, line 106
106w Ud(i,JR),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,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Bd;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,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Bd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}
vendor: 25,019 bytes, lines 106-108
106},KR=class er{static createCaptureRule(t,r,a,n,o){return t.registerRule(i=>new XQ(r,i,a,n,o))}static getCompiledRuleId(t,r,a){return t.id||r.registerRule(n=>{if(t.id=n,t.match)return new YQ(t.$vscodeTextmateLocation,t.id,t.name,t.match,er._compileCaptures(t.captures,r,a));if(typeof t.begin>"u"){t.repository&&(a=FR({},a,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new RR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,er._compilePatterns(o,r,a))}return t.while?new bg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,er._compileCaptures(t.beginCaptures||t.captures,r,a),t.while,er._compileCaptures(t.whileCaptures||t.captures,r,a),er._compilePatterns(t.patterns,r,a)):new Pk(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,er._compileCaptures(t.beginCaptures||t.captures,r,a),t.end,er._compileCaptures(t.endCaptures||t.captures,r,a),t.applyEndPatternLast,er._compilePatterns(t.patterns,r,a))}),t.id}static _compileCaptures(t,r,a){let n=[];if(t){let o=0;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let s=parseInt(i,10);s>o&&(o=s)}for(let i=0;i<=o;i++)n[i]=null;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let s=parseInt(i,10),l=0;t[i].patterns&&(l=er.getCompiledRuleId(t[i],r,a)),n[s]=er.createCaptureRule(r,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return n}static _compilePatterns(t,r,a){let n=[];if(t)for(let o=0,i=t.length;o<i;o++){let s=t[o],l=-1;if(s.include){let u=WR(s.include);switch(u.kind){case 0:case 1:l=er.getCompiledRuleId(a[s.include],r,a);break;case 2:let c=a[u.ruleName];c&&(l=er.getCompiledRuleId(c,r,a));break;case 3:case 4:let d=u.scopeName,f=u.kind===4?u.ruleName:null,p=r.getExternalGrammar(d,a);if(p)if(f){let g=p.repository[f];g&&(l=er.getCompiledRuleId(g,r,p.repository))}else l=er.getCompiledRuleId(p.repository.$self,r,p.repository);break}}else l=er.getCompiledRuleId(s,r,a);if(l!==-1){let u=r.getRule(l),c=!1;if((u instanceof RR||u instanceof Pk||u instanceof bg)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;n.push(l)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}},Ud=class XR{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,r){if(t&&typeof t=="string"){let a=t.length,n=0,o=[],i=!1;for(let s=0;s<a;s++)if(t.charAt(s)==="\\"&&s+1<a){let u=t.charAt(s+1);u==="z"?(o.push(t.substring(n,s)),o.push("$(?!\\n)(?<!\\n)"),n=s+2):(u==="A"||u==="G")&&(i=!0),s++}this.hasAnchor=i,n===0?this.source=t:(o.push(t.substring(n,a)),this.source=o.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=JQ.test(this.source):this.hasBackReferences=!1}clone(){return new XR(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 a=r.map(n=>t.substring(n.start,n.end));return MR.lastIndex=0,this.source.replace(MR,(n,o)=>VR(a[parseInt(o,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=[],a=[],n=[],o,i,s,l;for(o=0,i=this.source.length;o<i;o++)s=this.source.charAt(o),t[o]=s,r[o]=s,a[o]=s,n[o]=s,s==="\\"&&o+1<i&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="\uFFFF",r[o+1]="\uFFFF",a[o+1]="A",n[o+1]="A"):l==="G"?(t[o+1]="\uFFFF",r[o+1]="G",a[o+1]="\uFFFF",n[o+1]="G"):(t[o+1]=l,r[o+1]=l,a[o+1]=l,n[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:a.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}},Bd=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 DR(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 a=this._items.map(n=>n.resolveAnchors(t,r));return new DR(e,a,this._items.map(n=>n.ruleId))}},DR=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 a=this.scanner.findNextMatchSync(e,t,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},_k=class{constructor(e,t){this.languageId=e,this.tokenType=t}},QQ=class Lk{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new _k(t,8),this._embeddedLanguagesMatcher=new eee(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Lk._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new _k(0,0);_getBasicScopeAttributes=new ZR(t=>{let r=this._scopeToLanguage(t),a=this._toStandardTokenType(t);return new _k(r,a)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let r=t.match(Lk.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/},eee=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,a])=>VR(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])}},W7e={InDebugMode:typeof process<"u"&&!!__PROCESS_ENV.VSCODE_TEXTMATE_DEBUG},YR=!1,zR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function QR(e,t,r,a,n,o,i,s){let l=t.content.length,u=!1,c=-1;if(i){let p=tee(e,t,r,a,n,o);n=p.stack,a=p.linePos,r=p.isFirstLine,c=p.anchorPosition}let d=Date.now();for(;!u;){if(s!==0&&Date.now()-d>s)return new zR(n,!0);f()}return new zR(n,!1);function f(){let p=ree(e,t,r,a,n,c);if(!p){o.produce(n,l),u=!0;return}let g=p.captureIndices,w=p.matchedRuleId,y=g&&g.length>0?g[0].end>a:!1;if(w===KQ){let I=n.getRule(e);o.produce(n,g[0].start),n=n.withContentNameScopesList(n.nameScopesList),zd(e,t,r,n,o,I.endCaptures,g),o.produce(n,g[0].end);let S=n;if(n=n.parent,c=S.getAnchorPos(),!y&&S.getEnterPos()===a){n=S,o.produce(n,l),u=!0;return}}else{let I=e.getRule(w);o.produce(n,g[0].start);let S=n,x=I.getName(t.content,g),C=n.contentNameScopesList.pushAttributed(x,e);if(n=n.push(w,a,c,g[0].end===l,null,C,C),I instanceof Pk){let _=I;zd(e,t,r,n,o,_.beginCaptures,g),o.produce(n,g[0].end),c=g[0].end;let P=_.getContentName(t.content,g),D=C.pushAttributed(P,e);if(n=n.withContentNameScopesList(D),_.endHasBackReferences&&(n=n.withEndRule(_.getEndWithResolvedBackReferences(t.content,g))),!y&&S.hasSameRuleAs(n)){n=n.pop(),o.produce(n,l),u=!0;return}}else if(I instanceof bg){let _=I;zd(e,t,r,n,o,_.beginCaptures,g),o.produce(n,g[0].end),c=g[0].end;let P=_.getContentName(t.content,g),D=C.pushAttributed(P,e);if(n=n.withContentNameScopesList(D),_.whileHasBackReferences&&(n=n.withEndRule(_.getWhileWithResolvedBackReferences(t.content,g))),!y&&S.hasSameRuleAs(n)){n=n.pop(),o.produce(n,l),u=!0;return}}else if(zd(e,t,r,n,o,I.captures,g),o.produce(n,g[0].end),n=n.pop(),!y){n=n.safePop(),o.produce(n,l),u=!0;return}}g[0].end>a&&(a=g[0].end,r=!1)}}function tee(e,t,r,a,n,o){let i=n.beginRuleCapturedEOL?0:-1,s=[];for(let l=n;l;l=l.pop()){let u=l.getRule(e);u instanceof bg&&s.push({rule:u,stack:l})}for(let l=s.pop();l;l=s.pop()){let{ruleScanner:u,findOptions:c}=oee(l.rule,e,l.stack.endRule,r,a===i),d=u.findNextMatchSync(t,a,c);if(d){if(d.ruleId!==JR){n=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(l.stack,d.captureIndices[0].start),zd(e,t,r,l.stack,o,l.rule.whileCaptures,d.captureIndices),o.produce(l.stack,d.captureIndices[0].end),i=d.captureIndices[0].end,d.captureIndices[0].end>a&&(a=d.captureIndices[0].end,r=!1))}else{n=l.stack.pop();break}}return{stack:n,linePos:a,anchorPosition:i,isFirstLine:r}}function ree(e,t,r,a,n,o){let i=nee(e,t,r,a,n,o),s=e.getInjections();if(s.length===0)return i;let l=aee(s,e,t,r,a,n,o);if(!l)return i;if(!i)return l;let u=i.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:i}function nee(e,t,r,a,n,o){let i=n.getRule(e),{ruleScanner:s,findOptions:l}=eD(i,e,n.endRule,r,a===o),u=s.findNextMatchSync(t,a,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function aee(e,t,r,a,n,o,i){let s=Number.MAX_VALUE,l=null,u,c=0,d=o.contentNameScopesList.getScopeNames();for(let f=0,p=e.length;f<p;f++){let g=e[f];if(!g.matcher(d))continue;let w=t.getRule(g.ruleId),{ruleScanner:y,findOptions:I}=eD(w,t,null,a,n===i),S=y.findNextMatchSync(r,n,I);if(!S)continue;let x=S.captureIndices[0].start;if(!(x>=s)&&(s=x,l=S.captureIndices,u=S.ruleId,c=g.priority,s===n))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function eD(e,t,r,a,n){if(YR){let i=e.compile(t,r),s=tD(a,n);return{ruleScanner:i,findOptions:s}}return{ruleScanner:e.compileAG(t,r,a,n),findOptions:0}}function oee(e,t,r,a,n){if(YR){let i=e.compileWhile(t,r),s=tD(a,n);return{ruleScanner:i,findOptions:s}}return{ruleScanner:e.compileWhileAG(t,r,a,n),findOptions:0}}function tD(e,t){let r=0;return e||(r|=1),t||(r|=4),r}function zd(e,t,r,a,n,o,i){if(o.length===0)return;let s=t.content,l=Math.min(o.length,i.length),u=[],c=i[0].end;for(let d=0;d<l;d++){let f=o[d];if(f===null)continue;let p=i[d];if(p.length===0)continue;if(p.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=p.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,p.start):n.produce(a,p.start),f.retokenizeCapturedWithRuleId){let w=f.getName(s,i),y=a.contentNameScopesList.pushAttributed(w,e),I=f.getContentName(s,i),S=y.pushAttributed(I,e),x=a.push(f.retokenizeCapturedWithRuleId,p.start,-1,!1,null,y,S),C=e.createOnigString(s.substring(0,p.end));QR(e,C,r&&p.start===0,p.start,x,n,!1,0),HR(C);continue}let g=f.getName(s,i);if(g!==null){let y=(u.length>0?u[u.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e);u.push(new iee(y,p.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var iee=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function see(e,t,r,a,n,o,i,s){return new uee(e,t,r,a,n,o,i,s)}function NR(e,t,r,a,n){let o=yg(t,wg),i=KR.getCompiledRuleId(r,a,n.repository);for(let s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:i,grammar:n,priority:s.priority})}function wg(e,t){if(t.length<e.length)return!1;let r=0;return e.every(a=>{for(let n=r;n<t.length;n++)if(lee(t[n],a))return r=n+1,!0;return!1})}function lee(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 uee=class{constructor(e,t,r,a,n,o,i,s){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new QQ(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=OR(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(let l of Object.keys(n)){let u=yg(l,wg);for(let c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:n[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},t=[],r=this._rootScopeName,a=e.lookup(r);if(a){let n=a.injections;if(n)for(let i in n)NR(t,i,n[i],this,a);let o=this._grammarRepository.injections(r);o&&o.forEach(i=>{let s=this.getExternalGrammar(i);if(s){let l=s.injectionSelector;l&&NR(t,l,s,this,s)}})}return t.sort((n,o)=>n.priority-o.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]=OR(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let a=this._tokenize(e,t,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,r=0){let a=this._tokenize(e,t,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,r,a){this._rootId===-1&&(this._rootId=KR.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!t||t===Ak.NULL){n=!0;let u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),d=Oi.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),f=this.getRule(this._rootId).getName(null,null),p;f?p=Nd.createRootAndLookUpScopeName(f,d,this):p=Nd.createRoot("unknown",d),t=new Ak(null,this._rootId,-1,-1,!1,null,p,p)}else n=!1,t.reset();e=e+` 108`;let o=this.createOnigString(e),i=o.content.length,s=new dee(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=QR(this,o,n,0,t,s,!0,a);return HR(o),{lineLength:i,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function OR(e,t){return e=$Q(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 Nd=class Hn{constructor(t,r,a){this.parent=t,this.scopePath=r,this.tokenAttributes=a}static fromExtension(t,r){let a=t,n=t?.scopePath??null;for(let o of r)n=kk.push(n,o.scopeNames),a=new Hn(a,n,o.encodedTokenAttributes);return a}static createRoot(t,r){return new Hn(null,new kk(null,t),r)}static createRootAndLookUpScopeName(t,r,a){let n=a.getMetadataForScope(t),o=new kk(null,t),i=a.themeProvider.themeMatch(o),s=Hn.mergeAttributes(r,n,i);return new Hn(null,o,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,a){let n=-1,o=0,i=0;return a!==null&&(n=a.fontStyle,o=a.foregroundId,i=a.backgroundId),Oi.set(t,r.languageId,r.tokenType,null,n,o,i)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return Hn._pushAttributed(this,t,r);let a=t.split(/ /g),n=this;for(let o of a)n=Hn._pushAttributed(n,o,r);return n}static _pushAttributed(t,r,a){let n=a.getMetadataForScope(r),o=t.scopePath.push(r),i=a.themeProvider.themeMatch(o),s=Hn.mergeAttributes(t.tokenAttributes,n,i);return new Hn(t,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let r=[],a=this;for(;a&&a!==t;)r.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(a.parent?.scopePath??null)}),a=a.parent;return a===t?r.reverse():void 0}},Ak=class Ni{constructor(t,r,a,n,o,i,s,l){this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new Ni(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ni._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?Nd.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(){Ni._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,a,n,o,i,s){return new Ni(this,t,r,a,n,o,i,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 Ni(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 a=Nd.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new Ni(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,a,Nd.fromExtension(a,r.contentNameScopesList))}},cee=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):yg(r,wg).map(a=>a.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>yg(r,wg).map(a=>a.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}},dee=class{constructor(e,t,r,a){this.balancedBracketSelectors=a,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 a=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let o=e?.getScopeNames()??[];for(let i of this._tokenTypeOverrides)i.matcher(o)&&(a=Oi.set(a,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(o))}if(n&&(a=Oi.set(a,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),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 a=0,n=this._binaryTokens.length;a<n;a++)r[a]=this._binaryTokens[a];return r}},fee=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,a,n){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,see(e,o,t,r,a,n,this,this._onigLib))}return this._grammars.get(e)}},rD=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new fee(Od.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Od.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,a,n){let o=new jQ(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(i=>this._loadSingleGrammar(i.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,r,a,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,a=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,a)}_grammarForScopeName(e,t=0,r=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,r,a,n)}},Sg=Ak.NULL;function Zd(e,t){let r=typeof e=="string"?{}:{...e.colorReplacements},a=typeof e=="string"?e:e.name;for(let[n,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?r[n]=o:n===a&&Object.assign(r,o);return r}function Aa(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function sD(e){return Array.isArray(e)?e:[e]}async function Mk(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function qd(e){return!e||["plaintext","txt","text","plain"].includes(e)}function lD(e){return e==="ansi"||qd(e)}function Gd(e){return e==="none"}function uD(e){return Gd(e)}
vendor: 13,172 bytes, line 108
108function zl(e,t=!1){if(e.length===0)return[["",0]];let r=e.split(/(\r?\n)/g),a=0,n=[];for(let o=0;o<r.length;o+=2){let i=t?r[o]+(r[o+1]||""):r[o];n.push([i,a]),a+=r[o].length,a+=r[o+1]?.length||0}return n}var nD={light:"#333333",dark:"#bbbbbb"},aD={light:"#fffffe",dark:"#1e1e1e"},oD="__shiki_resolved";function Ig(e){if(e?.[oD])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:a}=t;if(!r||!a){let s=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(a=s.settings.foreground),s?.settings?.background&&(r=s.settings.background),!a&&t?.colors?.["editor.foreground"]&&(a=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),a||(a=t.type==="light"?nD.light:nD.dark),r||(r=t.type==="light"?aD.light:aD.dark),t.fg=a,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,o=new Map;function i(s){if(o.has(s))return o.get(s);n+=1;let l=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(s):(o.set(s,l),l)}t.settings=t.settings.map(s=>{let l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),u=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!u)return s;let c={...s,settings:{...s.settings}};if(l){let d=i(s.settings.foreground);t.colorReplacements[d]=s.settings.foreground,c.settings.foreground=d}if(u){let d=i(s.settings.background);t.colorReplacements[d]=s.settings.background,c.settings.background=d}return c});for(let s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){let l=i(t.colors[s]);t.colorReplacements[l]=t.colors[s],t.colors[s]=l}return Object.defineProperty(t,oD,{enumerable:!1,writable:!1,value:!0}),t}async function cD(e){return Array.from(new Set((await Promise.all(e.filter(t=>!lD(t)).map(async t=>await Mk(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function dD(e){return(await Promise.all(e.map(async t=>uD(t)?null:Ig(await Mk(t))))).filter(t=>!!t)}function fD(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 ot(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var pee=class extends rD{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,a={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=a,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=Ig(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=Od.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=fD(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 a=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(a.name=e.name,this._resolvedGrammars.set(e.name,a),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 a of e)this.resolveEmbeddedLanguages(a);let t=Array.from(this._langGraph.entries()),r=t.filter(([a,n])=>!n);if(r.length){let a=t.filter(([n,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(i=>r.map(([s])=>s).includes(i)):!1).filter(n=>!r.includes(n));throw new ot(`Missing languages ${r.map(([n])=>`\`${n}\``).join(", ")}, required by ${a.map(([n])=>`\`${n}\``).join(", ")}`)}for(let[a,n]of t)this._resolver.addLanguage(n);for(let[a,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 a=1;a<=t.length;a++){let n=t.slice(0,a).join(".");r=[...r,...this._injections.get(n)||[]]}return r}},Vd=0;function Rk(e){Vd+=1,e.warnings!==!1&&Vd>=10&&Vd%10===0&&console.warn(`[Shiki] ${Vd} 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 ot("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(Ig),n=new pee(new mee(e.engine,r),a,r,e.langAlias),o;function i(S){return fD(S,e.langAlias)}function s(S){y();let x=n.getGrammar(typeof S=="string"?S:S.name);if(!x)throw new ot(`Language \`${S}\` not found, you may need to load it first`);return x}function l(S){if(S==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();let x=n.getTheme(S);if(!x)throw new ot(`Theme \`${S}\` not found, you may need to load it first`);return x}function u(S){y();let x=l(S);return o!==S&&(n.setTheme(x),o=S),{theme:x,colorMap:n.getColorMap()}}function c(){return y(),n.getLoadedThemes()}function d(){return y(),n.getLoadedLanguages()}function f(...S){y(),n.loadLanguages(S.flat(1))}async function p(...S){return f(await cD(S))}function g(...S){y();for(let x of S.flat(1))n.loadTheme(x)}async function w(...S){return y(),g(await dD(S))}function y(){if(t)throw new ot("Shiki instance has been disposed")}function I(){t||(t=!0,n.dispose(),Vd-=1)}return{setTheme:u,getTheme:l,getLanguage:s,getLoadedThemes:c,getLoadedLanguages:d,resolveLangAlias:i,loadLanguage:p,loadLanguageSync:f,loadTheme:w,loadThemeSync:g,dispose:I,[Symbol.dispose]:I}}async function Dk(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,a]=await Promise.all([dD(e.themes||[]),cD(e.langs||[]),e.engine]);return Rk({...e,themes:t,langs:r,engine:a})}var pD=new WeakMap;function Hd(e,t){pD.set(e,t)}function Nl(e){return pD.get(e)}var kg=class mD{_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 mD(Object.fromEntries(sD(r).map(a=>[a,Sg])),t)}constructor(...t){if(t.length===2){let[r,a]=t;this.lang=a,this._stacks=r}else{let[r,a,n]=t;this.lang=a,this._stacks={[n]:r}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return hee(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function hee(e){let t=[],r=new Set;function a(n){if(r.has(n))return;r.add(n);let o=n?.nameScopesList?.scopeName;o&&t.push(o),n.parent&&a(n.parent)}return a(e),t}function gee(e,t){if(!(e instanceof kg))throw new ot("Invalid grammar state");return e.getInternalStack(t)}function zk(e,t,r={}){let{theme:a=e.getLoadedThemes()[0]}=r;if(qd(e.resolveLangAlias(r.lang||"text"))||Gd(a))return zl(t).map(s=>[{content:s[0],offset:s[1]}]);let{theme:n,colorMap:o}=e.setTheme(a),i=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==i.name)throw new ot(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${i.name}"`);if(!r.grammarState.themes.includes(n.name))throw new ot(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${n.name}"`)}return gD(t,i,n,o,r)}function hD(...e){if(e.length===2)return Nl(e[1]);let[t,r,a={}]=e,{lang:n="text",theme:o=t.getLoadedThemes()[0]}=a;if(qd(n)||Gd(o))throw new ot("Plain language does not have grammar state");if(n==="ansi")throw new ot("ANSI language does not have grammar state");let{theme:i,colorMap:s}=t.setTheme(o),l=t.getLanguage(n);return new kg(Nk(r,l,i,s,a).stateStack,l.name,i.name)}function gD(e,t,r,a,n){let o=Nk(e,t,r,a,n),i=new kg(o.stateStack,t.name,r.name);return Hd(o.tokens,i),o.tokens}function Nk(e,t,r,a,n){let o=Zd(r,n),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:s=500}=n,l=zl(e),u=n.grammarState?gee(n.grammarState,r.name)??Sg:n.grammarContextCode!=null?Nk(n.grammarContextCode,t,r,a,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:Sg,c=[],d=[];for(let f=0,p=l.length;f<p;f++){let[g,w]=l[f];if(g===""){c=[],d.push([]);continue}if(i>0&&g.length>=i){c=[],d.push([{content:g,offset:w,color:"",fontStyle:0}]);continue}let y,I,S;n.includeExplanation&&(y=t.tokenizeLine(g,u,s),I=y.tokens,S=0);let x=t.tokenizeLine2(g,u,s),C=x.tokens.length/2;for(let _=0;_<C;_++){let P=x.tokens[2*_],D=_+1<C?x.tokens[2*_+2]:g.length;if(P===D)continue;let N=x.tokens[2*_+1],A=Aa(a[Oi.getForeground(N)],o),O=Oi.getFontStyle(N),oe={content:g.substring(P,D),offset:w+P,color:A,fontStyle:O};if(n.includeExplanation){let Y=[];if(n.includeExplanation!=="scopeName")for(let pe of r.settings){let Me;switch(typeof pe.scope){case"string":Me=pe.scope.split(/,/).map(Be=>Be.trim());break;case"object":Me=pe.scope;break;default:continue}Y.push({settings:pe,selectors:Me.map(Be=>Be.split(/ /))})}oe.explanation=[];let He=0;for(;P+He<D;){let pe=I[S],Me=g.substring(pe.startIndex,pe.endIndex);He+=Me.length,oe.explanation.push({content:Me,scopes:n.includeExplanation==="scopeName"?vee(pe.scopes):yee(Y,pe.scopes)}),S+=1}}c.push(oe)}d.push(c),c=[],u=x.ruleStack}return{tokens:d,stateStack:u}}function vee(e){return e.map(t=>({scopeName:t}))}function yee(e,t){let r=[];for(let a=0,n=t.length;a<n;a++){let o=t[a];r[a]={scopeName:o,themeMatches:bee(e,o,t.slice(0,a))}}return r}function iD(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function xee(e,t,r){if(!iD(e[e.length-1],t))return!1;let a=e.length-2,n=r.length-1;for(;a>=0&&n>=0;)iD(e[a],r[n])&&(a-=1),n-=1;return a===-1}function bee(e,t,r){let a=[];for(let{selectors:n,settings:o}of e)for(let i of n)if(xee(i,t,r)){a.push(o);break}return a}function _g(e,t,r,a=zk){let n=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=n.map(u=>{let c=a(e,t,{...r,theme:u.theme});return{tokens:c,state:Nl(c),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),i=wee(...o.map(u=>u.tokens)),s=i[0].map((u,c)=>u.map((d,f)=>{let p={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in r&&r.includeExplanation&&(p.explanation=d.explanation),i.forEach((g,w)=>{let{content:y,explanation:I,offset:S,...x}=g[c][f];p.variants[n[w].color]=x}),p})),l=o[0].state?new kg(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&Hd(s,l),s}function wee(...e){let t=e.map(()=>[]),r=e.length;for(let a=0;a<e[0].length;a++){let n=e.map(l=>l[a]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));let i=n.map(()=>0),s=n.map(l=>l[0]);for(;s.every(l=>l);){let l=Math.min(...s.map(u=>u.content.length));for(let u=0;u<r;u++){let c=s[u];c.content.length===l?(o[u].push(c),i[u]+=1,s[u]=n[u][i[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),s[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}var See=/["&'<>`]/g,Iee=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kee=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,_ee=/[|\\{}()[\]^$+*?.]/g,vD=new WeakMap;function yD(e,t){if(e=e.replace(t.subset?Cee(t.subset):See,a),t.subset||t.escapeOnly)return e;return e.replace(Iee,r).replace(kee,a);function r(n,o,i){return t.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,i.charCo
vendor: 1,263 bytes, line 108
108deAt(o+2),t)}function a(n,o,i){return t.format(n.charCodeAt(0),i.charCodeAt(o+1),t)}}function Cee(e){let t=vD.get(e);return t||(t=Tee(e),vD.set(e,t)),t}function Tee(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(_ee,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var $ee=/[\dA-Fa-f]/;function xD(e,t,r){let a="&#x"+e.toString(16).toUpperCase();return r&&t&&!$ee.test(String.fromCharCode(t))?a:a+";"}var Pee=/\d/;function bD(e,t,r){let a="&#"+String(e);return r&&t&&!Pee.test(String.fromCharCode(t))?a:a+";"}var wD=["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","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
108sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var Cg={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 SD=["cent","copy","divide","gt","lt","not","para","times"];var ID={}.hasOwnProperty,Ok={},Tg;for(Tg in Cg)ID.call(Cg,Tg)&&(Ok[Cg[Tg]]=Tg);var Lee=/[^\dA-Za-z]/;function kD(e,t,r,a){let n=String.fromCharCode(e);if(ID.call(Ok,n)){let o=Ok[n],i="&"+o;return r&&wD.includes(o)&&!SD.includes(o)&&(!a||t&&t!==61&&Lee.test(String.fromCharCode(t)))?i:i+";"}return""}function _D(e,t,r){let a=xD(e,t,r.omitOptionalSemicolons),n;if((r.useNamedReferences||r.useShortestReferences)&&(n=kD(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let o=bD(e,t,r.omitOptionalSemicolons);o.length<a.length&&(a=o)}return n&&(!r.useShortestReferences||n.length<a.length)?n:a}function Ea(e,t){return yD(e,Object.assign({format:_D},t))}var Aee=/^>|^->|<!--|-->|--!>|<!-$/g,Eee=[">"],Mee=["<",">"];function CD(e,t,r,a){return a.settings.bogusComments?"<?"+Ea(e.value,Object.assign({},a.settings.characterReferences,{subset:Eee}))+">":"<!--"+e.value.replace(Aee,n)+"-->";function n(o){return Ea(o,Object.assign({},a.settings.characterReferences,{subset:Mee}))}}function TD(e,t,r,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}var $t=$D(1),Fk=$D(-1),Ree=[];function $D(e){return t;function t(r,a,n){let o=r?r.children:Ree,i=(a||0)+e,s=o[i];if(!n)for(;s&&Ki(s);)i+=e,s=o[i];return s}}var Dee={}.hasOwnProperty;function $g(e){return t;function t(r,a,n){return Dee.call(e,r.tagName)&&e[r.tagName](r,a,n)}}var Wd=$g({body:Nee,caption:Uk,colgroup:Uk,dd:Bee,dt:Uee,head:Uk,html:zee,li:Fee,optgroup:jee,option:Vee,p:Oee,rp:PD,rt:PD,tbody:qee,td:LD,tfoot:Gee,th:LD,thead:Zee,tr:Hee});function Uk(e,t,r){let a=$t(r,t,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&Ki(a.value.charAt(0)))}function zee(e,t,r){let a=$t(r,t);return!a||a.type!=="comment"}function Nee(e,t,r){let a=$t(r,t);return!a||a.type!=="comment"}function Oee(e,t,r){let a=$t(r,t);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.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 Fee(e,t,r){let a=$t(r,t);return!a||a.type==="element"&&a.tagName==="li"}function Uee(e,t,r){let a=$t(r,t);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function Bee(e,t,r){let a=$t(r,t);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function PD(e,t,r){let a=$t(r,t);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function jee(e,t,r){let a=$t(r,t);return!a||a.type==="element"&&a.tagName==="optgroup"}function Vee(e,t,r){let a=$t(r,t);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function Zee(e,t,r){let a=$t(r,t);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function qee(e,t,r){let a=$t(r,t);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function Gee(e,t,r){return!$t(r,t)}function Hee(e,t,r){let a=$t(r,t);return!a||a.type==="element"&&a.tagName==="tr"}function LD(e,t,r){let a=$t(r,t);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}var AD=$g({body:Kee,colgroup:Xee,head:Jee,html:Wee,tbody:Yee});function Wee(e){let t=$t(e,-1);return!t||t.type!=="comment"}function Jee(e){let t=new Set;for(let a of e.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(t.has(a.tagName))return!1;t.add(a.tagName)}let r=e.children[0];return!r||r.type==="element"}function Kee(e){let t=$t(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ki(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Xee(e,t,r){let a=Fk(r,t),n=$t(e,-1,!0);return r&&a&&a.type==="element"&&a.tagName==="colgroup"&&Wd(a,r.children.indexOf(a),r)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Yee(e,t,r){let a=Fk(r,t),n=$t(e,-1);return r&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&Wd(a,r.children.indexOf(a),r)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}var Pg={name:[[` 109\f\r &/=>`.split(""),` 110\f\r "&'/=>
vendor: 20,374 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 ED(e,t,r,a){let n=a.schema,o=n.space==="svg"?!1:a.settings.omitOptionalTags,i=n.space==="svg"?a.settings.closeEmptyElements:a.settings.voids.includes(e.tagName.toLowerCase()),s=[],l;n.space==="html"&&e.tagName==="svg"&&(a.schema=Pf);let u=Qee(a,e.properties),c=a.all(n.space==="html"&&e.tagName==="template"?e.content:e);return a.schema=n,c&&(i=!1),(u||!o||!AD(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),i&&(n.space==="svg"||a.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!a.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!i&&(!o||!Wd(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function Qee(e,t){let r=[],a=-1,n;if(t){for(n in t)if(t[n]!==null&&t[n]!==void 0){let o=ete(e,n,t[n]);o&&r.push(o)}}for(;++a<r.length;){let o=e.settings.tightAttributes?r[a].charAt(r[a].length-1):void 0;a!==r.length-1&&o!=='"'&&o!=="'"&&(r[a]+=" ")}return r.join("")}function ete(e,t,r){let a=V_(e.schema,t),n=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1,i=e.quote,s;if(a.overloadedBoolean&&(r===a.attribute||r==="")?r=!0:(a.boolean||a.overloadedBoolean)&&(typeof r!="string"||r===a.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=Ea(a.attribute,Object.assign({},e.settings.characterReferences,{subset:Pg.name[n][o]}));return r===!0||(r=Array.isArray(r)?(a.commaSeparated?G_:H_)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=Ea(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Pg.unquoted[n][o]}))),s!==r&&(e.settings.quoteSmart&&Rv(r,i)>Rv(r,e.alternative)&&(i=e.alternative),s=i+Ea(r,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?Pg.single:Pg.double)[n][o],attribute:!0}))+i),l+(s&&"="+s))}var tte=["<","&"];function Lg(e,t,r,a){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ea(e.value,Object.assign({},a.settings.characterReferences,{subset:tte}))}function MD(e,t,r,a){return a.settings.allowDangerousHtml?e.value:Lg(e,t,r,a)}function RD(e,t,r,a){return a.all(e)}var DD=q_("type",{invalid:rte,unknown:nte,handlers:{comment:CD,doctype:TD,element:ED,raw:MD,root:RD,text:Lg}});function rte(e){throw new Error("Expected node, not `"+e+"`")}function nte(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var ate={},ote={},ite=[];function Bk(e,t){let r=t||ate,a=r.quote||'"',n=a==='"'?"'":'"';if(a!=='"'&&a!=="'")throw new Error("Invalid quote `"+a+"`, expected `'` or `\"`");return{one:ste,all:lte,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||j_,characterReferences:r.characterReferences||ote,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Pf:Z_,quote:a,alternative:n}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function ste(e,t,r){return DD(e,t,r,this)}function lte(e){let t=[],r=e&&e.children||ite,a=-1;for(;++a<r.length;)t[a]=this.one(r[a],a,e);return t.join("")}function OD(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 a of r)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function ute(e){let t=zl(e,!0).map(([n])=>n);function r(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=n,i=0;for(let s of t){if(o<s.length)break;o-=s.length,i++}return{line:i,character:o}}function a(n,o){let i=0;for(let s=0;s<n;s++)i+=t[s].length;return i+=o,i}return{lines:t,indexToPos:r,posToIndex:a}}var qk="light-dark()",cte=["color","background-color"];function dte(e,t){let r=0,a=[];for(let n of t)n>r&&a.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&a.push({...e,content:e.content.slice(r),offset:e.offset+r}),a}function fte(e,t){let r=Array.from(t instanceof Set?t:new Set(t)).sort((a,n)=>a-n);return r.length?e.map(a=>a.flatMap(n=>{let o=r.filter(i=>n.offset<i&&i<n.offset+n.content.length).map(i=>i-n.offset).sort((i,s)=>i-s);return o.length?dte(n,o):n})):e}function pte(e,t,r,a,n="css-vars"){let o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(c=>Ag(e.variants[c])),s=new Set(i.flatMap(c=>Object.keys(c))),l={},u=(c,d)=>{let f=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return r+t[c]+(d==="color"?"":f)};return i.forEach((c,d)=>{for(let f of s){let p=c[f]||"inherit";if(d===0&&a&&cte.includes(f))if(a===qk&&i.length>1){let g=t.findIndex(y=>y==="light"),w=t.findIndex(y=>y==="dark");if(g===-1||w===-1)throw new ot('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[f]=`light-dark(${i[g][f]||"inherit"}, ${i[w][f]||"inherit"})`,n==="css-vars"&&(l[u(d,f)]=p)}else l[f]=p;else n==="css-vars"&&(l[u(d,f)]=p)}}),o.htmlStyle=l,o}function Ag(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Jt.Italic&&(t["font-style"]="italic"),e.fontStyle&Jt.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&Jt.Underline&&r.push("underline"),e.fontStyle&Jt.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function Vk(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 o=function(s){if(typeof s=="number"){if(s<0||s>r.source.length)throw new ot(`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 ot(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${n.lines.length}`);let u=s.character;if(u<0&&(u=l.length+u),u<0||u>l.length)throw new ot(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:u,offset:n.posToIndex(s.line,u)}}};var a=o;let n=ute(r.source),i=(r.options.decorations||[]).map(s=>({...s,start:o(s.start),end:o(s.end)}));hte(i),e.set(r.meta,{decorations:i,converter:n,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(this.options.decorations?.length)return fte(r,t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]))},code(r){if(!this.options.decorations?.length)return;let a=t(this),n=Array.from(r.children).filter(c=>c.type==="element"&&c.tagName==="span");if(n.length!==a.converter.lines.length)throw new ot(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${a.converter.lines.length}). Failed to apply decorations.`);function o(c,d,f,p){let g=n[c],w="",y=-1,I=-1;if(d===0&&(y=0),f===0&&(I=0),f===Number.POSITIVE_INFINITY&&(I=g.children.length),y===-1||I===-1)for(let x=0;x<g.children.length;x++)w+=FD(g.children[x]),y===-1&&w.length===d&&(y=x+1),I===-1&&w.length===f&&(I=x+1);if(y===-1)throw new ot(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(I===-1)throw new ot(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);let S=g.children.slice(y,I);if(!p.alwaysWrap&&S.length===g.children.length)s(g,p,"line");else if(!p.alwaysWrap&&S.length===1&&S[0].type==="element")s(S[0],p,"token");else{let x={type:"element",tagName:"span",properties:{},children:S};s(x,p,"wrapper"),g.children.splice(y,S.length,x)}}function i(c,d){n[c]=s(n[c],d,"line")}function s(c,d,f){let p=d.properties||{},g=d.transform||(w=>w);return c.tagName=d.tagName||"span",c.properties={...c.properties,...p,class:c.properties.class},d.properties?.class&&OD(c,d.properties.class),c=g(c,f)||c,c}let l=[],u=a.decorations.sort((c,d)=>d.start.offset-c.start.offset||c.end.offset-d.end.offset);for(let c of u){let{start:d,end:f}=c;if(d.line===f.line)o(d.line,d.character,f.character,c);else if(d.line<f.line){o(d.line,d.character,Number.POSITIVE_INFINITY,c);for(let p=d.line+1;p<f.line;p++)l.unshift(()=>i(p,c));o(f.line,0,f.character,c)}}l.forEach(c=>c())}}}function hte(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new ot(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let a=t+1;a<e.length;a++){let n=e[a],o=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,i=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(o||i||s||l){if(o&&i||s&&l||s&&r.start.offset===r.end.offset||i&&n.start.offset===n.end.offset)continue;throw new ot(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function FD(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(FD).join(""):""}var gte=[mte()];function Eg(e){let t=vte(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...gte]}function vte(e){let t=[],r=[],a=[];for(let n of e)switch(n.enforce){case"pre":t.push(n);break;case"post":r.push(n);break;default:a.push(n)}return{pre:t,post:r,normal:a}}var Fi=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],jk={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function yte(e,t){let r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){let a=e.indexOf("m",r);if(a!==-1)return{sequence:e.substring(r+2,a).split(";"),startPosition:r,position:a+1}}return{position:e.length}}function zD(e){let t=e.shift();if(t==="2"){let r=e.splice(0,3).map(a=>Number.parseInt(a));return r.length!==3||r.some(a=>Number.isNaN(a))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){let r=e.shift();if(r)return{type:"table",index:Number(r)}}}function xte(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)jk[a]&&t.push({type:"setDecoration",value:jk[a]});else if(a<=29){let n=jk[a-20];n&&(t.push({type:"resetDecoration",value:n}),n==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Fi[a-30]}});else if(a===38){let n=zD(e);n&&t.push({type:"setForegroundColor",value:n})}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Fi[a-40]}});else if(a===48){let n=zD(e);n&&t.push({type:"setBackgroundColor",value:n})}else a===49?t.push({type:"resetBackgroundColor"}):a===53?t.push({type:"setDecoration",value:"overline"}):a===55?t.push({type:"resetDecoration",value:"overline"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Fi[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Fi[a-100+8]}})}return t}function bte(){let e=null,t=null,r=new Set;return{parse(a){let n=[],o=0;do{let i=yte(a,o),s=i.sequence?a.substring(o,i.startPosition):a.substring(o);if(s.length>0&&n.push({value:s,foreground:e,background:t,decorations:new Set(r)}),i.sequence){let l=xte(i.sequence);for(let u of l)u.type==="resetAll"?(e=null,t=null,r.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&r.delete(u.value);for(let u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&r.add(u.value)}o=i.position}while(o<a.length);return n}}}var wte={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 Ste(e=wte){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 a;function n(){if(a)return a;a=[];for(let u=0;u<Fi.length;u++)a.push(t(Fi[u]));let s=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let c=0;c<6;c++)for(let d=0;d<6;d++)a.push(r([s[u],s[c],s[d]]));let l=8;for(let u=0;u<24;u++,l+=10)a.push(r([l,l,l]));return a}function o(s){return n()[s]}function i(s){switch(s.type){case"named":return t(s.name);case"rgb":return r(s.rgb);case"table":return o(s.index)}}return{value:i}}var Ite={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 a=Zd(e,r),n=zl(t),o=Ste(Object.fromEntries(Fi.map(s=>{let l=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,e.colors?.[l]||Ite[s]]}))),i=bte();return n.map(s=>i.parse(s[0]).map(l=>{let u,c;l.decorations.has("reverse")?(u=l.background?o.value(l.background):e.bg,c=l.foreground?o.value(l.foreground):e.fg):(u=l.foreground?o.value(l.foreground):e.fg,c=l.background?o.value(l.background):void 0),u=Aa(u,a),c=Aa(c,a),l.decorations.has("dim")&&(u=_te(u));let d=Jt.None;return l.decorations.has("bold")&&(d|=Jt.Bold),l.decorations.has("italic")&&(d|=Jt.Italic),l.decorations.has("underline")&&(d|=Jt.Underline),l.decorations.has("strikethrough")&&(d|=Jt.Strikethrough),{content:l.value,offset:s[1],color:u,bgColor:c,fontStyle:d}}))}function _te(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let a=t[1];if(a.length===8){let n=Math.round(Number.parseInt(a.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${a.slice(0,6)}${n}`}else{if(a.length===6)return`#${a}80`;if(a.length===4){let n=a[0],o=a[1],i=a[2],s=a[3];return`#${n}${n}${o}${o}${i}${i}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}else if(a.length===3){let n=a[0],o=a[1],i=a[2];return`#${n}${n}${o}${o}${i}${i}80`}}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function Zk(e,t,r={}){let a=e.resolveLangAlias(r.lang||"text"),{theme:n=e.getLoadedThemes()[0]}=r;if(!qd(a)&&!Gd(n)&&a==="ansi"){let{theme:o}=e.setTheme(n);return kte(o,t,r)}return zk(e,t,r)}function Mg(e,t,r){let a,n,o,i,s,l;if("themes"in r){let{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:d="css-vars"}=r,f=Object.entries(r.themes).filter(I=>I[1]).map(I=>({color:I[0],theme:I[1]})).sort((I,S)=>I.color===u?-1:S.color===u?1:0);if(f.length===0)throw new ot("`themes` option must not be empty");let p=_g(e,t,r,Zk);if(l=Nl(p),u&&qk!==u&&!f.find(I=>I.color===u))throw new ot(`\`themes\` option must contain the defaultColor key \`${u}\``);let g=f.map(I=>e.getTheme(I.theme)),w=f.map(I=>I.color);o=p.map(I=>I.map(S=>pte(S,w,c,u,d))),l&&Hd(o,l);let y=f.map(I=>Zd(I.theme,r));n=ND(f,g,y,c,u,"fg",d),a=ND(f,g,y,c,u,"bg",d),i=`shiki-themes ${g.map(I=>I.name).join(" ")}`,s=u?void 0:[n,a].join(";")}else if("theme"in r){let u=Zd(r.theme,r);o=Zk(e,t,r);let c=e.getTheme(r.theme);a=Aa(c.bg,u),n=Aa(c.fg,u),i=c.name,l=Nl(o)}else throw new ot("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:n,bg:a,themeName:i,rootStyle:s,grammarState:l}}function ND(e,t,r,a,n,o,i){return e.map((s,l)=>{let u=Aa(t[l][o],r[l])||"inherit",c=`${a+s.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&n){if(n===qk&&e.length>1){let d=e.findIndex(p=>p.color==="light"),f=e.findIndex(p=>p.color==="dark");if(d===-1||f===-1)throw new ot('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Aa(t[d][o],r[d])||"inherit"}, ${Aa(t[f][o],r[f])||"inherit"});${c}`}return u}return i==="css-vars"?c:null}).filter(s=>!!s).join(";")}function Rg(e,t,r,a={meta:{},options:r,codeToHast:(n,o)=>Rg(e,n,o),codeToTokens:(n,o)=>Mg(e,n,o)}){let n=t;for(let g of Eg(r))n=g.preprocess?.call(a,n,r)||n;let{tokens:o,fg:i,bg:s,themeName:l,rootStyle:u,grammarState:c}=Mg(e,n,r),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=r;d===!0?o=Tte(o):d==="never"&&(o=$te(o)),f&&(o=Pte(o));let p={...a,get source(){return n}};for(let g of Eg(r))o=g.tokens?.call(p,o)||o;return Cte(o,{...r,fg:i,bg:s,themeName:l,rootStyle:r.rootStyle===!1?!1:r.rootStyle??u},p,c)}function Cte(e,t,r,a=Nl(e)){let n=Eg(t),o=[],i={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(let[w,y]of Object.entries(t.meta||{}))w.startsWith("_")||(u[w]=y);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:o},f=[],p={...r,structure:s,addClassToHast:OD,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return c},get code(){return d},get lines(){return f}};if(e.forEach((w,y)=>{y&&(s==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:` 117`}));let I={type:"element",tagName:"span",properties:{class:"line"},children:[]},S=0;for(let x of w){let C={type:"element",tagName:"span",properties:{...x.htmlAttrs},children:[{type:"text",value:x.content}]},_=Vk(x.htmlStyle||Ag(x));_&&(C.properties.style=_);for(let P of n)C=P?.span?.call(p,C,y+1,S,I,x)||C;s==="inline"?i.children.push(C):s==="classic"&&I.children.push(C),S+=x.content.length}if(s==="classic"){for(let x of n)I=x?.line?.call(p,I,y+1)||I;f.push(I),o.push(I)}else s==="inline"&&f.push(I)}),s==="classic"){for(let w of n)d=w?.code?.call(p,d)||d;c.children.push(d);for(let w of n)c=w?.pre?.call(p,c)||c;i.children.push(c)}else if(s==="inline"){let w=[],y={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let S of i.children)S.type==="element"&&S.tagName==="br"?(w.push(y),y={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(S.type==="element"||S.type==="text")&&y.children.push(S);w.push(y);let I={type:"element",tagName:"code",properties:{},children:w};for(let S of n)I=S?.code?.call(p,I)||I;i.children=[];for(let S=0;S<I.children.length;S++){S>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});let x=I.children[S];x.type==="element"&&i.children.push(...x.children)}}let g=i;for(let w of n)g=w?.root?.call(p,g)||g;return a&&Hd(g,a),g}function Tte(e){return e.map(t=>{let r=[],a="",n;return t.forEach((o,i)=>{let s=!(o.fontStyle&&(o.fontStyle&Jt.Underline||o.fontStyle&Jt.Strikethrough));s&&o.content.match(/^\s+$/)&&t[i+1]?(n===void 0&&(n=o.offset),a+=o.content):a?(s?r.push({...o,offset:n,content:a+o.content}):r.push({content:a,offset:n},o),n=void 0,a=""):r.push(o)}),r})}function $te(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;let a=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!a)return r;let[,n,o,i]=a;if(!n&&!i)return r;let s=[{...r,offset:r.offset+n.length,content:o}];return n&&s.unshift({content:n,offset:r.offset}),i&&s.push({content:i,offset:r.offset+n.length+o.length}),s}))}function Pte(e){return e.map(t=>{let r=[];for(let a of t){if(r.length===0){r.push({...a});continue}let n=r[r.length-1],o=Vk(n.htmlStyle||Ag(n)),i=Vk(a.htmlStyle||Ag(a)),s=n.fontStyle&&(n.fontStyle&Jt.Underline||n.fontStyle&Jt.Strikethrough),l=a.fontStyle&&(a.fontStyle&Jt.Underline||a.fontStyle&Jt.Strikethrough);
117!s&&!l&&o===i?n.content+=a.content:r.push({...a})}return r})}var Lte=Bk;function Ate(e,t,r){let a={meta:{},options:r,codeToHast:(o,i)=>Rg(e,o,i),codeToTokens:(o,i)=>Mg(e,o,i)},n=Lte(Rg(e,t,r,a));for(let o of Eg(r))n=o.postprocess?.call(a,n,r)||n;return n}async function UD(e){let t=await Dk(e);return{getLastGrammarState:(...r)=>hD(t,...r),codeToTokensBase:(r,a)=>Zk(t,r,a),codeToTokensWithThemes:(r,a)=>_g(t,r,a),codeToTokens:(r,a)=>Mg(t,r,a),codeToHast:(r,a)=>Rg(t,r,a),codeToHtml:(r,a)=>Ate(t,r,a),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var BD=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:a,regexConstructor:n}=t;if(!n)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;let i=a?.get(o);if(i){if(i instanceof RegExp)return i;if(r)return null;throw i}try{let s=n(o);return a?.set(o,s),s}catch(s){if(a?.set(o,s),r)return null;throw s}})}findNextMatchSync(e,t,r){let a=typeof e=="string"?e:e.content,n=[];function o(i,s,l=0){return{index:i,captureIndices:s.indices.map(u=>u==null?{start:4294967295,end:4294967295,length:0}:{start:u[0]+l,end:u[1]+l,length:u[1]-u[0]})}}for(let i=0;i<this.regexps.length;i++){let s=this.regexps[i];if(s)try{s.lastIndex=t;let l=s.exec(a);if(!l)continue;if(l.index===t)return o(i,l,0);n.push([i,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(n.length){let i=Math.min(...n.map(s=>s[1].index));for(let[s,l,u]of n)if(l.index===i)return o(s,l,u)}return null}};function Oo(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function jD(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var Jd=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),At=String.raw;function Ma(e,t){if(e==null)throw new Error(t??"Value expected");return e}var WD=At`\[\^?`,JD=`c.? | C(?:-.?)?|${At`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${At`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${At`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${At`o\{[^\}]*\}?`}|${At`\d{1,3}`}`,Hk=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Dg=new RegExp(At` 118 \\ (?: 119 ${JD} 120 | [gk]<[^>]*>? 121 | [gk]'[^']*'? 122 | . 123 ) 124 | \( (?: 125 \? (?: 126 [:=!>({] 127 | <[=!] 128 | <[^>]*> 129 | '[^']*' 130 | ~\|? 131 | #(?:[^)\\]|\\.?)* 132 | [^:)]*[:)] 133 )? 134 | \*[^\)]*\)? 135 )? 136 | (?:${Hk.source})+ 137 | ${WD} 138 | . 139`.replace(/\s+/g,""),"gsu"),Gk=new RegExp(At` 140 \\ (?: 141 ${JD} 142 | . 143 ) 144 | \[:(?:\^?\p{Alpha}+|\^):\] 145 | ${WD} 146 | && 147 | . 148`.replace(/\s+/g,""),"gsu");function KD(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 a=Kte(r.flags),n=[a.extended],o={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},i=[],s;for(Dg.lastIndex=0;s=Dg.exec(e);){let d=Ete(o,e,s[0],Dg.lastIndex);d.tokens?i.push(...d.tokens):d.token&&i.push(d.token),d.lastIndex!==void 0&&(Dg.lastIndex=d.lastIndex)}let l=[],u=0;i.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++u:d.raw==="("&&l.push(d)}),u||l.forEach((d,f)=>{d.kind="capturing",d.number=f+1});let c=u||l.length;return{tokens:i.map(d=>d.type==="EscapedNumber"?Yte(d,c):d).flat(),flags:a}}function Ete(e,t,r,a){let[n,o]=r;if(r==="["||r==="[^"){let i=Mte(t,r,a);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(n==="\\"){if("AbBGyYzZ".includes(o))return{token:VD(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Vte(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:YD(r)}}if(o==="K")return{token:QD("keep",r)};if(o==="N"||o==="R")return{token:Ui("newline",r,{negate:o==="N"})};if(o==="O")return{token:Ui("any",r)};if(o==="X")return{token:Ui("text_segment",r)};let i=XD(r,{inCharClass:!1}
vendor: 20,436 bytes, lines 148-149
148);return Array.isArray(i)?{tokens:i}:{token:i}}if(n==="("){if(o==="*")return{token:Hte(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[a]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:a+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:Gte(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:Ol("group",r)};if(r==="(?>")return{token:Ol("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:Ol(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:Ol("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:Ol("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 i=t.indexOf(` 149`,a);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(r)){let i=/\s+/y;return i.lastIndex=a,{lastIndex:i.exec(t)?i.lastIndex:a}}}if(r===".")return{token:Ui("dot",r)};if(r==="^"||r==="$"){let i=e.singleline?{"^":At`\A`,$:At`\Z`}[r]:r;return{token:VD(i,r)}}return r==="|"?{token:Dte(r)}:Hk.test(r)?{tokens:Qte(r)}:{token:Ra(Oo(r),r)}}function Mte(e,t,r){let a=[ZD(t[1]==="^",t)],n=1,o;for(Gk.lastIndex=r;o=Gk.exec(e);){let i=o[0];if(i[0]==="["&&i[1]!==":")n++,a.push(ZD(i[1]==="^",i));else if(i==="]"){if(a.at(-1).type==="CharacterClassOpen")a.push(Ra(93,i));else if(n--,a.push(zte(i)),!n)break}else{let s=Rte(i);Array.isArray(s)?a.push(...s):a.push(s)}}return{tokens:a,lastIndex:Gk.lastIndex||e.length}}function Rte(e){if(e[0]==="\\")return XD(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Jd.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Ui("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Nte(e):e==="&&"?Ote(e):Ra(Oo(e),e)}function XD(e,{inCharClass:t}){let r=e[1];if(r==="c"||r==="C")return qte(e);if("dDhHsSwW".includes(r))return Wte(e);if(e.startsWith(At`\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 Jte(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let a=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(a)),o=new TextEncoder;return[...n].map(i=>{let s=[...o.encode(i)].map(l=>`\\x${l.toString(16)}`).join("");return Ra(Oo(i),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return Ra(Xte(e),e);if(qD.has(r))return Ra(qD.get(r),e);if(/\d/.test(r))return Fte(t,e);if(e==="\\")throw new Error(At`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Ra(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function Dte(e){return{type:"Alternator",raw:e}}function VD(e,t){return{type:"Assertion",kind:e,raw:t}}function YD(e){return{type:"Backreference",raw:e}}function Ra(e,t){return{type:"Character",value:e,raw:t}}function zte(e){return{type:"CharacterClassClose",raw:e}}function Nte(e){return{type:"CharacterClassHyphen",raw:e}}function Ote(e){return{type:"CharacterClassIntersector",raw:e}}function ZD(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Ui(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function QD(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Ma(r.flags),raw:t}}function Fte(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function Ute(e){return{type:"GroupClose",raw:e}}function Ol(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function Bte(e,t,r,a){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:a}}function jte(e,t,r,a){return{type:"Quantifier",kind:e,min:t,max:r,raw:a}}function Vte(e){return{type:"Subroutine",raw:e}}var Zte=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),qD=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function qte(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 Ra(Oo(t.toUpperCase())-64,e)}function Gte(e,t){let{on:r,off:a}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;a??="";let n=(t.getCurrentModX()||r.includes("x"))&&!a.includes("x"),o=HD(r),i=HD(a),s={};if(o&&(s.enable=o),i&&(s.disable=i),e.endsWith(")"))return t.replaceCurrentModX(n),QD("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(n),t.numOpenGroups++,Ol("group",e,{...(o||i)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function Hte(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:a,args:n}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(a==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);let o=n?n.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[i,s,l]=o,u=Zte.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.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(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return Bte(u,a??null,n?.split(",")??null,e)}function GD(e){let t=null,r,a;if(e[0]==="{"){let{minStr:n,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+n>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+n,a=o===void 0?+n:o===""?1/0:+o,r>a&&(t="possessive",[r,a]=[a,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,a=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return jte(t,r,a,e)}function Wte(e){let t=e[1].toLowerCase();return Ui({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function Jte(e){let{p:t,neg:r,value:a}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Ui("property",e,{value:a,negate:t==="P"&&!r||t==="p"&&!!r})}function HD(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 Kte(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 a=e[r];if(!"imxDPSWy".includes(a))throw new Error(`Invalid flag "${a}"`);if(a==="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"}[a]]=!0}return t}function Xte(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 Yte(e,t){let{raw:r,inCharClass:a}=e,n=r.slice(1);if(!a&&(n!=="0"&&n.length===1||n[0]!=="0"&&+n<=t))return[YD(r)];let o=[],i=n.match(/^[0-7]+|\d/g);for(let s=0;s<i.length;s++){let l=i[s],u;if(s===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(At`Octal encoded byte above 177 unsupported "${r}"`)}else u=Oo(l);o.push(Ra(u,(s===0?"\\":"")+l))}return o}function Qte(e){let t=[],r=new RegExp(Hk,"gy"),a;for(;a=r.exec(e);){let n=a[0];if(n[0]==="{"){let o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(n);if(o){let{min:i,max:s}=o.groups;if(+i>+s&&n.endsWith("?")){r.lastIndex--,t.push(GD(n.slice(0,-1)));continue}}}t.push(GD(n))}return t}function zg(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(a=>t[a]===r[a])}function ez(e){return ere.has(e.type)}var ere=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Og(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},a=KD(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),n=(f,p)=>{let g=a.tokens[o.nextIndex];switch(o.parent=f,o.nextIndex++,g.type){case"Alternator":return Da();case"Assertion":return tre(g);case"Backreference":return rre(g,o);case"Character":return Fl(g.value,{useLastValid:!!p.isCheckingRangeEnd});case"CharacterClassHyphen":return nre(g,o,p);case"CharacterClassOpen":return are(g,o,p);case"CharacterSet":return ore(g,o);case"Directive":return dre(g.kind,{flags:g.flags});case"GroupOpen":return ire(g,o,p);case"NamedCallout":return pre(g.kind,g.tag,g.arguments);case"Quantifier":return sre(g,o);case"Subroutine":return lre(g,o);default:throw new Error(`Unexpected token type "${g.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:a.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:n},i=hre(fre(a.flags)),s=i.body[0];for(;o.nextIndex<a.tokens.length;){let f=n(s,{});f.type==="Alternative"?(i.body.push(f),s=f):s.body.push(f)}let{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:c,subroutines:d}=o;if(u&&c.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:f}of d)if(typeof f=="number"){if(f>l.length)throw new Error("Subroutine uses a group number that's not defined");f&&(l[f-1].isSubroutined=!0)}else if(c.has(f)){if(c.get(f).length>1)throw new Error(At`Subroutine uses a duplicate group name "\g<${f}>"`);c.get(f)[0].isSubroutined=!0}else throw new Error(At`Subroutine uses a group name that's not defined "\g<${f}>"`);return i}function tre({kind:e}){return Fg(Ma({"^":"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===At`\B`||e===At`\Y`})}function rre({raw:e},t){let r=/^\\k[<']/.test(e),a=r?e.slice(3,-1):e.slice(1),n=(o,i=!1)=>{let s=t.capturingGroups.length,l=!1;if(o>s)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Ng(i?s+1-o:o,{orphan:l})};if(r){let o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(a);if(o)return n(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(a))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(a))throw new Error(`Group name not defined to the left "${e}"`);return Ng(a)}return n(+a)}function nre(e,t,r){let{tokens:a,walk:n}=t,o=t.parent,i=o.body.at(-1),s=a[t.nextIndex];if(!r.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){let l=n(o,{...r,isCheckingRangeEnd:!0});if(i.type==="Character"&&l.type==="Character")return o.body.pop(),cre(i,l);throw new Error("Invalid character class range")}return Fl(Oo("-"))}function are({negate:e},t,r){let{tokens:a,walk:n}=t,o=a[t.nextIndex],i=[Kd()],s=nz(o);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")i.push(Kd()),t.nextIndex++;else{let u=i.at(-1);u.body.push(n(u,r))}s=nz(a[t.nextIndex],o)}let l=Kd({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function ore({kind:e,negate:t,value:r},a){let{normalizeUnknownPropertyNames:n,skipPropertyNameValidation:o,unicodePropertyMap:i}=a;if(e==="property"){let s=Ul(r);if(Jd.has(s)&&!i?.has(s))e="posix",r=s;else return Bi(r,{negate:t,normalizeUnknownPropertyNames:n,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?mre(r,{negate:t}):Ug(e,{negate:t})}function ire(e,t,r){let{tokens:a,capturingGroups:n,namedGroupsByName:o,skipLookbehindValidation:i,walk:s}=t,l=gre(e),u=l.type==="AbsenceFunction",c=rz(l),d=c&&l.negate;if(l.type==="CapturingGroup"&&(n.push(l),l.name&&jD(o,l.name,[]).push(l)),u&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=az(a[t.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")l.body.push(Da()),t.nextIndex++;else{let p=l.body.at(-1),g=s(p,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||c,isInNegLookbehind:r.isInNegLookbehind||d});if(p.body.push(g),(c||r.isInLookbehind)&&!i){let w="Lookbehind includes a pattern not allowed by Oniguruma";if(d||r.isInNegLookbehind){if(tz(g)||g.type==="CapturingGroup")throw new Error(w)}else if(tz(g)||rz(g)&&g.negate)throw new Error(w)}}f=az(a[t.nextIndex])}return t.nextIndex++,l}function sre({kind:e,min:t,max:r},a){let n=a.parent,o=n.body.at(-1);if(!o||!ez(o))throw new Error("Quantifier requires a repeatable token");let i=Jk(e,t,r,o);return n.body.pop(),i}function lre({raw:e},t){let{capturingGroups:r,subroutines:a}=t,n=e.slice(3,-1),o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(n);if(o){let s=+o.groups.num,l=r.length;if(t.hasNumberedRef=!0,n={"":s,"+":l+s,"-":l+1-s}[o.groups.sign],n<1)throw new Error("Invalid subroutine number")}else n==="0"&&(n=0);let i=Kk(n);return a.push(i),i}function ure(e,t){if(e!=="repeater")throw new Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:Xd(t?.body)}}function Da(e){return{type:"Alternative",body:oz(e?.body)}}function Fg(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function Ng(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function Wk(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!vre(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:Xd(t?.body)}}function Fl(e,t){let r={useLastValid:!1,...t};if(e>1114111){let a=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${a}}"`):new Error(`Invalid code point out of range in JS "\\x{${a}}"`)}return{type:"Character",value:e}}function Kd(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:oz(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 Ug(e,t){let r=!!t?.negate,a={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(a.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(a.variableLength=!0),a}function dre(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Ma(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function fre(e){return{type:"Flags",...e}}function qr(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:Xd(e?.body)}}function Fo(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Xd(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(!Jd.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function Jk(e,t,r,a){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:a}}function hre(e,t){return{type:"Regex",body:Xd(t?.body),flags:e}}function Kk(e){return{type:"Subroutine",ref:e}}function Bi(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},a=r.unicodePropertyMap?.get(Ul(e));if(!a){if(r.normalizeUnknownPropertyNames)a=yre(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(At`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:a??e,negate:r.negate}}function gre({flags:e,kind:t,name:r,negate:a,number:n}){switch(t){case"absence_repeater":return ure("repeater");case"atomic":return qr({atomic:!0});case"capturing":return Wk(n,{name:r});case"group":return qr({flags:e});case"lookahead":case"lookbehind":return Fo({behind:t==="lookbehind",negate:a});default:throw new Error(`Unexpected group kind "${t}"`)}}function Xd(e){if(e===void 0)e=[Da()];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 oz(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 tz(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function rz(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function vre(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function yre(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 Ul(e){return e.replace(/[- _]+/g,"").toLowerCase()}function nz(e,t){return Ma(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function az(e){return Ma(e,"Unclosed group")}function ji(e,t,r=null){function a(o,i){for(let s=0;s<o.length;s++){let l=n(o[s],i,s,o);s=Math.max(-1,s+l)}}function n(o,i=null,s=null,l=null){let u=0,c=!1,d={node:o,parent:i,key:s,container:l,root:e,remove(){Bg(l).splice(Math.max(0,Bl(s)+u),1),u--,c=!0},removeAllNextSiblings(){return Bg(l).splice(Bl(s)+1)},removeAllPrevSiblings(){let I=Bl(s)+u;return u-=I,Bg(l).splice(0,Math.max(0,I))},replaceWith(I,S={}){let x=!!S.traverse;l?l[Math.max(0,Bl(s)+u)]=I:Ma(i,"Can't replace root node")[s]=I,x&&n(I,i,s,l),c=!0},replaceWithMultiple(I,S={}){let x=!!S.traverse;if(Bg(l).splice(Math.max(0,Bl(s)+u),1,...I),u+=I.length-1,x){let C=0;for(let _=0;_<I.length;_++)C+=n(I[_],i,Bl(s)+_+C,l)}c=!0},skip(){c=!0}},{type:f}
vendor: 6,753 bytes, lines 149-164
149=o,p=t["*"],g=t[f],w=typeof p=="function"?p:p?.enter,y=typeof g=="function"?g:g?.enter;if(w?.(d,r),y?.(d,r),!c)switch(f){case"AbsenceFunction":case"CapturingGroup":case"Group":a(o.body,o);break;case"Alternative":case"CharacterClass":a(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":n(o.min,o,"min"),n(o.max,o,"max");break;case"LookaroundAssertion":a(o.body,o);break;case"Quantifier":n(o.body,o,"body");break;case"Regex":a(o.body,o),n(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${f}"`)}return g?.exit?.(d,r),p?.exit?.(d,r),u}return n(e),e}function Bg(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Bl(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}var iz=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function sz(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function lz(e,t,r,a){return e.slice(0,t)+a+e.slice(t+r.length)}var Pr=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Yd(e,t,r,a){let n=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1],i=0,s="";for(let l of e.matchAll(n)){let{0:u,groups:{$skip:c}}=l;if(!c&&(!a||a===Pr.DEFAULT==!i)){r instanceof Function?s+=r(l,{context:i?Pr.CHAR_CLASS:Pr.DEFAULT,negated:o[o.length-1]}):s+=r;continue}u[0]==="["?(i++,o.push(u[1]==="^")):u==="]"&&i&&(i--,o.pop()),s+=u}return s}function Xk(e,t,r,a){Yd(e,t,r,a)}function xre(e,t,r=0,a){if(!new RegExp(t,"su").test(e))return null;let n=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");n.lastIndex=r;let o=0,i;for(;i=n.exec(e);){let{0:s,groups:{$skip:l}}=i;if(!l&&(!a||a===Pr.DEFAULT==!o))return i;s==="["?o++:s==="]"&&o&&o--,n.lastIndex==i.index&&n.lastIndex++}return null}function Qd(e,t,r){return!!xre(e,t,0,r)}function uz(e,t){let r=/\\?./gsu;r.lastIndex=t;let a=e.length,n=0,o=1,i;for(;i=r.exec(e);){let[s]=i;if(s==="[")n++;else if(n)s==="]"&&n--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){a=i.index;break}}return e.slice(t,a)}var cz=new RegExp(String.raw`(?<noncapturingStart>${iz})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Qk(e,t){let r=t?.hiddenCaptures??[],a=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};let n="(?>",o="(?:(?=(",i=[0],s=[],l=0,u=0,c=NaN,d;do{d=!1;let f=0,p=0,g=!1,w;for(cz.lastIndex=Number.isNaN(c)?0:c+o.length;w=cz.exec(e);){let{0:y,index:I,groups:{capturingStart:S,noncapturingStart:x}}=w;if(y==="[")f++;else if(f)y==="]"&&f--;else if(y===n&&!g)c=I,g=!0;else if(g&&x)p++;else if(S)g?p++:(l++,i.push(l+u));else if(y===")"&&g){if(!p){u++;let C=l+u;if(e=`${e.slice(0,c)}${o}${e.slice(c+n.length,I)}))<$$${C}>)${e.slice(I+1)}`,d=!0,s.push(C),sz(r,C),a.size){let _=new Map;a.forEach((P,D)=>{_.set(D>=C?D+1:D,P.map(N=>N>=C?N+1:N))}),a=_}break}p--}}}while(d);return r.push(...s),e=Yd(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:p,wrappedBackrefNum:g}})=>{if(p){let w=+p;if(w>i.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${i[w]}`}return`\\${g}`},Pr.DEFAULT),{pattern:e,captureTransfers:a,hiddenCaptures:r}}var dz=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Yk=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>${dz})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 163| \\?. 164`.replace(/\s+/g,""),"gsu");function e6(e){if(!new RegExp(`${dz}\\+`).test(e))return{pattern:e};let t=[],r=null,a=null,n="",o=0,i;for(Yk.lastIndex=0;i=Yk.exec(e);){let{0:s,index:l,groups:{qBase:u,qMod:c,invalidQ:d}}=i;if(s==="[")o||(a=l),o++;else if(s==="]")o?o--:a=null;else if(!o)if(c==="+"&&n&&!n.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${s}"`);let f=-1;if(/^\{\d+\}$/.test(u))e=lz(e,l+u.length,c,"");else{if(n===")"||n==="]"){let p=n===")"?r:a;if(p===null)throw new Error(`Invalid unmatched "${n}"`);e=`${e.slice(0,p)}(?>${e.slice(p,l)}${u})${e.slice(l+s.length)}`}else e=`${e.slice(0,l-n.length)}(?>${n}${u})${e.slice(l+s.length)}`;f+=4}Yk.lastIndex+=f}else s[0]==="("?t.push(l):s===")"&&(r=t.length?t.pop():null);n=s}return{pattern:e}}var un=String.raw,bre=un`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,r6=un`\(\?R=(?<rDepth>[^\)]+)\)|${bre}`,jg=un`\(\?<(?![=!])(?<captureName>[^>]+)>`,gz=un`${jg}|(?<unnamed>\()(?!\?)`,Vi=new RegExp(un`${jg}|${r6}|\(\?|\\?.`,"gsu"),t6="Cannot use multiple overlapping recursions";function vz(e,t){let{hiddenCaptures:r,mode:a}={hiddenCaptures:[],mode:"plugin",...t},n=t?.captureTransfers??new Map;if(!new RegExp(r6,"su").test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};if(a==="plugin"&&Qd(e,un`\(\?\(DEFINE\)`,Pr.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let o=[],i=Qd(e,un`\\[1-9]`,Pr.DEFAULT),s=new Map,l=[],u=!1,c=0,d=0,f;for(Vi.lastIndex=0;f=Vi.exec(e);){let{0:p,groups:{captureName:g,rDepth:w,gRNameOrNum:y,gRDepth:I}}=f;if(p==="[")c++;else if(c)p==="]"&&c--;else if(w){if(fz(w),u)throw new Error(t6);if(i)throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let S=e.slice(0,f.index),x=e.slice(Vi.lastIndex);if(Qd(x,r6,Pr.DEFAULT))throw new Error(t6);let C=+w-1;e=pz(S,x,C,!1,r,o,d),n=hz(n,S,C,o.length,0,d);break}else if(y){fz(I);let S=!1;for(let Y of l)if(Y.name===y||Y.num===+y){if(S=!0,Y.hasRecursedWithin)throw new Error(t6);break}if(!S)throw new Error(un`Recursive \g cannot be used outside the referenced group "${a==="external"?y:un`\g<${y}&R=${I}>`}"`);let x=s.get(y),C=uz(e,x);if(i&&Qd(C,un`${jg}|\((?!\?)`,Pr.DEFAULT))throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let _=e.slice(x,f.index),P=C.slice(_.length+p.length),D=o.length,N=+I-1,A=pz(_,P,N,!0,r,o,d);n=hz(n,_,N,o.length-D,D,d);let O=e.slice(0,x),oe=e.slice(x+C.length);e=`${O}${A}${oe}`,Vi.lastIndex+=A.length-p.length-_.length-P.length,l.forEach(Y=>Y.hasRecursedWithin=!0),u=!0}else if(g)d++,s.set(String(d),Vi.lastIndex),s.set(g,Vi.lastIndex),l.push({num:d,name:g});else if(p[0]==="("){let S=p==="(";S&&(d++,s.set(String(d),Vi.lastIndex)),l.push(S?{num:d}:{})}else p===")"&&l.pop()}return r.push(...o),{pattern:e,captureTransfers:n,hiddenCaptures:r}}function fz(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 pz(e,t,r,a,n,o,i){let s=new Set;a&&Xk(e+t,jg,({groups:{captureName:u}})=>{s.add(u)},Pr.DEFAULT);let l=[r,a?s:null,n,o,i];return`${e}${mz(`(?:${e}`,"forward",...l)}
164(?:)${mz(`${t})`,"backward",...l)}${t}`}function mz(e,t,r,a,n,o,i){let l=c=>t==="forward"?c+2:r-c+2-1,u="";for(let c=0;c<r;c++){let d=l(c);u+=Yd(e,un`${gz}|\\k<(?<backref>[^>]+)>`,({0:f,groups:{captureName:p,unnamed:g,backref:w}})=>{if(w&&a&&!a.has(w))return f;let y=`_$${d}`;if(g||p){let I=i+o.length+1;return o.push(I),wre(n,I),g?f:`(?<${p}${y}>`}return un`\k<${w}${y}>`},Pr.DEFAULT)}return u}function wre(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function hz(e,t,r,a,n,o){if(e.size&&a){let i=0;Xk(t,gz,()=>i++,Pr.DEFAULT);let s=o-i+n,l=new Map;return e.forEach((u,c)=>{let d=(a-i*r)/r,f=i*r,p=c>s+i?c+a:c,g=[];for(let w of u)if(w<=s)g.push(w);else if(w>s+i+d)g.push(w+a);else if(w<=s+i)for(let y=0;y<=r;y++)g.push(w+i*y);else for(let y=0;y<=r;y++)g.push(w+f+d*y);l.set(p,g)}),l}return e}var Ot=String.fromCodePoint,_e=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(_e`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Tn.bugNestedClassIgnoresNegation=Tn.unicodeSets&&new Zg("[[^a]]","v").test("a");function Vg(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function ef(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function s6(e,t){return yz[e]>=yz[t]}function Sre(e,t){if(e==null)throw new Error(t??"Value expected");return e}var yz={ES2025:2025,ES2024:2024,ES2018:2018},Ire={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Iz(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");
vendor: 2,281 bytes, lines 164-246
164if(e.target!==void 0&&!Ire[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 ]",_re=new Set([Ot(304),Ot(305)]),za=_e`[\p{L}\p{M}\p{N}\p{Pc}]`;function kz(e){if(_re.has(e))return[e];let t=new Set,r=e.toLowerCase(),a=r.toUpperCase(),n=$re.get(r),o=Cre.get(r),i=Tre.get(r);return[...a].length===1&&t.add(a),i&&t.add(i),n&&t.add(n),t.add(r),o&&t.add(o),[...t]}var u6=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=>[Ul(e),e])),Cre=new Map([["s",Ot(383)],[Ot(383),"s"]]),Tre=new Map([[Ot(223),Ot(7838)],[Ot(107),Ot(8490)],[Ot(229),Ot(8491)],[Ot(969),Ot(8486)]]),$re=new Map([Uo(453),Uo(456),Uo(459),Uo(498),...n6(8072,8079),...n6(8088,8095),...n6(8104,8111),Uo(8124),Uo(8140),Uo(8188)]),Pre=new Map([["alnum",_e`[\p{Alpha}\p{Nd}]`],["alpha",_e`\p{Alpha}`],["ascii",_e`\p{ASCII}`],["blank",_e`[\p{Zs}\t]`],["cntrl",_e`\p{Cc}`],["digit",_e`\p{Nd}`],["graph",_e`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",_e`\p{Lower}`],["print",_e`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",_e`[\p{P}\p{S}]`],["space",_e`\p{space}`],["upper",_e`\p{Upper}`],["word",_e`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",_e`\p{AHex}`]]);function Lre(e,t){let r=[];for(let a=e;a<=t;a++)r.push(a);return r}function Uo(e){let t=Ot(e);return[t.toLowerCase(),t]}function n6(e,t){return Lre(e,t).map(r=>Uo(r))}var _z=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Are(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Cz(e);let a={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:s6(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};ji(e,Ere,a);let n={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:n,prevFlags:null,globalFlags:n,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:a.subroutineRefMap};ji(e,Mre,o);let i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return ji(e,Rre,i),e._originMap=o.groupOriginByCopy,e._strategy=a.strategy,e}var Ere={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:a,kind:n}=e;if(n==="repeater"){let o=qr();o.body[0].body.push(Fo({negate:!0,body:a}),Bi("Any"));let i=qr();i.body[0].body.push(Jk("greedy",0,1/0,o)),r(Pt(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:a}){let n=e.body.filter(o=>o.kind==="flags");for(let o=r+1;o<t.body.length;o++){let i=t.body[o];ef(a,i,[]).push(...n)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=$z(t.get(e));if(r){let a=qr({flags:r});a.body[0].body=e.body,e.body=[Pt(a,e)]}}}},Assertion({node:e,parent:t,key:r,container:a,root:n,remove:o,replaceWith:i},s){let{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")i(Pt(Fo({body:[Da({body:[Fg("string_end")]}),Da({body:[Fl(10)]})]}),t));else if(l==="line_start")i(Pt(Na(_e`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(f.has(e))n.flags.sticky=!0,o();
vendor: 16,508 bytes, lines 254-257
254else{let g=a[r-1];if(g&&Ure(g))i(Pt(Fo({negate:!0}),t));else{if(d)throw new Error(_e`Uses "\G" in a way that requires a subclass`);i(Bo(Fg("string_start"),t)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(Pt(Na(_e`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!p&&!c){let g=`(?:(?<=${za})(?!${za})|(?<!${za})(?=${za}))`,w=`(?:(?<=${za})(?=${za})|(?<!${za})(?!${za}))`;i(Pt(Na(u?w:g),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!o6(r)&&(r=a6(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:a}=e;a&&!o6(a)&&(a=a6(a,t),e.name=a),r.set(e.number,e),a&&r.set(a,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){let a=Kd({body:[e]});r(Pt(a,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:a,minTargetEs2024:n,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:s}){let{kind:l,negate:u,value:c}=e;if(o&&(l==="digit"||c==="digit")){r(Bo(Ug("digit",{negate:u}),t));return}if(i&&(l==="space"||c==="space")){r(Pt(i6(Na(kre),u),t));return}if(s&&(l==="word"||c==="word")){r(Bo(Ug("word",{negate:u}),t));return}if(l==="any")r(Bo(Bi("Any"),t));else if(l==="digit")r(Bo(Bi("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(a==="strict")throw new Error(_e`Use of "\X" requires non-strict accuracy`);let d="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",f=_e`\p{RI}{2}|${d}(?:\u200D${d})*`;r(Pt(Na(_e`(?>\r\n|${n?_e`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")r(Bo(Bi("AHex",{negate:u}),t));else if(l==="newline")r(Pt(Na(u?`[^ 255]`:`(?>\r 256?|[ 257\v\f\x85\u2028\u2029])`),t));else if(l==="posix")if(!n&&(c==="graph"||c==="print")){if(a==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[c];u&&(d=`\0-${Ot(d.codePointAt(0)-1)}${Ot(d.codePointAt(2)+1)}-\u{10FFFF}`),r(Pt(Na(`[${d}]`),t))}else r(Pt(i6(Na(Pre.get(c)),u),t));else if(l==="property")u6.has(Ul(c))||(e.key="sc");else if(l==="space")r(Bo(Bi("space",{negate:u}),t));else if(l==="word")r(Pt(i6(Na(za),u),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:a,replaceWith:n,removeAllPrevSiblings:o,removeAllNextSiblings:i}){let{kind:s,flags:l}=e;if(s==="flags")if(!l.enable&&!l.disable)a();else{let u=qr({flags:l});u.body[0].body=i(),n(Pt(u,t),{traverse:!0})}else if(s==="keep"){let u=r.body[0],d=r.body.length===1&&zg(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:r;if(t.parent!==d||d.body.length>1)throw new Error(_e`Uses "\K" in a way that's unsupported`);let f=Fo({behind:!0});f.body[0].body=o(),n(Pt(f,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:a}=e;if(a==="fail")r(Pt(Fo({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${a.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=qr();t.body[0].body.push(e.body),e.body=Pt(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],a=!1,n=!1;for(let o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{let i=Lz(o.body);i?(a=!0,Array.isArray(i)?r.push(...i):r.push(i)):n=!0}a&&!n&&r.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:r,strategy:a}){if(t==="strict"&&r&&a)throw new Error(_e`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!o6(r)&&(r=a6(r,t),e.ref=r)}},Mre={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:a,ref:n}=e;a||r.set(e,[...t.get(n).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:a},{groupOriginByCopy:n,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:s,reffedNodesByReferencer:l}){let u=n.get(e);if(u&&s.has(e.number)){let d=Bo(xz(e.number),t);l.set(d,s.get(e.number)),r(d);return}s.set(e.number,e),i.set(e.number,[]),e.name&&ef(i,e.name,[]);let c=i.get(e.name??e.number);for(let d=0;d<c.length;d++){let f=c[d];if(u===f.node||u&&u===f.origin||e===f.origin){c.splice(d,1);break}}if(i.get(e.number).push({node:e,origin:u}),e.name&&i.get(e.name).push({node:e,origin:u}),e.name){let d=ef(o,e.name,new Map),f=!1;if(u)f=!0;else for(let p of d.values())if(!p.hasDuplicateNameToRemove){f=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:f})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Vg(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},a){let{isRecursive:n,ref:o}=e;if(n){let c=t;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===o||c.number===o)););a.reffedNodesByReferencer.set(e,c);return}let i=a.subroutineRefMap.get(o),s=o===0,l=s?xz(0):Tz(i,a.groupOriginByCopy,null),u=l;if(!s){let c=$z(Nre(i,f=>f.type==="Group"&&!!f.flags)),d=c?Vg(a.globalFlags,c):a.globalFlags;Dre(d,a.currentFlags)||(u=qr({flags:Ore(d)}),u.body[0].body.push(l))}r(Pt(u,t),{traverse:!s})}},Rre={Backreference({node:e,parent:t,replaceWith:r},a){if(e.orphan){a.highestOrphanBackref=Math.max(a.highestOrphanBackref,e.ref);return}let o=a.reffedNodesByReferencer.get(e).filter(i=>zre(i,e));if(!o.length)r(Pt(Fo({negate:!0}),t));else if(o.length>1){let i=qr({atomic:!0,body:o.reverse().map(s=>Da({body:[Ng(s.number)]}))});r(Pt(i,t))}else e.ref=o[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 a=0;a<r;a++){let n=Wk();e.body.at(-1).body.push(n)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Cz(e){ji(e,{"*"({node:t,parent:r}){t.parent=r}})}function Dre(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function zre(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let a=Pz(r.parent);for(let n of a){if(n===r)break;if(n===e||Az(n,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function Tz(e,t,r,a){let n=Array.isArray(e)?[]:{};for(let[o,i]of Object.entries(e))o==="parent"?n.parent=Array.isArray(r)?a:r:i&&typeof i=="object"?n[o]=Tz(i,t,n,r):(o==="type"&&i==="CapturingGroup"&&t.set(n,t.get(e)??e),n[o]=i);return n}function xz(e){let t=Kk(e);return t.isRecursive=!0,t}function Nre(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function a6(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 $z(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:a})=>{t.forEach(n=>{a.enable?.[n]&&(delete r.disable[n],r.enable[n]=!0),a.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 Pz(e){if(!e)throw new Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Lz(e){let t=e.find(r=>r.kind==="search_start"||Bre(r,{negate:!1})||!Fre(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 a of t.body){let n=Lz(a.body);if(!n)return null;Array.isArray(n)?r.push(...n):r.push(n)}return r}return null}function Az(e,t){let r=Pz(e)??[];for(let a of r)if(a===t||Az(a,t))return!0;return!1}function Fre({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 Bre(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&zg(e.body[0],{type:"Assertion",kind:"search_start"})}function o6(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Na(e,t){let a=Og(e,{...t,unicodePropertyMap:u6}).body;return a.length>1||a[0].body.length>1?qr({body:a}):a[0].body[0]}function i6(e,t){return e.negate=t,e}function Bo(e,t){return e.parent=t,e}function Pt(e,t){return Cz(e),e.parent=t,e}function jre(e,t){let r=Iz(t),a=s6(r.target,"ES2024"),n=s6(r.target,"ES2025"),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,s=null;if(!n){let p=[e.flags.ignoreCase];ji(e,Vre,{getCurrentModI:()=>p.at(-1),popModI(){p.pop()},pushModI(g){p.push(g)},setHasCasedChar(){p.at(-1)?i=!0:s=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!s)},u=e,c={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!n&&i&&s),useFlagMods:n,useFlagV:a,verbose:r.verbose};function d(p){return c.lastNode=u,u=p,Sre(Zre[p.type],`Unexpected node type "${p.type}"`)(p,c,d)}let f={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return a||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],c.captureMap.forEach((p,g)=>{p.hidden&&f._hiddenCaptures.push(g),p.transferTo&&ef(f._captureTransfers,p.transferTo,[]).push(g)}),f}var Vre={"*":{enter({node:e},t){if(wz(e)){let r=t.getCurrentModI();t.pushModI(e.flags?Vg({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){wz(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){c6(Ot(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),Ez(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&_z.has(e.value)&&t.setHasCasedChar()}},Zre={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?_e`\B`:_e`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:a,name:n,number:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(i.hidden=!0,o>s.number&&(i.transferTo=s.number)),t.captureMap.set(o,i),`(${n?`?<${n}>`:""}${a.map(r).join("|")})`},Character({value:e},t){let r=Ot(e),a=jl(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(a!==r)return a;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&c6(r)){let n=kz(r);return t.inCharClass?n.join(""):n.length>1?`[${n.join("")}]`:n[0]}return r},CharacterClass(e,t,r){let{kind:a,negate:n,parent:o}=e,{body:i}=e;if(a==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Tn.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Sz)&&(i=[Fl(45),...i.filter(u=>!Sz(u))]);let s=()=>`[${n?"^":""}${i.map(r).join(a==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Tn.bugNestedClassIgnoresNegation)&&!n){let c=i.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(c.length){let d=qr(),f=d.body[0];return d.parent=o,f.parent=d,i=i.filter(p=>!c.includes(p)),e.body=i,i.length?(e.parent=f,f.body.push(e)):d.body.pop(),c.forEach(p=>{let g=Da({body:[p]});p.parent=g,g.parent=d,d.body.push(g)}),r(d)}}t.inCharClass=!0;let u=s();return t.inCharClass=!1,u}let l=i[0];if(a==="union"&&!n&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(Tn.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&l.type!=="CharacterClassRange"))return i.map(r).join("");if(!t.useFlagV&&o.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,a=e.max.value,n={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=jl(r,n),i=jl(a,n),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let l=Ez(e);Jre(l).forEach(c=>{s.add(Array.isArray(c)?`${jl(c[0],n)}-${jl(c[1],n)}`:jl(c,n))})}return`${o}-${i}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:a},n){if(e==="dot")return n.currentFlags.dotAll?n.appliedGlobalFlags.dotAll||n.useFlagMods?".":"[^]":_e`[^\n]`;if(e==="digit")return t?_e`\D`:_e`\d`;if(e==="property"){if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&_z.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?_e`\P`:_e`\p`}{${a?`${a}=`:""}${r}}`}if(e==="word")return t?_e`\W`:_e`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:a},n,o){let i=n.currentFlags;r&&(n.currentFlags=Vg(i,r));let s=t.map(o).join("|"),l=!n.verbose&&t.length===1&&a.type!=="Quantifier"&&!e&&(!n.useFlagMods||!r)?s:`(?${Kre(e,r,n.useFlagMods)}${s})`;return n.currentFlags=i,l},LookaroundAssertion({body:e,kind:t,negate:r},a,n){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(n).join("|")})`},Quantifier(e,t,r){return r(e.body)+Xre(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");let a=r.recursionLimit;return t===0?`(?R=${a})`:_e`\g<${t}&R=${a}>`}},qre=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Gre=new Set(["-","\\","]","^","["]),Hre=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),bz=new Map([[9,_e`\t`],[10,_e`\n`],[11,_e`\v`],[12,_e`\f`],[13,_e`\r`],[8232,_e`\u2028`],[8233,_e`\u2029`],[65279,_e`\uFEFF`]]),Wre=/^\p{Cased}$/u;function c6(e){return Wre.test(e)}function Ez(e,t){let r=!!t?.firstOnly,a=e.min.value,n=e.max.value,o=[];if(a<65&&(n===65535||n>=131071)||a===65536&&n>=131071)return o;for(let i=a;i<=n;i++){let s=Ot(i);if(!c6(s))continue;let l=kz(s).filter(u=>{let c=u.codePointAt(0);return c<a||c>n});if(l.length&&(o.push(...l),r))break}return o}function jl(e,{escDigit:t,inCharClass:r,useFlagV:a}){if(bz.has(e))return bz.get(e);if(e<32||e>126&&e<160||e>262143||t&&Yre(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let n=r?a?Hre:Gre:qre,o=Ot(e);return(n.has(o)?"\\":"")+o}function Jre(e){let t=e.map(n=>n.codePointAt(0)).sort((n,o)=>n-o),r=[],a=null;for(let n=0;n<t.length;n++)t[n+1]===t[n]+1?a??=t[n]:a===null?r.push(t[n]):(r.push([a,t[n]]),a=null);return r}function Kre(e,t,r){if(e)return">";let a="";if(t&&r){let{enable:n,disable:o}=t;a=(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${a}:`}function Xre({kind:e,max:t,min:r}){let a;return!r&&t===1?a="?":!r&&t===1/0?a="*":r===1&&t===1/0?a="+":r===t?a=`{${r}}
257`:a=`{${r},${t===1/0?"":t}}`,a+{greedy:"",lazy:"?",possessive:"+"}[e]}function wz({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function Yre(e){return e>47&&e<58}function Sz({type:e,value:t}){return e==="Character"&&t===45}var Qre=class l6 extends RegExp{#t=new Map;#e=null;#n;#r=null;#a=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,a){let n=!!a?.lazyCompile;if(t instanceof RegExp){if(a)throw new Error("Cannot provide options when copying a regexp");let o=t;super(o,r),this.#n=o.source,o instanceof l6&&(this.#t=o.#t,this.#r=o.#r,this.#a=o.#a,this.rawOptions=o.rawOptions)}else{let o={hiddenCaptures:[],strategy:null,transfers:[],...a};super(n?"":t,r),this.#n=t,this.#t=tne(o.hiddenCaptures,o.transfers),this.#a=o.strategy,this.rawOptions=a??{}}n||(this.#e=this)}exec(t){if(!this.#e){let{lazyCompile:n,...o}=this.rawOptions;this.#e=new l6(this.#n,this.flags,o)}let r=this.global||this.sticky,a=this.lastIndex;if(this.#a==="clip_search"&&r&&a){this.lastIndex=0;let n=this.#o(t.slice(a));return n&&(ene(n,a,t,this.hasIndices),this.lastIndex+=a),n}return this.#o(t)}#o(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 a=[...r];r.length=1;let n;this.hasIndices&&(n=[...r.indices],r.indices.length=1);let o=[0];for(let i=1;i<a.length;i++){let{hidden:s,transferTo:l}=this.#t.get(i)??{};if(s?o.push(null):(o.push(r.length),r.push(a[i]),this.hasIndices&&r.indices.push(n[i])),l&&a[i]!==void 0){let u=o[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=a[i],this.hasIndices&&(r.indices[u]=n[i]),r.groups){this.#r||(this.#r=rne(this.source));let c=this.#r.get(l);c&&(r.groups[c]=a[i],this.hasIndices&&(r.indices.groups[c]=n[i]))}}}return r}};function ene(e,t,r,a){if(e.index+=t,e.input=r,a){let n=e.indices;for(let i=0;i<n.length;i++){let s=n[i];s&&(n[i]=[s[0]+t,s[1]+t])}let o=n.groups;o&&Object.keys(o).forEach(i=>{let s=o[i];s&&(o[i]=[s[0]+t,s[1]+t])})}}function tne(e,t){let r=new Map;for(let a of e)r.set(a,{hidden:!0});for(let[a,n]of t)for(let o of n)ef(r,o,{}).transferTo=a;return r}function rne(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,a=0,n=0,o;for(;o=t.exec(e);){let{0:i,groups:{capture:s,name:l}}=o;i==="["?a++:a?i==="]"&&a--:s&&(n++,l&&r.set(n,l))}return r}function Mz(e,t){let r=nne(e,t);return r.options?new Qre(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function nne(e,t){let r=Iz(t),a=Og(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:u6}),n=Are(a,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),o=jre(n,r),i=vz(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),s=e6(i.pattern),l=Qk(s.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),u={pattern:l.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{let c=l.hiddenCaptures.sort((g,w)=>g-w),d=Array.from(l.captureTransfers),f=n._strategy,p=u.pattern.length>=r.lazyCompileLength;(c.length||d.length||f||p)&&(u.options={...c.length&&{hiddenCaptures:c},...d.length&&{transfers:d},...f&&{strategy:f},...p&&{lazyCompile:p}})}return u}function Rz(e,t){return Mz(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function d6(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=r=>Rz(r,{target:t.target}),{createScanner(r){return new BD(r,t)},createString(r){return{content:r}}}}var Dz=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.focu
257sForeground":"#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.selectionHighlightBackgroun
257d":"#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.matchHighlightBackgroun
257d":"#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"}'));var zz=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.focu
257sForeground":"#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.findMatchHighlightBackground":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackgroun
257d":"#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 ane="https://esm.sh/@shikijs/[email protected]/",f6=null;function one(){return f6||(f6=UD({themes:[zz,Dz],langs:[],engine:d6()})),f6}var Nz=new Set,p6=new Map;async function ine(e,t){if(Nz.has(t))return;let r=p6.get(t);if(r)return r;let a=(async()=>{try{let n=await import(`${ane}${t}.mjs`);await e.loadLanguage(n.default??n)}catch{}finally{Nz.add(t),p6.delete(t)}})();return p6.set(t,a),a}async function Oz(e){let t=await one();return await ine(t,e),t}var Fz=["github-light","github-dark"],Uz=new Map,Vl=new Map;function sne(e,t,r){let a=e.slice(0,100),n=e.length>100?e.slice(-100):"";return`${t}:${r[0]}:${r[1]}:${e.length}:${a}:${n}`}function lne(e){let t=r=>typeof r=="string"?r:r?.name??"custom";return[t(e[0]),t(e[1])]}var Bz={name:"shiki",type:"code-highlighter",supportsLanguage(e){return!0},getSupportedLanguages(){return[]},getThemes(){return[Fz[0],Fz[1]]}
257,highlight(e,t){let{code:r,language:a}=e,n=lne(e.themes),o=sne(r,a,n),i=Uz.get(o);return i||(t&&(Vl.has(o)||Vl.set(o,new Set),Vl.get(o).add(t)),Oz(a).then(s=>{let l=s.getLoadedLanguages().includes(a)?a:"text",u=s.codeToTokens(r,{lang:l,themes:{light:n[0],dark:n[1]}}),c={bg:u.bg??void 0,fg:u.fg??void 0,tokens:u.tokens};Uz.set(o,c);let d=Vl.get(o);if(d){for(let f of d)f(c);Vl.delete(o)}}).catch(s=>{console.error("[streamdown-code] Failed to highlight:",s),Vl.delete(o)}),null)}};function m6(e,t){return Vz(e,t||{})||{type:"root",children:[]}}function Vz(e,t){let r=une(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function une(e,t){switch(e.nodeType){case 1:return pne(e,t);case 3:return dne(e);case 8:return fne(e);case 9:return jz(e,t);case 10:return cne();case 11:return jz(e,t);default:return}}function jz(e,t){return{type:"root",children:Zz(e,t)}}function cne(){return{type:"doctype"}}function dne(e){return{type:"text",value:e.nodeValue||""}}function fne(e){return{type:"comment",value:e.nodeValue||""}}function pne(e,t){let r=e.namespaceURI,a=r===Lf.svg?J_:W_,n=r===Lf.html?e.tagName.toLowerCase():e.tagName,o=r===Lf.html&&n==="template"?e.content:e,i=e.getAttributeNames(),s={},l=-1;for(;++l<i.length;)s[i[l]]=e.getAttribute(i[l])||"";return a(n,s,Zz(o,t))}function Zz(e,t){let r=e.childNodes,a=[],n=-1;for(;++n<r.length;){let o=Vz(r[n],t);o!==void 0&&a.push(o)}return a}var mne=new DOMParser;function qz(e,t){let r=t?.fragment?hne(e):mne.parseFromString(e,"text/html");return m6(r)}function hne(e){let t=document.createElement("template");return t.innerHTML=e,t.content}var qg=(function(e,t,r){let a=O_(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(a(e.children[t],t,e))return e.children[t]});var Oa=(function(e){if(e==null)return yne;if(typeof e=="string")return vne(e);if(typeof e=="object")return gne(e);if(typeof e=="function")return h6(e);throw new Error("Expected function, string, or array as `test`")});function gne(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Oa(e[r]);return h6(a);function a(...n){let o=-1;for(;++o<t.length;)if(t[o].apply(this,n))return!0;return!1}}function vne(e){return h6(t);function t(r){return r.tagName===e}}function h6(e){return t;function t(r,a,n){return!!(xne(r)&&e.call(this,r,typeof a=="number"?a:void 0,n||void 0))}}function yne(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function xne(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}var Gz=/\n/g,Hz=/[\t ]+/g,g6=Oa("br"),Wz=Oa(Cne),bne=Oa("p"),Jz=Oa("tr"),wne=Oa(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",_ne,Tne]),Kz=Oa(["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 v6(e,t){let r=t||{},a="children"in e?e.children:[],n=Kz(e),o=Qz(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),i=[];(e.type==="text"||e.type==="comment")&&i.push(...Yz(e,{whitespace:o,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<a.length;)i.push(...Xz(a[s],e,{whitespace:o,breakBefore:s?void 0:n,breakAfter:s<a.length-1?g6(a[s+1]):n}));let l=[],u;for(s=-1;++s<i.length;){let c=i[s];typeof c=="number"?u!==void 0&&c>u&&(u=c):c&&(u!==void 0&&u>-1&&l.push(` 258`.repeat(u)||" "),u=-1,l.push(c))}return l.join("")}function Xz(e,t,r){return e.type==="element"?Sne(e,t,r):e.type==="text"?r.whitespace==="normal"?Yz(e,r):Ine(e):[]}function Sne(e,t,r){let a=Qz(e,r),n=e.children||[],o=-1,i=[];if(wne(e))return i;let s,l;for(g6(e)||Jz(e)&&qg(t,e,Jz)?l=` 259`:bne(e)?(s=2,l=2):Kz(e)&&(s=1,l=1);++o<n.length;)i=i.concat(Xz(n[o],e,{whitespace:a,breakBefore:o?void 0:s,breakAfter:o<n.length-1?g6(n[o+1]):l}));return Wz(e)&&qg(t,e,Wz)&&i.push(" "),s&&i.unshift(s),l&&i.push(l),i}function Yz(e,t){let r=String(e.value),a=[],n=[],o=0;for(;o<=r.length;){Gz.lastIndex=o;let l=Gz.exec(r),u=l&&"index"in l?l.index:r.length;a.push(kne(r.slice(o,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,u===r.length?t.breakAfter:!0)),o=u+1}let i=-1,s;for(;++i<a.length;
259)a[i].charCodeAt(a[i].length-1)===8203||i<a.length-1&&a[i+1].charCodeAt(0)===8203?(n.push(a[i]),s=void 0):a[i]?(typeof s=="number"&&n.push(s),n.push(a[i]),s=0):(i===0||i===a.length-1)&&n.push(0);return n}function Ine(e){return[String(e.value)]}function kne(e,t,r){let a=[],n=0,o;for(;n<e.length;){Hz.lastIndex=n;let i=Hz.exec(e);o=i?i.index:e.length,!n&&!o&&i&&!t&&a.push(""),n!==o&&a.push(e.slice(n,o)),n=i?o+i[0].length:o}return n!==o&&!r&&a.push(""),a.join(" ")}function Qz(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 _ne(e){return!!(e.properties||{}).hidden}function Cne(e){return e.tagName==="td"||e.tagName==="th"}function Tne(e){return e.tagName==="dialog"&&!(e.properties||{}).open}var K=class e extends Error{constructor(t,r){var a="KaTeX parse error: "+t,n,o,i=r&&r.loc;if(i&&i.start<=i.end){var s=i.lexer.input;n=i.start,o=i.end,n===s.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var l=s.slice(n,o).replace(/[^]/g,"$&\u0332"),u;n>15?u="\u2026"+s.slice(n-15,n):u=s.slice(0,n);var c;o+15<s.length?c=s.slice(o,o+15)+"\u2026":c=s.slice(o),a+=u+l+c}super(a),this.name="ParseError",Object.setPrototypeOf(this,e.prototype),this.position=n,n!=null&&o!=null&&(this.length=o-n),this.rawMessage=t}},$ne=/([A-Z])/g,W6=e=>e.replace($ne,"-$1").toLowerCase(),Pne={"&":"&",">":">","<":"<",'"':""","'":"'"},Lne=/[&><"']/g,rr=e=>String(e).replace(Lne,t=>Pne[t]),nv=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?nv(e.body[0]):e:e.type==="font"?nv(e.body):e,Ane=new Set(["mathord","textord","atom"]),ja=e=>Ane.has(nv(e).type),Ene=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"},E6={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 Mne(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 of=class{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(E6)){var a=E6[r],n=t[r];this[r]=n!==void 0?a.processor?a.processor(n):n:Mne(a)}}reportNonstrict(t,r,a){var n=this.strict;if(typeof n=="function"&&(n=n(t,r,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new K("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),a);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,a){var n=this.strict;if(typeof n=="function")try{n=n(t,r,a)}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=Ene(t.url);if(r==null)return!1;t.protocol=r}var a=typeof this.trust=="function"?this.trust(t):this.trust;return!!a}},Wn=class{constructor(t,r,a){this.id=t,this.size=r,this.cramped=a}sup(){return Jn[Rne[this.id]]}sub(){return Jn[Dne[this.id]]}fracNum(){return Jn[zne[this.id]]}fracDen(){return Jn[Nne[this.id]]}cramp(){return Jn[One[this.id]]}text(){return Jn[Fne[this.id]]}isTight(){return this.size>=2}},J6=0,ov=1,ql=2,Ba=3,sf=4,cn=5,Gl=6,pr=7,Jn=[new Wn(J6,0,!1),new Wn(ov,0,!0),new Wn(ql,1,!1),new Wn(Ba,1,!0),new Wn(sf,2,!1),new Wn(cn,2,!0),new Wn(Gl,3,!1),new Wn(pr,3,!0)],Rne=[sf,cn,sf,cn,Gl,pr,Gl,pr],Dne=[cn,cn,cn,cn,pr,pr,pr,pr],zne=[ql,Ba,sf,cn,Gl,pr,Gl,pr],Nne=[Ba,Ba,cn,cn,pr,pr,pr,pr],One=[ov,ov,Ba,Ba,cn,cn,pr,pr],Fne=[J6,ov,ql,Ba,ql,Ba,ql,Ba],Se={DISPLAY:Jn[J6],TEXT:Jn[ql],SCRIPT:Jn[sf],SCRIPTSCRIPT:Jn[Gl]},M6=[{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<M6.length;t++)for(var r=M6[t],a=0;a<r.blocks.length;a++){var n=r.blocks[a];if(e>=n[0]&&e<=n[1])return r.name}return null}var av=[];
vendor: 4,440 bytes, lines 259-310
259M6.forEach(e=>e.blocks.forEach(t=>av.push(...t)));function PN(e){for(var t=0;t<av.length;t+=2)if(e>=av[t]&&e<=av[t+1])return!0;return!1}var Zl=80,Bne=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"},jne=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"},Vne=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"},Zne=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"},qne=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"},Hne=function(t,r,a){var n=a-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"},Wne=function(t,r,a){r=1e3*r;var n="";switch(t){case"sqrtMain":n=Bne(r,Zl);break;case"sqrtSize1":n=jne(r,Zl);break;case"sqrtSize2":n=Vne(r,Zl);break;case"sqrtSize3":n=Zne(r,Zl);break;case"sqrtSize4":n=qne(r,Zl);break;case"sqrtTall":n=Hne(r,Zl,a)}return n},Jne=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""}},eN
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,034 bytes, lines 489-517
489Kne=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.")}},Zo=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("")}},R6={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},Xne={ex:!0,em:!0,mu:!0},LN=function(t){return typeof t!="string"&&(t=t.unit),t in R6||t in Xne||t==="ex"},St=function(t,r){var a;if(t.unit in R6)a=R6[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")a=r.fontMetrics().cssEmPerMu;else{var n;if(r.style.isTight()?n=r.havingStyle(r.style.text()):n=r,t.unit==="ex")a=n.fontMetrics().xHeight;else if(t.unit==="em")a=n.fontMetrics().quad;else throw new K("Invalid unit: '"+t.unit+"'");n!==r&&(a*=n.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*a,r.maxSize)},Q=function(t){return+t.toFixed(4)+"em"},qo=function(t){return t.filter(r=>r).join(" ")},AN=function(t,r,a){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},r){r.style.isTight()&&this.classes.push("mtight");var n=r.getColor();n&&(this.style.color=n)}},EN=function(t){var r=document.createElement(t);r.className=qo(this.classes);for(var a of Object.keys(this.style))r.style[a]=this.style[a];for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var o=0;o<this.children.length;o++)r.appendChild(this.children[o].toNode());return r},Yne=/[\s"'>/=\x00-\x1f]/,MN=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+rr(qo(this.classes))+'"');var a="";for(var n of Object.keys(this.style))a+=W6(n)+":"+this.style[n]+";";a&&(r+=' style="'+rr(a)+'"');for(var o of Object.keys(this.attributes)){if(Yne.test(o))throw new K("Invalid attribute name '"+o+"'");r+=" "+o+'="'+rr(this.attributes[o])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+t+">",r},Go=class{constructor(t,r,a,n){AN.call(this,t,a,n),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return EN.call(this,"span")}toMarkup(){return MN.call(this,"span")}},Hl=class{constructor(t,r,a,n){AN.call(this,r,n),this.children=a||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return EN.call(this,"a")}toMarkup(){return MN.call(this,"a")}},D6=class{constructor(t,r,a){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=a}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="'+rr(this.src)+'"'+(' alt="'+rr(this.alt)+'"'),r="";for(var a of Object.keys(this.style))r+=W6(a)+":"+this.style[a]+";";return r&&(t+=' style="'+rr(r)+'"'),t+="'/>",t}},Qne={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},mr=class{constructor(t,r,a,n,o,i,s,l){this.text=t,this.height=r||0,this.depth=a||0,this.italic=n||
vendor: 2,484 bytes, line 517
5170,this.skew=o||0,this.width=i||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var u=Une(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=Qne[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=Q(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=qo(this.classes));for(var a of Object.keys(this.style))r=r||document.createElement("span"),r.style[a]=this.style[a];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=rr(qo(this.classes)),r+='"');var a="";this.italic>0&&(a+="margin-right:"+Q(this.italic)+";");for(var n of Object.keys(this.style))a+=W6(n)+":"+this.style[n]+";";a&&(t=!0,r+=' style="'+rr(a)+'"');var o=rr(this.text);return t?(r+=">",r+=o,r+="</span>",r):o}},$n=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 a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);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+'="'+rr(this.attributes[r])+'"';t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].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",eN[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+rr(this.alternate)+'"/>':'<path d="'+rr(eN[this.pathName])+'"/>'}},lf=class{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+rr(this.attributes[r])+'"';return t+="/>",t}};function eae(e){if(e instanceof mr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function tae(e){if(e instanceof Go)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var rae=e=>e instanceof Go||e instanceof Hl||e instanceof Zo,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
517Gg={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]},tN={\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 nae(e,t){Kn[e]=t}function K6(e,t,r){if(!Kn[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),n=Kn[t][a];if(!n&&e[0]in tN&&(a=tN[e[0]].charCodeAt(0),n=Kn[t][a]),!n&&r==="text"&&PN(a)&&(n=Kn[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var y6={};function aae(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!y6[t]){var r=y6[t]={cssEmPerMu:Gg.quad[t]/18};for(var a in Gg)Gg.hasOwnProperty(a)&&(r[a]=Gg[a][t])}return y6[t]}var oae={bin:1,close:1,inner:1,open:1,punct:1,rel:1},iae={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ht={math:{},text:{}};function m(e,t,r,a,n,o){ht[e][n]={font:t,group:r,replace:a},o&&a&&(ht[e][a]=ht[e][n])}var h="math",F="text",b="main",T="ams",gt="accent-token",ue="bin",hr="close",Kl="inner",me="mathord",Mt="op-token",Hr="open",cf="punct",$="rel",Va="spacing",L="textord";m(h,b,$,"\u2261","\\equiv",!0);m(h,b,$,"\u227A","\\prec",!0);m(h,b,$,"\u227B","\\succ",!0);m(h,b,$,"\u223C","\\sim",!0);m(h,b,$,"\u22A5","\\perp");m(h,b,$,"\u2AAF","\\preceq",!0);m(h,b,$,"\u2AB0","\\succeq",!0);m(h,b,$,"\u2243","\\simeq",!0);m(h,b,$,"\u2223","\\mid",!0);m(h,b,$,"\u226A","\\ll",!0);m(h,b,$,"\u226B","\\gg",!0);m(h,b,$,"\u224D","\\asymp",!0);m(h,b,$,"\u2225","\\parallel");m(h,b,$,"\u22C8","\\bowtie",!0);m(h,b,$,"\u2323","\\smile",!0);m(h,b,$,"\u2291","\\sqsubseteq",!0);m(h,b,$,"\u2292","\\sqsupseteq",!0);m(h,b,$,"\u2250","\\doteq",!0);m(h,b,$,"\u2322","\\frown",!0);m(h,b,$,"\u220B","\\ni",!0);m(h,b,$,"\u221D","\\propto",!0);m(h,b,$,"\u22A2","\\vdash",!0);m(h,b,$,"\u22A3","\\dashv",!0);m(h,b,$,"\u220B","\\owns");m(h,b,cf,".","\\ldotp");m(h,b,cf,"\u22C5","\\cdotp");m(h,b,cf,"\u22C5","\xB7");m(F,b,L,"\u22C5","\xB7");m(h,b,L,"#","\\#");m(F,b,L,"#","\\#");m(h,b,L,"&","\\&");m(F,b,L,"&","\\&");m(h,b,L,"\u2135","\\aleph",!0);m(h,b,L,"\u2200","\\forall",!0);m(h,b,L,"\u210F","\\hbar",!0);m(h,b,L,"\u2203","\\exists",!0);m(h,b,L,"\u2207","\\nabla",!0);m(h,b,L,"\u266D","\\flat",!0);m(h,b,L,"\u2113","\\ell",!0);m(h,b,L,"\u266E","\\natural",!0);m(h,b,L,"\u2663","\\clubsuit",!0);m(h,b,L,"\u2118","\\wp",!0);m(h,b,L,"\u266F","\\sharp",!0);m(h,b,L,"\u2662","\\diamondsuit",!0);m(h,b,L,"\u211C","\\Re",!0);m(h,b,L,"\u2661","\\heartsuit",!0);m(h,b,L,"\u2111","\\Im",!0);m(h,b,L,"\u2660","\\spadesuit",!0);m(h,b,L,"\xA7","\\S",!0);m(F,b,L,"\xA7","\\S");m(h,b,L,"\xB6","\\P",!0);m(F,b,L,"\xB6","\\P");m(h,b,L,"\u2020","\\dag");m(F,b,L,"\u2020","\\dag");m(F,b,L,"\u2020","\\textdagger");m(h,b,L,"\u2021","\\ddag");m(F,b,L,"\u2021","\\ddag");m(F,b,L,"\u2021","\\textdaggerdbl");m(h,b,hr,"\u23B1","\\rmoustache",!0);m(h,b,Hr,"\u23B0","\\lmoustache",!0);m(h,b,hr,"\u27EF","\\rgroup",!0);m(h,b,Hr,"\u27EE","\\lgroup",!0);m(h,b,ue,"\u2213","\\mp",!0);m(h,b,ue,"\u2296","\\ominus",!0);m(h,b,ue,"\u228E","\\uplus",!0);m(h,b,ue,"\u2293","\\sqcap",!0);m(h,b,ue,"\u2217","\\ast");m(h,b,ue,"\u2294","\\sqcup",!0);m(h,b,ue,"\u25EF","\\bigcirc",!0);m(h,b,ue,"\u2219","\\bullet",!0);m(h,b,ue,"\u2021","\\ddagger");m(h,b,ue,"\u2240","\\wr",!0);m(h,b,ue,"\u2A3F","\\amalg");m(h,b,ue,"&","\\And");m(h,b,$,"\u27F5","\\longleftarrow",!0);m(h,b,$,"\u21D0","\\Leftarrow",!0);m(h,b,$,"\u27F8","\\Longleftarrow",!0);m(h,b,$,"\u27F6","\\longrightarrow",!0);m(h,b,$,"\u21D2","\\Rightarrow",!0);m(h,b,$,"\u27F9","\\Longrightarrow",!0);m(h,b,$,"\u2194","\\leftrightarrow",!0);m(h,b,$,"\u27F7","\\longleftrightarrow",!0);m(h,b,$,"\u21D4","\\Leftrightarrow",!0);m(h,b,$,"\u27FA","\\Longleftrightarrow",!0);m(h,b,$,"\u21A6","\\mapsto",!0);m(h,b,$,"\u27FC","\\longmapsto",!0);m(h,b,$,"\u2197","\\nearrow",!0);m(h,b,$,"\u21A9","\\hookleftarrow",!0);m(h,b,$,"\u21AA","\\hookrightarrow",!0);m(h,b,$,"\u2198","\\searrow",!0);m(h,b,$,"\u21BC","\\leftharpoonup",!0);m(h,b,$,"\u21C0","\\rightharpoonup",!0);m(h,b,$,"\u2199","\\swarrow",!0);m(h,b,$,"\u21BD","\\leftharpoondown",!0);m(h,b,$,"\u21C1","\\rightharpoondown",!0);m(h,b,$,"\u2196","\\nwarrow",!0);m(h,b,$,"\u21CC","\\rightleftharpoons",!0);m(h,T,$,"\u226E","\\nless",!0);m(h,T,$,"\uE010","\\@nleqslant");m(h,T,$,"\uE011","\\@nleqq");m(h,T,$,"\u2A87","\\lneq",!0);m(h,T,$,"\u2268","\\lneqq",!0);m(h,T,$,"\uE00C","\\@lvertneqq");m(h,T,$,"\u22E6","\\lnsim",!0);m(h,T,$,"\u2A89","\\lnapprox",!0);m(h,T,$,"\u2280","\\nprec",!0);m(h,T,$,"\u22E0","\\npreceq",!0);m(h,T,$,"\u22E8","\\precnsim",!0);m(h,T,$,"\u2AB9","\\precnapprox",!0);m(h,T,$,"\u2241","\\nsim",!0);m(h,T,$,"\uE006","\\@nshortmid");m(h,T,$,"\u2224","\\nmid",!0);m(h,T,$,"\u22AC","\\nvdash",!0);m(h,T,$,"\u22AD","\\nvDash",!0);m(h,T,$,"\u22EA","\\ntriangleleft");m(h,T,$,"\u22EC","\\ntrianglelefteq",!0);m(h,T,$,"\u228A","\\subsetneq",!0);m(h,T,$,"\uE01A","\\@varsubsetneq");m(h,T,$,"\u2ACB","\\subsetneqq",!0);m(h,T,$,"\uE017","\\@varsubsetneqq");m(h,T,$,"\u226F","\\ngtr",!0);m(h,T,$,"\uE00F","\\@ngeqslant");m(h,T,$,"\uE00E","\\@ngeqq");m(h,T,$,"\u2A88","\\gneq",!0);m(h,T,$,"\u2269","\\gneqq",!0);m(h,T,$,"\uE00D","\\@gvertneqq");m(h,T,$,"\u22E7","\\gnsim",!0);m(h,T,$,"\u2A8A","\\gnapprox",!0);m(h,T,$,"\u2281","\\nsucc",!0);m(h,T,$,"\u22E1","\\nsucceq",!0);m(h,T,$,"\u22E9","\\succnsim",!0);m(h,T,$,"\u2ABA","\\succnapprox",!0);m(h,T,$,"\u2246","\\ncong",!0);m(h,T,$,"\uE007","\\@nshortparallel");m(h,T,$,"\u2226","\\nparallel",!0);m(h,T,$,"\u22AF","\\nVDash",!0);m(h,T,$,"\u22EB","\\ntriangleright");m(h,T,$,"\u22ED","\\ntrianglerighteq",!0);m(h,T,$,"\uE018","\\@nsupseteqq");m(h,T,$,"\u228B","\\supsetneq",!0);m(h,T,$,"\uE01B","\\@varsupsetneq");m(h,T,$,"\u2ACC","\\supsetneqq",!0);m(h,T,$,"\uE019","\\@varsupsetneqq");m(h,T,$,"\u22AE","\\nVdash",!0);m(h,T,$,"\u2AB5","\\precneqq",!0);m(h,T,$,"\u2AB6","\\succneqq",!0);
517m(h,T,$,"\uE016","\\@nsubseteqq");m(h,T,ue,"\u22B4","\\unlhd");m(h,T,ue,"\u22B5","\\unrhd");m(h,T,$,"\u219A","\\nleftarrow",!0);m(h,T,$,"\u219B","\\nrightarrow",!0);m(h,T,$,"\u21CD","\\nLeftarrow",!0);m(h,T,$,"\u21CF","\\nRightarrow",!0);m(h,T,$,"\u21AE","\\nleftrightarrow",!0);m(h,T,$,"\u21CE","\\nLeftrightarrow",!0);m(h,T,$,"\u25B3","\\vartriangle");m(h,T,L,"\u210F","\\hslash");m(h,T,L,"\u25BD","\\triangledown");m(h,T,L,"\u25CA","\\lozenge");m(h,T,L,"\u24C8","\\circledS");m(h,T,L,"\xAE","\\circledR");m(F,T,L,"\xAE","\\circledR");m(h,T,L,"\u2221","\\measuredangle",!0);m(h,T,L,"\u2204","\\nexists");m(h,T,L,"\u2127","\\mho");m(h,T,L,"\u2132","\\Finv",!0);m(h,T,L,"\u2141","\\Game",!0);m(h,T,L,"\u2035","\\backprime");m(h,T,L,"\u25B2","\\blacktriangle");m(h,T,L,"\u25BC","\\blacktriangledown");m(h,T,L,"\u25A0","\\blacksquare");m(h,T,L,"\u29EB","\\blacklozenge");m(h,T,L,"\u2605","\\bigstar");m(h,T,L,"\u2222","\\sphericalangle",!0);m(h,T,L,"\u2201","\\complement",!0);m(h,T,L,"\xF0","\\eth",!0);m(F,b,L,"\xF0","\xF0");m(h,T,L,"\u2571","\\diagup");m(h,T,L,"\u2572","\\diagdown");m(h,T,L,"\u25A1","\\square");m(h,T,L,"\u25A1","\\Box");m(h,T,L,"\u25CA","\\Diamond");m(h,T,L,"\xA5","\\yen",!0);m(F,T,L,"\xA5","\\yen",!0);m(h,T,L,"\u2713","\\checkmark",!0);m(F,T,L,"\u2713","\\checkmark");m(h,T,L,"\u2136","\\beth",!0);m(h,T,L,"\u2138","\\daleth",!0);m(h,T,L,"\u2137","\\gimel",!0);m(h,T,L,"\u03DD","\\digamma",!0);m(h,T,L,"\u03F0","\\varkappa");m(h,T,Hr,"\u250C","\\@ulcorner",!0);m(h,T,hr,"\u2510","\\@urcorner",!0);m(h,T,Hr,"\u2514","\\@llcorner",!0);m(h,T,hr,"\u2518","\\@lrcorner",!0);m(h,T,$,"\u2266","\\leqq",!0);m(h,T,$,"\u2A7D","\\leqslant",!0);m(h,T,$,"\u2A95","\\eqslantless",!0);m(h,T,$,"\u2272","\\lesssim",!0);m(h,T,$,"\u2A85","\\lessapprox",!0);m(h,T,$,"\u224A","\\approxeq",!0);m(h,T,ue,"\u22D6","\\lessdot");m(h,T,$,"\u22D8","\\lll",!0);m(h,T,$,"\u2276","\\lessgtr",!0);m(h,T,$,"\u22DA","\\lesseqgtr",!0);m(h,T,$,"\u2A8B","\\lesseqqgtr",!0);m(h,T,$,"\u2251","\\doteqdot");m(h,T,$,"\u2253","\\risingdotseq",!0);m(h,T,$,"\u2252","\\fallingdotseq",!0);m(h,T,$,"\u223D","\\backsim",!0);m(h,T,$,"\u22CD","\\backsimeq",!0);m(h,T,$,"\u2AC5","\\subseteqq",!0);m(h,T,$,"\u22D0","\\Subset",!0);m(h,T,$,"\u228F","\\sqsubset",!0);m(h,T,$,"\u227C","\\preccurlyeq",!0);m(h,T,$,"\u22DE","\\curlyeqprec",!0);m(h,T,$,"\u227E","\\precsim",!0);m(h,T,$,"\u2AB7","\\precapprox",!0);m(h,T,$,"\u22B2","\\vartriangleleft");m(h,T,$,"\u22B4","\\trianglelefteq");m(h,T,$,"\u22A8","\\vDash",!0);m(h,T,$,"\u22AA","\\Vvdash",!0);m(h,T,$,"\u2323","\\smallsmile");m(h,T,$,"\u2322","\\smallfrown");m(h,T,$,"\u224F","\\bumpeq",!0);m(h,T,$,"\u224E","\\Bumpeq",!0);m(h,T,$,"\u2267","\\geqq",!0);m(h,T,$,"\u2A7E","\\geqslant",!0);m(h,T,$,"\u2A96","\\eqslantgtr",!0);m(h,T,$,"\u2273","\\gtrsim",!0);m(h,T,$,"\u2A86","\\gtrapprox",!0);m(h,T,ue,"\u22D7","\\gtrdot");m(h,T,$,"\u22D9","\\ggg",!0);m(h,T,$,"\u2277","\\gtrless",!0);m(h,T,$,"\u22DB","\\gtreqless",!0);m(h,T,$,"\u2A8C","\\gtreqqless",!0);m(h,T,$,"\u2256","\\eqcirc",!0);m(h,T,$,"\u2257","\\circeq",!0);m(h,T,$,"\u225C","\\triangleq",!0);m(h,T,$,"\u223C","\\thicksim");m(h,T,$,"\u2248","\\thickapprox");m(h,T,$,"\u2AC6","\\supseteqq",!0);m(h,T,$,"\u22D1","\\Supset",!0);m(h,T,$,"\u2290","\\sqsupset",!0);m(h,T,$,"\u227D","\\succcurlyeq",!0);m(h,T,$,"\u22DF","\\curlyeqsucc",!0);m(h,T,$,"\u227F","\\succsim",!0);m(h,T,$,"\u2AB8","\\succapprox",!0);m(h,T,$,"\u22B3","\\vartriangleright");m(h,T,$,"\u22B5","\\trianglerighteq");m(h,T,$,"\u22A9","\\Vdash",!0);m(h,T,$,"\u2223","\\shortmid");m(h,T,$,"\u2225","\\shortparallel");m(h,T,$,"\u226C","\\between",!0);m(h,T,$,"\u22D4","\\pitchfork",!0);m(h,T,$,"\u221D","\\varpropto");m(h,T,$,"\u25C0","\\blacktriangleleft");m(h,T,$,"\u2234","\\therefore",!0);m(h,T,$,"\u220D","\\backepsilon");m(h,T,$,"\u25B6","\\blacktriangleright");m(h,T,$,"\u2235","\\because",!0);m(h,T,$,"\u22D8","\\llless");m(h,T,$,"\u22D9","\\gggtr");m(h,T,ue,"\u22B2","\\lhd");m(h,T,ue,"\u22B3","\\rhd");m(h,T,$,"\u2242","\\eqsim",!0);m(h,b,$,"\u22C8","\\Join");m(h,T,$,"\u2251","\\Doteq",!0);m(h,T,ue,"\u2214","\\dotplus",!0);m(h,T,ue,"\u2216","\\smallsetminus");m(h,T,ue,"\u22D2","\\Cap",!0);m(h,T,ue,"\u22D3","\\Cup",!0);m(h,T,ue,"\u2A5E","\\doublebarwedge",!0);m(h,T,ue,"\u229F","\\boxminus",!0);m(h,T,ue,"\u229E","\\boxplus",!0);
517m(h,T,ue,"\u22C7","\\divideontimes",!0);m(h,T,ue,"\u22C9","\\ltimes",!0);m(h,T,ue,"\u22CA","\\rtimes",!0);m(h,T,ue,"\u22CB","\\leftthreetimes",!0);m(h,T,ue,"\u22CC","\\rightthreetimes",!0);m(h,T,ue,"\u22CF","\\curlywedge",!0);m(h,T,ue,"\u22CE","\\curlyvee",!0);m(h,T,ue,"\u229D","\\circleddash",!0);m(h,T,ue,"\u229B","\\circledast",!0);m(h,T,ue,"\u22C5","\\centerdot");m(h,T,ue,"\u22BA","\\intercal",!0);m(h,T,ue,"\u22D2","\\doublecap");m(h,T,ue,"\u22D3","\\doublecup");m(h,T,ue,"\u22A0","\\boxtimes",!0);m(h,T,$,"\u21E2","\\dashrightarrow",!0);m(h,T,$,"\u21E0","\\dashleftarrow",!0);m(h,T,$,"\u21C7","\\leftleftarrows",!0);m(h,T,$,"\u21C6","\\leftrightarrows",!0);m(h,T,$,"\u21DA","\\Lleftarrow",!0);m(h,T,$,"\u219E","\\twoheadleftarrow",!0);m(h,T,$,"\u21A2","\\leftarrowtail",!0);m(h,T,$,"\u21AB","\\looparrowleft",!0);m(h,T,$,"\u21CB","\\leftrightharpoons",!0);m(h,T,$,"\u21B6","\\curvearrowleft",!0);m(h,T,$,"\u21BA","\\circlearrowleft",!0);m(h,T,$,"\u21B0","\\Lsh",!0);m(h,T,$,"\u21C8","\\upuparrows",!0);m(h,T,$,"\u21BF","\\upharpoonleft",!0);m(h,T,$,"\u21C3","\\downharpoonleft",!0);m(h,b,$,"\u22B6","\\origof",!0);m(h,b,$,"\u22B7","\\imageof",!0);m(h,T,$,"\u22B8","\\multimap",!0);m(h,T,$,"\u21AD","\\leftrightsquigarrow",!0);m(h,T,$,"\u21C9","\\rightrightarrows",!0);m(h,T,$,"\u21C4","\\rightleftarrows",!0);m(h,T,$,"\u21A0","\\twoheadrightarrow",!0);m(h,T,$,"\u21A3","\\rightarrowtail",!0);m(h,T,$,"\u21AC","\\looparrowright",!0);m(h,T,$,"\u21B7","\\curvearrowright",!0);m(h,T,$,"\u21BB","\\circlearrowright",!0);m(h,T,$,"\u21B1","\\Rsh",!0);m(h,T,$,"\u21CA","\\downdownarrows",!0);m(h,T,$,"\u21BE","\\upharpoonright",!0);m(h,T,$,"\u21C2","\\downharpoonright",!0);m(h,T,$,"\u21DD","\\rightsquigarrow",!0);m(h,T,$,"\u21DD","\\leadsto");m(h,T,$,"\u21DB","\\Rrightarrow",!0);m(h,T,$,"\u21BE","\\restriction");m(h,b,L,"\u2018","`");m(h,b,L,"$","\\$");m(F,b,L,"$","\\$");m(F,b,L,"$","\\textdollar");m(h,b,L,"%","\\%");m(F,b,L,"%","\\%");m(h,b,L,"_","\\_");m(F,b,L,"_","\\_");m(F,b,L,"_","\\textunderscore");m(h,b,L,"\u2220","\\angle",!0);m(h,b,L,"\u221E","\\infty",!0);m(h,b,L,"\u2032","\\prime");m(h,b,L,"\u25B3","\\triangle");m(h,b,L,"\u0393","\\Gamma",!0);m(h,b,L,"\u0394","\\Delta",!0);m(h,b,L,"\u0398","\\Theta",!0);m(h,b,L,"\u039B","\\Lambda",!0);m(h,b,L,"\u039E","\\Xi",!0);m(h,b,L,"\u03A0","\\Pi",!0);m(h,b,L,"\u03A3","\\Sigma",!0);m(h,b,L,"\u03A5","\\Upsilon",!0);m(h,b,L,"\u03A6","\\Phi",!0);m(h,b,L,"\u03A8","\\Psi",!0);m(h,b,L,"\u03A9","\\Omega",!0);m(h,b,L,"A","\u0391");m(h,b,L,"B","\u0392");m(h,b,L,"E","\u0395");m(h,b,L,"Z","\u0396");m(h,b,L,"H","\u0397");m(h,b,L,"I","\u0399");m(h,b,L,"K","\u039A");m(h,b,L,"M","\u039C");m(h,b,L,"N","\u039D");m(h,b,L,"O","\u039F");m(h,b,L,"P","\u03A1");m(h,b,L,"T","\u03A4");m(h,b,L,"X","\u03A7");m(h,b,L,"\xAC","\\neg",!0);m(h,b,L,"\xAC","\\lnot");m(h,b,L,"\u22A4","\\top");m(h,b,L,"\u22A5","\\bot");m(h,b,L,"\u2205","\\emptyset");m(h,T,L,"\u2205","\\varnothing");m(h,b,me,"\u03B1","\\alpha",!0);m(h,b,me,"\u03B2","\\beta",!0);m(h,b,me,"\u03B3","\\gamma",!0);m(h,b,me,"\u03B4","\\delta",!0);m(h,b,me,"\u03F5","\\epsilon",!0);m(h,b,me,"\u03B6","\\zeta",!0);m(h,b,me,"\u03B7","\\eta",!0);m(h,b,me,"\u03B8","\\theta",!0);m(h,b,me,"\u03B9","\\iota",!0);m(h,b,me,"\u03BA","\\kappa",!0);m(h,b,me,"\u03BB","\\lambda",!0);m(h,b,me,"\u03BC","\\mu",!0);m(h,b,me,"\u03BD","\\nu",!0);m(h,b,me,"\u03BE","\\xi",!0);m(h,b,me,"\u03BF","\\omicron",!0);m(h,b,me,"\u03C0","\\pi",!0);m(h,b,me,"\u03C1","\\rho",!0);m(h,b,me,"\u03C3","\\sigma",!0);m(h,b,me,"\u03C4","\\tau",!0);m(h,b,me,"\u03C5","\\upsilon",!0);m(h,b,me,"\u03D5","\\phi",!0);m(h,b,me,"\u03C7","\\chi",!0);m(h,b,me,"\u03C8","\\psi",!0);m(h,b,me,"\u03C9","\\omega",!0);m(h,b,me,"\u03B5","\\varepsilon",!0);m(h,b,me,"\u03D1","\\vartheta",!0);m(h,b,me,"\u03D6","\\varpi",!0);m(h,b,me,"\u03F1","\\varrho",!0);m(h,b,me,"\u03C2","\\varsigma",!0);m(h,b,me,"\u03C6","\\varphi",!0);m(h,b,ue,"\u2217","*",!0);m(h,b,ue,"+","+");m(h,b,ue,"\u2212","-",!0);m(h,b,ue,"\u22C5","\\cdot",!0);m(h,b,ue,"\u2218","\\circ",!0);m(h,b,ue,"\xF7","\\div",!0);m(h,b,ue,"\xB1","\\pm",!0);m(h,b,ue,"\xD7","\\times",!0);m(h,b,ue,"\u2229","\\cap",!0);m(h,b,ue,"\u222A","\\cup",!0);m(h,b,ue,"\u2216","\\setminus",!0);m(h,b,ue,"\u2227","\\land");m(h,b,ue,"\u2228","\\lor");m(h,b,ue,"\u2227","\\wedge",!0);m(h,b,ue,"\u2228","\\vee",!0);m(h,b,L,"\u221A","\\surd");m(h,b,Hr,"\u27E8","\\langle",!0);m(h,b,Hr,"\u2223","\\lvert");m(h,b,Hr,"\u2225","\\lVert");m(h,b,hr,"?","?");m(h,b,hr,"!","!");m(h,b,hr,"\u27E9","\\rangle",!0);m(h,b,hr,"\u2223","\\rvert");m(h,b,hr,"\u2225","\\rVert");m(h,b,$,"=","=");m(h,b,$,":",":");m(h,b,$,"\u2248","\\approx",!0);m(h,b,$,"\u2245","\\cong",!0);m(h,b,$,"\u2265","\\ge");m(h,b,$,"\u2265","\\geq",!0);m(h,b,$,"\u2190","\\gets");m(h,b,$,">","\\gt",!0);m(h,b,$,"\u2208","\\in",!0);m(h,b,$,"\uE020","\\@not");m(h,b,$,"\u2282","\\subset",!0);m(h,b,$,"\u2283","\\supset",!0);m(h,b,$,"\u2286","\\subseteq",!0);m(h,b,$,"\u2287","\\supseteq",!0);m(h,T,$,"\u2288","\\nsubseteq",!0);m(h,T,$,"\u2289","\\nsupseteq",!0);m(h,b,$,"\u22A8","\\models");m(h,b,$,"\u2190","\\leftarrow",!0);m(h,b,$,"\u2264","\\le");m(h,b,$,"\u2264","\\leq",!0);m(h,b,$,"<","\\lt",!0);m(h,b,$,"\u2192","\\rightarrow",!0);m(h,b,$,"\u2192","\\to");m(h,T,$,"\u2271","\\ngeq",!0);m(h,T,$,"\u2270","\\nleq",!0);m(h,b,Va,"\xA0","\\ ");m(h,b,Va,"\xA0","\\space");m(h,b,Va,"\xA0","\\nobreakspace");m(F,b,Va,"\xA0","\\ ");m(F,b,Va,"\xA0"," ");m(F,b,Va,"\xA0","\\space");m(F,b,Va,"\xA0","\\nobreakspace");m(h,b,Va,null,"\\nobreak");m(h,b,Va,null,"\\allowbreak");m(h,b,cf,",",",");m(h,b,cf,";",";");m(h,T,ue,"\u22BC","\\barwedge",!0);m(h,T,ue,"\u22BB","\\veebar",!0);m(h,b,ue,"\u2299","\\odot",!0);m(h,b,ue,"\u2295","\\oplus",!0);m(h,b,ue,"\u2297","\\otimes",!0);m(h,b,L,"\u2202","\\partial",!0);m(h,b,ue,"\u2298","\\oslash",!0);m(h,T,ue,"\u229A","\\circledcirc",!0);m(h,T,ue,"\u22A1","\\boxdot",!0);
vendor: 5,768 bytes, line 517
517m(h,b,ue,"\u25B3","\\bigtriangleup");m(h,b,ue,"\u25BD","\\bigtriangledown");m(h,b,ue,"\u2020","\\dagger");m(h,b,ue,"\u22C4","\\diamond");m(h,b,ue,"\u22C6","\\star");m(h,b,ue,"\u25C3","\\triangleleft");m(h,b,ue,"\u25B9","\\triangleright");m(h,b,Hr,"{","\\{");m(F,b,L,"{","\\{");m(F,b,L,"{","\\textbraceleft");m(h,b,hr,"}","\\}");m(F,b,L,"}","\\}");m(F,b,L,"}","\\textbraceright");m(h,b,Hr,"{","\\lbrace");m(h,b,hr,"}","\\rbrace");m(h,b,Hr,"[","\\lbrack",!0);m(F,b,L,"[","\\lbrack",!0);m(h,b,hr,"]","\\rbrack",!0);m(F,b,L,"]","\\rbrack",!0);m(h,b,Hr,"(","\\lparen",!0);m(h,b,hr,")","\\rparen",!0);m(F,b,L,"<","\\textless",!0);m(F,b,L,">","\\textgreater",!0);m(h,b,Hr,"\u230A","\\lfloor",!0);m(h,b,hr,"\u230B","\\rfloor",!0);m(h,b,Hr,"\u2308","\\lceil",!0);m(h,b,hr,"\u2309","\\rceil",!0);m(h,b,L,"\\","\\backslash");m(h,b,L,"\u2223","|");m(h,b,L,"\u2223","\\vert");m(F,b,L,"|","\\textbar",!0);m(h,b,L,"\u2225","\\|");m(h,b,L,"\u2225","\\Vert");m(F,b,L,"\u2225","\\textbardbl");m(F,b,L,"~","\\textasciitilde");m(F,b,L,"\\","\\textbackslash");m(F,b,L,"^","\\textasciicircum");m(h,b,$,"\u2191","\\uparrow",!0);m(h,b,$,"\u21D1","\\Uparrow",!0);m(h,b,$,"\u2193","\\downarrow",!0);m(h,b,$,"\u21D3","\\Downarrow",!0);m(h,b,$,"\u2195","\\updownarrow",!0);m(h,b,$,"\u21D5","\\Updownarrow",!0);m(h,b,Mt,"\u2210","\\coprod");m(h,b,Mt,"\u22C1","\\bigvee");m(h,b,Mt,"\u22C0","\\bigwedge");m(h,b,Mt,"\u2A04","\\biguplus");m(h,b,Mt,"\u22C2","\\bigcap");m(h,b,Mt,"\u22C3","\\bigcup");m(h,b,Mt,"\u222B","\\int");m(h,b,Mt,"\u222B","\\intop");m(h,b,Mt,"\u222C","\\iint");m(h,b,Mt,"\u222D","\\iiint");m(h,b,Mt,"\u220F","\\prod");m(h,b,Mt,"\u2211","\\sum");m(h,b,Mt,"\u2A02","\\bigotimes");m(h,b,Mt,"\u2A01","\\bigoplus");m(h,b,Mt,"\u2A00","\\bigodot");m(h,b,Mt,"\u222E","\\oint");m(h,b,Mt,"\u222F","\\oiint");m(h,b,Mt,"\u2230","\\oiiint");m(h,b,Mt,"\u2A06","\\bigsqcup");m(h,b,Mt,"\u222B","\\smallint");m(F,b,Kl,"\u2026","\\textellipsis");m(h,b,Kl,"\u2026","\\mathellipsis");m(F,b,Kl,"\u2026","\\ldots",!0);m(h,b,Kl,"\u2026","\\ldots",!0);m(h,b,Kl,"\u22EF","\\@cdots",!0);m(h,b,Kl,"\u22F1","\\ddots",!0);m(h,b,L,"\u22EE","\\varvdots");m(F,b,L,"\u22EE","\\varvdots");m(h,b,gt,"\u02CA","\\acute");m(h,b,gt,"\u02CB","\\grave");m(h,b,gt,"\xA8","\\ddot");m(h,b,gt,"~","\\tilde");m(h,b,gt,"\u02C9","\\bar");m(h,b,gt,"\u02D8","\\breve");m(h,b,gt,"\u02C7","\\check");m(h,b,gt,"^","\\hat");m(h,b,gt,"\u20D7","\\vec");m(h,b,gt,"\u02D9","\\dot");m(h,b,gt,"\u02DA","\\mathring");m(h,b,me,"\uE131","\\@imath");m(h,b,me,"\uE237","\\@jmath");m(h,b,L,"\u0131","\u0131");m(h,b,L,"\u0237","\u0237");m(F,b,L,"\u0131","\\i",!0);m(F,b,L,"\u0237","\\j",!0);m(F,b,L,"\xDF","\\ss",!0);m(F,b,L,"\xE6","\\ae",!0);m(F,b,L,"\u0153","\\oe",!0);m(F,b,L,"\xF8","\\o",!0);m(F,b,L,"\xC6","\\AE",!0);m(F,b,L,"\u0152","\\OE",!0);m(F,b,L,"\xD8","\\O",!0);m(F,b,gt,"\u02CA","\\'");m(F,b,gt,"\u02CB","\\`");m(F,b,gt,"\u02C6","\\^");m(F,b,gt,"\u02DC","\\~");m(F,b,gt,"\u02C9","\\=");m(F,b,gt,"\u02D8","\\u");m(F,b,gt,"\u02D9","\\.");m(F,b,gt,"\xB8","\\c");m(F,b,gt,"\u02DA","\\r");m(F,b,gt,"\u02C7","\\v");m(F,b,gt,"\xA8",'\\"');m(F,b,gt,"\u02DD","\\H");m(F,b,gt,"\u25EF","\\textcircled");var RN={"--":!0,"---":!0,"``":!0,"''":!0};m(F,b,L,"\u2013","--",!0);m(F,b,L,"\u2013","\\textendash");m(F,b,L,"\u2014","---",!0);m(F,b,L,"\u2014","\\textemdash");m(F,b,L,"\u2018","`",!0);m(F,b,L,"\u2018","\\textquoteleft");m(F,b,L,"\u2019","'",!0);m(F,b,L,"\u2019","\\textquoteright");m(F,b,L,"\u201C","``",!0);m(F,b,L,"\u201C","\\textquotedblleft");m(F,b,L,"\u201D","''",!0);m(F,b,L,"\u201D","\\textquotedblright");m(h,b,L,"\xB0","\\degree",!0);m(F,b,L,"\xB0","\\degree");m(F,b,L,"\xB0","\\textdegree",!0);m(h,b,L,"\xA3","\\pounds");m(h,b,L,"\xA3","\\mathsterling",!0);m(F,b,L,"\xA3","\\pounds");m(F,b,L,"\xA3","\\textsterling",!0);m(h,T,L,"\u2720","\\maltese");m(F,T,L,"\u2720","\\maltese");var rN='0123456789/@."';for(Hg=0;Hg<rN.length;Hg++)x6=rN.charAt(Hg),m(h,b,L,x6,x6);var x6,Hg,nN='0123456789!@*()-=+";:?/.,';for(Wg=0;Wg<nN.length;Wg++)b6=nN.charAt(Wg),m(F,b,L,b6,b6);var b6,Wg,iv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(Jg=0;Jg<iv.length;Jg++)tf=iv.charAt(Jg),m(h,b,me,tf,tf),m(F,b,L,tf,tf);var tf,Jg;m(h,T,L,"C","\u2102");m(F,T,L,"C","\u2102");m(h,T,L,"H","\u210D");m(F,T,L,"H","\u210D");m(h,T,L,"N","\u2115");m(F,T,L,"N","\u2115");m(h,T,L,"P","\u2119");m(F,T,L,"P","\u2119");m(h,T,L,"Q","\u211A");m(F,T,L,"Q","\u211A");m(h,T,L,"R","\u211D");m(F,T,L,"R","\u211D");m(h,T,L,"Z","\u2124");m(F,T,L,"Z","\u2124");m(h,b,me,"h","\u210E");m(F,b,me,"h","\u210E");var xe="";for(tr=0;tr<iv.length;tr++)bt=iv.charAt(tr),xe=String.fromCharCode(55349,56320+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),xe=String.fromCharCode(55349,56372+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),xe=String.fromCharCode(55349,56424+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),xe=String.fromCharCode(55349,56580+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),xe=String.fromCharCode(55349,56684+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),xe=String.fromCharCode(55349,56736+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),xe=String.fromCharCode(55349,56788+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),xe=String.fromCharCode(55349,56840+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),xe=String.fromCharCode(55349,56944+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),tr<26&&(xe=String.fromCharCode(55349,56632+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe),xe=String.fromCharCode(55349,56476+tr),m(h,b,me,bt,xe),m(F,b,L,bt,xe));var bt,tr;xe="\u{1D55C}";m(h,b,me,"k",xe);m(F,b,L,"k",xe);for(jo=0;jo<10;jo++)Fa=jo.toString(),xe=String.fromCharCode(55349,57294+jo),m(h,b,me,Fa,xe),m(F,b,L,Fa,xe),xe=String.fromCharCode(55349,57314+jo),m(h,b,me,Fa,xe),m(F,b,L,Fa,xe),xe=String.fromCharCode(55349,57324+jo),m(h,b,me,Fa,xe),m(F,b,L,Fa,xe),xe=String.fromCharCode(55349,57334+jo),m(h,b,me,Fa,xe),m(F,b,L,Fa,xe);var Fa,jo,z6="\xD0\xDE\xFE";for(Kg=0;Kg<z6.length;
vendor: 25,302 bytes, line 517
517Kg++)rf=z6.charAt(Kg),m(h,b,me,rf,rf),m(F,b,L,rf,rf);var rf,Kg,Xg=[["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"]],aN=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],sae=(e,t)=>{var r=e.charCodeAt(0),a=e.charCodeAt(1),n=(r-55296)*1024+(a-56320)+65536,o=t==="math"?0:1;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[Xg[i][2],Xg[i][o]]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return[aN[s][2],aN[s][o]]}else{if(n===120485||n===120486)return[Xg[0][2],Xg[0][o]];if(120486<n&&n<120782)return["",""];throw new K("Unsupported character: "+e)}},mv=function(t,r,a){if(ht[a][t]){var n=ht[a][t].replace;n&&(t=n)}return{value:t,metrics:K6(t,r,a)}},fr=function(t,r,a,n,o){var i=mv(t,r,a),s=i.metrics;t=i.value;var l;if(s){var u=s.italic;(a==="text"||n&&n.font==="mathit")&&(u=0),l=new mr(t,s.height,s.depth,u,s.skew,s.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+a+"'")),l=new mr(t,0,0,0,0,0,o);if(n){l.maxFontSize=n.sizeMultiplier,n.style.isTight()&&l.classes.push("mtight");var c=n.getColor();c&&(l.style.color=c)}return l},X6=function(t,r,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&mv(t,"Main-Bold",r).metrics?fr(t,"Main-Bold",r,a,n.concat(["mathbf"])):t==="\\"||ht[r][t].font==="main"?fr(t,"Main-Regular",r,a,n):fr(t,"AMS-Regular",r,a,n.concat(["amsrm"]))},lae=function(t,r,a,n,o){return o!=="textord"&&mv(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},hv=function(t,r,a){var n=t.mode,o=t.text,i=["mord"],s=n==="math"||n==="text"&&r.font,l=s?r.font:r.fontFamily,u="",c="";if(o.charCodeAt(0)===55349&&([u,c]=sae(o,n)),u.length>0)return fr(o,u,n,r,i.concat(c));if(l){var d,f;if(l==="boldsymbol"){var p=lae(o,n,r,i,a);d=p.fontName,f=[p.fontClass]}else s?(d=N6[l].fontName,f=[l]):(d=Yg(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(mv(o,d,n).metrics)return fr(o,d,n,r,i.concat(f));if(RN.hasOwnProperty(o)&&d.slice(0,10)==="Typewriter"){for(var g=[],w=0;w<o.length;w++)g.push(fr(o[w],d,n,r,i.concat(f)));return Za(g)}}if(a==="mathord")return fr(o,"Math-Italic",n,r,i.concat(["mathnormal"]));if(a==="textord"){var y=ht[n][o]&&ht[n][o].font;if(y==="ams"){var I=Yg("amsrm",r.fontWeight,r.fontShape);return fr(o,I,n,r,i.concat("amsrm",r.fontWeight,r.fontShape))}else if(y==="main"||!y){var S=Yg("textrm",r.fontWeight,r.fontShape);return fr(o,S,n,r,i.concat(r.fontWeight,r.fontShape))}else{var x=Yg(y,r.fontWeight,r.fontShape);return fr(o,x,n,r,i.concat(x,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},uae=(e,t)=>{if(qo(e.classes)!==qo(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 a of Object.keys(e.style))if(e.style[a]!==t.style[a])return!1;for(var n of Object.keys(t.style))if(e.style[n]!==t.style[n])return!1;return!0},DN=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],a=e[t+1];r instanceof mr&&a instanceof mr&&uae(r,a)&&(r.text+=a.text,r.height=Math.max(r.height,a.height),r.depth=Math.max(r.depth,a.depth),r.italic=a.italic,e.splice(t+1,1),t--)}return e},Y6=function(t){for(var r=0,a=0,n=0,o=0;o<t.children.length;o++){var i=t.children[o];i.height>r&&(r=i.height),i.depth>a&&(a=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}t.height=r,t.depth=a,t.maxFontSize=n},U=function(t,r,a,n){var o=new Go(t,r,a,n);return Y6(o),o},Ho=(e,t,r,a)=>new Go(e,t,r,a),Wl=function(t,r,a){var n=U([t],[],r);return n.height=Math.max(a||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),n.style.borderBottomWidth=Q(n.height),n.maxFontSize=1,n},cae=function(t,r,a,n){var o=new Hl(t,r,a,n);return Y6(o),o},Za=function(t){var r=new Zo(t);return Y6(r),r},Jl=function(t,r){return t instanceof Zo?U([],[t],r):t},dae=function(t){if(t.positionType==="individualShift"){for(var r=t.children,a=[r[0]],n=-r[0].shift-r[0].elem.depth,o=n,i=1;i<r.length;i++){var s=-r[i].shift-o-r[i].elem.depth,l=s-(r[i-1].elem.height+r[i-1].elem.depth);o=o+s,a.push({type:"kern",size:l}),a.push(r[i])}return{children:a,depth:n}}var u;if(t.positionType==="top"){for(var c=t.positionData,d=0;d<t.children.length;d++){var f=t.children[d];c-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}u=c}else if(t.positionType==="bottom")u=-t.positionData;else{var p=t.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-p.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-p.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},Ze=function(t,r){for(var{children:a,depth:n}=dae(t),o=0,i=0;i<a.length;i++){var s=a[i];if(s.type==="elem"){var l=s.elem;o=Math.max(o,l.maxFontSize,l.height)}}o+=2;var u=U(["pstrut"],[]);u.style.height=Q(o);for(var c=[],d=n,f=n,p=n,g=0;g<a.length;g++){var w=a[g];if(w.type==="kern")p+=w.size;else{var y=w.elem,I=w.wrapperClasses||[],S=w.wrapperStyle||{},x=U(I,[u,y],void 0,S);x.style.top=Q(-o-p-y.depth),w.marginLeft&&(x.style.marginLeft=w.marginLeft),w.marginRight&&(x.style.marginRight=w.marginRight),c.push(x),p+=y.height+y.depth}d=Math.min(d,p),f=Math.max(f,p)}var C=U(["vlist"],c);C.style.height=Q(f);var _;if(d<0){var P=U([],[]),D=U(["vlist"],[P]);D.style.height=Q(-d);var N=U(["vlist-s"],[new mr("\u200B")]);_=[U(["vlist-r"],[C,N]),U(["vlist-r"],[D])]}else _=[U(["vlist-r"],[C])];var A=U(["vlist-t"],_);return _.length===2&&A.classes.push("vlist-t2"),A.height=f,A.depth=-d,A},zN=(e,t)=>{var r=U(["mspace"],[],t),a=St(e,t);return r.style.marginRight=Q(a),r},Yg=function(t,r,a){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 o;return r==="textbf"&&a==="textit"?o="BoldItalic":r==="textbf"?o="Bold":r==="textit"?o="Italic":o="Regular",n+"-"+o},N6={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"}},NN={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ON=function(t,r){var[a,n,o]=NN[t],i=new Xn(a),s=new $n([i],{width:Q(n),height:Q(o),style:"width:"+Q(n),viewBox:"0 0 "+1e3*n+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),l=Ho(["overlay"],[s],r);return l.height=o,l.style.height=Q(o),l.style.width=Q(n),l},wt={number:3,unit:"mu"},Zi={number:4,unit:"mu"},Ua={number:5,unit:"mu"},fae={mord:{mop:wt,mbin:Zi,mrel:Ua,minner:wt},mop:{mord:wt,mop:wt,mrel:Ua,minner:wt},mbin:{mord:Zi,mop:Zi,mopen:Zi,minner:Zi},mrel:{mord:Ua,mop:Ua,mopen:Ua,minner:Ua},mopen:{},mclose:{mop:wt,mbin:Zi,mrel:Ua,minner:wt},mpunct:{mord:wt,mop:wt,mrel:Ua,mopen:wt,mclose:wt,mpunct:wt,minner:wt},minner:{mord:wt,mop:wt,mbin:Zi,mrel:Ua,mopen:wt,mpunct:wt,minner:wt}},pae={mord:{mop:wt},mop:{mord:wt,mop:wt},mbin:{},mrel:{},mopen:{},mclose:{mop:wt},mpunct:{},minner:{mop:wt}},FN={},sv={},lv={};function ae(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:o,mathmlBuilder:i}=e,s={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},l=0;l<r.length;++l)FN[r[l]]=s;t&&(o&&(sv[t]=o),i&&(lv[t]=i))}function qi(e){var{type:t,htmlBuilder:r,mathmlBuilder:a}=e;ae({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:a})}var uv=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Et=function(t){return t.type==="ordgroup"?t.body:[t]},mae=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),hae=new Set(["rightmost","mrel","mclose","mpunct"]),gae={display:Se.DISPLAY,text:Se.TEXT,script:Se.SCRIPT,scriptscript:Se.SCRIPTSCRIPT},vae={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ft=function(t,r,a,n){n===void 0&&(n=[null,null]);for(var o=[],i=0;i<t.length;i++){var s=qe(t[i],r);if(s instanceof Zo){var l=s.children;o.push(...l)}else o.push(s)}if(DN(o),!a)return o;var u=r;if(t.length===1){var c=t[0];c.type==="sizing"?u=r.havingSize(c.size):c.type==="styling"&&(u=r.havingStyle(gae[c.style]))}var d=U([n[0]||"leftmost"],[],r),f=U([n[1]||"rightmost"],[],r),p=a==="root";return O6(o,(g,w)=>{var y=w.classes[0],I=g.classes[0];y==="mbin"&&hae.has(I)?w.classes[0]="mord":I==="mbin"&&mae.has(y)&&(g.classes[0]="mord")},{node:d},f,p),O6(o,(g,w)=>{var y,I,S=U6(w),x=U6(g),C=S&&x?g.hasClass("mtight")?(y=pae[S])==null?void 0:y[x]:(I=fae[S])==null?void 0:I[x]:null;if(C)return zN(C,u)},{node:d},f,p),o},O6=function(t,r,a,n,o){n&&t.push(n);for(var i=0;i<t.length;i++){var s=t[i],l=UN(s);if(l){O6(l.children,r,a,null,o);continue}var u=!s.hasClass("mspace");if(u){var c=r(s,a.node);c&&(a.insertAfter?a.insertAfter(c):(t.unshift(c),i++))}u?a.node=s:o&&s.hasClass("newline")&&(a.node=U(["leftmost"])),a.insertAfter=(d=>f=>{t.splice(d+1,0,f),i++})(i)}n&&t.pop()},UN=function(t){return t instanceof Zo||t instanceof Hl||t instanceof Go&&t.hasClass("enclosing")?t:null},F6=function(t,r){var a=UN(t);if(a){var n=a.children;if(n.length){if(r==="right")return F6(n[n.length-1],"right");if(r==="left")return F6(n[0],"left")}}return t},U6=function(t,r){if(!t)return null;r&&(t=F6(t,r));var a=t.classes[0];return vae[a]||null},uf=function(t,r){var a=["nulldelimiter"].concat(t.baseSizingClasses());return U(r.concat(a))},qe=function(t,r,a){if(!t)return U();if(sv[t.type]){var n=sv[t.type](t,r);if(a&&r.size!==a.size){n=U(r.sizingClasses(a),[n],r);var o=r.sizeMultiplier/a.sizeMultiplier;n.height*=o,n.depth*=o}return n}else throw new K("Got group of unknown type: '"+t.type+"'")};function Qg(e,t){var r=U(["base"],e,t),a=U(["strut"]);return a.style.height=Q(r.height+r.depth),r.depth&&(a.style.verticalAlign=Q(-r.depth)),r.children.unshift(a),r}function B6(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var a=Ft(e,t,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var o=[],i=[],s=0;s<a.length;s++)if(i.push(a[s]),a[s].hasClass("mbin")||a[s].hasClass("mrel")||a[s].hasClass("allowbreak")){for(var l=!1;s<a.length-1&&a[s+1].hasClass("mspace")&&!a[s+1].hasClass("newline");)s++,i.push(a[s]),a[s].hasClass("nobreak")&&(l=!0);l||(o.push(Qg(i,t)),i=[])}else a[s].hasClass("newline")&&(i.pop(),i.length>0&&(o.push(Qg(i,t)),i=[]),o.push(a[s]));i.length>0&&o.push(Qg(i,t));var u;r?(u=Qg(Ft(r,t,!0),t),u.classes=["tag"],o.push(u)):n&&o.push(n);var c=U(["katex-html"],o);if(c.setAttribute("aria-hidden","true"),u){var d=u.children[0];d.style.height=Q(c.height+c.depth),c.depth&&(d.style.verticalAlign=Q(-c.depth))}return c}function BN(e){return new Zo(e)}var H=class{constructor(t,r,a){this.type=t,this.attributes={},this.children=r||[],this.classes=a||[]}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=qo(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof _t&&this.children[a+1]instanceof _t){for(var n=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof _t;)n+=this.children[++a].toText();t.appendChild(new _t(n).toNode())}else t.appendChild(this.children[a].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=rr(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+rr(qo(this.classes))+'"'),t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}},_t=class{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return rr(this.toText())}toText(){return this.text}},cv=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",Q(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Q(this.width)+'"/>'}toText(){return this.character?this.character:" "}},yae=new Set(["\\imath","\\jmath"]),xae=new Set(["mrow","mtable"]),dn=function(t,r,a){return ht[r][t]&&ht[r][t].replace&&t.charCodeAt(0)!==55349&&!(RN.hasOwnProperty(t)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(t=ht[r][t].replace),new _t(t)},Q6=function(t){return t.length===1?t[0]:new H("mrow",t)},e_=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 a=r.font;if(!a||a==="mathnormal")return null;var n=t.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var o=t.text;if(yae.has(o))return null;if(ht[n][o]){var i=ht[n][o].replace;i&&(o=i)}var s=N6[a].fontName;return K6(o,s,n)?N6[a].variant:null};function w6(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof _t&&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 _t&&r.text===","}else return!1}var Wr=function(t,r,a){if(t.length===1){var n=it(t[0],r);return a&&n instanceof H&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o=[],i,s=0;s<t.length;s++){var l=it(t[s],r);if(l instanceof H&&i instanceof H){if(l.type==="mtext"&&i.type==="mtext"&&l.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...l.children);continue}else if(l.type==="mn"&&i.type==="mn"){i.children.push(...l.children);continue}else if(w6(l)&&i.type==="mn"){i.children.push(...l.children);continue}else if(l.type==="mn"&&w6(i))l.children=[...i.children,...l.children],o.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(i.type==="mn"||w6(i))){var u=l.children[0];u instanceof H&&u.type==="mn"&&(u.children=[...i.children,...u.children],o.pop())}else if(i.type==="mi"&&i.children.length===1){var c=i.children[0];if(c instanceof _t&&c.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var d=l.children[0];d instanceof _t&&d.text.length>0&&(d.text=d.text.slice(0,1)+"\u0338"+d.text.slice(1),o.pop())}}}o.push(l),i=l}return o},Wo=function(t,r,a){return Q6(Wr(t,r,a))},it=function(t,r){if(!t)return new H("mrow");if(lv[t.type]){var a=lv[t.type](t,r);return a}else throw new K("Got group of unknown type: '"+t.type+"'")};function oN(e,t,r,a,n){var o=Wr(e,r),i;o.length===1&&o[0]instanceof H&&xae.has(o[0].type)?i=o[0]:i=new H("mrow",o);var s=new H("annotation",[new _t(t)]);s.setAttribute("encoding","application/x-tex");var l=new H("semantics",[i,s]),u=new H("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&u.setAttribute("display","block");var c=n?"katex":"katex-mathml";return U([c],[u])}var bae=[[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]],iN=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],sN=function(t,r){return r.size<2?t:bae[t-1][r.size-1]},dv=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=iN[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:sN(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:iN[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=sN(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=aae(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};dv.BASESIZE=6;var jN=function(t){return new dv({style:t.displayMode?Se.DISPLAY:Se.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},VN=function(t,r){if(r.displayMode){var a=["katex-display"];r.leqno&&a.push("leqno"),r.fleqn&&a.push("fleqn"),t=U(a,[t])}return t},wae=function(t,r,a){var n=jN(a),o;if(a.output==="mathml")return oN(t,r,n,a.displayMode,!0);if(a.output==="html"){var i=B6(t,n);o=U(["katex"],[i])}else{var s=oN(t,r,n,a.displayMode,!1),l=B6(t,n);o=U(["katex"],[s,l])}return VN(o,a)},Sae=function(t,r,a){var n=jN(a),o=B6(t,n),i=U(["katex"],[o]);return VN(i,a)},Iae={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":"="},gv=function(t){var r=new H("mo",[new _t(Iae[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},kae={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]},_ae=new Set(["widehat","widecheck","widetilde","utilde"]),vv=function(t,r){function a(){var s=4e5,l=t.label.slice(1);if(_ae.has(l)){var u=t,c=u.base.type==="ordgroup"?u.base.body.length:1,d,f,p;if(c>5)l==="widehat"||l==="widecheck"?(d=420,s=2364,p=.42,f=l+"4"):(d=312,s=2340,p=.34,f="tilde4");else{var g=[1,1,2,2,3,3][c];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][g],d=[0,239,300,360,420][g],p=[0,.24,.3,.3,.36,.42][g],f=l+g):(s=[0,600,1033,2339,2340][g],d=[0,260,286,306,312][g],p=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var w=new Xn(f),y=new $n([w],{width:"100%",height:Q(p),viewBox:"0 0 "+s+" "+d,preserveAspectRatio:"none"});return{span:Ho([],[y],r),minWidth:0,height:p}}else{var I=[],S=kae[l],[x,C,_]=S,P=_/1e3,D=x.length,N,A;if(D===1){var O=S[3];N=["hide-tail"],A=[O]}else if(D===2)N=["halfarrow-left","halfarrow-right"],A=["xMinYMin","xMaxYMin"];else if(D===3)N=["brace-left","brace-center","brace-right"],A=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to supp
517ort 518 `+D+" children.");for(var oe=0;oe<D;oe++){var Y=new Xn(x[oe]),He=new $n([Y],{width:"400em",height:Q(P),viewBox:"0 0 "+s+" "+_,preserveAspectRatio:A[oe]+" slice"}),pe=Ho([N[oe]],[He],r);if(D===1)return{span:pe,minWidth:C,height:P};pe.style.height=Q(P),I.push(pe)}return{span:U(["stretchy"],I,r),minWidth:C,height:P}}}var{span:n,minWidth:o,height:i}=a();return n.height=i,n.style.height=Q(i),o>0&&(n.style.minWidth=Q(o)),n},Cae=function(t,r,a,n,o){var i,s=t.height+t.depth+a+n;if(/fbox|color|angl/.test(r)){if(i=U(["stretchy",r],[],o),r==="fbox"){var l=o.color&&o.getColor();l&&(i.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new lf({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new lf({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new $n(u,{width:"100%",height:Q(s)});i=Ho([],[c],o)}return i.height=s,i.style.height=Q(s),i};function Ee(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 yv(e){var t=xv(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 xv(e){return e&&(e.type==="atom"||iae.hasOwnProperty(e.type))?e:null}var ZN=e=>{if(e instanceof mr)return e;if(rae(e)&&e.children.length===1)return ZN(e.children[0])},t_=(e,t)=>{var r,a,n;e&&e.type==="supsub"?(a=Ee(e.base,"accent"),r=a.base,e.base=r,n=tae(qe(e,t)),e.base=a):(a=Ee(e,"accent"),r=a.base);var o=qe(r,t.havingCrampedStyle()),i=a.isShifty&&ja(r),s=0;if(i){var l,u;s=(l=(u=ZN(o))==null?void 0:u.skew)!=null?l:0}var c=a.label==="\\c",d=c?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),f;if(a.isStretchy)f=vv(a,t),f=Ze({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+Q(2*s)+")",marginLeft:Q(2*s)}:void 0}]});else{var p,g;a.label==="\\vec"?(p=ON("vec",t),g=NN.vec[1]):(p=hv({type:"textord",mode:a.mode,text:a.label},t,"textord"),p=eae(p),p.italic=0,g=p.width,c&&(d+=p.depth)),f=U(["accent-body"],[p]);var w=a.label==="\\textcircled";w&&(f.classes.push("accent-full"),d=o.height);var y=s;w||(y-=g/2),f.style.left=Q(y),a.label==="\\textcircled"&&(f.style.top=".2em"),f=Ze({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-d},{type:"elem",elem:f}]})}var I=U(["mord","accent"],[f],t);return n?(n.children[0]=I,n.height=Math.max(I.height,n.height),n.classes[0]="mord",n):I},qN=(e,t)=>{var r=e.isStretchy?gv(e.label):new H("mo",[dn(e.label,e.mode)]),a=new H("mover",[it(e.base,t),r]);return a.setAttribute("accent","true"),a},Tae=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ae({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=uv(t[0]),a=!Tae.test(e.funcName),n=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:t_,mathmlBuilder:qN});ae({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],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:t_,mathmlBuilder:qN});ae({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:(e,t)=>{var r=qe(e.base,t),a=vv(e,t),n=e.label==="\\utilde"?.12:0,o=Ze({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]});return U(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var r=gv(e.label),a=new H("munder",[it(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var ev=e=>{var t=new H("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ae({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:a,funcName:n}=e;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,a=t.havingStyle(r.sup()),n=Jl(qe(e.body,a,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(o+"-arrow-pad");var i;e.below&&(a=t.havingStyle(r.sub()),i=Jl(qe(e.below,a,t),t),i.classes.push(o+"-arrow-pad"));var s=vv(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(u-=n.depth);var c;if(i){var d=-t.fontMetrics().axisHeight+i.height+.5*s.height+.111;c=Ze({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:s,shift:l},{type:"elem",elem:i,shift:d}]})}else c=Ze({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:s,shift:l}]});return c.children[0].children[0].children[1].classes.push("svg-align"),U(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var r=gv(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var n=ev(it(e.body,t));if(e.below){var o=ev(it(e.below,t));a=new H("munderover",[r,o,n])}else a=new H("mover",[r,n])}else if(e.below){var i=ev(it(e.below,t));a=new H("munder",[r,i])}else a=ev(),a=new H("mover",[r,a]);return a}});function GN(e,t){var r=Ft(e.body,t,!0);return U([e.mclass],r,t)}function HN(e,t){var r,a=Wr(e.body,t);return e.mclass==="minner"?r=new H("mpadded",a):e.mclass==="mord"?e.isCharacterBox?(r=a[0],r.type="mi"):r=new H("mi",a):(e.isCharacterBox?(r=a[0],r.type="mo"):r=new H("mo",a),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}ae({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:Et(n),isCharacterBox:ja(n)}},htmlBuilder:GN,mathmlBuilder:HN});var bv=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"};ae({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:bv(t[0]),body:Et(t[1]),isCharacterBox:ja(t[1])}}});ae({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:a}=e,n=t[1],o=t[0],i;a!=="\\stackrel"?i=bv(n):i="mrel";var s={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Et(n)},l={type:"supsub",mode:o.mode,base:s,sup:a==="\\underset"?null:o,sub:a==="\\underset"?o:null};return{type:"mclass",mode:r.mode,mclass:i,body:[l],isCharacterBox:ja(l)}},htmlBuilder:GN,mathmlBuilder:HN});ae({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:bv(t[0]),body:Et(t[0])}},htmlBuilder(e,t){var r=Ft(e.body,t,!0),a=U([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=Wr(e.body,t),a=new H("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var $ae={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},lN=()=>({type:"styling",body:[],mode:"math",style:"display"}),uN=e=>e.type==="textord"&&e.text==="@",Pae=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Lae(e,t,r){var a=$ae[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var n=r.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:a,mode:"math",family:"rel"},i=r.callFunction("\\Big",[o],[]),s=r.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[n,i,s]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);
vendor: 75,105 bytes, lines 518-522
518case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Aae(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 K("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],n=[a],o=0;o<t.length;o++){for(var i=t[o],s=lN(),l=0;l<i.length;l++)if(!uN(i[l]))s.body.push(i[l]);else{a.push(s),l+=1;var u=yv(i[l]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var d=0;d<2;d++){for(var f=!0,p=l+1;p<i.length;p++){if(Pae(i[p],u)){f=!1,l=p;break}if(uN(i[p]))throw new K("Missing a "+u+" character to complete a CD arrow.",i[p]);c[d].body.push(i[p])}if(f)throw new K("Missing a "+u+" character to complete a CD arrow.",i[l])}else throw new K('Expected one of "<>AV=|." after @',i[l]);var g=Lae(u,c,e),w={type:"styling",body:[g],mode:"math",style:"display"};a.push(w),s=lN()}o%2===0?a.push(s):a.shift(),a=[],n.push(a)}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([])}}ae({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=Jl(qe(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=Q(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new H("mrow",[it(e.label,t)]);return r=new H("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new H("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ae({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=Jl(qe(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new H("mrow",[it(e.fragment,t)])}});ae({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=Ee(t[0],"ordgroup"),n=a.body,o="",i=0;i<n.length;i++){var s=Ee(n[i],"textord");o+=s.text}var l=parseInt(o),u;if(isNaN(l))throw new K("\\@char has non-numeric argument "+o);if(l<0||l>=1114111)throw new K("\\@char with invalid code point "+o);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var WN=(e,t)=>{var r=Ft(e.body,t.withColor(e.color),!1);return Za(r)},JN=(e,t)=>{var r=Wr(e.body,t.withColor(e.color)),a=new H("mstyle",r);return a.setAttribute("mathcolor",e.color),a};ae({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=Ee(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:Et(n)}},htmlBuilder:WN,mathmlBuilder:JN});ae({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,n=Ee(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var o=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:o}},htmlBuilder:WN,mathmlBuilder:JN});ae({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:n&&Ee(n,"size").value}},htmlBuilder(e,t){var r=U(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Q(St(e.size,t)))),r},mathmlBuilder(e,t){var r=new H("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Q(St(e.size,t)))),r}});var j6={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},KN=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new K("Expected a control sequence",e);return t},Eae=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},XN=(e,t,r,a)=>{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,a)};ae({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(j6[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=j6[a.text]),Ee(t.parseFunction(),"internal");throw new K("Invalid token after macro prefix",a)}});ae({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new K("Expected a control sequence",a);for(var o=0,i,s=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){i=t.gullet.future(),s[o].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new K('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new K('Argument number "'+a.text+'" out of order');o++,s.push([])}else{if(a.text==="EOF")throw new K("Expected a macro definition");s[o].push(a.text)}var{tokens:l}=t.gullet.consumeArg();return i&&l.unshift(i),(r==="\\edef"||r==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(n,{tokens:l,numArgs:o,delimiters:s},r===j6[r]),{type:"internal",mode:t.mode}}});ae({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=KN(t.gullet.popToken());t.gullet.consumeSpaces();var n=Eae(t);return XN(t,a,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ae({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=KN(t.gullet.popToken()),n=t.gullet.popToken(),o=t.gullet.popToken();return XN(t,a,o,r==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var nf=function(t,r,a){var n=ht.math[t]&&ht.math[t].replace,o=K6(n||t,r,a);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return o},r_=function(t,r,a,n){var o=a.havingBaseStyle(r),i=U(n.concat(o.sizingClasses(a)),[t],a),s=o.sizeMultiplier/a.sizeMultiplier;return i.height*=s,i.depth*=s,i.maxFontSize=o.sizeMultiplier,i},YN=function(t,r,a){var n=r.havingBaseStyle(a),o=(1-r.sizeMultiplier/n.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Q(o),t.height-=o,t.depth+=o},Mae=function(t,r,a,n,o,i){var s=fr(t,"Main-Regular",o,n),l=r_(s,r,n,i);return a&&YN(l,n,r),l},Rae=function(t,r,a,n){return fr(t,"Size"+r+"-Regular",a,n)},QN=function(t,r,a,n,o,i){var s=Rae(t,r,o,n),l=r_(U(["delimsizing","size"+r],[s],n),Se.TEXT,n,i);return a&&YN(l,n,Se.TEXT),l},S6=function(t,r,a){var n;r==="Size1-Regular"?n="delim-size1":n="delim-size4";var o=U(["delimsizinginner",n],[U([],[fr(t,r,a)])]);return{type:"elem",elem:o}},I6=function(t,r,a){var n=Kn["Size4-Regular"][t.charCodeAt(0)]?Kn["Size4-Regular"][t.charCodeAt(0)][4]:Kn["Size1-Regular"][t.charCodeAt(0)][4],o=new Xn("inner",Jne(t,Math.round(1e3*r))),i=new $n([o],{width:Q(n),height:Q(r),style:"width:"+Q(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=Ho([],[i],a);return s.height=r,s.style.height=Q(r),s.style.width=Q(n),{type:"elem",elem:s}},V6=.008,tv={type:"kern",size:-1*V6},Dae=new Set(["|","\\lvert","\\rvert","\\vert"]),zae=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),eO=function(t,r,a,n,o,i){var s,l,u,c,d="",f=0;s=u=c=t,l=null;var p="Size1-Regular";t==="\\uparrow"?u=c="\u23D0":t==="\\Uparrow"?u=c="\u2016":t==="\\downarrow"?s=u="\u23D0":t==="\\Downarrow"?s=u="\u2016":t==="\\updownarrow"?(s="\\uparrow",u="\u23D0",c="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="\u2016",c="\\Downarrow"):Dae.has(t)?(u="\u2223",d="vert",f=333):zae.has(t)?(u="\u2225",d="doublevert",f=556):t==="["||t==="\\lbrack"?(s="\u23A1",u="\u23A2",c="\u23A3",p="Size4-Regular",d="lbrack",f=667):t==="]"||t==="\\rbrack"?(s="\u23A4",u="\u23A5",c="\u23A6",p="Size4-Regular",d="rbrack",f=667):t==="\\lfloor"||t==="\u230A"?(u=s="\u23A2",c="\u23A3",p="Size4-Regular",d="lfloor",f=667):t==="\\lceil"||t==="\u2308"?(s="\u23A1",u=c="\u23A2",p="Size4-Regular",d="lceil",f=667):t==="\\rfloor"||t==="\u230B"?(u=s="\u23A5",c="\u23A6",p="Size4-Regular",d="rfloor",f=667):t==="\\rceil"||t==="\u2309"?(s="\u23A4",u=c="\u23A5",p="Size4-Regular",d="rceil",f=667):t==="("||t==="\\lparen"?(s="\u239B",u="\u239C",c="\u239D",p="Size4-Regular",d="lparen",f=875):t===")"||t==="\\rparen"?(s="\u239E",u="\u239F",c="\u23A0",p="Size4-Regular",d="rparen",f=875):t==="\\{"||t==="\\lbrace"?(s="\u23A7",l="\u23A8",c="\u23A9",u="\u23AA",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="\u23AB",l="\u23AC",c="\u23AD",u="\u23AA",p="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(s="\u23A7",c="\u23A9",u="\u23AA",p="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(s="\u23AB",c="\u23AD",u="\u23AA",p="Size4-Regular"):t==="\\lmoustache"||t==="\u23B0"?(s="\u23A7",c="\u23AD",u="\u23AA",p="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(s="\u23AB",c="\u23A9",u="\u23AA",p="Size4-Regular");var g=nf(s,p,o),w=g.height+g.depth,y=nf(u,p,o),I=y.height+y.depth,S=nf(c,p,o),x=S.height+S.depth,C=0,_=1;if(l!==null){var P=nf(l,p,o);C=P.height+P.depth,_=2}var D=w+x+C,N=Math.max(0,Math.ceil((r-D)/(_*I))),A=D+N*_*I,O=n.fontMetrics().axisHeight;a&&(O*=n.sizeMultiplier);var oe=A/2-O,Y=[];if(d.length>0){var He=A-w-x,pe=Math.round(A*1e3),Me=Kne(d,Math.round(He*1e3)),Be=new Xn(d,Me),qt=Q(f/1e3),je=Q(pe/1e3),ft=new $n([Be],{width:qt,height:je,viewBox:"0 0 "+f+" "+pe}),Ct=Ho([],[ft],n);Ct.height=pe/1e3,Ct.style.width=qt,Ct.style.height=je,Y.push({type:"elem",elem:Ct})}else{if(Y.push(S6(c,p,o)),Y.push(tv),l===null){var tt=A-w-x+2*V6;Y.push(I6(u,tt,n))}else{var be=(A-w-x-C)/2+2*V6;Y.push(I6(u,be,n)),Y.push(tv),Y.push(S6(l,p,o)),Y.push(tv),Y.push(I6(u,be,n))}Y.push(tv),Y.push(S6(s,p,o))}var Pe=n.havingBaseStyle(Se.TEXT),ze=Ze({positionType:"bottom",positionData:oe,children:Y});return r_(U(["delimsizing","mult"],[ze],Pe),Se.TEXT,n,i)},k6=80,_6=.08,C6=function(t,r,a,n,o){var i=Wne(t,n,a),s=new Xn(t,i),l=new $n([s],{width:"400em",height:Q(r),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return Ho(["hide-tail"],[l],o)},Nae=function(t,r){var a=r.havingBaseSizing(),n=oO("\\surd",t*a.sizeMultiplier,aO,a),o=a.sizeMultiplier,i=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,l=0,u=0,c=0,d;return n.type==="small"?(c=1e3+1e3*i+k6,t<1?o=1:t<1.4&&(o=.7),l=(1+i+_6)/o,u=(1+i)/o,s=C6("sqrtMain",l,c,i,r),s.style.minWidth="0.853em",d=.833/o):n.type==="large"?(c=(1e3+k6)*af[n.size],u=(af[n.size]+i)/o,l=(af[n.size]+i+_6)/o,s=C6("sqrtSize"+n.size,l,c,i,r),s.style.minWidth="1.02em",d=1/o):(l=t+i+_6,u=t+i,c=Math.floor(1e3*t+i)+k6,s=C6("sqrtTall",l,c,i,r),s.style.minWidth="0.742em",d=1.056),s.height=u,s.style.height=Q(l),{span:s,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+i)*o}},tO=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),Oae=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),rO=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),af=[0,1.2,1.8,2.4,3],nO=function(t,r,a,n,o){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),tO.has(t)||rO.has(t))return QN(t,r,!1,a,n,o);if(Oae.has(t))return eO(t,af[r],!1,a,n,o);throw new K("Illegal delimiter: '"+t+"'")},Fae=[{type:"small",style:Se.SCRIPTSCRIPT},{type:"small",style:Se.SCRIPT},{type:"small",style:Se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Uae=[{type:"small",style:Se.SCRIPTSCRIPT},{type:"small",style:Se.SCRIPT},{type:"small",style:Se.TEXT},{type:"stack"}],aO=[{type:"small",style:Se.SCRIPTSCRIPT},{type:"small",style:Se.SCRIPT},{type:"small",style:Se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Bae=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.")},oO=function(t,r,a,n){for(var o=Math.min(2,3-n.style.size),i=o;i<a.length;i++){var s=a[i];if(s.type==="stack")break;var l=nf(t,Bae(s),"math"),u=l.height+l.depth;if(s.type==="small"){var c=n.havingBaseStyle(s.style);u*=c.sizeMultiplier}if(u>r)return s}return a[a.length-1]},Z6=function(t,r,a,n,o,i){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var s;rO.has(t)?s=Fae:tO.has(t)?s=aO:s=Uae;var l=oO(t,r,s,n);return l.type==="small"?Mae(t,l.style,a,n,o,i):l.type==="large"?QN(t,l.size,a,n,o,i):eO(t,r,a,n,o,i)},T6=function(t,r,a,n,o,i){var s=n.fontMetrics().axisHeight*n.sizeMultiplier,l=901,u=5/n.fontMetrics().ptPerEm,c=Math.max(r-s,a+s),d=Math.max(c/500*l,2*c-u);return Z6(t,d,!0,n,o,i)},cN={"\\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}},jae=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 wv(e,t){var r=xv(e);if(r&&jae.has(r.text))return r;throw r?new K("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new K("Invalid delimiter type '"+e.type+"'",e)}ae({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=wv(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:cN[e.funcName].size,mclass:cN[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?U([e.mclass]):nO(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(dn(e.delim,e.mode));var r=new H("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=Q(af[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function dN(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ae({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 K("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:wv(t[0],e).text,color:r}}});ae({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=wv(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=Ee(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{dN(e);for(var r=Ft(e.body,t,!0,["mopen","mclose"]),a=0,n=0,o=!1,i=0;i<r.length;i++)r[i].isMiddle?o=!0:(a=Math.max(r[i].height,a),n=Math.max(r[i].depth,n));a*=t.sizeMultiplier,n*=t.sizeMultiplier;var s;if(e.left==="."?s=uf(t,["mopen"]):s=T6(e.left,a,n,t,e.mode,["mopen"]),r.unshift(s),o)for(var l=1;l<r.length;l++){var u=r[l],c=u.isMiddle;c&&(r[l]=T6(c.delim,a,n,c.options,e.mode,[]))}var d;if(e.right===".")d=uf(t,["mclose"]);else{var f=e.rightColor?t.withColor(e.rightColor):t;d=T6(e.right,a,n,f,e.mode,["mclose"])}return r.push(d),U(["minner"],r,t)},mathmlBuilder:(e,t)=>{dN(e);var r=Wr(e.body,t);if(e.left!=="."){var a=new H("mo",[dn(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if(e.right!=="."){var n=new H("mo",[dn(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return Q6(r)}});ae({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=wv(t[0],e);if(!e.parser.leftrightDepth)throw new K("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=uf(t,[]);else{r=nO(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?dn("|","text"):dn(e.delim,e.mode),a=new H("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var Sv=(e,t)=>{var r=Jl(qe(e.body,t),t),a=e.label.slice(1),n=t.sizeMultiplier,o,i=0,s=ja(e.body);if(a==="sout")o=U(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/n,i=-.5*t.fontMetrics().xHeight;else if(a==="phase"){var l=St({number:.6,unit:"pt"},t),u=St({number:.35,unit:"ex"},t),c=t.havingBaseSizing();n=n/c.sizeMultiplier;var d=r.height+r.depth+l+u;r.style.paddingLeft=Q(d/2+l);var f=Math.floor(1e3*d*n),p=Gne(f),g=new $n([new Xn("phase",p)],{width:"400em",height:Q(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});o=Ho(["hide-tail"],[g],t),o.style.height=Q(d),i=r.depth+l+u}else{/cancel/.test(a)?s||r.classes.push("cancel-pad"):a==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var w=0,y=0,I=0;/box/.test(a)?(I=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),w=t.fontMetrics().fboxsep+(a==="colorbox"?0:I),y=w):a==="angl"?(I=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),w=4*I,y=Math.max(0,.25-r.depth)):(w=s?.2:0,y=w),o=Cae(r,a,w,y,t),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=Q(I)):a==="angl"&&I!==.049&&(o.style.borderTopWidth=Q(I),o.style.borderRightWidth=Q(I)),i=r.depth+y,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=Ze({positionType:"individualShift",children:[{type:"elem",elem:o,shift:i},{type:"elem",elem:r,shift:0}]});else{var x=/cancel|phase/.test(a)?["svg-align"]:[];S=Ze({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:o,shift:i,wrapperClasses:x}]})}return/cancel/.test(a)&&(S.height=r.height,S.depth=r.depth),/cancel/.test(a)&&!s?U(["mord","cancel-lap"],[S],t):U(["mord"],[S],t)},Iv=(e,t)=>{var r=0,a=new H(e.label.includes("colorbox")?"mpadded":"menclose",[it(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+Q(n)+" solid "+e.borderColor)}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};ae({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,o=Ee(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,body:i}},htmlBuilder:Sv,mathmlBuilder:Iv});ae({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,o=Ee(t[0],"color-token").color,i=Ee(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:i,borderColor:o,body:s}},htmlBuilder:Sv,mathmlBuilder:Iv});ae({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]}}});ae({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:Sv,mathmlBuilder:Iv});ae({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=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:a,body:n}},htmlBuilder:Sv,mathmlBuilder:Iv});ae({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 iO={};function Yn(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:o,mathmlBuilder:i}=e,s={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l<r.length;++l)iO[r[l]]=s;o&&(sv[t]=o),i&&(lv[t]=i)}var sO={};function k(e,t){sO[e]=t}var Lr=class e{constructor(t,r,a){this.lexer=t,this.start=r,this.end=a}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}},Gr=class e{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new e(r,Lr.range(this,t))}};function fN(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 kv=e=>{var t=e.parser.settings;if(!t.displayMode)throw new K("{"+e.envName+"} can be used only in display mode.")},Vae=new Set(["gather","gather*"]);function n_(e){if(!e.includes("ed"))return!e.includes("*")}function Jo(e,t,r){var{hskipBeforeAndAfter:a,addJot:n,cols:o,arraystretch:i,colSeparationType:s,autoTag:l,singleRow:u,emptySingleRow:c,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!i){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)i=1;else if(i=parseFloat(p),!i||i<0)throw new K("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var g=[],w=[g],y=[],I=[],S=l!=null?[]:void 0;function x(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new Gr("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(x(),I.push(fN(e));;){var _=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var P={type:"ordgroup",mode:e.mode,body:_};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(u||s)throw new K("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"){C(),g.length===1&&P.type==="styling"&&P.body.length===1&&P.body[0].type==="ordgroup"&&P.body[0].body.length===0&&(w.length>1||!c)&&w.pop(),I.length<w.length+1&&I.push([]);break}else if(D==="\\\\"){e.consume();var N=void 0;e.gullet.future().text!==" "&&(N=e.parseSizeGroup(!0)),y.push(N?N.value:null),C(),I.push(fN(e)),g=[],w.push(g),x()}else throw new K("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:i,body:w,cols:o,rowGaps:y,hskipBeforeAndAfter:a,hLinesBeforeRow:I,colSeparationType:s,tags:S,leqno:f}}function a_(e){return e.slice(0,1)==="d"?"display":"text"}var Qn=function(t,r){var a,n,o=t.body.length,i=t.hLinesBeforeRow,s=0,l=new Array(o),u=[],c=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),d=1/r.fontMetrics().ptPerEm,f=5*d;if(t.colSeparationType&&t.colSeparationType==="small"){var p=r.havingStyle(Se.SCRIPT).sizeMultiplier;f=.2778*(p/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?St({number:3,unit:"ex"},r):12*d,w=3*d,y=t.arraystretch*g,I=.7*y,S=.3*y,x=0;function C(_f){for(var Cf=0;Cf<_f.length;++Cf)Cf>0&&(x+=.25),u.push({pos:x,isDashed:_f[Cf]})}for(C(i[0]),a=0;a<t.body.length;++a){var _=t.body[a],P=I,D=S;s<_.length&&(s=_.length);var N=new Array(_.length);for(n=0;n<_.length;++n){var A=qe(_[n],r);D<A.depth&&(D=A.depth),P<A.height&&(P=A.height),N[n]=A}var O=t.rowGaps[a],oe=0;O&&(oe=St(O,r),oe>0&&(oe+=S,D<oe&&(D=oe),oe=0)),t.addJot&&a<t.body.length-1&&(D+=w),N.height=P,N.depth=D,x+=P,N.pos=x,x+=D+oe,l[a]=N,C(i[a+1])}var Y=x/2+r.fontMetrics().axisHeight,He=t.cols||[],pe=[],Me,Be,qt=[];if(t.tags&&t.tags.some(_f=>_f))for(a=0;a<o;++a){var je=l[a],ft=je.pos-Y,Ct=t.tags[a],tt=void 0;Ct===!0?tt=U(["eqn-num"],[],r):Ct===!1?tt=U([],[],r):tt=U([],Ft(Ct,r,!0),r),tt.depth=je.depth,tt.height=je.height,qt.push({type:"elem",elem:tt,shift:ft})}for(n=0,Be=0;n<s||Be<He.length;++n,++Be){for(var be,Pe=He[Be],ze=!0;((st=Pe)==null?void 0:st.type)==="separator";){var st;if(ze||(Me=U(["arraycolsep"],[]),Me.style.width=Q(r.fontMetrics().doubleRuleSep),pe.push(Me)),Pe.separator==="|"||Pe.separator===":"){var gr=Pe.separator==="|"?"solid":"dashed",Kt=U(["vertical-separator"],[],r);Kt.style.height=Q(x),Kt.style.borderRightWidth=Q(c),Kt.style.borderRightStyle=gr,Kt.style.margin="0 "+Q(-c/2);var Bt=x-Y;Bt&&(Kt.style.verticalAlign=Q(-Bt)),pe.push(Kt)}else throw new K("Invalid separator type: "+Pe.separator);Be++,Pe=He[Be],ze=!1}if(!(n>=s)){var Ar=void 0;if(n>0||t.hskipBeforeAndAfter){var ra,Hi;Ar=(ra=(Hi=Pe)==null?void 0:Hi.pregap)!=null?ra:f,Ar!==0&&(Me=U(["arraycolsep"],[]),Me.style.width=Q(Ar),pe.push(Me))}var L_=[];for(a=0;a<o;++a){var Sf=l[a],If=Sf[n];if(If){var mF=Sf.pos-Y;If.depth=Sf.depth,If.height=Sf.height,L_.push({type:"elem",elem:If,shift:mF})}}var hF=Ze({positionType:"individualShift",children:L_}),gF=U(["col-align-"+(((be=Pe)==null?void 0:be.align)||"c")],[hF]);if(pe.push(gF),n<s-1||t.hskipBeforeAndAfter){var A_,E_;Ar=(A_=(E_=Pe)==null?void 0:E_.postgap)!=null?A_:f,Ar!==0&&(Me=U(["arraycolsep"],[]),Me.style.width=Q(Ar),pe.push(Me))}}}var kf=U(["mtable"],pe);if(u.length>0){for(var vF=Wl("hline",r,c),yF=Wl("hdashline",r,c),Mv=[{type:"elem",elem:kf,shift:0}];u.length>0;){var M_=u.pop(),R_=M_.pos-Y;M_.isDashed?Mv.push({type:"elem",elem:yF,shift:R_}):Mv.push({type:"elem",elem:vF,shift:R_})}kf=Ze({positionType:"individualShift",children:Mv})}if(qt.length===0)return U(["mord"],[kf],r);var xF=Ze({positionType:"individualShift",children:qt}),bF=U(["tag"],[xF],r);return Za([kf,bF])},Zae={c:"center ",l:"left ",r:"right "},ea=function(t,r){for(var a=[],n=new H("mtd",[],["mtr-glue"]),o=new H("mtd",[],["mml-eqn-num"]),i=0;i<t.body.length;i++){for(var s=t.body[i],l=[],u=0;u<s.length;u++)l.push(new H("mtd",[it(s[u],r)]));t.tags&&t.tags[i]&&(l.unshift(n),l.push(n),t.leqno?l.unshift(o):l.push(o)),a.push(new H("mtr",l))}var c=new H("mtable",a),d=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",Q(d));var f="",p="";if(t.cols&&t.cols.length>0){var g=t.cols,w="",y=!1,I=0,S=g.length;g[0].type==="separator"&&(f+="top ",I=1),g[g.length-1].type==="separator"&&(f+="bottom ",S-=1);for(var x=I;x<S;x++){var C=g[x];C.type==="align"?(p+=Zae[C.align],y&&(w+="none "),y=!0):C.type==="separator"&&y&&(w+=C.separator==="|"?"solid ":"dashed ",y=!1)}c.setAttribute("columnalign",p.trim()),/[sd]/.test(w)&&c.setAttribute("columnlines",w.trim())}if(t.colSeparationType==="align"){for(var _=t.cols||[],P="",D=1;D<_.length;D++)P+=D%2?"0em ":"1em ";c.setAttribute("columnspacing",P.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var N="",A=t.hLinesBeforeRow;f+=A[0].length>0?"left ":"",f+=A[A.length-1].length>0?"right ":"";for(var O=1;O<A.length-1;O++)N+=A[O].length===0?"none ":A[O][0]?"dashed ":"solid ";return/[sd]/.test(N)&&c.setAttribute("rowlines",N.trim()),f!==""&&(c=new H("menclose",[c]),c.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(c=new H("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},lO=function(t,r){t.envName.includes("ed")||kv(t);var a=[],n=t.envName.includes("at")?"alignat":"align",o=t.envName==="split",i=Jo(t.parser,{cols:a,addJot:!0,autoTag:o?void 0:n_(t.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var c="",d=0;d<r[0].body.length;d++){var f=Ee(r[0].body[d],"textord");c+=f.text}s=Number(c),l=s*2}var p=!l;i.body.forEach(function(I){for(var S=1;S<I.length;S+=2){var x=Ee(I[S],"styling"),C=Ee(x.body[0],"ordgroup");C.body.unshift(u)}if(p)l<I.length&&(l=I.length);else{var _=I.length/2;if(s<_)throw new K("Too many math in a row: "+("expected "+s+", but got "+_),I[0])}});for(var g=0;g<l;++g){var w="r",y=0;g%2===1?w="l":g>0&&p&&(y=1),a[g]={type:"align",align:w,pregap:y,postgap:0}}return i.colSeparationType=p?"align":"alignat",i};Yn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=xv(t[0]),a=r?[t[0]]:Ee(t[0],"ordgroup").body,n=a.map(function(i){var s=yv(i),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 K("Unknown column alignment: "+l,i)}),o={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Jo(e.parser,o,a_(e.envName))},htmlBuilder:Qn,mathmlBuilder:ea});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",a={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 K("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var o=Jo(e.parser,a,a_(e.envName)),i=Math.max(0,...o.body.map(s=>s.length));return o.cols=new Array(i).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Qn,mathmlBuilder:ea});Yn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Jo(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Qn,mathmlBuilder:ea});Yn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=xv(t[0]),a=r?[t[0]]:Ee(t[0],"ordgroup").body,n=a.map(function(s){var l=yv(s),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new K("Unknown column alignment: "+u,s)});if(n.length>1)throw new K("{subarray} can contain only one column");var o={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Jo(e.parser,o,"script");if(i.body.length>0&&i.body[0].length>1)throw new K("{subarray} can contain only one column");return i},htmlBuilder:Qn,mathmlBuilder:ea});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=Jo(e.parser,t,a_(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:ea});Yn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:lO,htmlBuilder:Qn,mathmlBuilder:ea});Yn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Vae.has(e.envName)&&kv(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:n_(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Jo(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:ea});Yn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:lO,htmlBuilder:Qn,mathmlBuilder:ea});Yn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){kv(e);var t={autoTag:n_(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Jo(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:ea});Yn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return kv(e),Aae(e.parser)},htmlBuilder:Qn,mathmlBuilder:ea});k("\\nonumber","\\gdef\\@eqnsw{0}");k("\\notag","\\nonumber");ae({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new K(e.funcName+" valid only within array environment")}});var pN=iO;ae({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];if(n.type!=="ordgroup")throw new K("Invalid environment name",n);for(var o="",i=0;i<n.body.length;++i)o+=Ee(n.body[i],"textord").text;if(a==="\\begin"){if(!pN.hasOwnProperty(o))throw new K("No such environment: "+o,n);var s=pN[o],{args:l,optArgs:u}=r.parseArguments("\\begin{"+o+"}",s),c={mode:r.mode,envName:o,parser:r},d=s.handler(c,l,u);r.expect("\\end",!1);var f=r.nextToken,p=Ee(r.parseFunction(),"environment");if(p.name!==o)throw new K("Mismatch: \\begin{"+o+"} matched by \\end{"+p.name+"}",f);return d}return{type:"environment",mode:r.mode,name:o,nameGroup:n}}});var uO=(e,t)=>{var r=e.font,a=t.withFont(r);return qe(e.body,a)},cO=(e,t)=>{var r=e.font,a=t.withFont(r);return it(e.body,a)},mN={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ae({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:a}=e,n=uv(t[0]),o=a;return o in mN&&(o=mN[o]),{type:"font",mode:r.mode,font:o.slice(1),body:n}},htmlBuilder:uO,mathmlBuilder:cO});ae({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:bv(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:ja(a)}}});ae({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:n}=e,{mode:o}=r,i=r.parseExpression(!0,n),s="math"+a.slice(1);return{type:"font",mode:o,font:s,body:{type:"ordgroup",mode:r.mode,body:i}}},htmlBuilder:uO,mathmlBuilder:cO});var qae=(e,t)=>{var r=t.style,a=r.fracNum(),n=r.fracDen(),o;o=t.havingStyle(a);var i=qe(e.numer,o,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;i.height=i.height<s?s:i.height,i.depth=i.depth<l?l:i.depth}o=t.havingStyle(n);var u=qe(e.denom,o,t),c,d,f;e.hasBarLine?(e.barSize?(d=St(e.barSize,t),c=Wl("frac-line",t,d)):c=Wl("frac-line",t),d=c.height,f=c.height):(c=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,g,w;r.size===Se.DISPLAY.size?(p=t.fontMetrics().num1,d>0?g=3*f:g=7*f,w=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,g=f):(p=t.fontMetrics().num3,g=3*f),w=t.fontMetrics().denom2);var y;if(c){var S=t.fontMetrics().axisHeight;p-i.depth-(S+.5*d)<g&&(p+=g-(p-i.depth-(S+.5*d))),S-.5*d-(u.height-w)<g&&(w+=g-(S-.5*d-(u.height-w)));var x=-(S-.5*d);y=Ze({positionType:"individualShift",children:[{type:"elem",elem:u,shift:w},{type:"elem",elem:c,shift:x},{type:"elem",elem:i,shift:-p}]})}else{var I=p-i.depth-(u.height-w);I<g&&(p+=.5*(g-I),w+=.5*(g-I)),y=Ze({positionType:"individualShift",children:[{type:"elem",elem:u,shift:w},{type:"elem",elem:i,shift:-p}]})}o=t.havingStyle(r),y.height*=o.sizeMultiplier/t.sizeMultiplier,y.depth*=o.sizeMultiplier/t.sizeMultiplier;var C;r.size===Se.DISPLAY.size?C=t.fontMetrics().delim1:r.size===Se.SCRIPTSCRIPT.size?C=t.havingStyle(Se.SCRIPT).fontMetrics().delim2:C=t.fontMetrics().delim2;var _,P;return e.leftDelim==null?_=uf(t,["mopen"]):_=Z6(e.leftDelim,C,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?P=U([]):e.rightDelim==null?P=uf(t,["mclose"]):P=Z6(e.rightDelim,C,!0,t.havingStyle(r),e.mode,["mclose"]),U(["mord"].concat(o.sizingClasses(t)),[_,U(["mfrac"],[y]),P],t)},Gae=(e,t)=>{var r=new H("mfrac",[it(e.numer,t),it(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var a=St(e.barSize,t);r.setAttribute("linethickness",Q(a))}if(e.leftDelim!=null||e.rightDelim!=null){var n=[];if(e.leftDelim!=null){var o=new H("mo",[new _t(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),n.push(o)}if(n.push(r),e.rightDelim!=null){var i=new H("mo",[new _t(e.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),n.push(i)}return Q6(n)}return r},dO=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};ae({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:a}=e,n=t[0],o=t[1],i,s=null,l=null;switch(a){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,s="(",l=")";break;case"\\\\bracefrac":i=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":i=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=a==="\\cfrac",c=null;return u||a.startsWith("\\d")?c="display":a.startsWith("\\t")&&(c="text"),dO({type:"genfrac",mode:r.mode,numer:n,denom:o,continued:u,hasBarLine:i,leftDelim:s,rightDelim:l,barSize:null},c)},htmlBuilder:qae,mathmlBuilder:Gae});ae({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:a}=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:a}}});var hN=["display","text","script","scriptscript"],gN=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ae({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,a=t[4],n=t[5],o=uv(t[0]),i=o.type==="atom"&&o.family==="open"?gN(o.text):null,s=uv(t[1]),l=s.type==="atom"&&s.family==="close"?gN(s.text):null,u=Ee(t[2],"size"),c,d=null;u.isBlank?c=!0:(d=u.value,c=d.number>0);var f=null,p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=Ee(p.body[0],"textord");f=hN[Number(g.text)]}}else p=Ee(p,"textord"),f=hN[Number(p.text)];return dO({type:"genfrac",mode:r.mode,numer:a,denom:n,continued:!1,hasBarLine:c,barSize:d,leftDelim:i,rightDelim:l},f)}});ae({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ee(t[0],"size").value,token:n}}});ae({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],o=Ee(t[1],"infix").size;if(!o)throw new Error("\\\\abovefrac expected size, but got "+String(o));var i=t[2],s=o.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null}}});var fO=(e,t)=>{var r=t.style,a,n;e.type==="supsub"?(a=e.sup?qe(e.sup,t.havingStyle(r.sup()),t):qe(e.sub,t.havingStyle(r.sub()),t),n=Ee(e.base,"horizBrace")):n=Ee(e,"horizBrace");var o=qe(n.base,t.havingBaseStyle(Se.DISPLAY)),i=vv(n,t),s;if(n.isOver?(s=Ze({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:i}]}),s.children[0].children[0].children[1].classes.push("svg-align")):(s=Ze({positionType:"bottom",positionData:o.depth+.1+i.height,children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:o}]}),s.children[0].children[0].children[0].classes.push("svg-align")),a){var l=U(["minner",n.isOver?"mover":"munder"],[s],t);n.isOver?s=Ze({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:a}]}):s=Ze({positionType:"bottom",positionData:l.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:l}]})}return U(["minner",n.isOver?"mover":"munder"],[s],t)},Hae=(e,t)=>{var r=gv(e.label);return new H(e.isOver?"mover":"munder",[it(e.base,t),r])};ae({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:a.includes("\\over"),base:t[0]}},htmlBuilder:fO,mathmlBuilder:Hae});ae({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],n=Ee(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:Et(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Ft(e.body,t,!1);return cae(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Wo(e.body,t);return r instanceof H||(r=new H("mrow",[r])),r.setAttribute("href",e.href),r}});ae({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=Ee(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],o=0;o<a.length;o++){var i=a[o];i==="~"&&(i="\\textasciitilde"),n.push({type:"textord",mode:"text",text:i})}var s={type:"text",mode:r.mode,font:"\\texttt",body:n};return{type:"href",mode:r.mode,href:a,body:Et(s)}}});ae({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:Et(t[0])}},htmlBuilder(e,t){var r=Ft(e.body,t,!1);return Za(r)},mathmlBuilder(e,t){return new H("mrow",Wr(e.body,t))}});ae({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,token:n}=e,o=Ee(t[0],"raw").string,i=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(a){case"\\htmlClass":l.class=o,s={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,s={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,s={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var u=o.split(","),c=0;c<u.length;c++){var d=u[c],f=d.indexOf("=");if(f<0)throw new K("\\htmlData key/value '"+d+"' missing equals sign");var p=d.slice(0,f),g=d.slice(f+1);l["data-"+p.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:Et(i)}:r.formatUnsupportedCmd(a)},htmlBuilder:(e,t)=>{var r=Ft(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var n=U(a,r,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&n.setAttribute(o,e.attributes[o]);return n},mathmlBuilder:(e,t)=>Wo(e.body,t)});ae({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:Et(t[0]),mathml:Et(t[1])}},htmlBuilder:(e,t)=>{var r=Ft(e.html,t,!1);return Za(r)},mathmlBuilder:(e,t)=>Wo(e.mathml,t)});var $6=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 K("Invalid size: '"+t+"' in \\includegraphics");var a={number:+(r[1]+r[2]),unit:r[3]};if(!LN(a))throw new K("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};ae({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,n={number:0,unit:"em"},o={number:.9,unit:"em"},i={number:0,unit:"em"},s="";if(r[0])for(var l=Ee(r[0],"raw").string,u=l.split(","),c=0;c<u.length;c++){var d=u[c].split("=");if(d.length===2){var f=d[1].trim();switch(d[0].trim()){case"alt":s=f;break;case"width":n=$6(f);break;case"height":o=$6(f);break;case"totalheight":i=$6(f);break;default:throw new K("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var p=Ee(t[0],"url").url;return s===""&&(s=p,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:a.mode,alt:s,width:n,height:o,totalheight:i,src:p}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=St(e.height,t),a=0;e.totalheight.number>0&&(a=St(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=St(e.width,t));var o={height:Q(r+a)};n>0&&(o.width=Q(n)),a>0&&(o.verticalAlign=Q(-a));var i=new D6(e.src,e.alt,o);return i.height=r,i.depth=a,i},mathmlBuilder:(e,t)=>{var r=new H("mglyph",[]);r.setAttribute("alt",e.alt);var a=St(e.height,t),n=0;if(e.totalheight.number>0&&(n=St(e.totalheight,t)-a,r.setAttribute("valign",Q(-n))),r.setAttribute("height",Q(a+n)),e.width.number>0){var o=St(e.width,t);r.setAttribute("width",Q(o))}return r.setAttribute("src",e.src),r}});ae({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=Ee(t[0],"size");if(r.settings.strict){var o=a[1]==="m",i=n.value.unit==="mu";o?(i||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):i&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder(e,t){return zN(e.dimension,t)},mathmlBuilder(e,t){var r=St(e.dimension,t);return new cv(r)}});ae({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=U([],[qe(e.body,t)]),r=U(["inner"],[r],t)):r=U(["inner"],[qe(e.body,t)]);var a=U(["fix"],[]),n=U([e.alignment],[r,a],t),o=U(["strut"]);return o.style.height=Q(n.height+n.depth),n.depth&&(o.style.verticalAlign=Q(-n.depth)),n.children.unshift(o),n=U(["thinbox"],[n],t),U(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new H("mpadded",[it(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}});ae({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,n=a.mode;a.switchMode("math");var o=r==="\\("?"\\)":"$",i=a.parseExpression(!1,o);return a.expect(o),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:i}}});ae({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new K("Mismatched "+e.funcName)}});var vN=(e,t)=>{switch(t.style.size){case Se.DISPLAY.size:return e.display;case Se.TEXT.size:return e.text;case Se.SCRIPT.size:return e.script;case Se.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ae({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Et(t[0]),text:Et(t[1]),script:Et(t[2]),scriptscript:Et(t[3])}},htmlBuilder:(e,t)=>{var r=vN(e,t),a=Ft(r,t,!1);return Za(a)},mathmlBuilder:(e,t)=>{var r=vN(e,t);return Wo(r,t)}});var pO=(e,t,r,a,n,o,i)=>{e=U([],[e]);var s=r&&ja(r),l,u;if(t){var c=qe(t,a.havingStyle(n.sup()),a);u={elem:c,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var d=qe(r,a.havingStyle(n.sub()),a);l={elem:d,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-d.height)}}var f;if(u&&l){var p=a.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+i;f=Ze({positionType:"bottom",positionData:p,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Q(-o)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Q(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else if(l){var g=e.height-i;f=Ze({positionType:"top",positionData:g,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Q(-o)},{type:"kern",size:l.kern},{type:"elem",elem:e}]})}else if(u){var w=e.depth+i;f=Ze({positionType:"bottom",positionData:w,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Q(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else return e;var y=[f];if(l&&o!==0&&!s){var I=U(["mspace"],[],a);I.style.marginRight=Q(o),y.unshift(I)}return U(["mop","op-limits"],y,a)},mO=new Set(["\\smallint"]),Xl=(e,t)=>{var r,a,n=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=Ee(e.base,"op"),n=!0):o=Ee(e,"op");var i=t.style,s=!1;i.size===Se.DISPLAY.size&&o.symbol&&!mO.has(o.name)&&(s=!0);var l;if(o.symbol){var u=s?"Size2-Regular":"Size1-Regular",c="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(c=o.name.slice(1),o.name=c==="oiint"?"\\iint":"\\iiint"),l=fr(o.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),c.length>0){var d=l.italic,f=ON(c+"Size"+(s?"2":"1"),t);l=Ze({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:s?.08:0}]}),o.name="\\"+c,l.classes.unshift("mop"),l.italic=d}}else if(o.body){var p=Ft(o.body,t,!0);p.length===1&&p[0]instanceof mr?(l=p[0],l.classes[0]="mop"):l=U(["mop"],p,t)}else{for(var g=[],w=1;w<o.name.length;w++)g.push(X6(o.name[w],o.mode,t));l=U(["mop"],g,t)}var y=0,I=0;return(l instanceof mr||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift&&(y=(l.height-l.depth)/2-t.fontMetrics().axisHeight,I=l.italic||0),n?pO(l,r,a,t,i,I,y):(y&&(l.style.position="relative",l.style.top=Q(y)),l)},df=(e,t)=>{var r;if(e.symbol)r=new H("mo",[dn(e.name,e.mode)]),mO.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new H("mo",Wr(e.body,t));else{r=new H("mi",[new _t(e.name.slice(1))]);var a=new H("mo",[dn("\u2061","text")]);e.parentIsSupSub?r=new H("mrow",[r,a]):r=BN([r,a])}return r},Wae={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};ae({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:a}=e,n=a;return n.length===1&&(n=Wae[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Xl,mathmlBuilder:df});ae({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Et(a)}},htmlBuilder:Xl,mathmlBuilder:df});var Jae={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};ae({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:Xl,mathmlBuilder:df});ae({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:Xl,mathmlBuilder:df});ae({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,a=r;return a.length===1&&(a=Jae[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Xl,mathmlBuilder:df});var hO=(e,t)=>{var r,a,n=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=Ee(e.base,"operatorname"),n=!0):o=Ee(e,"operatorname");var i;if(o.body.length>0){for(var s=o.body.map(d=>{var f="text"in d?d.text:void 0;return typeof f=="string"?{type:"textord",mode:d.mode,text:f}:d}),l=Ft(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof mr&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=U(["mop"],l,t)}else i=U(["mop"],[],t);return n?pO(i,r,a,t,t.style,0,0):i},Kae=(e,t)=>{for(var r=Wr(e.body,t.withFont("mathrm")),a=!0,n=0;n<r.length;n++){var o=r[n];if(!(o instanceof cv))if(o instanceof H)switch(o.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var i=o.children[0];o.children.length===1&&i instanceof _t?i.text=i.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var s=r.map(c=>c.toText()).join("");r=[new _t(s)]}var l=new H("mi",r);l.setAttribute("mathvariant","normal");var u=new H("mo",[dn("\u2061","text")]);return e.parentIsSupSub?new H("mrow",[l,u]):BN([l,u])};ae({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:Et(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:hO,mathmlBuilder:Kae});k("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");qi({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Za(Ft(e.body,t,!1)):U(["mord"],Ft(e.body,t,!0),t)},mathmlBuilder(e,t){return Wo(e.body,t,!0)}});ae({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=qe(e.body,t.havingCrampedStyle()),a=Wl("overline-line",t),n=t.fontMetrics().defaultRuleThickness,o=Ze({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]});return U(["mord","overline"],[o],t)},mathmlBuilder(e,t){var r=new H("mo",[new _t("\u203E")]);r.setAttribute("stretchy","true");var a=new H("mover",[it(e.body,t),r]);return a.setAttribute("accent","true"),a}});ae({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:Et(a)}},htmlBuilder:(e,t)=>{var r=Ft(e.body,t.withPhantom(),!1);return Za(r)},mathmlBuilder:(e,t)=>{var r=Wr(e.body,t);return new H("mphantom",r)}});k("\\hphantom","\\smash{\\phantom{#1}}");ae({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=U(["inner"],[qe(e.body,t.withPhantom())]),a=U(["fix"],[]);return U(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=Wr(Et(e.body),t),a=new H("mphantom",r),n=new H("mpadded",[a]);return n.setAttribute("width","0px"),n}});ae({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=Ee(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:n}},htmlBuilder(e,t){var r=qe(e.body,t),a=St(e.dy,t);return Ze({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new H("mpadded",[it(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}});ae({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ae({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,n=r[0],o=Ee(t[0],"size"),i=Ee(t[1],"size");return{type:"rule",mode:a.mode,shift:n&&Ee(n,"size").value,width:o.value,height:i.value}},htmlBuilder(e,t){var r=U(["mord","rule"],[],t),a=St(e.width,t),n=St(e.height,t),o=e.shift?St(e.shift,t):0;return r.style.borderRightWidth=Q(a),r.style.borderTopWidth=Q(n),r.style.bottom=Q(o),r.width=a,r.height=n+o,r.depth=-o,r.maxFontSize=n*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=St(e.width,t),a=St(e.height,t),n=e.shift?St(e.shift,t):0,o=t.color&&t.getColor()||"black",i=new H("mspace");i.setAttribute("mathbackground",o),i.setAttribute("width",Q(r)),i.setAttribute("height",Q(a));var s=new H("mpadded",[i]);return n>=0?s.setAttribute("height",Q(n)):(s.setAttribute("height",Q(n)),s.setAttribute("depth",Q(-n))),s.setAttribute("voffset",Q(n)),s}});function gO(e,t,r){for(var a=Ft(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,o=0;o<a.length;o++){var i=a[o].classes.indexOf("sizing");i<0?Array.prototype.push.apply(a[o].classes,t.sizingClasses(r)):a[o].classes[i+1]==="reset-size"+t.size&&(a[o].classes[i+1]="reset-size"+r.size),a[o].height*=n,a[o].depth*=n}return Za(a)}var yN=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Xae=(e,t)=>{var r=t.havingSize(e.size);return gO(e.body,r,t)};ae({type:"sizing",names:yN,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:n}=e,o=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:yN.indexOf(a)+1,body:o}},htmlBuilder:Xae,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=Wr(e.body,r),n=new H("mstyle",a);return n.setAttribute("mathsize",Q(r.sizeMultiplier)),n}});ae({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,n=!1,o=!1,i=r[0]&&Ee(r[0],"ordgroup");if(i)for(var s="",l=0;l<i.body.length;++l){var u=i.body[l];if(s=yv(u).text,s==="t")n=!0;else if(s==="b")o=!0;else{n=!1,o=!1;break}}else n=!0,o=!0;var c=t[0];return{type:"smash",mode:a.mode,body:c,smashHeight:n,smashDepth:o}},htmlBuilder:(e,t)=>{var r=U([],[qe(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return U(["mord","smash"],[r],t);if(r.children)for(var a=0;a<r.children.length;a++)e.smashHeight&&(r.children[a].height=0),e.smashDepth&&(r.children[a].depth=0);var n=Ze({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return U(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var r=new H("mpadded",[it(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ae({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,n=r[0],o=t[0];return{type:"sqrt",mode:a.mode,body:o,index:n}},htmlBuilder(e,t){var r=qe(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Jl(r,t);var a=t.fontMetrics(),n=a.defaultRuleThickness,o=n;t.style.id<Se.TEXT.id&&(o=t.fontMetrics().xHeight);var i=n+o/4,s=r.height+r.depth+i+n,{span:l,ruleWidth:u,advanceWidth:c}=Nae(s,t),d=l.height-u;d>r.height+r.depth+i&&(i=(i+d-r.height-r.depth)/2);var f=l.height-r.height-i-u;r.style.paddingLeft=Q(c);var p=Ze({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(e.index){var g=t.havingStyle(Se.SCRIPTSCRIPT),w=qe(e.index,g,t),y=.6*(p.height-p.depth),I=Ze({positionType:"shift",positionData:-y,children:[{type:"elem",elem:w}]}),S=U(["root"],[I]);return U(["mord","sqrt"],[S,p],t)}else return U(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new H("mroot",[it(r,t),it(a,t)]):new H("msqrt",[it(r,t)])}});var xN={display:Se.DISPLAY,text:Se.TEXT,script:Se.SCRIPT,scriptscript:Se.SCRIPTSCRIPT};ae({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:n}=e,o=n.parseExpression(!0,r),i=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:i,body:o}},htmlBuilder(e,t){var r=xN[e.style],a=t.havingStyle(r).withFont("");return gO(e.body,a,t)},mathmlBuilder(e,t){var r=xN[e.style],a=t.havingStyle(r),n=Wr(e.body,a),o=new H("mstyle",n),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=i[e.style];return o.setAttribute("scriptlevel",s[0]),o.setAttribute("displaystyle",s[1]),o}});var Yae=function(t,r){var a=t.base;if(a)if(a.type==="op"){var n=a.limits&&(r.style.size===Se.DISPLAY.size||a.alwaysHandleSupSub);return n?Xl:null}else if(a.type==="operatorname"){var o=a.alwaysHandleSupSub&&(r.style.size===Se.DISPLAY.size||a.limits);return o?hO:null}else{if(a.type==="accent")return ja(a.base)?t_:null;if(a.type==="horizBrace"){var i=!t.sub;return i===a.isOver?fO:null}else return null}else return null};qi({type:"supsub",htmlBuilder(e,t){var r=Yae(e,t);if(r)return r(e,t);var{base:a,sup:n,sub:o}=e,i=qe(a,t),s,l,u=t.fontMetrics(),c=0,d=0,f=a&&ja(a);if(n){var p=t.havingStyle(t.style.sup());s=qe(n,p,t),f||(c=i.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(o){var g=t.havingStyle(t.style.sub());l=qe(o,g,t),f||(d=i.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var w;t.style===Se.DISPLAY?w=u.sup1:t.style.cramped?w=u.sup3:w=u.sup2;var y=t.sizeMultiplier,I=Q(.5/u.ptPerEm/y),S=null;if(l){var x=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(i instanceof mr||x)&&(S=Q(-i.italic))}var C;if(s&&l){c=Math.max(c,w,s.depth+.25*u.xHeight),d=Math.max(d,u.sub2);var _=u.defaultRuleThickness,P=4*_;if(c-s.depth-(l.height-d)<P){d=P-(c-s.depth)+l.height;var D=.8*u.xHeight-(c-s.depth);D>0&&(c+=D,d-=D)}var N=[{type:"elem",elem:l,shift:d,marginRight:I,marginLeft:S},{type:"elem",elem:s,shift:-c,marginRight:I}];C=Ze({positionType:"individualShift",children:N})}else if(l){d=Math.max(d,u.sub1,l.height-.8*u.xHeight);var A=[{type:"elem",elem:l,marginLeft:S,marginRight:I}];C=Ze({positionType:"shift",positionData:d,children:A})}else if(s)c=Math.max(c,w,s.depth+.25*u.xHeight),C=Ze({positionType:"shift",positionData:-c,children:[{type:"elem",elem:s,marginRight:I}]});else throw new Error("supsub must have either sup or sub.");var O=U6(i,"right")||"mord";return U([O],[i,U(["msupsub"],[C])],t)},mathmlBuilder(e,t){var r=!1,a,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[it(e.base,t)];e.sub&&o.push(it(e.sub,t)),e.sup&&o.push(it(e.sup,t));var i;if(r)i=a?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Se.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Se.DISPLAY||u.limits)?i="munderover":i="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Se.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Se.DISPLAY)?i="munder":i="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Se.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Se.DISPLAY)?i="mover":i="msup"}return new H(i,o)}});qi({type:"atom",htmlBuilder(e,t){return X6(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new H("mo",[dn(e.text,e.mode)]);if(e.family==="bin"){var a=e_(e,t);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var vO={mi:"italic",mn:"normal",mtext:"normal"};qi({type:"mathord",htmlBuilder(e,t){return hv(e,t,"mathord")},mathmlBuilder(e,t){var r=new H("mi",[dn(e.text,e.mode,t)]),a=e_(e,t)||"italic";return a!==vO[r.type]&&r.setAttribute("mathvariant",a),r}});qi({type:"textord",htmlBuilder(e,t){return hv(e,t,"textord")},mathmlBuilder(e,t){var r=dn(e.text,e.mode,t),a=e_(e,t)||"normal",n;return e.mode==="text"?n=new H("mtext",[r]):/[0-9]/.test(e.text)?n=new H("mn",[r]):e.text==="\\prime"?n=new H("mo",[r]):n=new H("mi",[r]),a!==vO[n.type]&&n.setAttribute("mathvariant",a),n}});var P6={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},L6={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};qi({type:"spacing",htmlBuilder(e,t){if(L6.hasOwnProperty(e.text)){var r=L6[e.text].className||"";if(e.mode==="text"){var a=hv(e,t,"textord");return a.classes.push(r),a}else return U(["mspace",r],[X6(e.text,e.mode,t)],t)}else{if(P6.hasOwnProperty(e.text))return U(["mspace",P6[e.text]],[],t);throw new K('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(L6.hasOwnProperty(e.text))r=new H("mtext",[new _t("\xA0")]);else{if(P6.hasOwnProperty(e.text))return new H("mspace");throw new K('Unknown type of space "'+e.text+'"')}return r}});var bN=()=>{var e=new H("mtd",[]);return e.setAttribute("width","50%"),e};qi({type:"tag",mathmlBuilder(e,t){var r=new H("mtable",[new H("mtr",[bN(),new H("mtd",[Wo(e.body,t)]),bN(),new H("mtd",[Wo(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var wN={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},SN={"\\textbf":"textbf","\\textmd":"textmd"},Qae={"\\textit":"textit","\\textup":"textup"},IN=(e,t)=>{var r=e.font;if(r){if(wN[r])return t.withTextFontFamily(wN[r]);if(SN[r])return t.withTextFontWeight(SN[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Qae[r])};ae({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:a}=e,n=t[0];return{type:"text",mode:r.mode,body:Et(n),font:a}},htmlBuilder(e,t){var r=IN(e,t),a=Ft(e.body,r,!0);return U(["mord","text"],a,r)},mathmlBuilder(e,t){var r=IN(e,t);return Wo(e.body,r)}});ae({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=qe(e.body,t),a=Wl("underline-line",t),n=t.fontMetrics().defaultRuleThickness,o=Ze({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]});return U(["mord","underline"],[o],t)},mathmlBuilder(e,t){var r=new H("mo",[new _t("\u203E")]);r.setAttribute("stretchy","true");var a=new H("munder",[it(e.body,t),r]);return a.setAttribute("accentunder","true"),a}});ae({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=qe(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return Ze({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new H("mpadded",[it(e.body,t)],["vcenter"])}});ae({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new K("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=kN(e),a=[],n=t.havingStyle(t.style.text()),o=0;o<r.length;o++){var i=r[o];i==="~"&&(i="\\textasciitilde"),a.push(fr(i,"Typewriter-Regular",e.mode,n,["mord","texttt"]))}return U(["mord","text"].concat(n.sizingClasses(t)),DN(a),n)},mathmlBuilder(e,t){var r=new _t(kN(e)),a=new H("mtext",[r]);return a.setAttribute("mathvariant","monospace"),a}});var kN=e=>e.body.replace(/ /g,e.star?"\u2423":"\xA0"),Vo=FN,yO=`[ \r 519 ]`,eoe="\\\\[a-zA-Z@]+",toe="\\\\[^\uD800-\uDFFF]",roe="("+eoe+")"+yO+"*",noe=`\\\\( 520|[ \r ]+ 521?)[ \r ]*`,q6="[\u0300-\u036F]",aoe=new RegExp(q6+"+$"),ooe="("+yO+"+)|"+(noe+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(q6+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(q6+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+roe)+("|"+toe+")"),fv=class{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(ooe,"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 Gr("EOF",new Lr(this,r,r));var a=this.tokenRegex.exec(t);if(a===null||a.index!==r)throw new K("Unexpected character: '"+t[r]+"'",new Gr(t[r],new Lr(this,r,r+1)));var n=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[n]===14){var o=t.indexOf(` 522`,this.tokenRegex.lastIndex);return o===-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=o+1,this.lex()}return new Gr(n,new Lr(this,r,this.tokenRegex.lastIndex))}},G6=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 K("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,a){if(a===void 0&&(a=!1),a){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 o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(t)&&(o[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}},ioe=sO;k("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});k("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});k("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});k("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});k("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});k("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");k("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var _N={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};k("\\char",function(e){var t=e.popToken(),r,a=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]==="\\")a=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new K("\\char` missing argument");a=t.text.charCodeAt(0)}else r=10;if(r){if(a=_N[t.text],a==null||a>=r)throw new K("Invalid base-"+r+" digit "+t.text);for(var n;(n=_N[e.future().text])!=null&&n<r;)a*=r,a+=n,e.popToken()}return"\\@char{"+a+"}"});var o_=(e,t,r,a)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new K("\\newcommand's first argument must be a macro name");var o=n[0].text,i=e.isDefined(o);if(i&&!t)throw new K("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!i&&!r)throw new K("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var s=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new K("Invalid number of arguments: "+l);s=parseInt(l),n=e.consumeArg().tokens}return i&&a||e.macros.set(o,{tokens:n,numArgs:s}),""};k("\\newcommand",e=>o_(e,!1,!0,!1));k("\\renewcommand",e=>o_(e,!0,!1,!1));k("\\providecommand",e=>o_(e,!0,!0,!0));k("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});k("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});k("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Vo[r],ht.math[r],ht.text[r]),""});k("\\bgroup","{");k("\\egroup","}");
522k("~","\\nobreakspace");k("\\lq","`");k("\\rq","'");k("\\aa","\\r a");k("\\AA","\\r A");k("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");k("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");k("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");k("\u212C","\\mathscr{B}");k("\u2130","\\mathscr{E}");k("\u2131","\\mathscr{F}");k("\u210B","\\mathscr{H}");k("\u2110","\\mathscr{I}");k("\u2112","\\mathscr{L}");k("\u2133","\\mathscr{M}");k("\u211B","\\mathscr{R}");k("\u212D","\\mathfrak{C}");k("\u210C","\\mathfrak{H}");k("\u2128","\\mathfrak{Z}");k("\\Bbbk","\\Bbb{k}");k("\\llap","\\mathllap{\\textrm{#1}}");k("\\rlap","\\mathrlap{\\textrm{#1}}");k("\\clap","\\mathclap{\\textrm{#1}}");k("\\mathstrut","\\vphantom{(}");k("\\underbar","\\underline{\\text{#1}}");k("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');k("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");k("\\ne","\\neq");k("\u2260","\\neq");k("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");
vendor: 5,310 bytes, line 522
522k("\u2209","\\notin");k("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");k("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");k("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");k("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");k("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");k("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");k("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");k("\u27C2","\\perp");k("\u203C","\\mathclose{!\\mkern-0.8mu!}");k("\u220C","\\notni");k("\u231C","\\ulcorner");k("\u231D","\\urcorner");k("\u231E","\\llcorner");k("\u231F","\\lrcorner");k("\xA9","\\copyright");k("\xAE","\\textregistered");k("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');k("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');k("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');k("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');k("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");k("\u22EE","\\vdots");k("\\varGamma","\\mathit{\\Gamma}");k("\\varDelta","\\mathit{\\Delta}");k("\\varTheta","\\mathit{\\Theta}");k("\\varLambda","\\mathit{\\Lambda}");k("\\varXi","\\mathit{\\Xi}");k("\\varPi","\\mathit{\\Pi}");k("\\varSigma","\\mathit{\\Sigma}");k("\\varUpsilon","\\mathit{\\Upsilon}");k("\\varPhi","\\mathit{\\Phi}");k("\\varPsi","\\mathit{\\Psi}");k("\\varOmega","\\mathit{\\Omega}");k("\\substack","\\begin{subarray}{c}#1\\end{subarray}");k("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");k("\\boxed","\\fbox{$\\displaystyle{#1}$}");k("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");k("\\implies","\\DOTSB\\;\\Longrightarrow\\;");k("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");k("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");k("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var CN={",":"\\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"},soe=new Set(["bin","rel"]);k("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in CN?t=CN[r]:(r.slice(0,4)==="\\not"||r in ht.math&&soe.has(ht.math[r].group))&&(t="\\dotsb"),t});var i_={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};k("\\dotso",function(e){var t=e.future().text;return t in i_?"\\ldots\\,":"\\ldots"});k("\\dotsc",function(e){var t=e.future().text;return t in i_&&t!==","?"\\ldots\\,":"\\ldots"});k("\\cdots",function(e){var t=e.future().text;return t in i_?"\\@cdots\\,":"\\@cdots"});k("\\dotsb","\\cdots");k("\\dotsm","\\cdots");k("\\dotsi","\\!\\cdots");k("\\dotsx","\\ldots\\,");k("\\DOTSI","\\relax");k("\\DOTSB","\\relax");k("\\DOTSX","\\relax");k("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");k("\\,","\\tmspace+{3mu}{.1667em}");k("\\thinspace","\\,");k("\\>","\\mskip{4mu}");k("\\:","\\tmspace+{4mu}{.2222em}");k("\\medspace","\\:");k("\\;","\\tmspace+{5mu}{.2777em}");k("\\thickspace","\\;");k("\\!","\\tmspace-{3mu}{.1667em}");k("\\negthinspace","\\!");k("\\negmedspace","\\tmspace-{4mu}{.2222em}");k("\\negthickspace","\\tmspace-{5mu}{.277em}");k("\\enspace","\\kern.5em ");k("\\enskip","\\hskip.5em\\relax");k("\\quad","\\hskip1em\\relax");k("\\qquad","\\hskip2em\\relax");k("\\tag","\\@ifstar\\tag@literal\\tag@paren");k("\\tag@paren","\\tag@literal{({#1})}");k("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new K("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});k("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");k("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");k("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");k("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");k("\\newline","\\\\\\relax");k("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var xO=Q(Kn["Main-Regular"][84][1]-.7*Kn["Main-Regular"][65][1]);
522k("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+xO+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");k("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+xO+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");k("\\hspace","\\@ifstar\\@hspacer\\@hspace");k("\\@hspace","\\hskip #1\\relax");k("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");k("\\ordinarycolon",":");k("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");k("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');k("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');k("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');k("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');k("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');k("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');k("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');k("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');k("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');k("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');k("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');k("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');k("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');k("\u2237","\\dblcolon");k("\u2239","\\eqcolon");k("\u2254","\\coloneqq");k("\u2255","\\eqqcolon");k("\u2A74","\\Coloneqq");k("\\ratio","\\vcentcolon");k("\\coloncolon","\\dblcolon");k("\\colonequals","\\coloneqq");k("\\coloncolonequals","\\Coloneqq");k("\\equalscolon","\\eqqcolon");k("\\equalscoloncolon","\\Eqqcolon");k("\\colonminus","\\coloneq");k("\\coloncolonminus","\\Coloneq");k("\\minuscolon","\\eqcolon");k("\\minuscoloncolon","\\Eqcolon");k("\\coloncolonapprox","\\Colonapprox");k("\\coloncolonsim","\\Colonsim");k("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");k("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");k("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");k("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");k("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");k("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");k("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");k("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");k("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");k("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");k("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");k("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");k("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");k("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");k("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");k("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");k("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");k("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");k("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");k("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");k("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");k("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");k("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");k("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");k("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");k("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");k("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");k("\\imath","\\html@mathml{\\@imath}{\u0131}");k("\\jmath","\\html@mathml{\\@jmath}{\u0237}");k("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}
522{\\mathopen{\\char`\u27E6}}");k("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");k("\u27E6","\\llbracket");k("\u27E7","\\rrbracket");k("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");k("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");k("\u2983","\\lBrace");k("\u2984","\\rBrace");k("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");k("\u29B5","\\minuso");k("\\darr","\\downarrow");k("\\dArr","\\Downarrow");k("\\Darr","\\Downarrow");k("\\lang","\\langle");k("\\rang","\\rangle");k("\\uarr","\\uparrow");k("\\uArr","\\Uparrow");k("\\Uarr","\\Uparrow");k("\\N","\\mathbb{N}");k("\\R","\\mathbb{R}");k("\\Z","\\mathbb{Z}");k("\\alef","\\aleph");k("\\alefsym","\\aleph");k("\\Alpha","\\mathrm{A}");k("\\Beta","\\mathrm{B}");k("\\bull","\\bullet");k("\\Chi","\\mathrm{X}");k("\\clubs","\\clubsuit");k("\\cnums","\\mathbb{C}");k("\\Complex","\\mathbb{C}");k("\\Dagger","\\ddagger");k("\\diamonds","\\diamondsuit");k("\\empty","\\emptyset");k("\\Epsilon","\\mathrm{E}");k("\\Eta","\\mathrm{H}");k("\\exist","\\exists");k("\\harr","\\leftrightarrow");k("\\hArr","\\Leftrightarrow");k("\\Harr","\\Leftrightarrow");k("\\hearts","\\heartsuit");k("\\image","\\Im");k("\\infin","\\infty");k("\\Iota","\\mathrm{I}");k("\\isin","\\in");k("\\Kappa","\\mathrm{K}");k("\\larr","\\leftarrow");k("\\lArr","\\Leftarrow");k("\\Larr","\\Leftarrow");k("\\lrarr","\\leftrightarrow");k("\\lrArr","\\Leftrightarrow");k("\\Lrarr","\\Leftrightarrow");k("\\Mu","\\mathrm{M}");k("\\natnums","\\mathbb{N}");k("\\Nu","\\mathrm{N}");k("\\Omicron","\\mathrm{O}");k("\\plusmn","\\pm");k("\\rarr","\\rightarrow");k("\\rArr","\\Rightarrow");k("\\Rarr","\\Rightarrow");k("\\real","\\Re");k("\\reals","\\mathbb{R}");k("\\Reals","\\mathbb{R}");k("\\Rho","\\mathrm{P}");k("\\sdot","\\cdot");k("\\sect","\\S");k("\\spades","\\spadesuit");k("\\sub","\\subset");k("\\sube","\\subseteq");k("\\supe","\\supseteq");k("\\Tau","\\mathrm{T}");k("\\thetasym","\\vartheta");k("\\weierp","\\wp");k("\\Zeta","\\mathrm{Z}");k("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");k("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");k("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");k("\\bra","\\mathinner{\\langle{#1}|}");k("\\ket","\\mathinner{|{#1}\\rangle}");k("\\braket","\\mathinner{\\langle{#1}\\rangle}");k("\\Bra","\\left\\langle#1\\right|");k("\\Ket","\\left|#1\\right\\rangle");var bO=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=d=>f=>{e&&(f.macros.set("|",i),n.length&&f.macros.set("\\|",s));var p=d;if(!d&&n.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?n:a,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...o,...u,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};k("\\bra@ket",bO(!1));k("\\bra@set",bO(!0));k("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");k("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");k("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");k("\\angln","{\\angl n}");k("\\blue","\\textcolor{##6495ed}{#1}");k("\\orange","\\textcolor{##ffa500}{#1}");k("\\pink","\\textcolor{##ff00af}{#1}");k("\\red","\\textcolor{##df0030}{#1}");k("\\green","\\textcolor{##28ae7b}{#1}");k("\\gray","\\textcolor{gray}{#1}");k("\\purple","\\textcolor{##9d38bd}{#1}");k("\\blueA","\\textcolor{##ccfaff}{#1}");k("\\blueB","\\textcolor{##80f6ff}{#1}");k("\\blueC","\\textcolor{##63d9ea}{#1}");k("\\blueD","\\textcolor{##11accd}{#1}");k("\\blueE","\\textcolor{##0c7f99}{#1}");k("\\tealA","\\textcolor{##94fff5}{#1}");k("\\tealB","\\textcolor{##26edd5}{#1}");k("\\tealC","\\textcolor{##01d1c1}{#1}");k("\\tealD","\\textcolor{##01a995}{#1}");k("\\tealE","\\textcolor{##208170}{#1}");k("\\greenA","\\textcolor{##b6ffb0}{#1}");
vendor: 13,082 bytes, line 522
522k("\\greenB","\\textcolor{##8af281}{#1}");k("\\greenC","\\textcolor{##74cf70}{#1}");k("\\greenD","\\textcolor{##1fab54}{#1}");k("\\greenE","\\textcolor{##0d923f}{#1}");k("\\goldA","\\textcolor{##ffd0a9}{#1}");k("\\goldB","\\textcolor{##ffbb71}{#1}");k("\\goldC","\\textcolor{##ff9c39}{#1}");k("\\goldD","\\textcolor{##e07d10}{#1}");k("\\goldE","\\textcolor{##a75a05}{#1}");k("\\redA","\\textcolor{##fca9a9}{#1}");k("\\redB","\\textcolor{##ff8482}{#1}");k("\\redC","\\textcolor{##f9685d}{#1}");k("\\redD","\\textcolor{##e84d39}{#1}");k("\\redE","\\textcolor{##bc2612}{#1}");k("\\maroonA","\\textcolor{##ffbde0}{#1}");k("\\maroonB","\\textcolor{##ff92c6}{#1}");k("\\maroonC","\\textcolor{##ed5fa6}{#1}");k("\\maroonD","\\textcolor{##ca337c}{#1}");k("\\maroonE","\\textcolor{##9e034e}{#1}");k("\\purpleA","\\textcolor{##ddd7ff}{#1}");k("\\purpleB","\\textcolor{##c6b9fc}{#1}");k("\\purpleC","\\textcolor{##aa87ff}{#1}");k("\\purpleD","\\textcolor{##7854ab}{#1}");k("\\purpleE","\\textcolor{##543b78}{#1}");k("\\mintA","\\textcolor{##f5f9e8}{#1}");k("\\mintB","\\textcolor{##edf2df}{#1}");k("\\mintC","\\textcolor{##e0e5cc}{#1}");k("\\grayA","\\textcolor{##f6f7f7}{#1}");k("\\grayB","\\textcolor{##f0f1f2}{#1}");k("\\grayC","\\textcolor{##e3e5e6}{#1}");k("\\grayD","\\textcolor{##d6d8da}{#1}");k("\\grayE","\\textcolor{##babec2}{#1}");k("\\grayF","\\textcolor{##888d93}{#1}");k("\\grayG","\\textcolor{##626569}{#1}");k("\\grayH","\\textcolor{##3b3e40}{#1}");k("\\grayI","\\textcolor{##21242c}{#1}");k("\\kaBlue","\\textcolor{##314453}{#1}");k("\\kaGreen","\\textcolor{##71B307}{#1}");var wO={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},H6=class{constructor(t,r,a){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new G6(ioe,r.macros),this.mode=a,this.stack=[]}feed(t){this.lexer=new fv(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,a,n;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:r,end:a}=this.consumeArg());return this.pushToken(new Gr("EOF",a.loc)),this.pushTokens(n),new Gr("",Lr.range(r,a))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],a=t&&t.length>0;a||this.consumeSpaces();var n=this.future(),o,i=0,s=0;do{if(o=this.popToken(),r.push(o),o.text==="{")++i;else if(o.text==="}"){if(--i,i===-1)throw new K("Extra }",o)}else if(o.text==="EOF")throw new K("Unexpected end of input in a macro argument, expected '"+(t&&a?t[s]:"}")+"'",o);if(t&&a)if((i===0||i===1&&t[s]==="{")&&o.text===t[s]){if(++s,s===t.length){r.splice(-s,s);break}}else s=0}while(i!==0||a);return n.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:o}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new K("The length of delimiters doesn't match the number of args!");for(var a=r[0],n=0;n<a.length;n++){var o=this.popToken();if(a[n]!==o.text)throw new K("Use of the macro doesn't match its definition",o)}}for(var i=[],s=0;s<t;s++)i.push(this.consumeArg(r&&r[s+1]).tokens);return i}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new K("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),a=r.text,n=r.noexpand?null:this._getExpansion(a);if(n==null||t&&n.unexpandable){if(t&&n==null&&a[0]==="\\"&&!this.isDefined(a))throw new K("Undefined control sequence: "+a);return this.pushToken(r),!1}this.countExpansion(1);var o=n.tokens,i=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){o=o.slice();for(var s=o.length-1;s>=0;--s){var l=o[s];if(l.text==="#"){if(s===0)throw new K("Incomplete placeholder at end of macro body",l);if(l=o[--s],l.text==="#")o.splice(s+1,1);else if(/^[1-9]$/.test(l.text))o.splice(s,2,...i[+l.text-1]);else throw new K("Not a valid argument number",l)}}}return this.pushTokens(o),o.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 Gr(t)]):void 0}expandTokens(t){var r=[],a=this.stack.length;for(this.pushTokens(t);this.stack.length>a;)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(a=>a.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var a=this.lexer.catcodes[t];if(a!=null&&a!==13)return}var n=typeof r=="function"?r(this):r;if(typeof n=="string"){var o=0;if(n.includes("#"))for(var i=n.replace(/##/g,"");i.includes("#"+(o+1));)++o;for(var s=new fv(n,this.settings),l=[],u=s.lex();u.text!=="EOF";)l.push(u),u=s.lex();l.reverse();var c={tokens:l,numArgs:o};return c}return n}isDefined(t){return this.macros.has(t)||Vo.hasOwnProperty(t)||ht.math.hasOwnProperty(t)||ht.text.hasOwnProperty(t)||wO.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Vo.hasOwnProperty(t)&&!Vo[t].primitive}},TN=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,rv=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"}),A6={"\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"}},$N={\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"},pv=class e{constructor(t,r){this.mode="math",this.gullet=new H6(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 K("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 Gr("}")),this.gullet.pushTokens(t);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,a}parseExpression(t,r){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(e.endOfExpression.has(n.text)||r&&n.text===r||t&&Vo[n.text]&&Vo[n.text].infix)break;var o=this.parseAtom(r);if(o){if(o.type==="internal")continue}else break;a.push(o)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(t){for(var r=-1,a,n=0;n<t.length;n++){var o=t[n];if(o.type==="infix"){if(r!==-1)throw new K("only one infix operator per group",o.token);r=n,a=o.replaceWith}}if(r!==-1&&a){var i,s,l=t.slice(0,r),u=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?i=l[0]:i={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var c;return a==="\\\\abovefrac"?c=this.callFunction(a,[i,t[r],s],[]):c=this.callFunction(a,[i,s],[]),[c]}else return t}handleSupSubscript(t){var r=this.fetch(),a=r.text;this.consume(),this.consumeSpaces();var n;do{var o;n=this.parseGroup(t)}while(((o=n)==null?void 0:o.type)==="internal");if(!n)throw new K("Expected group after '"+a+"'",r);return n}formatUnsupportedCmd(t){for(var r=[],a=0;a<t.length;a++)r.push({type:"textord",mode:"text",text:t[a]});var n={type:"text",mode:this.mode,body:r},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return o}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var a,n;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(r&&r.type==="op"){var i=o.text==="\\limits";r.limits=i,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=o.text==="\\limits");else throw new K("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(a)throw new K("Double superscript",o);a=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(n)throw new K("Double subscript",o);n=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(a)throw new K("Double superscript",o);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")),a={type:"ordgroup",mode:this.mode,body:l}}else if(rv[o.text]){var u=TN.test(o.text),c=[];for(c.push(new Gr(rv[o.text])),this.consume();;){var d=this.fetch().text;if(!rv[d]||TN.test(d)!==u)break;c.unshift(new Gr(rv[d])),this.consume()}var f=this.subparse(c);u?n={type:"ordgroup",mode:"math",body:f}:a={type:"ordgroup",mode:"math",body:f}}else break}return a||n?{type:"supsub",mode:this.mode,base:r,sup:a,sub:n}:r}parseFunction(t,r){var a=this.fetch(),n=a.text,o=Vo[n];if(!o)return null;if(this.consume(),r&&r!=="atom"&&!o.allowedInArgument)throw new K("Got function '"+n+"' with no arguments"+(r?" as "+r:""),a);if(this.mode==="text"&&!o.allowedInText)throw new K("Can't use function '"+n+"' in text mode",a);if(this.mode==="math"&&o.allowedInMath===!1)throw new K("Can't use function '"+n+"' in math mode",a);var{args:i,optArgs:s}=this.parseArguments(n,o);return this.callFunction(n,i,s,a,t)}callFunction(t,r,a,n,o){var i={funcName:t,parser:this,token:n,breakOnTokenText:o},s=Vo[t];if(s&&s.handler)return s.handler(i,r,a);throw new K("No function handler for "+t)}
vendor: 7,416 bytes, lines 522-523
522parseArguments(t,r){var a=r.numArgs+r.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var n=[],o=[],i=0;i<a;i++){var s=r.argTypes&&r.argTypes[i],l=i<r.numOptionalArgs;("primitive"in r&&r.primitive&&s==null||r.type==="sqrt"&&i===1&&o[0]==null)&&(s="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",s,l);if(l)o.push(u);else if(u!=null)n.push(u);else throw new K("Null argument, please report this as a bug")}return{args:n,optArgs:o}}parseGroupOfType(t,r,a){switch(r){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,r);case"hbox":{var n=this.parseArgumentGroup(a,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",a);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(a)throw new K("A primitive argument cannot be optional");var i=this.parseGroup(t);if(i==null)throw new K("Expected group as "+t,this.fetch());return i}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new K("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var a=this.gullet.scanArgument(r);if(a==null)return null;for(var n="",o;(o=this.fetch()).text!=="EOF";)n+=o.text,this.consume();return this.consume(),a.text=n,a}parseRegexGroup(t,r){for(var a=this.fetch(),n=a,o="",i;(i=this.fetch()).text!=="EOF"&&t.test(o+i.text);)n=i,o+=n.text,this.consume();if(o==="")throw new K("Invalid "+r+": '"+a.text+"'",a);return a.range(n,o)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!a)throw new K("Invalid color: '"+r.text+"'",r);var n=a[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(t){var r,a=!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",a=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!n)throw new K("Invalid size: '"+r.text+"'",r);var o={number:+(n[1]+n[2]),unit:n[3]};if(!LN(o))throw new K("Invalid unit: '"+o.unit+"'",r);return{type:"size",mode:this.mode,value:o,isBlank:a}}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 a=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(t,r){var a=this.gullet.scanArgument(t);if(a==null)return null;var n=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:a.loc,body:o};return r&&this.switchMode(n),i}parseGroup(t,r){var a=this.fetch(),n=a.text,o;if(n==="{"||n==="\\begingroup"){this.consume();var i=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,i),l=this.fetch();this.expect(i),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:Lr.range(a,l),body:s,semisimple:n==="\\begingroup"||void 0}}else if(o=this.parseFunction(r,t)||this.parseSymbol(),o==null&&n[0]==="\\"&&!wO.hasOwnProperty(n)){if(this.settings.throwOnError)throw new K("Undefined control sequence: "+n,a);o=this.formatUnsupportedCmd(n),this.consume()}return o}formLigatures(t){for(var r=t.length-1,a=0;a<r;++a){var n=t[a];if(n.type==="textord"){var o=n.text,i=t[a+1];if(!(!i||i.type!=="textord")){if(o==="-"&&i.text==="-"){var s=t[a+2];a+1<r&&s&&s.type==="textord"&&s.text==="-"?(t.splice(a,3,{type:"textord",mode:"text",loc:Lr.range(n,s),text:"---"}),r-=2):(t.splice(a,2,{type:"textord",mode:"text",loc:Lr.range(n,i),text:"--"}),r-=1)}(o==="'"||o==="`")&&i.text===o&&(t.splice(a,2,{type:"textord",mode:"text",loc:Lr.range(n,i),text:o+o}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var a=r.slice(5),n=a.charAt(0)==="*";if(n&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new K(`\\verb assertion failed -- 523 please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:n}}$N.hasOwnProperty(r[0])&&!ht[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=$N[r[0]]+r.slice(1));var o=aoe.exec(r);o&&(r=r.substring(0,o.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var i;if(ht[this.mode][r]){this.settings.strict&&this.mode==="math"&&z6.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var s=ht[this.mode][r].group,l=Lr.range(t),u;if(oae.hasOwnProperty(s)){var c=s;u={type:"atom",mode:this.mode,family:c,loc:l,text:r}}else u={type:s,mode:this.mode,loc:l,text:r};i=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(PN(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)),i={type:"textord",mode:"text",loc:Lr.range(t),text:r};else return null;if(this.consume(),o)for(var d=0;d<o[0].length;d++){var f=o[0][d];if(!A6[f])throw new K("Unknown accent ' "+f+"'",t);var p=A6[f][this.mode]||A6[f].text;if(!p)throw new K("Accent "+f+" unsupported in "+this.mode+" mode",t);i={type:"accent",mode:this.mode,loc:Lr.range(t),label:p,isStretchy:!1,isShifty:!0,base:i}}return i}};pv.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var s_=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new pv(t,r);delete a.gullet.macros.current["\\df@tag"];var n=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new K("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:a.subparse([new Gr("\\df@tag")])}]}return n},SO=function(t,r,a){r.textContent="";var n=l_(t,a).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."),SO=function(){throw new K("KaTeX doesn't work in quirks mode.")});var loe=function(t,r){var a=l_(t,r).toMarkup();return a},uoe=function(t,r){var a=new of(r);return s_(t,a)},IO=function(t,r,a){if(a.throwOnError||!(t instanceof K))throw t;var n=U(["katex-error"],[new mr(r)]);return n.setAttribute("title",t.toString()),n.setAttribute("style","color:"+a.errorColor),n},l_=function(t,r){var a=new of(r);try{var n=s_(t,a);return wae(n,t,a)}catch(o){return IO(o,t,a)}},coe=function(t,r){var a=new of(r);try{var n=s_(t,a);return Sae(n,t,a)}catch(o){return IO(o,t,a)}},doe="0.16.44",foe={Span:Go,Anchor:Hl,SymbolNode:mr,SvgNode:$n,PathNode:Xn,LineNode:lf}
523,u_={version:doe,render:SO,renderToString:loe,ParseError:K,SETTINGS_SCHEMA:E6,__parse:uoe,__renderToDomTree:l_,__renderToHTMLTree:coe,__setFontMetrics:nae,__defineSymbol:m,__defineFunction:ae,__defineMacro:k,__domTree:foe};var poe={},moe=[];function _v(e){let t=e||poe;return function(r,a){U_(r,"element",function(n,o){let i=Array.isArray(n.properties.className)?n.properties.className:moe,s=i.includes("language-math"),l=i.includes("math-display"),u=i.includes("math-inline"),c=l;if(!s&&!l&&!u)return;let d=o[o.length-1],f=n;if(n.tagName==="code"&&s&&d&&d.type==="element"&&d.tagName==="pre"&&(f=d,d=o[o.length-2],c=!0),!d)return;let p=v6(f,{whitespace:"pre"}),g;try{g=u_.renderToString(p,{...t,displayMode:c,throwOnError:!0})}catch(y){let I=y,S=I.name.toLowerCase();a.message("Could not render math with KaTeX",{ancestors:[...o,n],cause:I,place:n.position,ruleId:S,source:"rehype-katex"});try{g=u_.renderToString(p,{...t,displayMode:c,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:p}]}]}}typeof g=="string"&&(g=qz(g,{fragment:!0}).children);let w=d.children.indexOf(f);return d.children.splice(w,1,...g),F_})}}function c_(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:o},exit:{mathFlow:n,mathFlowFence:a,mathFlowFenceMeta:r,mathFlowValue:s,mathText:i,mathTextData:s}};function e(l){let u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function r(){let l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function a(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(l){let u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=u;let d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function o(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function i(l){let u=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=u,c.data.hChildren.push({type:"text",value:u})}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function d_(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),a.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:a}};function r(o,i,s,l){let u=o.value||"",c=s.createTracker(l),d="$".repeat(Math.max(K_(u,"$")+1,2)),f=s.enter("mathFlow"),p=c.move(d);if(o.meta){let g=s.enter("mathFlowMeta");p+=c.move(s.safe(o.meta,{after:` 525`,before:p,encode:["$"],...c.current()})),g()}return p+=c.move(` 526`),u&&(p+=c.move(u+` 527`)),p+=c.move(d),f(),p}function a(o,i,s){let l=o.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;let c="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let d=-1;for(;++d<s.unsafe.length;){let f=s.unsafe[d];if(!f.atBreak)continue;let p=s.compilePattern(f),g;for(;g=p.exec(l);){let w=g.index;l.codePointAt(w)===10&&l.codePointAt(w-1)===13&&w--,l=l.slice(0,w)+" "+l.slice(g.index+1)}}return c+l+c}function n(){return"$"}}var _O={tokenize:hoe,concrete:!0,name:"mathFlow"},kO={tokenize:goe,partial:!0};function hoe(e,t,r){let a=this,n=a.events[a.events.length-1],o=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return s;function s(S){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(S)}function l(S){return S===36?(e.consume(S),i++,l):i<2?r(S):(e.exit("mathFlowFenceSequence"),ru(e,u,"whitespace")(S))}function u(S){return S===null||na(S)?d(S):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(S))}function c(S){return S===null||na(S)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(S)):S===36?r(S):(e.consume(S),c)}function d(S){return e.exit("mathFlowFence"),a.interrupt?t(S):e.attempt(kO,f,y)(S)}function f(S){return e.attempt({tokenize:I,partial:!0},y,p)(S)}function p(S){return(o?ru(e,g,"linePrefix",o+1):g)(S)}function g(S){return S===null?y(S):na(S)?e.attempt(kO,f,y)(S):(e.enter("mathFlowValue"),w(S))}function w(S){return S===null||na(S)?(e.exit("mathFlowValue"),g(S)):(e.consume(S),w)}function y(S){return e.exit("mathFlow"),t(S)}function I(S,x,C){let _=0;return ru(S,P,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function P(A){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),D(A)}function D(A){return A===36?(_++,S.consume(A),D):_<i?C(A):(S.exit("mathFlowFenceSequence"),ru(S,N,"whitespace")(A))}function N(A){return A===null||na(A)?(S.exit("mathFlowFence"),x(A)):C(A)}}}function goe(e,t,r){let a=this;return n;function n(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)}function o(i){return a.parser.lazy[a.now().line]?r(i):t(i)}}function CO(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:a,resolve:voe,previous:yoe,name:"mathText"};function a(n,o,i){let s=this,l=0,u,c;return d;function d(y){return n.enter("mathText"),n.enter("mathTextSequence"),f(y)}function f(y){return y===36?(n.consume(y),l++,f):l<2&&!r?i(y):(n.exit("mathTextSequence"),p(y))}function p(y){return y===null?i(y):y===36?(c=n.enter("mathTextSequence"),u=0,w(y)):y===32?(n.enter("space"),n.consume(y),n.exit("space"),p):na(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),p):(n.enter("mathTextData"),g(y))}function g(y){return y===null||y===32||y===36||na(y)?(n.exit("mathTextData"),p(y)):(n.consume(y),g)}function w(y){return y===36?(n.consume(y),u++,w):u===l?(n.exit("mathTextSequence"),n.exit("mathText"),o(y)):(c.type="mathTextData",g(y))}}}function voe(e){let t=e.length-4,r=3,a,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)n===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(n=a):(a===t||e[a][1].type==="lineEnding")&&(e[n][1].type="mathTextData",a!==n+2&&(e[n][1].end=e[a-1][1].end,e.splice(n+2,a-n-2),t-=a-n-2,a=n+2),n=void 0);return e}function yoe(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function f_(e){return{flow:{36:_O},text:{36:CO(e)}}}var xoe={};function Cv(e){let t=this,r=e||xoe,a=t.data(),n=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),i=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);n.push(f_(r)),o.push(c_()),i.push(d_(r))}function boe(e={}){var t,r;let a=[Cv,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],n=[_v,{errorColor:(r=e.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:a,rehypePlugin:n,getStyles(){return"katex/dist/katex.min.css"}}}var TO=boe();var woe="11.14.0",Soe=`https://esm.sh/mermaid@${woe}`,Ioe={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},p_=null,m_=!1;function koe(){return p_||(p_=import(Soe)),p_}var $O={name:"mermaid",type:"diagram",language:"mermaid",getMermaid(e){let t={...Ioe,...e};return{initialize(r){Object.assign(t,r),m_=!1},async render(r,a){let o=(await koe()).default;return m_||(o.initialize(t),m_=!0),o.render(r,a)}}}};var qa=R(ee());var ff=R(j()),PO=({className:e,from:t,...r})=>(0,ff.jsx)("div",{className:se("group flex w-full max-w-[95%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...r}),LO=({children:e,className:t,...r})=>(0,ff.jsx)("div",{className:se("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 IAe=(0,qa.createContext)(null);var $oe={cjk:LR,code:Bz,math:TO,mermaid:$O},Tv=(0,qa.memo)(({className:e,...t})=>(0,ff.jsx)(Dv,{className:se("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),plugins:$oe,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);Tv.displayName="MessageResponse";var AO="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var h_=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=AO[r[e]&63];return t};var ke=R(ee());var zAe=R(ee());var $Ae=R(ee());var EO=R(j());var MO=R(j());var UAe=R(ee());var Poe=R(j());var VAe=R(ee());var pf=R(j());function RO({className:e,...t}){return(0,pf.jsx)("div",{"data-slot":"input-group",role:"group",className:se("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 Loe=yn("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 DO({className:e,align:t="inline-start",...r}){return(0,pf.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:se(Loe({align:t}),e),onClick:a=>{a.target.closest("button")||a.currentTarget.parentElement?.querySelector("input")?.focus()},...r})}var Aoe=yn("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 zO({className:e,type:t="button",variant:r="ghost",size:a="xs",...n}){return(0,pf.jsx)(Vt,{type:t,"data-size":a,variant:r,className:se(Aoe({size:a}),e),...n})}function NO({className:e,...t}){return(0,pf.jsx)(vm,{"data-slot":"input-group-control",className:se("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}var Ut=R(j()),Eoe=async e=>{try{let r=await(await fetch(e)).blob();return new Promise(a=>{let n=new FileReader;n.onloadend=()=>a(n.result),n.onerror=()=>a(null),n.readAsDataURL(r)})}catch{return null}};var Moe=(0,ke.createContext)(null),Roe=(0,ke.createContext)(null);var OO=()=>(0,ke.useContext)(Moe);var Doe=()=>(0,ke.useContext)(Roe);var FO=(0,ke.createContext)(null),zoe=()=>{let e=Doe(),r=(0,ke.useContext)(FO)??e;if(!r)throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return r},Noe=(0,ke.createContext)(null);var UO=({className:e,accept:t,multiple:r,globalDrop:a,syncHiddenInput:n,maxFiles:o,maxFileSize:i,onError:s,onSubmit:l,children:u,...c})=>{let d=OO(),f=!!d,p=(0,ke.useRef)(null),g=(0,ke.useRef)(null),[w,y]=(0,ke.useState)([]),I=f?d.attachments.files:w,[S,x]=(0,ke.useState)([]),C=(0,ke.useRef)(I);(0,ke.useEffect)(()=>{C.current=I},[I]);let _=(0,ke.useCallback)(()=>{p.current?.click()},[]),P=(0,ke.useCallback)(be=>!t||t.trim()===""?!0:t.split(",").map(ze=>ze.trim()).filter(Boolean).some(ze=>{if(ze.endsWith("/*")){let st=ze.slice(0,-1);return be.type.startsWith(st)}return be.type===ze}),[t]),D=(0,ke.useCallback)(be=>{let Pe=[...be],ze=Pe.filter(Kt=>P(Kt));if(Pe.length&&ze.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let st=Kt=>i?Kt.size<=i:!0,gr=ze.filter(st);if(ze.length>0&&gr.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}y(Kt=>{let Bt=typeof o=="number"?Math.max(0,o-Kt.length):void 0,Ar=typeof Bt=="number"?gr.slice(0,Bt):gr;typeof Bt=="number"&&gr.length>Bt&&s?.({code:"max_files",message:"Too many files. Some were not added."});let ra=[];for(let Hi of Ar)ra.push({filename:Hi.name,id:h_(),mediaType:Hi.type,type:"file",url:URL.createObjectURL(Hi)});return[...Kt,...ra]})},[P,o,i,s]),N=(0,ke.useCallback)(be=>y(Pe=>{let ze=Pe.find(st=>st.id===be);return ze?.url&&URL.revokeObjectURL(ze.url),Pe.filter(st=>st.id!==be)}),[]),A=(0,ke.useCallback)(be=>{let Pe=[...be],ze=Pe.filter(ra=>P(ra));if(Pe.length&&ze.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let st=ra=>i?ra.size<=i:!0,gr=ze.filter(st);if(ze.length>0&&gr.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}let Kt=I.length,Bt=typeof o=="number"?Math.max(0,o-Kt):void 0,Ar=typeof Bt=="number"?gr.slice(0,Bt):gr;typeof Bt=="number"&&gr.length>Bt&&s?.({code:"max_files",message:"Too many files. Some were not added."}),Ar.length>0&&d?.attachments.add(Ar)},[P,i,o,s,I.length,d]),O=(0,ke.useCallback)(()=>f?d?.attachments.clear():y(be=>{for(let Pe of be)Pe.url&&URL.revokeObjectURL(Pe.url);return[]}),[f,d]),oe=(0,ke.useCallback)(()=>x([]),[]),Y=f?A:D,He=f?d.attachments.remove:N,pe=f?d.attachments.openFileDialog:_,Me=(0,ke.useCallback)(()=>{O(),oe()},[O,oe]);(0,ke.useEffect)(()=>{f&&d.__registerFileInput(p,()=>p.current?.click())},[f,d]),(0,ke.useEffect)(()=>{n&&p.current&&I.length===0&&(p.current.value="")},[I,n]),(0,ke.useEffect)(()=>{let be=g.current;if(!be||a)return;let Pe=st=>{st.dataTransfer?.types?.includes("Files")&&st.preventDefault()},ze=st=>{st.dataTransfer?.types?.includes("Files")&&st.preventDefault(),st.dataTransfer?.files&&st.dataTransfer.files.length>0&&Y(st.dataTransfer.files)};return be.addEventListener("dragover",Pe),be.addEventListener("drop",ze),()=>{be.removeEventListener("dragover",Pe),be.removeEventListener("drop",ze)}},[Y,a]),(0,ke.useEffect)(()=>
527{if(!a)return;let be=ze=>{ze.dataTransfer?.types?.includes("Files")&&ze.preventDefault()},Pe=ze=>{ze.dataTransfer?.types?.includes("Files")&&ze.preventDefault(),ze.dataTransfer?.files&&ze.dataTransfer.files.length>0&&Y(ze.dataTransfer.files)};return document.addEventListener("dragover",be),document.addEventListener("drop",Pe),()=>{document.removeEventListener("dragover",be),document.removeEventListener("drop",Pe)}},[Y,a]),(0,ke.useEffect)(()=>()=>{if(!f)for(let be of C.current)be.url&&URL.revokeObjectURL(be.url)},[f]);let Be=(0,ke.useCallback)(be=>{let Pe=be.currentTarget;Pe.files&&Y(Pe.files),Pe.value=""},[Y]),qt=(0,ke.useMemo)(()=>({add:Y,clear:O,fileInputRef:p,files:I.map(be=>({...be,id:be.id})),openFileDialog:pe,remove:He}),[I,Y,He,O,pe]),je=(0,ke.useMemo)(()=>({add:be=>{let Pe=Array.isArray(be)?be:[be];x(ze=>[...ze,...Pe.map(st=>({...st,id:h_()}))])},clear:oe,remove:be=>{x(Pe=>Pe.filter(ze=>ze.id!==be))},sources:S}),[S,oe]),ft=(0,ke.useCallback)(async be=>{be.preventDefault();let Pe=be.currentTarget,ze=f?d.textInput.value:new FormData(Pe).get("message")||"";f||Pe.reset();try{let st=await Promise.all(I.map(async({id:Kt,...Bt})=>{if(Bt.url?.startsWith("blob:")){let Ar=await Eoe(Bt.url);return{...Bt,url:Ar??Bt.url}}return Bt})),gr=l({files:st,text:ze},be);if(gr instanceof Promise)try{await gr,Me(),f&&d.textInput.clear()}catch{}else Me(),f&&d.textInput.clear()}catch{}},[f,d,I,l,Me]),Ct=(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:r,onChange:Be,ref:p,title:"Upload files",type:"file"}),(0,Ut.jsx)("form",{className:se("w-full",e),onSubmit:ft,ref:g,...c,children:(0,Ut.jsx)(RO,{className:"overflow-hidden",children:u})})]}),tt=(0,Ut.jsx)(Noe.Provider,{value:je,children:Ct});return(0,Ut.jsx)(FO.Provider,{value:qt,children:tt})},BO=({className:e,...t})=>(0,Ut.jsx)("div",{className:se("contents",e),...t}),jO=({onChange:e,onKeyDown:t,className:r,placeholder:a="What would you like to know?",...n})=>{let o=OO(),i=zoe(),[s,l]=(0,ke.useState)(!1),u=(0,ke.useCallback)(g=>{if(t?.(g),!g.defaultPrevented){if(g.key==="Enter"){if(s||g.nativeEvent.isComposing||g.shiftKey)return;g.preventDefault();let{form:w}=g.currentTarget;if(w?.querySelector('button[type="submit"]')?.disabled)return;w?.requestSubmit()}if(g.key==="Backspace"&&g.currentTarget.value===""&&i.files.length>0){g.preventDefault();let w=i.files.at(-1);w&&i.remove(w.id)}}},[t,s,i]),c=(0,ke.useCallback)(g=>{let w=g.clipboardData?.items;if(!w)return;let y=[];for(let I of w)if(I.kind==="file"){let S=I.getAsFile();S&&y.push(S)}y.length>0&&(g.preventDefault(),i.add(y))},[i]),d=(0,ke.useCallback)(()=>l(!1),[]),f=(0,ke.useCallback)(()=>l(!0),[]),p=o?{onChange:g=>{o.textInput.setInput(g.currentTarget.value),e?.(g)},value:o.textInput.value}:{onChange:e};return(0,Ut.jsx)(NO,{className:se("field-sizing-content max-h-48 min-h-16 resize-y",r),name:"message",onCompositionEnd:d,onCompositionStart:f,onKeyDown:u,onPaste:c,placeholder:a,...n,...p})};var VO=({className:e,...t})=>(0,Ut.jsx)(DO,{align:"block-end",className:se("justify-between gap-1",e),...t}),ZO=({className:e,...t})=>(0,Ut.jsx)("div",{className:se("flex min-w-0 items-center gap-1",e),...t});var qO=({className:e,variant:t="default",size:r="icon-sm",status:a,onStop:n,onClick:o,children:i,...s})=>{let l=a==="submitted"||a==="streaming",u=(0,Ut.jsx)(iu,{className:"size-4"});a==="submitted"?u=(0,Ut.jsx)(hx,{}):a==="streaming"?u=(0,Ut.jsx)(fu,{className:"size-4"}):a==="error"&&(u=(0,Ut.jsx)(Yo,{className:"size-4"}));let c=(0,ke.useCallback)(d=>{if(l&&n){d.preventDefault(),n();return}o?.(d)},[l,n,o]);return(0,Ut.jsx)(zO,{"aria-label":l?"Stop":"Submit",className:se(e),onClick:c,size:r,type:l&&n?"button":"submit",variant:t,...s,children:i??u})};var GO=R(ee()),Yl=R(j()),HO=({className:e,children:t,...r})=>(0,Yl.jsxs)(mx,{className:"w-full overflow-x-auto whitespace-nowrap",...r,children:[(0,Yl.jsx)("div",{className:se("flex w-max flex-nowrap items-center gap-2",e),children:t}),(0,Yl.jsx)(hm,{className:"hidden",orientation:"horizontal"})]}),WO=({suggestion:e,onClick:t,className:r,variant:a="outline",size:n="sm",children:o,...i})=>{let s=(0,GO.useCallback)(()=>{t?.(e)},[t,e]);return(0,Yl.jsx)(Vt,{className:se("cursor-pointer rounded-full px-4",r),onClick:s,size:n,type:"button",variant:a,...i,children:o||e})};var Ge=R(j()),JO=["What can you help me with?","Give me a quick overview","Summarize what I have here","What should I look at first?"];function Ooe(e){return e.parts.filter(t=>t.type==="text").map(t=>t.text).join("")}function Foe(e){return e.parts.some(t=>Cn(t))}var Uoe={"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 g_({messages:e,onSend:t,busy:r=!1,status:a,onStop:n,onApprove:o,errorMessage:i,suggestions:s=JO,title:l="Assistant",placeholder:u="Ask me anything\u2026",emptyTitle:c="How can I help?",emptyDescription:d="Ask a question or pick a starter below.",className:f}){let p=e.length===0,g=a??(r?"submitted":void 0),w=y=>{let I=y.text.trim();if(!(!I||r))return t(I)};return(0,Ge.jsxs)(ma,{className:se("bg-card text-card-foreground flex h-full min-h-0 flex-col overflow-hidden",f),children:[(0,Ge.jsxs)("div",{className:"flex items-center gap-2 border-b px-4 py-3",children:[(0,Ge.jsx)(Kr,{className:"text-muted-foreground size-4","aria-hidden":!0}),(0,Ge.jsx)("span",{className:"text-foreground text-sm font-semibold",children:l})]}),(0,Ge.jsxs)(lR,{children:[(0,Ge.jsx)(uR,{children:p?(0,Ge.jsx)(cR,{title:c,description:d,icon:(0,Ge.jsx)(Kr,{className:"size-6","aria-hidden":!0})}):e.map(y=>(0,Ge.jsx)(PO,{from:y.role,children:(0,Ge.jsx)(LO,{children:Foe(y)?y.parts.map((I,S)=>{if(I.type==="text")return(0,Ge.jsx)(Tv,{children:I.text},S);if(Cn(I)){let x=Uoe[I.state];return x==null?null:(0,Ge.jsxs)("div",{className:"text-muted-foreground my-1 flex flex-wrap items-center gap-2 text-xs",children:[(0,Ge.jsx)("span",{className:"italic",children:x}),I.state==="approval-requested"&&I.approval!=null&&o!=null?(0,Ge.jsxs)("span",{className:"flex gap-1.5",children:[(0,Ge.jsx)(Vt,{type:"button",size:"sm",onClick:()=>o(I.approval.id,!0),children:"Approve"}),(0,Ge.jsx)(Vt,{type:"button",size:"sm",variant:"outline",onClick:()=>o(I.approval.id,!1),children:"Deny"})]}):null]},S)}return null}):(0,Ge.jsx)(Tv,{children:Ooe(y)})})},y.id))}),(0,Ge.jsx)(dR,{})]}),i!=null&&i!==""?(0,Ge.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",role:"alert",children:i}):null,s.length>0?(0,Ge.jsx)("div",{className:"px-4 pb-2",children:(0,Ge.jsx)(HO,{children:s.map(y=>(0,Ge.jsx)(WO,{suggestion:y,onClick:t,disabled:r},y))})}):null,(0,Ge.jsx)("div",{className:"p-4 pt-0",children:(0,Ge.jsxs)(UO,{onSubmit:w,children:[(0,Ge.jsx)(BO,{children:(0,Ge.jsx)(jO,{placeholder:u,disabled:r})}),(0,Ge.jsxs)(VO,{children:[(0,Ge.jsx)(ZO,{}),(0,Ge.jsx)(qO,{status:g,onStop:n})]})]})})]})}var pn=R(ee(),1);var QO=R(XO(),1);var vf=R(ee(),1);var Av=R(ee(),1);var YO=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},ct=(e,t,r)=>(YO(e,t,"read from private field"),r?r.call(e):t.get(e)),ta=(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)},Ko=(e,t,r,a)=>(YO(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r);function joe(e,t){return t!=null?(0,QO.default)(e,t):e}var fn,$v,Pv,mf,hf,gf,Ql,v_,y_,Voe=class{constructor(e=[]){ta(this,fn,void 0),ta(this,$v,"ready"),ta(this,Pv,void 0),ta(this,mf,new Set),ta(this,hf,new Set),ta(this,gf,new Set),this.pushMessage=t=>{Ko(this,fn,ct(this,fn).concat(t)),ct(this,Ql).call(this)},this.popMessage=()=>{Ko(this,fn,ct(this,fn).slice(0,-1)),ct(this,Ql).call(this)},this.replaceMessage=(t,r)=>{Ko(this,fn,[...ct(this,fn).slice(0,t),this.snapshot(r),...ct(this,fn).slice(t+1)]),ct(this,Ql).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,r)=>{let a=r?joe(t,r):t;return ct(this,mf).add(a),()=>{ct(this,mf).delete(a)}},this["~registerStatusCallback"]=t=>(ct(this,hf).add(t),()=>{ct(this,hf).delete(t)}),this["~registerErrorCallback"]=t=>(ct(this,gf).add(t),()=>{ct(this,gf).delete(t)}),ta(this,Ql,()=>{ct(this,mf).forEach(t=>t())}),ta(this,v_,()=>{ct(this,hf).forEach(t=>t())}),ta(this,y_,()=>{ct(this,gf).forEach(t=>t())}),Ko(this,fn,e)}get status(){return ct(this,$v)}set status(e){Ko(this,$v,e),ct(this,v_).call(this)}get error(){return ct(this,Pv)}set error(e){Ko(this,Pv,e),ct(this,y_).call(this)}get messages(){return ct(this,fn)}set messages(e){Ko(this,fn,[...e]),ct(this,Ql).call(this)}};fn=new WeakMap;$v=new WeakMap;Pv=new WeakMap;mf=new WeakMap;hf=new WeakMap;gf=new WeakMap;Ql=new WeakMap;v_=new WeakMap;y_=new WeakMap;
527var eu,Lv=class extends tR{constructor({messages:e,...t}){let r=new Voe(e);super({...t,state:r}),ta(this,eu,void 0),this["~registerMessagesCallback"]=(a,n)=>ct(this,eu)["~registerMessagesCallback"](a,n),this["~registerStatusCallback"]=a=>ct(this,eu)["~registerStatusCallback"](a),this["~registerErrorCallback"]=a=>ct(this,eu)["~registerErrorCallback"](a),Ko(this,eu,r)}};eu=new WeakMap;function eF({experimental_throttle:e,resume:t=!1,...r}={}){let a=(0,pn.useRef)("chat"in r?{}:{onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});"chat"in r||(a.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});let n={...r,onToolCall:f=>{var p,g;return(g=(p=a.current).onToolCall)==null?void 0:g.call(p,f)},onData:f=>{var p,g;return(g=(p=a.current).onData)==null?void 0:g.call(p,f)},onFinish:f=>{var p,g;return(g=(p=a.current).onFinish)==null?void 0:g.call(p,f)},onError:f=>{var p,g;return(g=(p=a.current).onError)==null?void 0:g.call(p,f)},sendAutomaticallyWhen:f=>{var p,g,w;return(w=(g=(p=a.current).sendAutomaticallyWhen)==null?void 0:g.call(p,f))!=null?w:!1}},o=(0,pn.useRef)("chat"in r?r.chat:new Lv(n));("chat"in r&&r.chat!==o.current||"id"in r&&o.current.id!==r.id)&&(o.current="chat"in r?r.chat:new Lv(n));let s=(0,pn.useCallback)(f=>o.current["~registerMessagesCallback"](f,e),[e,o.current.id]),l=(0,pn.useSyncExternalStore)(s,()=>o.current.messages,()=>o.current.messages),u=(0,pn.useSyncExternalStore)(o.current["~registerStatusCallback"],()=>o.current.status,()=>o.current.status),c=(0,pn.useSyncExternalStore)(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),d=(0,pn.useCallback)(f=>{typeof f=="function"&&(f=f(o.current.messages)),o.current.messages=f},[o]);return(0,pn.useEffect)(()=>{t&&o.current.resumeStream()},[t,o]),{id:o.current.id,messages:l,setMessages:d,sendMessage:o.current.sendMessage,regenerate:o.current.regenerate,clearError:o.current.clearError,stop:o.current.stop,error:c,resumeStream:o.current.resumeStream,status:u,addToolResult:o.current.addToolOutput,addToolOutput:o.current.addToolOutput,addToolApprovalResponse:o.current.addToolApprovalResponse}}var Ha=R(ee());function yf(e){if(!tu(e))throw new Error("Parameter was not an error")}function tu(e){return!!e&&typeof e=="object"&&Zoe(e)==="[object Error]"||e instanceof Error}function Zoe(e){return Object.prototype.toString.call(e)}var qoe="Layerr",Goe=qoe;function x_(){return Goe}function tF(e){let t,r="";if(e.length===0)t={};else if(tu(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 Ga=class e extends Error{constructor(t,r){let a=[...arguments],{options:n,shortMessage:o}=tF(a),i=o;if(n.cause&&(i=`${i}: ${n.cause.message}`),super(i),this.message=i,n.name&&typeof n.name=="string"?this.name=n.name:this.name=x_(),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 yf(t),t._cause&&tu(t._cause)?t._cause:null}static fullStack(t){yf(t);let r=e.cause(t);return r?`${t.stack} 528caused by: ${e.fullStack(r)}`:t.stack??""}static info(t){yf(t);let r={},a=e.cause(t);return a&&Object.assign(r,e.info(a)),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 nF="0123456789ABCDEFGHJKMNPQRSTVWXYZ",bf=32,rF=0xffffffffffff,Hoe=10,Woe=16,xf=Object.freeze({source:"ulid"});function Joe(e){let t=e||Koe(),r=t&&(t.crypto||t.msCrypto)||null;if(typeof r?.getRandomValues=="function")return()=>{let a=new Uint8Array(1);return r.getRandomValues(a),a[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;throw new Ga({info:{code:"PRNG_DETECT",...xf}},"Failed to find a reliable PRNG")}function Koe(){return Qoe()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function Xoe(e,t){let r="";for(;e>0;e--)r=eie(t)+r;return r}function Yoe(e,t){if(isNaN(e))throw new Ga({info:{code:"ENC_TIME_NAN",...xf}},`Time must be a number: ${e}`);if(e>rF)throw new Ga({info:{code:"ENC_TIME_SIZE_EXCEED",...xf}},`Cannot encode a time larger than ${rF}: ${e}`);if(e<0)throw new Ga({info:{code:"ENC_TIME_NEG",...xf}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Ga({info:{code:"ENC_TIME_TYPE",...xf}},`Time must be an integer: ${e}`);let r,a="";for(let n=t;n>0;n--)r=e%bf,a=nF.charAt(r)+a,e=(e-r)/bf;return a}function Qoe(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function eie(e){let t=Math.floor(e()*bf);return t===bf&&(t=bf-1),nF.charAt(t)}function Ev(e,t){let r=t||Joe(),a=isNaN(e)?Date.now():e;return Yoe(a,Hoe)+Xoe(Woe,r)}function tie(e){return e==null||e.trim().length===0}async function b_(e,t){if(tie(e))throw new Error("Agent ID cannot be empty");let a=`${t?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations`,n=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"}}),o=n.headers.get("content-type")||"",i=await n.text().catch(()=>"");
528if(!n.ok)throw new Error(`Failed to create conversation: ${n.status} ${i||"Unknown error"}`);if(!o.includes("application/json"))throw new Error(`Invalid response format: expected JSON, got ${o}. Response: ${i.substring(0,100)}`);try{return JSON.parse(i)}catch(s){throw new Error(`Failed to parse JSON response: ${s instanceof Error?s.message:"Unknown error"}. Response: ${i.substring(0,200)}`)}}function rie(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 o=n[n.length-1];if(o!=null&&Cn(o)&&(o.state==="output-available"||o.state==="output-error"))return{history:e.slice(0,t),messages:[r]}}}return{history:e.slice(0,t),messages:[r]}}var nie=6;function w_(e,t,r){let n=`${r?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations/${encodeURIComponent(t)}/chat`,o=new Lv({messages:[],transport:new mk({api:n,prepareSendMessagesRequest:i=>{let{history:s,messages:l}=rie(i.messages),u=Math.max(0,nie-l.length),c=u===0?[]:s.slice(-u);return{body:{messages:l,history:c}}}}),id:t,generateId:Ev,sendAutomaticallyWhen:i=>!(!(nR(i)||rR(i))||o.error!=null)});return o}var dt=R(j()),aie={1:"bg-chart-1",2:"bg-chart-2",3:"bg-chart-3",4:"bg-chart-4",5:"bg-chart-5"};function S_({agentId:e,publicAgentId:t,title:r="Assistant",accent:a,suggestions:n,placeholder:o,defaultOpen:i=!1,className:s}){let[l,u]=(0,Ha.useState)(i),[c,d]=(0,Ha.useState)(null),[f,p]=(0,Ha.useState)(!1),[g,w]=(0,Ha.useState)(!1),y=e!=null&&e!=="",I=t!=null&&t!==""?`https://www.taskade.com/a/${encodeURIComponent(t)}`:null,S=(0,Ha.useCallback)(async()=>{if(!(!y||c!=null||g)){w(!0);try{let{conversationId:C}=await b_(e);d(w_(e,C)),p(!1)}catch{p(!0)}finally{w(!1)}}},[y,c,g,e]);if((0,Ha.useEffect)(()=>{l&&y&&c==null&&!f&&!g&&S()},[l,y,c,f,g,S]),!y&&I==null)return null;let x=()=>{u(!0),S()};return(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(Hy,{children:l?(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)("div",{className:"bg-foreground
528/20 fixed inset-0 z-40 sm:hidden",onClick:()=>u(!1),"aria-hidden":!0}),(0,dt.jsx)(rx.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:16},className:se("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,dt.jsxs)("div",{className:"bg-card text-card-foreground flex h-full flex-col overflow-hidden border shadow-lg sm:rounded-xl",children:[(0,dt.jsxs)("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[(0,dt.jsx)("span",{className:"text-foreground text-sm font-semibold",children:r}),(0,dt.jsx)(Vt,{variant:"ghost",size:"icon",onClick:()=>u(!1),"aria-label":"Close chat",children:(0,dt.jsx)(Yo,{className:"size-4","aria-hidden":!0})})]}),y&&c!=null?(0,dt.jsx)(oie,{chat:c,title:r,suggestions:n,placeholder:o}):y&&f?(0,dt.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center",children:[(0,dt.jsx)("p",{className:"text-muted-foreground text-sm",children:"The assistant is warming up - try again."}),(0,dt.jsx)(Vt,{onClick:()=>{S()},disabled:g,children:"Try again"}),I!=null?(0,dt.jsx)("a",{href:I,target:"_blank",rel:"noreferrer",className:"text-muted-foreground text-xs underline",children:"Open hosted chat"}):null]}):y?(0,dt.jsx)("div",{className:"text-muted-foreground flex flex-1 items-center justify-center text-sm",children:"Connecting..."}):I!=null?(0,dt.jsx)("iframe",{src:I,title:r,allow:"clipboard-read; clipboard-write",className:"h-full w-full flex-1 border-0"}):null]})})]}):null}),l?null:(0,dt.jsx)(Vt,{onClick:x,"aria-label":`Open ${r}`,className:se("fixed bottom-6 right-6 z-50 size-14 rounded-full shadow-lg",a!=null?aie[a]:"bg-primary text-primary-foreground"),children:(0,dt.jsx)(uu,{className:"size-6","aria-hidden":!0})})]})}function oie({chat:e,title:t,suggestions:r,placeholder:a}){let{messages:n,status:o,stop:i,error:s,addToolApprovalResponse:l}=eF({chat:e,id:e.id});return(0,dt.jsx)(g_,{messages:n,onSend:async d=>{try{await e.sendMessage({id:Ev(),role:"user",parts:[{type:"text",text:d}]})}catch{}},busy:o==="submitted"||o==="streaming",status:o,onStop:i,errorMessage:s!=null?"Something went wrong - please try again.":void 0,onApprove:(d,f)=>l({id:d,approved:f}),title:t,suggestions:r,placeholder:a,className:"rounded-none border-0"})}var wf=R(ee());var xMe=R(ee());var aF=R(j());var SMe=R(ee());var iie=R(j());var oF=R(j());var I_=R(j());var sRe=R(ee());var JMe=R(ee());var sie=R(j());var YMe=R(ee());var lie=R(j());var iF=R(j());function k_(e){return e==null||e.trim().length===0}var uie=new Set([429,502,503,504]),cie=3,sF=300,dF=4e3,lF=3e4;function uF(e){return new Promise(t=>setTimeout(t,e))}function cF(e){return Math.min(sF*2**(e-1),dF)+Math.random()*sF}function die(e){let t=e.headers.get("retry-after")?.trim();if(t==null||t.length===0)return null;if(/^\d+$/.test(t))return Number.parseInt(t,10)*1e3;let r=Date.parse(t);return Number.isNaN(r)?null:Math.max(0,r-Date.now())}async function __(e,t,r){let n=`${r?.baseUrl??""}/api/taskade${e}`,o=(t.method??"GET").toUpperCase(),i=o==="GET"?cie:1;for(let s=1;;s++){let l=s<i,u=typeof FormData<"u"&&t.body instanceof FormData,c;try{c=await fetch(n,{...t,headers:{...u?{}:{"Content-Type":"application/json"},...t.headers},signal:t.signal??AbortSignal.timeout(lF)})}catch(p){if(p instanceof Error&&(p.name==="TimeoutError"||p.name==="AbortError"))throw t.signal!=null&&p.name==="AbortError"?p:new Error(`Taskade gateway request timed out: ${o} ${e} gave no response within ${lF/1e3}s`,{cause:p});if(l){await uF(cF(s));continue}throw p}if(!c.ok){if(l&&uie.has(c.status)){let g=die(c);if(g==null||g<=dF){await uF(g??cF(s));continue}}let p=await c.text().catch(()=>"");throw new Error(`Taskade gateway request failed: ${c.status} ${p||"Unknown error"}`)}let d=c.headers.get("content-type")||"",f=await c.text().catch(()=>"");if(!d.includes("application/json"))throw new Error(`Invalid response format: expected JSON, got ${d}. Response: ${f.substring(0,100)}`);try{return JSON.parse(f)}catch(p){throw new Error(`Failed to parse JSON response: ${p instanceof Error?p.message:"Unknown error"}. Response: ${f.substring(0,200)}`,{cause:p})}}}async function C_(e,t){if(k_(e))throw new Error("Project ID cannot be empty");return(await __(`/projects/${encodeURIComponent(e)}/nodes`,{method:"GET"},t)).payload?.nodes??[]}async function T_(e,t,r){if(k_(e))throw new Error("Project ID cannot be empty");await __(`/projects/${encodeURIComponent(e)}/nodes`,{method:"POST",body:JSON.stringify(t)},r)}function Gi(e,...t){for(let r of t){let a=e.fieldValues[r];
528if(a!=null)return typeof a=="string"?a:String(a)}return null}function Xo(e,...t){for(let a of t){let n=Gi(e,a);if(n!=null&&n.trim().length>0)return n}let r=e.content;return r!=null&&r.trim().length>0?r:null}var q=R(j()),fie="RcUxPyvTgHgpVxmW",pie="W1KRL61ai1wSkCsJ",mie="01KZA8ZPMTH46JJZQY8ZPRQN67",hie="01KZA8ZPMYHJNWPHY6024DHBC8",fF=["Kein Geld (0\u20AC)","Wenig Geld","Viel Ausgaben / G\xF6nnen!"],pF=["\u{1F332} Naturwandern","\u26A1 Action","\u2615 Ruhiges Treffen","\u2728 Romantisch","\u{1F3DB}\uFE0F Sehensw\xFCrdigkeiten"],gie=["Zu Fu\xDF","\xD6PNV","Fahrrad","Auto"];function vie(){return(0,q.jsxs)("div",{className:"relative flex h-11 w-11 items-center justify-center rounded-2xl bg-[#0A0A0A] shadow-[0_0_24px_rgba(255,42,95,0.25)]",children:[(0,q.jsx)(lu,{className:"h-6 w-6 fill-[#FF2A5F] text-[#FF2A5F]"}),(0,q.jsx)(Kr,{className:"absolute right-1 top-1 h-3 w-3 text-white"})]})}function P_(e){try{return encodeURIComponent(e)}catch{return""}}function $_(e,t){let r=P_(t);switch(e){case"GOOGLE_MAPS":return`https://www.google.com/maps/search/?api=1&query=${r}`;case"KOMOOT":return`https://www.komoot.de/discover?search_query=${r}`;case"TRIPADVISOR":return`https://www.tripadvisor.de/Search?q=${r}`;case"SAUERLAND_TOURISMUS":return`https://www.sauerland.com/de/suche?q=${r}`;default:return`https://www.google.com/search?q=${r}`}}function yie(){let{theme:e,setTheme:t}=z_(),[r,a]=(0,Jr.useState)("L\xFCdenscheid"),[n,o]=(0,Jr.useState)(fF[0]),[i,s]=(0,Jr.useState)(pF[0]),[l,u]=(0,Jr.useState)(10),[c,d]=(0,Jr.useState)("\xD6PNV"),[f,p]=(0,Jr.useState)([]),[g,w]=(0,Jr.useState)([]),[y,I]=(0,Jr.useState)(null),[S,x]=(0,Jr.useState)(!1),[C,_]=(0,Jr.useState)("");(0,Jr.useEffect)(()=>{document.title="Xel Date Agent \u{1F5A4}";try{w(JSON.parse(localStorage.getItem("xel-date-agent:saved-plans")??"[]"))}catch{w([])}C_(fie).then(p).catch(()=>p([]))},[]);let P=()=>{let A=f.slice(0,6),O=A.map(qt=>Xo(qt,"Name")??"Regionaler Tipp").filter(Boolean),oe=O[0]??"ein regionaler Waldweg",Y=O[1]??"einen passenden Aussichtspunkt",He=`Recherche im Umkreis von ${l} km rund um ${r}.`,pe=c==="\xD6PNV"?"\xD6PNV: Start und Ziel in DB Navigator oder MVG suchen, aktuelle Abfahrten, Linien, Baustellen und den letzten R\xFCckweg vor Abfahrt pr\xFCfen.":`${c}: Startpunkt und R\xFCckweg vor Abfahrt festlegen.`,Me=[`1. Treffpunkt: ${r}. Pr\xFCft Wetter, Schuhe und die \xD6ffnung der optionalen Station.`,`2. Anreise: ${pe}`,`3. Erste Etappe: Startet am ${oe} und geht zun\xE4chst 30 bis 45 Minuten ohne Handy.`,`4. Kombi-Aktivit\xE4t: Macht danach an ${Y} ein kleines Xel-Spiel: Jede Person findet ein Motiv und stellt eine pers\xF6nliche Frage dazu.`,"5. Pause: Packt bei 0\u20AC Wasser und Snack ein, sonst plant eine optionale Einkehr erst nach dem kostenlosen Teil.","6. Abschluss: Vergleicht eure Motive, beantwortet die Frage und plant den R\xFCckweg mit derselben Mobilit\xE4tsart.","7. Regenplan: Ersetzt den Weg durch Ph\xE4nomenta, Kulturhaus, Stadtb\xFCcherei oder einen anderen wetterfesten Treffpunkt aus der Wissensbasis."],Be=A.map((qt,je)=>`${je+1}. ${Xo(qt,"Name")??"Regionaler Tipp"}: ${Gi(qt,"Details")??"Gemeinsam entdecken."}`).join(" | ");I({id:crypto.randomUUID(),title:`${i.replace(/^\S+\s/,"")} in ${r}`,location:r,radius:l,budget:n,vibe:i,mobility:c,steps:Me,plan:`${He} Kombiniert ${oe} mit einer zweiten Aktivit\xE4t an ${Y}. ${Be}`}),_("Euer Schritt-f\xFCr-Schritt-Plan ist bereit.")},D=async()=>{if(!(!y||S)){x(!0);try{await T_(pie,{Titel:y.title,Ort:y.location,Budget:y.budget,Vibe:y.vibe,Plan:y.plan});let A=[y,...g].slice(0,12);w(A),localStorage.setItem("xel-date-agent:saved-plans",JSON.stringify(A)),_("Gespeichert. Eine Best\xE4tigung geht an deine Workspace-Adresse.")}catch{_("Speichern war gerade nicht m\xF6glich. Bitte versuche es erneut.")}finally{x(!1)}}},N=y?`https://www.google.com/maps/search/?api=1&query=${P_(`${y.title} ${y.location}`)}`:"#";return(0,q.jsxs)("main",{className:"min-h-screen bg-[#0A0A0A] text-white",children:[(0,q.jsxs)("div",{className:"mx-auto w-full max-w-6xl px-5 pb-20 pt-5 sm:px-8 lg:px-10",children:[(0,q.jsxs)("header",{className:"flex items-center justify-between border-b border-white/10 pb-5",children:[(0,q.jsxs)("div",{className:"flex items-center gap-3",children:[(0,q.jsx)(vie,{}),(0,q.jsxs)("div",{children:[(0,q.jsx)("p",{className:"text-xs uppercase tracking-[0.25em] text-[#FF2A5F]",children:"Xel"}),(0,q.jsxs)("h1",{className:"text-lg font-semibold",children:["Date Agent ",(0,q.jsx)("span",{className:"text-[#FF2A5F]",children:"\u{1F5A4}"})]})]})]}),(0,q.jsxs)("div",{className:"flex items-center gap-3",children:[(0,q.jsxs)("span",{className:"hidden text-xs text-white/40 sm:inline",children:[f.length," regionale Tipps"]}),(0,q.jsx)("button",{"aria-label":"Theme wechseln",onClick:()=>t(e==="dark"?"light":"dark"),className:"min-h-11 min-w-11 rounded-xl border border-white/10 bg-white/5 p-3 text-white/70",children:e==="dark"?(0,q.jsx)(pu,{className:"h-4 w-4"}):(0,q.jsx)(cu,{className:"h-4 w-4"})})]})]}),(0,q.jsxs)("section",{className:"grid gap-10 py-12 lg:grid-cols-[1.05fr_0.95fr] lg:items-center",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)("p",{className:"mb-5 inline-flex rounded-full border border-[#FF2A5F]/25 bg-[#FF2A5F]/10 px-3 py-1.5 text-xs text-[#ff8ba9]",children:"So viele Ideen wie m\xF6glich."}),(0,q.jsxs)("h2",{className:"max-w-xl text-4xl font-semibold leading-[1.06] tracking-[-0.04em] sm:text-6xl",children:["Plant kein Date.",(0,q.jsx)("br",{}),(0,q.jsx)("span",{className:"text-[#FF2A5F]",children:"Plant ein Gef\xFChl."})]}),(0,q.jsx)("p",{className:"mt-5 max-w-lg leading-7 text-white/55",children:"Xel verbindet eure Stimmung mit echten Orten, Wegen und kleinen Momenten, die in Erinnerung bleiben."})]}),(0,q.jsx)("div",{className:"rounded-[2rem] border border-white/10 bg-[#171717] p-5 shadow-2xl sm:p-7",children:(0,q.jsxs)("div",{className:"space-y-7",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)("label",{htmlFor:"location",className:"mb-2 block text-xs uppercase tracking-[0.2em] text-white/45",children:"Wo seid ihr?"}),(0,q.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl border border-white/10 bg-black/20 px-4 focus-within:border-[#FF2A5F]",children:[(0,q.jsx)(Xi,{className:"h-5 w-5 text-[#FF2A5F]"}),(0,q.jsx)("input",{id:"location",value:r,onChange:A=>a(A.target.value),placeholder:"Wo seid ihr?",className:"h-14 w-full bg-transparent outline-none placeholder:text-white/25"})]}),(0,q.jsxs)("div",{className:"mt-4",children:[(0,q.jsx)("p",{className:"mb-2 text-xs uppercase tracking-[0.2em] text-white/45",children:"Umkreis"}),(0,q.jsx)("div",{className:"grid grid-cols-4 gap-2",children:[5,10,15,20].map(A=>(0,q.jsxs)("button",{onClick:()=>u(A),className:`min-h-11 rounded-xl border px-2 py-2 text-sm ${l===A?"border-[#FF2A5F] bg-[#FF2A5F]/15 text-white":"border-white/10 bg-white/[0.03] text-white/55"}`,children:[A," km"]},A))}),(0,q.jsxs)("p",{className:"mt-2 text-xs text-white/30",children:["Wir suchen Ideen bis zu ",l," km rund um euren Ort."]})]}),(0,q.jsxs)("div",{className:"mt-5",children:[(0,q.jsx)("p",{className:"mb-2 text-xs uppercase tracking-[0.2em] text-white/45",children:"Wie kommt ihr hin?"}),(0,q.jsx)("div",{className:"grid grid-cols-2 gap-2",children:gie.map(A=>(0,q.jsx)("button",{onClick:()=>d(A),className:`min-h-11 rounded-xl border px-3 py-2 text-left text-sm ${c===A?"border-[#FF2A5F] bg-[#FF2A5F]/15 text-white":"border-white/10 bg-white/[0.03] text-white/55"}`,children:A},A))})]})]}),(0,q.jsxs)("div",{children:[(0,q.jsx)("p",{className:"mb-3 text-xs uppercase tracking-[0.2em] text-white/45",children:"Euer Budget"}),(0,q.jsx)("div",{className:"grid gap-2 sm:grid-cols-3",children:fF.map(A=>(0,q.jsx)("button",{onClick:()=>o(A),className:`min-h-11 rounded-xl border px-3 py-3 text-left text-sm ${n===A?"border-[#FF2A5F] bg-[#FF2A5F]/15":"border-white/10 bg-white/[0.03] text-white/55"}`,children:A},A))})]}),(0,q.jsxs)("div",{children:[(0,q.jsx)("p",{className:"mb-3 text-xs uppercase tracking-[0.2em] text-white/45",children:"Welche Energie?"}),(0,q.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:pF.map(A=>(0,q.jsx)("button",{onClick:()=>s(A),className:`min-h-11 rounded-xl border px-3 py-3 text-left text-sm ${i===A?"border-[#FF2A5F] bg-[#FF2A5F]/15":"border-white/10 bg-white/[0.03] text-white/55"}`,children:A},A))})]}),(0,q.jsxs)("button",{onClick:P,className:"flex min-h-14 w-full items-center justify-center gap-2 rounded-2xl bg-[#FF2A5F] font-semibold shadow-[0_10px_30px_rgba(255,42,95,0.2)]",children:[(0,q.jsx)(Kr,{className:"h-5 w-5"})," Date planen \u{1F680}"]})]})})]}
528),C&&(0,q.jsx)("div",{role:"status",className:"mb-6 rounded-2xl border border-[#FF2A5F]/25 bg-[#FF2A5F]/10 px-4 py-3 text-sm text-[#ffb0c1]",children:C}),(0,q.jsxs)("section",{className:"grid gap-6 lg:grid-cols-[1fr_0.34fr]",children:[(0,q.jsxs)("div",{className:"rounded-[2rem] border border-white/10 bg-[#121212] p-5 sm:p-7",children:[(0,q.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-[#FF2A5F]",children:"Dein Vorschlag"}),(0,q.jsx)("h3",{className:"mt-2 text-2xl font-semibold",children:y?.title??"Bereit f\xFCr etwas Besonderes?"}),y?(0,q.jsxs)("div",{className:"mt-6 space-y-5",children:[(0,q.jsx)("p",{className:"leading-7 text-white/60",children:y.plan}),(0,q.jsxs)("div",{className:"rounded-2xl border border-[#FF2A5F]/20 bg-[#FF2A5F]/5 p-4",children:[(0,q.jsxs)("p",{className:"text-xs uppercase tracking-[0.2em] text-[#FF2A5F]",children:["Schritt f\xFCr Schritt \xB7 ",y.mobility]}),(0,q.jsx)("ol",{className:"mt-3 space-y-3",children:y.steps.map(A=>(0,q.jsx)("li",{className:"text-sm leading-6 text-white/70",children:A},A))})]}),(0,q.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:f.map((A,O)=>(0,q.jsxs)("div",{className:"rounded-2xl border border-white/10 bg-white/[0.03] p-4",children:[(0,q.jsxs)("p",{className:"text-xs text-[#FF2A5F]",children:["Ergebnis ",String(O+1).padStart(2,"0")]}),(0,q.jsx)("p",{className:"mt-2 font-medium",children:Xo(A,"Name")??"Entdecken"}),(0,q.jsx)("p",{className:"mt-2 text-sm text-white/45",children:Gi(A,"Details")??"Ein kleiner Moment zum Ankommen."}),(0,q.jsx)("p",{className:"mt-3 text-xs text-white/30",children:Gi(A,"Quelle")??"Regionaler Tipp"}),(0,q.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(0,q.jsx)("a",{href:$_("GOOGLE_MAPS",`${Xo(A,"Name")??""} ${Gi(A,"Gebiet")??r}`),target:"_blank",rel:"noreferrer",className:"rounded-lg border border-white/10 px-2.5 py-2 text-xs text-white/60 hover:border-[#FF2A5F]/60 hover:text-white",children:"Maps"}),(0,q.jsx)("a",{href:$_("KOMOOT",Xo(A,"Name")??r),target:"_blank",rel:"noreferrer",className:"rounded-lg border border-white/10 px-2.5 py-2 text-xs text-white/60 hover:border-[#FF2A5F]/60 hover:text-white",children:"Komoot"}),(0,q.jsx)("a",{href:$_("TRIPADVISOR",Xo(A,"Name")??r),target:"_blank",rel:"noreferrer",className:"rounded-lg border border-white/10 px-2.5 py-2 text-xs text-white/60 hover:border-[#FF2A5F]/60 hover:text-white",children:"Tripadvisor"})]})]},A.id))}),(0,q.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,q.jsxs)("button",{onClick:D,disabled:S,className:"inline-flex min-h-11 items-center gap-2 rounded-xl bg-white px-4 py-3 text-sm font-semibold text-black disabled:opacity-50",children:[(0,q.jsx)(du,{className:"h-4 w-4"}),S?"Speichert \u2026":"Plan speichern"]}),(0,q.jsxs)("a",{href:N,target:"_blank",rel:"noreferrer",className:"inline-flex min-h-11 items-center gap-2 rounded-xl border border-white/15 px-4 py-3 text-sm",children:[(0,q.jsx)(Xi,{className:"h-4 w-4 text-[#FF2A5F]"}),"Google Maps"]}),(0,q.jsxs)("a",{href:`https://www.google.com/search?q=${P_(`${y.title} ${y.location}`)}`,target:"_blank",rel:"noreferrer",className:"inline-flex min-h-11 items-center gap-2 rounded-xl border border-white/15 px-4 py-3 text-sm",children:[(0,q.jsx)(su,{className:"h-4 w-4"}),"Portale \xF6ffnen"]})]})]}):(0,q.jsxs)("div",{className:"flex min-h-56 flex-col items-center justify-center rounded-2xl border border-dashed border-white/10 text-center",children:[(0,q.jsx)(ou,{className:"mb-4 h-8 w-8 text-white/20"}),(0,q.jsx)("p",{className:"text-white/60",children:"W\xE4hlt Ort, Budget und Energie."}),(0,q.jsx)("p",{className:"mt-2 text-sm text-white/35",children:"Xel baut daraus euren ersten konkreten Abend."})]})]}),(0,q.jsxs)("aside",{className:"rounded-[2rem] border border-white/10 bg-[#171717] p-5 sm:p-7",children:[(0,q.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-white/35",children:"Deine Sammlung"}),(0,q.jsx)("p",{className:"mt-2 text-4xl font-semibold tabular-nums",children:g.length}),(0,q.jsx)("p",{className:"mt-1 text-sm text-white/45",children:"gespeicherte Pl\xE4ne"}),(0,q.jsxs)("div",{className:"mt-7 space-y-3",children:[g.slice(0,4).map(A=>(0,q.jsxs)("button",{onClick:()=>I(A),className:"w-full rounded-xl border border-white/10 bg-white/[0.03] p-3 text-left",children:[(0,q.jsx)("p",{className:"truncate text-sm font-medium",children:A.title}),(0,q.jsx)("p",{className:"mt-1 text-xs text-white/40",children:A.vibe})]},A.id)),g.length===0&&(0,q.jsx)("p",{className:"text-sm leading-6 text-white/35",children:"Noch leer. Speichert euren ersten Vorschlag, damit er hier bleibt."})]})]})]}),(0,q.jsx)("p",{className:"mt-8 text-center text-xs text-white/25",children:"Basierend auf regionalen Wegen, Kultur und Treffpunkten in L\xFCdenscheid."})]}),(0,q.jsx)(S_,{agentId:mie,publicAgentId:hie,title:"Xel Date Coach",accent:5,placeholder:"Frag Xel nach einer Idee \u2026",suggestions:["0\u20AC Naturdate planen","Regendate in L\xFCdenscheid","Etwas Romantisches"]})]})}export{yie as default}; 529/*! Bundled license information: 530 531lucide-react/dist/esm/shared/src/utils/mergeClasses.js: 532lucide-react/dist/esm/shared/src/utils/toKebabCase.js: 533lucide-react/dist/esm/shared/src/utils/toCamelCase.js: 534lucide-react/dist/esm/shared/src/utils/toPascalCase.js: 535lucide-react/dist/esm/defaultAttributes.js: 536lucide-react/dist/esm/shared/src/utils/hasA11yProp.js: 537lucide-react/dist/esm/Icon.js: 538lucide-react/dist/esm/createLucideIcon.js: 539lucide-react/dist/esm/icons/arrow-down.js: 540lucide-react/dist/esm/icons/compass.js: 541lucide-react/dist/esm/icons/corner-down-left.js: 542lucide-react/dist/esm/icons/external-link.js: 543lucide-react/dist/esm/icons/heart.js: 544lucide-react/dist/esm/icons/loader-circle.js: 545lucide-react/dist/esm/icons/map-pin.js: 546lucide-react/dist/esm/icons/message-circle.js: 547lucide-react/dist/esm/icons/moon.js: 548lucide-react/dist/esm/icons/save.js: 549lucide-react/dist/esm/icons/sparkles.js: 550lucide-react/dist/esm/icons/square.js:
551lucide-react/dist/esm/icons/sun.js: 552lucide-react/dist/esm/icons/x.js: 553lucide-react/dist/esm/lucide-react.js: 554 (** 555 * @license lucide-react v0.577.0 - ISC 556 * 557 * This source code is licensed under the ISC license. 558 * See the LICENSE file in the root directory of this source tree. 559 *) 560 561use-stick-to-bottom/dist/useStickToBottom.js: 562use-stick-to-bottom/dist/StickToBottom.js: 563 (*!--------------------------------------------------------------------------------------------- 564 * Copyright (c) StackBlitz. All rights reserved. 565 * Licensed under the MIT License. See License.txt in the project root for license information. 566 *--------------------------------------------------------------------------------------------*) 567*/
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.