@townco/gui-template 0.1.45 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,48 +0,0 @@
1
- import{b as F,c as Td,r as V,a as Ad,g as el,j as I}from"./react-BxIc-aOD.js";var ci={exports:{}},di={};var ua;function zd(){return ua||(ua=1,(function(e){function t(C,j){var S=C.length;C.push(j);e:for(;0<S;){var X=S-1>>>1,g=C[X];if(0<i(g,j))C[X]=j,C[S]=g,S=X;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var j=C[0],S=C.pop();if(S!==j){C[0]=S;e:for(var X=0,g=C.length,xe=g>>>1;X<xe;){var Te=2*(X+1)-1,m=C[Te],Q=Te+1,ae=C[Q];if(0>i(m,S))Q<g&&0>i(ae,m)?(C[X]=ae,C[Q]=S,X=Q):(C[X]=m,C[Te]=S,X=Te);else if(Q<g&&0>i(ae,S))C[X]=ae,C[Q]=S,X=Q;else break e}}return j}function i(C,j){var S=C.sortIndex-j.sortIndex;return S!==0?S:C.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],d=1,c=null,f=3,p=!1,h=!1,v=!1,b=!1,y=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function z(C){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=C)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function N(C){if(v=!1,z(C),!h)if(n(l)!==null)h=!0,k||(k=!0,P());else{var j=n(u);j!==null&&O(N,j.startTime-C)}}var k=!1,$=-1,R=5,U=-1;function w(){return b?!0:!(e.unstable_now()-U<R)}function M(){if(b=!1,k){var C=e.unstable_now();U=C;var j=!0;try{e:{h=!1,v&&(v=!1,_($),$=-1),p=!0;var S=f;try{t:{for(z(C),c=n(l);c!==null&&!(c.expirationTime>C&&w());){var X=c.callback;if(typeof X=="function"){c.callback=null,f=c.priorityLevel;var g=X(c.expirationTime<=C);if(C=e.unstable_now(),typeof g=="function"){c.callback=g,z(C),j=!0;break t}c===n(l)&&r(l),z(C)}else r(l);c=n(l)}if(c!==null)j=!0;else{var xe=n(u);xe!==null&&O(N,xe.startTime-C),j=!1}}break e}finally{c=null,f=S,p=!1}j=void 0}}finally{j?P():k=!1}}}var P;if(typeof x=="function")P=function(){x(M)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,Z=W.port2;W.port1.onmessage=M,P=function(){Z.postMessage(null)}}else P=function(){y(M,0)};function O(C,j){$=y(function(){C(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(C){switch(f){case 1:case 2:case 3:var j=3;break;default:j=f}var S=f;f=j;try{return C()}finally{f=S}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(C,j){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var S=f;f=C;try{return j()}finally{f=S}},e.unstable_scheduleCallback=function(C,j,S){var X=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?X+S:X):S=X,C){case 1:var g=-1;break;case 2:g=250;break;case 5:g=1073741823;break;case 4:g=1e4;break;default:g=5e3}return g=S+g,C={id:d++,callback:j,priorityLevel:C,startTime:S,expirationTime:g,sortIndex:-1},S>X?(C.sortIndex=S,t(u,C),n(l)===null&&C===n(u)&&(v?(_($),$=-1):v=!0,O(N,S-X))):(C.sortIndex=g,t(l,C),h||p||(h=!0,k||(k=!0,P()))),C},e.unstable_shouldYield=w,e.unstable_wrapCallback=function(C){var j=f;return function(){var S=f;f=j;try{return C.apply(this,arguments)}finally{f=S}}}})(di)),di}var ca;function iC(){return ca||(ca=1,ci.exports=zd()),ci.exports}var ye;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},e.find=(i,o)=>{for(const a of i)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(ye||(ye={}));var da;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(da||(da={}));const Y=ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ft=e=>{switch(typeof e){case"undefined":return Y.undefined;case"string":return Y.string;case"number":return Number.isNaN(e)?Y.nan:Y.number;case"boolean":return Y.boolean;case"function":return Y.function;case"bigint":return Y.bigint;case"symbol":return Y.symbol;case"object":return Array.isArray(e)?Y.array:e===null?Y.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Y.promise:typeof Map<"u"&&e instanceof Map?Y.map:typeof Set<"u"&&e instanceof Set?Y.set:typeof Date<"u"&&e instanceof Date?Y.date:Y.object;default:return Y.unknown}},L=ye.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"]);class At extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,l=0;for(;l<a.path.length;){const u=a.path[l];l===a.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(a))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof At))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}At.create=e=>new At(e);const Li=(e,t)=>{let n;switch(e.code){case L.invalid_type:e.received===Y.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ye.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:n=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,", ")}`;break;case L.invalid_union:n="Invalid input";break;case L.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case L.invalid_enum_value:n=`Invalid enum value. Expected ${ye.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:n="Invalid function arguments";break;case L.invalid_return_type:n="Invalid function return type";break;case L.invalid_date:n="Invalid date";break;case L.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ye.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case L.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case L.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case L.custom:n="Invalid input";break;case L.invalid_intersection_types:n="Intersection results could not be merged";break;case L.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:n="Number must be finite";break;default:n=t.defaultError,ye.assertNever(e)}return{message:n}};let Id=Li;function Nd(){return Id}const Rd=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let s="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)s=u(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function H(e,t){const n=Nd(),r=Rd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Li?void 0:Li].filter(i=>!!i)});e.common.issues.push(r)}class Be{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return re;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,a=await i.value;r.push({key:o,value:a})}return Be.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return re;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[o.value]=a.value)}return{status:t.value,value:r}}}const re=Object.freeze({status:"aborted"}),Zn=e=>({status:"dirty",value:e}),lt=e=>({status:"valid",value:e}),fa=e=>e.status==="aborted",pa=e=>e.status==="dirty",bn=e=>e.status==="valid",Ar=e=>typeof Promise<"u"&&e instanceof Promise;var K;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(K||(K={}));class _t{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}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}}const ha=(e,t)=>{if(bn(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;const n=new At(e.common.issues);return this._error=n,this._error}}};function se(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,s)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??r??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}let fe=class{get description(){return this._def.description}_getType(t){return Ft(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ft(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Be,ctx:{common:t.parent.common,data:t.data,parsedType:Ft(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ar(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ft(t)},i=this._parseSync({data:t,path:r.path,parent:r});return ha(r,i)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ft(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return bn(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>bn(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ft(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(Ar(i)?i:Promise.resolve(i));return ha(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const a=t(i),s=()=>o.addIssue({code:L.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new kn({schema:this,typeName:ne.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:n=>this["~validate"](n)}}optional(){return Zt.create(this,this._def)}nullable(){return wn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xn.create(this)}promise(){return Or.create(this,this._def)}or(t){return Nr.create([this,t],this._def)}and(t){return Rr.create(this,t,this._def)}transform(t){return new kn({...se(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new qi({...se(this._def),innerType:this,defaultValue:n,typeName:ne.ZodDefault})}brand(){return new nf({typeName:ne.ZodBranded,type:this,...se(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ji({...se(this._def),innerType:this,catchValue:n,typeName:ne.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return bo.create(this,t)}readonly(){return Yi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const Od=/^c[^\s-]{8,}$/i,jd=/^[0-9a-z]+$/,Pd=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Dd=/^[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,Ld=/^[a-z0-9_-]{21}$/i,$d=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Md=/^[-+]?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)?)??$/,Fd=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Zd="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let fi;const Bd=/^(?:(?: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])$/,Vd=/^(?:(?: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])$/,Ud=/^(([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]))$/,Hd=/^(([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])$/,Wd=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qd=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,tl="((\\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])))",Jd=new RegExp(`^${tl}$`);function nl(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Yd(e){return new RegExp(`^${nl(e)}$`)}function Kd(e){let t=`${tl}T${nl(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Gd(e,t){return!!((t==="v4"||!t)&&Bd.test(e)||(t==="v6"||!t)&&Ud.test(e))}function Xd(e,t){if(!$d.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Qd(e,t){return!!((t==="v4"||!t)&&Vd.test(e)||(t==="v6"||!t)&&Hd.test(e))}let zr=class Bn extends fe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Y.string){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:Y.string,received:o.parsedType}),re}const r=new Be;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(t,i),a?H(i,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&H(i,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Fd.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"email",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")fi||(fi=new RegExp(Zd,"u")),fi.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"emoji",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Dd.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"uuid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Ld.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"nanoid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Od.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")jd.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cuid2",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Pd.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ulid",code:L.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),H(i,{validation:"url",code:L.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"regex",code:L.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.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)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Kd(o).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Jd.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?Yd(o).test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{code:L.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?Md.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"duration",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?Gd(t.data,o.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"ip",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?Xd(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"jwt",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?Qd(t.data,o.version)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"cidr",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?Wd.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64",code:L.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?qd.test(t.data)||(i=this._getOrReturnCtx(t,i),H(i,{validation:"base64url",code:L.invalid_string,message:o.message}),r.dirty()):ye.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:L.invalid_string,...K.errToObj(r)})}_addCheck(t){return new Bn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...K.errToObj(t)})}url(t){return this._addCheck({kind:"url",...K.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...K.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...K.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...K.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...K.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...K.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...K.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...K.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...K.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...K.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...K.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...K.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,...K.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,...K.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...K.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...K.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...K.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...K.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...K.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...K.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...K.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...K.errToObj(n)})}nonempty(t){return this.min(1,K.errToObj(t))}trim(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bn({...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(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};zr.create=e=>new zr({checks:[],typeName:ne.ZodString,coerce:e?.coerce??!1,...se(e)});function ef(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return o%a/10**i}let $i=class Mi extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Y.number){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:Y.number,received:o.parsedType}),re}let r;const i=new Be;for(const o of this._def.checks)o.kind==="int"?ye.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?ef(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_finite,message:o.message}),i.dirty()):ye.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,K.toString(n))}gt(t,n){return this.setLimit("min",t,!1,K.toString(n))}lte(t,n){return this.setLimit("max",t,!0,K.toString(n))}lt(t,n){return this.setLimit("max",t,!1,K.toString(n))}setLimit(t,n,r,i){return new Mi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:K.toString(i)}]})}_addCheck(t){return new Mi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:K.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:K.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:K.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:K.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:K.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:K.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:K.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:K.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:K.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ye.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};$i.create=e=>new $i({checks:[],typeName:ne.ZodNumber,coerce:e?.coerce||!1,...se(e)});class Wn extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Y.bigint)return this._getInvalidInput(t);let r;const i=new Be;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),H(r,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):ye.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:Y.bigint,received:n.parsedType}),re}gte(t,n){return this.setLimit("min",t,!0,K.toString(n))}gt(t,n){return this.setLimit("min",t,!1,K.toString(n))}lte(t,n){return this.setLimit("max",t,!0,K.toString(n))}lt(t,n){return this.setLimit("max",t,!1,K.toString(n))}setLimit(t,n,r,i){return new Wn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:K.toString(i)}]})}_addCheck(t){return new Wn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:K.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:K.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:K.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:K.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:K.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Wn.create=e=>new Wn({checks:[],typeName:ne.ZodBigInt,coerce:e?.coerce??!1,...se(e)});let Fi=class extends fe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Y.boolean){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.boolean,received:r.parsedType}),re}return lt(t.data)}};Fi.create=e=>new Fi({typeName:ne.ZodBoolean,coerce:e?.coerce||!1,...se(e)});class Ir extends fe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Y.date){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_type,expected:Y.date,received:o.parsedType}),re}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return H(o,{code:L.invalid_date}),re}const r=new Be;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),H(i,{code:L.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):ye.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ir({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:K.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:K.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ir.create=e=>new Ir({checks:[],coerce:e?.coerce||!1,typeName:ne.ZodDate,...se(e)});class ma extends fe{_parse(t){if(this._getType(t)!==Y.symbol){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.symbol,received:r.parsedType}),re}return lt(t.data)}}ma.create=e=>new ma({typeName:ne.ZodSymbol,...se(e)});class ga extends fe{_parse(t){if(this._getType(t)!==Y.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.undefined,received:r.parsedType}),re}return lt(t.data)}}ga.create=e=>new ga({typeName:ne.ZodUndefined,...se(e)});class Zi extends fe{_parse(t){if(this._getType(t)!==Y.null){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.null,received:r.parsedType}),re}return lt(t.data)}}Zi.create=e=>new Zi({typeName:ne.ZodNull,...se(e)});let ya=class extends fe{constructor(){super(...arguments),this._any=!0}_parse(t){return lt(t.data)}};ya.create=e=>new ya({typeName:ne.ZodAny,...se(e)});let Bi=class extends fe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return lt(t.data)}};Bi.create=e=>new Bi({typeName:ne.ZodUnknown,...se(e)});let Bt=class extends fe{_parse(t){const n=this._getOrReturnCtx(t);return H(n,{code:L.invalid_type,expected:Y.never,received:n.parsedType}),re}};Bt.create=e=>new Bt({typeName:ne.ZodNever,...se(e)});class va extends fe{_parse(t){if(this._getType(t)!==Y.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.void,received:r.parsedType}),re}return lt(t.data)}}va.create=e=>new va({typeName:ne.ZodVoid,...se(e)});let xn=class Sr extends fe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Y.array)return H(n,{code:L.invalid_type,expected:Y.array,received:n.parsedType}),re;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(a||s)&&(H(n,{code:a?L.too_big:L.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(H(n,{code:L.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(H(n,{code:L.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>i.type._parseAsync(new _t(n,a,n.path,s)))).then(a=>Be.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new _t(n,a,n.path,s)));return Be.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Sr({...this._def,minLength:{value:t,message:K.toString(n)}})}max(t,n){return new Sr({...this._def,maxLength:{value:t,message:K.toString(n)}})}length(t,n){return new Sr({...this._def,exactLength:{value:t,message:K.toString(n)}})}nonempty(t){return this.min(1,t)}};xn.create=(e,t)=>new xn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ne.ZodArray,...se(t)});function fn(e){if(e instanceof zt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Zt.create(fn(r))}return new zt({...e._def,shape:()=>t})}else return e instanceof xn?new xn({...e._def,type:fn(e.element)}):e instanceof Zt?Zt.create(fn(e.unwrap())):e instanceof wn?wn.create(fn(e.unwrap())):e instanceof en?en.create(e.items.map(t=>fn(t))):e}let zt=class ht extends fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ye.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Y.object){const u=this._getOrReturnCtx(t);return H(u,{code:L.invalid_type,expected:Y.object,received:u.parsedType}),re}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Bt&&this._def.unknownKeys==="strip"))for(const u in i.data)a.includes(u)||s.push(u);const l=[];for(const u of a){const d=o[u],c=i.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new _t(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Bt){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of s)l.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(u==="strict")s.length>0&&(H(i,{code:L.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of s){const c=i.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new _t(i,c,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of l){const c=await d.key,f=await d.value;u.push({key:c,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>Be.mergeObjectSync(r,u)):Be.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return K.errToObj,new ht({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const i=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:K.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new ht({...this._def,unknownKeys:"strip"})}passthrough(){return new ht({...this._def,unknownKeys:"passthrough"})}extend(t){return new ht({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ht({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ne.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ht({...this._def,catchall:t})}pick(t){const n={};for(const r of ye.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new ht({...this._def,shape:()=>n})}omit(t){const n={};for(const r of ye.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new ht({...this._def,shape:()=>n})}deepPartial(){return fn(this)}partial(t){const n={};for(const r of ye.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new ht({...this._def,shape:()=>n})}required(t){const n={};for(const r of ye.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Zt;)o=o._def.innerType;n[r]=o}return new ht({...this._def,shape:()=>n})}keyof(){return rl(ye.objectKeys(this.shape))}};zt.create=(e,t)=>new zt({shape:()=>e,unknownKeys:"strip",catchall:Bt.create(),typeName:ne.ZodObject,...se(t)});zt.strictCreate=(e,t)=>new zt({shape:()=>e,unknownKeys:"strict",catchall:Bt.create(),typeName:ne.ZodObject,...se(t)});zt.lazycreate=(e,t)=>new zt({shape:e,unknownKeys:"strip",catchall:Bt.create(),typeName:ne.ZodObject,...se(t)});let Nr=class extends fe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new At(s.ctx.common.issues));return H(n,{code:L.invalid_union,unionErrors:a}),re}if(n.common.async)return Promise.all(r.map(async o=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(l=>new At(l));return H(n,{code:L.invalid_union,unionErrors:s}),re}}get options(){return this._def.options}};Nr.create=(e,t)=>new Nr({options:e,typeName:ne.ZodUnion,...se(t)});function Vi(e,t){const n=Ft(e),r=Ft(t);if(e===t)return{valid:!0,data:e};if(n===Y.object&&r===Y.object){const i=ye.objectKeys(t),o=ye.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=Vi(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===Y.array&&r===Y.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o],l=Vi(a,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Y.date&&r===Y.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}let Rr=class extends fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(fa(o)||fa(a))return re;const s=Vi(o.value,a.value);return s.valid?((pa(o)||pa(a))&&n.dirty(),{status:n.value,value:s.data}):(H(r,{code:L.invalid_intersection_types}),re)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};Rr.create=(e,t,n)=>new Rr({left:e,right:t,typeName:ne.ZodIntersection,...se(n)});class en extends fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.array)return H(r,{code:L.invalid_type,expected:Y.array,received:r.parsedType}),re;if(r.data.length<this._def.items.length)return H(r,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),re;!this._def.rest&&r.data.length>this._def.items.length&&(H(r,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((a,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new _t(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>Be.mergeArray(n,a)):Be.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new en({...this._def,rest:t})}}en.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new en({items:e,typeName:ne.ZodTuple,rest:null,...se(t)})};let tf=class Ui extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.object)return H(r,{code:L.invalid_type,expected:Y.object,received:r.parsedType}),re;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new _t(r,s,r.path,s)),value:a._parse(new _t(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Be.mergeObjectAsync(n,i):Be.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof fe?new Ui({keyType:t,valueType:n,typeName:ne.ZodRecord,...se(r)}):new Ui({keyType:zr.create(),valueType:t,typeName:ne.ZodRecord,...se(n)})}};class ba extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.map)return H(r,{code:L.invalid_type,expected:Y.map,received:r.parsedType}),re;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,l],u)=>({key:i._parse(new _t(r,s,r.path,[u,"key"])),value:o._parse(new _t(r,l,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of a){const u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return re;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(u.value,d.value)}return{status:n.value,value:s}}}}ba.create=(e,t,n)=>new ba({valueType:t,keyType:e,typeName:ne.ZodMap,...se(n)});class qn extends fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.set)return H(r,{code:L.invalid_type,expected:Y.set,received:r.parsedType}),re;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(H(r,{code:L.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(H(r,{code:L.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function a(l){const u=new Set;for(const d of l){if(d.status==="aborted")return re;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((l,u)=>o._parse(new _t(r,l,r.path,u)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new qn({...this._def,minSize:{value:t,message:K.toString(n)}})}max(t,n){return new qn({...this._def,maxSize:{value:t,message:K.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}qn.create=(e,t)=>new qn({valueType:e,minSize:null,maxSize:null,typeName:ne.ZodSet,...se(t)});class xa extends fe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}xa.create=(e,t)=>new xa({getter:e,typeName:ne.ZodLazy,...se(t)});let Hi=class extends fe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return H(n,{received:n.data,code:L.invalid_literal,expected:this._def.value}),re}return{status:"valid",value:t.data}}get value(){return this._def.value}};Hi.create=(e,t)=>new Hi({value:e,typeName:ne.ZodLiteral,...se(t)});function rl(e,t){return new vo({values:e,typeName:ne.ZodEnum,...se(t)})}let vo=class Wi extends fe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{expected:ye.joinValues(r),received:n.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{received:n.data,code:L.invalid_enum_value,options:r}),re}return lt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Wi.create(t,{...this._def,...n})}exclude(t,n=this._def){return Wi.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};vo.create=rl;class ka extends fe{_parse(t){const n=ye.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Y.string&&r.parsedType!==Y.number){const i=ye.objectValues(n);return H(r,{expected:ye.joinValues(i),received:r.parsedType,code:L.invalid_type}),re}if(this._cache||(this._cache=new Set(ye.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=ye.objectValues(n);return H(r,{received:r.data,code:L.invalid_enum_value,options:i}),re}return lt(t.data)}get enum(){return this._def.values}}ka.create=(e,t)=>new ka({values:e,typeName:ne.ZodNativeEnum,...se(t)});class Or extends fe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Y.promise&&n.common.async===!1)return H(n,{code:L.invalid_type,expected:Y.promise,received:n.parsedType}),re;const r=n.parsedType===Y.promise?n.data:Promise.resolve(n.data);return lt(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Or.create=(e,t)=>new Or({type:e,typeName:ne.ZodPromise,...se(t)});class kn extends fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:a=>{H(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(r.data,o);if(r.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return re;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?re:l.status==="dirty"||n.value==="dirty"?Zn(l.value):l});{if(n.value==="aborted")return re;const s=this._def.schema._parseSync({data:a,path:r.path,parent:r});return s.status==="aborted"?re:s.status==="dirty"||n.value==="dirty"?Zn(s.value):s}}if(i.type==="refinement"){const a=s=>{const l=i.refinement(s,o);if(r.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(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?re:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?re:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!bn(a))return re;const s=i.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>bn(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):re);ye.assertNever(i)}}kn.create=(e,t,n)=>new kn({schema:e,typeName:ne.ZodEffects,effect:t,...se(n)});kn.createWithPreprocess=(e,t,n)=>new kn({schema:t,effect:{type:"preprocess",transform:e},typeName:ne.ZodEffects,...se(n)});let Zt=class extends fe{_parse(t){return this._getType(t)===Y.undefined?lt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Zt.create=(e,t)=>new Zt({innerType:e,typeName:ne.ZodOptional,...se(t)});let wn=class extends fe{_parse(t){return this._getType(t)===Y.null?lt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};wn.create=(e,t)=>new wn({innerType:e,typeName:ne.ZodNullable,...se(t)});let qi=class extends fe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Y.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};qi.create=(e,t)=>new qi({innerType:e,typeName:ne.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...se(t)});let Ji=class extends fe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ar(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new At(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new At(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};Ji.create=(e,t)=>new Ji({innerType:e,typeName:ne.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...se(t)});class wa extends fe{_parse(t){if(this._getType(t)!==Y.nan){const r=this._getOrReturnCtx(t);return H(r,{code:L.invalid_type,expected:Y.nan,received:r.parsedType}),re}return{status:"valid",value:t.data}}}wa.create=e=>new wa({typeName:ne.ZodNaN,...se(e)});class nf extends fe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class bo extends fe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?re:o.status==="dirty"?(n.dirty(),Zn(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?re:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new bo({in:t,out:n,typeName:ne.ZodPipeline})}}let Yi=class extends fe{_parse(t){const n=this._def.innerType._parse(t),r=i=>(bn(i)&&(i.value=Object.freeze(i.value)),i);return Ar(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}};Yi.create=(e,t)=>new Yi({innerType:e,typeName:ne.ZodReadonly,...se(t)});var ne;(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"})(ne||(ne={}));const vC=zr.create,bC=$i.create,xC=Fi.create,kC=Zi.create,wC=Bi.create;Bt.create;const _C=xn.create,CC=zt.create,SC=Nr.create;Rr.create;en.create;const EC=tf.create,TC=Hi.create;vo.create;Or.create;Zt.create;wn.create;const _a=e=>{let t;const n=new Set,r=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const f=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(p=>p(t,f))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(r,i,s);return s},rf=(e=>e?_a(e):_a),of=e=>e;function af(e,t=of){const n=F.useSyncExternalStore(e.subscribe,F.useCallback(()=>t(e.getState()),[e,t]),F.useCallback(()=>t(e.getInitialState()),[e,t]));return F.useDebugValue(n),n}const Ca=e=>{const t=rf(e),n=r=>af(t,r);return Object.assign(n,t),n},AC=(e=>e?Ca(e):Ca);function A(e,t,n){function r(s,l){var u;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(u=s._zod).traits??(u.traits=new Set),s._zod.traits.add(e),t(s,l);for(const d in a.prototype)d in s||Object.defineProperty(s,d,{value:a.prototype[d].bind(s)});s._zod.constr=a,s._zod.def=l}const i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(s){var l;const u=n?.Parent?new o:this;r(u,s),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class gn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class il extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const ol={};function Vt(e){return ol}function sf(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Ki(e,t){return typeof t=="bigint"?t.toString():t}function Wr(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function xo(e){return e==null}function ko(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function lf(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l?.[1]&&(i=Number.parseInt(l[1]))}const o=n>i?n:i,a=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return a%s/10**o}const Sa=Symbol("evaluating");function ke(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Sa)return r===void 0&&(r=Sa,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function rn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function on(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Ea(e){return JSON.stringify(e)}const al="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Jn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const uf=Wr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function _n(e){if(Jn(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Jn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function sl(e){return _n(e)?{...e}:Array.isArray(e)?[...e]:e}const cf=new Set(["string","number","symbol"]);function Cn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function G(e){const 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 df(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const ff={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]};function pf(e,t){const n=e._zod.def,r=on(e._zod.def,{get shape(){const i={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(i[o]=n.shape[o])}return rn(this,"shape",i),i},checks:[]});return qt(e,r)}function hf(e,t){const n=e._zod.def,r=on(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete i[o]}return rn(this,"shape",i),i},checks:[]});return qt(e,r)}function mf(e,t){if(!_n(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=on(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return rn(this,"shape",o),o},checks:[]});return qt(e,i)}function gf(e,t){if(!_n(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return rn(this,"shape",r),r},checks:e._zod.def.checks};return qt(e,n)}function yf(e,t){const n=on(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return rn(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return qt(e,n)}function vf(e,t,n){const r=on(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=e?new e({type:"optional",innerType:i[a]}):i[a])}else for(const a in i)o[a]=e?new e({type:"optional",innerType:i[a]}):i[a];return rn(this,"shape",o),o},checks:[]});return qt(t,r)}function bf(e,t,n){const r=on(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:i[a]}))}else for(const a in i)o[a]=new e({type:"nonoptional",innerType:i[a]});return rn(this,"shape",o),o},checks:[]});return qt(t,r)}function hn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function mn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function dr(e){return typeof e=="string"?e:e?.message}function Ut(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=dr(e.inst?._zod.def?.error?.(e))??dr(t?.error?.(e))??dr(n.customError?.(e))??dr(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function wo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Yn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const ll=(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,Ki,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ul=A("$ZodError",ll),cl=A("$ZodError",ll,{Parent:Error});function xf(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function kf(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>r({issues:a}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let a=n,s=0;for(;s<o.path.length;){const l=o.path[s];s===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(o))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return r(e),n}const _o=e=>(t,n,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new gn;if(a.issues.length){const s=new(i?.Err??e)(a.issues.map(l=>Ut(l,o,Vt())));throw al(s,i?.callee),s}return a.value},Co=e=>async(t,n,r,i)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(i?.Err??e)(a.issues.map(l=>Ut(l,o,Vt())));throw al(s,i?.callee),s}return a.value},qr=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new gn;return o.issues.length?{success:!1,error:new(e??ul)(o.issues.map(a=>Ut(a,i,Vt())))}:{success:!0,data:o.value}},wf=qr(cl),Jr=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>Ut(a,i,Vt())))}:{success:!0,data:o.value}},_f=Jr(cl),Cf=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return _o(e)(t,n,i)},Sf=e=>(t,n,r)=>_o(e)(t,n,r),Ef=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Co(e)(t,n,i)},Tf=e=>async(t,n,r)=>Co(e)(t,n,r),Af=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return qr(e)(t,n,i)},zf=e=>(t,n,r)=>qr(e)(t,n,r),If=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Jr(e)(t,n,i)},Nf=e=>async(t,n,r)=>Jr(e)(t,n,r),Rf=/^[cC][^\s-]{8,}$/,Of=/^[0-9a-z]+$/,jf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Pf=/^[0-9a-vA-V]{20}$/,Df=/^[A-Za-z0-9]{27}$/,Lf=/^[a-zA-Z0-9_-]{21}$/,$f=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Mf=/^([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})$/,Ta=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)$/,Ff=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Zf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Bf(){return new RegExp(Zf,"u")}const Vf=/^(?:(?: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])$/,Uf=/^(([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}|:))$/,Hf=/^((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])$/,Wf=/^(([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])$/,qf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,dl=/^[A-Za-z0-9_-]*$/,Jf=/^(?=.{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])?)*\.?$/,Yf=/^\+(?:[0-9]){6,14}[0-9]$/,fl="(?:(?:\\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])))",Kf=new RegExp(`^${fl}$`);function pl(e){const 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 Gf(e){return new RegExp(`^${pl(e)}$`)}function Xf(e){const t=pl({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${fl}T(?:${r})$`)}const Qf=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ep=/^-?\d+$/,tp=/^-?\d+(?:\.\d+)?/,np=/^(?:true|false)$/i,rp=/^[^A-Z]*$/,ip=/^[^a-z]*$/,qe=A("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),hl={number:"number",bigint:"bigint",object:"date"},ml=A("$ZodCheckLessThan",(e,t)=>{qe.init(e,t);const n=hl[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),gl=A("$ZodCheckGreaterThan",(e,t)=>{qe.init(e,t);const n=hl[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),op=A("$ZodCheckMultipleOf",(e,t)=>{qe.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):lf(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),ap=A("$ZodCheckNumberFormat",(e,t)=>{qe.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=ff[t.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=t.format,s.minimum=i,s.maximum=o,n&&(s.pattern=ep)}),e._zod.check=a=>{const s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),sp=A("$ZodCheckMaxLength",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!xo(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const a=wo(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),lp=A("$ZodCheckMinLength",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!xo(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const a=wo(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),up=A("$ZodCheckLengthEquals",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!xo(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,o=i.length;if(o===t.length)return;const a=wo(i),s=o>t.length;r.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Yr=A("$ZodCheckStringFormat",(e,t)=>{var n,r;qe.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),cp=A("$ZodCheckRegex",(e,t)=>{Yr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),dp=A("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=rp),Yr.init(e,t)}),fp=A("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ip),Yr.init(e,t)}),pp=A("$ZodCheckIncludes",(e,t)=>{qe.init(e,t);const n=Cn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),hp=A("$ZodCheckStartsWith",(e,t)=>{qe.init(e,t);const n=new RegExp(`^${Cn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),mp=A("$ZodCheckEndsWith",(e,t)=>{qe.init(e,t);const n=new RegExp(`.*${Cn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),gp=A("$ZodCheckOverwrite",(e,t)=>{qe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class yp{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}const r=t.split(`
2
- `).filter(a=>a),i=Math.min(...r.map(a=>a.length-a.trimStart().length)),o=r.map(a=>a.slice(i)).map(a=>" ".repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,i.join(`
3
- `))}}const vp={major:4,minor:1,patch:12},Se=A("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=vp;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(a,s,l)=>{let u=hn(a),d;for(const c of s){if(c._zod.def.when){if(!c._zod.def.when(a))continue}else if(u)continue;const f=a.issues.length,p=c._zod.check(a);if(p instanceof Promise&&l?.async===!1)throw new gn;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,a.issues.length!==f&&(u||(u=hn(a,f)))});else{if(a.issues.length===f)continue;u||(u=hn(a,f))}}return d?d.then(()=>a):a},o=(a,s,l)=>{if(hn(a))return a.aborted=!0,a;const u=i(s,r,l);if(u instanceof Promise){if(l.async===!1)throw new gn;return u.then(d=>e._zod.parse(d,l))}return e._zod.parse(u,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,a,s)):o(u,a,s)}const l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new gn;return l.then(u=>i(u,r,s))}return i(l,r,s)}}e["~standard"]={validate:i=>{try{const o=wf(e,i);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return _f(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),So=A("$ZodString",(e,t)=>{Se.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Qf(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ee=A("$ZodStringFormat",(e,t)=>{Yr.init(e,t),So.init(e,t)}),bp=A("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Mf),Ee.init(e,t)}),xp=A("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ta(r))}else t.pattern??(t.pattern=Ta());Ee.init(e,t)}),kp=A("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ff),Ee.init(e,t)}),wp=A("$ZodURL",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Jf.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),_p=A("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Bf()),Ee.init(e,t)}),Cp=A("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Lf),Ee.init(e,t)}),Sp=A("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Rf),Ee.init(e,t)}),Ep=A("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Of),Ee.init(e,t)}),Tp=A("$ZodULID",(e,t)=>{t.pattern??(t.pattern=jf),Ee.init(e,t)}),Ap=A("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Pf),Ee.init(e,t)}),zp=A("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Df),Ee.init(e,t)}),Ip=A("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Xf(t)),Ee.init(e,t)}),Np=A("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Kf),Ee.init(e,t)}),Rp=A("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Gf(t)),Ee.init(e,t)}),Op=A("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=$f),Ee.init(e,t)}),jp=A("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Vf),Ee.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),Pp=A("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Uf),Ee.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Dp=A("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Hf),Ee.init(e,t)}),Lp=A("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Wf),Ee.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,o]=r;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function yl(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const $p=A("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=qf),Ee.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{yl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Mp(e){if(!dl.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return yl(n)}const Fp=A("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=dl),Ee.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{Mp(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Zp=A("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Yf),Ee.init(e,t)});function Bp(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Vp=A("$ZodJWT",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{Bp(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),vl=A("$ZodNumber",(e,t)=>{Se.init(e,t),e._zod.pattern=e._zod.bag.pattern??tp,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Up=A("$ZodNumber",(e,t)=>{ap.init(e,t),vl.init(e,t)}),Hp=A("$ZodBoolean",(e,t)=>{Se.init(e,t),e._zod.pattern=np,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Wp=A("$ZodAny",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),qp=A("$ZodUnknown",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),Jp=A("$ZodNever",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Aa(e,t,n){e.issues.length&&t.issues.push(...mn(n,e.issues)),t.value[n]=e.value}const Yp=A("$ZodArray",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const o=[];for(let a=0;a<i.length;a++){const s=i[a],l=t.element._zod.run({value:s,issues:[]},r);l instanceof Promise?o.push(l.then(u=>Aa(u,n,a))):Aa(l,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function jr(e,t,n,r){e.issues.length&&t.issues.push(...mn(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function bl(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=df(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function xl(e,t,n,r,i,o){const a=[],s=i.keySet,l=i.catchall._zod,u=l.def.type;for(const d of Object.keys(t)){if(s.has(d))continue;if(u==="never"){a.push(d);continue}const c=l.run({value:t[d],issues:[]},r);c instanceof Promise?e.push(c.then(f=>jr(f,n,d,t))):jr(c,n,d,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const Kp=A("$ZodObject",(e,t)=>{if(Se.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}const r=Wr(()=>bl(t));ke(e._zod,"propValues",()=>{const s=t.shape,l={};for(const u in s){const d=s[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(const c of d.values)l[u].add(c)}}return l});const i=Jn,o=t.catchall;let a;e._zod.parse=(s,l)=>{a??(a=r.value);const u=s.value;if(!i(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};const d=[],c=a.shape;for(const f of a.keys){const h=c[f]._zod.run({value:u[f],issues:[]},l);h instanceof Promise?d.push(h.then(v=>jr(v,s,f,u))):jr(h,s,f,u)}return o?xl(d,u,s,l,r.value,e):d.length?Promise.all(d).then(()=>s):s}}),Gp=A("$ZodObjectJIT",(e,t)=>{Kp.init(e,t);const n=e._zod.parse,r=Wr(()=>bl(t)),i=f=>{const p=new yp(["shape","payload","ctx"]),h=r.value,v=x=>{const z=Ea(x);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};p.write("const input = payload.value;");const b=Object.create(null);let y=0;for(const x of h.keys)b[x]=`key_${y++}`;p.write("const newResult = {};");for(const x of h.keys){const z=b[x],N=Ea(x);p.write(`const ${z} = ${v(x)};`),p.write(`
4
- if (${z}.issues.length) {
5
- payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
6
- ...iss,
7
- path: iss.path ? [${N}, ...iss.path] : [${N}]
8
- })));
9
- }
10
-
11
-
12
- if (${z}.value === undefined) {
13
- if (${N} in input) {
14
- newResult[${N}] = undefined;
15
- }
16
- } else {
17
- newResult[${N}] = ${z}.value;
18
- }
19
-
20
- `)}p.write("payload.value = newResult;"),p.write("return payload;");const _=p.compile();return(x,z)=>_(f,x,z)};let o;const a=Jn,s=!ol.jitless,u=s&&uf.value,d=t.catchall;let c;e._zod.parse=(f,p)=>{c??(c=r.value);const h=f.value;return a(h)?s&&u&&p?.async===!1&&p.jitless!==!0?(o||(o=i(t.shape)),f=o(f,p),d?xl([],h,f,p,c,e):f):n(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f)}});function za(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!hn(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Ut(a,r,Vt())))}),t)}const kl=A("$ZodUnion",(e,t)=>{Se.init(e,t),ke(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ke(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ke(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ke(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>ko(o.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return r(i,o);let a=!1;const s=[];for(const l of t.options){const u=l._zod.run({value:i.value,issues:[]},o);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(l=>za(l,i,e,o)):za(s,i,e,o)}}),Xp=A("$ZodDiscriminatedUnion",(e,t)=>{kl.init(e,t);const n=e._zod.parse;ke(e._zod,"propValues",()=>{const i={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[s,l]of Object.entries(a)){i[s]||(i[s]=new Set);for(const u of l)i[s].add(u)}}return i});const r=Wr(()=>{const i=t.options,o=new Map;for(const a of i){const s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const l of s){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,a)}}return o});e._zod.parse=(i,o)=>{const a=i.value;if(!Jn(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const s=r.value.get(a?.[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),i)}}),Qp=A("$ZodIntersection",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([l,u])=>Ia(n,l,u)):Ia(n,o,a)}});function Gi(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(_n(e)&&_n(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(const o of r){const a=Gi(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i[o]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=t[r],a=Gi(i,o);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ia(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),hn(e))return e;const r=Gi(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const eh=A("$ZodRecord",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!_n(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const o=[];if(t.keyType._zod.values){const a=t.keyType._zod.values;n.value={};for(const l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){const u=t.valueType._zod.run({value:i[l],issues:[]},r);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&n.issues.push(...mn(l,d.issues)),n.value[l]=d.value})):(u.issues.length&&n.issues.push(...mn(l,u.issues)),n.value[l]=u.value)}let s;for(const l in i)a.has(l)||(s=s??[],s.push(l));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else{n.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const s=t.keyType._zod.run({value:a,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(u=>Ut(u,r,Vt())),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}const l=t.valueType._zod.run({value:i[a],issues:[]},r);l instanceof Promise?o.push(l.then(u=>{u.issues.length&&n.issues.push(...mn(a,u.issues)),n.value[s.value]=u.value})):(l.issues.length&&n.issues.push(...mn(a,l.issues)),n.value[s.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),th=A("$ZodEnum",(e,t)=>{Se.init(e,t);const n=sf(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>cf.has(typeof i)).map(i=>typeof i=="string"?Cn(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{const a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:n,input:a,inst:e}),i}}),nh=A("$ZodLiteral",(e,t)=>{if(Se.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Cn(n):n?Cn(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),rh=A("$ZodTransform",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new il(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(n.value=a,n));if(i instanceof Promise)throw new gn;return n.value=i,n}});function Na(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const ih=A("$ZodOptional",(e,t)=>{Se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ke(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ke(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ko(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Na(o,n.value)):Na(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),oh=A("$ZodNullable",(e,t)=>{Se.init(e,t),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),ke(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ko(n.source)}|null)$`):void 0}),ke(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),ah=A("$ZodDefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Ra(o,t)):Ra(i,t)}});function Ra(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const sh=A("$ZodPrefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),lh=A("$ZodNonOptional",(e,t)=>{Se.init(e,t),ke(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Oa(o,e)):Oa(i,e)}});function Oa(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const uh=A("$ZodCatch",(e,t)=>{Se.init(e,t),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Ut(a,r,Vt()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Ut(o,r,Vt()))},input:n.value}),n.issues=[]),n)}}),ch=A("$ZodPipe",(e,t)=>{Se.init(e,t),ke(e._zod,"values",()=>t.in._zod.values),ke(e._zod,"optin",()=>t.in._zod.optin),ke(e._zod,"optout",()=>t.out._zod.optout),ke(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>fr(a,t.in,r)):fr(o,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>fr(o,t.out,r)):fr(i,t.out,r)}});function fr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const dh=A("$ZodReadonly",(e,t)=>{Se.init(e,t),ke(e._zod,"propValues",()=>t.innerType._zod.propValues),ke(e._zod,"values",()=>t.innerType._zod.values),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(ja):ja(i)}});function ja(e){return e.value=Object.freeze(e.value),e}const fh=A("$ZodCustom",(e,t)=>{qe.init(e,t),Se.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>Pa(o,n,r,e));Pa(i,n,r,e)}});function Pa(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Yn(i))}}class ph{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function hh(){return new ph}const pr=hh();function mh(e,t){return new e({type:"string",...G(t)})}function gh(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...G(t)})}function Da(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...G(t)})}function yh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...G(t)})}function vh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...G(t)})}function bh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...G(t)})}function xh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...G(t)})}function kh(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...G(t)})}function wh(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...G(t)})}function _h(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...G(t)})}function Ch(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...G(t)})}function Sh(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...G(t)})}function Eh(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...G(t)})}function Th(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...G(t)})}function Ah(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...G(t)})}function zh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...G(t)})}function Ih(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...G(t)})}function Nh(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...G(t)})}function Rh(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...G(t)})}function Oh(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...G(t)})}function jh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...G(t)})}function Ph(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...G(t)})}function Dh(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...G(t)})}function Lh(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...G(t)})}function $h(e,t){return new e({type:"string",format:"date",check:"string_format",...G(t)})}function Mh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...G(t)})}function Fh(e,t){return new e({type:"string",format:"duration",check:"string_format",...G(t)})}function Zh(e,t){return new e({type:"number",checks:[],...G(t)})}function Bh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...G(t)})}function Vh(e,t){return new e({type:"boolean",...G(t)})}function Uh(e){return new e({type:"any"})}function Hh(e){return new e({type:"unknown"})}function Wh(e,t){return new e({type:"never",...G(t)})}function La(e,t){return new ml({check:"less_than",...G(t),value:e,inclusive:!1})}function pi(e,t){return new ml({check:"less_than",...G(t),value:e,inclusive:!0})}function $a(e,t){return new gl({check:"greater_than",...G(t),value:e,inclusive:!1})}function hi(e,t){return new gl({check:"greater_than",...G(t),value:e,inclusive:!0})}function Ma(e,t){return new op({check:"multiple_of",...G(t),value:e})}function wl(e,t){return new sp({check:"max_length",...G(t),maximum:e})}function Pr(e,t){return new lp({check:"min_length",...G(t),minimum:e})}function _l(e,t){return new up({check:"length_equals",...G(t),length:e})}function qh(e,t){return new cp({check:"string_format",format:"regex",...G(t),pattern:e})}function Jh(e){return new dp({check:"string_format",format:"lowercase",...G(e)})}function Yh(e){return new fp({check:"string_format",format:"uppercase",...G(e)})}function Kh(e,t){return new pp({check:"string_format",format:"includes",...G(t),includes:e})}function Gh(e,t){return new hp({check:"string_format",format:"starts_with",...G(t),prefix:e})}function Xh(e,t){return new mp({check:"string_format",format:"ends_with",...G(t),suffix:e})}function tr(e){return new gp({check:"overwrite",tx:e})}function Qh(e){return tr(t=>t.normalize(e))}function em(){return tr(e=>e.trim())}function tm(){return tr(e=>e.toLowerCase())}function nm(){return tr(e=>e.toUpperCase())}function rm(e,t,n){return new e({type:"array",element:t,...G(n)})}function im(e,t,n){return new e({type:"custom",check:"custom",fn:t,...G(n)})}function om(e){const t=am(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Yn(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(Yn(i))}},e(n.value,n)));return t}function am(e,t){const n=new qe({check:"custom",...G(t)});return n._zod.check=e,n}const sm=A("ZodISODateTime",(e,t)=>{Ip.init(e,t),ze.init(e,t)});function lm(e){return Lh(sm,e)}const um=A("ZodISODate",(e,t)=>{Np.init(e,t),ze.init(e,t)});function cm(e){return $h(um,e)}const dm=A("ZodISOTime",(e,t)=>{Rp.init(e,t),ze.init(e,t)});function fm(e){return Mh(dm,e)}const pm=A("ZodISODuration",(e,t)=>{Op.init(e,t),ze.init(e,t)});function hm(e){return Fh(pm,e)}const mm=(e,t)=>{ul.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>kf(e,n)},flatten:{value:n=>xf(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ki,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ki,2)}},isEmpty:{get(){return e.issues.length===0}}})},ut=A("ZodError",mm,{Parent:Error}),gm=_o(ut),ym=Co(ut),vm=qr(ut),bm=Jr(ut),xm=Cf(ut),km=Sf(ut),wm=Ef(ut),_m=Tf(ut),Cm=Af(ut),Sm=zf(ut),Em=If(ut),Tm=Nf(ut),Ae=A("ZodType",(e,t)=>(Se.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(on(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>qt(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>gm(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>vm(e,n,r),e.parseAsync=async(n,r)=>ym(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>bm(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>xm(e,n,r),e.decode=(n,r)=>km(e,n,r),e.encodeAsync=async(n,r)=>wm(e,n,r),e.decodeAsync=async(n,r)=>_m(e,n,r),e.safeEncode=(n,r)=>Cm(e,n,r),e.safeDecode=(n,r)=>Sm(e,n,r),e.safeEncodeAsync=async(n,r)=>Em(e,n,r),e.safeDecodeAsync=async(n,r)=>Tm(e,n,r),e.refine=(n,r)=>e.check(wg(n,r)),e.superRefine=n=>e.check(_g(n)),e.overwrite=n=>e.check(tr(n)),e.optional=()=>Va(e),e.nullable=()=>Ua(e),e.nullish=()=>Va(Ua(e)),e.nonoptional=n=>mg(e,n),e.array=()=>Qm(e),e.or=n=>tg([e,n]),e.and=n=>ig(e,n),e.transform=n=>Ha(e,ug(n)),e.default=n=>fg(e,n),e.prefault=n=>hg(e,n),e.catch=n=>yg(e,n),e.pipe=n=>Ha(e,n),e.readonly=()=>xg(e),e.describe=n=>{const r=e.clone();return pr.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return pr.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return pr.get(e);const r=e.clone();return pr.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Cl=A("_ZodString",(e,t)=>{So.init(e,t),Ae.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(qh(...r)),e.includes=(...r)=>e.check(Kh(...r)),e.startsWith=(...r)=>e.check(Gh(...r)),e.endsWith=(...r)=>e.check(Xh(...r)),e.min=(...r)=>e.check(Pr(...r)),e.max=(...r)=>e.check(wl(...r)),e.length=(...r)=>e.check(_l(...r)),e.nonempty=(...r)=>e.check(Pr(1,...r)),e.lowercase=r=>e.check(Jh(r)),e.uppercase=r=>e.check(Yh(r)),e.trim=()=>e.check(em()),e.normalize=(...r)=>e.check(Qh(...r)),e.toLowerCase=()=>e.check(tm()),e.toUpperCase=()=>e.check(nm())}),Am=A("ZodString",(e,t)=>{So.init(e,t),Cl.init(e,t),e.email=n=>e.check(gh(zm,n)),e.url=n=>e.check(kh(Im,n)),e.jwt=n=>e.check(Dh(Hm,n)),e.emoji=n=>e.check(wh(Nm,n)),e.guid=n=>e.check(Da(Fa,n)),e.uuid=n=>e.check(yh(hr,n)),e.uuidv4=n=>e.check(vh(hr,n)),e.uuidv6=n=>e.check(bh(hr,n)),e.uuidv7=n=>e.check(xh(hr,n)),e.nanoid=n=>e.check(_h(Rm,n)),e.guid=n=>e.check(Da(Fa,n)),e.cuid=n=>e.check(Ch(Om,n)),e.cuid2=n=>e.check(Sh(jm,n)),e.ulid=n=>e.check(Eh(Pm,n)),e.base64=n=>e.check(Oh(Bm,n)),e.base64url=n=>e.check(jh(Vm,n)),e.xid=n=>e.check(Th(Dm,n)),e.ksuid=n=>e.check(Ah(Lm,n)),e.ipv4=n=>e.check(zh($m,n)),e.ipv6=n=>e.check(Ih(Mm,n)),e.cidrv4=n=>e.check(Nh(Fm,n)),e.cidrv6=n=>e.check(Rh(Zm,n)),e.e164=n=>e.check(Ph(Um,n)),e.datetime=n=>e.check(lm(n)),e.date=n=>e.check(cm(n)),e.time=n=>e.check(fm(n)),e.duration=n=>e.check(hm(n))});function zC(e){return mh(Am,e)}const ze=A("ZodStringFormat",(e,t)=>{Ee.init(e,t),Cl.init(e,t)}),zm=A("ZodEmail",(e,t)=>{kp.init(e,t),ze.init(e,t)}),Fa=A("ZodGUID",(e,t)=>{bp.init(e,t),ze.init(e,t)}),hr=A("ZodUUID",(e,t)=>{xp.init(e,t),ze.init(e,t)}),Im=A("ZodURL",(e,t)=>{wp.init(e,t),ze.init(e,t)}),Nm=A("ZodEmoji",(e,t)=>{_p.init(e,t),ze.init(e,t)}),Rm=A("ZodNanoID",(e,t)=>{Cp.init(e,t),ze.init(e,t)}),Om=A("ZodCUID",(e,t)=>{Sp.init(e,t),ze.init(e,t)}),jm=A("ZodCUID2",(e,t)=>{Ep.init(e,t),ze.init(e,t)}),Pm=A("ZodULID",(e,t)=>{Tp.init(e,t),ze.init(e,t)}),Dm=A("ZodXID",(e,t)=>{Ap.init(e,t),ze.init(e,t)}),Lm=A("ZodKSUID",(e,t)=>{zp.init(e,t),ze.init(e,t)}),$m=A("ZodIPv4",(e,t)=>{jp.init(e,t),ze.init(e,t)}),Mm=A("ZodIPv6",(e,t)=>{Pp.init(e,t),ze.init(e,t)}),Fm=A("ZodCIDRv4",(e,t)=>{Dp.init(e,t),ze.init(e,t)}),Zm=A("ZodCIDRv6",(e,t)=>{Lp.init(e,t),ze.init(e,t)}),Bm=A("ZodBase64",(e,t)=>{$p.init(e,t),ze.init(e,t)}),Vm=A("ZodBase64URL",(e,t)=>{Fp.init(e,t),ze.init(e,t)}),Um=A("ZodE164",(e,t)=>{Zp.init(e,t),ze.init(e,t)}),Hm=A("ZodJWT",(e,t)=>{Vp.init(e,t),ze.init(e,t)}),Sl=A("ZodNumber",(e,t)=>{vl.init(e,t),Ae.init(e,t),e.gt=(r,i)=>e.check($a(r,i)),e.gte=(r,i)=>e.check(hi(r,i)),e.min=(r,i)=>e.check(hi(r,i)),e.lt=(r,i)=>e.check(La(r,i)),e.lte=(r,i)=>e.check(pi(r,i)),e.max=(r,i)=>e.check(pi(r,i)),e.int=r=>e.check(Za(r)),e.safe=r=>e.check(Za(r)),e.positive=r=>e.check($a(0,r)),e.nonnegative=r=>e.check(hi(0,r)),e.negative=r=>e.check(La(0,r)),e.nonpositive=r=>e.check(pi(0,r)),e.multipleOf=(r,i)=>e.check(Ma(r,i)),e.step=(r,i)=>e.check(Ma(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function IC(e){return Zh(Sl,e)}const Wm=A("ZodNumberFormat",(e,t)=>{Up.init(e,t),Sl.init(e,t)});function Za(e){return Bh(Wm,e)}const qm=A("ZodBoolean",(e,t)=>{Hp.init(e,t),Ae.init(e,t)});function NC(e){return Vh(qm,e)}const Jm=A("ZodAny",(e,t)=>{Wp.init(e,t),Ae.init(e,t)});function RC(){return Uh(Jm)}const Ym=A("ZodUnknown",(e,t)=>{qp.init(e,t),Ae.init(e,t)});function Ba(){return Hh(Ym)}const Km=A("ZodNever",(e,t)=>{Jp.init(e,t),Ae.init(e,t)});function Gm(e){return Wh(Km,e)}const Xm=A("ZodArray",(e,t)=>{Yp.init(e,t),Ae.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Pr(n,r)),e.nonempty=n=>e.check(Pr(1,n)),e.max=(n,r)=>e.check(wl(n,r)),e.length=(n,r)=>e.check(_l(n,r)),e.unwrap=()=>e.element});function Qm(e,t){return rm(Xm,e,t)}const eg=A("ZodObject",(e,t)=>{Gp.init(e,t),Ae.init(e,t),ke(e,"shape",()=>t.shape),e.keyof=()=>ag(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ba()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ba()}),e.strict=()=>e.clone({...e._zod.def,catchall:Gm()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>mf(e,n),e.safeExtend=n=>gf(e,n),e.merge=n=>yf(e,n),e.pick=n=>pf(e,n),e.omit=n=>hf(e,n),e.partial=(...n)=>vf(Tl,e,n[0]),e.required=(...n)=>bf(Al,e,n[0])});function OC(e,t){const n={type:"object",shape:e??{},...G(t)};return new eg(n)}const El=A("ZodUnion",(e,t)=>{kl.init(e,t),Ae.init(e,t),e.options=t.options});function tg(e,t){return new El({type:"union",options:e,...G(t)})}const ng=A("ZodDiscriminatedUnion",(e,t)=>{El.init(e,t),Xp.init(e,t)});function jC(e,t,n){return new ng({type:"union",options:t,discriminator:e,...G(n)})}const rg=A("ZodIntersection",(e,t)=>{Qp.init(e,t),Ae.init(e,t)});function ig(e,t){return new rg({type:"intersection",left:e,right:t})}const og=A("ZodRecord",(e,t)=>{eh.init(e,t),Ae.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function PC(e,t,n){return new og({type:"record",keyType:e,valueType:t,...G(n)})}const Xi=A("ZodEnum",(e,t)=>{th.init(e,t),Ae.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const o={};for(const a of r)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Xi({...t,checks:[],...G(i),entries:o})},e.exclude=(r,i)=>{const o={...t.entries};for(const a of r)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Xi({...t,checks:[],...G(i),entries:o})}});function ag(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Xi({type:"enum",entries:n,...G(t)})}const sg=A("ZodLiteral",(e,t)=>{nh.init(e,t),Ae.init(e,t),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 DC(e,t){return new sg({type:"literal",values:Array.isArray(e)?e:[e],...G(t)})}const lg=A("ZodTransform",(e,t)=>{rh.init(e,t),Ae.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new il(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Yn(o,n.value,t));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(Yn(a))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function ug(e){return new lg({type:"transform",transform:e})}const Tl=A("ZodOptional",(e,t)=>{ih.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Va(e){return new Tl({type:"optional",innerType:e})}const cg=A("ZodNullable",(e,t)=>{oh.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ua(e){return new cg({type:"nullable",innerType:e})}const dg=A("ZodDefault",(e,t)=>{ah.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fg(e,t){return new dg({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():sl(t)}})}const pg=A("ZodPrefault",(e,t)=>{sh.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function hg(e,t){return new pg({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():sl(t)}})}const Al=A("ZodNonOptional",(e,t)=>{lh.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mg(e,t){return new Al({type:"nonoptional",innerType:e,...G(t)})}const gg=A("ZodCatch",(e,t)=>{uh.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function yg(e,t){return new gg({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const vg=A("ZodPipe",(e,t)=>{ch.init(e,t),Ae.init(e,t),e.in=t.in,e.out=t.out});function Ha(e,t){return new vg({type:"pipe",in:e,out:t})}const bg=A("ZodReadonly",(e,t)=>{dh.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function xg(e){return new bg({type:"readonly",innerType:e})}const kg=A("ZodCustom",(e,t)=>{fh.init(e,t),Ae.init(e,t)});function wg(e,t={}){return im(kg,e,t)}function _g(e){return om(e)}function Cg(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Sg=e=>{switch(e){case"success":return Ag;case"info":return Ig;case"warning":return zg;case"error":return Ng;default:return null}},Eg=Array(12).fill(0),Tg=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},Eg.map((n,r)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Ag=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),zg=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Ig=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Ng=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Rg=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Og=()=>{const[e,t]=F.useState(document.hidden);return F.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Qi=1;class jg{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Qi++,a=this.toasts.find(l=>l.id===o),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:r}),{...l,...t,id:o,dismissible:s,title:r}):l):this.addToast({title:r,...i,dismissible:s,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,a;const s=i.then(async u=>{if(a=["resolve",u],F.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(Dg(u)&&!u.ok){o=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,h=typeof c=="object"&&!F.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...h})}else if(u instanceof Error){o=!1;const c=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof c=="object"&&!F.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...h})}else if(n.success!==void 0){o=!1;const c=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof c=="object"&&!F.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:f,...h})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){o=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,p=typeof d=="object"&&!F.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>s.then(()=>a[0]==="reject"?d(a[1]):u(a[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||Qi++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const We=new jg,Pg=(e,t)=>{const n=t?.id||Qi++;return We.addToast({title:e,...t,id:n}),n},Dg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Lg=Pg,$g=()=>We.toasts,Mg=()=>We.getActiveToasts();Object.assign(Lg,{success:We.success,info:We.info,warning:We.warning,error:We.error,custom:We.custom,message:We.message,promise:We.promise,dismiss:We.dismiss,loading:We.loading},{getHistory:$g,getToasts:Mg});Cg("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function mr(e){return e.label!==void 0}const Fg=3,Zg="24px",Bg="16px",Wa=4e3,Vg=356,Ug=14,Hg=45,Wg=200;function bt(...e){return e.filter(Boolean).join(" ")}function qg(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Jg=e=>{var t,n,r,i,o,a,s,l,u;const{invert:d,toast:c,unstyled:f,interacting:p,setHeights:h,visibleToasts:v,heights:b,index:y,toasts:_,expanded:x,removeToast:z,defaultRichColors:N,closeButton:k,style:$,cancelButtonStyle:R,actionButtonStyle:U,className:w="",descriptionClassName:M="",duration:P,position:W,gap:Z,expandByDefault:O,classNames:C,icons:j,closeButtonAriaLabel:S="Close toast"}=e,[X,g]=F.useState(null),[xe,Te]=F.useState(null),[m,Q]=F.useState(!1),[ae,ge]=F.useState(!1),[ve,de]=F.useState(!1),[Re,Pe]=F.useState(!1),[Ke,Ge]=F.useState(!1),[ai,jn]=F.useState(0),[ar,Pn]=F.useState(0),Ot=F.useRef(c.duration||P||Wa),sr=F.useRef(null),ot=F.useRef(null),lr=y===0,si=y+1<=v,Fe=c.type,jt=c.dismissible!==!1,li=c.className||"",ui=c.descriptionClassName||"",T=F.useMemo(()=>b.findIndex(ie=>ie.toastId===c.id)||0,[b,c.id]),B=F.useMemo(()=>{var ie;return(ie=c.closeButton)!=null?ie:k},[c.closeButton,k]),te=F.useMemo(()=>c.duration||P||Wa,[c.duration,P]),le=F.useRef(0),he=F.useRef(0),Ve=F.useRef(0),Ue=F.useRef(null),[dt,Kt]=W.split("-"),Pt=F.useMemo(()=>b.reduce((ie,Oe,Le)=>Le>=T?ie:ie+Oe.height,0),[b,T]),De=Og(),Dt=c.invert||d,Xe=Fe==="loading";he.current=F.useMemo(()=>T*Z+Pt,[T,Pt]),F.useEffect(()=>{Ot.current=te},[te]),F.useEffect(()=>{Q(!0)},[]),F.useEffect(()=>{const ie=ot.current;if(ie){const Oe=ie.getBoundingClientRect().height;return Pn(Oe),h(Le=>[{toastId:c.id,height:Oe,position:c.position},...Le]),()=>h(Le=>Le.filter(Qe=>Qe.toastId!==c.id))}},[h,c.id]),F.useLayoutEffect(()=>{if(!m)return;const ie=ot.current,Oe=ie.style.height;ie.style.height="auto";const Le=ie.getBoundingClientRect().height;ie.style.height=Oe,Pn(Le),h(Qe=>Qe.find(je=>je.toastId===c.id)?Qe.map(je=>je.toastId===c.id?{...je,height:Le}:je):[{toastId:c.id,height:Le,position:c.position},...Qe])},[m,c.title,c.description,h,c.id,c.jsx,c.action,c.cancel]);const Lt=F.useCallback(()=>{ge(!0),jn(he.current),h(ie=>ie.filter(Oe=>Oe.toastId!==c.id)),setTimeout(()=>{z(c)},Wg)},[c,z,h,he]);F.useEffect(()=>{if(c.promise&&Fe==="loading"||c.duration===1/0||c.type==="loading")return;let ie;return x||p||De?(()=>{if(Ve.current<le.current){const Qe=new Date().getTime()-le.current;Ot.current=Ot.current-Qe}Ve.current=new Date().getTime()})():(()=>{Ot.current!==1/0&&(le.current=new Date().getTime(),ie=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Lt()},Ot.current))})(),()=>clearTimeout(ie)},[x,p,c,Fe,De,Lt]),F.useEffect(()=>{c.delete&&(Lt(),c.onDismiss==null||c.onDismiss.call(c,c))},[Lt,c.delete]);function Sd(){var ie;if(j?.loading){var Oe;return F.createElement("div",{className:bt(C?.loader,c==null||(Oe=c.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":Fe==="loading"},j.loading)}return F.createElement(Tg,{className:bt(C?.loader,c==null||(ie=c.classNames)==null?void 0:ie.loader),visible:Fe==="loading"})}const Ed=c.icon||j?.[Fe]||Sg(Fe);var aa,sa;return F.createElement("li",{tabIndex:0,ref:ot,className:bt(w,li,C?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,C?.default,C?.[Fe],c==null||(n=c.classNames)==null?void 0:n[Fe]),"data-sonner-toast":"","data-rich-colors":(aa=c.richColors)!=null?aa:N,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":m,"data-promise":!!c.promise,"data-swiped":Ke,"data-removed":ae,"data-visible":si,"data-y-position":dt,"data-x-position":Kt,"data-index":y,"data-front":lr,"data-swiping":ve,"data-dismissible":jt,"data-type":Fe,"data-invert":Dt,"data-swipe-out":Re,"data-swipe-direction":xe,"data-expanded":!!(x||O&&m),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":_.length-y,"--offset":`${ae?ai:he.current}px`,"--initial-height":O?"auto":`${ar}px`,...$,...c.style},onDragEnd:()=>{de(!1),g(null),Ue.current=null},onPointerDown:ie=>{ie.button!==2&&(Xe||!jt||(sr.current=new Date,jn(he.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(de(!0),Ue.current={x:ie.clientX,y:ie.clientY})))},onPointerUp:()=>{var ie,Oe,Le;if(Re||!jt)return;Ue.current=null;const Qe=Number(((ie=ot.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ur=Number(((Oe=ot.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),je=new Date().getTime()-((Le=sr.current)==null?void 0:Le.getTime()),at=X==="x"?Qe:ur,cr=Math.abs(at)/je;if(Math.abs(at)>=Hg||cr>.11){jn(he.current),c.onDismiss==null||c.onDismiss.call(c,c),Te(X==="x"?Qe>0?"right":"left":ur>0?"down":"up"),Lt(),Pe(!0);return}else{var ft,pt;(ft=ot.current)==null||ft.style.setProperty("--swipe-amount-x","0px"),(pt=ot.current)==null||pt.style.setProperty("--swipe-amount-y","0px")}Ge(!1),de(!1),g(null)},onPointerMove:ie=>{var Oe,Le,Qe;if(!Ue.current||!jt||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;const je=ie.clientY-Ue.current.y,at=ie.clientX-Ue.current.x;var cr;const ft=(cr=e.swipeDirections)!=null?cr:qg(W);!X&&(Math.abs(at)>1||Math.abs(je)>1)&&g(Math.abs(at)>Math.abs(je)?"x":"y");let pt={x:0,y:0};const la=Gt=>1/(1.5+Math.abs(Gt)/20);if(X==="y"){if(ft.includes("top")||ft.includes("bottom"))if(ft.includes("top")&&je<0||ft.includes("bottom")&&je>0)pt.y=je;else{const Gt=je*la(je);pt.y=Math.abs(Gt)<Math.abs(je)?Gt:je}}else if(X==="x"&&(ft.includes("left")||ft.includes("right")))if(ft.includes("left")&&at<0||ft.includes("right")&&at>0)pt.x=at;else{const Gt=at*la(at);pt.x=Math.abs(Gt)<Math.abs(at)?Gt:at}(Math.abs(pt.x)>0||Math.abs(pt.y)>0)&&Ge(!0),(Le=ot.current)==null||Le.style.setProperty("--swipe-amount-x",`${pt.x}px`),(Qe=ot.current)==null||Qe.style.setProperty("--swipe-amount-y",`${pt.y}px`)}},B&&!c.jsx&&Fe!=="loading"?F.createElement("button",{"aria-label":S,"data-disabled":Xe,"data-close-button":!0,onClick:Xe||!jt?()=>{}:()=>{Lt(),c.onDismiss==null||c.onDismiss.call(c,c)},className:bt(C?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(sa=j?.close)!=null?sa:Rg):null,(Fe||c.icon||c.promise)&&c.icon!==null&&(j?.[Fe]!==null||c.icon)?F.createElement("div",{"data-icon":"",className:bt(C?.icon,c==null||(i=c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Sd():null,c.type!=="loading"?Ed:null):null,F.createElement("div",{"data-content":"",className:bt(C?.content,c==null||(o=c.classNames)==null?void 0:o.content)},F.createElement("div",{"data-title":"",className:bt(C?.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?F.createElement("div",{"data-description":"",className:bt(M,ui,C?.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),F.isValidElement(c.cancel)?c.cancel:c.cancel&&mr(c.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||R,onClick:ie=>{mr(c.cancel)&&jt&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ie),Lt())},className:bt(C?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,F.isValidElement(c.action)?c.action:c.action&&mr(c.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||U,onClick:ie=>{mr(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ie),!ie.defaultPrevented&&Lt())},className:bt(C?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function qa(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Yg(e,t){const n={};return[e,t].forEach((r,i)=>{const o=i===1,a=o?"--mobile-offset":"--offset",s=o?Bg:Zg;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${a}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const LC=F.forwardRef(function(t,n){const{id:r,invert:i,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:d,mobileOffset:c,theme:f="light",richColors:p,duration:h,style:v,visibleToasts:b=Fg,toastOptions:y,dir:_=qa(),gap:x=Ug,icons:z,containerAriaLabel:N="Notifications"}=t,[k,$]=F.useState([]),R=F.useMemo(()=>r?k.filter(m=>m.toasterId===r):k.filter(m=>!m.toasterId),[k,r]),U=F.useMemo(()=>Array.from(new Set([o].concat(R.filter(m=>m.position).map(m=>m.position)))),[R,o]),[w,M]=F.useState([]),[P,W]=F.useState(!1),[Z,O]=F.useState(!1),[C,j]=F.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),S=F.useRef(null),X=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=F.useRef(null),xe=F.useRef(!1),Te=F.useCallback(m=>{$(Q=>{var ae;return(ae=Q.find(ge=>ge.id===m.id))!=null&&ae.delete||We.dismiss(m.id),Q.filter(({id:ge})=>ge!==m.id)})},[]);return F.useEffect(()=>We.subscribe(m=>{if(m.dismiss){requestAnimationFrame(()=>{$(Q=>Q.map(ae=>ae.id===m.id?{...ae,delete:!0}:ae))});return}setTimeout(()=>{Td.flushSync(()=>{$(Q=>{const ae=Q.findIndex(ge=>ge.id===m.id);return ae!==-1?[...Q.slice(0,ae),{...Q[ae],...m},...Q.slice(ae+1)]:[m,...Q]})})})}),[k]),F.useEffect(()=>{if(f!=="system"){j(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window>"u")return;const m=window.matchMedia("(prefers-color-scheme: dark)");try{m.addEventListener("change",({matches:Q})=>{j(Q?"dark":"light")})}catch{m.addListener(({matches:ae})=>{try{j(ae?"dark":"light")}catch(ge){console.error(ge)}})}},[f]),F.useEffect(()=>{k.length<=1&&W(!1)},[k]),F.useEffect(()=>{const m=Q=>{var ae;if(a.every(de=>Q[de]||Q.code===de)){var ve;W(!0),(ve=S.current)==null||ve.focus()}Q.code==="Escape"&&(document.activeElement===S.current||(ae=S.current)!=null&&ae.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[a]),F.useEffect(()=>{if(S.current)return()=>{g.current&&(g.current.focus({preventScroll:!0}),g.current=null,xe.current=!1)}},[S.current]),F.createElement("section",{ref:n,"aria-label":`${N} ${X}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},U.map((m,Q)=>{var ae;const[ge,ve]=m.split("-");return R.length?F.createElement("ol",{key:m,dir:_==="auto"?qa():_,tabIndex:-1,ref:S,className:u,"data-sonner-toaster":!0,"data-sonner-theme":C,"data-y-position":ge,"data-x-position":ve,style:{"--front-toast-height":`${((ae=w[0])==null?void 0:ae.height)||0}px`,"--width":`${Vg}px`,"--gap":`${x}px`,...v,...Yg(d,c)},onBlur:de=>{xe.current&&!de.currentTarget.contains(de.relatedTarget)&&(xe.current=!1,g.current&&(g.current.focus({preventScroll:!0}),g.current=null))},onFocus:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||xe.current||(xe.current=!0,g.current=de.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{Z||W(!1)},onDragEnd:()=>W(!1),onPointerDown:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},R.filter(de=>!de.position&&Q===0||de.position===m).map((de,Re)=>{var Pe,Ke;return F.createElement(Jg,{key:de.id,icons:z,index:Re,toast:de,defaultRichColors:p,duration:(Pe=y?.duration)!=null?Pe:h,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:i,visibleToasts:b,closeButton:(Ke=y?.closeButton)!=null?Ke:l,interacting:Z,position:m,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:Te,toasts:R.filter(Ge=>Ge.position==de.position),heights:w.filter(Ge=>Ge.position==de.position),setHeights:M,expandByDefault:s,gap:x,expanded:P,swipeDirections:t.swipeDirections})})):null}))});function zl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=zl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Kg(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=zl(e))&&(r&&(r+=" "),r+=t);return r}const Ja=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ya=Kg,$C=(e,t)=>n=>{var r;if(t?.variants==null)return Ya(e,n?.class,n?.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(u=>{const d=n?.[u],c=o?.[u];if(d===null)return null;const f=Ja(d)||Ja(c);return i[u][f]}),s=n&&Object.entries(n).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...p}=d;return Object.entries(p).every(h=>{let[v,b]=h;return Array.isArray(b)?b.includes({...o,...s}[v]):{...o,...s}[v]===b})?[...u,c,f]:u},[]);return Ya(e,a,l,n?.class,n?.className)},Gg=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Xg=(e,t)=>({classGroupId:e,validator:t}),Il=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Dr="-",Ka=[],Qg="arbitrary..",ey=e=>{const t=ny(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return ty(a);const s=a.split(Dr),l=s[0]===""&&s.length>1?1:0;return Nl(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=r[a],u=n[a];return l?u?Gg(u,l):l:u||Ka}return n[a]||Ka}}},Nl=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const u=Nl(e,t+1,o);if(u)return u}const a=n.validators;if(a===null)return;const s=t===0?e.join(Dr):e.slice(t).join(Dr),l=a.length;for(let u=0;u<l;u++){const d=a[u];if(d.validator(s))return d.classGroupId}},ty=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Qg+r:void 0})(),ny=e=>{const{theme:t,classGroups:n}=e;return ry(n,t)},ry=(e,t)=>{const n=Il();for(const r in e){const i=e[r];Eo(i,n,r,t)}return n},Eo=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const a=e[o];iy(a,t,n,r)}},iy=(e,t,n,r)=>{if(typeof e=="string"){oy(e,t,n);return}if(typeof e=="function"){ay(e,t,n,r);return}sy(e,t,n,r)},oy=(e,t,n)=>{const r=e===""?t:Rl(t,e);r.classGroupId=n},ay=(e,t,n,r)=>{if(ly(e)){Eo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Xg(n,e))},sy=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let a=0;a<o;a++){const[s,l]=i[a];Eo(l,Rl(t,s),n,r)}},Rl=(e,t)=>{let n=e;const r=t.split(Dr),i=r.length;for(let o=0;o<i;o++){const a=r[o];let s=n.nextPart.get(a);s||(s=Il(),n.nextPart.set(a,s)),n=s}return n},ly=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,uy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=r[o])!==void 0)return i(o,a),a},set(o,a){o in n?n[o]=a:i(o,a)}}},eo="!",Ga=":",cy=[],Xa=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),dy=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let a=0,s=0,l=0,u;const d=i.length;for(let v=0;v<d;v++){const b=i[v];if(a===0&&s===0){if(b===Ga){o.push(i.slice(l,v)),l=v+1;continue}if(b==="/"){u=v;continue}}b==="["?a++:b==="]"?a--:b==="("?s++:b===")"&&s--}const c=o.length===0?i:i.slice(l);let f=c,p=!1;c.endsWith(eo)?(f=c.slice(0,-1),p=!0):c.startsWith(eo)&&(f=c.slice(1),p=!0);const h=u&&u>l?u-l:void 0;return Xa(o,p,f,h)};if(t){const i=t+Ga,o=r;r=a=>a.startsWith(i)?o(a.slice(i.length)):Xa(cy,!1,a,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},fy=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const a=n[o],s=a[0]==="[",l=t.has(a);s||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},py=e=>({cache:uy(e.cacheSize),parseClassName:dy(e),sortModifiers:fy(e),...ey(e)}),hy=/\s+/,my=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(hy);let l="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:c,modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:v}=n(d);if(c){l=d+(l.length>0?" "+l:l);continue}let b=!!v,y=r(b?h.substring(0,v):h);if(!y){if(!b){l=d+(l.length>0?" "+l:l);continue}if(y=r(h),!y){l=d+(l.length>0?" "+l:l);continue}b=!1}const _=f.length===0?"":f.length===1?f[0]:o(f).join(":"),x=p?_+eo:_,z=x+y;if(a.indexOf(z)>-1)continue;a.push(z);const N=i(y,b);for(let k=0;k<N.length;++k){const $=N[k];a.push(x+$)}l=d+(l.length>0?" "+l:l)}return l},gy=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Ol(n))&&(i&&(i+=" "),i+=r);return i},Ol=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ol(e[r]))&&(n&&(n+=" "),n+=t);return n},yy=(e,...t)=>{let n,r,i,o;const a=l=>{const u=t.reduce((d,c)=>c(d),e());return n=py(u),r=n.cache.get,i=n.cache.set,o=s,s(l)},s=l=>{const u=r(l);if(u)return u;const d=my(l,n);return i(l,d),d};return o=a,(...l)=>o(gy(...l))},vy=[],Ne=e=>{const t=n=>n[e]||vy;return t.isThemeGetter=!0,t},jl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,by=/^\d+\/\d+$/,xy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ky=/\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$/,wy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_y=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=e=>by.test(e),ue=e=>!!e&&!Number.isNaN(Number(e)),$t=e=>!!e&&Number.isInteger(Number(e)),mi=e=>e.endsWith("%")&&ue(e.slice(0,-1)),Tt=e=>xy.test(e),Sy=()=>!0,Ey=e=>ky.test(e)&&!wy.test(e),Dl=()=>!1,Ty=e=>_y.test(e),Ay=e=>Cy.test(e),zy=e=>!q(e)&&!J(e),Iy=e=>Tn(e,Ml,Dl),q=e=>jl.test(e),Xt=e=>Tn(e,Fl,Ey),gi=e=>Tn(e,Py,ue),Qa=e=>Tn(e,Ll,Dl),Ny=e=>Tn(e,$l,Ay),gr=e=>Tn(e,Zl,Ty),J=e=>Pl.test(e),Dn=e=>An(e,Fl),Ry=e=>An(e,Dy),es=e=>An(e,Ll),Oy=e=>An(e,Ml),jy=e=>An(e,$l),yr=e=>An(e,Zl,!0),Tn=(e,t,n)=>{const r=jl.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},An=(e,t,n=!1)=>{const r=Pl.exec(e);return r?r[1]?t(r[1]):n:!1},Ll=e=>e==="position"||e==="percentage",$l=e=>e==="image"||e==="url",Ml=e=>e==="length"||e==="size"||e==="bg-size",Fl=e=>e==="length",Py=e=>e==="number",Dy=e=>e==="family-name",Zl=e=>e==="shadow",Ly=()=>{const e=Ne("color"),t=Ne("font"),n=Ne("text"),r=Ne("font-weight"),i=Ne("tracking"),o=Ne("leading"),a=Ne("breakpoint"),s=Ne("container"),l=Ne("spacing"),u=Ne("radius"),d=Ne("shadow"),c=Ne("inset-shadow"),f=Ne("text-shadow"),p=Ne("drop-shadow"),h=Ne("blur"),v=Ne("perspective"),b=Ne("aspect"),y=Ne("ease"),_=Ne("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...z(),J,q],k=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],R=()=>[J,q,l],U=()=>[ln,"full","auto",...R()],w=()=>[$t,"none","subgrid",J,q],M=()=>["auto",{span:["full",$t,J,q]},$t,J,q],P=()=>[$t,"auto",J,q],W=()=>["auto","min","max","fr",J,q],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...R()],j=()=>[ln,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],S=()=>[e,J,q],X=()=>[...z(),es,Qa,{position:[J,q]}],g=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xe=()=>["auto","cover","contain",Oy,Iy,{size:[J,q]}],Te=()=>[mi,Dn,Xt],m=()=>["","none","full",u,J,q],Q=()=>["",ue,Dn,Xt],ae=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[ue,mi,es,Qa],de=()=>["","none",h,J,q],Re=()=>["none",ue,J,q],Pe=()=>["none",ue,J,q],Ke=()=>[ue,J,q],Ge=()=>[ln,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tt],breakpoint:[Tt],color:[Sy],container:[Tt],"drop-shadow":[Tt],ease:["in","out","in-out"],font:[zy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tt],shadow:[Tt],spacing:["px",ue],text:[Tt],"text-shadow":[Tt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ln,q,J,b]}],container:["container"],columns:[{columns:[ue,q,J,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[$t,"auto",J,q]}],basis:[{basis:[ln,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ue,ln,"auto","initial","none",q]}],grow:[{grow:["",ue,J,q]}],shrink:[{shrink:["",ue,J,q]}],order:[{order:[$t,"first","last","none",J,q]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Dn,Xt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,J,gi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mi,q]}],"font-family":[{font:[Ry,q,t]}],"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:[i,J,q]}],"line-clamp":[{"line-clamp":[ue,"none",J,gi]}],leading:[{leading:[o,...R()]}],"list-image":[{"list-image":["none",J,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[ue,"from-font","auto",J,Xt]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[ue,"auto",J,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:g()}],"bg-size":[{bg:xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$t,J,q],radial:["",J,q],conic:[$t,J,q]},jy,Ny]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:m()}],"rounded-s":[{"rounded-s":m()}],"rounded-e":[{"rounded-e":m()}],"rounded-t":[{"rounded-t":m()}],"rounded-r":[{"rounded-r":m()}],"rounded-b":[{"rounded-b":m()}],"rounded-l":[{"rounded-l":m()}],"rounded-ss":[{"rounded-ss":m()}],"rounded-se":[{"rounded-se":m()}],"rounded-ee":[{"rounded-ee":m()}],"rounded-es":[{"rounded-es":m()}],"rounded-tl":[{"rounded-tl":m()}],"rounded-tr":[{"rounded-tr":m()}],"rounded-br":[{"rounded-br":m()}],"rounded-bl":[{"rounded-bl":m()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ue,J,q]}],"outline-w":[{outline:["",ue,Dn,Xt]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",d,yr,gr]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",c,yr,gr]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[ue,Xt]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",f,yr,gr]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[ue,J,q]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:g()}],"mask-size":[{mask:xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,q]}],filter:[{filter:["","none",J,q]}],blur:[{blur:de()}],brightness:[{brightness:[ue,J,q]}],contrast:[{contrast:[ue,J,q]}],"drop-shadow":[{"drop-shadow":["","none",p,yr,gr]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",ue,J,q]}],"hue-rotate":[{"hue-rotate":[ue,J,q]}],invert:[{invert:["",ue,J,q]}],saturate:[{saturate:[ue,J,q]}],sepia:[{sepia:["",ue,J,q]}],"backdrop-filter":[{"backdrop-filter":["","none",J,q]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[ue,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[ue,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ue,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ue,J,q]}],"backdrop-invert":[{"backdrop-invert":["",ue,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[ue,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[ue,J,q]}],"backdrop-sepia":[{"backdrop-sepia":["",ue,J,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ue,"initial",J,q]}],ease:[{ease:["linear","initial",y,J,q]}],delay:[{delay:[ue,J,q]}],animate:[{animate:["none",_,J,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,J,q]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:Pe()}],"scale-x":[{"scale-x":Pe()}],"scale-y":[{"scale-y":Pe()}],"scale-z":[{"scale-z":Pe()}],"scale-3d":["scale-3d"],skew:[{skew:Ke()}],"skew-x":[{"skew-x":Ke()}],"skew-y":[{"skew-y":Ke()}],transform:[{transform:[J,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,q]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[ue,Dn,Xt,gi]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},MC=yy(Ly),$y=["top","right","bottom","left"],Ht=Math.min,tt=Math.max,Lr=Math.round,vr=Math.floor,wt=e=>({x:e,y:e}),My={left:"right",right:"left",bottom:"top",top:"bottom"},Fy={start:"end",end:"start"};function to(e,t,n){return tt(e,Ht(t,n))}function It(e,t){return typeof e=="function"?e(t):e}function Nt(e){return e.split("-")[0]}function zn(e){return e.split("-")[1]}function To(e){return e==="x"?"y":"x"}function Ao(e){return e==="y"?"height":"width"}const Zy=new Set(["top","bottom"]);function kt(e){return Zy.has(Nt(e))?"y":"x"}function zo(e){return To(kt(e))}function By(e,t,n){n===void 0&&(n=!1);const r=zn(e),i=zo(e),o=Ao(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=$r(a)),[a,$r(a)]}function Vy(e){const t=$r(e);return[no(e),t,no(t)]}function no(e){return e.replace(/start|end/g,t=>Fy[t])}const ts=["left","right"],ns=["right","left"],Uy=["top","bottom"],Hy=["bottom","top"];function Wy(e,t,n){switch(e){case"top":case"bottom":return n?t?ns:ts:t?ts:ns;case"left":case"right":return t?Uy:Hy;default:return[]}}function qy(e,t,n,r){const i=zn(e);let o=Wy(Nt(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(no)))),o}function $r(e){return e.replace(/left|right|bottom|top/g,t=>My[t])}function Jy(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bl(e){return typeof e!="number"?Jy(e):{top:e,right:e,bottom:e,left:e}}function Mr(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function rs(e,t,n){let{reference:r,floating:i}=e;const o=kt(t),a=zo(t),s=Ao(a),l=Nt(t),u=o==="y",d=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-i.width,y:c};break;default:p={x:r.x,y:r.y}}switch(zn(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const Yy=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=rs(u,r,l),f=r,p={},h=0;for(let v=0;v<s.length;v++){const{name:b,fn:y}=s[v],{x:_,y:x,data:z,reset:N}=await y({x:d,y:c,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=_??d,c=x??c,p={...p,[b]:{...p[b],...z}},N&&h<=50&&(h++,typeof N=="object"&&(N.placement&&(f=N.placement),N.rects&&(u=N.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):N.rects),{x:d,y:c}=rs(u,f,l)),v=-1)}return{x:d,y:c,placement:f,strategy:i,middlewareData:p}};async function Kn(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=It(t,e),h=Bl(p),b=s[f?c==="floating"?"reference":"floating":c],y=Mr(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),_=c==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),z=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},N=Mr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:x,strategy:l}):_);return{top:(y.top-N.top+h.top)/z.y,bottom:(N.bottom-y.bottom+h.bottom)/z.y,left:(y.left-N.left+h.left)/z.x,right:(N.right-y.right+h.right)/z.x}}const Ky=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=It(e,t)||{};if(u==null)return{};const c=Bl(d),f={x:n,y:r},p=zo(i),h=Ao(p),v=await a.getDimensions(u),b=p==="y",y=b?"top":"left",_=b?"bottom":"right",x=b?"clientHeight":"clientWidth",z=o.reference[h]+o.reference[p]-f[p]-o.floating[h],N=f[p]-o.reference[p],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let $=k?k[x]:0;(!$||!await(a.isElement==null?void 0:a.isElement(k)))&&($=s.floating[x]||o.floating[h]);const R=z/2-N/2,U=$/2-v[h]/2-1,w=Ht(c[y],U),M=Ht(c[_],U),P=w,W=$-v[h]-M,Z=$/2-v[h]/2+R,O=to(P,Z,W),C=!l.arrow&&zn(i)!=null&&Z!==O&&o.reference[h]/2-(Z<P?w:M)-v[h]/2<0,j=C?Z<P?Z-P:Z-W:0;return{[p]:f[p]+j,data:{[p]:O,centerOffset:Z-O-j,...C&&{alignmentOffset:j}},reset:C}}}),Gy=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...b}=It(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=Nt(i),_=kt(s),x=Nt(s)===s,z=await(l.isRTL==null?void 0:l.isRTL(u.floating)),N=f||(x||!v?[$r(s)]:Vy(s)),k=h!=="none";!f&&k&&N.push(...qy(s,v,h,z));const $=[s,...N],R=await Kn(t,b),U=[];let w=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&U.push(R[y]),c){const Z=By(i,a,z);U.push(R[Z[0]],R[Z[1]])}if(w=[...w,{placement:i,overflows:U}],!U.every(Z=>Z<=0)){var M,P;const Z=(((M=o.flip)==null?void 0:M.index)||0)+1,O=$[Z];if(O&&(!(c==="alignment"?_!==kt(O):!1)||w.every(S=>kt(S.placement)===_?S.overflows[0]>0:!0)))return{data:{index:Z,overflows:w},reset:{placement:O}};let C=(P=w.filter(j=>j.overflows[0]<=0).sort((j,S)=>j.overflows[1]-S.overflows[1])[0])==null?void 0:P.placement;if(!C)switch(p){case"bestFit":{var W;const j=(W=w.filter(S=>{if(k){const X=kt(S.placement);return X===_||X==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(X=>X>0).reduce((X,g)=>X+g,0)]).sort((S,X)=>S[1]-X[1])[0])==null?void 0:W[0];j&&(C=j);break}case"initialPlacement":C=s;break}if(i!==C)return{reset:{placement:C}}}return{}}}};function is(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function os(e){return $y.some(t=>e[t]>=0)}const Xy=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=It(e,t);switch(r){case"referenceHidden":{const o=await Kn(t,{...i,elementContext:"reference"}),a=is(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:os(a)}}}case"escaped":{const o=await Kn(t,{...i,altBoundary:!0}),a=is(o,n.floating);return{data:{escapedOffsets:a,escaped:os(a)}}}default:return{}}}}},Vl=new Set(["left","top"]);async function Qy(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Nt(n),s=zn(n),l=kt(n)==="y",u=Vl.has(a)?-1:1,d=o&&l?-1:1,c=It(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const ev=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await Qy(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},tv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:_}=b;return{x:y,y:_}}},...l}=It(e,t),u={x:n,y:r},d=await Kn(t,l),c=kt(Nt(i)),f=To(c);let p=u[f],h=u[c];if(o){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",_=p+d[b],x=p-d[y];p=to(_,p,x)}if(a){const b=c==="y"?"top":"left",y=c==="y"?"bottom":"right",_=h+d[b],x=h-d[y];h=to(_,h,x)}const v=s.fn({...t,[f]:p,[c]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:o,[c]:a}}}}}},nv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=It(e,t),d={x:n,y:r},c=kt(i),f=To(c);let p=d[f],h=d[c];const v=It(s,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const x=f==="y"?"height":"width",z=o.reference[f]-o.floating[x]+b.mainAxis,N=o.reference[f]+o.reference[x]-b.mainAxis;p<z?p=z:p>N&&(p=N)}if(u){var y,_;const x=f==="y"?"width":"height",z=Vl.has(Nt(i)),N=o.reference[c]-o.floating[x]+(z&&((y=a.offset)==null?void 0:y[c])||0)+(z?0:b.crossAxis),k=o.reference[c]+o.reference[x]+(z?0:((_=a.offset)==null?void 0:_[c])||0)-(z?b.crossAxis:0);h<N?h=N:h>k&&(h=k)}return{[f]:p,[c]:h}}}},rv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=It(e,t),d=await Kn(t,u),c=Nt(i),f=zn(i),p=kt(i)==="y",{width:h,height:v}=o.floating;let b,y;c==="top"||c==="bottom"?(b=c,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,b=f==="end"?"top":"bottom");const _=v-d.top-d.bottom,x=h-d.left-d.right,z=Ht(v-d[b],_),N=Ht(h-d[y],x),k=!t.middlewareData.shift;let $=z,R=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&($=_),k&&!f){const w=tt(d.left,0),M=tt(d.right,0),P=tt(d.top,0),W=tt(d.bottom,0);p?R=h-2*(w!==0||M!==0?w+M:tt(d.left,d.right)):$=v-2*(P!==0||W!==0?P+W:tt(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:$});const U=await a.getDimensions(s.floating);return h!==U.width||v!==U.height?{reset:{rects:!0}}:{}}}};function Kr(){return typeof window<"u"}function In(e){return Ul(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function St(e){var t;return(t=(Ul(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ul(e){return Kr()?e instanceof Node||e instanceof nt(e).Node:!1}function gt(e){return Kr()?e instanceof Element||e instanceof nt(e).Element:!1}function Ct(e){return Kr()?e instanceof HTMLElement||e instanceof nt(e).HTMLElement:!1}function as(e){return!Kr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot}const iv=new Set(["inline","contents"]);function nr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!iv.has(i)}const ov=new Set(["table","td","th"]);function av(e){return ov.has(In(e))}const sv=[":popover-open",":modal"];function Gr(e){return sv.some(t=>{try{return e.matches(t)}catch{return!1}})}const lv=["transform","translate","scale","rotate","perspective"],uv=["transform","translate","scale","rotate","perspective","filter"],cv=["paint","layout","strict","content"];function Io(e){const t=No(),n=gt(e)?yt(e):e;return lv.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||uv.some(r=>(n.willChange||"").includes(r))||cv.some(r=>(n.contain||"").includes(r))}function dv(e){let t=Wt(e);for(;Ct(t)&&!Sn(t);){if(Io(t))return t;if(Gr(t))return null;t=Wt(t)}return null}function No(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fv=new Set(["html","body","#document"]);function Sn(e){return fv.has(In(e))}function yt(e){return nt(e).getComputedStyle(e)}function Xr(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wt(e){if(In(e)==="html")return e;const t=e.assignedSlot||e.parentNode||as(e)&&e.host||St(e);return as(t)?t.host:t}function Hl(e){const t=Wt(e);return Sn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ct(t)&&nr(t)?t:Hl(t)}function Gn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Hl(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=nt(i);if(o){const s=ro(a);return t.concat(a,a.visualViewport||[],nr(i)?i:[],s&&n?Gn(s):[])}return t.concat(i,Gn(i,[],n))}function ro(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wl(e){const t=yt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ct(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Lr(n)!==o||Lr(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Ro(e){return gt(e)?e:e.contextElement}function yn(e){const t=Ro(e);if(!Ct(t))return wt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Wl(t);let a=(o?Lr(n.width):n.width)/r,s=(o?Lr(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const pv=wt(0);function ql(e){const t=nt(e);return!No()||!t.visualViewport?pv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==nt(e)?!1:t}function tn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Ro(e);let a=wt(1);t&&(r?gt(r)&&(a=yn(r)):a=yn(e));const s=hv(o,n,r)?ql(o):wt(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,d=i.width/a.x,c=i.height/a.y;if(o){const f=nt(o),p=r&&gt(r)?nt(r):r;let h=f,v=ro(h);for(;v&&r&&p!==h;){const b=yn(v),y=v.getBoundingClientRect(),_=yt(v),x=y.left+(v.clientLeft+parseFloat(_.paddingLeft))*b.x,z=y.top+(v.clientTop+parseFloat(_.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,c*=b.y,l+=x,u+=z,h=nt(v),v=ro(h)}}return Mr({width:d,height:c,x:l,y:u})}function Qr(e,t){const n=Xr(e).scrollLeft;return t?t.left+n:tn(St(e)).left+n}function Jl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Qr(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function mv(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=St(r),s=t?Gr(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=wt(1);const d=wt(0),c=Ct(r);if((c||!c&&!o)&&((In(r)!=="body"||nr(a))&&(l=Xr(r)),Ct(r))){const p=tn(r);u=yn(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=a&&!c&&!o?Jl(a,l):wt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function gv(e){return Array.from(e.getClientRects())}function yv(e){const t=St(e),n=Xr(e),r=e.ownerDocument.body,i=tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Qr(e);const s=-n.scrollTop;return yt(r).direction==="rtl"&&(a+=tt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}const ss=25;function vv(e,t){const n=nt(e),r=St(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const d=No();(!d||d&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const u=Qr(r);if(u<=0){const d=r.ownerDocument,c=d.body,f=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(r.clientWidth-c.clientWidth-p);h<=ss&&(o-=h)}else u<=ss&&(o+=u);return{width:o,height:a,x:s,y:l}}const bv=new Set(["absolute","fixed"]);function xv(e,t){const n=tn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ct(e)?yn(e):wt(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function ls(e,t,n){let r;if(t==="viewport")r=vv(e,n);else if(t==="document")r=yv(St(e));else if(gt(t))r=xv(t,n);else{const i=ql(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Mr(r)}function Yl(e,t){const n=Wt(e);return n===t||!gt(n)||Sn(n)?!1:yt(n).position==="fixed"||Yl(n,t)}function kv(e,t){const n=t.get(e);if(n)return n;let r=Gn(e,[],!1).filter(s=>gt(s)&&In(s)!=="body"),i=null;const o=yt(e).position==="fixed";let a=o?Wt(e):e;for(;gt(a)&&!Sn(a);){const s=yt(a),l=Io(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&bv.has(i.position)||nr(a)&&!l&&Yl(e,a))?r=r.filter(d=>d!==a):i=s,a=Wt(a)}return t.set(e,r),r}function wv(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Gr(t)?[]:kv(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const c=ls(t,d,i);return u.top=tt(c.top,u.top),u.right=Ht(c.right,u.right),u.bottom=Ht(c.bottom,u.bottom),u.left=tt(c.left,u.left),u},ls(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _v(e){const{width:t,height:n}=Wl(e);return{width:t,height:n}}function Cv(e,t,n){const r=Ct(t),i=St(t),o=n==="fixed",a=tn(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=wt(0);function u(){l.x=Qr(i)}if(r||!r&&!o)if((In(t)!=="body"||nr(i))&&(s=Xr(t)),r){const p=tn(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&u();o&&!r&&i&&u();const d=i&&!r&&!o?Jl(i,s):wt(0),c=a.left+s.scrollLeft-l.x-d.x,f=a.top+s.scrollTop-l.y-d.y;return{x:c,y:f,width:a.width,height:a.height}}function yi(e){return yt(e).position==="static"}function us(e,t){if(!Ct(e)||yt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return St(e)===n&&(n=n.ownerDocument.body),n}function Kl(e,t){const n=nt(e);if(Gr(e))return n;if(!Ct(e)){let i=Wt(e);for(;i&&!Sn(i);){if(gt(i)&&!yi(i))return i;i=Wt(i)}return n}let r=us(e,t);for(;r&&av(r)&&yi(r);)r=us(r,t);return r&&Sn(r)&&yi(r)&&!Io(r)?n:r||dv(e)||n}const Sv=async function(e){const t=this.getOffsetParent||Kl,n=this.getDimensions,r=await n(e.floating);return{reference:Cv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ev(e){return yt(e).direction==="rtl"}const Tv={convertOffsetParentRelativeRectToViewportRelativeRect:mv,getDocumentElement:St,getClippingRect:wv,getOffsetParent:Kl,getElementRects:Sv,getClientRects:gv,getDimensions:_v,getScale:yn,isElement:gt,isRTL:Ev};function Gl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Av(e,t){let n=null,r;const i=St(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:d,top:c,width:f,height:p}=u;if(s||t(),!f||!p)return;const h=vr(c),v=vr(i.clientWidth-(d+f)),b=vr(i.clientHeight-(c+p)),y=vr(d),x={rootMargin:-h+"px "+-v+"px "+-b+"px "+-y+"px",threshold:tt(0,Ht(1,l))||1};let z=!0;function N(k){const $=k[0].intersectionRatio;if($!==l){if(!z)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}$===1&&!Gl(u,e.getBoundingClientRect())&&a(),z=!1}try{n=new IntersectionObserver(N,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,x)}n.observe(e)}return a(!0),o}function FC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Ro(e),d=i||o?[...u?Gn(u):[],...Gn(t)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const c=u&&s?Av(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[_]=y;_&&_.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let h,v=l?tn(e):null;l&&b();function b(){const y=tn(e);v&&!Gl(v,y)&&n(),v=y,h=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),c?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const zv=ev,Iv=tv,Nv=Gy,Rv=rv,Ov=Xy,cs=Ky,jv=nv,Pv=(e,t,n)=>{const r=new Map,i={platform:Tv,...n},o={...i.platform,_c:r};return Yy(e,t,{...i,platform:o})};var Dv=typeof document<"u",Lv=function(){},Er=Dv?V.useLayoutEffect:Lv;function Fr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Fr(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Fr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Xl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ds(e,t){const n=Xl(e);return Math.round(t*n)/n}function vi(e){const t=V.useRef(e);return Er(()=>{t.current=e}),t}function ZC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,c]=V.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=V.useState(r);Fr(f,r)||p(r);const[h,v]=V.useState(null),[b,y]=V.useState(null),_=V.useCallback(S=>{S!==k.current&&(k.current=S,v(S))},[]),x=V.useCallback(S=>{S!==$.current&&($.current=S,y(S))},[]),z=o||h,N=a||b,k=V.useRef(null),$=V.useRef(null),R=V.useRef(d),U=l!=null,w=vi(l),M=vi(i),P=vi(u),W=V.useCallback(()=>{if(!k.current||!$.current)return;const S={placement:t,strategy:n,middleware:f};M.current&&(S.platform=M.current),Pv(k.current,$.current,S).then(X=>{const g={...X,isPositioned:P.current!==!1};Z.current&&!Fr(R.current,g)&&(R.current=g,Ad.flushSync(()=>{c(g)}))})},[f,t,n,M,P]);Er(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,c(S=>({...S,isPositioned:!1})))},[u]);const Z=V.useRef(!1);Er(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Er(()=>{if(z&&(k.current=z),N&&($.current=N),z&&N){if(w.current)return w.current(z,N,W);W()}},[z,N,W,w,U]);const O=V.useMemo(()=>({reference:k,floating:$,setReference:_,setFloating:x}),[_,x]),C=V.useMemo(()=>({reference:z,floating:N}),[z,N]),j=V.useMemo(()=>{const S={position:n,left:0,top:0};if(!C.floating)return S;const X=ds(C.floating,d.x),g=ds(C.floating,d.y);return s?{...S,transform:"translate("+X+"px, "+g+"px)",...Xl(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:g}},[n,s,C.floating,d.x,d.y]);return V.useMemo(()=>({...d,update:W,refs:O,elements:C,floatingStyles:j}),[d,W,O,C,j])}const $v=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?cs({element:r.current,padding:i}).fn(n):{}:r?cs({element:r,padding:i}).fn(n):{}}}},BC=(e,t)=>({...zv(e),options:[e,t]}),VC=(e,t)=>({...Iv(e),options:[e,t]}),UC=(e,t)=>({...jv(e),options:[e,t]}),HC=(e,t)=>({...Nv(e),options:[e,t]}),WC=(e,t)=>({...Rv(e),options:[e,t]}),qC=(e,t)=>({...Ov(e),options:[e,t]}),JC=(e,t)=>({...$v(e),options:[e,t]});var Mv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},un=new WeakMap,br=new WeakMap,xr={},bi=0,Ql=function(e){return e&&(e.host||Ql(e.parentNode))},Fv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ql(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Zv=function(e,t,n,r){var i=Fv(t,Array.isArray(e)?e:[e]);xr[n]||(xr[n]=new WeakMap);var o=xr[n],a=[],s=new Set,l=new Set(i),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};i.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(s.has(f))d(f);else try{var p=f.getAttribute(r),h=p!==null&&p!=="false",v=(un.get(f)||0)+1,b=(o.get(f)||0)+1;un.set(f,v),o.set(f,b),a.push(f),v===1&&h&&br.set(f,!0),b===1&&f.setAttribute(n,"true"),h||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return d(t),s.clear(),bi++,function(){a.forEach(function(c){var f=un.get(c)-1,p=o.get(c)-1;un.set(c,f),o.set(c,p),f||(br.has(c)||c.removeAttribute(r),br.delete(c)),p||c.removeAttribute(n)}),bi--,bi||(un=new WeakMap,un=new WeakMap,br=new WeakMap,xr={})}},YC=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Mv(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Zv(r,i,n,"aria-hidden")):function(){return null}},Zr=function(){return Zr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Zr.apply(this,arguments)};function Bv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function KC(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function xi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vv(e,t){var n=V.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Uv=typeof window<"u"?V.useLayoutEffect:V.useEffect,fs=new WeakMap;function GC(e,t){var n=Vv(null,function(r){return e.forEach(function(i){return xi(i,r)})});return Uv(function(){var r=fs.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(s){o.has(s)||xi(s,null)}),o.forEach(function(s){i.has(s)||xi(s,a)})}fs.set(n,e)},[e]),n}function Hv(e){return e}function Wv(e,t){t===void 0&&(t=Hv);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(s){return o(s)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(o),a=n}var l=function(){var d=a;a=[],d.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return i}function XC(e){e===void 0&&(e={});var t=Wv(null);return t.options=Zr({async:!0,ssr:!1},e),t}var eu=function(e){var t=e.sideCar,n=Bv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return V.createElement(r,Zr({},n))};eu.isSideCarExport=!0;function QC(e,t){return e.useMedium(t),eu}var eS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tS(){}function qv(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Jv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kv={};function ps(e,t){return(Kv.jsx?Yv:Jv).test(e)}const Gv=/[ \t\n\f\r]/g;function Xv(e){return typeof e=="object"?e.type==="text"?hs(e.value):!1:hs(e)}function hs(e){return e.replace(Gv,"")===""}class rr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}rr.prototype.normal={};rr.prototype.property={};rr.prototype.space=void 0;function tu(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new rr(n,r,t)}function io(e){return e.toLowerCase()}class Je{constructor(t,n){this.attribute=n,this.property=t}}Je.prototype.attribute="";Je.prototype.booleanish=!1;Je.prototype.boolean=!1;Je.prototype.commaOrSpaceSeparated=!1;Je.prototype.commaSeparated=!1;Je.prototype.defined=!1;Je.prototype.mustUseProperty=!1;Je.prototype.number=!1;Je.prototype.overloadedBoolean=!1;Je.prototype.property="";Je.prototype.spaceSeparated=!1;Je.prototype.space=void 0;let Qv=0;const oe=an(),Ie=an(),oo=an(),D=an(),_e=an(),vn=an(),et=an();function an(){return 2**++Qv}const ao=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Ie,commaOrSpaceSeparated:et,commaSeparated:vn,number:D,overloadedBoolean:oo,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),ki=Object.keys(ao);class Oo extends Je{constructor(t,n,r,i){let o=-1;if(super(t,n),ms(this,"space",i),typeof r=="number")for(;++o<ki.length;){const a=ki[o];ms(this,ki[o],(r&ao[a])===ao[a])}}}Oo.prototype.defined=!0;function ms(e,t,n){n&&(e[t]=n)}function Nn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Oo(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[io(r)]=r,n[io(o.attribute)]=r}return new rr(t,n,e.space)}const nu=Nn({properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:_e,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:D,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:_e,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:Ie,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ru(e,t){return t in e?e[t]:t}function iu(e,t){return ru(e,t.toLowerCase())}const eb=Nn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vn,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:_e,autoFocus:oe,autoPlay:oe,blocking:_e,capture:null,charSet:null,checked:oe,cite:null,className:_e,cols:D,colSpan:null,content:null,contentEditable:Ie,controls:oe,controlsList:_e,coords:D|vn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:oo,draggable:Ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:_e,height:D,hidden:oo,high:D,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:_e,itemRef:_e,itemScope:oe,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:oe,optimum:D,pattern:null,ping:_e,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:_e,required:oe,reversed:oe,rows:D,rowSpan:D,sandbox:_e,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:Ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Ie,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:Ie,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:iu}),tb=Nn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:et,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:_e,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:vn,g2:vn,glyphName:vn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:D,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ru}),ou=Nn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),au=Nn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:iu}),su=Nn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nb={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},rb=/[A-Z]/g,gs=/-[a-z]/g,ib=/^data[-\w.:]+$/i;function ob(e,t){const n=io(t);let r=t,i=Je;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ib.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(gs,sb);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!gs.test(o)){let a=o.replace(rb,ab);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Oo}return new i(r,t)}function ab(e){return"-"+e.toLowerCase()}function sb(e){return e.charAt(1).toUpperCase()}const lb=tu([nu,eb,ou,au,su],"html"),jo=tu([nu,tb,ou,au,su],"svg");function ub(e){return e.join(" ").trim()}var cn={},wi,ys;function cb(){if(ys)return wi;ys=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
21
- `,u="/",d="*",c="",f="comment",p="declaration";function h(b,y){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];y=y||{};var _=1,x=1;function z(Z){var O=Z.match(t);O&&(_+=O.length);var C=Z.lastIndexOf(l);x=~C?Z.length-C:x+Z.length}function N(){var Z={line:_,column:x};return function(O){return O.position=new k(Z),U(),O}}function k(Z){this.start=Z,this.end={line:_,column:x},this.source=y.source}k.prototype.content=b;function $(Z){var O=new Error(y.source+":"+_+":"+x+": "+Z);if(O.reason=Z,O.filename=y.source,O.line=_,O.column=x,O.source=b,!y.silent)throw O}function R(Z){var O=Z.exec(b);if(O){var C=O[0];return z(C),b=b.slice(C.length),O}}function U(){R(n)}function w(Z){var O;for(Z=Z||[];O=M();)O!==!1&&Z.push(O);return Z}function M(){var Z=N();if(!(u!=b.charAt(0)||d!=b.charAt(1))){for(var O=2;c!=b.charAt(O)&&(d!=b.charAt(O)||u!=b.charAt(O+1));)++O;if(O+=2,c===b.charAt(O-1))return $("End of comment missing");var C=b.slice(2,O-2);return x+=2,z(C),b=b.slice(O),x+=2,Z({type:f,comment:C})}}function P(){var Z=N(),O=R(r);if(O){if(M(),!R(i))return $("property missing ':'");var C=R(o),j=Z({type:p,property:v(O[0].replace(e,c)),value:C?v(C[0].replace(e,c)):c});return R(a),j}}function W(){var Z=[];w(Z);for(var O;O=P();)O!==!1&&(Z.push(O),w(Z));return Z}return U(),W()}function v(b){return b?b.replace(s,c):c}return wi=h,wi}var vs;function db(){if(vs)return cn;vs=1;var e=cn&&cn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=n;const t=e(cb());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const a=(0,t.default)(r),s=typeof i=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:d}=l;s?i(u,d,l):d&&(o=o||{},o[u]=d)}),o}return cn}var Ln={},bs;function fb(){if(bs)return Ln;bs=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},a=function(u,d){return d.toUpperCase()},s=function(u,d){return"".concat(d,"-")},l=function(u,d){return d===void 0&&(d={}),o(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(i,s):u=u.replace(r,s),u.replace(t,a))};return Ln.camelCase=l,Ln}var $n,xs;function pb(){if(xs)return $n;xs=1;var e=$n&&$n.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(db()),n=fb();function r(i,o){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(a[(0,n.camelCase)(s,o)]=l)}),a}return r.default=r,$n=r,$n}var hb=pb();const mb=el(hb),lu=uu("end"),Po=uu("start");function uu(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function gb(e){const t=Po(e),n=lu(e);if(t&&n)return{start:t,end:n}}function Vn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ks(e.position):"start"in e||"end"in e?ks(e):"line"in e||"column"in e?so(e):""}function so(e){return ws(e&&e.line)+":"+ws(e&&e.column)}function ks(e){return so(e&&e.start)+"-"+so(e&&e.end)}function ws(e){return e&&typeof e=="number"?e:1}class Me extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Vn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Me.prototype.file="";Me.prototype.name="";Me.prototype.reason="";Me.prototype.message="";Me.prototype.stack="";Me.prototype.column=void 0;Me.prototype.line=void 0;Me.prototype.ancestors=void 0;Me.prototype.cause=void 0;Me.prototype.fatal=void 0;Me.prototype.place=void 0;Me.prototype.ruleId=void 0;Me.prototype.source=void 0;const Do={}.hasOwnProperty,yb=new Map,vb=/[A-Z]/g,bb=new Set(["table","tbody","thead","tfoot","tr"]),xb=new Set(["td","th"]),cu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nS(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ab(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Tb(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?jo:lb,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=du(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function du(e,t,n){if(t.type==="element")return kb(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return wb(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Cb(e,t,n);if(t.type==="mdxjsEsm")return _b(e,t);if(t.type==="root")return Sb(e,t,n);if(t.type==="text")return Eb(e,t)}function kb(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=jo,e.schema=i),e.ancestors.push(t);const o=pu(e,t.tagName,!1),a=zb(e,t);let s=$o(e,t);return bb.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!Xv(l):!0})),fu(e,a,o,t),Lo(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function wb(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Xn(e,t.position)}function _b(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xn(e,t.position)}function Cb(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=jo,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:pu(e,t.name,!0),a=Ib(e,t),s=$o(e,t);return fu(e,a,o,t),Lo(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Sb(e,t,n){const r={};return Lo(r,$o(e,t)),e.create(t,e.Fragment,r,n)}function Eb(e,t){return t.value}function fu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Lo(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Tb(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function Ab(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Po(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function zb(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Do.call(t.properties,i)){const o=Nb(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&xb.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ib(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Xn(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Xn(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function $o(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:yb;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;a=l+"-"+u,i.set(l,u+1)}}const s=du(e,o,a);s!==void 0&&n.push(s)}return n}function Nb(e,t,n){const r=ob(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qv(n):ub(n)),r.property==="style"){let i=typeof n=="object"?n:Rb(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Ob(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?nb[r.property]||r.property:r.attribute,n]}}function Rb(e,t){try{return mb(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Me("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=cu+"#cannot-parse-style-attribute",i}}function pu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=ps(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=ps(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Do.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xn(e)}function Xn(e,t){const n=new Me("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=cu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ob(e){const t={};let n;for(n in e)Do.call(e,n)&&(t[jb(n)]=e[n]);return t}function jb(e){let t=e.replace(vb,Pb);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Pb(e){return"-"+e.toLowerCase()}const rS={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Db={};function Mo(e,t){const n=Db,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return hu(e,r,i)}function hu(e,t,n){if(Lb(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return _s(e.children,t,n)}return Array.isArray(e)?_s(e,t,n):""}function _s(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=hu(e[i],t,n);return r.join("")}function Lb(e){return!!(e&&typeof e=="object")}const Cs=document.createElement("i");function Fo(e){const t="&"+e+";";Cs.innerHTML=t;const n=Cs.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function rt(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function st(e,t){return e.length>0?(rt(e,e.length,0,t),e):t}const Ss={}.hasOwnProperty;function mu(e){const t={};let n=-1;for(;++n<e.length;)$b(t,e[n]);return t}function $b(e,t){let n;for(n in t){const i=(Ss.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Ss.call(i,a)||(i[a]=[]);const s=o[a];Mb(i[a],Array.isArray(s)?s:s?[s]:[])}}}function Mb(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);rt(e,0,0,r)}function gu(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ze=Jt(/[A-Za-z]/),$e=Jt(/[\dA-Za-z]/),Fb=Jt(/[#-'*+\--9=?A-Z^-~]/);function Br(e){return e!==null&&(e<32||e===127)}const lo=Jt(/\d/),Zb=Jt(/[\dA-Fa-f]/),Bb=Jt(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function we(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const ei=Jt(new RegExp("\\p{P}|\\p{S}","u")),nn=Jt(/\s/);function Jt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Rn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&$e(e.charCodeAt(n+1))&&$e(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function me(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ce(l)?(e.enter(n),s(l)):t(l)}function s(l){return ce(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Vb={tokenize:Ub};function Ub(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),me(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ee(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const Hb={tokenize:Wb},Es={tokenize:qb};function Wb(e){const t=this,n=[];let r=0,i,o,a;return s;function s(x){if(r<n.length){const z=n[r];return t.containerState=z[1],e.attempt(z[0].continuation,l,u)(x)}return u(x)}function l(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&_();const z=t.events.length;let N=z,k;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){k=t.events[N][1].end;break}y(r);let $=z;for(;$<t.events.length;)t.events[$][1].end={...k},$++;return rt(t.events,N+1,0,t.events.slice(z)),t.events.length=$,u(x)}return s(x)}function u(x){if(r===n.length){if(!i)return f(x);if(i.currentConstruct&&i.currentConstruct.concrete)return h(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Es,d,c)(x)}function d(x){return i&&_(),y(r),f(x)}function c(x){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,h(x)}function f(x){return t.containerState={},e.attempt(Es,p,h)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),f(x)}function h(x){if(x===null){i&&_(),y(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),v(x)}function v(x){if(x===null){b(e.exit("chunkFlow"),!0),y(0),e.consume(x);return}return ee(x)?(e.consume(x),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),v)}function b(x,z){const N=t.sliceStream(x);if(z&&N.push(null),x.previous=o,o&&(o.next=x),o=x,i.defineSkip(x.start),i.write(N),t.parser.lazy[x.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<a&&(!i.events[k][1].end||i.events[k][1].end.offset>a))return;const $=t.events.length;let R=$,U,w;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(U){w=t.events[R][1].end;break}U=!0}for(y(r),k=$;k<t.events.length;)t.events[k][1].end={...w},k++;rt(t.events,R+1,0,t.events.slice($)),t.events.length=k}}function y(x){let z=n.length;for(;z-- >x;){const N=n[z];t.containerState=N[1],N[0].exit.call(t,e)}n.length=x}function _(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function qb(e,t,n){return me(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function En(e){if(e===null||we(e)||nn(e))return 1;if(ei(e))return 2}function ti(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const uo={name:"attention",resolveAll:Jb,tokenize:Yb};function Jb(e,t){let n=-1,r,i,o,a,s,l,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},f={...e[n][1].start};Ts(c,-l),Ts(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=st(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=st(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=st(u,ti(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=st(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=st(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,rt(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Yb(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=En(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const u=e.exit("attentionSequence"),d=En(l),c=!d||d===2&&i||n.includes(l),f=!i||i===2&&d||n.includes(r);return u._open=!!(o===42?c:c&&(i||!f)),u._close=!!(o===42?f:f&&(d||!c)),t(l)}}function Ts(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Kb={name:"autolink",tokenize:Gb};function Gb(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Ze(p)?(e.consume(p),a):p===64?n(p):u(p)}function a(p){return p===43||p===45||p===46||$e(p)?(r=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||$e(p))&&r++<32?(e.consume(p),s):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Br(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),d):Fb(p)?(e.consume(p),u):n(p)}function d(p){return $e(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||$e(p))&&r++<63){const h=p===45?f:c;return e.consume(p),h}return n(p)}}const ir={partial:!0,tokenize:Xb};function Xb(e,t,n){return r;function r(o){return ce(o)?me(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||ee(o)?t(o):n(o)}}const yu={continuation:{tokenize:ex},exit:tx,name:"blockQuote",tokenize:Qb};function Qb(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return ce(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function ex(e,t,n){const r=this;return i;function i(a){return ce(a)?me(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(yu,t,n)(a)}}function tx(e){e.exit("blockQuote")}const vu={name:"characterEscape",tokenize:nx};function nx(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Bb(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const bu={name:"characterReference",tokenize:rx};function rx(e,t,n){const r=this;let i=0,o,a;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=$e,d(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Zb,d):(e.enter("characterReferenceValue"),o=7,a=lo,d(c))}function d(c){if(c===59&&i){const f=e.exit("characterReferenceValue");return a===$e&&!Fo(r.sliceSerialize(f))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(c)&&i++<o?(e.consume(c),d):n(c)}}const As={partial:!0,tokenize:ox},zs={concrete:!0,name:"codeFenced",tokenize:ix};function ix(e,t,n){const r=this,i={partial:!0,tokenize:N};let o=0,a=0,s;return l;function l(k){return u(k)}function u(k){const $=r.events[r.events.length-1];return o=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,s=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(k)}function d(k){return k===s?(a++,e.consume(k),d):a<3?n(k):(e.exit("codeFencedFenceSequence"),ce(k)?me(e,c,"whitespace")(k):c(k))}function c(k){return k===null||ee(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(As,v,z)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(k)):ce(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),me(e,p,"whitespace")(k)):k===96&&k===s?n(k):(e.consume(k),f)}function p(k){return k===null||ee(k)?c(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===null||ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(k)):k===96&&k===s?n(k):(e.consume(k),h)}function v(k){return e.attempt(i,z,b)(k)}function b(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),y}function y(k){return o>0&&ce(k)?me(e,_,"linePrefix",o+1)(k):_(k)}function _(k){return k===null||ee(k)?e.check(As,v,z)(k):(e.enter("codeFlowValue"),x(k))}function x(k){return k===null||ee(k)?(e.exit("codeFlowValue"),_(k)):(e.consume(k),x)}function z(k){return e.exit("codeFenced"),t(k)}function N(k,$,R){let U=0;return w;function w(O){return k.enter("lineEnding"),k.consume(O),k.exit("lineEnding"),M}function M(O){return k.enter("codeFencedFence"),ce(O)?me(k,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):P(O)}function P(O){return O===s?(k.enter("codeFencedFenceSequence"),W(O)):R(O)}function W(O){return O===s?(U++,k.consume(O),W):U>=a?(k.exit("codeFencedFenceSequence"),ce(O)?me(k,Z,"whitespace")(O):Z(O)):R(O)}function Z(O){return O===null||ee(O)?(k.exit("codeFencedFence"),$(O)):R(O)}}}function ox(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const _i={name:"codeIndented",tokenize:sx},ax={partial:!0,tokenize:lx};function sx(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),me(e,o,"linePrefix",5)(u)}function o(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):ee(u)?e.attempt(ax,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ee(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function lx(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ee(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):me(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):ee(a)?i(a):n(a)}}const ux={name:"codeText",previous:dx,resolve:cx,tokenize:fx};function cx(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function dx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fx(e,t,n){let r=0,i,o;return a;function a(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(o=e.enter("codeTextSequence"),i=0,d(c)):ee(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||ee(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function d(c){return c===96?(e.consume(c),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class px{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Mn(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Mn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Mn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Mn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Mn(this.left,n.reverse())}}}function Mn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function xu(e){const t={};let n=-1,r,i,o,a,s,l,u;const d=new px(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,hx(d,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=d.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},s=d.slice(i,n),s.unshift(r),d.splice(i,n-i+1,s))}}return rt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function hx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],u={};let d,c,f=-1,p=n,h=0,v=0;const b=[v];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),c&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(v=f+1,b.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),f=b.length;f--;){const y=s.slice(b[f],b[f+1]),_=o.pop();l.push([_,_+y.length-1]),e.splice(_,2,y)}for(l.reverse(),f=-1;++f<l.length;)u[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return u}const mx={resolve:yx,tokenize:vx},gx={partial:!0,tokenize:bx};function yx(e){return xu(e),e}function vx(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):ee(s)?e.check(gx,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function bx(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),me(e,o,"linePrefix")}function o(a){if(a===null||ee(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function ku(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),f):y===null||y===32||y===41||Br(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function f(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(s),f(y)):y===null||y===60||ee(y)?n(y):(e.consume(y),y===92?h:p)}function h(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function v(y){return!d&&(y===null||y===41||we(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):d<u&&y===40?(e.consume(y),d++,v):y===41?(e.consume(y),d--,v):y===null||y===32||y===40||Br(y)?n(y):(e.consume(y),y===92?b:v)}function b(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function wu(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),d}function d(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||ee(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!ce(p)),p===92?f:c)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function _u(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===a?(e.exit(o),l(a)):f===null?n(f):ee(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),me(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===a||f===null||ee(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?c:d)}function c(f){return f===a||f===92?(e.consume(f),d):d(f)}}function Un(e,t){let n;return r;function r(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ce(i)?me(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const xx={name:"definition",tokenize:wx},kx={partial:!0,tokenize:_x};function wx(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return wu.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return we(p)?Un(e,u)(p):u(p)}function u(p){return ku(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(kx,c,c)(p)}function c(p){return ce(p)?me(e,f,"whitespace")(p):f(p)}function f(p){return p===null||ee(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function _x(e,t,n){return r;function r(s){return we(s)?Un(e,i)(s):n(s)}function i(s){return _u(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return ce(s)?me(e,a,"whitespace")(s):a(s)}function a(s){return s===null||ee(s)?t(s):n(s)}}const Cx={name:"hardBreakEscape",tokenize:Sx};function Sx(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return ee(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Ex={name:"headingAtx",resolve:Tx,tokenize:Ax};function Tx(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},rt(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Ax(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&r++<6?(e.consume(d),a):d===null||we(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ee(d)?(e.exit("atxHeading"),t(d)):ce(d)?me(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||we(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const zx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Is=["pre","script","style","textarea"],Ix={concrete:!0,name:"htmlFlow",resolveTo:Ox,tokenize:jx},Nx={partial:!0,tokenize:Dx},Rx={partial:!0,tokenize:Px};function Ox(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function jx(e,t,n){const r=this;let i,o,a,s,l;return u;function u(m){return d(m)}function d(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),f):m===47?(e.consume(m),o=!0,v):m===63?(e.consume(m),i=3,r.interrupt?t:g):Ze(m)?(e.consume(m),a=String.fromCharCode(m),b):n(m)}function f(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,s=0,h):Ze(m)?(e.consume(m),i=4,r.interrupt?t:g):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:g):n(m)}function h(m){const Q="CDATA[";return m===Q.charCodeAt(s++)?(e.consume(m),s===Q.length?r.interrupt?t:P:h):n(m)}function v(m){return Ze(m)?(e.consume(m),a=String.fromCharCode(m),b):n(m)}function b(m){if(m===null||m===47||m===62||we(m)){const Q=m===47,ae=a.toLowerCase();return!Q&&!o&&Is.includes(ae)?(i=1,r.interrupt?t(m):P(m)):zx.includes(a.toLowerCase())?(i=6,Q?(e.consume(m),y):r.interrupt?t(m):P(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?_(m):x(m))}return m===45||$e(m)?(e.consume(m),a+=String.fromCharCode(m),b):n(m)}function y(m){return m===62?(e.consume(m),r.interrupt?t:P):n(m)}function _(m){return ce(m)?(e.consume(m),_):w(m)}function x(m){return m===47?(e.consume(m),w):m===58||m===95||Ze(m)?(e.consume(m),z):ce(m)?(e.consume(m),x):w(m)}function z(m){return m===45||m===46||m===58||m===95||$e(m)?(e.consume(m),z):N(m)}function N(m){return m===61?(e.consume(m),k):ce(m)?(e.consume(m),N):x(m)}function k(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),l=m,$):ce(m)?(e.consume(m),k):R(m)}function $(m){return m===l?(e.consume(m),l=null,U):m===null||ee(m)?n(m):(e.consume(m),$)}function R(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||we(m)?N(m):(e.consume(m),R)}function U(m){return m===47||m===62||ce(m)?x(m):n(m)}function w(m){return m===62?(e.consume(m),M):n(m)}function M(m){return m===null||ee(m)?P(m):ce(m)?(e.consume(m),M):n(m)}function P(m){return m===45&&i===2?(e.consume(m),C):m===60&&i===1?(e.consume(m),j):m===62&&i===4?(e.consume(m),xe):m===63&&i===3?(e.consume(m),g):m===93&&i===5?(e.consume(m),X):ee(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Nx,Te,W)(m)):m===null||ee(m)?(e.exit("htmlFlowData"),W(m)):(e.consume(m),P)}function W(m){return e.check(Rx,Z,Te)(m)}function Z(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),O}function O(m){return m===null||ee(m)?W(m):(e.enter("htmlFlowData"),P(m))}function C(m){return m===45?(e.consume(m),g):P(m)}function j(m){return m===47?(e.consume(m),a="",S):P(m)}function S(m){if(m===62){const Q=a.toLowerCase();return Is.includes(Q)?(e.consume(m),xe):P(m)}return Ze(m)&&a.length<8?(e.consume(m),a+=String.fromCharCode(m),S):P(m)}function X(m){return m===93?(e.consume(m),g):P(m)}function g(m){return m===62?(e.consume(m),xe):m===45&&i===2?(e.consume(m),g):P(m)}function xe(m){return m===null||ee(m)?(e.exit("htmlFlowData"),Te(m)):(e.consume(m),xe)}function Te(m){return e.exit("htmlFlow"),t(m)}}function Px(e,t,n){const r=this;return i;function i(a){return ee(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Dx(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ir,t,n)}}const Lx={name:"htmlText",tokenize:$x};function $x(e,t,n){const r=this;let i,o,a;return s;function s(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),l}function l(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),N):g===63?(e.consume(g),x):Ze(g)?(e.consume(g),R):n(g)}function u(g){return g===45?(e.consume(g),d):g===91?(e.consume(g),o=0,h):Ze(g)?(e.consume(g),_):n(g)}function d(g){return g===45?(e.consume(g),p):n(g)}function c(g){return g===null?n(g):g===45?(e.consume(g),f):ee(g)?(a=c,j(g)):(e.consume(g),c)}function f(g){return g===45?(e.consume(g),p):c(g)}function p(g){return g===62?C(g):g===45?f(g):c(g)}function h(g){const xe="CDATA[";return g===xe.charCodeAt(o++)?(e.consume(g),o===xe.length?v:h):n(g)}function v(g){return g===null?n(g):g===93?(e.consume(g),b):ee(g)?(a=v,j(g)):(e.consume(g),v)}function b(g){return g===93?(e.consume(g),y):v(g)}function y(g){return g===62?C(g):g===93?(e.consume(g),y):v(g)}function _(g){return g===null||g===62?C(g):ee(g)?(a=_,j(g)):(e.consume(g),_)}function x(g){return g===null?n(g):g===63?(e.consume(g),z):ee(g)?(a=x,j(g)):(e.consume(g),x)}function z(g){return g===62?C(g):x(g)}function N(g){return Ze(g)?(e.consume(g),k):n(g)}function k(g){return g===45||$e(g)?(e.consume(g),k):$(g)}function $(g){return ee(g)?(a=$,j(g)):ce(g)?(e.consume(g),$):C(g)}function R(g){return g===45||$e(g)?(e.consume(g),R):g===47||g===62||we(g)?U(g):n(g)}function U(g){return g===47?(e.consume(g),C):g===58||g===95||Ze(g)?(e.consume(g),w):ee(g)?(a=U,j(g)):ce(g)?(e.consume(g),U):C(g)}function w(g){return g===45||g===46||g===58||g===95||$e(g)?(e.consume(g),w):M(g)}function M(g){return g===61?(e.consume(g),P):ee(g)?(a=M,j(g)):ce(g)?(e.consume(g),M):U(g)}function P(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,W):ee(g)?(a=P,j(g)):ce(g)?(e.consume(g),P):(e.consume(g),Z)}function W(g){return g===i?(e.consume(g),i=void 0,O):g===null?n(g):ee(g)?(a=W,j(g)):(e.consume(g),W)}function Z(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||we(g)?U(g):(e.consume(g),Z)}function O(g){return g===47||g===62||we(g)?U(g):n(g)}function C(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function j(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),S}function S(g){return ce(g)?me(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):X(g)}function X(g){return e.enter("htmlTextData"),a(g)}}const Zo={name:"labelEnd",resolveAll:Bx,resolveTo:Vx,tokenize:Ux},Mx={tokenize:Hx},Fx={tokenize:Wx},Zx={tokenize:qx};function Bx(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&rt(e,0,e.length,n),e}function Vx(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},d={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=st(s,e.slice(o+1,o+r+3)),s=st(s,[["enter",d,t]]),s=st(s,ti(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=st(s,[["exit",d,t],e[a-2],e[a-1],["exit",u,t]]),s=st(s,e.slice(a+1)),s=st(s,[["exit",l,t]]),rt(e,o,e.length,s),e}function Ux(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(f){return o?o._inactive?c(f):(a=r.parser.defined.includes(mt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Mx,d,a?d:c)(f):f===91?e.attempt(Fx,d,a?u:c)(f):a?d(f):c(f)}function u(f){return e.attempt(Zx,d,c)(f)}function d(f){return t(f)}function c(f){return o._balanced=!0,n(f)}}function Hx(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return we(c)?Un(e,o)(c):o(c)}function o(c){return c===41?d(c):ku(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function a(c){return we(c)?Un(e,l)(c):d(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?_u(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function u(c){return we(c)?Un(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Wx(e,t,n){const r=this;return i;function i(s){return wu.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function qx(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Jx={name:"labelStartImage",resolveAll:Zo.resolveAll,tokenize:Yx};function Yx(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Kx={name:"labelStartLink",resolveAll:Zo.resolveAll,tokenize:Gx};function Gx(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Ci={name:"lineEnding",tokenize:Xx};function Xx(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),me(e,t,"linePrefix")}}const Tr={name:"thematicBreak",tokenize:Qx};function Qx(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ee(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),ce(u)?me(e,s,"whitespace")(u):s(u))}}const He={continuation:{tokenize:rk},exit:ok,name:"list",tokenize:nk},ek={partial:!0,tokenize:ak},tk={partial:!0,tokenize:ik};function nk(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:lo(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Tr,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return lo(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(ir,r.interrupt?n:d,e.attempt(ek,f,c))}function d(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function c(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function rk(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ir,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,me(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!ce(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tk,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,me(e,e.attempt(He,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function ik(e,t,n){const r=this;return me(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function ok(e){e.exit(this.containerState.type)}function ak(e,t,n){const r=this;return me(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!ce(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Ns={name:"setextUnderline",resolveTo:sk,tokenize:lk};function sk(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function lk(e,t,n){const r=this;let i;return o;function o(u){let d=r.events.length,c;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){c=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),ce(u)?me(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ee(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const uk={tokenize:ck};function ck(e){const t=this,n=e.attempt(ir,r,e.attempt(this.parser.constructs.flowInitial,i,me(e,e.attempt(this.parser.constructs.flow,i,e.attempt(mx,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const dk={resolveAll:Su()},fk=Cu("string"),pk=Cu("text");function Cu(e){return{resolveAll:Su(e==="text"?hk:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(d){return u(d)?o(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),o(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const c=i[d];let f=-1;if(c)for(;++f<c.length;){const p=c[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Su(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function hk(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(u===-2)l=!0,s++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const mk={42:He,43:He,45:He,48:He,49:He,50:He,51:He,52:He,53:He,54:He,55:He,56:He,57:He,62:yu},gk={91:xx},yk={[-2]:_i,[-1]:_i,32:_i},vk={35:Ex,42:Tr,45:[Ns,Tr],60:Ix,61:Ns,95:Tr,96:zs,126:zs},bk={38:bu,92:vu},xk={[-5]:Ci,[-4]:Ci,[-3]:Ci,33:Jx,38:bu,42:uo,60:[Kb,Lx],91:Kx,92:[Cx,vu],93:Zo,95:uo,96:ux},kk={null:[uo,dk]},wk={null:[42,95]},_k={null:[]},Ck=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wk,contentInitial:gk,disable:_k,document:mk,flow:vk,flowInitial:yk,insideSpan:kk,string:bk,text:xk},Symbol.toStringTag,{value:"Module"}));function Sk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:$(N),check:$(k),consume:_,enter:x,exit:z,interrupt:$(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:h,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:c};let d=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function c(M){return a=st(a,M),b(),a[a.length-1]!==null?[]:(R(t,0),u.events=ti(o,u.events,u),u.events)}function f(M,P){return Tk(p(M),P)}function p(M){return Ek(a,M)}function h(){const{_bufferIndex:M,_index:P,line:W,column:Z,offset:O}=r;return{_bufferIndex:M,_index:P,line:W,column:Z,offset:O}}function v(M){i[M.line]=M.column,w()}function b(){let M;for(;r._index<a.length;){const P=a[r._index];if(typeof P=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(M){d=d(M)}function _(M){ee(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,w()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function x(M,P){const W=P||{};return W.type=M,W.start=h(),u.events.push(["enter",W,u]),s.push(W),W}function z(M){const P=s.pop();return P.end=h(),u.events.push(["exit",P,u]),P}function N(M,P){R(M,P.from)}function k(M,P){P.restore()}function $(M,P){return W;function W(Z,O,C){let j,S,X,g;return Array.isArray(Z)?Te(Z):"tokenize"in Z?Te([Z]):xe(Z);function xe(ge){return ve;function ve(de){const Re=de!==null&&ge[de],Pe=de!==null&&ge.null,Ke=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return Te(Ke)(de)}}function Te(ge){return j=ge,S=0,ge.length===0?C:m(ge[S])}function m(ge){return ve;function ve(de){return g=U(),X=ge,ge.partial||(u.currentConstruct=ge),ge.name&&u.parser.constructs.disable.null.includes(ge.name)?ae():ge.tokenize.call(P?Object.assign(Object.create(u),P):u,l,Q,ae)(de)}}function Q(ge){return M(X,g),O}function ae(ge){return g.restore(),++S<j.length?m(j[S]):C}}}function R(M,P){M.resolveAll&&!o.includes(M)&&o.push(M),M.resolve&&rt(u.events,P,u.events.length-P,M.resolve(u.events.slice(P),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function U(){const M=h(),P=u.previous,W=u.currentConstruct,Z=u.events.length,O=Array.from(s);return{from:Z,restore:C};function C(){r=M,u.previous=P,u.currentConstruct=W,u.events.length=Z,s=O,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ek(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function Tk(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
22
- `;break}case-3:{a=`\r
23
- `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function Ak(e){const r={constructs:mu([Ck,...(e||{}).extensions||[]]),content:i(Vb),defined:[],document:i(Hb),flow:i(uk),lazy:{},string:i(fk),text:i(pk)};return r;function i(o){return a;function a(s){return Sk(r,o,s)}}}function zk(e){for(;!xu(e););return e}const Rs=/[\0\t\n\r]/g;function Ik(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let u,d,c,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Rs.lastIndex=c,u=Rs.exec(o),f=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(f),!u){t=o.slice(c);break}if(p===10&&c===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<f&&(l.push(o.slice(c,f)),e+=f-c),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Nk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rk(e){return e.replace(Nk,Ok)}function Ok(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return gu(n.slice(o?2:1),o?16:10)}return Fo(n)||e}const Eu={}.hasOwnProperty;function jk(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Pk(n)(zk(Ak(n).document().write(Ik()(e,t,!0))))}function Pk(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ot),autolinkProtocol:U,autolinkEmail:U,atxHeading:o(ar),blockQuote:o(Pe),characterEscape:U,characterReference:U,codeFenced:o(Ke),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(Ke,a),codeText:o(Ge,a),codeTextData:U,data:U,codeFlowValue:U,definition:o(ai),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(jn),hardBreakEscape:o(Pn),hardBreakTrailing:o(Pn),htmlFlow:o(Ot,a),htmlFlowData:U,htmlText:o(Ot,a),htmlTextData:U,image:o(sr),label:a,link:o(ot),listItem:o(si),listItemValue:f,listOrdered:o(lr,c),listUnordered:o(lr),paragraph:o(Fe),reference:m,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(ar),strong:o(jt),thematicBreak:o(ui)},exit:{atxHeading:l(),atxHeadingSequence:N,autolink:l(),autolinkEmail:Re,autolinkProtocol:de,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:ge,characterReference:ve,codeFenced:l(b),codeFencedFence:v,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:w,codeIndented:l(y),codeText:l(O),codeTextData:w,data:w,definition:l(),definitionDestinationString:z,definitionLabelString:_,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l(W),htmlFlowData:w,htmlText:l(Z),htmlTextData:w,image:l(j),label:X,labelText:S,lineEnding:M,link:l(C),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Q,resourceDestinationString:g,resourceTitleString:xe,resource:Te,setextHeading:l(R),setextHeadingLineSequence:$,setextHeadingText:k,strong:l(),thematicBreak:l()}};Tu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let B={type:"root",children:[]};const te={stack:[B],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:d,data:n},le=[];let he=-1;for(;++he<T.length;)if(T[he][1].type==="listOrdered"||T[he][1].type==="listUnordered")if(T[he][0]==="enter")le.push(he);else{const Ve=le.pop();he=i(T,Ve,he)}for(he=-1;++he<T.length;){const Ve=t[T[he][0]];Eu.call(Ve,T[he][1].type)&&Ve[T[he][1].type].call(Object.assign({sliceSerialize:T[he][2].sliceSerialize},te),T[he][1])}if(te.tokenStack.length>0){const Ve=te.tokenStack[te.tokenStack.length-1];(Ve[1]||Os).call(te,void 0,Ve[0])}for(B.position={start:Mt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Mt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<t.transforms.length;)B=t.transforms[he](B)||B;return B}function i(T,B,te){let le=B-1,he=-1,Ve=!1,Ue,dt,Kt,Pt;for(;++le<=te;){const De=T[le];switch(De[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{De[0]==="enter"?he++:he--,Pt=void 0;break}case"lineEndingBlank":{De[0]==="enter"&&(Ue&&!Pt&&!he&&!Kt&&(Kt=le),Pt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pt=void 0}if(!he&&De[0]==="enter"&&De[1].type==="listItemPrefix"||he===-1&&De[0]==="exit"&&(De[1].type==="listUnordered"||De[1].type==="listOrdered")){if(Ue){let Dt=le;for(dt=void 0;Dt--;){const Xe=T[Dt];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;dt&&(T[dt][1].type="lineEndingBlank",Ve=!0),Xe[1].type="lineEnding",dt=Dt}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}Kt&&(!dt||Kt<dt)&&(Ue._spread=!0),Ue.end=Object.assign({},dt?T[dt][1].start:De[1].end),T.splice(dt||le,0,["exit",Ue,De[2]]),le++,te++}if(De[1].type==="listItemPrefix"){const Dt={type:"listItem",_spread:!1,start:Object.assign({},De[1].start),end:void 0};Ue=Dt,T.splice(le,0,["enter",Dt,De[2]]),le++,te++,Kt=void 0,Pt=!0}}}return T[B][1]._spread=Ve,te}function o(T,B){return te;function te(le){s.call(this,T(le),le),B&&B.call(this,le)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(T,B,te){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([B,te||void 0]),T.position={start:Mt(B.start),end:void 0}}function l(T){return B;function B(te){T&&T.call(this,te),u.call(this,te)}}function u(T,B){const te=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==T.type&&(B?B.call(this,T,le[0]):(le[1]||Os).call(this,T,le[0]));else throw new Error("Cannot close `"+T.type+"` ("+Vn({start:T.start,end:T.end})+"): it’s not open");te.position.end=Mt(T.end)}function d(){return Mo(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function f(T){if(this.data.expectingFirstListItemValue){const B=this.stack[this.stack.length-2];B.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function p(){const T=this.resume(),B=this.stack[this.stack.length-1];B.lang=T}function h(){const T=this.resume(),B=this.stack[this.stack.length-1];B.meta=T}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T.replace(/(\r?\n|\r)$/g,"")}function _(T){const B=this.resume(),te=this.stack[this.stack.length-1];te.label=B,te.identifier=mt(this.sliceSerialize(T)).toLowerCase()}function x(){const T=this.resume(),B=this.stack[this.stack.length-1];B.title=T}function z(){const T=this.resume(),B=this.stack[this.stack.length-1];B.url=T}function N(T){const B=this.stack[this.stack.length-1];if(!B.depth){const te=this.sliceSerialize(T).length;B.depth=te}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function $(T){const B=this.stack[this.stack.length-1];B.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function U(T){const te=this.stack[this.stack.length-1].children;let le=te[te.length-1];(!le||le.type!=="text")&&(le=li(),le.position={start:Mt(T.start),end:void 0},te.push(le)),this.stack.push(le)}function w(T){const B=this.stack.pop();B.value+=this.sliceSerialize(T),B.position.end=Mt(T.end)}function M(T){const B=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=B.children[B.children.length-1];te.position.end=Mt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(B.type)&&(U.call(this,T),w.call(this,T))}function P(){this.data.atHardBreak=!0}function W(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T}function Z(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T}function O(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T}function C(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=B,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function j(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=B,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function S(T){const B=this.sliceSerialize(T),te=this.stack[this.stack.length-2];te.label=Rk(B),te.identifier=mt(B).toLowerCase()}function X(){const T=this.stack[this.stack.length-1],B=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const le=T.children;te.children=le}else te.alt=B}function g(){const T=this.resume(),B=this.stack[this.stack.length-1];B.url=T}function xe(){const T=this.resume(),B=this.stack[this.stack.length-1];B.title=T}function Te(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function Q(T){const B=this.resume(),te=this.stack[this.stack.length-1];te.label=B,te.identifier=mt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function ae(T){this.data.characterReferenceType=T.type}function ge(T){const B=this.sliceSerialize(T),te=this.data.characterReferenceType;let le;te?(le=gu(B,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=Fo(B);const he=this.stack[this.stack.length-1];he.value+=le}function ve(T){const B=this.stack.pop();B.position.end=Mt(T.end)}function de(T){w.call(this,T);const B=this.stack[this.stack.length-1];B.url=this.sliceSerialize(T)}function Re(T){w.call(this,T);const B=this.stack[this.stack.length-1];B.url="mailto:"+this.sliceSerialize(T)}function Pe(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function Ge(){return{type:"inlineCode",value:""}}function ai(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function jn(){return{type:"emphasis",children:[]}}function ar(){return{type:"heading",depth:0,children:[]}}function Pn(){return{type:"break"}}function Ot(){return{type:"html",value:""}}function sr(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function lr(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function si(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Fe(){return{type:"paragraph",children:[]}}function jt(){return{type:"strong",children:[]}}function li(){return{type:"text",value:""}}function ui(){return{type:"thematicBreak"}}}function Mt(e){return{line:e.line,column:e.column,offset:e.offset}}function Tu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Tu(e,r):Dk(e,r)}}function Dk(e,t){let n;for(n in t)if(Eu.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Os(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Vn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Vn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Vn({start:t.start,end:t.end})+") is still open")}function iS(e){const t=this;t.parser=n;function n(r){return jk(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Lk(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function $k(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
24
- `}]}function Mk(e,t){const n=t.value?t.value+`
25
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Fk(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bk(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Rn(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Vk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Uk(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Au(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function Hk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Au(e,t);const i={src:Rn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Wk(e,t){const n={src:Rn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function qk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Jk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Au(e,t);const i={href:Rn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Yk(e,t){const n={href:Rn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Kk(e,t,n){const r=e.all(t),i=n?Gk(n):zu(t),o={},a=[];if(typeof t.checked=="boolean"){const d=r[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(i||s!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
26
- `}),d.type==="element"&&d.tagName==="p"&&!i?a.push(...d.children):a.push(d)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
27
- `});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function Gk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=zu(n[r])}return t}function zu(e){const t=e.spread;return t??e.children.length>1}function Xk(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Qk(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ew(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function tw(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nw(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Po(t.children[1]),l=lu(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function rw(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const c=t.children[l],f={},p=a?a[l]:void 0;p&&(f.align=p);let h={type:"element",tagName:o,properties:f,children:[]};c&&(h.children=e.all(c),e.patch(c,h),h=e.applyData(c,h)),u.push(h)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function iw(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const js=9,Ps=32;function ow(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Ds(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Ds(t.slice(i),i>0,!1)),o.join("")}function Ds(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===js||o===Ps;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===js||o===Ps;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function aw(e,t){const n={type:"text",value:ow(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function sw(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const lw={blockquote:Lk,break:$k,code:Mk,delete:Fk,emphasis:Zk,footnoteReference:Bk,heading:Vk,html:Uk,imageReference:Hk,image:Wk,inlineCode:qk,linkReference:Jk,link:Yk,listItem:Kk,list:Xk,paragraph:Qk,root:ew,strong:tw,table:nw,tableCell:iw,tableRow:rw,text:aw,thematicBreak:sw,toml:kr,yaml:kr,definition:kr,footnoteDefinition:kr};function kr(){}const Iu=-1,ni=0,Hn=1,Vr=2,Bo=3,Vo=4,Uo=5,Ho=6,Nu=7,Ru=8,Ls=typeof self=="object"?self:globalThis,uw=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case ni:case Iu:return n(a,i);case Hn:{const s=n([],i);for(const l of a)s.push(r(l));return s}case Vr:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case Bo:return n(new Date(a),i);case Vo:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case Uo:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case Ho:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case Nu:{const{name:s,message:l}=a;return n(new Ls[s](l),i)}case Ru:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:s}=new Uint8Array(a);return n(new DataView(s),a)}}return n(new Ls[o](a),i)};return r},$s=e=>uw(new Map,e)(0),dn="",{toString:cw}={},{keys:dw}=Object,Fn=e=>{const t=typeof e;if(t!=="object"||!e)return[ni,t];const n=cw.call(e).slice(8,-1);switch(n){case"Array":return[Hn,dn];case"Object":return[Vr,dn];case"Date":return[Bo,dn];case"RegExp":return[Vo,dn];case"Map":return[Uo,dn];case"Set":return[Ho,dn];case"DataView":return[Hn,n]}return n.includes("Array")?[Hn,n]:n.includes("Error")?[Nu,n]:[Vr,n]},wr=([e,t])=>e===ni&&(t==="function"||t==="symbol"),fw=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=Fn(a);switch(s){case ni:{let d=a;switch(l){case"bigint":s=Ru,d=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([Iu],a)}return i([s,d],a)}case Hn:{if(l){let f=a;return l==="DataView"?f=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(a)),i([l,[...f]],a)}const d=[],c=i([s,d],a);for(const f of a)d.push(o(f));return c}case Vr:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const d=[],c=i([s,d],a);for(const f of dw(a))(e||!wr(Fn(a[f])))&&d.push([o(f),o(a[f])]);return c}case Bo:return i([s,a.toISOString()],a);case Vo:{const{source:d,flags:c}=a;return i([s,{source:d,flags:c}],a)}case Uo:{const d=[],c=i([s,d],a);for(const[f,p]of a)(e||!(wr(Fn(f))||wr(Fn(p))))&&d.push([o(f),o(p)]);return c}case Ho:{const d=[],c=i([s,d],a);for(const f of a)(e||!wr(Fn(f)))&&d.push(o(f));return c}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},Ms=(e,{json:t,lossy:n}={})=>{const r=[];return fw(!(t||n),!!t,new Map,r)(e),r},Ur=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?$s(Ms(e,t)):structuredClone(e):(e,t)=>$s(Ms(e,t));function pw(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function hw(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function mw(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||pw,r=e.options.footnoteBackLabel||hw,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const d=e.all(u),c=String(u.identifier).toUpperCase(),f=Rn(c.toLowerCase());let p=0;const h=[],v=e.footnoteCounts.get(c);for(;v!==void 0&&++p<=v;){h.length>0&&h.push({type:"text",value:" "});let _=typeof n=="string"?n:n(l,p);typeof _=="string"&&(_={type:"text",value:_}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const b=d[d.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const _=b.children[b.children.length-1];_&&_.type==="text"?_.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...h)}else d.push(...h);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ur(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
28
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
29
- `}]}}const ri=(function(e){if(e==null)return bw;if(typeof e=="function")return ii(e);if(typeof e=="object")return Array.isArray(e)?gw(e):yw(e);if(typeof e=="string")return vw(e);throw new Error("Expected function, string, or object as test")});function gw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ri(e[n]);return ii(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function yw(e){const t=e;return ii(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function vw(e){return ii(t);function t(n){return n&&n.type===e}}function ii(e){return t;function t(n,r,i){return!!(xw(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function bw(){return!0}function xw(e){return e!==null&&typeof e=="object"&&"type"in e}const Ou=[],kw=!0,co=!1,ww="skip";function ju(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=ri(i),a=r?-1:1;s(e,void 0,[])();function s(l,u,d){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Ou,h,v,b;if((!t||o(l,u,d[d.length-1]||void 0))&&(p=_w(n(l,d)),p[0]===co))return p;if("children"in l&&l.children){const y=l;if(y.children&&p[0]!==ww)for(v=(r?y.children.length:-1)+a,b=d.concat(y);v>-1&&v<y.children.length;){const _=y.children[v];if(h=s(_,v,b)(),h[0]===co)return h;v=typeof h[1]=="number"?h[1]:v+a}}return p}}}function _w(e){return Array.isArray(e)?e:typeof e=="number"?[kw,e]:e==null?Ou:[e]}function Pu(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),ju(e,o,s,i);function s(l,u){const d=u[u.length-1],c=d?d.children.indexOf(l):void 0;return a(l,c,d)}}const fo={}.hasOwnProperty,Cw={};function Sw(e,t){const n=t||Cw,r=new Map,i=new Map,o=new Map,a={...lw,...n.handlers},s={all:u,applyData:Tw,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:l,options:n,patch:Ew,wrap:zw};return Pu(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?r:i,f=String(d.identifier).toUpperCase();c.has(f)||c.set(f,d)}}),s;function l(d,c){const f=d.type,p=s.handlers[f];if(fo.call(s.handlers,f)&&p)return p(s,d,c);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in d){const{children:v,...b}=d,y=Ur(b);return y.children=s.all(d),y}return Ur(d)}return(s.options.unknownHandler||Aw)(s,d,c)}function u(d){const c=[];if("children"in d){const f=d.children;let p=-1;for(;++p<f.length;){const h=s.one(f[p],d);if(h){if(p&&f[p-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Fs(h.value)),!Array.isArray(h)&&h.type==="element")){const v=h.children[0];v&&v.type==="text"&&(v.value=Fs(v.value))}Array.isArray(h)?c.push(...h):c.push(h)}}}return c}}function Ew(e,t){e.position&&(t.position=gb(e))}function Tw(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,Ur(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Aw(e,t){const n=t.data||{},r="value"in t&&!(fo.call(n,"hProperties")||fo.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zw(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
30
- `});++r<e.length;)r&&n.push({type:"text",value:`
31
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
32
- `}),n}function Fs(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Zs(e,t){const n=Sw(e,t),r=n.one(e,void 0),i=mw(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
33
- `},i),o}function oS(e,t){return e&&"run"in e?async function(n,r){const i=Zs(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Zs(n,{file:r,...e||t})}}function Bs(e){if(e)throw e}var Si,Vs;function Iw(){if(Vs)return Si;Vs=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!c)return!1;var f;for(f in u);return typeof f>"u"||e.call(u,f)},a=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},s=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return Si=function l(){var u,d,c,f,p,h,v=arguments[0],b=1,y=arguments.length,_=!1;for(typeof v=="boolean"&&(_=v,v=arguments[1]||{},b=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});b<y;++b)if(u=arguments[b],u!=null)for(d in u)c=s(v,d),f=s(u,d),v!==f&&(_&&f&&(o(f)||(p=i(f)))?(p?(p=!1,h=c&&i(c)?c:[]):h=c&&o(c)?c:{},a(v,{name:d,newValue:l(_,h,f)})):typeof f<"u"&&a(v,{name:d,newValue:f}));return v},Si}var Nw=Iw();const Ei=el(Nw);function po(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Rw(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...u){const d=e[++o];let c=-1;if(l){a(l);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,d?Ow(d,s)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Ow(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const d=u;if(s&&n)throw d;return i(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const xt={basename:jw,dirname:Pw,extname:Dw,join:Lw,sep:"/"};function jw(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');or(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Pw(e){if(or(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Dw(e){or(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Lw(...e){let t=-1,n;for(;++t<e.length;)or(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":$w(n)}function $w(e){or(e);const t=e.codePointAt(0)===47;let n=Mw(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Mw(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function or(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Fw={cwd:Zw};function Zw(){return"/"}function ho(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Bw(e){if(typeof e=="string")e=new URL(e);else if(!ho(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Vw(e)}function Vw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ti=["history","path","basename","stem","extname","dirname"];class Uw{constructor(t){let n;t?ho(t)?n={path:t}:typeof t=="string"||Hw(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Fw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ti.length;){const o=Ti[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ti.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?xt.basename(this.path):void 0}set basename(t){zi(t,"basename"),Ai(t,"basename"),this.path=xt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?xt.dirname(this.path):void 0}set dirname(t){Us(this.basename,"dirname"),this.path=xt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?xt.extname(this.path):void 0}set extname(t){if(Ai(t,"extname"),Us(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ho(t)&&(t=Bw(t)),zi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?xt.basename(this.path,this.extname):void 0}set stem(t){zi(t,"stem"),Ai(t,"stem"),this.path=xt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Me(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ai(e,t){if(e&&e.includes(xt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xt.sep+"`")}function zi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Us(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Hw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ww=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),qw={}.hasOwnProperty;class Wo extends Ww{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Rw()}copy(){const t=new Wo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ei(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ri("data",this.frozen),this.namespace[t]=n,this):qw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ri("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=_r(t),r=this.parser||this.Parser;return Ii("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ii("process",this.parser||this.Parser),Ni("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const s=_r(t),l=r.parse(s);r.run(l,s,function(d,c,f){if(d||!c||!f)return u(d);const p=c,h=r.stringify(p,f);Yw(h)?f.value=h:f.result=h,u(d,f)});function u(d,c){d||!c?a(d):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Ii("processSync",this.parser||this.Parser),Ni("processSync",this.compiler||this.Compiler),this.process(t,i),Ws("processSync","process",n),r;function i(o,a){n=!0,Bs(o),r=a}}run(t,n,r){Hs(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){const l=_r(n);i.run(t,l,u);function u(d,c,f){const p=c||t;d?s(d):a?a(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Ws("runSync","run",r),i;function o(a,s){Bs(a),i=s,r=!0}}stringify(t,n){this.freeze();const r=_r(n),i=this.compiler||this.Compiler;return Ni("stringify",i),Hs(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ri("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...c]=u;l(d,c)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=Ei(!0,i.settings,u.settings))}function s(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const c=u[d];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let c=-1,f=-1;for(;++c<r.length;)if(r[c][0]===u){f=c;break}if(f===-1)r.push([u,...d]);else if(d.length>0){let[p,...h]=d;const v=r[f][1];po(v)&&po(p)&&(p=Ei(!0,v,p)),r[f]=[u,p,...h]}}}}const aS=new Wo().freeze();function Ii(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ni(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ri(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Hs(e){if(!po(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ws(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _r(e){return Jw(e)?e:new Uw(e)}function Jw(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Yw(e){return typeof e=="string"||Kw(e)}function Kw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function qs(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Gw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Xw(e,t,n){const i=ri((n||{}).ignore||[]),o=Qw(t);let a=-1;for(;++a<o.length;)ju(e,"text",s);function s(u,d){let c=-1,f;for(;++c<d.length;){const p=d[c],h=f?f.children:void 0;if(i(p,h?h.indexOf(p):void 0,f))return;f=p}if(f)return l(u,d)}function l(u,d){const c=d[d.length-1],f=o[a][0],p=o[a][1];let h=0;const b=c.children.indexOf(u);let y=!1,_=[];f.lastIndex=0;let x=f.exec(u.value);for(;x;){const z=x.index,N={index:x.index,input:x.input,stack:[...d,u]};let k=p(...x,N);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=z+1:(h!==z&&_.push({type:"text",value:u.value.slice(h,z)}),Array.isArray(k)?_.push(...k):k&&_.push(k),h=z+x[0].length,y=!0),!f.global)break;x=f.exec(u.value)}return y?(h<u.value.length&&_.push({type:"text",value:u.value.slice(h)}),c.children.splice(b,1,..._)):_=[u],b+_.length}}function Qw(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([e0(i[0]),t0(i[1])])}return t}function e0(e){return typeof e=="string"?new RegExp(Gw(e),"g"):e}function t0(e){return typeof e=="function"?e:function(){return e}}const Oi="phrasing",ji=["autolink","link","image","label"];function n0(){return{transforms:[u0],enter:{literalAutolink:i0,literalAutolinkEmail:Pi,literalAutolinkHttp:Pi,literalAutolinkWww:Pi},exit:{literalAutolink:l0,literalAutolinkEmail:s0,literalAutolinkHttp:o0,literalAutolinkWww:a0}}}function r0(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Oi,notInConstruct:ji},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Oi,notInConstruct:ji},{character:":",before:"[ps]",after:"\\/",inConstruct:Oi,notInConstruct:ji}]}}function i0(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Pi(e){this.config.enter.autolinkProtocol.call(this,e)}function o0(e){this.config.exit.autolinkProtocol.call(this,e)}function a0(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function s0(e){this.config.exit.autolinkEmail.call(this,e)}function l0(e){this.exit(e)}function u0(e){Xw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,c0],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),d0]],{ignore:["link","linkReference"]})}function c0(e,t,n,r,i){let o="";if(!Du(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!f0(n)))return!1;const a=p0(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function d0(e,t,n,r){return!Du(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function f0(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function p0(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=qs(e,"(");let o=qs(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Du(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||nn(n)||ei(n))&&(!t||n!==47)}Lu.peek=w0;function h0(){this.buffer()}function m0(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function g0(){this.buffer()}function y0(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function v0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function b0(e){this.exit(e)}function x0(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function k0(e){this.exit(e)}function w0(){return"["}function Lu(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function _0(){return{enter:{gfmFootnoteCallString:h0,gfmFootnoteCall:m0,gfmFootnoteDefinitionLabelString:g0,gfmFootnoteDefinition:y0},exit:{gfmFootnoteCallString:v0,gfmFootnoteCall:b0,gfmFootnoteDefinitionLabelString:x0,gfmFootnoteDefinition:k0}}}function C0(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Lu},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){const s=o.createTracker(a);let l=s.move("[^");const u=o.enter("footnoteDefinition"),d=o.enter("label");return l+=s.move(o.safe(o.associationId(r),{before:l,after:"]"})),d(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
34
- `:" ")+o.indentLines(o.containerFlow(r,s.current()),t?$u:S0))),u(),l}}function S0(e,t,n){return t===0?e:$u(e,t,n)}function $u(e,t,n){return(n?"":" ")+e}const E0=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Mu.peek=N0;function T0(){return{canContainEols:["delete"],enter:{strikethrough:z0},exit:{strikethrough:I0}}}function A0(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:E0}],handlers:{delete:Mu}}}function z0(e){this.enter({type:"delete",children:[]},e)}function I0(e){this.exit(e)}function Mu(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function N0(){return"~"}function R0(e){return e.length}function O0(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||R0,o=[],a=[],s=[],l=[];let u=0,d=-1;for(;++d<e.length;){const v=[],b=[];let y=-1;for(e[d].length>u&&(u=e[d].length);++y<e[d].length;){const _=j0(e[d][y]);if(n.alignDelimiters!==!1){const x=i(_);b[y]=x,(l[y]===void 0||x>l[y])&&(l[y]=x)}v.push(_)}a[d]=v,s[d]=b}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=Js(r[c]);else{const v=Js(r);for(;++c<u;)o[c]=v}c=-1;const f=[],p=[];for(;++c<u;){const v=o[c];let b="",y="";v===99?(b=":",y=":"):v===108?b=":":v===114&&(y=":");let _=n.alignDelimiters===!1?1:Math.max(1,l[c]-b.length-y.length);const x=b+"-".repeat(_)+y;n.alignDelimiters!==!1&&(_=b.length+_+y.length,_>l[c]&&(l[c]=_),p[c]=_),f[c]=x}a.splice(1,0,f),s.splice(1,0,p),d=-1;const h=[];for(;++d<a.length;){const v=a[d],b=s[d];c=-1;const y=[];for(;++c<u;){const _=v[c]||"";let x="",z="";if(n.alignDelimiters!==!1){const N=l[c]-(b[c]||0),k=o[c];k===114?x=" ".repeat(N):k===99?N%2?(x=" ".repeat(N/2+.5),z=" ".repeat(N/2-.5)):(x=" ".repeat(N/2),z=x):z=" ".repeat(N)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&_==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(x),y.push(_),n.alignDelimiters!==!1&&y.push(z),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&y.push("|")}h.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return h.join(`
35
- `)}function j0(e){return e==null?"":String(e)}function Js(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function P0(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),D0);return i(),a}function D0(e,t,n){return">"+(n?"":" ")+e}function L0(e,t){return Ys(e,t.inConstruct,!0)&&!Ys(e,t.notInConstruct,!1)}function Ys(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Ks(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
36
- `&&L0(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
37
- `}function $0(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function M0(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function F0(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Z0(e,t,n,r){const i=F0(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(M0(e,n)){const c=n.enter("codeIndented"),f=n.indentLines(o,B0);return c(),f}const s=n.createTracker(r),l=i.repeat(Math.max($0(o,i)+1,3)),u=n.enter("codeFenced");let d=s.move(l);if(e.lang){const c=n.enter(`codeFencedLang${a}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${a}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
38
- `,encode:["`"],...s.current()})),c()}return d+=s.move(`
39
- `),o&&(d+=s.move(o+`
40
- `)),d+=s.move(l),u(),d}function B0(e,t,n){return(n?"":" ")+e}function qo(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function V0(e,t,n,r){const i=qo(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
41
- `,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function U0(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Qn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Hr(e,t,n){const r=En(e),i=En(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Fu.peek=H0;function Fu(e,t,n,r){const i=U0(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),d=Hr(r.before.charCodeAt(r.before.length-1),u,i);d.inside&&(l=Qn(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=Hr(r.after.charCodeAt(0),c,i);f.inside&&(l=l.slice(0,-1)+Qn(c));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function H0(e,t,n){return n.options.emphasis||"*"}function W0(e,t){let n=!1;return Pu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,co}),!!((!e.depth||e.depth<3)&&Mo(e)&&(t.options.setext||n))}function q0(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(W0(e,n)){const d=n.enter("headingSetext"),c=n.enter("phrasing"),f=n.containerPhrasing(e,{...o.current(),before:`
42
- `,after:`
43
- `});return c(),d(),f+`
44
- `+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
45
- `))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
46
- `,...o.current()});return/^[\t ]/.test(u)&&(u=Qn(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}Zu.peek=J0;function Zu(e){return e.value||""}function J0(){return"<"}Bu.peek=Y0;function Bu(e,t,n,r){const i=qo(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function Y0(){return"!"}Vu.peek=K0;function Vu(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const d=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=d,o(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function K0(){return"!"}Uu.peek=G0;function Uu(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=n.compilePattern(a);let l;if(a.atBreak)for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function G0(){return"`"}function Hu(e,t){const n=Mo(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Wu.peek=X0;function Wu(e,t,n,r){const i=qo(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Hu(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let c=a.move("<");return c+=a.move(n.containerPhrasing(e,{before:c,after:">",...a.current()})),c+=a.move(">"),s(),n.stack=d,c}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function X0(e,t,n){return Hu(e,n)?"<":"["}qu.peek=Q0;function qu(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const d=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=d,o(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Q0(){return"["}function Jo(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function e1(e){const t=Jo(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function t1(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ju(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function n1(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?t1(n):Jo(n);const s=e.ordered?a==="."?")":".":e1(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Ju(n)===a&&d){let c=-1;for(;++c<e.children.length;){const f=e.children[c];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),u}function r1(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function i1(e,t,n,r){const i=r1(n);let o=n.bulletCurrent||Jo(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),d);return l(),u;function d(c,f,p){return f?(p?"":" ".repeat(a))+c:(p?o:o+" ".repeat(a-o.length))+c}}function o1(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const a1=ri(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function s1(e,t,n,r){return(e.children.some(function(a){return a1(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function l1(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Yu.peek=u1;function Yu(e,t,n,r){const i=l1(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),d=Hr(r.before.charCodeAt(r.before.length-1),u,i);d.inside&&(l=Qn(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=Hr(r.after.charCodeAt(0),c,i);f.inside&&(l=l.slice(0,-1)+Qn(c));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function u1(e,t,n){return n.options.strong||"*"}function c1(e,t,n,r){return n.safe(e.value,r)}function d1(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function f1(e,t,n){const r=(Ju(n)+(n.options.ruleSpaces?" ":"")).repeat(d1(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Ku={blockquote:P0,break:Ks,code:Z0,definition:V0,emphasis:Fu,hardBreak:Ks,heading:q0,html:Zu,image:Bu,imageReference:Vu,inlineCode:Uu,link:Wu,linkReference:qu,list:n1,listItem:i1,paragraph:o1,root:s1,strong:Yu,text:c1,thematicBreak:f1};function p1(){return{enter:{table:h1,tableData:Gs,tableHeader:Gs,tableRow:g1},exit:{codeText:y1,table:m1,tableData:Di,tableHeader:Di,tableRow:Di}}}function h1(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function m1(e){this.exit(e),this.data.inTable=void 0}function g1(e){this.enter({type:"tableRow",children:[]},e)}function Di(e){this.exit(e)}function Gs(e){this.enter({type:"tableCell",children:[]},e)}function y1(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,v1));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function v1(e,t){return t==="|"?t:e}function b1(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
47
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:a,tableCell:l,tableRow:s}};function a(p,h,v,b){return u(d(p,v,b),p.align)}function s(p,h,v,b){const y=c(p,v,b),_=u([y]);return _.slice(0,_.indexOf(`
48
- `))}function l(p,h,v,b){const y=v.enter("tableCell"),_=v.enter("phrasing"),x=v.containerPhrasing(p,{...b,before:o,after:o});return _(),y(),x}function u(p,h){return O0(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function d(p,h,v){const b=p.children;let y=-1;const _=[],x=h.enter("table");for(;++y<b.length;)_[y]=c(b[y],h,v);return x(),_}function c(p,h,v){const b=p.children;let y=-1;const _=[],x=h.enter("tableRow");for(;++y<b.length;)_[y]=l(b[y],p,h,v);return x(),_}function f(p,h,v){let b=Ku.inlineCode(p,h,v);return v.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function x1(){return{exit:{taskListCheckValueChecked:Xs,taskListCheckValueUnchecked:Xs,paragraph:w1}}}function k1(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:_1}}}function Xs(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function w1(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function _1(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=Ku.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+a}}function sS(){return[n0(),_0(),T0(),p1(),x1()]}function lS(e){return{extensions:[r0(),C0(e),A0(),b1(e),k1()]}}const C1={tokenize:I1,partial:!0},Gu={tokenize:N1,partial:!0},Xu={tokenize:R1,partial:!0},Qu={tokenize:O1,partial:!0},S1={tokenize:j1,partial:!0},ec={name:"wwwAutolink",tokenize:A1,previous:nc},tc={name:"protocolAutolink",tokenize:z1,previous:rc},Rt={name:"emailAutolink",tokenize:T1,previous:ic},Et={};function E1(){return{text:Et}}let Qt=48;for(;Qt<123;)Et[Qt]=Rt,Qt++,Qt===58?Qt=65:Qt===91&&(Qt=97);Et[43]=Rt;Et[45]=Rt;Et[46]=Rt;Et[95]=Rt;Et[72]=[Rt,tc];Et[104]=[Rt,tc];Et[87]=[Rt,ec];Et[119]=[Rt,ec];function T1(e,t,n){const r=this;let i,o;return a;function a(c){return!mo(c)||!ic.call(r,r.previous)||Yo(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return mo(c)?(e.consume(c),s):c===64?(e.consume(c),l):n(c)}function l(c){return c===46?e.check(S1,d,u)(c):c===45||c===95||$e(c)?(o=!0,e.consume(c),l):d(c)}function u(c){return e.consume(c),i=!0,l}function d(c){return o&&i&&Ze(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function A1(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!nc.call(r,r.previous)||Yo(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(C1,e.attempt(Gu,e.attempt(Xu,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function z1(e,t,n){const r=this;let i="",o=!1;return a;function a(c){return(c===72||c===104)&&rc.call(r,r.previous)&&!Yo(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Ze(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(c),l}return n(c)}function l(c){return c===47?(e.consume(c),o?u:(o=!0,l)):n(c)}function u(c){return c===null||Br(c)||we(c)||nn(c)||ei(c)?n(c):e.attempt(Gu,e.attempt(Xu,d),n)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function I1(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function N1(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(Qu,l,s)(u):u===null||we(u)||nn(u)||u!==45&&ei(u)?l(u):(o=!0,e.consume(u),a)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function l(u){return i||r||!o?n(u):t(u)}}function R1(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(Qu,t,o)(a):a===null||we(a)||nn(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function O1(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||we(s)||nn(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||we(s)||nn(s)?t(s):r(s)}function o(s){return Ze(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):Ze(s)?(e.consume(s),a):n(s)}}function j1(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return $e(o)?n(o):t(o)}}function nc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||we(e)}function rc(e){return!Ze(e)}function ic(e){return!(e===47||mo(e))}function mo(e){return e===43||e===45||e===46||e===95||$e(e)}function Yo(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const P1={tokenize:V1,partial:!0};function D1(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:F1,continuation:{tokenize:Z1},exit:B1}},text:{91:{name:"gfmFootnoteCall",tokenize:M1},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:L1,resolveTo:$1}}}}function L1(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=mt(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function $1(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function M1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!a||c===null||c===91||we(c))return n(c);if(c===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(mt(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return we(c)||(a=!0),o++,e.consume(c),c===92?d:u}function d(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function F1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(h)}function d(h){if(a>999||h===93&&!s||h===null||h===91||we(h))return n(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=mt(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return we(h)||(s=!0),a++,e.consume(h),h===92?c:d}function c(h){return h===91||h===92||h===93?(e.consume(h),a++,d):d(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),me(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function Z1(e,t,n){return e.check(ir,t,e.attempt(P1,t,n))}function B1(e){e.exit("gfmFootnoteDefinition")}function V1(e,t,n){const r=this;return me(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function U1(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},c={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},f=[["enter",d,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",c,s]],p=s.parser.constructs.insideSpan.null;p&&rt(f,f.length,0,ti(p,a.slice(u+1,l),s)),rt(f,f.length,0,[["exit",c,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",d,s]]),rt(a,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const u=this.previous,d=this.events;let c=0;return f;function f(h){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(h):(a.enter("strikethroughSequenceTemporary"),p(h))}function p(h){const v=En(u);if(h===126)return c>1?l(h):(a.consume(h),c++,p);if(c<2&&!n)return l(h);const b=a.exit("strikethroughSequenceTemporary"),y=En(h);return b._open=!y||y===2&&!!v,b._close=!v||v===2&&!!y,s(h)}}}class H1{constructor(){this.map=[]}add(t,n,r){W1(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function W1(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function q1(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function J1(){return{flow:{null:{name:"table",tokenize:Y1,resolveAll:K1}}}}function Y1(e,t,n){const r=this;let i=0,o=0,a;return s;function s(w){let M=r.events.length-1;for(;M>-1;){const Z=r.events[M][1].type;if(Z==="lineEnding"||Z==="linePrefix")M--;else break}const P=M>-1?r.events[M][1].type:null,W=P==="tableHead"||P==="tableRow"?k:l;return W===k&&r.parser.lazy[r.now().line]?n(w):W(w)}function l(w){return e.enter("tableHead"),e.enter("tableRow"),u(w)}function u(w){return w===124||(a=!0,o+=1),d(w)}function d(w){return w===null?n(w):ee(w)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p):n(w):ce(w)?me(e,d,"whitespace")(w):(o+=1,a&&(a=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),a=!0,d):(e.enter("data"),c(w)))}function c(w){return w===null||w===124||we(w)?(e.exit("data"),d(w)):(e.consume(w),w===92?f:c)}function f(w){return w===92||w===124?(e.consume(w),c):c(w)}function p(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),a=!1,ce(w)?me(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):h(w))}function h(w){return w===45||w===58?b(w):w===124?(a=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),v):N(w)}function v(w){return ce(w)?me(e,b,"whitespace")(w):b(w)}function b(w){return w===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),y):w===45?(o+=1,y(w)):w===null||ee(w)?z(w):N(w)}function y(w){return w===45?(e.enter("tableDelimiterFiller"),_(w)):N(w)}function _(w){return w===45?(e.consume(w),_):w===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(w))}function x(w){return ce(w)?me(e,z,"whitespace")(w):z(w)}function z(w){return w===124?h(w):w===null||ee(w)?!a||i!==o?N(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):N(w)}function N(w){return n(w)}function k(w){return e.enter("tableRow"),$(w)}function $(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),$):w===null||ee(w)?(e.exit("tableRow"),t(w)):ce(w)?me(e,$,"whitespace")(w):(e.enter("data"),R(w))}function R(w){return w===null||w===124||we(w)?(e.exit("data"),$(w)):(e.consume(w),w===92?U:R)}function U(w){return w===92||w===124?(e.consume(w),R):R(w)}}function K1(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,d,c;const f=new H1;for(;++n<e.length;){const p=e[n],h=p[1];p[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(Qs(f,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",d,t]])),i=h.type==="tableDelimiterRow"?2:d?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],c=Cr(f,t,o,i,void 0,c),o=[0,0,0,0]),a[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],c=Cr(f,t,o,i,void 0,c)),o=a,a=[o[1],n,0,0])):h.type==="tableHead"?(s=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],c=Cr(f,t,o,i,n,c)):a[1]!==0&&(c=Cr(f,t,a,i,n,c)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&Qs(f,t,l,u,d),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=q1(t.events,n))}return e}function Cr(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},pn(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=pn(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=pn(t.events,n[2]),d=pn(t.events,n[3]),c={type:s,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,v=n[3]-n[2]-1;e.add(h,v,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},pn(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Qs(e,t,n,r,i){const o=[],a=pn(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function pn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const G1={name:"tasklistCheck",tokenize:Q1};function X1(){return{text:{91:G1}}}function Q1(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return we(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return ee(l)?t(l):ce(l)?e.check({tokenize:e_},t,n)(l):n(l)}}function e_(e,t,n){return me(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function uS(e){return mu([E1(),D1(),U1(e),J1(),X1()])}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(null,arguments)}function pe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var oc={},ac=V.createContext(oc),t_=(e,t)=>E({},e,t),n_=()=>V.useContext(ac),Ko=V.createContext(()=>{});Ko.displayName="JVR.DispatchShowTools";function r_(){return V.useReducer(t_,oc)}function sc(){return V.useContext(Ko)}var lc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(ac.Provider,{value:t,children:I.jsx(Ko.Provider,{value:n,children:r})})};lc.displayName="JVR.ShowTools";var uc={},cc=V.createContext(uc),i_=(e,t)=>E({},e,t),oi=()=>V.useContext(cc),Go=V.createContext(()=>{});Go.displayName="JVR.DispatchExpands";function o_(){return V.useReducer(i_,uc)}function a_(){return V.useContext(Go)}var dc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(cc.Provider,{value:t,children:I.jsx(Go.Provider,{value:n,children:r})})};dc.displayName="JVR.Expands";var fc={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},pc=V.createContext(fc),s_=(e,t)=>E({},e,t),Ce=()=>V.useContext(pc),Xo=V.createContext(()=>{});Xo.displayName="JVR.DispatchTypes";function l_(){return V.useReducer(s_,fc)}function u_(){return V.useContext(Xo)}function hc(e){var{initial:t,dispatch:n,children:r}=e;return I.jsx(pc.Provider,{value:t,children:I.jsx(Xo.Provider,{value:n,children:r})})}hc.displayName="JVR.Types";var c_=["style"];function mc(e){var{style:t}=e,n=pe(e,c_),r=E({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return I.jsx("svg",E({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:r},n,{children:I.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}mc.displayName="JVR.TriangleArrow";var gc={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:I.jsx(mc,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},yc=V.createContext(gc),d_=(e,t)=>E({},e,t),Ye=()=>V.useContext(yc),Qo=V.createContext(()=>{});Qo.displayName="JVR.DispatchSymbols";function f_(){return V.useReducer(d_,gc)}function p_(){return V.useContext(Qo)}var vc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(yc.Provider,{value:t,children:I.jsx(Qo.Provider,{value:n,children:r})})};vc.displayName="JVR.Symbols";var bc={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},xc=V.createContext(bc),h_=(e,t)=>E({},e,t),ct=()=>V.useContext(xc),ea=V.createContext(()=>{});ea.displayName="JVR.DispatchSection";function m_(){return V.useReducer(h_,bc)}function g_(){return V.useContext(ea)}var kc=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(xc.Provider,{value:t,children:I.jsx(ea.Provider,{value:n,children:r})})};kc.displayName="JVR.Section";var wc={objectSortKeys:!1,indentWidth:15},ta=V.createContext(wc);ta.displayName="JVR.Context";var _c=V.createContext(()=>{});_c.displayName="JVR.DispatchContext";function y_(e,t){return E({},e,t)}var sn=()=>V.useContext(ta),Cc=e=>{var{children:t,initialState:n,initialTypes:r}=e,[i,o]=V.useReducer(y_,Object.assign({},wc,n)),[a,s]=r_(),[l,u]=o_(),[d,c]=l_(),[f,p]=f_(),[h,v]=m_();return V.useEffect(()=>o(E({},n)),[n]),I.jsx(ta.Provider,{value:i,children:I.jsx(_c.Provider,{value:o,children:I.jsx(lc,{initial:a,dispatch:s,children:I.jsx(dc,{initial:l,dispatch:u,children:I.jsx(hc,{initial:E({},d,r),dispatch:c,children:I.jsx(vc,{initial:f,dispatch:p,children:I.jsx(kc,{initial:h,dispatch:v,children:t})})})})})})})};Cc.displayName="JVR.Provider";function v_(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var b_=["isNumber","value","parentValue","keyName","keys"],x_=["as","render"],k_=["as","render"],w_=["as","render"],__=["as","style","render"],C_=["as","render"],S_=["as","render"],E_=["as","render"],T_=["as","render"],go=e=>{var{Quote:t={}}=Ye(),{isNumber:n,value:r,parentValue:i,keyName:o,keys:a}=e,s=pe(e,b_);if(n)return null;var{as:l,render:u}=t,d=pe(t,x_),c=l||"span",f=E({},s,d),p={value:r,parentValue:i,keyName:o,keys:a||(o?[o]:[])},h=u&&typeof u=="function"&&u(f,p);return h||I.jsx(c,E({},f))};go.displayName="JVR.Quote";var er=e=>{var{ValueQuote:t={}}=Ye(),n=E({},(v_(e),e)),{as:r,render:i}=t,o=pe(t,k_),a=r||"span",s=E({},n,o),l=i&&typeof i=="function"&&i(s,{});return l||I.jsx(a,E({},s))};er.displayName="JVR.ValueQuote";var Sc=e=>{var{value:t,parentValue:n,keyName:r,keys:i}=e,{Colon:o={}}=Ye(),{as:a,render:s}=o,l=pe(o,w_),u=a||"span",d=s&&typeof s=="function"&&s(l,{value:t,parentValue:n,keyName:r,keys:i||(r?[r]:[])});return d||I.jsx(u,E({},l))};Sc.displayName="JVR.Colon";var Ec=e=>{var{Arrow:t={}}=Ye(),n=oi(),{expandKey:r,style:i,value:o,parentValue:a,keyName:s,keys:l}=e,u=!!n[r],{as:d,style:c,render:f}=t,p=pe(t,__),h=d||"span",v=f&&typeof f=="function",b=E({},p,{"data-expanded":u,style:E({},c,i)}),y={value:o,parentValue:a,keyName:s,keys:l||(s?[s]:[])},_=v&&f(b,y);return _||I.jsx(h,E({},p,{style:E({},c,i)}))};Ec.displayName="JVR.Arrow";var Tc=e=>{var{isBrackets:t,value:n,parentValue:r,keyName:i,keys:o}=e,{BracketsLeft:a={},BraceLeft:s={}}=Ye(),l={value:n,parentValue:r,keyName:i,keys:o||(i?[i]:[])};if(t){var{as:u,render:d}=a,c=pe(a,C_),f=u||"span",p=d&&typeof d=="function"&&d(c,l);return p||I.jsx(f,E({},c))}var{as:h,render:v}=s,b=pe(s,S_),y=h||"span",_=v&&typeof v=="function"&&v(b,l);return _||I.jsx(y,E({},b))};Tc.displayName="JVR.BracketsOpen";var na=e=>{var{isBrackets:t,isVisiable:n,value:r,parentValue:i,keyName:o,keys:a}=e,s={value:r,parentValue:i,keyName:o,keys:a||(o?[o]:[])};if(!n)return null;var{BracketsRight:l={},BraceRight:u={}}=Ye();if(t){var{as:d,render:c}=l,f=pe(l,E_),p=d||"span",h=c&&typeof c=="function"&&c(f,s);return h||I.jsx(p,E({},f))}var{as:v,render:b}=u,y=pe(u,T_),_=v||"span",x=b&&typeof b=="function"&&b(y,s);return x||I.jsx(_,E({},y))};na.displayName="JVR.BracketsClose";var Ac=e=>{var t,{keyName:n,value:r,expandKey:i,parentValue:o,level:a,keys:s=[]}=e,l=oi(),{collapsed:u,shouldExpandNodeInitially:d}=sn(),c=typeof u=="boolean"?u:typeof u=="number"?a>u:!1,f=(t=l[i])!=null?t:d?!1:c,p=d&&d(!f,{value:r,keys:s,level:a,keyName:n,parentValue:o});if(l[i]===void 0&&!p)return null;var h=Object.keys(r).length;if(f||h===0)return null;var v={paddingLeft:4},b={keyName:n,value:r,keys:s,parentValue:o},y=Array.isArray(r),_=r instanceof Set;return I.jsx("div",{style:v,children:I.jsx(na,E({isBrackets:y||_},b,{isVisiable:!0}))})};Ac.displayName="JVR.NestedClose";var A_=["as","render"],z_=["as","render"],I_=["as","render"],N_=["as","render"],R_=["as","render"],O_=["as","render"],j_=["as","render"],P_=["as","render"],D_=["as","render"],L_=["as","render"],$_=["as","render"],M_=["as","render"],F_=["as","render"],yo=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},zc=e=>{var{value:t,keyName:n}=e,{Set:r={},displayDataTypes:i}=Ce(),o=t instanceof Set;if(!o||!i)return null;var{as:a,render:s}=r,l=pe(r,A_),u=s&&typeof s=="function",d=u&&s(l,{type:"type",value:t,keyName:n});if(d)return d;var c=a||"span";return I.jsx(c,E({},l))};zc.displayName="JVR.SetComp";var Ic=e=>{var{value:t,keyName:n}=e,{Map:r={},displayDataTypes:i}=Ce(),o=t instanceof Map;if(!o||!i)return null;var{as:a,render:s}=r,l=pe(r,z_),u=s&&typeof s=="function",d=u&&s(l,{type:"type",value:t,keyName:n});if(d)return d;var c=a||"span";return I.jsx(c,E({},l))};Ic.displayName="JVR.MapComp";var vt={opacity:.75,paddingRight:4},Nc=e=>{var{children:t="",keyName:n,keys:r}=e,{Str:i={},displayDataTypes:o}=Ce(),{shortenTextAfterLength:a=30,stringEllipsis:s="..."}=sn(),{as:l,render:u}=i,d=pe(i,I_),c=t,[f,p]=V.useState(a&&c.length>a);V.useEffect(()=>p(a&&c.length>a),[a]);var h=l||"span",v=E({},vt,i.style||{});a>0&&(d.style=E({},d.style,{cursor:c.length<=a?"initial":"pointer"}),c.length>a&&(d.onClick=()=>{p(!f)}));var b=f?""+c.slice(0,a)+s:c,y=u&&typeof u=="function",_=y&&u(E({},d,{style:v}),{type:"type",value:t,keyName:n,keys:r}),x=f?"w-rjv-value w-rjv-value-short":"w-rjv-value",z=y&&u(E({},d,{children:b,className:x}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(_||I.jsx(h,E({},d,{style:v}))),z||I.jsxs(V.Fragment,{children:[I.jsx(er,{}),I.jsx(h,E({},d,{className:x,children:b})),I.jsx(er,{})]})]})};Nc.displayName="JVR.TypeString";var Rc=e=>{var{children:t,keyName:n,keys:r}=e,{True:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,N_),u=a||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};Rc.displayName="JVR.TypeTrue";var Oc=e=>{var{children:t,keyName:n,keys:r}=e,{False:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,R_),u=a||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};Oc.displayName="JVR.TypeFalse";var jc=e=>{var{children:t,keyName:n,keys:r}=e,{Float:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,O_),u=a||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};jc.displayName="JVR.TypeFloat";var Pc=e=>{var{children:t,keyName:n,keys:r}=e,{Int:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,j_),u=a||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:t?.toString()}))]})};Pc.displayName="JVR.TypeInt";var Dc=e=>{var{children:t,keyName:n,keys:r}=e,{Bigint:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,P_),u=a||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsx(u,E({},l,{className:"w-rjv-value",children:yo(t?.toString())}))]})};Dc.displayName="JVR.TypeFloat";var Lc=e=>{var{children:t,keyName:n,keys:r}=e,{Url:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,D_),u=a||"span",d=E({},vt,i.style),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t?.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),p||I.jsxs("a",E({href:t?.href,target:"_blank"},l,{className:"w-rjv-value",children:[I.jsx(er,{}),t?.href,I.jsx(er,{})]}))]})};Lc.displayName="JVR.TypeUrl";var $c=e=>{var{children:t,keyName:n,keys:r}=e,{Date:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,L_),u=a||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=t instanceof Date?t.toLocaleString():t,h=c&&s(E({},l,{children:p,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),h||I.jsx(u,E({},l,{className:"w-rjv-value",children:p}))]})};$c.displayName="JVR.TypeDate";var Mc=e=>{var{children:t,keyName:n,keys:r}=e,{Undefined:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,$_),u=a||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),p]})};Mc.displayName="JVR.TypeUndefined";var Fc=e=>{var{children:t,keyName:n,keys:r}=e,{Null:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,M_),u=a||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),p]})};Fc.displayName="JVR.TypeNull";var Zc=e=>{var{children:t,keyName:n,keys:r}=e,{Nan:i={},displayDataTypes:o}=Ce(),{as:a,render:s}=i,l=pe(i,F_),u=a||"span",d=E({},vt,i.style||{}),c=s&&typeof s=="function",f=c&&s(E({},l,{style:d}),{type:"type",value:t,keyName:n,keys:r}),p=c&&s(E({},l,{children:t?.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(V.Fragment,{children:[o&&(f||I.jsx(u,E({},l,{style:d}))),p]})};Zc.displayName="JVR.TypeNan";var Z_=e=>Number(e)===e&&e%1!==0||isNaN(e),Bc=e=>{var{value:t,keyName:n,keys:r}=e,i={keyName:n,keys:r};return t instanceof URL?I.jsx(Lc,E({},i,{children:t})):typeof t=="string"?I.jsx(Nc,E({},i,{children:t})):t===!0?I.jsx(Rc,E({},i,{children:t})):t===!1?I.jsx(Oc,E({},i,{children:t})):t===null?I.jsx(Fc,E({},i,{children:t})):t===void 0?I.jsx(Mc,E({},i,{children:t})):t instanceof Date?I.jsx($c,E({},i,{children:t})):typeof t=="number"&&isNaN(t)?I.jsx(Zc,E({},i,{children:t})):typeof t=="number"&&Z_(t)?I.jsx(jc,E({},i,{children:t})):typeof t=="bigint"?I.jsx(Dc,E({},i,{children:t})):typeof t=="number"?I.jsx(Pc,E({},i,{children:t})):null};Bc.displayName="JVR.Value";function Yt(e,t,n){var r=p_(),i=[e.className,t.className].filter(Boolean).join(" "),o=E({},e,t,{className:i,style:E({},e.style,t.style),children:t.children||e.children});V.useEffect(()=>r({[n]:o}),[t])}function it(e,t,n){var r=u_(),i=[e.className,t.className].filter(Boolean).join(" "),o=E({},e,t,{className:i,style:E({},e.style,t.style),children:t.children||e.children});V.useEffect(()=>r({[n]:o}),[t])}function On(e,t,n){var r=g_(),i=[e.className,t.className].filter(Boolean).join(" "),o=E({},e,t,{className:i,style:E({},e.style,t.style),children:t.children||e.children});V.useEffect(()=>r({[n]:o}),[t])}var B_=["as","render"],Vc=e=>{var{KeyName:t={}}=ct();return On(t,e,"KeyName"),null};Vc.displayName="JVR.KeyName";var Uc=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:o}=e,a=typeof t=="number",s={color:a?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:l={}}=ct(),{as:u,render:d}=l,c=pe(l,B_);c.style=E({},c.style,s);var f=u||"span",p=d&&typeof d=="function"&&d(E({},c,{children:t}),{value:n,parentValue:r,keyName:i,keys:o||(i?[i]:[])});return p||I.jsx(f,E({},c,{children:t}))};Uc.displayName="JVR.KeyNameComp";var V_=["children","value","parentValue","keyName","keys"],U_=["as","render","children"],Hc=e=>{var{Row:t={}}=ct();return On(t,e,"Row"),null};Hc.displayName="JVR.Row";var Wc=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:o}=e,a=pe(e,V_),{Row:s={}}=ct(),{as:l,render:u}=s,d=pe(s,U_),c=l||"div",f=u&&typeof u=="function"&&u(E({},a,d,{children:t}),{value:n,keyName:i,parentValue:r,keys:o});return f||I.jsx(c,E({},a,d,{children:t}))};Wc.displayName="JVR.RowComp";function H_(e){var t=V.useRef();return V.useEffect(()=>{t.current=e}),t.current}function W_(e){var{value:t,highlightUpdates:n,highlightContainer:r}=e,i=H_(t),o=V.useMemo(()=>{if(!n||i===void 0)return!1;if(typeof t!=typeof i)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(i)?!1:t!==i;if(Array.isArray(t)!==Array.isArray(i))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==i)return!0},[n,t]);V.useEffect(()=>{r&&r.current&&o&&"animate"in r.current&&r.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[o,t,r])}var q_=["keyName","value","parentValue","expandKey","keys","beforeCopy"],J_=["as","render"],ra=e=>{var{keyName:t,value:n,parentValue:r,expandKey:i,keys:o,beforeCopy:a}=e,s=pe(e,q_),{onCopied:l,enableClipboard:u,beforeCopy:d}=sn(),c=n_(),f=c[i],[p,h]=V.useState(!1),{Copied:v={}}=ct(),b=v?.beforeCopy;if(u===!1||!f)return null;var y=R=>{R.stopPropagation();var U="";typeof n=="number"&&n===1/0?U="Infinity":typeof n=="number"&&isNaN(n)?U="NaN":typeof n=="bigint"?U=yo(n):n instanceof Date?U=n.toLocaleString():U=JSON.stringify(n,(P,W)=>typeof W=="bigint"?yo(W):W,2);var w=a||b||d;w&&typeof w=="function"&&(U=w(U,t,n,r,i,o)),l&&l(U,n),h(!0);var M=navigator.clipboard||{writeText(P){return new Promise((W,Z)=>{var O=document.createElement("textarea");O.style.position="absolute",O.style.opacity="0",O.style.left="-99999999px",O.value=P,document.body.appendChild(O),O.select(),document.execCommand("copy")?W():Z(),O.remove()})}};M.writeText(U).then(()=>{var P=setTimeout(()=>{h(!1),clearTimeout(P)},3e3)}).catch(P=>{})},_={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:y},{render:x}=v,z=pe(v,J_),N=E({},z,s,_,{style:E({},z.style,s.style,_.style)}),k=x&&typeof x=="function",$=k&&x(E({},N,{"data-copied":p}),{value:n,keyName:t,keys:o,parentValue:r});return $||(p?I.jsx("svg",E({viewBox:"0 0 32 36"},N,{children:I.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):I.jsx("svg",E({viewBox:"0 0 32 36"},N,{children:I.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};ra.displayName="JVR.Copied";function qc(){var e=V.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var Jc=e=>{var t,{keyName:n,value:r,expandKey:i="",level:o,keys:a=[],parentValue:s}=e,l=oi(),{objectSortKeys:u,indentWidth:d,collapsed:c,shouldExpandNodeInitially:f}=sn(),p=typeof c=="boolean"?c:typeof c=="number"?o>c:!1,h=(t=l[i])!=null?t:f?!1:p,v=f&&f(!h,{value:r,keys:a,level:o,keyName:n,parentValue:s});if(l[i]===void 0&&!v||h)return null;var b=Array.isArray(r),y=b?Object.entries(r).map(x=>[Number(x[0]),x[1]]):Object.entries(r);u&&(y=u===!0?y.sort((x,z)=>{var[N]=x,[k]=z;return typeof N=="string"&&typeof k=="string"?N.localeCompare(k):0}):y.sort((x,z)=>{var[N,k]=x,[$,R]=z;return typeof N=="string"&&typeof $=="string"?u(N,$,k,R):0}));var _={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:d,marginLeft:6};return I.jsx("div",{className:"w-rjv-wrap",style:_,children:y.map((x,z)=>{var[N,k]=x;return I.jsx(Yc,{parentValue:r,keyName:N,keys:[...a,N],value:k,level:o},z)})})};Jc.displayName="JVR.KeyValues";var ia=e=>{var{keyName:t,parentValue:n,keys:r,value:i}=e,{highlightUpdates:o}=sn(),a=typeof t=="number",s=V.useRef(null);W_({value:i,highlightUpdates:o,highlightContainer:s});var l={keyName:t,value:i,keys:r,parentValue:n};return I.jsxs(V.Fragment,{children:[I.jsxs("span",{ref:s,children:[I.jsx(go,E({isNumber:a,"data-placement":"left"},l)),I.jsx(Uc,E({},l,{children:t})),I.jsx(go,E({isNumber:a,"data-placement":"right"},l))]}),I.jsx(Sc,E({},l))]})};ia.displayName="JVR.KayName";var Yc=e=>{var{keyName:t,value:n,parentValue:r,level:i=0,keys:o=[]}=e,a=sc(),s=qc(),l=Array.isArray(n),u=n instanceof Set,d=n instanceof Map,c=n instanceof Date,f=n instanceof URL,p=n&&typeof n=="object"&&!l&&!u&&!d&&!c&&!f,h=p||l||u||d;if(h){var v=u?Array.from(n):d?Object.fromEntries(n):n;return I.jsx(oa,{keyName:t,value:v,parentValue:r,initialValue:n,keys:o,level:i+1})}var b={onMouseEnter:()=>a({[s]:!0}),onMouseLeave:()=>a({[s]:!1})};return I.jsxs(Wc,E({className:"w-rjv-line",value:n,keyName:t,keys:o,parentValue:r},b,{children:[I.jsx(ia,{keyName:t,value:n,keys:o,parentValue:r}),I.jsx(Bc,{keyName:t,value:n,keys:o}),I.jsx(ra,{keyName:t,value:n,keys:o,parentValue:r,expandKey:s})]}))};Yc.displayName="JVR.KeyValuesItem";var Y_=["value","keyName"],K_=["as","render"],Kc=e=>{var{CountInfoExtra:t={}}=ct();return On(t,e,"CountInfoExtra"),null};Kc.displayName="JVR.CountInfoExtra";var Gc=e=>{var{value:t={},keyName:n}=e,r=pe(e,Y_),{CountInfoExtra:i={}}=ct(),{as:o,render:a}=i,s=pe(i,K_);if(!a&&!s.children)return null;var l=o||"span",u=a&&typeof a=="function",d=E({},s,r),c=u&&a(d,{value:t,keyName:n});return c||I.jsx(l,E({},d))};Gc.displayName="JVR.CountInfoExtraComps";var G_=["value","keyName"],X_=["as","render"],Xc=e=>{var{CountInfo:t={}}=ct();return On(t,e,"CountInfo"),null};Xc.displayName="JVR.CountInfo";var Qc=e=>{var{value:t={},keyName:n}=e,r=pe(e,G_),{displayObjectSize:i}=sn(),{CountInfo:o={}}=ct();if(!i)return null;var{as:a,render:s}=o,l=pe(o,X_),u=a||"span";l.style=E({},l.style,e.style);var d=Object.keys(t).length;l.children||(l.children=d+" item"+(d===1?"":"s"));var c=E({},l,r),f=s&&typeof s=="function",p=f&&s(E({},c,{"data-length":d}),{value:t,keyName:n});return p||I.jsx(u,E({},c))};Qc.displayName="JVR.CountInfoComp";var Q_=["as","render"],ed=e=>{var{Ellipsis:t={}}=ct();return On(t,e,"Ellipsis"),null};ed.displayName="JVR.Ellipsis";var td=e=>{var{isExpanded:t,value:n,keyName:r}=e,{Ellipsis:i={}}=ct(),{as:o,render:a}=i,s=pe(i,Q_),l=o||"span",u=a&&typeof a=="function"&&a(E({},s,{"data-expanded":t}),{value:n,keyName:r});return u||(!t||typeof n=="object"&&Object.keys(n).length==0?null:I.jsx(l,E({},s)))};td.displayName="JVR.EllipsisComp";var nd=e=>{var t,{keyName:n,expandKey:r,keys:i=[],initialValue:o,value:a,parentValue:s,level:l}=e,u=oi(),d=a_(),{onExpand:c,collapsed:f,shouldExpandNodeInitially:p}=sn(),h=typeof f=="boolean"?f:typeof f=="number"?l>f:!1,v=(t=u[r])!=null?t:p?!1:h,b=p&&p(!v,{value:a,keys:i,level:l,keyName:n,parentValue:s});u[r]===void 0&&p&&(v=!b);var y=()=>{var M={expand:!v,value:a,keyid:r,keyName:n};c&&c(M),d({[r]:M.expand})},_={display:"inline-flex",alignItems:"center"},x={transform:"rotate("+(v?"-90":"0")+"deg)",transition:"all 0.3s"},z=Object.keys(a).length,N=typeof a=="object",k=Array.isArray(a),$=a instanceof Set,R=z!==0&&(k||$||N),U={style:_};R&&(U.onClick=y);var w={keyName:n,value:a,keys:i,parentValue:s};return I.jsxs("span",E({},U,{children:[R&&I.jsx(Ec,E({style:x,expandKey:r},w)),(n||typeof n=="number")&&I.jsx(ia,E({},w)),I.jsx(zc,{value:o,keyName:n}),I.jsx(Ic,{value:o,keyName:n}),I.jsx(Tc,E({isBrackets:k||$},w)),I.jsx(td,{keyName:n,value:a,isExpanded:v}),I.jsx(na,E({isVisiable:v||!R,isBrackets:k||$},w)),I.jsx(Qc,{value:a,keyName:n}),I.jsx(Gc,{value:a,keyName:n}),I.jsx(ra,{keyName:n,value:a,expandKey:r,parentValue:s,keys:i})]}))};nd.displayName="JVR.NestedOpen";var eC=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],oa=V.forwardRef((e,t)=>{var{className:n="",parentValue:r,level:i=1,value:o,initialValue:a,keys:s,keyName:l}=e,u=pe(e,eC),d=sc(),c=qc(),f=[n,"w-rjv-inner"].filter(Boolean).join(" "),p={onMouseEnter:()=>d({[c]:!0}),onMouseLeave:()=>d({[c]:!1})};return I.jsxs("div",E({className:f,ref:t},u,p,{children:[I.jsx(nd,{expandKey:c,value:o,level:i,keys:s,parentValue:r,keyName:l,initialValue:a}),I.jsx(Jc,{expandKey:c,value:o,level:i,keys:s,parentValue:r,keyName:l}),I.jsx(Ac,{expandKey:c,value:o,level:i,keys:s,parentValue:r,keyName:l})]}))});oa.displayName="JVR.Container";var rd=e=>{var{BraceLeft:t={}}=Ye();return Yt(t,e,"BraceLeft"),null};rd.displayName="JVR.BraceLeft";var id=e=>{var{BraceRight:t={}}=Ye();return Yt(t,e,"BraceRight"),null};id.displayName="JVR.BraceRight";var od=e=>{var{BracketsLeft:t={}}=Ye();return Yt(t,e,"BracketsLeft"),null};od.displayName="JVR.BracketsLeft";var ad=e=>{var{BracketsRight:t={}}=Ye();return Yt(t,e,"BracketsRight"),null};ad.displayName="JVR.BracketsRight";var sd=e=>{var{Arrow:t={}}=Ye();return Yt(t,e,"Arrow"),null};sd.displayName="JVR.Arrow";var ld=e=>{var{Colon:t={}}=Ye();return Yt(t,e,"Colon"),null};ld.displayName="JVR.Colon";var ud=e=>{var{Quote:t={}}=Ye();return Yt(t,e,"Quote"),null};ud.displayName="JVR.Quote";var cd=e=>{var{ValueQuote:t={}}=Ye();return Yt(t,e,"ValueQuote"),null};cd.displayName="JVR.ValueQuote";var dd=e=>{var{Bigint:t={}}=Ce();return it(t,e,"Bigint"),null};dd.displayName="JVR.Bigint";var fd=e=>{var{Date:t={}}=Ce();return it(t,e,"Date"),null};fd.displayName="JVR.Date";var pd=e=>{var{False:t={}}=Ce();return it(t,e,"False"),null};pd.displayName="JVR.False";var hd=e=>{var{Float:t={}}=Ce();return it(t,e,"Float"),null};hd.displayName="JVR.Float";var md=e=>{var{Int:t={}}=Ce();return it(t,e,"Int"),null};md.displayName="JVR.Int";var gd=e=>{var{Map:t={}}=Ce();return it(t,e,"Map"),null};gd.displayName="JVR.Map";var yd=e=>{var{Nan:t={}}=Ce();return it(t,e,"Nan"),null};yd.displayName="JVR.Nan";var vd=e=>{var{Null:t={}}=Ce();return it(t,e,"Null"),null};vd.displayName="JVR.Null";var bd=e=>{var{Set:t={}}=Ce();return it(t,e,"Set"),null};bd.displayName="JVR.Set";var xd=e=>{var{Str:t={}}=Ce();return it(t,e,"Str"),null};xd.displayName="JVR.StringText";var kd=e=>{var{True:t={}}=Ce();return it(t,e,"True"),null};kd.displayName="JVR.True";var wd=e=>{var{Undefined:t={}}=Ce();return it(t,e,"Undefined"),null};wd.displayName="JVR.Undefined";var _d=e=>{var{Url:t={}}=Ce();return it(t,e,"Url"),null};_d.displayName="JVR.Url";var Cd=e=>{var{Copied:t={}}=ct();return On(t,e,"Copied"),null};Cd.displayName="JVR.Copied";var tC=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],be=V.forwardRef((e,t)=>{var{className:n="",style:r,value:i,children:o,collapsed:a=!1,shouldExpandNodeInitially:s=()=>!0,indentWidth:l=15,displayObjectSize:u=!0,shortenTextAfterLength:d=30,stringEllipsis:c,highlightUpdates:f=!0,enableClipboard:p=!0,displayDataTypes:h=!0,objectSortKeys:v=!1,onExpand:b,onCopied:y,beforeCopy:_}=e,x=pe(e,tC),z=E({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},r),N=["w-json-view-container","w-rjv",n].filter(Boolean).join(" ");return I.jsxs(Cc,{initialState:{value:i,objectSortKeys:v,indentWidth:l,shouldExpandNodeInitially:a===!1?s:()=>!1,displayObjectSize:u,collapsed:a,enableClipboard:p,shortenTextAfterLength:d,stringEllipsis:c,highlightUpdates:f,onCopied:y,onExpand:b,beforeCopy:_},initialTypes:{displayDataTypes:h},children:[I.jsx(oa,E({value:i},x,{ref:t,className:N,style:z})),o]})});be.Bigint=dd;be.Date=fd;be.False=pd;be.Float=hd;be.Int=md;be.Map=gd;be.Nan=yd;be.Null=vd;be.Set=bd;be.String=xd;be.True=kd;be.Undefined=wd;be.Url=_d;be.ValueQuote=cd;be.Arrow=sd;be.Colon=ld;be.Quote=ud;be.Ellipsis=ed;be.BraceLeft=rd;be.BraceRight=id;be.BracketsLeft=od;be.BracketsRight=ad;be.Copied=Cd;be.CountInfo=Xc;be.CountInfoExtra=Kc;be.KeyName=Vc;be.Row=Hc;be.displayName="JVR.JsonView";export{MC as $,Zr as A,eS as B,KC as C,QC as D,aS as E,iS as F,oS as G,tS as H,Pu as I,nS as J,rS as K,ag as L,OC as M,IC as N,zC as O,jC as P,DC as Q,Qm as R,PC as S,Ba as T,AC as U,Uw as V,NC as W,lm as X,RC as Y,tg as Z,Bv as _,bC as a,Kg as a0,$C as a1,LC as a2,be as a3,SC as b,_C as c,xC as d,sS as e,lS as f,uS as g,ZC as h,BC as i,VC as j,HC as k,TC as l,WC as m,kC as n,CC as o,JC as p,qC as q,EC as r,vC as s,UC as t,wC as u,FC as v,YC as w,iC as x,XC as y,GC as z};