PageSourceSearch

https://www.filomail.com/_next/static/chunks/5427-8390c1f995d9a48d.js

js filomail.com collected 2026-09-25 02:56:49 UTC 920,935 bytes, 126 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5427],{131:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(t=arguments[p],null!=t)for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(o(i)||(u=a(i)))?(u?(u=!1,c=r&&a(r)?r:[]):c=r&&o(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},267:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},1018:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},1614:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},1623:(e,t,n)=>{"use strict";let r;n.d(t,{mD:()=>tk,Z9:()=>eM,n_:()=>eU,hK:()=>eB,$C:()=>eH,G1:()=>eG,ID:()=>t_,qx:()=>eq,_Z:()=>tS,hd:()=>tw,N8:()=>tA,ZZ:()=>tx,k5:()=>tT,WZ:()=>eK,jN:()=>tE});var i,a,o,s,l,u,c=n(7623),d=n(3258);!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(i||(i={})),(a||(a={})).mergeShapes=(e,t)=>({...e,...t});let p=i.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),f=e=>{switch(typeof e){case"undefined":return p.undefined;case"string":return p.string;case"number":return Number.isNaN(e)?p.nan:p.number;case"boolean":return p.boolean;case"function":return p.function;case"bigint":return p.bigint;case"symbol":return p.symbol;case"object":if(Array.isArray(e))return p.array;if(null===e)return p.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return p.promise;if("undefined"!=typeof Map&&e instanceof Map)return p.map;if("undefined"!=typeof Set&&e instanceof Set)return p.set;if("undefined"!=typeof Date&&e instanceof Date)return p.date;return p.object;default:return p.unknown}}
1,h=i.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 m extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof m))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,i.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t=Object.create(null),n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}m.create=e=>new m(e);let g=(e,t)=>{let n;switch(e.code){case h.invalid_type:n=e.received===p.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case h.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,i.jsonStringifyReplacer)}`;break;case h.unrecognized_keys:n=`Unrecognized key(s) in object: ${i.joinValues(e.keys,", ")}`;break;case h.invalid_union:n="Invalid input";break;case h.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${i.joinValues(e.options)}`;break;case h.invalid_enum_value:n=`Invalid enum value. Expected ${i.joinValues(e.options)}, received '${e.received}'`;break;case h.invalid_arguments:n="Invalid function arguments";break;case h.invalid_return_type:n="Invalid function return type";break;case h.invalid_date:n="Invalid date";break;case h.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(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}"`:i.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case h.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case h.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case h.custom:n="Invalid input";break;case h.invalid_intersection_types:n="Intersection results could not be merged";break;case h.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case h.not_finite:n="Number must be finite";break;default:n=t.defaultError,i.assertNever(e)}return{message:n}},v=e=>
1{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function y(e,t){let n=v({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,g,g==g?void 0:g].filter(e=>!!e)});e.common.issues.push(n)}class _{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return b;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return _.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return b;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let b=Object.freeze({status:"aborted"}),k=e=>({status:"dirty",value:e}),E=e=>({status:"valid",value:e}),T=e=>"aborted"===e.status,x=e=>"dirty"===e.status,A=e=>"valid"===e.status,S=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(o||(o={}));class I{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}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}}let w=(e,t)=>{if(A(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new m(e.common.issues);return this._error=t,this._error}}};function N(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??r??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??n??i.defaultError}},description:i}}class O{get description(){return this._def.description}_getType(e){return f(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new _,ctx:{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(S(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},r=this._parseSync({data:e,path:n.path,parent:n});return w(n,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return A(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>A(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},r=this._parse({data:e,path:n.path,parent:n});return w(n,await (S(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:h.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eT({schema:this,typeName:s.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,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:e=>this["~validate"](e)}}optional(){return ex.create(this,this._def)}nullable(){return eA.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eo.create(this)}promise(){return eE.create(this,this._def)}or(e){return el.create([this,e],this._def)}and(e){return ed.create(this,e,this._def)}transform(e){return new eT({...N(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eS({...N(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new eN({typeName:s.ZodBranded,type:this,...N(this._def)})}catch(e){return new eI({...N(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eO.create(this,e)}readonly(){return eC.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let C=/^c[^\s-]{8,}
1$/i,D=/^[0-9a-z]+$/,$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,R=/^[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,P=/^[a-z0-9_-]{21}$/i,L=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,M=/^[-+]?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)?)??$/,U=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,z=/^(?:(?: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])$/,F=/^(?:(?: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])$/,j=/^(([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]))$/,B=/^(([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])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Z=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,G="((\\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])))",q=RegExp(`^${G}$`);function K(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}class V extends O{_parse(e){var t,n,a,o;let s;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==p.string){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.string,received:t.parsedType}),b}let l=new _;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(y(s=this._getOrReturnCtx(e,s),{code:h.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),l.dirty());else if("max"===u.kind)e.data.length>u.value&&(y(s=this._getOrReturnCtx(e,s),{code:h.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),l.dirty());else if("length"===u.kind){let t=e.data.length>u.value,n=e.data.length<u.value;(t||n)&&(s=this._getOrReturnCtx(e,s),t?y(s,{code:h.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):n&&y(s,{code:h.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),l.dirty())}else if("email"===u.kind)U.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"email",code:h.invalid_string,message:u.message}),l.dirty());else if("emoji"===u.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:h.invalid_string,message:u.message}),l.dirty());else if("uuid"===u.kind)R.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:h.invalid_string,message:u.message}),l.dirty());else if("nanoid"===u.kind)P.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"nanoid",code:h.invalid_string,message:u.message}),l.dirty());else if("cuid"===u.kind)C.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:h.invalid_string,message:u.message}),l.dirty());else if("cuid2"===u.kind)D.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:h.invalid_string,message:u.message}),l.dirty());else if("ulid"===u.kind)$.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:h.invalid_string,message:u.message}),l.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{y(s=this._getOrReturnCtx(e,s),{validation:"url",code:h.invalid_string,message:u.message}),l.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"regex",code:h.invalid_string,message:u.message}),l.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(y(s=this._getOrReturnCtx(e,s),{code:h.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),l.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(y(s=this._getOrReturnCtx(e,s),{code:h.invalid_string,validation:{startsWith:u.value},message:u.message}),l.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(y(s=this._getOrReturnCtx(e,s),{code:h.invalid_string,validation:{endsWith:u.value},message:u.message}),l.dirty()):"datetime"===u.kind?(function(e){let t=`${G}T${K(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)})(u).test(e.data)||(y(s=this._getOrReturnCtx(e,s),{code:h.invalid_string,validation:"datetime",message:u.message}),l.dirty()):"date"===u.kind?q.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{code:h.invalid_string,validation:"date",message:u.message}),l.dirty()):"time"===u.kind?RegExp(`^${K(u)}$`).test(e.data)||(y(s=this._getOrReturnCtx(e,s),{code:h.invalid_string,validation:"time",message:u.message}),l.dirty()):"duration"===u.kind?M.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"duration",code:h.invalid_string,message:u.message}),l.dirty()):"ip"===u.kind?(t=e.data,!(("v4"===(n=u.version)||!n)&&z.test(t)||("v6"===n||!n)&&j.test(t))&&1&&(y(s=this._getOrReturnCtx(e,s),{validation:"ip",code:h.invalid_string,message:u.message}),l.dirty())):"jwt"===u.kind?!function(e,t){if(!L.test(e))return!1;
1try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(y(s=this._getOrReturnCtx(e,s),{validation:"jwt",code:h.invalid_string,message:u.message}),l.dirty()):"cidr"===u.kind?(a=e.data,!(("v4"===(o=u.version)||!o)&&F.test(a)||("v6"===o||!o)&&B.test(a))&&1&&(y(s=this._getOrReturnCtx(e,s),{validation:"cidr",code:h.invalid_string,message:u.message}),l.dirty())):"base64"===u.kind?H.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"base64",code:h.invalid_string,message:u.message}),l.dirty()):"base64url"===u.kind?Z.test(e.data)||(y(s=this._getOrReturnCtx(e,s),{validation:"base64url",code:h.invalid_string,message:u.message}),l.dirty()):i.assertNever(u);return{status:l.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:h.invalid_string,...o.errToObj(n)})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...o.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new V({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}V.create=e=>new V({checks:[],typeName:s.ZodString,coerce:e?.coerce??!1,...N(e)});class W extends O{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==p.number){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.number,received:t.parsedType}),b}let n=new _;for(let r of this._def.checks)"int"===r.kind?i.isInteger(e.data)||(y(t=this._getOrReturnCtx(e,t),{code:h.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(y(t=this._getOrReturnCtx(e,t),{code:h.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(y(t=this._getOrReturnCtx(e,t),{code:h.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,r.value)&&(y(t=this._getOrReturnCtx(e,t),{code:h.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(y(t=this._getOrReturnCtx(e,t),{code:h.not_finite,message:r.message}),n.dirty()):i.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,r){return new W({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(r)}]})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&i.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;else"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}}W.create=e=>new W({checks:[],typeName:s.ZodNumber,coerce:e?.coerce||!1,...N(e)});class Y extends O{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==p.bigint)return this._getInvalidInput(e);let n=new _;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(y(t=this._getOrReturnCtx(e,t),{code:h.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(y(t=this._getOrReturnCtx(e,t),{code:h.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(y(t=this._getOrReturnCtx(e,t),{code:h.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):i.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.bigint,received:t.parsedType}),b}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,r){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(r)}]})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}
1positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Y.create=e=>new Y({checks:[],typeName:s.ZodBigInt,coerce:e?.coerce??!1,...N(e)});class J extends O{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==p.boolean){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.boolean,received:t.parsedType}),b}return E(e.data)}}J.create=e=>new J({typeName:s.ZodBoolean,coerce:e?.coerce||!1,...N(e)});class X extends O{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==p.date){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.date,received:t.parsedType}),b}if(Number.isNaN(e.data.getTime()))return y(this._getOrReturnCtx(e),{code:h.invalid_date}),b;let n=new _;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(y(t=this._getOrReturnCtx(e,t),{code:h.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(y(t=this._getOrReturnCtx(e,t),{code:h.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):i.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}X.create=e=>new X({checks:[],coerce:e?.coerce||!1,typeName:s.ZodDate,...N(e)});class Q extends O{_parse(e){if(this._getType(e)!==p.symbol){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.symbol,received:t.parsedType}),b}return E(e.data)}}Q.create=e=>new Q({typeName:s.ZodSymbol,...N(e)});class ee extends O{_parse(e){if(this._getType(e)!==p.undefined){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.undefined,received:t.parsedType}),b}return E(e.data)}}ee.create=e=>new ee({typeName:s.ZodUndefined,...N(e)});class et extends O{_parse(e){if(this._getType(e)!==p.null){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.null,received:t.parsedType}),b}return E(e.data)}}et.create=e=>new et({typeName:s.ZodNull,...N(e)});class en extends O{constructor(){super(...arguments),this._any=!0}_parse(e){return E(e.data)}}en.create=e=>new en({typeName:s.ZodAny,...N(e)});class er extends O{constructor(){super(...arguments),this._unknown=!0}_parse(e){return E(e.data)}}er.create=e=>new er({typeName:s.ZodUnknown,...N(e)});class ei extends O{_parse(e){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.never,received:t.parsedType}),b}}ei.create=e=>new ei({typeName:s.ZodNever,...N(e)});class ea extends O{_parse(e){if(this._getType(e)!==p.undefined){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.void,received:t.parsedType}),b}return E(e.data)}}ea.create=e=>new ea({typeName:s.ZodVoid,...N(e)});class eo extends O{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==p.array)return y(t,{code:h.invalid_type,expected:p.array,received:t.parsedType}),b;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(y(t,{code:e?h.too_big:h.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(y(t,{code:h.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(y(t,{code:h.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new I(t,e,t.path,n)))).then(e=>_.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new I(t,e,t.path,n)));return _.mergeArray(n,i)}
1get element(){return this._def.type}min(e,t){return new eo({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new eo({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new eo({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}eo.create=(e,t)=>new eo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...N(t)});class es extends O{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=i.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==p.object){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.object,received:t.parsedType}),b}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ei&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new I(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ei){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(y(n,{code:h.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new I(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>_.mergeObjectSync(t,e)):_.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new es({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{let r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:o.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new es({...this._def,unknownKeys:"strip"})}passthrough(){return new es({...this._def,unknownKeys:"passthrough"})}extend(e){return new es({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new es({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new es({...this._def,catchall:e})}pick(e){let t={};for(let n of i.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new es({...this._def,shape:()=>t})}omit(e){let t={};for(let n of i.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new es({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof es){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=ex.create(e(i))}return new es({...t._def,shape:()=>n})}if(t instanceof eo)return new eo({...t._def,type:e(t.element)});if(t instanceof ex)return ex.create(e(t.unwrap()));if(t instanceof eA)return eA.create(e(t.unwrap()));if(t instanceof ep)return ep.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let n of i.objectKeys(this.shape)){let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new es({...this._def,shape:()=>t})}required(e){let t={};for(let n of i.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof ex;)e=e._def.innerType;t[n]=e}return new es({...this._def,shape:()=>t})}keyof(){return e_(i.objectKeys(this.shape))}}es.create=(e,t)=>new es({shape:()=>e,unknownKeys:"strip",catchall:ei.create(),typeName:s.ZodObject,...N(t)}),es.strictCreate=(e,t)=>new es({shape:()=>e,unknownKeys:"strict",catchall:ei.create(),typeName:s.ZodObject,...N(t)}),es.lazycreate=(e,t)=>new es({shape:e,unknownKeys:"strip",catchall:ei.create(),typeName:s.ZodObject,...N(t)});class el extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new m(e.ctx.common.issues));return y(t,{code:h.invalid_union,unionErrors:n}),b});{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new m(e));return y(t,{code:h.invalid_union,unionErrors:i}),b}}get options(){return this._def.options}}el.create=(e,t)=>
1new el({options:e,typeName:s.ZodUnion,...N(t)});let eu=e=>{if(e instanceof ev)return eu(e.schema);if(e instanceof eT)return eu(e.innerType());if(e instanceof ey)return[e.value];if(e instanceof eb)return e.options;if(e instanceof ek)return i.objectValues(e.enum);else if(e instanceof eS)return eu(e._def.innerType);else if(e instanceof ee)return[void 0];else if(e instanceof et)return[null];else if(e instanceof ex)return[void 0,...eu(e.unwrap())];else if(e instanceof eA)return[null,...eu(e.unwrap())];else if(e instanceof eN)return eu(e.unwrap());else if(e instanceof eC)return eu(e.unwrap());else if(e instanceof eI)return eu(e._def.innerType);else return[]};class ec extends O{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.object)return y(t,{code:h.invalid_type,expected:p.object,received:t.parsedType}),b;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(y(t,{code:h.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),b)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=eu(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new ec({typeName:s.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...N(n)})}}class ed extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(T(e)||T(r))return b;let a=function e(t,n){let r=f(t),a=f(n);if(t===n)return{valid:!0,data:t};if(r===p.object&&a===p.object){let r=i.objectKeys(n),a=i.objectKeys(t).filter(e=>-1!==r.indexOf(e)),o={...t,...n};for(let r of a){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};o[r]=i.data}return{valid:!0,data:o}}if(r===p.array&&a===p.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}if(r===p.date&&a===p.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return a.valid?((x(e)||x(r))&&t.dirty(),{status:t.value,value:a.data}):(y(n,{code:h.invalid_intersection_types}),b)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ed.create=(e,t,n)=>new ed({left:e,right:t,typeName:s.ZodIntersection,...N(n)});class ep extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==p.array)return y(n,{code:h.invalid_type,expected:p.array,received:n.parsedType}),b;if(n.data.length<this._def.items.length)return y(n,{code:h.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),b;!this._def.rest&&n.data.length>this._def.items.length&&(y(n,{code:h.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new I(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>_.mergeArray(t,e)):_.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new ep({...this._def,rest:e})}}ep.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ep({items:e,typeName:s.ZodTuple,rest:null,...N(t)})};class ef extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==p.object)return y(n,{code:h.invalid_type,expected:p.object,received:n.parsedType}),b;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new I(n,e,n.path,e)),value:a._parse(new I(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?_.mergeObjectAsync(t,r):_.mergeObjectSync(t,r)}
1get element(){return this._def.valueType}static create(e,t,n){return new ef(t instanceof O?{keyType:e,valueType:t,typeName:s.ZodRecord,...N(n)}:{keyType:V.create(),valueType:e,typeName:s.ZodRecord,...N(t)})}}class eh extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==p.map)return y(n,{code:h.invalid_type,expected:p.map,received:n.parsedType}),b;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new I(n,e,n.path,[a,"key"])),value:i._parse(new I(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return b;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return b;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}eh.create=(e,t,n)=>new eh({valueType:t,keyType:e,typeName:s.ZodMap,...N(n)});class em extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==p.set)return y(n,{code:h.invalid_type,expected:p.set,received:n.parsedType}),b;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(y(n,{code:h.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(y(n,{code:h.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return b;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new I(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new em({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new em({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}em.create=(e,t)=>new em({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...N(t)});class eg extends O{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.function)return y(t,{code:h.invalid_type,expected:p.function,received:t.parsedType}),b;function n(e,n){return v({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,g,g].filter(e=>!!e),issueData:{code:h.invalid_arguments,argumentsError:n}})}function r(e,n){return v({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,g,g].filter(e=>!!e),issueData:{code:h.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof eE){let e=this;return E(async function(...t){let o=new m([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),l=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw o.addIssue(r(l,e)),o})})}{let e=this;return E(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new m([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new m([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eg({...this._def,args:ep.create(e).rest(er.create())})}returns(e){return new eg({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new eg({args:e||ep.create([]).rest(er.create()),returns:t||er.create(),typeName:s.ZodFunction,...N(n)})}}class ev extends O{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ev.create=(e,t)=>
1new ev({getter:e,typeName:s.ZodLazy,...N(t)});class ey extends O{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return y(t,{received:t.data,code:h.invalid_literal,expected:this._def.value}),b}return{status:"valid",value:e.data}}get value(){return this._def.value}}function e_(e,t){return new eb({values:e,typeName:s.ZodEnum,...N(t)})}ey.create=(e,t)=>new ey({value:e,typeName:s.ZodLiteral,...N(t)});class eb extends O{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return y(t,{expected:i.joinValues(n),received:t.parsedType,code:h.invalid_type}),b}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return y(t,{received:t.data,code:h.invalid_enum_value,options:n}),b}return E(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eb.create(e,{...this._def,...t})}exclude(e,t=this._def){return eb.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eb.create=e_;class ek extends O{_parse(e){let t=i.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==p.string&&n.parsedType!==p.number){let e=i.objectValues(t);return y(n,{expected:i.joinValues(e),received:n.parsedType,code:h.invalid_type}),b}if(this._cache||(this._cache=new Set(i.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=i.objectValues(t);return y(n,{received:n.data,code:h.invalid_enum_value,options:e}),b}return E(e.data)}get enum(){return this._def.values}}ek.create=(e,t)=>new ek({values:e,typeName:s.ZodNativeEnum,...N(t)});class eE extends O{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==p.promise&&!1===t.common.async?(y(t,{code:h.invalid_type,expected:p.promise,received:t.parsedType}),b):E((t.parsedType===p.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eE.create=(e,t)=>new eE({type:e,typeName:s.ZodPromise,...N(t)});class eT extends O{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,a={addIssue:e=>{y(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===r.type){let e=r.transform(n.data,a);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return b;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?b:"dirty"===r.status||"dirty"===t.value?k(r.value):r});{if("aborted"===t.value)return b;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?b:"dirty"===r.status||"dirty"===t.value?k(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,a);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?b:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?b:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>A(e)?Promise.resolve(r.transform(e.value,a)).then(e=>({status:t.value,value:e})):b);else{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!A(e))return b;let i=r.transform(e.value,a);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}i.assertNever(r)}}
1eT.create=(e,t,n)=>new eT({schema:e,typeName:s.ZodEffects,effect:t,...N(n)}),eT.createWithPreprocess=(e,t,n)=>new eT({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...N(n)});class ex extends O{_parse(e){return this._getType(e)===p.undefined?E(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:s.ZodOptional,...N(t)});class eA extends O{_parse(e){return this._getType(e)===p.null?E(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eA.create=(e,t)=>new eA({innerType:e,typeName:s.ZodNullable,...N(t)});class eS extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===p.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eS.create=(e,t)=>new eS({innerType:e,typeName:s.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...N(t)});class eI extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return S(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new m(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new m(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eI.create=(e,t)=>new eI({innerType:e,typeName:s.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...N(t)});class ew extends O{_parse(e){if(this._getType(e)!==p.nan){let t=this._getOrReturnCtx(e);return y(t,{code:h.invalid_type,expected:p.nan,received:t.parsedType}),b}return{status:"valid",value:e.data}}}ew.create=e=>new ew({typeName:s.ZodNaN,...N(e)}),Symbol("zod_brand");class eN extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eO extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?b:"dirty"===e.status?(t.dirty(),k(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?b:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new eO({in:e,out:t,typeName:s.ZodPipeline})}}class eC extends O{_parse(e){let t=this._def.innerType._parse(e),n=e=>(A(e)&&(e.value=Object.freeze(e.value)),e);return S(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:s.ZodReadonly,...N(t)}),es.lazycreate,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"}(s||(s={})),V.create,W.create,ew.create,Y.create,J.create,X.create,Q.create,ee.create,et.create,en.create,er.create,ei.create,ea.create,eo.create,es.create,es.strictCreate,el.create,ec.create,ed.create,ep.create,ef.create,eh.create,em.create,eg.create,ev.create,ey.create,eb.create,ek.create,eE.create,eT.create,ex.create,eA.create,eT.createWithPreprocess,eO.create;
1class eD extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function e$(e){}class eR extends TransformStream{constructor({onError:e,onRetry:t,onComment:n}={}){let r;super({start(i){r=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=e$,onError:n=e$,onRetry:r=e$,onComment:i}=e,a="",o=!0,s,l="",u="";function c(e){if(""===e)return void(l.length>0&&t({id:s,event:u||void 0,data:l.endsWith(`
2`)?l.slice(0,-1):l}),s=void 0,l="",u="");if(e.startsWith(":")){i&&i(e.slice(e.startsWith(": ")?2:1));return}let n=e.indexOf(":");if(-1!==n){let t=e.slice(0,n),r=" "===e[n+1]?2:1;d(t,e.slice(n+r),e);return}d(e,"",e)}function d(e,t,i){switch(e){case"event":u=t;break;case"data":l=`${l}${t}
3`;break;case"id":s=t.includes("\0")?void 0:t;break;case"retry":/^\d+$/.test(t)?r(parseInt(t,10)):n(new eD(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:i}));break;default:n(new eD(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:i}))}}return{feed:function(e){let t=o?e.replace(/^\xEF\xBB\xBF/,""):e,[n,r]=function(e){let t=[],n="",r=0;for(;r<e.length;){let i=e.indexOf("\r",r),a=e.indexOf(`
4`,r),o=-1;if(-1!==i&&-1!==a?o=Math.min(i,a):-1!==i?o=i===e.length-1?-1:i:-1!==a&&(o=a),-1===o){n=e.slice(r);break}{let n=e.slice(r,o);t.push(n),"\r"===e[(r=o+1)-1]&&e[r]===`
5`&&r++}}return[t,n]}(`${a}${t}`);for(let e of n)c(e);a=r,o=!1},reset:function(e={}){a&&e.consume&&c(a),o=!0,s=void 0,l="",u="",a=""}}}({onEvent:e=>{i.enqueue(e)},onError(t){"terminate"===e?i.error(t):"function"==typeof e&&e(t)},onRetry:t,onComment:n})},transform(e){r.feed(e)}})}}n(9080);var{btoa:eP,atob:eL}=globalThis;function eM(e){let t=eL(e.replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from(t,e=>e.codePointAt(0))}function eU(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCodePoint(e[n]);return eP(t)}var ez="AI_DownloadError",eF=`vercel.ai.error.${ez}`,ej=Symbol.for(eF),eB=(u=c.bD,l=ej,({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{let i=()=>{let e=n.length,r=Array(t);for(let i=0;i<t;i++)r[i]=n[Math.random()*e|0];return r.join("")};if(null==e)return i;if(n.includes(r))throw new c.Di({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${i()}`}),eH=eB();function eZ(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}function eG(e=globalThis){var t,n,r;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(r=null==(n=e.process)?void 0:n.versions)?void 0:r.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function eq(e){if(null==e)return{};let t={};if(e instanceof Headers)e.forEach((e,n)=>{t[n.toLowerCase()]=e});else for(let[n,r]of(Array.isArray(e)||(e=Object.entries(e)),e))null!=r&&(t[n.toLowerCase()]=r);return t}function eK(e,...t){let n=new Headers(eq(e)),r=n.get("user-agent")||"";return n.set("user-agent",[r,...t].filter(Boolean).join(" ")),Object.fromEntries(n.entries())}var eV=/"__proto__"\s*:/,eW=/"constructor"\s*:/;function eY(e){let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===eV.test(e)&&!1===eW.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let n of(t=[],e)){if(Object.prototype.hasOwnProperty.call(n,"__proto__")||Object.prototype.hasOwnProperty.call(n,"constructor")&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in n){let r=n[e];r&&"object"==typeof r&&t.push(r)}}}return e}(t)}function eJ(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return eY(e)}try{return eY(e)}finally{Error.stackTraceLimit=t}}function eX(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=eQ(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(eQ):eQ(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(eQ)),null!=e.allOf&&(e.allOf=e.allOf.map(eQ)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(eQ));let{definitions:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=eQ(t[e]);return e}function eQ(e){return"boolean"==typeof e?e:eX(e)}var e0=Symbol("Let zodToJsonSchema decide on which parser to use"),e1={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},e2=e=>"string"==typeof e?{...e1,name:e}:{...e1,...e};function e4(e,t){return tf(e.type._def,t)}var e6=(e,t)=>tf(e.innerType._def,t),e3=e=>{let t={type:"integer",format:"unix-time"};for(let n of e.checks)switch(n.kind){case"min":t.minimum=n.value;break;case"max":t.maximum=n.value}return t},e5=e=>(!("type"in e)||"string"!==e.type)&&"allOf"in e,e9=void 0,e8={cuid:/^[cC][^\s-]{8,}
5$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===e9&&(e9=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),e9),ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function e7(e,t){let n={type:"string"};if(e.checks)for(let r of e.checks)switch(r.kind){case"min":n.minLength="number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value;break;case"max":n.maxLength="number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value;break;case"email":switch(t.emailStrategy){case"format:email":tn(n,"email",r.message,t);break;case"format:idn-email":tn(n,"idn-email",r.message,t);break;case"pattern:zod":tr(n,e8.email,r.message,t)}break;case"url":tn(n,"uri",r.message,t);break;case"uuid":tn(n,"uuid",r.message,t);break;case"regex":tr(n,r.regex,r.message,t);break;case"cuid":tr(n,e8.cuid,r.message,t);break;case"cuid2":tr(n,e8.cuid2,r.message,t);break;case"startsWith":tr(n,RegExp(`^${te(r.value,t)}`),r.message,t);break;case"endsWith":tr(n,RegExp(`${te(r.value,t)}$`),r.message,t);break;case"datetime":tn(n,"date-time",r.message,t);break;case"date":tn(n,"date",r.message,t);break;case"time":tn(n,"time",r.message,t);break;case"duration":tn(n,"duration",r.message,t);break;case"length":n.minLength="number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,n.maxLength="number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value;break;case"includes":tr(n,RegExp(te(r.value,t)),r.message,t);break;case"ip":"v6"!==r.version&&tn(n,"ipv4",r.message,t),"v4"!==r.version&&tn(n,"ipv6",r.message,t);break;case"base64url":tr(n,e8.base64url,r.message,t);break;case"jwt":tr(n,e8.jwt,r.message,t);break;case"cidr":"v6"!==r.version&&tr(n,e8.ipv4Cidr,r.message,t),"v4"!==r.version&&tr(n,e8.ipv6Cidr,r.message,t);break;case"emoji":tr(n,e8.emoji(),r.message,t);break;case"ulid":tr(n,e8.ulid,r.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":tn(n,"binary",r.message,t);break;case"contentEncoding:base64":n.contentEncoding="base64";break;case"pattern:zod":tr(n,e8.base64,r.message,t)}break;case"nanoid":tr(n,e8.nanoid,r.message,t)}return n}function te(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let n=0;n<e.length;n++)tt.has(e[n])||(t+="\\"),t+=e[n];return t}(e):e}var tt=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function tn(e,t,n,r){var i;e.format||(null==(i=e.anyOf)?void 0:i.some(e=>e.format))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):e.format=t}function tr(e,t,n,r){var i;e.pattern||(null==(i=e.allOf)?void 0:i.some(e=>e.pattern))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:ti(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):e.pattern=ti(t,r)}function ti(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;let r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=r.i?e.source.toLowerCase():e.source,a="",o=!1,s=!1,l=!1;for(let e=0;e<i.length;e++){if(o){a+=i[e],o=!1;continue}if(r.i){if(s){if(i[e].match(/[a-z]/)){l?(a+=i[e],a+=`${i[e-2]}-${i[e]}`.toUpperCase(),l=!1):"-"===i[e+1]&&(null==(n=i[e+2])?void 0:n.match(/[a-z]/))?(a+=i[e],l=!0):a+=`${i[e]}${i[e].toUpperCase()}`;continue}}else if(i[e].match(/[a-z]/)){a+=`[${i[e]}${i[e].toUpperCase()}]`;continue}}if(r.m){if("^"===i[e]){a+=`(^|(?<=[\r
6]))`;continue}else if("$"===i[e]){a+=`($|(?=[\r
7]))`;continue}}if(r.s&&"."===i[e]){a+=s?`${i[e]}\r
8`:`[${i[e]}\r
9]`;continue}a+=i[e],"\\"===i[e]?o=!0:s&&"]"===i[e]?s=!1:s||"["!==i[e]||(s=!0)}try{new RegExp(a)}catch(n){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function ta(e,t){var n,r,i,a,o,l;let u={type:"object",additionalProperties:null!=(n=tf(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?n:t.allowedAdditionalProperties};if((null==(r=e.keyType)?void 0:r._def.typeName)===s.ZodString&&(null==(i=e.keyType._def.checks)?void 0:i.length)){let{type:n,...r}=e7(e.keyType._def,t);return{...u,propertyNames:r}}if((null==(a=e.keyType)?void 0:a._def.typeName)===s.ZodEnum)return{...u,propertyNames:{enum:e.keyType._def.values}};if((null==(o=e.keyType)?void 0:o._def.typeName)===s.ZodBranded&&e.keyType._def.type._def.typeName===s.ZodString&&(null==(l=e.keyType._def.type._def.checks)?void 0:l.length)){let{type:n,...r}=e4(e.keyType._def,t);return{...u,propertyNames:r}}return u}var to={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},ts=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>tf(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0},tl=(e,t)=>
9{var n;if(t.currentPath.toString()===(null==(n=t.propertyPath)?void 0:n.toString()))return tf(e.innerType._def,t);let r=tf(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return r?{anyOf:[{not:{}},r]}:{}},tu=(e,t)=>{if("input"===t.pipeStrategy)return tf(e.in._def,t);if("output"===t.pipeStrategy)return tf(e.out._def,t);let n=tf(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),r=tf(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,r].filter(e=>void 0!==e)}},tc=(e,t)=>tf(e.innerType._def,t),td=(e,t,n)=>{switch(t){case s.ZodString:return e7(e,n);case s.ZodNumber:return function(e){let t={type:"number"};if(!e.checks)return t;for(let n of e.checks)switch(n.kind){case"int":t.type="integer";break;case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value}return t}(e);case s.ZodObject:return function(e,t){let n={type:"object",properties:{}},r=[],i=e.shape();for(let e in i){let a=i[e];if(void 0===a||void 0===a._def)continue;let o=function(e){try{return e.isOptional()}catch(e){return!0}}(a),s=tf(a._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==s&&(n.properties[e]=s,o||r.push(e))}r.length&&(n.required=r);let a=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return tf(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==a&&(n.additionalProperties=a),n}(e,n);case s.ZodBigInt:return function(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let n of e.checks)switch(n.kind){case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value}return t}(e);case s.ZodBoolean:return{type:"boolean"};case s.ZodDate:return function e(t,n,r){let i=null!=r?r:n.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((r,i)=>e(t,n,r))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return e3(t)}}(e,n);case s.ZodUndefined:return{not:{}};case s.ZodNull:return{type:"null"};case s.ZodArray:return function(e,t){var n,r,i;let a={type:"array"};return(null==(n=e.type)?void 0:n._def)&&(null==(i=null==(r=e.type)?void 0:r._def)?void 0:i.typeName)!==s.ZodAny&&(a.items=tf(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(a.minItems=e.minLength.value),e.maxLength&&(a.maxItems=e.maxLength.value),e.exactLength&&(a.minItems=e.exactLength.value,a.maxItems=e.exactLength.value),a}(e,n);case s.ZodUnion:case s.ZodDiscriminatedUnion:return function(e,t){let n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(e=>e._def.typeName in to&&(!e._def.checks||!e._def.checks.length))){let e=n.reduce((e,t)=>{let n=to[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}if(n.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=n.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===n.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:n.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(n.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:n.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return ts(e,t)}(e,n);case s.ZodIntersection:return function(e,t){let n=[tf(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),tf(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(e=>!!e),r=[];
9return n.forEach(e=>{if(e5(e))r.push(...e.allOf);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:n,...r}=e;t=r}r.push(t)}}),r.length?{allOf:r}:void 0}(e,n);case s.ZodTuple:return function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((e,n)=>tf(e._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:tf(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,n)=>tf(e._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])}}(e,n);case s.ZodRecord:return ta(e,n);case s.ZodLiteral:return function(e){let t=typeof e.value;return"bigint"!==t&&"number"!==t&&"boolean"!==t&&"string"!==t?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===t?"integer":t,const:e.value}}(e);case s.ZodEnum:return{type:"string",enum:Array.from(e.values)};case s.ZodNativeEnum:return function(e){let t=e.values,n=Object.keys(e.values).filter(e=>"number"!=typeof t[t[e]]).map(e=>t[e]),r=Array.from(new Set(n.map(e=>typeof e)));return{type:1===r.length?"string"===r[0]?"string":"number":["string","number"],enum:n}}(e);case s.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[to[e.innerType._def.typeName],"null"]};let n=tf(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}(e,n);case s.ZodOptional:return tl(e,n);case s.ZodMap:return function(e,t){return"record"===t.mapStrategy?ta(e,t):{type:"array",maxItems:125,items:{type:"array",items:[tf(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||{},tf(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}}}
9(e,n);case s.ZodSet:return function(e,t){let n={type:"array",uniqueItems:!0,items:tf(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}(e,n);case s.ZodLazy:return()=>e.getter()._def;case s.ZodPromise:return tf(e.type._def,n);case s.ZodNaN:case s.ZodNever:return{not:{}};case s.ZodEffects:return function(e,t){return"input"===t.effectStrategy?tf(e.schema._def,t):{}}(e,n);case s.ZodAny:case s.ZodUnknown:return{};case s.ZodDefault:return function(e,t){return{...tf(e.innerType._def,t),default:e.defaultValue()}}(e,n);case s.ZodBranded:return e4(e,n);case s.ZodReadonly:return tc(e,n);case s.ZodCatch:return e6(e,n);case s.ZodPipeline:return tu(e,n);case s.ZodFunction:case s.ZodVoid:case s.ZodSymbol:default:return}},tp=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")};function tf(e,t,n=!1){var r;let i=t.seen.get(e);if(t.override){let a=null==(r=t.override)?void 0:r.call(t,e,t,i,n);if(a!==e0)return a}if(i&&!n){let e=th(i,t);if(void 0!==e)return e}let a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);let o=td(e,e.typeName,t),s="function"==typeof o?tf(o(),t):o;if(s&&tm(e,t,s),t.postProcess){let n=t.postProcess(s,e,t);return a.jsonSchema=s,n}return a.jsonSchema=s,s}var th=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:tp(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{};return"seen"===t.$refStrategy?{}:void 0}},tm=(e,t,n)=>(e.description&&(n.description=e.description),n),tg=e=>{let t=e2(e),n=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}},tv=(e,t)=>{var n;let r=tg(t),i="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,n])=>{var i;return{...e,[t]:null!=(i=tf(n._def,{...r,currentPath:[...r.basePath,r.definitionPath,t]},!0))?i:{}}},{}):void 0,a="string"==typeof t?t:(null==t?void 0:t.nameStrategy)==="title"||null==t?void 0:t.name,o=null!=(n=tf(e._def,void 0===a?r:{...r,currentPath:[...r.basePath,r.definitionPath,a]},!1))?n:{},s="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==s&&(o.title=s);let l=void 0===a?i?{...o,[r.definitionPath]:i}:o:{$ref:[..."relative"===r.$refStrategy?[]:r.basePath,r.definitionPath,a].join("/"),[r.definitionPath]:{...i,[a]:o}};return l.$schema="http://json-schema.org/draft-07/schema#",l},ty=Symbol.for("vercel.ai.schema");function t_(e){let t;return()=>(null==t&&(t=e()),t)}function tb(e,{validate:t}={}){return{[ty]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function tk(e){var t;return null==e?tb({properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&ty in e&&!0===e[ty]&&"jsonSchema"in e&&"validate"in e?e:"~standard"in e?"zod"===e["~standard"].vendor?tE(e):(t=e,tb(()=>eX(t["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async e=>{let n=await t["~standard"].validate(e);return"value"in n?{success:!0,value:n.value}:{success:!1,error:new c.iM({value:e,cause:n.issues})}}})):e()}function tE(e,t){var n,r;if("_zod"in e){let r=null!=(n=null==t?void 0:t.useReferences)&&n;return tb(()=>eX(d.blZ(e,{target:"draft-7",io:"input",reused:r?"ref":"inline"})),{validate:async t=>{let n=await d.bpZ(e,t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}})}let i=null!=(r=null==t?void 0:t.useReferences)&&r;return tb(()=>tv(e,{$refStrategy:i?"root":"none"}),{validate:async t=>{let n=await e.safeParseAsync(t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}})}async function tT({value:e,schema:t,context:n}){let r=await tx({value:e,schema:t,context:n});if(!r.success)throw c.iM.wrap({value:e,cause:r.error,context:n});return r.value}async function tx({value:e,schema:t,context:n}){let r=tk(t);try{if(null==r.validate)return{success:!0,value:e,rawValue:e};let t=await r.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:c.iM.wrap({value:e,cause:t.error,context:n}),rawValue:e}}catch(t){return{success:!1,error:c.iM.wrap({value:e,cause:t,context:n}),rawValue:e}}}async function tA({text:e,schema:t}){try{let n=eJ(e);
9if(null==t)return{success:!0,value:n,rawValue:n};return await tx({value:n,schema:t})}catch(t){return{success:!1,error:c.u6.isInstance(t)?t:new c.u6({text:e,cause:t}),rawValue:void 0}}}function tS({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new eR).pipeThrough(new TransformStream({async transform({data:e},n){"[DONE]"!==e&&n.enqueue(await tA({text:e,schema:t}))}}))}var tI=()=>globalThis.fetch;async function tw(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}},1656:(e,t,n)=>{"use strict";n.d(t,{fp:()=>f});var r=n(6426),i=n(1696),a=n(3295);let o=(0,r.createContext)(void 0);function s(e){let t=(0,r.useContext)(o);return(null==e?void 0:e.store)||t||(0,i.zp)()}let l=e=>"function"==typeof(null==e?void 0:e.then),u=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},c=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw u(e),e}),d=new WeakMap,p=(e,t)=>{let n=d.get(e);return n||(n=new Promise((r,i)=>{let o=e,s=e=>t=>{o===e&&r(t)},u=e=>t=>{o===e&&i(t)},c=()=>{try{let e=t();l(e)?(d.set(e,n),o=e,e.then(s(e),u(e)),(0,a.MO)(e,c)):r(e)}catch(e){i(e)}};e.then(s(e),u(e)),(0,a.MO)(e,c)}),d.set(e,n)),n};function f(e,t){return[function(e,t){let{delay:n,unstable_promiseStatus:i=!r.use}=t||{},a=s(t),[[o,d,f],h]=(0,r.useReducer)(t=>{let n=a.get(e);return Object.is(t[0],n)&&t[1]===a&&t[2]===e?t:[n,a,e]},void 0,()=>[a.get(e),a,e]),m=o;if((d!==a||f!==e)&&(h(),m=a.get(e)),(0,r.useEffect)(()=>{let t=a.sub(e,()=>{if(i)try{let t=a.get(e);l(t)&&u(p(t,()=>a.get(e)))}catch(e){}if("number"==typeof n)return void setTimeout(h,n);h()});return h(),t},[a,e,n,i]),(0,r.useDebugValue)(m),l(m)){let t=p(m,()=>a.get(e));return i&&u(t),c(t)}return m}(e,t),function(e,t){let n=s(t);return(0,r.useCallback)(function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];if(!("write"in e))throw Error("not writable atom");return n.set(e,...r)},[n,e])}(e,t)]}},1696:(e,t,n)=>{"use strict";let r,i;n.d(t,{eU:()=>s,zp:()=>c});var a=n(3295);let o=0;function s(e,t){let n=`atom${++o}`,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?r.read=e:(r.init=e,r.read=l,r.write=u),t&&(r.write=t),r}function l(e){return e(this)}function u(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function c(){return i||(i=r?r():(0,a.ff)(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=i),globalThis.__JOTAI_DEFAULT_STORE__!==i&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),i}},1711:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("monitor-smartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]])},1820:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]])},1957:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("mail-plus",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M16 19h6",key:"xwg31i"}]])},2271:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])}
9,2723:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},2750:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(6426);let i={damping:.7,stiffness:.05,mass:1.25},a=1e3/60,o=!1;globalThis.document?.addEventListener("mousedown",()=>{o=!0}),globalThis.document?.addEventListener("mouseup",()=>{o=!1}),globalThis.document?.addEventListener("click",()=>{o=!1});let s=(e={})=>{let[t,n]=(0,r.useState)(!1),[i,s]=(0,r.useState)(!1!==e.initial),[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null);p.current=e;let f=(0,r.useCallback)(()=>{if(!o)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(k.current)||k.current?.contains(t.commonAncestorContainer)},[]),h=(0,r.useCallback)(e=>{g.isAtBottom=e,s(e)},[]),m=(0,r.useCallback)(e=>{g.escapedFromLock=e,n(e)},[]),g=(0,r.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return k.current?.scrollTop??0},set scrollTop(scrollTop){k.current&&(k.current.scrollTop=scrollTop,g.ignoreScrollToTop=k.current.scrollTop)},get targetScrollTop(){if(!k.current||!E.current)return 0;return k.current.scrollHeight-1-k.current.clientHeight},get calculatedTargetScrollTop(){if(!k.current||!E.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let r=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:k.current,contentElement:E.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(()=>{n=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),v=(0,r.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||h(!0);let n=Date.now()+(Number(e.wait)||0),r=c(p.current,e.animation),{ignoreEscapes:i=!1}=e,o=g.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=n+(e.duration??0);let s=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!g.isAtBottom)return g.animation=void 0,!1;let{scrollTop:l}=g,u=performance.now(),d=(u-(g.lastTick??u))/a;if(g.animation||(g.animation={behavior:r,promise:e,ignoreEscapes:i}),g.animation.behavior===r&&(g.lastTick=u),f()||n>Date.now())return s();if(l<Math.min(o,g.calculatedTargetScrollTop)){if(g.animation?.behavior===r){if("instant"===r)return g.scrollTop=g.calculatedTargetScrollTop,s();g.velocity=(r.damping*g.velocity+r.stiffness*g.scrollDifference)/r.mass,g.accumulated+=g.velocity*d,g.scrollTop+=g.accumulated,g.scrollTop!==l&&(g.accumulated=0)}return s()}return t>Date.now()?(o=g.calculatedTargetScrollTop,s()):(g.animation=void 0,g.scrollTop<g.calculatedTargetScrollTop)?v({animation:c(p.current,p.current.resize),ignoreEscapes:i,duration:Math.max(0,t-Date.now())||void 0}):g.isAtBottom});return e.then(e=>(requestAnimationFrame(()=>{g.animation||(g.lastTick=void 0,g.velocity=0)}),e))};return(!0!==e.wait&&(g.animation=void 0),g.animation?.behavior===r)?g.animation.promise:s()},[h,f,g]),y=(0,r.useCallback)(()=>{m(!0),h(!1)},[m,h]),_=(0,r.useCallback)(({target:e})=>{if(e!==k.current)return;let{scrollTop:t,ignoreScrollToTop:n}=g,{lastScrollTop:r=t}=g;g.lastScrollTop=t,g.ignoreScrollToTop=void 0,n&&n>t&&(r=n),d(g.isNearBottom),setTimeout(()=>{if(g.resizeDifference||t===n)return;if(f()){m(!0),h(!1);return}let e=t>r,i=t<r;if(g.animation?.ignoreEscapes){g.scrollTop=r;return}i&&(m(!0),h(!1)),e&&m(!1),!g.escapedFromLock&&g.isNearBottom&&h(!0)},1)},[m,h,f,g]),b=(0,r.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;!["scroll","auto"].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===k.current&&t<0&&k.current.scrollHeight>k.current.clientHeight&&!g.animation?.ignoreEscapes&&(m(!0),h(!1))},[m,h,g]),k=l(e=>{k.current?.removeEventListener("scroll",_),k.current?.removeEventListener("wheel",b),e?.addEventListener("scroll",_,{passive:!0}),e?.addEventListener("wheel",b,{passive:!0})},[]),E=l(e=>{let t;g.resizeObserver?.disconnect(),e&&(g.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(g.resizeDifference=r,g.scrollTop>g.targetScrollTop&&(g.scrollTop=g.targetScrollTop),d(g.isNearBottom),r>=0){let e=c(p.current,t?p.current.resize:p.current.initial);
9v({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else g.isNearBottom&&(m(!1),h(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{g.resizeDifference===r&&(g.resizeDifference=0)},1)})}),g.resizeObserver?.observe(e))},[]);return{contentRef:E,scrollRef:k,scrollToBottom:v,stopScroll:y,isAtBottom:i||u,isNearBottom:u,escapedFromLock:t,state:g}};function l(e,t){let n=(0,r.useCallback)(t=>(n.current=t,e(t)),t);return n}let u=new Map;function c(...e){let t={...i},n=!1;for(let r of e){if("instant"===r){n=!0;continue}"object"==typeof r&&(n=!1,t.damping=r.damping??t.damping,t.stiffness=r.stiffness??t.stiffness,t.mass=r.mass??t.mass)}let r=JSON.stringify(t);return u.has(r)||u.set(r,Object.freeze(t)),n?"instant":u.get(r)}},2770:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:c,column:d};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:c,column:d},this.source=l.source}function m(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(r);var _,b=[];for(v(b);_=function(){var e=f(),n=g(i);if(n){if(y(),!g(a))return m("property missing ':'");var r=g(o),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return g(s),l}}();)!1!==_&&(b.push(_),v(b));return b}},3166:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},3258:(e,t,n)=>{"use strict";n.d(t,{bpZ:()=>lb,blZ:()=>li,z:()=>h});var r,i,a={};n.r(a),n.d(a,{BIGINT_FORMAT_RANGES:()=>es,Class:()=>eO,NUMBER_FORMAT_RANGES:()=>eo,aborted:()=>em,allowsEval:()=>K,assert:()=>S,assertEqual:()=>E,assertIs:()=>x,assertNever:()=>A,assertNotEqual:()=>T,assignProp:()=>M,base64ToUint8Array:()=>ex,base64urlToUint8Array:()=>eS,cached:()=>O,captureStackTrace:()=>G,cleanEnum:()=>eT,cleanRegex:()=>D,clone:()=>et,cloneDef:()=>z,createTransparentProxy:()=>er,defineLazy:()=>P,esc:()=>H,escapeRegex:()=>ee,extend:()=>ec,finalizeIssue:()=>ey,floatSafeRemainder:()=>$,getElementAtPath:()=>F,getEnumValues:()=>I,getLengthableOrigin:()=>eb,getParsedType:()=>J,getSizableOrigin:()=>e_,hexToUint8Array:()=>ew,isObject:()=>q,isPlainObject:()=>V,issue:()=>eE,joinValues:()=>w,jsonStringifyReplacer:()=>N,merge:()=>ep,mergeDefs:()=>U,normalizeParams:()=>en,nullish:()=>C,numKeys:()=>Y,objectClone:()=>L,omit:()=>eu,optionalKeys:()=>ea,parsedType:()=>ek,partial:()=>ef,pick:()=>el,prefixIssues:()=>eg,primitiveTypes:()=>Q,promiseAllObject:()=>j,propertyKeyTypes:()=>X,randomString:()=>B,required:()=>eh,safeExtend:()=>ed,shallowClone:()=>W,slugify:()=>Z,stringifyPrimitive:()=>ei,uint8ArrayToBase64:()=>eA,uint8ArrayToBase64url:()=>eI,uint8ArrayToHex:()=>eN,unwrapMessage:()=>ev});var o={};n.r(o),n.d(o,{base64:()=>tx,base64url:()=>tA,bigint:()=>tP,boolean:()=>tU,browserEmail:()=>tv,cidrv4:()=>tE,cidrv6:()=>tT,cuid:()=>e7,cuid2:()=>te,date:()=>tO,datetime:()=>t$,domain:()=>tI,duration:()=>ta,e164:()=>tw,email:()=>tp,emoji:()=>ty,extendedDuration:()=>to,guid:()=>ts,hex:()=>tH,hostname:()=>tS,html5Email:()=>
9tf,idnEmail:()=>tg,integer:()=>tL,ipv4:()=>t_,ipv6:()=>tb,ksuid:()=>tr,lowercase:()=>tj,mac:()=>tk,md5_base64:()=>tK,md5_base64url:()=>tV,md5_hex:()=>tq,nanoid:()=>ti,null:()=>tz,number:()=>tM,rfc5322Email:()=>th,sha1_base64:()=>tY,sha1_base64url:()=>tJ,sha1_hex:()=>tW,sha256_base64:()=>tQ,sha256_base64url:()=>t0,sha256_hex:()=>tX,sha384_base64:()=>t2,sha384_base64url:()=>t4,sha384_hex:()=>t1,sha512_base64:()=>t3,sha512_base64url:()=>t5,sha512_hex:()=>t6,string:()=>tR,time:()=>tD,ulid:()=>tt,undefined:()=>tF,unicodeEmail:()=>tm,uppercase:()=>tB,uuid:()=>tl,uuid4:()=>tu,uuid6:()=>tc,uuid7:()=>td,xid:()=>tn});var s={};n.r(s),n.d(s,{ar:()=>r0,az:()=>r2,be:()=>r3,bg:()=>r9,ca:()=>r7,cs:()=>it,da:()=>ii,de:()=>io,en:()=>il,eo:()=>ic,es:()=>ip,fa:()=>im,fi:()=>iv,fr:()=>i_,frCA:()=>ik,he:()=>iT,hu:()=>iA,hy:()=>iN,id:()=>iC,is:()=>i$,it:()=>iP,ja:()=>iM,ka:()=>iz,kh:()=>iB,km:()=>ij,ko:()=>iZ,lt:()=>iV,mk:()=>iY,ms:()=>iX,nl:()=>i0,no:()=>i2,ota:()=>i6,pl:()=>i8,ps:()=>i5,pt:()=>ae,ru:()=>ar,sl:()=>aa,sv:()=>as,ta:()=>au,th:()=>ad,tr:()=>af,ua:()=>ag,uk:()=>am,ur:()=>ay,uz:()=>ab,vi:()=>aE,yo:()=>aw,zhCN:()=>ax,zhTW:()=>aS});var l={};n.r(l);var u={};n.r(u),n.d(u,{$ZodAny:()=>n8,$ZodArray:()=>ri,$ZodAsyncError:()=>y,$ZodBase64:()=>nK,$ZodBase64URL:()=>nW,$ZodBigInt:()=>n4,$ZodBigIntFormat:()=>n6,$ZodBoolean:()=>n2,$ZodCIDRv4:()=>nZ,$ZodCIDRv6:()=>nG,$ZodCUID:()=>nD,$ZodCUID2:()=>n$,$ZodCatch:()=>rU,$ZodCheck:()=>t9,$ZodCheckBigIntFormat:()=>nr,$ZodCheckEndsWith:()=>ng,$ZodCheckGreaterThan:()=>ne,$ZodCheckIncludes:()=>nh,$ZodCheckLengthEquals:()=>nu,$ZodCheckLessThan:()=>t7,$ZodCheckLowerCase:()=>np,$ZodCheckMaxLength:()=>ns,$ZodCheckMaxSize:()=>ni,$ZodCheckMimeType:()=>n_,$ZodCheckMinLength:()=>nl,$ZodCheckMinSize:()=>na,$ZodCheckMultipleOf:()=>nt,$ZodCheckNumberFormat:()=>nn,$ZodCheckOverwrite:()=>nb,$ZodCheckProperty:()=>ny,$ZodCheckRegex:()=>nd,$ZodCheckSizeEquals:()=>no,$ZodCheckStartsWith:()=>nm,$ZodCheckStringFormat:()=>nc,$ZodCheckUpperCase:()=>nf,$ZodCodec:()=>rB,$ZodCustom:()=>rJ,$ZodCustomStringFormat:()=>nQ,$ZodDate:()=>rn,$ZodDefault:()=>rD,$ZodDiscriminatedUnion:()=>rh,$ZodE164:()=>nY,$ZodEmail:()=>nw,$ZodEmoji:()=>nO,$ZodEncodeError:()=>_,$ZodEnum:()=>rx,$ZodError:()=>eD,$ZodExactOptional:()=>rO,$ZodFile:()=>rS,$ZodFunction:()=>rV,$ZodGUID:()=>nS,$ZodIPv4:()=>nj,$ZodIPv6:()=>nB,$ZodISODate:()=>nU,$ZodISODateTime:()=>nM,$ZodISODuration:()=>nF,$ZodISOTime:()=>nz,$ZodIntersection:()=>rm,$ZodJWT:()=>nX,$ZodKSUID:()=>nL,$ZodLazy:()=>rY,$ZodLiteral:()=>rA,$ZodMAC:()=>nH,$ZodMap:()=>rb,$ZodNaN:()=>rz,$ZodNanoID:()=>nC,$ZodNever:()=>re,$ZodNonOptional:()=>rP,$ZodNull:()=>n9,$ZodNullable:()=>rC,$ZodNumber:()=>n0,$ZodNumberFormat:()=>n1,$ZodObject:()=>rl,$ZodObjectJIT:()=>ru,$ZodOptional:()=>rN,$ZodPipe:()=>rF,$ZodPrefault:()=>rR,$ZodPromise:()=>rW,$ZodReadonly:()=>rG,$ZodRealError:()=>e$,$ZodRecord:()=>r_,$ZodRegistry:()=>aC,$ZodSet:()=>rE,$ZodString:()=>nx,$ZodStringFormat:()=>nA,$ZodSuccess:()=>rM,$ZodSymbol:()=>n3,$ZodTemplateLiteral:()=>rK,$ZodTransform:()=>rI,$ZodTuple:()=>rv,$ZodType:()=>nT,$ZodULID:()=>nR,$ZodURL:()=>nN,$ZodUUID:()=>nI,$ZodUndefined:()=>n5,$ZodUnion:()=>rd,$ZodUnknown:()=>n7,$ZodVoid:()=>rt,$ZodXID:()=>nP,$ZodXor:()=>rf,$brand:()=>v,$constructor:()=>g,$input:()=>aO,$output:()=>aN,Doc:()=>nk,JSONSchema:()=>l,JSONSchemaGenerator:()=>la,NEVER:()=>m,TimePrecision:()=>a3,_any:()=>og,_array:()=>oX,_base64:()=>a1,_base64url:()=>a2,_bigint:()=>ou,_boolean:()=>os,_catch:()=>ss,_check:()=>sg,_cidrv4:()=>aQ,_cidrv6:()=>a0,_coercedBigint:()=>oc,_coercedBoolean:()=>ol,_coercedDate:()=>ok,_coercedNumber:()=>ot,_coercedString:()=>aP,_cuid:()=>aG,_cuid2:()=>aq,_custom:()=>sf,_date:()=>ob,_decode:()=>eW,_decodeAsync:()=>eQ,_default:()=>si,_discriminatedUnion:()=>o1,_e164:()=>a4,_email:()=>aL,_emoji:()=>aH,_encode:()=>eK,_encodeAsync:()=>eJ,_endsWith:()=>oH,_enum:()=>o9,_file:()=>se,_float32:()=>or,_float64:()=>oi,_gt:()=>oA,_gte:()=>oS,_guid:()=>aM,_includes:()=>oj,_int:()=>on,_int32:()=>oa,_int64:()=>od,_intersection:()=>o2,_ipv4:()=>aY,_ipv6:()=>aJ,_isoDate:()=>a9,_isoDateTime:()=>a5,_isoDuration:()=>a7,_isoTime:()=>a8,_jwt:()=>a6,_ksuid:()=>aW,_lazy:()=>sd,_length:()=>oM,_literal:()=>o7,_lowercase:()=>oz,_lt:()=>oT,_lte:()=>ox,_mac:()=>aX,_map:()=>o3,_max:()=>ox,_maxLength:()=>oP,_maxSize:()=>oD,_mime:()=>oG,_min:()=>oS,_minLength:()=>oL,_minSize:()=>o$,_multipleOf:()=>oC,_nan:()=>oE,_nanoid:()=>aZ,_nativeEnum:()=>o8,_negative:()=>ow,_never:()=>oy,_nonnegative:()=>oO,_nonoptional:()=>sa,_nonpositive:()=>oN,_normalize:()=>
9oK,_null:()=>om,_nullable:()=>sr,_number:()=>oe,_optional:()=>sn,_overwrite:()=>oq,_parse:()=>ez,_parseAsync:()=>ej,_pipe:()=>sl,_positive:()=>oI,_promise:()=>sp,_property:()=>oZ,_readonly:()=>su,_record:()=>o6,_refine:()=>sh,_regex:()=>oU,_safeDecode:()=>e4,_safeDecodeAsync:()=>e9,_safeEncode:()=>e1,_safeEncodeAsync:()=>e3,_safeParse:()=>eH,_safeParseAsync:()=>eG,_set:()=>o5,_size:()=>oR,_slugify:()=>oJ,_startsWith:()=>oB,_string:()=>aR,_stringFormat:()=>sb,_stringbool:()=>s_,_success:()=>so,_superRefine:()=>sm,_symbol:()=>of,_templateLiteral:()=>sc,_toLowerCase:()=>oW,_toUpperCase:()=>oY,_transform:()=>st,_trim:()=>oV,_tuple:()=>o4,_uint32:()=>oo,_uint64:()=>op,_ulid:()=>aK,_undefined:()=>oh,_union:()=>oQ,_unknown:()=>ov,_uppercase:()=>oF,_url:()=>aB,_uuid:()=>aU,_uuidv4:()=>az,_uuidv6:()=>aF,_uuidv7:()=>aj,_void:()=>o_,_xid:()=>aV,_xor:()=>o0,clone:()=>et,config:()=>k,createStandardJSONSchemaMethod:()=>sS,createToJSONSchemaMethod:()=>sA,decode:()=>eY,decodeAsync:()=>e0,describe:()=>sv,encode:()=>eV,encodeAsync:()=>eX,extractDefs:()=>sT,finalize:()=>sx,flattenError:()=>eR,formatError:()=>eP,globalConfig:()=>b,globalRegistry:()=>a$,initializeContext:()=>sk,isValidBase64:()=>nq,isValidBase64URL:()=>nV,isValidJWT:()=>nJ,locales:()=>s,meta:()=>sy,parse:()=>eF,parseAsync:()=>eB,prettifyError:()=>eU,process:()=>sE,regexes:()=>o,registry:()=>aD,safeDecode:()=>e6,safeDecodeAsync:()=>e8,safeEncode:()=>e2,safeEncodeAsync:()=>e5,safeParse:()=>eZ,safeParseAsync:()=>eq,toDotPath:()=>eM,toJSONSchema:()=>li,treeifyError:()=>eL,util:()=>a,version:()=>nE});var c={};n.r(c),n.d(c,{endsWith:()=>oH,gt:()=>oA,gte:()=>oS,includes:()=>oj,length:()=>oM,lowercase:()=>oz,lt:()=>oT,lte:()=>ox,maxLength:()=>oP,maxSize:()=>oD,mime:()=>oG,minLength:()=>oL,minSize:()=>o$,multipleOf:()=>oC,negative:()=>ow,nonnegative:()=>oO,nonpositive:()=>oN,normalize:()=>oK,overwrite:()=>oq,positive:()=>oI,property:()=>oZ,regex:()=>oU,size:()=>oR,slugify:()=>oJ,startsWith:()=>oB,toLowerCase:()=>oW,toUpperCase:()=>oY,trim:()=>oV,uppercase:()=>oF});var d={};n.r(d),n.d(d,{ZodISODate:()=>ll,ZodISODateTime:()=>lo,ZodISODuration:()=>lp,ZodISOTime:()=>lc,date:()=>lu,datetime:()=>ls,duration:()=>lf,time:()=>ld});var p={};n.r(p),n.d(p,{ZodAny:()=>uF,ZodArray:()=>uY,ZodBase64:()=>uo,ZodBase64URL:()=>ul,ZodBigInt:()=>uN,ZodBigIntFormat:()=>uC,ZodBoolean:()=>uI,ZodCIDRv4:()=>un,ZodCIDRv6:()=>ui,ZodCUID:()=>lY,ZodCUID2:()=>lX,ZodCatch:()=>cP,ZodCodec:()=>cj,ZodCustom:()=>cQ,ZodCustomStringFormat:()=>uh,ZodDate:()=>uV,ZodDefault:()=>cI,ZodDiscriminatedUnion:()=>u9,ZodE164:()=>uc,ZodEmail:()=>lR,ZodEmoji:()=>lq,ZodEnum:()=>cd,ZodExactOptional:()=>cE,ZodFile:()=>cg,ZodFunction:()=>cJ,ZodGUID:()=>lL,ZodIPv4:()=>l5,ZodIPv6:()=>ue,ZodIntersection:()=>u7,ZodJWT:()=>up,ZodKSUID:()=>l6,ZodLazy:()=>cK,ZodLiteral:()=>ch,ZodMAC:()=>l8,ZodMap:()=>cs,ZodNaN:()=>cM,ZodNanoID:()=>lV,ZodNever:()=>uZ,ZodNonOptional:()=>cC,ZodNull:()=>uU,ZodNullable:()=>cx,ZodNumber:()=>u_,ZodNumberFormat:()=>uk,ZodObject:()=>uQ,ZodOptional:()=>cb,ZodPipe:()=>cz,ZodPrefault:()=>cN,ZodPromise:()=>cW,ZodReadonly:()=>cH,ZodRecord:()=>cr,ZodSet:()=>cu,ZodString:()=>lC,ZodStringFormat:()=>l$,ZodSuccess:()=>c$,ZodSymbol:()=>uR,ZodTemplateLiteral:()=>cG,ZodTransform:()=>cy,ZodTuple:()=>ct,ZodType:()=>
vendor: 2,934 bytes, line 9
9lN,ZodULID:()=>l0,ZodURL:()=>lH,ZodUUID:()=>lU,ZodUndefined:()=>uL,ZodUnion:()=>u4,ZodUnknown:()=>uB,ZodVoid:()=>uq,ZodXID:()=>l2,ZodXor:()=>u3,_ZodString:()=>lO,_default:()=>cw,_function:()=>cX,any:()=>uj,array:()=>uJ,base64:()=>us,base64url:()=>uu,bigint:()=>uO,boolean:()=>uw,catch:()=>cL,check:()=>c0,cidrv4:()=>ur,cidrv6:()=>ua,codec:()=>cB,cuid:()=>lJ,cuid2:()=>lQ,custom:()=>c1,date:()=>uW,describe:()=>c6,discriminatedUnion:()=>u8,e164:()=>ud,email:()=>lP,emoji:()=>lK,enum:()=>cp,exactOptional:()=>cT,file:()=>cv,float32:()=>uT,float64:()=>ux,function:()=>cX,guid:()=>lM,hash:()=>uy,hex:()=>uv,hostname:()=>ug,httpUrl:()=>lG,instanceof:()=>c5,int:()=>uE,int32:()=>uA,int64:()=>uD,intersection:()=>ce,ipv4:()=>l9,ipv6:()=>ut,json:()=>c8,jwt:()=>uf,keyof:()=>uX,ksuid:()=>l3,lazy:()=>cV,literal:()=>cm,looseObject:()=>u2,looseRecord:()=>co,mac:()=>l7,map:()=>cl,meta:()=>c3,nan:()=>cU,nanoid:()=>lW,nativeEnum:()=>cf,never:()=>uG,nonoptional:()=>cD,null:()=>uz,nullable:()=>cA,nullish:()=>cS,number:()=>ub,object:()=>u0,optional:()=>ck,partialRecord:()=>ca,pipe:()=>cF,prefault:()=>cO,preprocess:()=>c7,promise:()=>cY,readonly:()=>cZ,record:()=>ci,refine:()=>c2,set:()=>cc,strictObject:()=>u1,string:()=>lD,stringFormat:()=>um,stringbool:()=>c9,success:()=>cR,superRefine:()=>c4,symbol:()=>uP,templateLiteral:()=>cq,transform:()=>c_,tuple:()=>cn,uint32:()=>uS,uint64:()=>u$,ulid:()=>l1,undefined:()=>uM,union:()=>u6,unknown:()=>uH,url:()=>lZ,uuid:()=>lz,uuidv4:()=>lF,uuidv6:()=>lj,uuidv7:()=>lB,void:()=>uK,xid:()=>l4,xor:()=>u5});var f={};n.r(f),n.d(f,{bigint:()=>dc,boolean:()=>du,date:()=>dd,number:()=>dl,string:()=>ds});var h={};n.r(h),n.d(h,{$brand:()=>v,$input:()=>aO,$output:()=>aN,NEVER:()=>m,TimePrecision:()=>a3,ZodAny:()=>uF,ZodArray:()=>uY,ZodBase64:()=>uo,ZodBase64URL:()=>ul,ZodBigInt:()=>uN,ZodBigIntFormat:()=>uC,ZodBoolean:()=>uI,ZodCIDRv4:()=>un,ZodCIDRv6:()=>ui,ZodCUID:()=>lY,ZodCUID2:()=>lX,ZodCatch:()=>cP,ZodCodec:()=>cj,ZodCustom:()=>cQ,ZodCustomStringFormat:()=>uh,ZodDate:()=>uV,ZodDefault:()=>cI,ZodDiscriminatedUnion:()=>u9,ZodE164:()=>uc,ZodEmail:()=>lR,ZodEmoji:()=>lq,ZodEnum:()=>cd,ZodError:()=>lm,ZodExactOptional:()=>cE,ZodFile:()=>cg,ZodFirstPartyTypeKind:()=>i,ZodFunction:()=>cJ,ZodGUID:()=>lL,ZodIPv4:()=>l5,ZodIPv6:()=>ue,ZodISODate:()=>ll,ZodISODateTime:()=>lo,ZodISODuration:()=>lp,ZodISOTime:()=>lc,ZodIntersection:()=>u7,ZodIssueCode:()=>de,ZodJWT:()=>up,ZodKSUID:()=>l6,ZodLazy:()=>cK,ZodLiteral:()=>ch,ZodMAC:()=>l8,ZodMap:()=>cs,ZodNaN:()=>cM,ZodNanoID:()=>lV,ZodNever:()=>uZ,ZodNonOptional:()=>cC,ZodNull:()=>uU,ZodNullable:()=>cx,ZodNumber:()=>u_,ZodNumberFormat:()=>uk,ZodObject:()=>uQ,ZodOptional:()=>cb,ZodPipe:()=>cz,ZodPrefault:()=>cN,ZodPromise:()=>cW,ZodReadonly:()=>cH,ZodRealError:()=>lg,ZodRecord:()=>cr,ZodSet:()=>cu,ZodString:()=>lC,ZodStringFormat:()=>l$,ZodSuccess:()=>c$,ZodSymbol:()=>uR,ZodTemplateLiteral:()=>cG,ZodTransform:()=>cy,ZodTuple:()=>ct,ZodType:()=>
9lN,ZodULID:()=>l0,ZodURL:()=>lH,ZodUUID:()=>lU,ZodUndefined:()=>uL,ZodUnion:()=>u4,ZodUnknown:()=>uB,ZodVoid:()=>uq,ZodXID:()=>l2,ZodXor:()=>u3,_ZodString:()=>lO,_default:()=>cw,_function:()=>cX,any:()=>uj,array:()=>uJ,base64:()=>us,base64url:()=>uu,bigint:()=>uO,boolean:()=>uw,catch:()=>cL,check:()=>c0,cidrv4:()=>ur,cidrv6:()=>ua,clone:()=>et,codec:()=>cB,coerce:()=>f,config:()=>k,core:()=>u,cuid:()=>lJ,cuid2:()=>lQ,custom:()=>c1,date:()=>uW,decode:()=>lE,decodeAsync:()=>lx,describe:()=>c6,discriminatedUnion:()=>u8,e164:()=>ud,email:()=>lP,emoji:()=>lK,encode:()=>lk,encodeAsync:()=>lT,endsWith:()=>oH,enum:()=>cp,exactOptional:()=>cT,file:()=>cv,flattenError:()=>eR,float32:()=>uT,float64:()=>ux,formatError:()=>eP,fromJSONSchema:()=>da,function:()=>cX,getErrorMap:()=>dn,globalRegistry:()=>a$,gt:()=>oA,gte:()=>oS,guid:()=>lM,hash:()=>uy,hex:()=>uv,hostname:()=>ug,httpUrl:()=>lG,includes:()=>oj,instanceof:()=>c5,int:()=>uE,int32:()=>uA,int64:()=>uD,intersection:()=>ce,ipv4:()=>l9,ipv6:()=>ut,iso:()=>d,json:()=>c8,jwt:()=>uf,keyof:()=>uX,ksuid:()=>l3,lazy:()=>cV,length:()=>oM,literal:()=>cm,locales:()=>s,looseObject:()=>u2,looseRecord:()=>co,lowercase:()=>oz,lt:()=>oT,lte:()=>ox,mac:()=>l7,map:()=>cl,maxLength:()=>oP,maxSize:()=>oD,meta:()=>c3,mime:()=>oG,minLength:()=>oL,minSize:()=>o$,multipleOf:()=>oC,nan:()=>cU,nanoid:()=>lW,nativeEnum:()=>cf,negative:()=>ow,never:()=>uG,nonnegative:()=>oO,nonoptional:()=>cD,nonpositive:()=>oN,normalize:()=>oK,null:()=>uz,nullable:()=>cA,nullish:()=>cS,number:()=>ub,object:()=>u0,optional:()=>ck,overwrite:()=>oq,parse:()=>lv,parseAsync:()=>ly,partialRecord:()=>ca,pipe:()=>cF,positive:()=>oI,prefault:()=>cO,preprocess:()=>c7,prettifyError:()=>eU,promise:()=>cY,property:()=>oZ,readonly:()=>cZ,record:()=>ci,refine:()=>c2,regex:()=>oU,regexes:()=>o,registry:()=>aD,safeDecode:()=>lS,safeDecodeAsync:()=>lw,safeEncode:()=>lA,safeEncodeAsync:()=>lI,safeParse:()=>l_,safeParseAsync:()=>lb,set:()=>cc,setErrorMap:()=>dt,size:()=>oR,slugify:()=>oJ,startsWith:()=>oB,strictObject:()=>u1,string:()=>lD,stringFormat:()=>um,stringbool:()=>c9,success:()=>cR,superRefine:()=>c4,symbol:()=>uP,templateLiteral:()=>cq,toJSONSchema:()=>li,toLowerCase:()=>oW,toUpperCase:()=>oY,transform:()=>c_,treeifyError:()=>eL,trim:()=>oV,tuple:()=>cn,uint32:()=>uS,uint64:()=>u$,ulid:()=>l1,undefined:()=>uM,union:()=>u6,unknown:()=>uH,uppercase:()=>oF,url:()=>lZ,util:()=>a,uuid:()=>lz,uuidv4:()=>lF,uuidv6:()=>lj,uuidv7:()=>lB,void:()=>uK,xid:()=>l4,xor:()=>u5});let m=Object.freeze({status:"aborted"});function g(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}function o(e){var t;let i=n?.Parent?new a:this;for(let n of(r(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))n();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}let v=Symbol("zod_brand");class y extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class _ extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}let b={};function k(e){return e&&Object.assign(b,e),b}function E(e){return e}function T(e){return e}function x(e){}function A(e){throw Error("Unexpected value in exhaustive check")}function S(e){}function I(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function w(e,t="|"){return e.map(e=>ei(e)).join(t)}function N(e,t){return"bigint"==typeof t?t.toString():t}function O(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function C(e){return null==e}function D(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function $(e,t){let n=(e.toString().split(".")[1]||"").length,r=t.toString(),i=(r.split(".")[1]||"").length;if(0===i&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}let R=Symbol("evaluating");function P(e,t,n){let r;
9Object.defineProperty(e,t,{get(){if(r!==R)return void 0===r&&(r=R,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function L(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function M(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function U(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function z(e){return U(e._zod.def)}function F(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function j(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function B(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function H(e){return JSON.stringify(e)}function Z(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let G="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function q(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let K=O(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function V(e){if(!1===q(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==q(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function W(e){return V(e)?{...e}:Array.isArray(e)?[...e]:e}function Y(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}let J=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("undefined"!=typeof Map&&e instanceof Map)return"map";if("undefined"!=typeof Set&&e instanceof Set)return"set";if("undefined"!=typeof Date&&e instanceof Date)return"date";if("undefined"!=typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},X=new Set(["string","number","symbol"]),Q=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ee(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function et(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function en(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function er(e){let t;return new Proxy({},{get:(n,r,i)=>(t??(t=e()),Reflect.get(t,r,i)),set:(n,r,i,a)=>(t??(t=e()),Reflect.set(t,r,i,a)),has:(n,r)=>(t??(t=e()),Reflect.has(t,r)),deleteProperty:(n,r)=>(t??(t=e()),Reflect.deleteProperty(t,r)),ownKeys:n=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,r)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)),defineProperty:(n,r,i)=>(t??(t=e()),Reflect.defineProperty(t,r,i))})}function ei(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function ea(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let eo={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},es={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function el(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=U(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return M(this,"shape",e),e},checks:[]});return et(e,i)}function eu(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=U(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return M(this,"shape",r),r},checks:[]});return et(e,i)}function ec(e,t){if(!V(t))throw Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw Error("Cannot over
9write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=U(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return M(this,"shape",n),n}});return et(e,r)}function ed(e,t){if(!V(t))throw Error("Invalid input to safeExtend: expected a plain object");let n=U(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return M(this,"shape",n),n}});return et(e,n)}function ep(e,t){let n=U(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return M(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return et(e,n)}function ef(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=U(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return M(this,"shape",i),i},checks:[]});return et(t,i)}function eh(e,t,n){let r=U(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return M(this,"shape",i),i}});return et(t,r)}function em(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function eg(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function ev(e){return"string"==typeof e?e:e?.message}function ey(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=ev(e.inst?._zod.def?.error?.(e))??ev(t?.error?.(e))??ev(n.customError?.(e))??ev(n.localeError?.(e))??"Invalid input"),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function e_(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function eb(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ek(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}function eE(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function eT(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ex(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function eA(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function eS(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return ex(t+n)}function eI(e){return eA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ew(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function eN(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}class eO{constructor(...e){}}let eC=(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,N,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eD=g("$ZodError",eC),e$=g("$ZodError",eC,{Parent:Error});function eR(e,t=e=>e.message){let n={},r=[];for(let 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 eP(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map(e=>r({issues:e}));else if("invalid_key"===i.code)r({issues:i.issues});else if("invalid_element"===i.code)r({issues:i.issues});else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}function eL(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;
9for(let s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>r({issues:e},s.path));else if("invalid_key"===s.code)r({issues:s.issues},s.path);else if("invalid_element"===s.code)r({issues:s.issues},s.path);else{let e=[...i,...s.path];if(0===e.length){n.errors.push(t(s));continue}let r=n,l=0;for(;l<e.length;){let n=e[l],i=l===e.length-1;"string"==typeof n?(r.properties??(r.properties={}),(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??(r.items=[]),(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),l++}}};return r(e),n}function eM(e){let t=[];for(let n of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof n?t.push(`[${n}]`):"symbol"==typeof n?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function eU(e){let t=[];for(let n of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`✖ ${n.message}`),n.path?.length&&t.push(`  → at ${eM(n.path)}`);return t.join("\n")}let ez=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new y;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ey(e,a,k())));throw G(t,i?.callee),t}return o.value},eF=ez(e$),ej=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ey(e,a,k())));throw G(t,i?.callee),t}return o.value},eB=ej(e$),eH=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new y;return a.issues.length?{success:!1,error:new(e??eD)(a.issues.map(e=>ey(e,i,k())))}:{success:!0,data:a.value}},eZ=eH(e$),eG=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>ey(e,i,k())))}:{success:!0,data:a.value}},eq=eG(e$),eK=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ez(e)(t,n,i)},eV=eK(e$),eW=e=>(t,n,r)=>ez(e)(t,n,r),eY=eW(e$),eJ=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ej(e)(t,n,i)},eX=eJ(e$),eQ=e=>async(t,n,r)=>ej(e)(t,n,r),e0=eQ(e$),e1=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return eH(e)(t,n,i)},e2=e1(e$),e4=e=>(t,n,r)=>eH(e)(t,n,r),e6=e4(e$),e3=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return eG(e)(t,n,i)},e5=e3(e$),e9=e=>async(t,n,r)=>eG(e)(t,n,r),e8=e9(e$),e7=/^[cC][^\s-]{8,}$/,te=/^[0-9a-z]+$/,tt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tn=/^[0-9a-vA-V]{20}$/,tr=/^[A-Za-z0-9]{27}$/,ti=/^[a-zA-Z0-9_-]{21}$/,ta=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,to=/^[-+]?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)?)??$/,ts=/^([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})$/,tl=e=>e?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)$/,tu=tl(4),tc=tl(6),td=tl(7),tp=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tf=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,th=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,tm=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,tg=tm,tv=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function ty(){return RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}let t_=/^(?:(?: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])$/,tb=/^(([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}|:))$/,tk=e=>{let t=ee(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},tE=/^((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])$/,tT=/^(([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])$/,tx=/^$|^(?:[0-9a-zA-Z+/]{4}
9)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tA=/^[A-Za-z0-9_-]*$/,tS=/^(?=.{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])?)*\.?$/,tI=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,tw=/^\+[1-9]\d{6,14}$/,tN="(?:(?:\\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])))",tO=RegExp(`^${tN}$`);function tC(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tD(e){return RegExp(`^${tC(e)}$`)}function t$(e){let t=tC({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return RegExp(`^${tN}T(?:${r})$`)}let tR=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},tP=/^-?\d+n?$/,tL=/^-?\d+$/,tM=/^-?\d+(?:\.\d+)?$/,tU=/^(?:true|false)$/i,tz=/^null$/i,tF=/^undefined$/i,tj=/^[^A-Z]*$/,tB=/^[^a-z]*$/,tH=/^[0-9a-fA-F]*$/;function tZ(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function tG(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let tq=/^[0-9a-fA-F]{32}$/,tK=tZ(22,"=="),tV=tG(22),tW=/^[0-9a-fA-F]{40}$/,tY=tZ(27,"="),tJ=tG(27),tX=/^[0-9a-fA-F]{64}$/,tQ=tZ(43,"="),t0=tG(43),t1=/^[0-9a-fA-F]{96}$/,t2=tZ(64,""),t4=tG(64),t6=/^[0-9a-fA-F]{128}$/,t3=tZ(86,"=="),t5=tG(86),t9=g("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),t8={number:"number",bigint:"bigint",object:"date"},t7=g("$ZodCheckLessThan",(e,t)=>{t9.init(e,t);let n=t8[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<r&&(t.inclusive?n.maximum=t.value:n.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:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ne=g("$ZodCheckGreaterThan",(e,t)=>{t9.init(e,t);let n=t8[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(t.inclusive?n.minimum=t.value:n.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:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),nt=g("$ZodCheckMultipleOf",(e,t)=>{t9.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===$(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),nn=g("$ZodCheckNumberFormat",(e,t)=>{t9.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,a]=eo[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=tL)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s))return void o.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.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,inclusive:!0,continue:!t.abort}):o.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,inclusive:!0,continue:!t.abort}))}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>
vendor: 5,880 bytes, line 9
9a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),nr=g("$ZodCheckBigIntFormat",(e,t)=>{t9.init(e,t);let[n,r]=es[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:"bigint",input:a,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:"bigint",input:a,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),ni=g("$ZodCheckMaxSize",(e,t)=>{var n;t9.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!C(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:e_(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),na=g("$ZodCheckMinSize",(e,t)=>{var n;t9.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!C(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:e_(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),no=g("$ZodCheckSizeEquals",(e,t)=>{var n;t9.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!C(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:e_(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ns=g("$ZodCheckMaxLength",(e,t)=>{var n;t9.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!C(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=eb(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),nl=g("$ZodCheckMinLength",(e,t)=>{var n;t9.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!C(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=eb(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),nu=g("$ZodCheckLengthEquals",(e,t)=>{var n;t9.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!C(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=eb(r),o=i>t.length;n.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),nc=g("$ZodCheckStringFormat",(e,t)=>{var n,r;t9.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),nd=g("$ZodCheckRegex",(e,t)=>{nc.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})}}),np=g("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tj),nc.init(e,t)}),nf=g("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=tB),nc.init(e,t)}),nh=g("$ZodCheckIncludes",(e,t)=>{t9.init(e,t);let n=ee(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),nm=g("$ZodCheckStartsWith",(e,t)=>{t9.init(e,t);let n=RegExp(`^${ee(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),ng=g("$ZodCheckEndsWith",(e,t)=>{t9.init(e,t);let n=RegExp(`.*${ee(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function nv(e,t,n){e.issues.length&&t.issues.push(...eg(n,e.issues))}let ny=g("$ZodCheckProperty",(e,t)=>{t9.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>nv(n,e,t.property));nv(n,e,t.property)}}),n_=g("$ZodCheckMimeType",(e,t)=>{t9.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),nb=g("$ZodCheckOverwrite",(e,t)=>{t9.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});
9class nk{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>`  ${e}`)].join("\n"))}}let nE={major:4,minor:3,patch:5},nT=g("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nE;let r=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&r.unshift(e),r))for(let n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r,i=em(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new y;if(r||o instanceof Promise)r=(r??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(i||(i=em(e,t)))});else{if(e.issues.length===t)continue;i||(i=em(e,t))}}return r?r.then(()=>e):e},n=(n,i,a)=>{if(em(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(!1===a.async)throw new y;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>
9{if(a.skipChecks)return e._zod.parse(i,a);if("backward"===a.direction){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(!1===a.async)throw new y;return o.then(e=>t(e,r,a))}return t(o,r,a)}}P(e,"~standard",()=>({validate:t=>{try{let n=eZ(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return eq(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),nx=g("$ZodString",(e,t)=>{nT.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??tR(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),nA=g("$ZodStringFormat",(e,t)=>{nc.init(e,t),nx.init(e,t)}),nS=g("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ts),nA.init(e,t)}),nI=g("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=tl(e))}else t.pattern??(t.pattern=tl());nA.init(e,t)}),nw=g("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=tp),nA.init(e,t)}),nN=g("$ZodURL",(e,t)=>{nA.init(e,t),e._zod.check=n=>{try{let 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:t.hostname.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(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),nO=g("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ty()),nA.init(e,t)}),nC=g("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ti),nA.init(e,t)}),nD=g("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=e7),nA.init(e,t)}),n$=g("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=te),nA.init(e,t)}),nR=g("$ZodULID",(e,t)=>{t.pattern??(t.pattern=tt),nA.init(e,t)}),nP=g("$ZodXID",(e,t)=>{t.pattern??(t.pattern=tn),nA.init(e,t)}),nL=g("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=tr),nA.init(e,t)}),nM=g("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=t$(t)),nA.init(e,t)}),nU=g("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tO),nA.init(e,t)}),nz=g("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=tD(t)),nA.init(e,t)}),nF=g("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ta),nA.init(e,t)}),nj=g("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=t_),nA.init(e,t),e._zod.bag.format="ipv4"}),nB=g("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=tb),nA.init(e,t),e._zod.bag.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})}}}),nH=g("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=tk(t.delimiter)),nA.init(e,t),e._zod.bag.format="mac"}),nZ=g("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=tE),nA.init(e,t)}),nG=g("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tT),nA.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(2!==r.length)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function nq(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let nK=g("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=tx),nA.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{nq(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function nV(e){if(!tA.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return nq(t.padEnd(4*Math.ceil(t.length/4),"="))}let nW=g("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=tA),nA.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>
9{nV(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),nY=g("$ZodE164",(e,t)=>{t.pattern??(t.pattern=tw),nA.init(e,t)});function nJ(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}let nX=g("$ZodJWT",(e,t)=>{nA.init(e,t),e._zod.check=n=>{nJ(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),nQ=g("$ZodCustomStringFormat",(e,t)=>{nA.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),n0=g("$ZodNumber",(e,t)=>{nT.init(e,t),e._zod.pattern=e._zod.bag.pattern??tM,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a="number"==typeof i?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,...a?{received:a}:{}}),n}}),n1=g("$ZodNumberFormat",(e,t)=>{nn.init(e,t),n0.init(e,t)}),n2=g("$ZodBoolean",(e,t)=>{nT.init(e,t),e._zod.pattern=tU,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),n4=g("$ZodBigInt",(e,t)=>{nT.init(e,t),e._zod.pattern=tP,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),n6=g("$ZodBigIntFormat",(e,t)=>{nr.init(e,t),n4.init(e,t)}),n3=g("$ZodSymbol",(e,t)=>{nT.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return"symbol"==typeof r||t.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),t}}),n5=g("$ZodUndefined",(e,t)=>{nT.init(e,t),e._zod.pattern=tF,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),t}}),n9=g("$ZodNull",(e,t)=>{nT.init(e,t),e._zod.pattern=tz,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),n8=g("$ZodAny",(e,t)=>{nT.init(e,t),e._zod.parse=e=>e}),n7=g("$ZodUnknown",(e,t)=>{nT.init(e,t),e._zod.parse=e=>e}),re=g("$ZodNever",(e,t)=>{nT.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),rt=g("$ZodVoid",(e,t)=>{nT.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),t}}),rn=g("$ZodDate",(e,t)=>{nT.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...a?{received:"Invalid Date"}:{},inst:e}),n}});function rr(e,t,n){e.issues.length&&t.issues.push(...eg(n,e.issues)),t.value[n]=e.value}let ri=g("$ZodArray",(e,t)=>{nT.init(e,t),e._zod.parse=(n,r)=>{let 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);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>rr(t,n,e))):rr(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function ra(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...eg(n,e.issues))}void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function ro(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=ea(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}
9function rs(e,t,n,r,i,a){let o=[],s=i.keySet,l=i.catchall._zod,u=l.def.type,c="optional"===l.optout;for(let i in t){if(s.has(i))continue;if("never"===u){o.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>ra(e,n,i,t,c))):ra(a,n,i,t,c)}return(o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length)?Promise.all(e).then(()=>n):n}let rl=g("$ZodObject",(e,t)=>{let n;nT.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape");if(!r?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let i=O(()=>ro(t));P(e._zod,"propValues",()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values)for(let e of(n[t]??(n[t]=new Set),r.values))n[t].add(e)}return n});let a=t.catchall;e._zod.parse=(t,r)=>{n??(n=i.value);let o=t.value;if(!q(o))return t.issues.push({expected:"object",code:"invalid_type",input:o,inst:e}),t;t.value={};let s=[],l=n.shape;for(let e of n.keys){let n=l[e],i="optional"===n._zod.optout,a=n._zod.run({value:o[e],issues:[]},r);a instanceof Promise?s.push(a.then(n=>ra(n,t,e,o,i))):ra(a,t,e,o,i)}return a?rs(s,o,t,r,i.value,e):s.length?Promise.all(s).then(()=>t):t}}),ru=g("$ZodObjectJIT",(e,t)=>{let n,r;rl.init(e,t);let i=e._zod.parse,a=O(()=>ro(t)),o=e=>{let t=new nk(["shape","payload","ctx"]),n=a.value,r=e=>{let t=H(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),o=0;for(let e of n.keys)i[e]=`key_${o++}`;for(let a of(t.write("const newResult = {};"),n.keys)){let n=i[a],o=H(a),s=e[a],l=s?._zod?.optout==="optional";t.write(`const ${n} = ${r(a)};`),l?t.write(`
10        if (${n}.issues.length) {
11          if (${o} in input) {
12            payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
13              ...iss,
14              path: iss.path ? [${o}, ...iss.path] : [${o}]
15            })));
16          }
17        }
18        
19        if (${n}.value === undefined) {
20          if (${o} in input) {
21            newResult[${o}] = undefined;
22          }
23        } else {
24          newResult[${o}] = ${n}.value;
25        }
26        
27      `):t.write(`
28        if (${n}.issues.length) {
29          payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
30            ...iss,
31            path: iss.path ? [${o}, ...iss.path] : [${o}]
32          })));
33        }
34        
35        if (${n}.value === undefined) {
36          if (${o} in input) {
37            newResult[${o}] = undefined;
38          }
39        } else {
40          newResult[${o}] = ${n}.value;
41        }
42        
43      `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,n)=>s(e,t,n)},s=!b.jitless,l=s&&K.value,u=t.catchall;e._zod.parse=(c,d)=>{r??(r=a.value);let p=c.value;return q(p)?s&&l&&d?.async===!1&&!0!==d.jitless?(n||(n=o(t.shape)),c=n(c,d),u)?rs([],p,c,d,r,e):c:i(c,d):(c.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}
43),c)}});function rc(e,t,n,r){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let i=e.filter(e=>!em(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ey(e,r,k())))}),t)}let rd=g("$ZodUnion",(e,t)=>{nT.init(e,t),P(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),P(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),P(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),P(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>D(e.source)).join("|")})$`)}});let n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(0===t.issues.length)return t;s.push(t)}}return o?Promise.all(s).then(t=>rc(t,i,e,a)):rc(s,i,e,a)}});function rp(e,t,n,r){let i=e.filter(e=>0===e.issues.length);return 1===i.length?t.value=i[0].value:0===i.length?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ey(e,r,k())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t}let rf=g("$ZodXor",(e,t)=>{rd.init(e,t),t.inclusive=!1;let n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);t instanceof Promise?(s.push(t),o=!0):s.push(t)}return o?Promise.all(s).then(t=>rp(t,i,e,a)):rp(s,i,e,a)}}),rh=g("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,rd.init(e,t);let n=e._zod.parse;P(e._zod,"propValues",()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r))for(let r of(e[t]||(e[t]=new Set),n))e[t].add(r)}return e});let r=O(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!q(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),rm=g("$ZodIntersection",(e,t)=>{nT.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>rg(e,t,n)):rg(e,i,a)}});function rg(e,t,n){let r,i=new Map;for(let n of t.issues)if("unrecognized_keys"===n.code)for(let e of(r??(r=n),n.keys))i.has(e)||i.set(e,{}),i.get(e).l=!0;else e.issues.push(n);for(let t of n.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);let a=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&r&&e.issues.push({...r,keys:a}),em(e))return e;let o=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(V(t)&&V(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};a[r]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);
43if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}let rv=g("$ZodTuple",(e,t)=>{nT.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let o=[],s=[...n].reverse().findIndex(e=>"optional"!==e._zod.optin),l=-1===s?0:n.length-s;if(!t.rest){let t=a.length>n.length,i=a.length<l-1;if(t||i)return r.issues.push({...t?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:a,inst:e,origin:"array"}),r}let u=-1;for(let e of n){if(++u>=a.length&&u>=l)continue;let t=e._zod.run({value:a[u],issues:[]},i);t instanceof Promise?o.push(t.then(e=>ry(e,r,u))):ry(t,r,u)}if(t.rest)for(let e of a.slice(n.length)){u++;let n=t.rest._zod.run({value:e,issues:[]},i);n instanceof Promise?o.push(n.then(e=>ry(e,r,u))):ry(n,r,u)}return o.length?Promise.all(o).then(()=>r):r}});function ry(e,t,n){e.issues.length&&t.issues.push(...eg(n,e.issues)),t.value[n]=e.value}let r_=g("$ZodRecord",(e,t)=>{nT.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!V(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){let s;n.value={};let l=new Set;for(let e of o)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){l.add("number"==typeof e?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...eg(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...eg(e,o.issues)),n.value[e]=o.value)}for(let e in i)l.has(e)||(s=s??[]).push(e);s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else for(let o of(n.value={},Reflect.ownKeys(i))){if("__proto__"===o)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof o&&tM.test(o)&&s.issues.length&&s.issues.some(e=>"invalid_type"===e.code&&"number"===e.expected)){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(s=e)}if(s.issues.length){"loose"===t.mode?n.value[o]=i[o]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>ey(e,r,k())),input:o,path:[o],inst:e});continue}let l=t.valueType._zod.run({value:i[o],issues:[]},r);l instanceof Promise?a.push(l.then(e=>{e.issues.length&&n.issues.push(...eg(o,e.issues)),n.value[s.value]=e.value})):(l.issues.length&&n.issues.push(...eg(o,l.issues)),n.value[s.value]=l.value)}return a.length?Promise.all(a).then(()=>n):n}}
43),rb=g("$ZodMap",(e,t)=>{nT.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;let a=[];for(let[o,s]of(n.value=new Map,i)){let l=t.keyType._zod.run({value:o,issues:[]},r),u=t.valueType._zod.run({value:s,issues:[]},r);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then(([t,a])=>{rk(t,a,n,o,i,e,r)})):rk(l,u,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}});function rk(e,t,n,r,i,a,o){e.issues.length&&(X.has(typeof r)?n.issues.push(...eg(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:i,inst:a,issues:e.issues.map(e=>ey(e,o,k()))})),t.issues.length&&(X.has(typeof r)?n.issues.push(...eg(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:r,issues:t.issues.map(e=>ey(e,o,k()))})),n.value.set(e.value,t.value)}let rE=g("$ZodSet",(e,t)=>{nT.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;let a=[];for(let e of(n.value=new Set,i)){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>rT(e,n))):rT(i,n)}return a.length?Promise.all(a).then(()=>n):n}});function rT(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let rx=g("$ZodEnum",(e,t)=>{nT.init(e,t);let n=I(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>X.has(typeof e)).map(e=>"string"==typeof e?ee(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:"invalid_value",values:n,input:a,inst:e}),t}}),rA=g("$ZodLiteral",(e,t)=>{if(nT.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?ee(e):e?ee(e.toString()):String(e)).join("|")})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),rS=g("$ZodFile",(e,t)=>{nT.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),t}}),rI=g("$ZodTransform",(e,t)=>{nT.init(e,t),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new _(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new y;return n.value=i,n}});function rw(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}let rN=g("$ZodOptional",(e,t)=>{nT.init(e,t),e._zod.optin="optional",e._zod.optout="optional",P(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),P(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${D(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>rw(t,e.value)):rw(r,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),rO=g("$ZodExactOptional",(e,t)=>{rN.init(e,t),P(e._zod,"values",()=>t.innerType._zod.values),P(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),rC=g("$ZodNullable",(e,t)=>{nT.init(e,t),P(e._zod,"optin",()=>t.innerType._zod.optin),P(e._zod,"optout",()=>t.innerType._zod.optout),P(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${D(e.source)}|null)$`):void 0}),P(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),rD=g("$ZodDefault",(e,t)=>{nT.init(e,t),e._zod.optin="optional",P(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>r$(e,t)):r$(r,t)}});function r$(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let rR=g("$ZodPrefault",(e,t)=>{nT.init(e,t),e._zod.optin="optional",P(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),rP=g("$ZodNonOptional",(e,t)=>{nT.init(e,t),P(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>rL(t,e)):rL(i,e)}});function rL(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let rM=g("$ZodSuccess",(e,t)=>{nT.init(e,t),e._zod.parse=(e,n)=>{if("backward"===n.direction)throw new _("ZodSuccess");let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===r.issues.length,e)}}),rU=g("$ZodCatch",(e,t)=>{nT.init(e,t),P(e._zod,"optin",()=>t.innerType._zod.optin),P(e._zod,"optout",()=>t.innerType._zod.optout),P(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ey(e,n,k()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ey(e,n,k()))},input:e.value}),e.issues=[]),e)}}),rz=g("$ZodNaN",(e,t)=>{nT.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),rF=g("$ZodPipe",(e,t)=>{nT.init(e,t),P(e._zod,"values",()=>t.in._zod.values),P(e._zod,"optin",()=>t.in._zod.optin),P(e._zod,"optout",()=>t.out._zod.optout),P(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>rj(e,t.in,n)):rj(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>rj(e,t.out,n)):rj(r,t.out,n)}});function rj(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}let rB=g("$ZodCodec",(e,t)=>{nT.init(e,t),P(e._zod,"values",()=>t.in._zod.values),P(e._zod,"optin",()=>t.in._zod.optin),P(e._zod,"optout",()=>t.out._zod.optout),P(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("forward"===(n.direction||"forward")){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>rH(e,t,n)):rH(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>rH(e,t,n)):rH(r,t,n)}}});function rH(e,t,n){if(e.issues.length)return e.aborted=!0,e;if("forward"===(n.direction||"forward")){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>rZ(e,r,t.out,n)):rZ(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>rZ(e,r,t.in,n)):rZ(e,r,t.in,n)}}function rZ(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}let rG=g("$ZodReadonly",(e,t)=>{nT.init(e,t),P(e._zod,"propValues",()=>t.innerType._zod.propValues),P(e._zod,"values",()=>t.innerType._zod.values),P(e._zod,"optin",()=>t.innerType?._zod?.optin),P(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(rq):rq(r)}});function rq(e){return e.value=Object.freeze(e.value),e}let rK=g("$ZodTemplateLiteral",(e,t)=>{nT.init(e,t);let n=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith("^"),i=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(r,i))}else if(null===e||Q.has(typeof e))n.push(ee(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join("")}$`),e._zod.parse=(n,r)=>("string"!=typeof n.value?n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),n)}),rV=g("$ZodFunction",(e,t)=>(nT.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...n){let r=Reflect.apply(t,this,e._def.input?eF(e._def.input,n):n);return e._def.output?eF(e._def.output,r):r}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...n){let r=e._def.input?await eB(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await eB(e._def.output,i):i}},e._zod.parse=(t,n)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let n=e.constructor;return new n(Array.isArray(t[0])?{type:"function",input:new rv({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),rW=g("$ZodPromise",(e,t)=>{nT.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),rY=g("$ZodLazy",(e,t)=>{nT.init(e,t),P(e._zod,"innerType",()=>t.getter()),P(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),P(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),P(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),P(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),rJ=g("$ZodCustom",(e,t)=>{t9.init(e,t),nT.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>rX(t,n,r,e));rX(i,n,r,e)}});function rX(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(eE(e))}}let rQ=()=>{let e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}},t={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},n={nan:"NaN"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${r.expected}، ولكن تم إدخال ${i}`;return`مدخلات غير مقبولة: يفترض إدخال ${e}، ولكن تم إدخال ${i}`}case"invalid_value":if(1===r.values.length)return`مدخلات غير مقبولة: يفترض إدخال ${ei(r.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return` أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${t} ${r.maximum.toString()} ${n.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${t} ${r.minimum.toString()} ${n.unit}`;return`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`نَص غير مقبول: يجب أن يبدأ بـ "${r.prefix}"`;if("ends_with"===r.format)return`نَص غير مقبول: يجب أن ينتهي بـ "${r.suffix}"`;if("includes"===r.format)return`نَص غير مقبول: يجب أن يتضمَّن "${r.includes}"`;if("regex"===r.format)return`نَص غير مقبول: يجب أن يطابق النمط ${r.pattern}`;return`${t[r.format]??r.format} غير مقبول`;case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case"unrecognized_keys":return`معرف${r.keys.length>1?"ات":""} غريب${r.keys.length>1?"ة":""}: ${w(r.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${r.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${r.origin}`}}};function r0(){return{localeError:rQ()}}let r1=()=>{let e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Yanlış dəyər: g\xf6zlənilən instanceof ${r.expected}, daxil olan ${i}`;return`Yanlış dəyər: g\xf6zlənilən ${e}, daxil olan ${i}`}case"invalid_value":if(1===r.values.length)return`Yanlış dəyər: g\xf6zlənilən ${ei(r.values[0])}`;return`Yanlış se\xe7im: aşağıdakılardan biri olmalıdır: ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${r.origin??"dəyər"} ${t}${r.maximum.toString()} ${n.unit??"element"}`;return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${r.origin??"dəyər"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`\xc7ox ki\xe7ik: g\xf6zlənilən ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`\xc7ox ki\xe7ik: g\xf6zlənilən ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Yanlış mətn: "${r.prefix}" ilə başlamalıdır`;if("ends_with"===r.format)return`Yanlış mətn: "${r.suffix}" ilə bitməlidir`;if("includes"===r.format)return`Yanlış mətn: "${r.includes}" daxil olmalıdır`;if("regex"===r.format)return`Yanlış mətn: ${r.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${t[r.format]??r.format}`;case"not_multiple_of":return`Yanlış ədəd: ${r.divisor} ilə b\xf6l\xfcnə bilən olmalıdır`;
43case"unrecognized_keys":return`Tanınmayan a\xe7ar${r.keys.length>1?"lar":""}: ${w(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilində yanlış a\xe7ar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${r.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}};function r2(){return{localeError:r1()}}function r4(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:1===a?t:a>=2&&a<=4?n:r}let r6=()=>{let e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}},t={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},n={nan:"NaN",number:"лік",array:"масіў"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Няправільны ўвод: чакаўся instanceof ${r.expected}, атрымана ${i}`;return`Няправільны ўвод: чакаўся ${e}, атрымана ${i}`}case"invalid_value":if(1===r.values.length)return`Няправільны ўвод: чакалася ${ei(r.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=r4(Number(r.maximum),n.unit.one,n.unit.few,n.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна ${n.verb} ${t}${r.maximum.toString()} ${e}`}return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна быць ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=r4(Number(r.minimum),n.unit.one,n.unit.few,n.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${n.verb} ${t}${r.minimum.toString()} ${e}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Няправільны радок: павінен пачынацца з "${r.prefix}"`;if("ends_with"===r.format)return`Няправільны радок: павінен заканчвацца на "${r.suffix}"`;if("includes"===r.format)return`Няправільны радок: павінен змяшчаць "${r.includes}"`;if("regex"===r.format)return`Няправільны радок: павінен адпавядаць шаблону ${r.pattern}`;return`Няправільны ${t[r.format]??r.format}`;case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${r.keys.length>1?"ключы":"ключ"}: ${w(r.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${r.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${r.origin}`;default:return`Няправільны ўвод`}}};function r3(){return{localeError:r6()}}let r5=()=>{let e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}},t={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},n={nan:"NaN",number:"число",array:"масив"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Невалиден вход: очакван instanceof ${r.expected}, получен ${i}`;return`Невалиден вход: очакван ${e}, получен ${i}`}case"invalid_value":if(1===r.values.length)return`Невалиден вход: очакван ${ei(r.values[0])}`;return`Невалидна опция: очаквано едно от ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Твърде голямо: очаква се ${r.origin??"стойност"} да съдържа ${t}${r.maximum.toString()} ${n.unit??"елемента"}`;return`Твърде голямо: очаква се ${r.origin??"стойност"} да бъде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Твърде малко: очаква се ${r.origin} да съдържа ${t}${r.minimum.toString()} ${n.unit}`;return`Твърде малко: очаква се ${r.origin} да бъде ${t}${r.minimum.toString()}`}case"invalid_format":{if("starts_with"===r.format)return`Невалиден низ: трябва да започва с "${r.prefix}"`;if("ends_with"===r.format)return`Невалиден низ: трябва да завършва с "${r.suffix}"`;if("includes"===r.format)return`Невалиден низ: трябва да включва "${r.includes}"`;if("regex"===r.format)return`Невалиден низ: трябва да съвпада с ${r.pattern}`;let e="Невалиден";return"emoji"===r.format&&(e="Невалидно"),"datetime"===r.format&&(e="Невалидно"),"date"===r.format&&(e="Невалидна"),"time"===r.format&&(e="Невалидно"),"duration"===r.format&&(e="Невалидна"),`${e} ${t[r.format]??r.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${r.divisor}`;case"unrecognized_keys":return`Неразпознат${r.keys.length>1?"и":""} ключ${r.keys.length>1?"ове":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${r.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${r.origin}`;default:return`Невалиден вход`}}};function r9(){return{localeError:r5()}}let r8=()=>{let e={string:{unit:"car\xe0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}},t={regex:"entrada",email:"adre\xe7a electr\xf2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xe7a IPv4",ipv6:"adre\xe7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xfamero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Tipus inv\xe0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${i}`;return`Tipus inv\xe0lid: s'esperava ${e}, s'ha rebut ${i}`}case"invalid_value":if(1===r.values.length)return`Valor inv\xe0lid: s'esperava ${ei(r.values[0])}`;return`Opci\xf3 inv\xe0lida: s'esperava una de ${w(r.values," o ")}`;case"too_big":{let t=r.inclusive?"com a m\xe0xim":"menys de",n=e[r.origin]??null;if(n)return`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xe9s ${t} ${r.maximum.toString()} ${n.unit??"elements"}`;return`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"com a m\xednim":"m\xe9s de",n=e[r.origin]??null;if(n)return`Massa petit: s'esperava que ${r.origin} contingu\xe9s ${t} ${r.minimum.toString()} ${n.unit}`;return`Massa petit: s'esperava que ${r.origin} fos ${t} ${r.minimum.toString()}`}
43case"invalid_format":if("starts_with"===r.format)return`Format inv\xe0lid: ha de comen\xe7ar amb "${r.prefix}"`;if("ends_with"===r.format)return`Format inv\xe0lid: ha d'acabar amb "${r.suffix}"`;if("includes"===r.format)return`Format inv\xe0lid: ha d'incloure "${r.includes}"`;if("regex"===r.format)return`Format inv\xe0lid: ha de coincidir amb el patr\xf3 ${r.pattern}`;return`Format inv\xe0lid per a ${t[r.format]??r.format}`;case"not_multiple_of":return`N\xfamero inv\xe0lid: ha de ser m\xfaltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Clau inv\xe0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xe0lida";case"invalid_element":return`Element inv\xe0lid a ${r.origin}`;default:return`Entrada inv\xe0lida`}}};function r7(){return{localeError:r8()}}let ie=()=>{let e={string:{unit:"znaků",verb:"m\xedt"},file:{unit:"bajtů",verb:"m\xedt"},array:{unit:"prvků",verb:"m\xedt"},set:{unit:"prvků",verb:"m\xedt"}},t={regex:"regul\xe1rn\xed v\xfdraz",email:"e-mailov\xe1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve form\xe1tu ISO",date:"datum ve form\xe1tu ISO",time:"čas ve form\xe1tu ISO",duration:"doba trv\xe1n\xed ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zak\xf3dovan\xfd ve form\xe1tu base64",base64url:"řetězec zak\xf3dovan\xfd ve form\xe1tu base64url",json_string:"řetězec ve form\xe1tu JSON",e164:"č\xedslo E.164",jwt:"JWT",template_literal:"vstup"},n={nan:"NaN",number:"č\xedslo",string:"řetězec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Neplatn\xfd vstup: oček\xe1v\xe1no instanceof ${r.expected}, obdrženo ${i}`;return`Neplatn\xfd vstup: oček\xe1v\xe1no ${e}, obdrženo ${i}`}case"invalid_value":if(1===r.values.length)return`Neplatn\xfd vstup: oček\xe1v\xe1no ${ei(r.values[0])}`;return`Neplatn\xe1 možnost: oček\xe1v\xe1na jedna z hodnot ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Hodnota je př\xedliš velk\xe1: ${r.origin??"hodnota"} mus\xed m\xedt ${t}${r.maximum.toString()} ${n.unit??"prvků"}`;return`Hodnota je př\xedliš velk\xe1: ${r.origin??"hodnota"} mus\xed b\xfdt ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Hodnota je př\xedliš mal\xe1: ${r.origin??"hodnota"} mus\xed m\xedt ${t}${r.minimum.toString()} ${n.unit??"prvků"}`;return`Hodnota je př\xedliš mal\xe1: ${r.origin??"hodnota"} mus\xed b\xfdt ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Neplatn\xfd řetězec: mus\xed zač\xednat na "${r.prefix}"`;if("ends_with"===r.format)return`Neplatn\xfd řetězec: mus\xed končit na "${r.suffix}"`;if("includes"===r.format)return`Neplatn\xfd řetězec: mus\xed obsahovat "${r.includes}"`;if("regex"===r.format)return`Neplatn\xfd řetězec: mus\xed odpov\xeddat vzoru ${r.pattern}`;return`Neplatn\xfd form\xe1t ${t[r.format]??r.format}`;case"not_multiple_of":return`Neplatn\xe9 č\xedslo: mus\xed b\xfdt n\xe1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xe1m\xe9 kl\xedče: ${w(r.keys,", ")}`;case"invalid_key":return`Neplatn\xfd kl\xedč v ${r.origin}`;case"invalid_union":return"Neplatn\xfd vstup";case"invalid_element":return`Neplatn\xe1 hodnota v ${r.origin}`;default:return`Neplatn\xfd vstup`}}};function it(){return{localeError:ie()}}let ir=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xe6t",date:"ISO-dato",time:"ISO-klokkesl\xe6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xe5de",ipv6:"IPv6-omr\xe5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xe6t",file:"fil"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ugyldigt input: forventede instanceof ${r.expected}, fik ${i}`;return`Ugyldigt input: forventede ${e}, fik ${i}`}case"invalid_value":if(1===r.values.length)return`Ugyldig v\xe6rdi: forventede ${ei(r.values[0])}`;return`Ugyldigt valg: forventede en af f\xf8lgende ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`For stor: forventede ${a??"value"} ${i.verb} ${t} ${r.maximum.toString()} ${i.unit??"elementer"}`;return`For stor: forventede ${a??"value"} havde ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`For lille: forventede ${a} ${i.verb} ${t} ${r.minimum.toString()} ${i.unit}`;return`For lille: forventede ${a} havde ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ugyldig streng: skal starte med "${r.prefix}"`;if("ends_with"===r.format)return`Ugyldig streng: skal ende med "${r.suffix}"`;if("includes"===r.format)return`Ugyldig streng: skal indeholde "${r.includes}"`;if("regex"===r.format)return`Ugyldig streng: skal matche m\xf8nsteret ${r.pattern}`;return`Ugyldig ${t[r.format]??r.format}`;case"not_multiple_of":return`Ugyldigt tal: skal v\xe6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xf8gler":"Ukendt n\xf8gle"}: ${w(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xe6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function ii(){return{localeError:ir()}}let ia=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}},t={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},n={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ung\xfcltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${i}`;return`Ung\xfcltige Eingabe: erwartet ${e}, erhalten ${i}`}case"invalid_value":if(1===r.values.length)return`Ung\xfcltige Eingabe: erwartet ${ei(r.values[0])}`;return`Ung\xfcltige Option: erwartet eine von ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Zu gro\xdf: erwartet, dass ${r.origin??"Wert"} ${t}${r.maximum.toString()} ${n.unit??"Elemente"} hat`;return`Zu gro\xdf: erwartet, dass ${r.origin??"Wert"} ${t}${r.maximum.toString()} ist`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Zu klein: erwartet, dass ${r.origin} ${t}${r.minimum.toString()} ${n.unit} hat`;return`Zu klein: erwartet, dass ${r.origin} ${t}${r.minimum.toString()} ist`}case"invalid_format":if("starts_with"===r.format)return`Ung\xfcltiger String: muss mit "${r.prefix}" beginnen`;if("ends_with"===r.format)return`Ung\xfcltiger String: muss mit "${r.suffix}" enden`;if("includes"===r.format)return`Ung\xfcltiger String: muss "${r.includes}" enthalten`;if("regex"===r.format)return`Ung\xfcltiger String: muss dem Muster ${r.pattern} entsprechen`;return`Ung\xfcltig: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ung\xfcltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xfcssel":"Unbekannter Schl\xfcssel"}: ${w(r.keys,", ")}`;
43case"invalid_key":return`Ung\xfcltiger Schl\xfcssel in ${r.origin}`;case"invalid_union":return"Ung\xfcltige Eingabe";case"invalid_element":return`Ung\xfcltiger Wert in ${r.origin}`;default:return`Ung\xfcltige Eingabe`}}};function io(){return{localeError:ia()}}let is=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;return`Invalid input: expected ${e}, received ${i}`}case"invalid_value":if(1===r.values.length)return`Invalid input: expected ${ei(r.values[0])}`;return`Invalid option: expected one of ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Too big: expected ${r.origin??"value"} to have ${t}${r.maximum.toString()} ${n.unit??"elements"}`;return`Too big: expected ${r.origin??"value"} to be ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Too small: expected ${r.origin} to have ${t}${r.minimum.toString()} ${n.unit}`;return`Too small: expected ${r.origin} to be ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Invalid string: must start with "${r.prefix}"`;if("ends_with"===r.format)return`Invalid string: must end with "${r.suffix}"`;if("includes"===r.format)return`Invalid string: must include "${r.includes}"`;if("regex"===r.format)return`Invalid string: must match pattern ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`}}};function il(){return{localeError:is()}}let iu=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}},t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Nevalida enigo: atendiĝis instanceof ${r.expected}, riceviĝis ${i}`;return`Nevalida enigo: atendiĝis ${e}, riceviĝis ${i}`}case"invalid_value":if(1===r.values.length)return`Nevalida enigo: atendiĝis ${ei(r.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Tro granda: atendiĝis ke ${r.origin??"valoro"} havu ${t}${r.maximum.toString()} ${n.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${r.origin??"valoro"} havu ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Tro malgranda: atendiĝis ke ${r.origin} havu ${t}${r.minimum.toString()} ${n.unit}`;return`Tro malgranda: atendiĝis ke ${r.origin} estu ${t}${r.minimum.toString()}`}
43case"invalid_format":if("starts_with"===r.format)return`Nevalida karaktraro: devas komenciĝi per "${r.prefix}"`;if("ends_with"===r.format)return`Nevalida karaktraro: devas finiĝi per "${r.suffix}"`;if("includes"===r.format)return`Nevalida karaktraro: devas inkluzivi "${r.includes}"`;if("regex"===r.format)return`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`;return`Nevalida ${t[r.format]??r.format}`;case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} ŝlosilo${r.keys.length>1?"j":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${r.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`}}};function ic(){return{localeError:iu()}}let id=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={regex:"entrada",email:"direcci\xf3n de correo electr\xf3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xf3n ISO",ipv4:"direcci\xf3n IPv4",ipv6:"direcci\xf3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xfamero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",string:"texto",number:"n\xfamero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xfamero grande",symbol
43:"s\xedmbolo",undefined:"indefinido",null:"nulo",function:"funci\xf3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xf3n",union:"uni\xf3n",literal:"literal",promise:"promesa",void:"vac\xedo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Entrada inv\xe1lida: se esperaba instanceof ${r.expected}, recibido ${i}`;return`Entrada inv\xe1lida: se esperaba ${e}, recibido ${i}`}case"invalid_value":if(1===r.values.length)return`Entrada inv\xe1lida: se esperaba ${ei(r.values[0])}`;return`Opci\xf3n inv\xe1lida: se esperaba una de ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${t}${r.maximum.toString()} ${i.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${a??"valor"} fuera ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`Demasiado peque\xf1o: se esperaba que ${a} tuviera ${t}${r.minimum.toString()} ${i.unit}`;return`Demasiado peque\xf1o: se esperaba que ${a} fuera ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cadena inv\xe1lida: debe comenzar con "${r.prefix}"`;if("ends_with"===r.format)return`Cadena inv\xe1lida: debe terminar en "${r.suffix}"`;if("includes"===r.format)return`Cadena inv\xe1lida: debe incluir "${r.includes}"`;if("regex"===r.format)return`Cadena inv\xe1lida: debe coincidir con el patr\xf3n ${r.pattern}`;return`Inv\xe1lido ${t[r.format]??r.format}`;case"not_multiple_of":return`N\xfamero inv\xe1lido: debe ser m\xfaltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Llave inv\xe1lida en ${n[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xe1lida";case"invalid_element":return`Valor inv\xe1lido en ${n[r.origin]??r.origin}`;default:return`Entrada inv\xe1lida`}}};function ip(){return{localeError:id()}}let ih=()=>{let e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}},t={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},n={nan:"NaN",number:"عدد",array:"آرایه"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ورودی نامعتبر: می‌بایست instanceof ${r.expected} می‌بود، ${i} دریافت شد`;return`ورودی نامعتبر: می‌بایست ${e} می‌بود، ${i} دریافت شد`}case"invalid_value":if(1===r.values.length)return`ورودی نامعتبر: می‌بایست ${ei(r.values[0])} می‌بود`;return`گزینه نامعتبر: می‌بایست یکی از ${w(r.values,"|")} می‌بود`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`خیلی بزرگ: ${r.origin??"مقدار"} باید ${t}${r.maximum.toString()} ${n.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${r.origin??"مقدار"} باید ${t}${r.maximum.toString()} باشد`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`خیلی کوچک: ${r.origin} باید ${t}${r.minimum.toString()} ${n.unit} باشد`;return`خیلی کوچک: ${r.origin} باید ${t}${r.minimum.toString()} باشد`}
43case"invalid_format":if("starts_with"===r.format)return`رشته نامعتبر: باید با "${r.prefix}" شروع شود`;if("ends_with"===r.format)return`رشته نامعتبر: باید با "${r.suffix}" تمام شود`;if("includes"===r.format)return`رشته نامعتبر: باید شامل "${r.includes}" باشد`;if("regex"===r.format)return`رشته نامعتبر: باید با الگوی ${r.pattern} مطابقت داشته باشد`;return`${t[r.format]??r.format} نامعتبر`;case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case"unrecognized_keys":return`کلید${r.keys.length>1?"های":""} ناشناس: ${w(r.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${r.origin}`;case"invalid_union":default:return`ورودی نامعتبر`;case"invalid_element":return`مقدار نامعتبر در ${r.origin}`}}};function im(){return{localeError:ih()}}let ig=()=>{let e={string:{unit:"merkki\xe4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xe4iv\xe4m\xe4\xe4r\xe4n"}},t={regex:"s\xe4\xe4nn\xf6llinen lauseke",email:"s\xe4hk\xf6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xe4iv\xe4m\xe4\xe4r\xe4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${i}`;return`Virheellinen tyyppi: odotettiin ${e}, oli ${i}`}case"invalid_value":if(1===r.values.length)return`Virheellinen sy\xf6te: t\xe4ytyy olla ${ei(r.values[0])}`;return`Virheellinen valinta: t\xe4ytyy olla yksi seuraavista: ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Liian suuri: ${n.subject} t\xe4ytyy olla ${t}${r.maximum.toString()} ${n.unit}`.trim();return`Liian suuri: arvon t\xe4ytyy olla ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Liian pieni: ${n.subject} t\xe4ytyy olla ${t}${r.minimum.toString()} ${n.unit}`.trim();return`Liian pieni: arvon t\xe4ytyy olla ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy alkaa "${r.prefix}"`;if("ends_with"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy loppua "${r.suffix}"`;if("includes"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy sis\xe4lt\xe4\xe4 "${r.includes}"`;if("regex"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy vastata s\xe4\xe4nn\xf6llist\xe4 lauseketta ${r.pattern}`;return`Virheellinen ${t[r.format]??r.format}`;case"not_multiple_of":return`Virheellinen luku: t\xe4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return`Virheellinen sy\xf6te`}}};function iv(){return{localeError:ig()}}let iy=()=>{let e={string:{unit:"caract\xe8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xe9l\xe9ments",verb:"avoir"},set:{unit:"\xe9l\xe9ments",verb:"avoir"}},t={regex:"entr\xe9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xe9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xeene encod\xe9e en base64",base64url:"cha\xeene encod\xe9e en base64url",json_string:"cha\xeene JSON",e164:"num\xe9ro E.164",jwt:"JWT",template_literal:"entr\xe9e"},n={nan:"NaN",number:"nombre",array:"tableau"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Entr\xe9e invalide : instanceof ${r.expected} attendu, ${i} re\xe7u`;return`Entr\xe9e invalide : ${e} attendu, ${i} re\xe7u`}case"invalid_value":if(1===r.values.length)return`Entr\xe9e invalide : ${ei(r.values[0])} attendu`;return`Option invalide : une valeur parmi ${w(r.values,"|")} attendue`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Trop grand : ${r.origin??"valeur"} doit ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"\xe9l\xe9ment(s)"}`;return`Trop grand : ${r.origin??"valeur"} doit \xeatre ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Trop petit : ${r.origin} doit ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Trop petit : ${r.origin} doit \xeatre ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cha\xeene invalide : doit commencer par "${r.prefix}"`;if("ends_with"===r.format)return`Cha\xeene invalide : doit se terminer par "${r.suffix}"`;if("includes"===r.format)return`Cha\xeene invalide : doit inclure "${r.includes}"`;if("regex"===r.format)return`Cha\xeene invalide : doit correspondre au mod\xe8le ${r.pattern}`;return`${t[r.format]??r.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xe9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${w(r.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xe9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return`Entr\xe9e invalide`}}};function i_(){return{localeError:iy()}}let ib=()=>{let e={string:{unit:"caract\xe8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xe9l\xe9ments",verb:"avoir"},set:{unit:"\xe9l\xe9ments",verb:"avoir"}},t={regex:"entr\xe9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xe9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xeene encod\xe9e en base64",base64url:"cha\xeene encod\xe9e en base64url",json_string:"cha\xeene JSON",e164:"num\xe9ro E.164",jwt:"JWT",template_literal:"entr\xe9e"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Entr\xe9e invalide : attendu instanceof ${r.expected}, re\xe7u ${i}`;return`Entr\xe9e invalide : attendu ${e}, re\xe7u ${i}`}case"invalid_value":if(1===r.values.length)return`Entr\xe9e invalide : attendu ${ei(r.values[0])}`;
43return`Option invalide : attendu l'une des valeurs suivantes ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"≤":"<",n=e[r.origin]??null;if(n)return`Trop grand : attendu que ${r.origin??"la valeur"} ait ${t}${r.maximum.toString()} ${n.unit}`;return`Trop grand : attendu que ${r.origin??"la valeur"} soit ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"≥":">",n=e[r.origin]??null;if(n)return`Trop petit : attendu que ${r.origin} ait ${t}${r.minimum.toString()} ${n.unit}`;return`Trop petit : attendu que ${r.origin} soit ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cha\xeene invalide : doit commencer par "${r.prefix}"`;if("ends_with"===r.format)return`Cha\xeene invalide : doit se terminer par "${r.suffix}"`;if("includes"===r.format)return`Cha\xeene invalide : doit inclure "${r.includes}"`;if("regex"===r.format)return`Cha\xeene invalide : doit correspondre au motif ${r.pattern}`;return`${t[r.format]??r.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xe9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${w(r.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xe9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return`Entr\xe9e invalide`}}};function ik(){return{localeError:ib()}}let iE=()=>{let e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>{let t=n(e);return"f"===(t?.gender??"m")?"צריכה להיות":"צריך להיות"},o=e=>e?t[e]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},l={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=t.expected,i=l[n??""]??r(n),a=ek(t.input),o=l[a]??e[a]?.label??a;
43if(/^[A-Z]/.test(t.expected))return`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`;return`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case"invalid_value":{if(1===t.values.length)return`ערך לא תקין: הערך חייב להיות ${ei(t.values[0])}`;let e=t.values.map(e=>ei(e));if(2===t.values.length)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1],r=e.slice(0,-1).join(", ");return`ערך לא תקין: האפשרויות המתאימות הן ${r} או ${n}`}case"too_big":{let e=o(t.origin),n=i(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"ארוך"} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"או פחות":"לכל היותר"}`.trim();if("number"===t.origin){let e=t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`;return`גדול מדי: ${n} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let r="set"===t.origin?"צריכה":"צריך",i=t.inclusive?`${t.maximum} ${e?.unit??""} או פחות`:`פחות מ-${t.maximum} ${e?.unit??""}`;return`גדול מדי: ${n} ${r} להכיל ${i}`.trim()}let r=t.inclusive?"<=":"<",s=a(t.origin??"value");if(e?.unit)return`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`;return`${e?.longLabel??"גדול"} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case"too_small":{let e=o(t.origin),n=i(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"או יותר":"לפחות"}`.trim();if("number"===t.origin){let e=t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`;return`קטן מדי: ${n} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let r="set"===t.origin?"צריכה":"צריך";if(1===t.minimum&&t.inclusive){let e=(t.origin,"לפחות פריט אחד");return`קטן מדי: ${n} ${r} להכיל ${e}`}let i=t.inclusive?`${t.minimum} ${e?.unit??""} או יותר`:`יותר מ-${t.minimum} ${e?.unit??""}`;return`קטן מדי: ${n} ${r} להכיל ${i}`.trim()}let r=t.inclusive?">=":">",s=a(t.origin??"value");if(e?.unit)return`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`;return`${e?.shortLabel??"קטן"} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case"invalid_format":{if("starts_with"===t.format)return`המחרוזת חייבת להתחיל ב "${t.prefix}"`;if("ends_with"===t.format)return`המחרוזת חייבת להסתיים ב "${t.suffix}"`;if("includes"===t.format)return`המחרוזת חייבת לכלול "${t.includes}"`;if("regex"===t.format)return`המחרוזת חייבת להתאים לתבנית ${t.pattern}`;let e=s[t.format],n=e?.label??t.format,r=e?.gender??"m";return`${n} לא ${"f"===r?"תקינה":"תקין"}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${w(t.keys,", ")}`;case"invalid_key":return`שדה לא תקין באובייקט`;case"invalid_union":return"קלט לא תקין";case"invalid_element":{let e=i(t.origin??"array");return`ערך לא תקין ב${e}`}default:return`קלט לא תקין`}}};function iT(){return{localeError:iE()}}let ix=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}},t={regex:"bemenet",email:"email c\xedm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időb\xe9lyeg",date:"ISO d\xe1tum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 c\xedm",ipv6:"IPv6 c\xedm",cidrv4:"IPv4 tartom\xe1ny",cidrv6:"IPv6 tartom\xe1ny",base64:"base64-k\xf3dolt string",base64url:"base64url-k\xf3dolt string",json_string:"JSON string",e164:"E.164 sz\xe1m",jwt:"JWT",template_literal:"bemenet"},n={nan:"NaN",number:"sz\xe1m",array:"t\xf6mb"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k instanceof ${r.expected}, a kapott \xe9rt\xe9k ${i}`;return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${e}, a kapott \xe9rt\xe9k ${i}`}case"invalid_value":if(1===r.values.length)return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${ei(r.values[0])}`;return`\xc9rv\xe9nytelen opci\xf3: valamelyik \xe9rt\xe9k v\xe1rt ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`T\xfal nagy: ${r.origin??"\xe9rt\xe9k"} m\xe9rete t\xfal nagy ${t}${r.maximum.toString()} ${n.unit??"elem"}`;return`T\xfal nagy: a bemeneti \xe9rt\xe9k ${r.origin??"\xe9rt\xe9k"} t\xfal nagy: ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${r.origin} m\xe9rete t\xfal kicsi ${t}${r.minimum.toString()} ${n.unit}`;return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${r.origin} t\xfal kicsi ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`\xc9rv\xe9nytelen string: "${r.prefix}" \xe9rt\xe9kkel kell kezdődnie`;if("ends_with"===r.format)return`\xc9rv\xe9nytelen string: "${r.suffix}" \xe9rt\xe9kkel kell v\xe9gződnie`;if("includes"===r.format)return`\xc9rv\xe9nytelen string: "${r.includes}" \xe9rt\xe9ket kell tartalmaznia`;if("regex"===r.format)return`\xc9rv\xe9nytelen string: ${r.pattern} mint\xe1nak kell megfelelnie`;return`\xc9rv\xe9nytelen ${t[r.format]??r.format}`;case"not_multiple_of":return`\xc9rv\xe9nytelen sz\xe1m: ${r.divisor} t\xf6bbsz\xf6r\xf6s\xe9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`\xc9rv\xe9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xc9rv\xe9nytelen bemenet";case"invalid_element":return`\xc9rv\xe9nytelen \xe9rt\xe9k: ${r.origin}`;default:return`\xc9rv\xe9nytelen bemenet`}}};function iA(){return{localeError:ix()}}function iS(e,t,n){return 1===Math.abs(e)?t:n}function iI(e){if(!e)return"";let t=e[e.length-1];return e+(["ա","ե","ը","ի","ո","ու","օ"].includes(t)?"ն":"ը")}let iw=()=>{let e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}},t={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},n={nan:"NaN",number:"թիվ",array:"զանգված"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${r.expected}, ստացվել է ${i}`;return`Սխալ մուտքագրում․ սպասվում էր ${e}, ստացվել է ${i}`}case"invalid_value":if(1===r.values.length)return`Սխալ մուտքագրում․ սպասվում էր ${ei(r.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=iS(Number(r.maximum),n.unit.one,n.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${iI(r.origin??"արժեք")} կունենա ${t}${r.maximum.toString()} ${e}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${iI(r.origin??"արժեք")} լինի ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=iS(Number(r.minimum),n.unit.one,n.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${iI(r.origin)} կունենա ${t}${r.minimum.toString()} ${e}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${iI(r.origin)} լինի ${t}${r.minimum.toString()}`}
43case"invalid_format":if("starts_with"===r.format)return`Սխալ տող․ պետք է սկսվի "${r.prefix}"-ով`;if("ends_with"===r.format)return`Սխալ տող․ պետք է ավարտվի "${r.suffix}"-ով`;if("includes"===r.format)return`Սխալ տող․ պետք է պարունակի "${r.includes}"`;if("regex"===r.format)return`Սխալ տող․ պետք է համապատասխանի ${r.pattern} ձևաչափին`;return`Սխալ ${t[r.format]??r.format}`;case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${r.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${r.keys.length>1?"ներ":""}. ${w(r.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${iI(r.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${iI(r.origin)}-ում`;default:return`Սխալ մուտքագրում`}}};function iN(){return{localeError:iw()}}let iO=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}},t={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${i}`;return`Input tidak valid: diharapkan ${e}, diterima ${i}`}case"invalid_value":if(1===r.values.length)return`Input tidak valid: diharapkan ${ei(r.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${t}${r.maximum.toString()} ${n.unit??"elemen"}`;return`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Terlalu kecil: diharapkan ${r.origin} memiliki ${t}${r.minimum.toString()} ${n.unit}`;return`Terlalu kecil: diharapkan ${r.origin} menjadi ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`String tidak valid: harus dimulai dengan "${r.prefix}"`;if("ends_with"===r.format)return`String tidak valid: harus berakhir dengan "${r.suffix}"`;if("includes"===r.format)return`String tidak valid: harus menyertakan "${r.includes}"`;if("regex"===r.format)return`String tidak valid: harus sesuai pola ${r.pattern}`;return`${t[r.format]??r.format} tidak valid`;case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`}}};function iC(){return{localeError:iO()}}let iD=()=>{let e={string:{unit:"stafi",verb:"a\xf0 hafa"},file:{unit:"b\xe6ti",verb:"a\xf0 hafa"},array:{unit:"hluti",verb:"a\xf0 hafa"},set:{unit:"hluti",verb:"a\xf0 hafa"}},t={regex:"gildi",email:"netfang",url:"vefsl\xf3\xf0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xedmi",date:"ISO dagsetning",time:"ISO t\xedmi",duration:"ISO t\xedmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xf6lugildi",jwt:"JWT",template_literal:"gildi"},n={nan:"NaN",number:"n\xfamer",array:"fylki"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Rangt gildi: \xde\xfa sl\xf3st inn ${i} \xfear sem \xe1 a\xf0 vera instanceof ${r.expected}`;return`Rangt gildi: \xde\xfa sl\xf3st inn ${i} \xfear sem \xe1 a\xf0 vera ${e}`}case"invalid_value":if(1===r.values.length)return`Rangt gildi: gert r\xe1\xf0 fyrir ${ei(r.values[0])}`;return`\xd3gilt val: m\xe1 vera eitt af eftirfarandi ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin??"gildi"} hafi ${t}${r.maximum.toString()} ${n.unit??"hluti"}`;return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin??"gildi"} s\xe9 ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin} hafi ${t}${r.minimum.toString()} ${n.unit}`;return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin} s\xe9 ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 byrja \xe1 "${r.prefix}"`;if("ends_with"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 enda \xe1 "${r.suffix}"`;if("includes"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 innihalda "${r.includes}"`;if("regex"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 fylgja mynstri ${r.pattern}`;return`Rangt ${t[r.format]??r.format}`;case"not_multiple_of":return`R\xf6ng tala: ver\xf0ur a\xf0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xd3\xfeekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${w(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xed ${r.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi \xed ${r.origin}`}}};function i$(){return{localeError:iD()}}let iR=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}},t={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Input non valido: atteso instanceof ${r.expected}, ricevuto ${i}`;return`Input non valido: atteso ${e}, ricevuto ${i}`}case"invalid_value":if(1===r.values.length)return`Input non valido: atteso ${ei(r.values[0])}`;return`Opzione non valida: atteso uno tra ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Troppo grande: ${r.origin??"valore"} deve avere ${t}${r.maximum.toString()} ${n.unit??"elementi"}`;return`Troppo grande: ${r.origin??"valore"} deve essere ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Troppo piccolo: ${r.origin} deve avere ${t}${r.minimum.toString()} ${n.unit}`;return`Troppo piccolo: ${r.origin} deve essere ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Stringa non valida: deve iniziare con "${r.prefix}"`;if("ends_with"===r.format)return`Stringa non valida: deve terminare con "${r.suffix}"`;if("includes"===r.format)return`Stringa non valida: deve includere "${r.includes}"`;if("regex"===r.format)return`Stringa non valida: deve corrispondere al pattern ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${w(r.keys,", ")}`;
43case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`}}};function iP(){return{localeError:iR()}}let iL=()=>{let e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}},t={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},n={nan:"NaN",number:"数値",array:"配列"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`無効な入力: instanceof ${r.expected}が期待されましたが、${i}が入力されました`;return`無効な入力: ${e}が期待されましたが、${i}が入力されました`}case"invalid_value":if(1===r.values.length)return`無効な入力: ${ei(r.values[0])}が期待されました`;return`無効な選択: ${w(r.values,"、")}のいずれかである必要があります`;case"too_big":{let t=r.inclusive?"以下である":"より小さい",n=e[r.origin]??null;if(n)return`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${n.unit??"要素"}${t}必要があります`;return`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${t}必要があります`}case"too_small":{let t=r.inclusive?"以上である":"より大きい",n=e[r.origin]??null;if(n)return`小さすぎる値: ${r.origin}は${r.minimum.toString()}${n.unit}${t}必要があります`;return`小さすぎる値: ${r.origin}は${r.minimum.toString()}${t}必要があります`}case"invalid_format":if("starts_with"===r.format)return`無効な文字列: "${r.prefix}"で始まる必要があります`;if("ends_with"===r.format)return`無効な文字列: "${r.suffix}"で終わる必要があります`;if("includes"===r.format)return`無効な文字列: "${r.includes}"を含む必要があります`;if("regex"===r.format)return`無効な文字列: パターン${r.pattern}に一致する必要があります`;return`無効な${t[r.format]??r.format}`;case"not_multiple_of":return`無効な数値: ${r.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${r.keys.length>1?"群":""}: ${w(r.keys,"、")}`;case"invalid_key":return`${r.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${r.origin}内の無効な値`;default:return`無効な入力`}}};function iM(){return{localeError:iL()}}let iU=()=>{let e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}},t={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},n={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${r.expected}, მიღებული ${i}`;return`არასწორი შეყვანა: მოსალოდნელი ${e}, მიღებული ${i}`}case"invalid_value":if(1===r.values.length)return`არასწორი შეყვანა: მოსალოდნელი ${ei(r.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${w(r.values,"|")}-დან`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ზედმეტად დიდი: მოსალოდნელი ${r.origin??"მნიშვნელობა"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${r.origin??"მნიშვნელობა"} იყოს ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ზედმეტად პატარა: მოსალოდნელი ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${r.origin} იყოს ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`არასწორი სტრინგი: უნდა იწყებოდეს "${r.prefix}"-ით`;if("ends_with"===r.format)return`არასწორი სტრინგი: უნდა მთავრდებოდეს "${r.suffix}"-ით`;if("includes"===r.format)return`არასწორი სტრინგი: უნდა შეიცავდეს "${r.includes}"-ს`;if("regex"===r.format)return`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${r.pattern}`;return`არასწორი ${t[r.format]??r.format}`;case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${r.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${r.keys.length>1?"ები":"ი"}: ${w(r.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${r.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${r.origin}-ში`;default:return`არასწორი შეყვანა`}}};function iz(){return{localeError:iU()}}let iF=()=>{let e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}},t={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},n={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${r.expected} ប៉ុន្តែទទួលបាន ${i}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${e} ប៉ុន្តែទទួលបាន ${i}`}case"invalid_value":if(1===r.values.length)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${ei(r.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${t} ${r.maximum.toString()} ${n.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`តូចពេក៖ ត្រូវការ ${r.origin} ${t} ${r.minimum.toString()} ${n.unit}`;return`តូចពេក៖ ត្រូវការ ${r.origin} ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${r.prefix}"`;if("ends_with"===r.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${r.suffix}"`;if("includes"===r.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${r.includes}"`;if("regex"===r.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${r.pattern}`;return`មិនត្រឹមត្រូវ៖ ${t[r.format]??r.format}`;case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${w(r.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;case"invalid_union":default:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`}}};function ij(){return{localeError:iF()}}function iB(){return ij()}let iH=()=>{let e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}},t={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`잘못된 입력: 예상 타입은 instanceof ${r.expected}, 받은 타입은 ${i}입니다`;return`잘못된 입력: 예상 타입은 ${e}, 받은 타입은 ${i}입니다`}case"invalid_value":if(1===r.values.length)return`잘못된 입력: 값은 ${ei(r.values[0])} 이어야 합니다`;return`잘못된 옵션: ${w(r.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let t=r.inclusive?"이하":"미만",n="미만"===t?"이어야 합니다":"여야 합니다",i=e[r.origin]??null,a=i?.unit??"요소";if(i)return`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()}${a} ${t}${n}`;return`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()} ${t}${n}`}case"too_small":{let t=r.inclusive?"이상":"초과",n="이상"===t?"이어야 합니다":"여야 합니다",i=e[r.origin]??null,a=i?.unit??"요소";if(i)return`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()}${a} ${t}${n}`;return`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()} ${t}${n}`}
43case"invalid_format":if("starts_with"===r.format)return`잘못된 문자열: "${r.prefix}"(으)로 시작해야 합니다`;if("ends_with"===r.format)return`잘못된 문자열: "${r.suffix}"(으)로 끝나야 합니다`;if("includes"===r.format)return`잘못된 문자열: "${r.includes}"을(를) 포함해야 합니다`;if("regex"===r.format)return`잘못된 문자열: 정규식 ${r.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${t[r.format]??r.format}`;case"not_multiple_of":return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${w(r.keys,", ")}`;case"invalid_key":return`잘못된 키: ${r.origin}`;case"invalid_union":default:return`잘못된 입력`;case"invalid_element":return`잘못된 값: ${r.origin}`}}};function iZ(){return{localeError:iH()}}let iG=e=>e.charAt(0).toUpperCase()+e.slice(1);function iq(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||0===n?"many":1===n?"one":"few"}let iK=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(t,n,r,i){let a=e[t]??null;return null===a?a:{unit:a.unit[n],verb:a.verb[i][r?"inclusive":"notInclusive"]}}let n={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},r={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return e=>{switch(e.code){case"invalid_type":{let t=r[e.expected]??e.expected,n=ek(e.input),i=r[n]??n;if(/^[A-Z]/.test(e.expected))return`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`;return`Gautas tipas ${i}, o tikėtasi - ${t}`}case"invalid_value":if(1===e.values.length)return`Privalo būti ${ei(e.values[0])}`;return`Privalo būti vienas iš ${w(e.values,"|")} pasirinkimų`;case"too_big":{let n=r[e.origin]??e.origin,i=t(e.origin,iq(Number(e.maximum)),e.inclusive??!1,"smaller");if(i?.verb)return`${iG(n??e.origin??"reikšmė")} ${i.verb} ${e.maximum.toString()} ${i.unit??"elementų"}`;let a=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${iG(n??e.origin??"reikšmė")} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case"too_small":{let n=r[e.origin]??e.origin,i=t(e.origin,iq(Number(e.minimum)),e.inclusive??!1,"bigger");if(i?.verb)return`${iG(n??e.origin??"reikšmė")} ${i.verb} ${e.minimum.toString()} ${i.unit??"elementų"}`;let a=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${iG(n??e.origin??"reikšmė")} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case"invalid_format":if("starts_with"===e.format)return`Eilutė privalo prasidėti "${e.prefix}"`;if("ends_with"===e.format)return`Eilutė privalo pasibaigti "${e.suffix}"`;if("includes"===e.format)return`Eilutė privalo įtraukti "${e.includes}"`;if("regex"===e.format)return`Eilutė privalo atitikti ${e.pattern}`;return`Neteisingas ${n[e.format]??e.format}`;case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${w(e.keys,", ")}`;
43case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{let t=r[e.origin]??e.origin;return`${iG(t??e.origin??"reikšmė")} turi klaidingą įvestį`}}}};function iV(){return{localeError:iK()}}let iW=()=>{let e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}},t={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},n={nan:"NaN",number:"број",array:"низа"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Грешен внес: се очекува instanceof ${r.expected}, примено ${i}`;return`Грешен внес: се очекува ${e}, примено ${i}`}case"invalid_value":if(1===r.values.length)return`Invalid input: expected ${ei(r.values[0])}`;return`Грешана опција: се очекува една ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Премногу голем: се очекува ${r.origin??"вредноста"} да има ${t}${r.maximum.toString()} ${n.unit??"елементи"}`;return`Премногу голем: се очекува ${r.origin??"вредноста"} да биде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Премногу мал: се очекува ${r.origin} да има ${t}${r.minimum.toString()} ${n.unit}`;return`Премногу мал: се очекува ${r.origin} да биде ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Неважечка низа: мора да започнува со "${r.prefix}"`;if("ends_with"===r.format)return`Неважечка низа: мора да завршува со "${r.suffix}"`;if("includes"===r.format)return`Неважечка низа: мора да вклучува "${r.includes}"`;if("regex"===r.format)return`Неважечка низа: мора да одгоара на патернот ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`Грешен број: мора да биде делив со ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${w(r.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${r.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${r.origin}`;default:return`Грешен внес`}}};function iY(){return{localeError:iW()}}let iJ=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}},t={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"nombor"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${i}`;return`Input tidak sah: dijangka ${e}, diterima ${i}`}case"invalid_value":if(1===r.values.length)return`Input tidak sah: dijangka ${ei(r.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Terlalu besar: dijangka ${r.origin??"nilai"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"elemen"}`;return`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Terlalu kecil: dijangka ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Terlalu kecil: dijangka ${r.origin} adalah ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`String tidak sah: mesti bermula dengan "${r.prefix}"`;if("ends_with"===r.format)return`String tidak sah: mesti berakhir dengan "${r.suffix}"`;if("includes"===r.format)return`String tidak sah: mesti mengandungi "${r.includes}"`;if("regex"===r.format)return`String tidak sah: mesti sepadan dengan corak ${r.pattern}`;return`${t[r.format]??r.format} tidak sah`;case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`}}};function iX(){return{localeError:iJ()}}let iQ=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}},t={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},n={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${i}`;return`Ongeldige invoer: verwacht ${e}, ontving ${i}`}case"invalid_value":if(1===r.values.length)return`Ongeldige invoer: verwacht ${ei(r.values[0])}`;return`Ongeldige optie: verwacht \xe9\xe9n van ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null,i="date"===r.origin?"laat":"string"===r.origin?"lang":"groot";if(n)return`Te ${i}: verwacht dat ${r.origin??"waarde"} ${t}${r.maximum.toString()} ${n.unit??"elementen"} ${n.verb}`;return`Te ${i}: verwacht dat ${r.origin??"waarde"} ${t}${r.maximum.toString()} is`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null,i="date"===r.origin?"vroeg":"string"===r.origin?"kort":"klein";if(n)return`Te ${i}: verwacht dat ${r.origin} ${t}${r.minimum.toString()} ${n.unit} ${n.verb}`;return`Te ${i}: verwacht dat ${r.origin} ${t}${r.minimum.toString()} is`}case"invalid_format":if("starts_with"===r.format)return`Ongeldige tekst: moet met "${r.prefix}" beginnen`;if("ends_with"===r.format)return`Ongeldige tekst: moet op "${r.suffix}" eindigen`;if("includes"===r.format)return`Ongeldige tekst: moet "${r.includes}" bevatten`;if("regex"===r.format)return`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`;return`Ongeldig: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":default:return"Ongeldige invoer";
43case"invalid_element":return`Ongeldige waarde in ${r.origin}`}}};function i0(){return{localeError:iQ()}}let i1=()=>{let e={string:{unit:"tegn",verb:"\xe5 ha"},file:{unit:"bytes",verb:"\xe5 ha"},array:{unit:"elementer",verb:"\xe5 inneholde"},set:{unit:"elementer",verb:"\xe5 inneholde"}},t={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xe5de",ipv6:"IPv6-omr\xe5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ugyldig input: forventet instanceof ${r.expected}, fikk ${i}`;return`Ugyldig input: forventet ${e}, fikk ${i}`}case"invalid_value":if(1===r.values.length)return`Ugyldig verdi: forventet ${ei(r.values[0])}`;return`Ugyldig valg: forventet en av ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`For stor(t): forventet ${r.origin??"value"} til \xe5 ha ${t}${r.maximum.toString()} ${n.unit??"elementer"}`;return`For stor(t): forventet ${r.origin??"value"} til \xe5 ha ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`For lite(n): forventet ${r.origin} til \xe5 ha ${t}${r.minimum.toString()} ${n.unit}`;return`For lite(n): forventet ${r.origin} til \xe5 ha ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ugyldig streng: m\xe5 starte med "${r.prefix}"`;if("ends_with"===r.format)return`Ugyldig streng: m\xe5 ende med "${r.suffix}"`;if("includes"===r.format)return`Ugyldig streng: m\xe5 inneholde "${r.includes}"`;if("regex"===r.format)return`Ugyldig streng: m\xe5 matche m\xf8nsteret ${r.pattern}`;return`Ugyldig ${t[r.format]??r.format}`;case"not_multiple_of":return`Ugyldig tall: m\xe5 v\xe6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xf8kler":"Ukjent n\xf8kkel"}: ${w(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8kkel i ${r.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`}}};function i2(){return{localeError:i1()}}let i4=()=>{let e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}},t={regex:"giren",email:"epostag\xe2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xe2mı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO m\xfcddeti",ipv4:"IPv4 niş\xe2nı",ipv6:"IPv6 niş\xe2nı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`F\xe2sit giren: umulan instanceof ${r.expected}, alınan ${i}`;return`F\xe2sit giren: umulan ${e}, alınan ${i}`}case"invalid_value":if(1===r.values.length)return`F\xe2sit giren: umulan ${ei(r.values[0])}`;return`F\xe2sit tercih: m\xfbteberler ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Fazla b\xfcy\xfck: ${r.origin??"value"}, ${t}${r.maximum.toString()} ${n.unit??"elements"} sahip olmalıydı.`;return`Fazla b\xfcy\xfck: ${r.origin??"value"}, ${t}${r.maximum.toString()} olmalıydı.`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Fazla k\xfc\xe7\xfck: ${r.origin}, ${t}${r.minimum.toString()} ${n.unit} sahip olmalıydı.`;return`Fazla k\xfc\xe7\xfck: ${r.origin}, ${t}${r.minimum.toString()} olmalıydı.`}
43case"invalid_format":if("starts_with"===r.format)return`F\xe2sit metin: "${r.prefix}" ile başlamalı.`;if("ends_with"===r.format)return`F\xe2sit metin: "${r.suffix}" ile bitmeli.`;if("includes"===r.format)return`F\xe2sit metin: "${r.includes}" ihtiv\xe2 etmeli.`;if("regex"===r.format)return`F\xe2sit metin: ${r.pattern} nakşına uymalı.`;return`F\xe2sit ${t[r.format]??r.format}`;case"not_multiple_of":return`F\xe2sit sayı: ${r.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xe7in tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${r.origin} i\xe7in tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}};function i6(){return{localeError:i4()}}let i3=()=>{let e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}},t={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},n={nan:"NaN",number:"عدد",array:"ارې"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ناسم ورودي: باید instanceof ${r.expected} وای, مګر ${i} ترلاسه شو`;return`ناسم ورودي: باید ${e} وای, مګر ${i} ترلاسه شو`}case"invalid_value":if(1===r.values.length)return`ناسم ورودي: باید ${ei(r.values[0])} وای`;return`ناسم انتخاب: باید یو له ${w(r.values,"|")} څخه وای`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ډیر لوی: ${r.origin??"ارزښت"} باید ${t}${r.maximum.toString()} ${n.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${r.origin??"ارزښت"} باید ${t}${r.maximum.toString()} وي`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ډیر کوچنی: ${r.origin} باید ${t}${r.minimum.toString()} ${n.unit} ولري`;return`ډیر کوچنی: ${r.origin} باید ${t}${r.minimum.toString()} وي`}case"invalid_format":if("starts_with"===r.format)return`ناسم متن: باید د "${r.prefix}" سره پیل شي`;if("ends_with"===r.format)return`ناسم متن: باید د "${r.suffix}" سره پای ته ورسيږي`;if("includes"===r.format)return`ناسم متن: باید "${r.includes}" ولري`;if("regex"===r.format)return`ناسم متن: باید د ${r.pattern} سره مطابقت ولري`;return`${t[r.format]??r.format} ناسم دی`;case"not_multiple_of":return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${r.keys.length>1?"کلیډونه":"کلیډ"}: ${w(r.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${r.origin} کې`;case"invalid_union":default:return`ناسمه ورودي`;case"invalid_element":return`ناسم عنصر په ${r.origin} کې`}}};function i5(){return{localeError:i3()}}let i9=()=>{let e={string:{unit:"znak\xf3w",verb:"mieć"},file:{unit:"bajt\xf3w",verb:"mieć"},array:{unit:"element\xf3w",verb:"mieć"},set:{unit:"element\xf3w",verb:"mieć"}},t={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znak\xf3w zakodowany w formacie base64",base64url:"ciąg znak\xf3w zakodowany w formacie base64url",json_string:"ciąg znak\xf3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},n={nan:"NaN",number:"liczba",array:"tablica"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${r.expected}, otrzymano ${i}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${e}, otrzymano ${i}`}case"invalid_value":if(1===r.values.length)return`Nieprawidłowe dane wejściowe: oczekiwano ${ei(r.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Za duża wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${t}${r.maximum.toString()} ${n.unit??"element\xf3w"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Za mała wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${t}${r.minimum.toString()} ${n.unit??"element\xf3w"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Nieprawidłowy ciąg znak\xf3w: musi zaczynać się od "${r.prefix}"`;if("ends_with"===r.format)return`Nieprawidłowy ciąg znak\xf3w: musi kończyć się na "${r.suffix}"`;if("includes"===r.format)return`Nieprawidłowy ciąg znak\xf3w: musi zawierać "${r.includes}"`;if("regex"===r.format)return`Nieprawidłowy ciąg znak\xf3w: musi odpowiadać wzorcowi ${r.pattern}`;return`Nieprawidłow(y/a/e) ${t[r.format]??r.format}`;case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${r.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${r.origin}`;default:return`Nieprawidłowe dane wejściowe`}}};function i8(){return{localeError:i9()}}let i7=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}},t={regex:"padr\xe3o",email:"endere\xe7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xe7\xe3o ISO",ipv4:"endere\xe7o IPv4",ipv6:"endere\xe7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xfamero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",number:"n\xfamero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Tipo inv\xe1lido: esperado instanceof ${r.expected}, recebido ${i}`;return`Tipo inv\xe1lido: esperado ${e}, recebido ${i}`}case"invalid_value":if(1===r.values.length)return`Entrada inv\xe1lida: esperado ${ei(r.values[0])}`;return`Op\xe7\xe3o inv\xe1lida: esperada uma das ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Muito grande: esperado que ${r.origin??"valor"} tivesse ${t}${r.maximum.toString()} ${n.unit??"elementos"}`;return`Muito grande: esperado que ${r.origin??"valor"} fosse ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Muito pequeno: esperado que ${r.origin} tivesse ${t}${r.minimum.toString()} ${n.unit}`;return`Muito pequeno: esperado que ${r.origin} fosse ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Texto inv\xe1lido: deve come\xe7ar com "${r.prefix}"`;if("ends_with"===r.format)return`Texto inv\xe1lido: deve terminar com "${r.suffix}"`;if("includes"===r.format)return`Texto inv\xe1lido: deve incluir "${r.includes}"`;if("regex"===r.format)return`Texto inv\xe1lido: deve corresponder ao padr\xe3o ${r.pattern}`;return`${t[r.format]??r.format} inv\xe1lido`;case"not_multiple_of":return`N\xfamero inv\xe1lido: deve ser m\xfaltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>
431?"s":""} desconhecida${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Chave inv\xe1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xe1lida";case"invalid_element":return`Valor inv\xe1lido em ${r.origin}`;default:return`Campo inv\xe1lido`}}};function ae(){return{localeError:i7()}}function at(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:1===a?t:a>=2&&a<=4?n:r}let an=()=>{let e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}},t={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},n={nan:"NaN",number:"число",array:"массив"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Неверный ввод: ожидалось instanceof ${r.expected}, получено ${i}`;return`Неверный ввод: ожидалось ${e}, получено ${i}`}case"invalid_value":if(1===r.values.length)return`Неверный ввод: ожидалось ${ei(r.values[0])}`;return`Неверный вариант: ожидалось одно из ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=at(Number(r.maximum),n.unit.one,n.unit.few,n.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет иметь ${t}${r.maximum.toString()} ${e}`}return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=at(Number(r.minimum),n.unit.one,n.unit.few,n.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${t}${r.minimum.toString()} ${e}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Неверная строка: должна начинаться с "${r.prefix}"`;if("ends_with"===r.format)return`Неверная строка: должна заканчиваться на "${r.suffix}"`;if("includes"===r.format)return`Неверная строка: должна содержать "${r.includes}"`;if("regex"===r.format)return`Неверная строка: должна соответствовать шаблону ${r.pattern}`;return`Неверный ${t[r.format]??r.format}`;case"not_multiple_of":return`Неверное число: должно быть кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспознанн${r.keys.length>1?"ые":"ый"} ключ${r.keys.length>1?"и":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${r.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${r.origin}`;default:return`Неверные входные данные`}}};function ar(){return{localeError:an()}}let ai=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}},t={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},n={nan:"NaN",number:"število",array:"tabela"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Neveljaven vnos: pričakovano instanceof ${r.expected}, prejeto ${i}`;return`Neveljaven vnos: pričakovano ${e}, prejeto ${i}`}case"invalid_value":if(1===r.values.length)return`Neveljaven vnos: pričakovano ${ei(r.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} imelo ${t}${r.maximum.toString()} ${n.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Premajhno: pričakovano, da bo ${r.origin} imelo ${t}${r.minimum.toString()} ${n.unit}`;return`Premajhno: pričakovano, da bo ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Neveljaven niz: mora se začeti z "${r.prefix}"`;if("ends_with"===r.format)return`Neveljaven niz: mora se končati z "${r.suffix}"`;if("includes"===r.format)return`Neveljaven niz: mora vsebovati "${r.includes}"`;if("regex"===r.format)return`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`;return`Neveljaven ${t[r.format]??r.format}`;case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i ključi":" ključ"}: ${w(r.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${r.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`}}};function aa(){return{localeError:ai()}}let ao=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xe5lla"},set:{unit:"objekt",verb:"att inneh\xe5lla"}},t={regex:"regulj\xe4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xe4ng",base64url:"base64url-kodad str\xe4ng",json_string:"JSON-str\xe4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},n={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ogiltig inmatning: f\xf6rv\xe4ntat instanceof ${r.expected}, fick ${i}`;return`Ogiltig inmatning: f\xf6rv\xe4ntat ${e}, fick ${i}`}case"invalid_value":if(1===r.values.length)return`Ogiltig inmatning: f\xf6rv\xe4ntat ${ei(r.values[0])}`;return`Ogiltigt val: f\xf6rv\xe4ntade en av ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`F\xf6r stor(t): f\xf6rv\xe4ntade ${r.origin??"v\xe4rdet"} att ha ${t}${r.maximum.toString()} ${n.unit??"element"}`;return`F\xf6r stor(t): f\xf6rv\xe4ntat ${r.origin??"v\xe4rdet"} att ha ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`F\xf6r lite(t): f\xf6rv\xe4ntade ${r.origin??"v\xe4rdet"} att ha ${t}${r.minimum.toString()} ${n.unit}`;return`F\xf6r lite(t): f\xf6rv\xe4ntade ${r.origin??"v\xe4rdet"} att ha ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ogiltig str\xe4ng: m\xe5ste b\xf6rja med "${r.prefix}"`;if("ends_with"===r.format)return`Ogiltig str\xe4ng: m\xe5ste sluta med "${r.suffix}"`;if("includes"===r.format)return`Ogiltig str\xe4ng: m\xe5ste inneh\xe5lla "${r.includes}"`;if("regex"===r.format)return`Ogiltig str\xe4ng: m\xe5ste matcha m\xf6nstret "${r.pattern}"`;return`Ogiltig(t) ${t[r.format]??r.format}`;case"not_multiple_of":return`Ogiltigt tal: m\xe5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xe4nda nycklar":"Ok\xe4nd nyckel"}: ${w(r.keys,", ")}`;
43case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xe4rdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xe4rde i ${r.origin??"v\xe4rdet"}`}}};function as(){return{localeError:ao()}}let al=()=>{let e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}},t={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${r.expected}, பெறப்பட்டது ${i}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${e}, பெறப்பட்டது ${i}`}case"invalid_value":if(1===r.values.length)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${ei(r.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${w(r.values,"|")} இல் ஒன்று`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${t}${r.maximum.toString()} ${n.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${t}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${t}${r.minimum.toString()} ${n.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${t}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":if("starts_with"===r.format)return`தவறான சரம்: "${r.prefix}" இல் தொடங்க வேண்டும்`;if("ends_with"===r.format)return`தவறான சரம்: "${r.suffix}" இல் முடிவடைய வேண்டும்`;if("includes"===r.format)return`தவறான சரம்: "${r.includes}" ஐ உள்ளடக்க வேண்டும்`;if("regex"===r.format)return`தவறான சரம்: ${r.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${t[r.format]??r.format}`;case"not_multiple_of":return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${r.keys.length>1?"கள்":""}: ${w(r.keys,", ")}`;
43case"invalid_key":return`${r.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${r.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}};function au(){return{localeError:al()}}let ac=()=>{let e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}},t={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},n={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${r.expected} แต่ได้รับ ${i}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${e} แต่ได้รับ ${i}`}case"invalid_value":if(1===r.values.length)return`ค่าไม่ถูกต้อง: ควรเป็น ${ei(r.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"ไม่เกิน":"น้อยกว่า",n=e[r.origin]??null;if(n)return`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${t} ${r.maximum.toString()} ${n.unit??"รายการ"}`;
43return`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"อย่างน้อย":"มากกว่า",n=e[r.origin]??null;if(n)return`น้อยกว่ากำหนด: ${r.origin} ควรมี${t} ${r.minimum.toString()} ${n.unit}`;return`น้อยกว่ากำหนด: ${r.origin} ควรมี${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${r.prefix}"`;if("ends_with"===r.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${r.suffix}"`;if("includes"===r.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${r.includes}" อยู่ในข้อความ`;if("regex"===r.format)return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${r.pattern}`;return`รูปแบบไม่ถูกต้อง: ${t[r.format]??r.format}`;case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${w(r.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${r.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}};function ad(){return{localeError:ac()}}let ap=()=>{let e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"\xf6ğe",verb:"olmalı"},set:{unit:"\xf6ğe",verb:"olmalı"}},t={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xfcre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ge\xe7ersiz değer: beklenen instanceof ${r.expected}, alınan ${i}`;return`Ge\xe7ersiz değer: beklenen ${e}, alınan ${i}`}case"invalid_value":if(1===r.values.length)return`Ge\xe7ersiz değer: beklenen ${ei(r.values[0])}`;return`Ge\xe7ersiz se\xe7enek: aşağıdakilerden biri olmalı: ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`\xc7ok b\xfcy\xfck: beklenen ${r.origin??"değer"} ${t}${r.maximum.toString()} ${n.unit??"\xf6ğe"}`;return`\xc7ok b\xfcy\xfck: beklenen ${r.origin??"değer"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`\xc7ok k\xfc\xe7\xfck: beklenen ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`\xc7ok k\xfc\xe7\xfck: beklenen ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ge\xe7ersiz metin: "${r.prefix}" ile başlamalı`;if("ends_with"===r.format)return`Ge\xe7ersiz metin: "${r.suffix}" ile bitmeli`;if("includes"===r.format)return`Ge\xe7ersiz metin: "${r.includes}" i\xe7ermeli`;if("regex"===r.format)return`Ge\xe7ersiz metin: ${r.pattern} desenine uymalı`;return`Ge\xe7ersiz ${t[r.format]??r.format}`;case"not_multiple_of":return`Ge\xe7ersiz sayı: ${r.divisor} ile tam b\xf6l\xfcnebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${r.keys.length>1?"lar":""}: ${w(r.keys,", ")}`;
43case"invalid_key":return`${r.origin} i\xe7inde ge\xe7ersiz anahtar`;case"invalid_union":return"Ge\xe7ersiz değer";case"invalid_element":return`${r.origin} i\xe7inde ge\xe7ersiz değer`;default:return`Ge\xe7ersiz değer`}}};function af(){return{localeError:ap()}}let ah=()=>{let e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}},t={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},n={nan:"NaN",number:"число",array:"масив"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Неправильні вхідні дані: очікується instanceof ${r.expected}, отримано ${i}`;return`Неправильні вхідні дані: очікується ${e}, отримано ${i}`}case"invalid_value":if(1===r.values.length)return`Неправильні вхідні дані: очікується ${ei(r.values[0])}`;return`Неправильна опція: очікується одне з ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Занадто велике: очікується, що ${r.origin??"значення"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"елементів"}`;return`Занадто велике: очікується, що ${r.origin??"значення"} буде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Занадто мале: очікується, що ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Занадто мале: очікується, що ${r.origin} буде ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Неправильний рядок: повинен починатися з "${r.prefix}"`;if("ends_with"===r.format)return`Неправильний рядок: повинен закінчуватися на "${r.suffix}"`;if("includes"===r.format)return`Неправильний рядок: повинен містити "${r.includes}"`;if("regex"===r.format)return`Неправильний рядок: повинен відповідати шаблону ${r.pattern}`;return`Неправильний ${t[r.format]??r.format}`;case"not_multiple_of":return`Неправильне число: повинно бути кратним ${r.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${r.keys.length>1?"і":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${r.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${r.origin}`;default:return`Неправильні вхідні дані`}}};function am(){return{localeError:ah()}}function ag(){return am()}let av=()=>{let e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}},t={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},n={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`غلط ان پٹ: instanceof ${r.expected} متوقع تھا، ${i} موصول ہوا`;return`غلط ان پٹ: ${e} متوقع تھا، ${i} موصول ہوا`}case"invalid_value":if(1===r.values.length)return`غلط ان پٹ: ${ei(r.values[0])} متوقع تھا`;return`غلط آپشن: ${w(r.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`بہت بڑا: ${r.origin??"ویلیو"} کے ${t}${r.maximum.toString()} ${n.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${r.origin??"ویلیو"} کا ${t}${r.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`بہت چھوٹا: ${r.origin} کے ${t}${r.minimum.toString()} ${n.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${r.origin} کا ${t}${r.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":if("starts_with"===r.format)return`غلط سٹرنگ: "${r.prefix}" سے شروع ہونا چاہیے`;if("ends_with"===r.format)return`غلط سٹرنگ: "${r.suffix}" پر ختم ہونا چاہیے`;if("includes"===r.format)return`غلط سٹرنگ: "${r.includes}" شامل ہونا چاہیے`;if("regex"===r.format)return`غلط سٹرنگ: پیٹرن ${r.pattern} سے میچ ہونا چاہیے`;return`غلط ${t[r.format]??r.format}`;case"not_multiple_of":return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${r.keys.length>1?"ز":""}: ${w(r.keys,"، ")}`;case"invalid_key":return`${r.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${r.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}};function ay(){return{localeError:av()}}let a_=()=>{let e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}},t={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},n={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${i}`;return`Noto‘g‘ri kirish: kutilgan ${e}, qabul qilingan ${i}`}case"invalid_value":if(1===r.values.length)return`Noto‘g‘ri kirish: kutilgan ${ei(r.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Juda katta: kutilgan ${r.origin??"qiymat"} ${t}${r.maximum.toString()} ${n.unit} ${n.verb}`;return`Juda katta: kutilgan ${r.origin??"qiymat"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Juda kichik: kutilgan ${r.origin} ${t}${r.minimum.toString()} ${n.unit} ${n.verb}`;return`Juda kichik: kutilgan ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Noto‘g‘ri satr: "${r.prefix}" bilan boshlanishi kerak`;if("ends_with"===r.format)return`Noto‘g‘ri satr: "${r.suffix}" bilan tugashi kerak`;if("includes"===r.format)return`Noto‘g‘ri satr: "${r.includes}" ni o‘z ichiga olishi kerak`;if("regex"===r.format)return`Noto‘g‘ri satr: ${r.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${t[r.format]??r.format}`;case"not_multiple_of":return`Noto‘g‘ri raqam: ${r.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${r.keys.length>1?"lar":""}: ${w(r.keys,", ")}`;
43case"invalid_key":return`${r.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${r.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}};function ab(){return{localeError:a_()}}let ak=()=>{let e={string:{unit:"k\xfd tự",verb:"c\xf3"},file:{unit:"byte",verb:"c\xf3"},array:{unit:"phần tử",verb:"c\xf3"},set:{unit:"phần tử",verb:"c\xf3"}},t={regex:"đầu v\xe0o",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xe0y giờ ISO",date:"ng\xe0y ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi m\xe3 h\xf3a base64",base64url:"chuỗi m\xe3 h\xf3a base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu v\xe0o"},n={nan:"NaN",number:"số",array:"mảng"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi instanceof ${r.expected}, nhận được ${i}`;return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${e}, nhận được ${i}`}case"invalid_value":if(1===r.values.length)return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${ei(r.values[0])}`;return`T\xf9y chọn kh\xf4ng hợp lệ: mong đợi một trong c\xe1c gi\xe1 trị ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Qu\xe1 lớn: mong đợi ${r.origin??"gi\xe1 trị"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"phần tử"}`;return`Qu\xe1 lớn: mong đợi ${r.origin??"gi\xe1 trị"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Qu\xe1 nhỏ: mong đợi ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Qu\xe1 nhỏ: mong đợi ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Chuỗi kh\xf4ng hợp lệ: phải bắt đầu bằng "${r.prefix}"`;if("ends_with"===r.format)return`Chuỗi kh\xf4ng hợp lệ: phải kết th\xfac bằng "${r.suffix}"`;if("includes"===r.format)return`Chuỗi kh\xf4ng hợp lệ: phải bao gồm "${r.includes}"`;if("regex"===r.format)return`Chuỗi kh\xf4ng hợp lệ: phải khớp với mẫu ${r.pattern}`;return`${t[r.format]??r.format} kh\xf4ng hợp lệ`;case"not_multiple_of":return`Số kh\xf4ng hợp lệ: phải l\xe0 bội số của ${r.divisor}`;case"unrecognized_keys":return`Kh\xf3a kh\xf4ng được nhận dạng: ${w(r.keys,", ")}`;case"invalid_key":return`Kh\xf3a kh\xf4ng hợp lệ trong ${r.origin}`;case"invalid_union":return"Đầu v\xe0o kh\xf4ng hợp lệ";case"invalid_element":return`Gi\xe1 trị kh\xf4ng hợp lệ trong ${r.origin}`;default:return`Đầu v\xe0o kh\xf4ng hợp lệ`}}};function aE(){return{localeError:ak()}}let aT=()=>{let e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}},t={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},n={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`无效输入:期望 instanceof ${r.expected},实际接收 ${i}`;return`无效输入:期望 ${e},实际接收 ${i}`}case"invalid_value":if(1===r.values.length)return`无效输入:期望 ${ei(r.values[0])}`;return`无效选项:期望以下之一 ${w(r.values,"|")}`;
43case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`数值过大:期望 ${r.origin??"值"} ${t}${r.maximum.toString()} ${n.unit??"个元素"}`;return`数值过大:期望 ${r.origin??"值"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`数值过小:期望 ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`数值过小:期望 ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`无效字符串:必须以 "${r.prefix}" 开头`;if("ends_with"===r.format)return`无效字符串:必须以 "${r.suffix}" 结尾`;if("includes"===r.format)return`无效字符串:必须包含 "${r.includes}"`;if("regex"===r.format)return`无效字符串:必须满足正则表达式 ${r.pattern}`;return`无效${t[r.format]??r.format}`;case"not_multiple_of":return`无效数字:必须是 ${r.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${w(r.keys,", ")}`;case"invalid_key":return`${r.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${r.origin} 中包含无效值(value)`;default:return`无效输入`}}};function ax(){return{localeError:aT()}}let aA=()=>{let e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}},t={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`無效的輸入值:預期為 instanceof ${r.expected},但收到 ${i}`;return`無效的輸入值:預期為 ${e},但收到 ${i}`}case"invalid_value":if(1===r.values.length)return`無效的輸入值:預期為 ${ei(r.values[0])}`;return`無效的選項:預期為以下其中之一 ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`數值過大:預期 ${r.origin??"值"} 應為 ${t}${r.maximum.toString()} ${n.unit??"個元素"}`;return`數值過大:預期 ${r.origin??"值"} 應為 ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`數值過小:預期 ${r.origin} 應為 ${t}${r.minimum.toString()} ${n.unit}`;return`數值過小:預期 ${r.origin} 應為 ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`無效的字串:必須以 "${r.prefix}" 開頭`;if("ends_with"===r.format)return`無效的字串:必須以 "${r.suffix}" 結尾`;if("includes"===r.format)return`無效的字串:必須包含 "${r.includes}"`;if("regex"===r.format)return`無效的字串:必須符合格式 ${r.pattern}`;return`無效的 ${t[r.format]??r.format}`;case"not_multiple_of":return`無效的數字:必須為 ${r.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${r.keys.length>1?"們":""}:${w(r.keys,"、")}`;case"invalid_key":return`${r.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${r.origin} 中有無效的值`;default:return`無效的輸入值`}}};function aS(){return{localeError:aA()}}let aI=()=>{let e={string:{unit:"\xe0mi",verb:"n\xed"},file:{unit:"bytes",verb:"n\xed"},array:{unit:"nkan",verb:"n\xed"},set:{unit:"nkan",verb:"n\xed"}},t={regex:"ẹ̀rọ \xecb\xe1wọl\xe9",email:"\xe0d\xedrẹ́s\xec \xecmẹ́l\xec",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xe0k\xf3k\xf2 ISO",date:"ọjọ́ ISO",time:"\xe0k\xf3k\xf2 ISO",duration:"\xe0k\xf3k\xf2 t\xf3 p\xe9 ISO",ipv4:"\xe0d\xedrẹ́s\xec IPv4",ipv6:"\xe0d\xedrẹ́s\xec IPv6",cidrv4:"\xe0gb\xe8gb\xe8 IPv4",cidrv6:"\xe0gb\xe8gb\xe8 IPv6",base64:"ọ̀rọ̀ t\xed a kọ́ n\xed base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mb\xe0 E.164",jwt:"JWT",template_literal:"ẹ̀rọ \xecb\xe1wọl\xe9"},n={nan:"NaN",number:"nọ́mb\xe0",array:"akopọ"};return r=>
43{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=ek(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi instanceof ${r.expected}, \xe0mọ̀ a r\xed ${i}`;return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${e}, \xe0mọ̀ a r\xed ${i}`}case"invalid_value":if(1===r.values.length)return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${ei(r.values[0])}`;return`\xc0ṣ\xe0y\xe0n aṣ\xecṣe: yan ọ̀kan l\xe1ra ${w(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ p\xe9 ${r.origin??"iye"} ${n.verb} ${t}${r.maximum} ${n.unit}`;return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ ${t}${r.maximum}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ p\xe9 ${r.origin} ${n.verb} ${t}${r.minimum} ${n.unit}`;return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ ${t}${r.minimum}`}case"invalid_format":if("starts_with"===r.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀l\xfa "${r.prefix}"`;if("ends_with"===r.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ par\xed pẹ̀l\xfa "${r.suffix}"`;if("includes"===r.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ n\xed "${r.includes}"`;if("regex"===r.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ b\xe1 \xe0pẹẹrẹ mu ${r.pattern}`;return`Aṣ\xecṣe: ${t[r.format]??r.format}`;case"not_multiple_of":return`Nọ́mb\xe0 aṣ\xecṣe: gbọ́dọ̀ jẹ́ \xe8y\xe0 p\xedp\xedn ti ${r.divisor}`;case"unrecognized_keys":return`Bọt\xecn\xec \xe0\xecmọ̀: ${w(r.keys,", ")}`;case"invalid_key":return`Bọt\xecn\xec aṣ\xecṣe n\xedn\xfa ${r.origin}`;case"invalid_union":default:return"\xccb\xe1wọl\xe9 aṣ\xecṣe";case"invalid_element":return`Iye aṣ\xecṣe n\xedn\xfa ${r.origin}`}}};function aw(){return{localeError:aI()}}let aN=Symbol("ZodOutput"),aO=Symbol("ZodInput");class aC{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function aD(){return new aC}(r=globalThis).__zod_globalRegistry??(r.__zod_globalRegistry=aD());let a$=globalThis.__zod_globalRegistry;function aR(e,t){return new e({type:"string",...en(t)})}function aP(e,t){return new e({type:"string",coerce:!0,...en(t)})}function aL(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...en(t)})}function aM(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...en(t)})}function aU(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...en(t)})}function az(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...en(t)})}function aF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...en(t)})}function aj(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...en(t)})}function aB(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...en(t)})}function aH(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...en(t)})}function aZ(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...en(t)})}function aG(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...en(t)})}function aq(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...en(t)})}function aK(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...en(t)})}function aV(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...en(t)})}function aW(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...en(t)})}function aY(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...en(t)})}function aJ(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...en(t)})}function aX(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...en(t)})}function aQ(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...en(t)})}function a0(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...en(t)})}function a1(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...en(t)})}function a2(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...en(t)})}function a4(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...en(t)})}function a6(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...en(t)})}let a3={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function a5(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...en(t)})}function a9(e,t){return new e({type:"string",format:"date",check:"string_format",...en(t)})}function a8(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...en(t)})}function a7(e,t){return new e({type:"string",format:"duration",check:"string_format",...en(t)})}function oe(e,t){return new e({type:"number",checks:[],...en(t)})}function ot(e,t){return new e({type:"number",coerce:!0,checks:[],...en(t)})}function on(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...en(t)})}function or(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...en(t)})}function oi(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...en(t)})}function oa(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...en(t)})}function oo(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...en(t)})}function os(e,t){return new e({type:"boolean",...en(t)})}function ol(e,t){return new e({type:"boolean",coerce:!0,...en(t)})}function ou(e,t){return new e({type:"bigint",...en(t)})}function oc(e,t){return new e({type:"bigint",coerce:!0,...en(t)})}function od(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...en(t)})}function op(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...en(t)})}function of(e,t){return new e({type:"symbol",...en(t)})}function oh(e,t){return new e({type:"undefined",...en(t)})}function om(e,t){return new e({type:"null",...en(t)})}function og(e){return new e({type:"any"})}function ov(e){return new e({type:"unknown"})}function oy(e,t){return new e({type:"never",...en(t)})}function o_(e,t){return new e({type:"void",...en(t)})}function ob(e,t){return new e({type:"date",...en(t)})}function ok(e,t){return new e({type:"date",coerce:!0,...en(t)})}function oE(e,t){return new e({type:"nan",...en(t)})}function oT(e,t){return new t7({check:"less_than",...en(t),value:e,inclusive:!1})}function ox(e,t){return new t7({check:"less_than",...en(t),value:e,inclusive:!0})}function oA(e,t){return new ne({check:"greater_than",...en(t),value:e,inclusive:!1})}function oS(e,t){return new ne({check:"greater_than",...en(t),value:e,inclusive:!0})}function oI(e){return oA(0,e)}function ow(e){return oT(0,e)}function oN(e){return ox(0,e)}function oO(e){return oS(0,e)}function oC(e,t){return new nt({check:"multiple_of",...en(t),value:e})}function oD(e,t){return new ni({check:"max_size",...en(t),maximum:e})}function o$(e,t){return new na({check:"min_size",...en(t),minimum:e})}function oR(e,t){return new no({check:"size_equals",...en(t),size:e})}function oP(e,t){return new ns({check:"max_length",...en(t),maximum:e})}function oL(e,t){return new nl({check:"min_length",...en(t),minimum:e})}function oM(e,t){return new nu({check:"length_equals",...en(t),length:e})}function oU(e,t){return new nd({check:"string_format",format:"regex",...en(t),pattern:e})}function oz(e){return new np({check:"string_format",format:"lowercase",...en(e)})}
43function oF(e){return new nf({check:"string_format",format:"uppercase",...en(e)})}function oj(e,t){return new nh({check:"string_format",format:"includes",...en(t),includes:e})}function oB(e,t){return new nm({check:"string_format",format:"starts_with",...en(t),prefix:e})}function oH(e,t){return new ng({check:"string_format",format:"ends_with",...en(t),suffix:e})}function oZ(e,t,n){return new ny({check:"property",property:e,schema:t,...en(n)})}function oG(e,t){return new n_({check:"mime_type",mime:e,...en(t)})}function oq(e){return new nb({check:"overwrite",tx:e})}function oK(e){return oq(t=>t.normalize(e))}function oV(){return oq(e=>e.trim())}function oW(){return oq(e=>e.toLowerCase())}function oY(){return oq(e=>e.toUpperCase())}function oJ(){return oq(e=>Z(e))}function oX(e,t,n){return new e({type:"array",element:t,...en(n)})}function oQ(e,t,n){return new e({type:"union",options:t,...en(n)})}function o0(e,t,n){return new e({type:"union",options:t,inclusive:!1,...en(n)})}function o1(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...en(r)})}function o2(e,t,n){return new e({type:"intersection",left:t,right:n})}function o4(e,t,n,r){let i=n instanceof nT,a=i?r:n;return new e({type:"tuple",items:t,rest:i?n:null,...en(a)})}function o6(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...en(r)})}function o3(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...en(r)})}function o5(e,t,n){return new e({type:"set",valueType:t,...en(n)})}function o9(e,t,n){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...en(n)})}function o8(e,t,n){return new e({type:"enum",entries:t,...en(n)})}function o7(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...en(n)})}function se(e,t){return new e({type:"file",...en(t)})}function st(e,t){return new e({type:"transform",transform:t})}function sn(e,t){return new e({type:"optional",innerType:t})}function sr(e,t){return new e({type:"nullable",innerType:t})}function si(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():W(n)}})}function sa(e,t,n){return new e({type:"nonoptional",innerType:t,...en(n)})}function so(e,t){return new e({type:"success",innerType:t})}function ss(e,t,n){return new e({type:"catch",innerType:t,catchValue:"function"==typeof n?n:()=>n})}function sl(e,t,n){return new e({type:"pipe",in:t,out:n})}function su(e,t){return new e({type:"readonly",innerType:t})}function sc(e,t,n){return new e({type:"template_literal",parts:t,...en(n)})}function sd(e,t){return new e({type:"lazy",getter:t})}function sp(e,t){return new e({type:"promise",innerType:t})}function sf(e,t,n){let r=en(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function sh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...en(n)})}function sm(e){let t=sg(n=>(n.addIssue=e=>{"string"==typeof e?n.issues.push(eE(e,n.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=n.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),n.issues.push(eE(e)))},e(n.value,n)));return t}function sg(e,t){let n=new t9({check:"custom",...en(t)});return n._zod.check=e,n}function sv(e){let t=new t9({check:"describe"});return t._zod.onattach=[t=>{let n=a$.get(t)??{};a$.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function sy(e){let t=new t9({check:"meta"});return t._zod.onattach=[t=>{let n=a$.get(t)??{};a$.add(t,{...n,...e})}],t._zod.check=()=>{},t}function s_(e,t){let n=en(t),r=n.truthy??["true","1","yes","on","y","enabled"],i=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(r=r.map(e=>"string"==typeof e?e.toLowerCase():e),i=i.map(e=>"string"==typeof e?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??rB,l=e.Boolean??n2,u=new s({type:"pipe",in:new(e.String??nx)({type:"string",error:n.error}),out:new l({type:"boolean",error:n.error}),transform:(e,t)=>{let r=e;return"sensitive"!==n.case&&(r=r.toLowerCase()),!!a.has(r)||!o.has(r)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input
43:t.value,inst:u,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?r[0]||"true":i[0]||"false",error:n.error});return u}function sb(e,t,n,r={}){let i=en(r),a={...en(r),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}function sk(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??a$,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function sE(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||(o.ref=a),sE(a,t,r),t.seen.get(a).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),"input"===t.io&&function e(t,n){let r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,r);if("set"===i.type)return e(i.valueType,r);if("lazy"===i.type)return e(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return e(i.innerType,r);if("intersection"===i.type)return e(i.left,r)||e(i.right,r);if("record"===i.type||"map"===i.type)return e(i.keyType,r)||e(i.valueType,r);if("pipe"===i.type)return e(i.in,r)||e(i.out,r);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],r))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,r))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,r))return!0;if(i.rest&&e(i.rest,r))return!0}return!1}(e)&&(delete o.schema.examples,delete o.schema.default),"input"===t.io&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function sT(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i("__shared")}#/${r}/${a}`}}if(t[1]===n)return{ref:"#"};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
44
45Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&"ref"===e.reused){a(n);continue}}}function sx(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=t=>{let n=e.seen.get(t);if(null===n.ref)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in a||delete i[e]);if(s.$ref)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};
45if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:sS(t,"input",e.processors),output:sS(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw Error("Error converting schema to JSON.")}}let sA=(e,t={})=>n=>{let r=sk({...n,processors:t});return sE(e,r),sT(r,e),sx(r,e)},sS=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=sk({...i??{},target:a,io:t,processors:n});return sE(e,o),sT(o,e),sx(o,e)},sI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sw=(e,t,n,r)=>{n.type="string";let{minimum:i,maximum:a,format:o,patterns:s,contentEncoding:l}=e._zod.bag;if("number"==typeof i&&(n.minLength=i),"number"==typeof a&&(n.maxLength=a),o&&(n.format=sI[o]??o,""===n.format&&delete n.format,"time"===o&&delete n.format),l&&(n.contentEncoding=l),s&&s.size>0){let e=[...s];1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},sN=(e,t,n,r)=>{let{minimum:i,maximum:a,format:o,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof o&&o.includes("int")?n.type="integer":n.type="number","number"==typeof u&&("draft-04"===t.target||"openapi-3.0"===t.target?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u),"number"==typeof i&&(n.minimum=i,"number"==typeof u&&"draft-04"!==t.target&&(u>=i?delete n.minimum:delete n.exclusiveMinimum)),"number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l),"number"==typeof a&&(n.maximum=a,"number"==typeof l&&"draft-04"!==t.target&&(l<=a?delete n.maximum:delete n.exclusiveMaximum)),"number"==typeof s&&(n.multipleOf=s)},sO=(e,t,n,r)=>{n.type="boolean"},sC=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},sD=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},s$=(e,t,n,r)=>{"openapi-3.0"===t.target?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},sR=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},sP=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},sL=(e,t,n,r)=>{n.not={}},sM=(e,t,n,r)=>{},sU=(e,t,n,r)=>{},sz=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},sF=(e,t,n,r)=>{let i=I(e._zod.def.entries);i.every(e=>"number"==typeof e)&&(n.type="number"),i.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=i},sj=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else a.push(Number(e));else a.push(e);if(0===a.length);else if(1===a.length){let e=a[0];n.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?n.enum=[e]:n.const=e}else a.every(e=>"number"==typeof e)&&(n.type="number"),a.every(e=>"string"==typeof e)&&(n.type="string"),a.every(e=>"boolean"==typeof e)&&(n.type="boolean"),a.every(e=>null===e)&&(n.type="null"),n.enum=a},sB=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},sH=(e,t,n,r)=>{let i=e._zod.pattern;if(!i)throw Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},sZ=(e,t,n,r)=>{let i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:o,mime:s}=e._zod.bag;void 0!==a&&(i.minLength=a),void 0!==o&&(i.maxLength=o),s?1===s.length?(i.contentMediaType=s[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=s.map(e=>({contentMediaType:e}))):Object.assign(n,i)},sG=(e,t,n,r)=>{n.type="boolean"},sq=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},sK=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},sV=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},sW=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},sY=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},sJ=(e,t,n,r)=>{let i=e._zod.def,{minimum:a,maximum:o}=e._zod.bag;"number"==typeof a&&(n.minItems=a),"number"==typeof o&&(n.maxItems=o),n.type="array",n.items=sE(i.element,t,{...r,path:[...r.path,"items"]})},sX=(e,t,n,r)=>{let i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let e in a)n.properties[e]=sE(a[e],t,{...r,path:[...r.path,"properties",e]});let o=new Set([...new Set(Object.keys(a))].filter(e=>{let n=i.shape[e]._zod;return"input"===t.io?void 0===n.optin:void 0===n.optout}));o.size>0&&(n.required=Array.from(o)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=sE(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)},sQ=(e,t,n,r)=>{let i=e._zod.def,a=!1===i.inclusive,o=i.options.map((e,n)=>sE(e,t,{...r,path:[...r.path,a?"oneOf":"anyOf",n]}));a?n.oneOf=o:n.anyOf=o},s0=(e,t,n,r)=>{let i=e._zod.def,a=sE(i.left,t,{...r,path:[...r.path,"allOf",0]}),o=sE(i.right,t,{...r,path:[...r.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},s1=(e,t,n,r)=>{let i=e._zod.def;n.type="array";
45let a="draft-2020-12"===t.target?"prefixItems":"items",o="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",s=i.items.map((e,n)=>sE(e,t,{...r,path:[...r.path,a,n]})),l=i.rest?sE(i.rest,t,{...r,path:[...r.path,o,..."openapi-3.0"===t.target?[i.items.length]:[]]}):null;"draft-2020-12"===t.target?(n.prefixItems=s,l&&(n.items=l)):"openapi-3.0"===t.target?(n.items={anyOf:s},l&&n.items.anyOf.push(l),n.minItems=s.length,l||(n.maxItems=s.length)):(n.items=s,l&&(n.additionalItems=l));let{minimum:u,maximum:c}=e._zod.bag;"number"==typeof u&&(n.minItems=u),"number"==typeof c&&(n.maxItems=c)},s2=(e,t,n,r)=>{let i=e._zod.def;n.type="object";let a=i.keyType,o=a._zod.bag,s=o?.patterns;if("loose"===i.mode&&s&&s.size>0){let e=sE(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});for(let t of(n.patternProperties={},s))n.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(n.propertyNames=sE(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),n.additionalProperties=sE(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});let l=a._zod.values;if(l){let e=[...l].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(n.required=e)}},s4=(e,t,n,r)=>{let i=e._zod.def,a=sE(i.innerType,t,r),o=t.seen.get(e);"openapi-3.0"===t.target?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},s6=(e,t,n,r)=>{let i=e._zod.def;sE(i.innerType,t,r),t.seen.get(e).ref=i.innerType},s3=(e,t,n,r)=>{let i=e._zod.def;sE(i.innerType,t,r),t.seen.get(e).ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},s5=(e,t,n,r)=>{let i=e._zod.def;sE(i.innerType,t,r),t.seen.get(e).ref=i.innerType,"input"===t.io&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},s9=(e,t,n,r)=>{let i,a=e._zod.def;sE(a.innerType,t,r),t.seen.get(e).ref=a.innerType;try{i=a.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},s8=(e,t,n,r)=>{let i=e._zod.def,a="input"===t.io?"transform"===i.in._zod.def.type?i.out:i.in:i.out;sE(a,t,r),t.seen.get(e).ref=a},s7=(e,t,n,r)=>{let i=e._zod.def;sE(i.innerType,t,r),t.seen.get(e).ref=i.innerType,n.readOnly=!0},le=(e,t,n,r)=>{let i=e._zod.def;sE(i.innerType,t,r),t.seen.get(e).ref=i.innerType},lt=(e,t,n,r)=>{let i=e._zod.def;sE(i.innerType,t,r),t.seen.get(e).ref=i.innerType},ln=(e,t,n,r)=>{let i=e._zod.innerType;sE(i,t,r),t.seen.get(e).ref=i},lr={string:sw,number:sN,boolean:sO,bigint:sC,symbol:sD,null:s$,undefined:sR,void:sP,never:sL,any:sM,unknown:sU,date:sz,enum:sF,literal:sj,nan:sB,template_literal:sH,file:sZ,success:sG,custom:sq,function:sK,transform:sV,map:sW,set:sY,array:sJ,object:sX,union:sQ,intersection:s0,tuple:s1,record:s2,nullable:s4,nonoptional:s6,default:s3,prefault:s5,catch:s9,pipe:s8,readonly:s7,promise:le,optional:lt,lazy:ln};function li(e,t){if("_idmap"in e){let n=sk({...t,processors:lr}),r={};
45for(let t of e._idmap.entries()){let[e,r]=t;sE(r,n)}let i={};for(let a of(n.external={registry:e,uri:t?.uri,defs:r},e._idmap.entries())){let[e,t]=a;sT(n,t),i[e]=sx(n,t)}return Object.keys(r).length>0&&(i.__shared={["draft-2020-12"===n.target?"$defs":"definitions"]:r}),{schemas:i}}let n=sk({...t,processors:lr});return sE(e,n),sT(n,e),sx(n,e)}class la{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=sk({processors:lr,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return sE(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),sT(this.ctx,e);let{"~standard":n,...r}=sx(this.ctx,e);return r}}let lo=g("ZodISODateTime",(e,t)=>{nM.init(e,t),l$.init(e,t)});function ls(e){return a5(lo,e)}let ll=g("ZodISODate",(e,t)=>{nU.init(e,t),l$.init(e,t)});function lu(e){return a9(ll,e)}let lc=g("ZodISOTime",(e,t)=>{nz.init(e,t),l$.init(e,t)});function ld(e){return a8(lc,e)}let lp=g("ZodISODuration",(e,t)=>{nF.init(e,t),l$.init(e,t)});function lf(e){return a7(lp,e)}let lh=(e,t)=>{eD.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>eP(e,t)},flatten:{value:t=>eR(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,N,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,N,2)}},isEmpty:{get:()=>0===e.issues.length}})},lm=g("ZodError",lh),lg=g("ZodError",lh,{Parent:Error}),lv=ez(lg),ly=ej(lg),l_=eH(lg),lb=eG(lg),lk=eK(lg),lE=eW(lg),lT=eJ(lg),lx=eQ(lg),lA=e1(lg),lS=e4(lg),lI=e3(lg),lw=e9(lg),lN=g("ZodType",(e,t)=>(nT.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:sS(e,"input"),output:sS(e,"output")}}),e.toJSONSchema=sA(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(U(t,{checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>et(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>lv(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>l_(e,t,n),e.parseAsync=async(t,n)=>ly(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>lb(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>lk(e,t,n),e.decode=(t,n)=>lE(e,t,n),e.encodeAsync=async(t,n)=>lT(e,t,n),e.decodeAsync=async(t,n)=>lx(e,t,n),e.safeEncode=(t,n)=>lA(e,t,n),e.safeDecode=(t,n)=>lS(e,t,n),e.safeEncodeAsync=async(t,n)=>lI(e,t,n),e.safeDecodeAsync=async(t,n)=>lw(e,t,n),e.refine=(t,n)=>e.check(c2(t,n)),e.superRefine=t=>e.check(sm(t)),e.overwrite=t=>e.check(oq(t)),e.optional=()=>ck(e),e.exactOptional=()=>cT(e),e.nullable=()=>cA(e),e.nullish=()=>ck(cA(e)),e.nonoptional=t=>cD(e,t),e.array=()=>uJ(e),e.or=t=>u6([e,t]),e.and=t=>ce(e,t),e.transform=t=>cF(e,c_(t)),e.default=t=>cw(e,t),e.prefault=t=>cO(e,t),e.catch=t=>cL(e,t),e.pipe=t=>cF(e,t),e.readonly=()=>cZ(e),e.describe=t=>{let n=e.clone();return a$.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>a$.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return a$.get(e);let n=e.clone();return a$.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),lO=g("_ZodString",(e,t)=>{nx.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sw(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(oU(...t)),e.includes=(...t)=>e.check(oj(...t)),e.startsWith=(...t)=>e.check(oB(...t)),e.endsWith=(...t)=>e.check(oH(...t)),e.min=(...t)=>e.check(oL(...t)),e.max=(...t)=>e.check(oP(...t)),e.length=(...t)=>e.check(oM(...t)),e.nonempty=(...t)=>e.check(oL(1,...t)),e.lowercase=t=>e.check(oz(t)),e.uppercase=t=>e.check(oF(t)),e.trim=()=>e.check(oV()),e.normalize=(...t)=>e.check(oK(...t)),e.toLowerCase=()=>e.check(oW()),e.toUpperCase=()=>e.check(oY()),e.slugify=()=>e.check(oJ())}),lC=g("ZodString",(e,t)=>{nx.init(e,t),lO.init(e,t),e.email=t=>e.check(aL(lR,t)),e.url=t=>e.check(aB(lH,t)),e.jwt=t=>e.check(a6(up,t)),e.emoji=t=>e.check(aH(lq,t)),e.guid=t=>e.check(aM(lL,t)),e.uuid=t=>e.check(aU(lU,t)),e.uuidv4=t=>e.check(az(lU,t)),e.uuidv6=t=>e.check(aF(lU,t)),e.uuidv7=t=>e.check(aj(lU,t)),e.nanoid=t=>e.check(aZ(lV,t)),e.guid=t=>e.check(aM(lL,t)),e.cuid=t=>e.check(aG(lY,t)),e.cuid2=t=>e.check(aq(lX,t)),e.ulid=t=>e.check(aK(l0,t)),e.base64=t=>e.check(a1(uo,t)),e.base64url=t=>e.check(a2(ul,t)),e.xid=t=>e.check(aV(l2,t)),e.ksuid=t=>e.check(aW(l6,t)),e.ipv4=t=>e.check(aY(l5,t)),e.ipv6=t=>e.check(aJ(ue,t)),e.cidrv4=t=>e.check(aQ(un,t)),e.cidrv6=t=>e.check(a0(ui,t)),e.e164=t=>e.check(a4(uc,t)),e.datetime=t=>e.check(ls(t)),e.date=t=>e.check(lu(t)),e.time=t=>e.check(ld(t)),e.duration=t=>e.check(lf(t))});function lD(e){return aR(lC,e)}let l$=g("ZodStringFormat",(e,t)=>{nA.init(e,t),lO.init(e,t)}),lR=g("ZodEmail",(e,t)=>{nw.init(e,t),l$.init(e,t)});function lP(e){return aL(lR,e)}let lL=g("ZodGUID",(e,t)=>{nS.init(e,t),l$.init(e,t)});function lM(e){return aM(lL,e)}let lU=g("ZodUUID",(e,t)=>{nI.init(e,t),l$.init(e,t)});function lz(e){return aU(lU,e)}function lF(e){return az(lU,e)}function lj(e){return aF(lU,e)}function lB(e){return aj(lU,e)}let lH=g("ZodURL",(e,t)=>{nN.init(e,t),l$.init(e,t)});function lZ(e){return aB(lH,e)}function lG(e){return aB(lH,{protocol:/^https?$/,hostname:tI,...en(e)})}let lq=g("ZodEmoji",(e,t)=>{nO.init(e,t),l$.init(e,t)});function lK(e){return aH(lq,e)}let lV=g("ZodNanoID",(e,t)=>{nC.init(e,t),l$.init(e,t)});function lW(e){return aZ(lV,e)}let lY=g("ZodCUID",(e,t)=>{nD.init(e,t),l$.init(e,t)});function lJ(e){return aG(lY,e)}let lX=g("ZodCUID2",(e,t)=>{n$.init(e,t),l$.init(e,t)});function lQ(e){return aq(lX,e)}
45let l0=g("ZodULID",(e,t)=>{nR.init(e,t),l$.init(e,t)});function l1(e){return aK(l0,e)}let l2=g("ZodXID",(e,t)=>{nP.init(e,t),l$.init(e,t)});function l4(e){return aV(l2,e)}let l6=g("ZodKSUID",(e,t)=>{nL.init(e,t),l$.init(e,t)});function l3(e){return aW(l6,e)}let l5=g("ZodIPv4",(e,t)=>{nj.init(e,t),l$.init(e,t)});function l9(e){return aY(l5,e)}let l8=g("ZodMAC",(e,t)=>{nH.init(e,t),l$.init(e,t)});function l7(e){return aX(l8,e)}let ue=g("ZodIPv6",(e,t)=>{nB.init(e,t),l$.init(e,t)});function ut(e){return aJ(ue,e)}let un=g("ZodCIDRv4",(e,t)=>{nZ.init(e,t),l$.init(e,t)});function ur(e){return aQ(un,e)}let ui=g("ZodCIDRv6",(e,t)=>{nG.init(e,t),l$.init(e,t)});function ua(e){return a0(ui,e)}let uo=g("ZodBase64",(e,t)=>{nK.init(e,t),l$.init(e,t)});function us(e){return a1(uo,e)}let ul=g("ZodBase64URL",(e,t)=>{nW.init(e,t),l$.init(e,t)});function uu(e){return a2(ul,e)}let uc=g("ZodE164",(e,t)=>{nY.init(e,t),l$.init(e,t)});function ud(e){return a4(uc,e)}let up=g("ZodJWT",(e,t)=>{nX.init(e,t),l$.init(e,t)});function uf(e){return a6(up,e)}let uh=g("ZodCustomStringFormat",(e,t)=>{nQ.init(e,t),l$.init(e,t)});function um(e,t,n={}){return sb(uh,e,t,n)}function ug(e){return sb(uh,"hostname",tS,e)}function uv(e){return sb(uh,"hex",tH,e)}function uy(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,i=o[r];if(!i)throw Error(`Unrecognized hash format: ${r}`);return sb(uh,r,i,t)}let u_=g("ZodNumber",(e,t)=>{n0.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sN(e,t,n,r),e.gt=(t,n)=>e.check(oA(t,n)),e.gte=(t,n)=>e.check(oS(t,n)),e.min=(t,n)=>e.check(oS(t,n)),e.lt=(t,n)=>e.check(oT(t,n)),e.lte=(t,n)=>e.check(ox(t,n)),e.max=(t,n)=>e.check(ox(t,n)),e.int=t=>e.check(uE(t)),e.safe=t=>e.check(uE(t)),e.positive=t=>e.check(oA(0,t)),e.nonnegative=t=>e.check(oS(0,t)),e.negative=t=>e.check(oT(0,t)),e.nonpositive=t=>e.check(ox(0,t)),e.multipleOf=(t,n)=>e.check(oC(t,n)),e.step=(t,n)=>e.check(oC(t,n)),e.finite=()=>e;let 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 ub(e){return oe(u_,e)}let uk=g("ZodNumberFormat",(e,t)=>{n1.init(e,t),u_.init(e,t)});function uE(e){return on(uk,e)}function uT(e){return or(uk,e)}function ux(e){return oi(uk,e)}function uA(e){return oa(uk,e)}function uS(e){return oo(uk,e)}let uI=g("ZodBoolean",(e,t)=>{n2.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sO(e,t,n,r)});function uw(e){return os(uI,e)}let uN=g("ZodBigInt",(e,t)=>{n4.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sC(e,t,n,r),e.gte=(t,n)=>e.check(oS(t,n)),e.min=(t,n)=>e.check(oS(t,n)),e.gt=(t,n)=>e.check(oA(t,n)),e.gte=(t,n)=>e.check(oS(t,n)),e.min=(t,n)=>e.check(oS(t,n)),e.lt=(t,n)=>e.check(oT(t,n)),e.lte=(t,n)=>e.check(ox(t,n)),e.max=(t,n)=>e.check(ox(t,n)),e.positive=t=>e.check(oA(BigInt(0),t)),e.negative=t=>e.check(oT(BigInt(0),t)),e.nonpositive=t=>e.check(ox(BigInt(0),t)),e.nonnegative=t=>e.check(oS(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(oC(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function uO(e){return ou(uN,e)}let uC=g("ZodBigIntFormat",(e,t)=>{n6.init(e,t),uN.init(e,t)});function uD(e){return od(uC,e)}function u$(e){return op(uC,e)}let uR=g("ZodSymbol",(e,t)=>{n3.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sD(e,t,n,r)});function uP(e){return of(uR,e)}let uL=g("ZodUndefined",(e,t)=>{n5.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sR(e,t,n,r)});function uM(e){return oh(uL,e)}let uU=g("ZodNull",(e,t)=>{n9.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s$(e,t,n,r)});function uz(e){return om(uU,e)}let uF=g("ZodAny",(e,t)=>{n8.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sM(e,t,n,r)});function uj(){return og(uF)}let uB=g("ZodUnknown",(e,t)=>{n7.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sU(e,t,n,r)});function uH(){return ov(uB)}let uZ=g("ZodNever",(e,t)=>{re.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sL(e,t,n,r)});function uG(e){return oy(uZ,e)}let uq=g("ZodVoid",(e,t)=>{rt.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sP(e,t,n,r)});function uK(e){return o_(uq,e)}let uV=g("ZodDate",(e,t)=>{rn.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sz(e,t,n,r),e.min=(t,n)=>e.check(oS(t,n)),e.max=(t,n)=>e.check(ox(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function uW(e){return ob(uV,e)}let uY=g("ZodArray",(e,t)=>{ri.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sJ(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(oL(t,n)),e.nonempty=t=>e.check(oL(1,t)),e.max=(t,n)=>e.check(oP(t,n)),e.length=(t,n)=>e.check(oM(t,n)),e.unwrap=()=>e.element});function uJ(e,t){return oX(uY,e,t)}function uX(e){return cp(Object.keys(e._zod.def.shape))}let uQ=g("ZodObject",(e,t)=>{ru.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sX(e,t,n,r),P(e,"shape",()=>t.shape),e.keyof=()=>cp(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:uH()}),e.loose=()=>e.clone({...e._zod.def,catchall:uH()}),e.strict=()=>e.clone({...e._zod.def,catchall:uG()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>ec(e,t),e.safeExtend=t=>ed(e,t),e.merge=t=>ep(e,t),e.pick=t=>el(e,t),e.omit=t=>eu(e,t),e.partial=(...t)=>ef(cb,e,t[0]),e.required=(...t)=>eh(cC,e,t[0])});function u0(e,t){return new uQ({type:"object",shape:e??{},...en(t)})}function u1(e,t){return new uQ({type:"object",shape:e,catchall:uG(),...en(t)})}function u2(e,t){return new uQ({type:"object",shape:e,catchall:uH(),...en(t)})}let u4=g("ZodUnion",(e,t)=>{rd.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sQ(e,t,n,r),e.options=t.options});function u6(e,t){return new u4({type:"union",options:e,...en(t)})}let u3=g("ZodXor",(e,t)=>{u4.init(e,t),rf.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sQ(e,t,n,r),e.options=t.options});function u5(e,t){return new u3({type:"union",options:e,inclusive:!1,...en(t)})}let u9=g("ZodDiscriminatedUnion",(e,t)=>{u4.init(e,t),rh.init(e,t)});function u8(e,t,n){return new u9({type:"union",options:t,discriminator:e,...en(n)})}let u7=g("ZodIntersection",(e,t)=>{rm.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s0(e,t,n,r)});function ce(e,t){return new u7({type:"intersection",left:e,right:t})}let ct=g("ZodTuple",(e,t)=>{rv.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s1(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function cn(e,t,n){let r=t instanceof nT,i=r?n:t;return new ct({type:"tuple",items:e,rest:r?t:null,...en(i)})}let cr=g("ZodRecord",(e,t)=>{r_.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s2(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function ci(e,t,n){return new cr({type:"record",keyType:e,valueType:t,...en(n)})}function ca(e,t,n){let r=et(e);return r._zod.values=void 0,new cr({type:"record",keyType:r,valueType:t,...en(n)})}function co(e,t,n){return new cr({type:"record",keyType:e,valueType:t,mode:"loose",...en(n)})}let cs=g("ZodMap",(e,t)=>{rb.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sW(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(o$(...t)),e.nonempty=t=>e.check(o$(1,t)),e.max=(...t)=>e.check(oD(...t)),e.size=(...t)=>e.check(oR(...t))});function cl(e,t,n){return new cs({type:"map",keyType:e,valueType:t,...en(n)})}let cu=g("ZodSet",(e,t)=>{rE.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sY(e,t,n,r),e.min=(...t)=>e.check(o$(...t)),e.nonempty=t=>e.check(o$(1,t)),e.max=(...t)=>e.check(oD(...t)),e.size=(...t)=>e.check(oR(...t))});function cc(e,t){return new cu({type:"set",valueType:e,...en(t)})}let cd=g("ZodEnum",(e,t)=>{rx.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sF(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new cd({...t,checks:[],...en(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new cd({...t,checks:[],...en(r),entries:i})}});function cp(e,t){return new cd({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...en(t)})}function cf(e,t){return new cd({type:"enum",entries:e,...en(t)})}let ch=g("ZodLiteral",(e,t)=>{rA.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sj(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
45(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function cm(e,t){return new ch({type:"literal",values:Array.isArray(e)?e:[e],...en(t)})}let cg=g("ZodFile",(e,t)=>{rS.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sZ(e,t,n,r),e.min=(t,n)=>e.check(o$(t,n)),e.max=(t,n)=>e.check(oD(t,n)),e.mime=(t,n)=>e.check(oG(Array.isArray(t)?t:[t],n))});function cv(e){return se(cg,e)}let cy=g("ZodTransform",(e,t)=>{rI.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sV(e,t,n,r),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new _(e.constructor.name);n.addIssue=r=>{"string"==typeof r?n.issues.push(eE(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(eE(r)))};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function c_(e){return new cy({type:"transform",transform:e})}let cb=g("ZodOptional",(e,t)=>{rN.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lt(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ck(e){return new cb({type:"optional",innerType:e})}let cE=g("ZodExactOptional",(e,t)=>{rO.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lt(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cT(e){return new cE({type:"optional",innerType:e})}let cx=g("ZodNullable",(e,t)=>{rC.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cA(e){return new cx({type:"nullable",innerType:e})}function cS(e){return ck(cA(e))}let cI=g("ZodDefault",(e,t)=>{rD.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s3(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cw(e,t){return new cI({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():W(t)}})}let cN=g("ZodPrefault",(e,t)=>{rR.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s5(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cO(e,t){return new cN({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():W(t)}})}let cC=g("ZodNonOptional",(e,t)=>{rP.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s6(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cD(e,t){return new cC({type:"nonoptional",innerType:e,...en(t)})}let c$=g("ZodSuccess",(e,t)=>{rM.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sG(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cR(e){return new c$({type:"success",innerType:e})}let cP=g("ZodCatch",(e,t)=>{rU.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s9(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function cL(e,t){return new cP({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let cM=g("ZodNaN",(e,t)=>{rz.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sB(e,t,n,r)});function cU(e){return oE(cM,e)}let cz=g("ZodPipe",(e,t)=>{rF.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s8(e,t,n,r),e.in=t.in,e.out=t.out});function cF(e,t){return new cz({type:"pipe",in:e,out:t})}let cj=g("ZodCodec",(e,t)=>{cz.init(e,t),rB.init(e,t)});function cB(e,t,n){return new cj({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}let cH=g("ZodReadonly",(e,t)=>{rG.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s7(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cZ(e){return new cH({type:"readonly",innerType:e})}let cG=g("ZodTemplateLiteral",(e,t)=>{rK.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sH(e,t,n,r)});function cq(e,t){return new cG({type:"template_literal",parts:e,...en(t)})}let cK=g("ZodLazy",(e,t)=>{rY.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ln(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function cV(e){return new cK({type:"lazy",getter:e})}let cW=g("ZodPromise",(e,t)=>{rW.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>le(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cY(e){return new cW({type:"promise",innerType:e})}let cJ=g("ZodFunction",(e,t)=>{rV.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sK(e,t,n,r)});function cX(e){return new cJ({type:"function",input:Array.isArray(e?.input)?cn(e?.input):e?.input??uJ(uH()),output:e?.output??uH()})}let cQ=g("ZodCustom",(e,t)=>{rJ.init(e,t),lN.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sq(e,t,n,r)});function c0(e){let t=new t9({check:"custom"});return t._zod.check=e,t}function c1(e,t){return sf(cQ,e??(()=>!0),t)}function c2(e,t={}){return sh(cQ,e,t)}function c4(e){return sm(e)}let c6=sv,c3=sy;function c5(e,t={}){let n=new cQ({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...en(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}let c9=(...e)=>s_({Codec:cj,Boolean:uI,String:lC},...e);function c8(e){let t=cV(()=>u6([lD(e),ub(),uw(),uz(),uJ(t),ci(lD(),t)]));return t}function c7(e,t){return cF(c_(e),t)}
45let de={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function dt(e){k({customError:e})}function dn(){return k().customError}i||(i={});let dr={...p,...c,iso:d},di=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function da(e,t){if("boolean"==typeof e)return e?dr.any():dr.never();let n={version:function(e,t){let n=e.$schema;return"https://json-schema.org/draft/2020-12/schema"===n?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===n?"draft-7":"http://json-schema.org/draft-04/schema#"===n?"draft-4":t??"draft-2020-12"}(e,t?.defaultTarget),defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??a$};return function e(t,n){if("boolean"==typeof t)return t?dr.any():dr.never();let r=function t(n,r){let i;if(void 0!==n.not){if("object"==typeof n.not&&0===Object.keys(n.not).length)return dr.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==n.unevaluatedItems)throw Error("unevaluatedItems is not supported");if(void 0!==n.unevaluatedProperties)throw Error("unevaluatedProperties is not supported");if(void 0!==n.if||void 0!==n.then||void 0!==n.else)throw Error("Conditional schemas (if/then/else) are not supported");if(void 0!==n.dependentSchemas||void 0!==n.dependentRequired)throw Error("dependentSchemas and dependentRequired are not supported");if(n.$ref){let t=n.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return dr.lazy(()=>{if(!r.refs.has(t))throw Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let i=e(function(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(0===n.length)return t.rootSchema;let r="draft-2020-12"===t.version?"$defs":"definitions";if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}(t,r),r);return r.refs.set(t,i),r.processing.delete(t),i}if(void 0!==n.enum){let e=n.enum;if("openapi-3.0"===r.version&&!0===n.nullable&&1===e.length&&null===e[0])return dr.null();if(0===e.length)return dr.never();if(1===e.length)return dr.literal(e[0]);if(e.every(e=>"string"==typeof e))return dr.enum(e);let t=e.map(e=>dr.literal(e));return t.length<2?t[0]:dr.union([t[0],t[1],...t.slice(2)])}if(void 0!==n.const)return dr.literal(n.const);let a=n.type;if(Array.isArray(a)){let e=a.map(e=>t({...n,type:e},r));return 0===e.length?dr.never():1===e.length?e[0]:dr.union(e)}if(!a)return dr.any();switch(a){case"string":{let e=dr.string();if(n.format){let t=n.format;"email"===t?e=e.check(dr.email()):"uri"===t||"uri-reference"===t?e=e.check(dr.url()):"uuid"===t||"guid"===t?e=e.check(dr.uuid()):"date-time"===t?e=e.check(dr.iso.datetime()):"date"===t?e=e.check(dr.iso.date()):"time"===t?e=e.check(dr.iso.time()):"duration"===t?e=e.check(dr.iso.duration()):"ipv4"===t?e=e.check(dr.ipv4()):"ipv6"===t?e=e.check(dr.ipv6()):"mac"===t?e=e.check(dr.mac()):"cidr"===t?e=e.check(dr.cidrv4()):"cidr-v6"===t?e=e.check(dr.cidrv6()):"base64"===t?e=e.check(dr.base64()):"base64url"===t?e=e.check(dr.base64url()):"e164"===t?e=e.check(dr.e164()):"jwt"===t?e=e.check(dr.jwt()):"emoji"===t?e=e.check(dr.emoji()):"nanoid"===t?e=e.check(dr.nanoid()):"cuid"===t?e=e.check(dr.cuid()):"cuid2"===t?e=e.check(dr.cuid2()):"ulid"===t?e=e.check(dr.ulid()):"xid"===t?e=e.check(dr.xid()):"ksuid"===t&&(e=e.check(dr.ksuid()))}"number"==typeof n.minLength&&(e=e.min(n.minLength)),"number"==typeof n.maxLength&&(e=e.max(n.maxLength)),n.pattern&&(e=e.regex(new RegExp(n.pattern))),i=e;break}case"number":case"integer":{let e="integer"===a?dr.number().int():dr.number();"number"==typeof n.minimum&&(e=e.min(n.minimum)),"number"==typeof n.maximum&&(e=e.max(n.maximum)),"number"==typeof n.exclusiveMinimum?e=e.gt(n.exclusiveMinimum):!0===n.exclusiveMinimum&&"number"==typeof n.minimum&&(e=e.gt(n.minimum)),"number"==typeof n.exclusiveMaximum?e=e.lt(n.exclusiveMaximum):!0===n.exclusiveMaximum&&"number"==typeof n.maximum&&(e=e.lt(n.maximum)),"number"==typeof n.multipleOf&&(e=e.multipleOf(n.multipleOf)),i=e;break}case"boolean":i=dr.boolean();break;case"null":i=dr.null();break;case"object":{let t={},a=n.properties||{},o=new Set(n.required||[]);for(let[n,i]of Object.entries(a)){let a=e(i,r);t[n]=o.has(n)?a:a.optional()}if(n.propertyNames){let a=e(n.propertyNames,r),o=n.additionalProperties&&"object"==typeof n.additionalProperties?e(n.additionalProperties,r):dr.any();if(0===Object.keys(t).length){i=dr.record(a,o);break}let s=dr.object(t).passthrough(),l=dr.looseRecord(a,o);i=dr.intersection(s,l);break}if(n.patternProperties){let a=n.patternProperties,o=Object.keys(a),s=[];for(let t of o){let n=e(a[t],r),i=dr.string().regex(new RegExp(t));s.push(dr.looseRecord(i,n))}let l=[];
45if(Object.keys(t).length>0&&l.push(dr.object(t).passthrough()),l.push(...s),0===l.length)i=dr.object({}).passthrough();else if(1===l.length)i=l[0];else{let e=dr.intersection(l[0],l[1]);for(let t=2;t<l.length;t++)e=dr.intersection(e,l[t]);i=e}break}let s=dr.object(t);i=!1===n.additionalProperties?s.strict():"object"==typeof n.additionalProperties?s.catchall(e(n.additionalProperties,r)):s.passthrough();break}case"array":{let t=n.prefixItems,a=n.items;if(t&&Array.isArray(t)){let o=t.map(t=>e(t,r)),s=a&&"object"==typeof a&&!Array.isArray(a)?e(a,r):void 0;i=s?dr.tuple(o).rest(s):dr.tuple(o),"number"==typeof n.minItems&&(i=i.check(dr.minLength(n.minItems))),"number"==typeof n.maxItems&&(i=i.check(dr.maxLength(n.maxItems)))}else if(Array.isArray(a)){let t=a.map(t=>e(t,r)),o=n.additionalItems&&"object"==typeof n.additionalItems?e(n.additionalItems,r):void 0;i=o?dr.tuple(t).rest(o):dr.tuple(t),"number"==typeof n.minItems&&(i=i.check(dr.minLength(n.minItems))),"number"==typeof n.maxItems&&(i=i.check(dr.maxLength(n.maxItems)))}else if(void 0!==a){let t=e(a,r),o=dr.array(t);"number"==typeof n.minItems&&(o=o.min(n.minItems)),"number"==typeof n.maxItems&&(o=o.max(n.maxItems)),i=o}else i=dr.array(dr.any());break}default:throw Error(`Unsupported type: ${a}`)}return n.description&&(i=i.describe(n.description)),void 0!==n.default&&(i=i.default(n.default)),i}(t,n),i=t.type||void 0!==t.enum||void 0!==t.const;if(t.anyOf&&Array.isArray(t.anyOf)){let a=t.anyOf.map(t=>e(t,n)),o=dr.union(a);r=i?dr.intersection(r,o):o}if(t.oneOf&&Array.isArray(t.oneOf)){let a=t.oneOf.map(t=>e(t,n)),o=dr.xor(a);r=i?dr.intersection(r,o):o}if(t.allOf&&Array.isArray(t.allOf))if(0===t.allOf.length)r=i?r:dr.any();else{let a=i?r:e(t.allOf[0],n),o=+!i;for(let r=o;r<t.allOf.length;r++)a=dr.intersection(a,e(t.allOf[r],n));r=a}!0===t.nullable&&"openapi-3.0"===n.version&&(r=dr.nullable(r)),!0===t.readOnly&&(r=dr.readonly(r));let a={};for(let e of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])e in t&&(a[e]=t[e]);for(let e of["contentEncoding","contentMediaType","contentSchema"])e in t&&(a[e]=t[e]);for(let e of Object.keys(t))di.has(e)||(a[e]=t[e]);return Object.keys(a).length>0&&n.registry.add(r,a),r}(e,n)}function ds(e){return aP(lC,e)}function dl(e){return ot(u_,e)}function du(e){return ol(uI,e)}function dc(e){return oc(uN,e)}function dd(e){return ok(uV,e)}k(il())},3295:(e,t,n)=>{"use strict";function r(e){return!!e.write}function i(e){return"v"in e||"e"in e}function a(e){if("e"in e)throw e.e;if(!("v"in e))throw Error("[Bug] atom state is not initialized");return e.v}n.d(t,{MO:()=>l,ff:()=>D});let o=new WeakMap;function s(e){var t;return u(e)&&!!(null==(t=o.get(e))?void 0:t[0])}function l(e,t){let n=o.get(e);if(!n){n=[!0,new Set],o.set(e,n);let t=()=>{n[0]=!1};e.then(t,t)}n[1].add(t)}function u(e){return"function"==typeof(null==e?void 0:e.then)}function c(e,t,n){if(!n.p.has(e)){n.p.add(e);let r=()=>n.p.delete(e);t.then(r,r)}}function d(e,t,n){var r;let i=new Set;for(let t of(null==(r=n.get(e))?void 0:r.t)||[])i.add(t);for(let e of t.p)i.add(e);return i}let p=(e,t,...n)=>t.read(...n),f=(e,t,...n)=>t.write(...n),h=(e,t)=>{var n;return null==(n=t.INTERNAL_onInit)?void 0:n.call(t,e)},m=(e,t,n)=>{var r;return null==(r=t.onMount)?void 0:r.call(t,n)},g=(e,t)=>{var n;let r=C(e),i=r[0],a=r[6],o=r[9];if(!t)throw Error("Atom is undefined or null");let s=i.get(t);return s||(s={d:new Map,p:new Set,n:0},i.set(t,s),null==(n=a.i)||n.call(a,t),null==o||o(e,t)),s},v=e=>{let t=C(e),n=t[1],r=t[3],i=t[4],a=t[5],o=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{o.f&&u(o.f);let t=new Set,l=t.add.bind(t);r.forEach(e=>{var t;return null==(t=n.get(e))?void 0:t.l.forEach(l)}),r.clear(),a.forEach(l),a.clear(),i.forEach(l),i.clear(),t.forEach(u),r.size&&s(e)}while(r.size||a.size||i.size);if(l.length)throw AggregateError(l)},y=e=>{let t=C(e),n=t[1],r=t[2],i=t[3],a=t[11],o=t[14],s=t[17],l=[],u=new WeakSet,c=new WeakSet,p=Array.from(i);for(;p.length;){let t=p[p.length-1],i=a(e,t);if(c.has(t)){p.pop();continue}if(u.has(t)){if(r.get(t)===i.n)l.push([t,i]);
45else if(r.has(t))throw Error("[Bug] invalidated atom exists");c.add(t),p.pop();continue}for(let e of(u.add(t),d(t,i,n)))u.has(e)||p.push(e)}for(let t=l.length-1;t>=0;--t){let[n,a]=l[t],u=!1;for(let e of a.d.keys())if(e!==n&&i.has(e)){u=!0;break}u&&(o(e,n),s(e,n)),r.delete(n)}},_=new WeakSet,b=(e,t)=>{var n,o;let d,p,f=C(e),h=f[1],m=f[2],g=f[3],v=f[6],y=f[7],b=f[11],k=f[12],E=f[13],T=f[14],x=f[16],A=f[17],S=f[20],I=b(e,t);if(i(I)){if(h.has(t)&&m.get(t)!==I.n)return I;let n=!1;for(let[t,r]of I.d)if(T(e,t).n!==r){n=!0;break}if(!n)return I}I.d.clear();let w=!0;function N(){h.has(t)&&(A(e,t),E(e),k(e))}let O=I.n;try{_.delete(e);let o=y(e,t,function(n){var r;if(n===t){let t=b(e,n);if(!i(t))if("init"in n)S(e,n,n.init);else throw Error("no atom init");return a(t)}let o=T(e,n);try{return a(o)}finally{I.d.set(n,o.n),s(I.v)&&c(t,I.v,o),h.has(t)&&(null==(r=h.get(n))||r.t.add(t)),w||N()}},{get signal(){return d||(d=new AbortController),d.signal},get setSelf(){return console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),r(t)||console.warn("setSelf function cannot be used with read-only atom"),!p&&r(t)&&(p=(...n)=>{if(w&&console.warn("setSelf function cannot be called in sync"),!w)try{return x(e,t,...n)}finally{E(e),k(e)}}),p}});return _.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),S(e,t,o),u(o)&&(l(o,()=>null==d?void 0:d.abort()),o.then(N,N)),null==(n=v.r)||n.call(v,t),I}catch(e){return delete I.v,I.e=e,++I.n,I}finally{w=!1,O!==I.n&&m.get(t)===O&&(m.set(t,I.n),g.add(t),null==(o=v.c)||o.call(v,t))}},k=(e,t)=>{let n=C(e),r=n[1],i=n[2],a=n[11],o=[t];for(;o.length;){let t=o.pop(),n=a(e,t);for(let s of d(t,n,r)){let t=a(e,s);i.set(s,t.n),o.push(s)}}},E=(e,t,...n)=>{let r=C(e),i=r[3],o=r[6],s=r[8],l=r[11],u=r[12],c=r[13],d=r[14],p=r[15],f=r[16],h=r[17],m=r[20],g=!0;try{return s(e,t,t=>a(d(e,t)),(n,...r)=>{var a;let s=l(e,n);try{if(n!==t)return f(e,n,...r);{if(!("init"in n))throw Error("atom not writable");_.add(e);let t=s.n,l=r[0];m(e,n,l),h(e,n),t!==s.n&&(i.add(n),p(e,n),null==(a=o.c)||a.call(o,n));return}}finally{g||(c(e),u(e))}},...n)}finally{g=!1}},T=(e,t)=>{var n;let r=C(e),i=r[1],a=r[3],o=r[6],l=r[11],u=r[15],c=r[18],d=r[19],p=l(e,t),f=i.get(t);if(f&&!s(p.v)){for(let[r,i]of p.d)if(!f.d.has(r)){let s=l(e,r);c(e,r).t.add(t),f.d.add(r),i!==s.n&&(a.add(r),u(e,r),null==(n=o.c)||n.call(o,r))}for(let n of f.d)if(!p.d.has(n)){f.d.delete(n);let r=d(e,n);null==r||r.t.delete(t)}}},x=(e,t)=>{var n;let i=C(e),a=i[1],o=i[4],s=i[6],l=i[10],u=i[11],c=i[12],d=i[13],p=i[14],f=i[16],h=i[18],m=u(e,t),g=a.get(t);if(!g){for(let n of(p(e,t),m.d.keys()))h(e,n).t.add(t);g={l:new Set,d:new Set(m.d.keys()),t:new Set},a.set(t,g),r(t)&&o.add(()=>{let n=!0;try{let r=l(e,t,(...r)=>{try{return f(e,t,...r)}finally{n||(d(e),c(e))}});r&&(g.u=()=>{n=!0;try{r()}finally{n=!1}})}finally{n=!1}}),null==(n=s.m)||n.call(s,t)}return g},A=(e,t)=>{var n,r;let i=C(e),a=i[1],o=i[5],s=i[6],l=i[11],u=i[19],c=l(e,t),d=a.get(t);if(!d||d.l.size)return d;let p=!1;for(let e of d.t)if(null==(n=a.get(e))?void 0:n.d.has(t)){p=!0;break}if(!p){for(let n of(d.u&&o.add(d.u),d=void 0,a.delete(t),c.d.keys())){let r=u(e,n);null==r||r.t.delete(t)}null==(r=s.u)||r.call(s,t);return}return d},S=(e,t,n)=>{let r=C(e)[11],i=r(e,t),a="v"in i,s=i.v;if(u(n))for(let a of i.d.keys())c(t,n,r(e,a));i.v=n,delete i.e,a&&Object.is(s,i.v)||(++i.n,u(s)&&function(e){let t=o.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach(e=>e()))}(s))},I=(e,t)=>a((0,C(e)[14])(e,t)),w=(e,t,...n)=>{let r=C(e),i=r[12],a=r[13],o=r[16];try{return o(e,t,...n)}finally{a(e),i(e)}},N=(e,t,n)=>{let r=C(e),i=r[12],a=r[18],o=r[19],s=a(e,t).l;return s.add(n),i(e),()=>{s.delete(n),o(e,t),i(e)}},O=new WeakMap,C=e=>{let t=O.get(e);if(!t)throw Error("Store must be created by buildStore to read its building blocks");return t};function D(...e){let t={get:e=>(0,C(t)[21])(t,e),set:(e,...n)=>(0,C(t)[22])(t,e,...n),sub:(e,n)=>(0,C(t)[23])(t,e,n)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},p,f,h,m,g,v,y,b,k,E,T,x,A,S,I,w,N,void 0].map((t,n)=>e[n]||t);return O.set(t,Object.freeze(n)),t}},3351:(e,t,n)=>{"use strict";n.d(t,{kk:()=>o});var r,i=n(5834),a=n(6426);function o(e,t,n){return function(e,t,n){let r,i;"function"==typeof e?(r=t||[],i=n):(r=[],i=t);let o=a.useRef({hasResult:!1,result:i,error:null}),[s,l]=a.useReducer(e=>e+1,0),u=a.useMemo(()=>{let t="function"==typeof e?e():e;if(!t||"function"!=typeof t.subscribe)if(e===t)throw TypeError("Given argument to useObservable() was neither a valid observable nor a function.");else throw TypeError("Observable factory given to useObservable() did not return a valid observable.");if(!o.current.hasResult&&"undefined"!=typeof window&&("function"!=typeof t.hasValue||t.hasValue()))if("function"==typeof t.getValue)o.current.result=t.getValue(),o.current.hasResult=!0;else{let e=t.subscribe(e=>{o.current.result=e,o.current.hasResult=!0});"function"==typeof e?e():e.unsubscribe()}return t},r);if(a.useDebugValue(o.current.result),a.useEffect(()=>{let e=u.subscribe(e=>{let{current:t}=o;(null!==t.error||t.result!==e)&&(t.error=null,t.result=e,t.hasResult=!0,l())},e=>{let{current:t}=o;t.error!==e&&(t.error=e,l())});return"function"==typeof e?e:e.unsubscribe.bind(e)},r),o.current.error)throw o.current.error;return o.current.result}(()=>i.cf.liveQuery(e),t||[],n)}"undefined"!=typeof FinalizationRegistry&&new FinalizationRegistry(e=>{let t=i.cf.DexieYProvider;t&&t.release(e)}),Reflect.get(r||(r=n.t(a,2)),"use"),new WeakMap,new WeakMap,new WeakMap},3557:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},3681:(e,t,n)=>{"use strict";n.d(t,{Y_:()=>E});var r,i,a,o,s,l,u,c,d,p,f=n(6426),h=n(4366),m=n(6669),g=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)}
45,v=(e,t,n)=>(g(e,t,"read from private field"),n?n.call(e):t.get(e)),y=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},_=(e,t,n,r)=>(g(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),b=class{constructor(e=[]){y(this,r,void 0),y(this,i,"ready"),y(this,a,void 0),y(this,o,new Set),y(this,s,new Set),y(this,l,new Set),this.pushMessage=e=>{_(this,r,v(this,r).concat(e)),v(this,u).call(this)},this.popMessage=()=>{_(this,r,v(this,r).slice(0,-1)),v(this,u).call(this)},this.replaceMessage=(e,t)=>{_(this,r,[...v(this,r).slice(0,e),this.snapshot(t),...v(this,r).slice(e+1)]),v(this,u).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let n=t?function(e,t){return null!=t?m(e,t):e}(e,t):e;return v(this,o).add(n),()=>{v(this,o).delete(n)}},this["~registerStatusCallback"]=e=>(v(this,s).add(e),()=>{v(this,s).delete(e)}),this["~registerErrorCallback"]=e=>(v(this,l).add(e),()=>{v(this,l).delete(e)}),y(this,u,()=>{v(this,o).forEach(e=>e())}),y(this,c,()=>{v(this,s).forEach(e=>e())}),y(this,d,()=>{v(this,l).forEach(e=>e())}),_(this,r,e)}get status(){return v(this,i)}set status(e){_(this,i,e),v(this,c).call(this)}get error(){return v(this,a)}set error(e){_(this,a,e),v(this,d).call(this)}get messages(){return v(this,r)}set messages(e){_(this,r,[...e]),v(this,u).call(this)}};r=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap;var k=class extends h.vl{constructor({messages:e,...t}){let n=new b(e);super({...t,state:n}),y(this,p,void 0),this["~registerMessagesCallback"]=(e,t)=>v(this,p)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>v(this,p)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>v(this,p)["~registerErrorCallback"](e),_(this,p,n)}};function E({experimental_throttle:e,resume:t=!1,...n}={}){let r=(0,f.useRef)("chat"in n?{}:{onToolCall:n.onToolCall,onData:n.onData,onFinish:n.onFinish,onError:n.onError,sendAutomaticallyWhen:n.sendAutomaticallyWhen});"chat"in n||(r.current={onToolCall:n.onToolCall,onData:n.onData,onFinish:n.onFinish,onError:n.onError,sendAutomaticallyWhen:n.sendAutomaticallyWhen});let i={...n,onToolCall:e=>{var t,n;return null==(n=(t=r.current).onToolCall)?void 0:n.call(t,e)},onData:e=>{var t,n;return null==(n=(t=r.current).onData)?void 0:n.call(t,e)},onFinish:e=>{var t,n;return null==(n=(t=r.current).onFinish)?void 0:n.call(t,e)},onError:e=>{var t,n;return null==(n=(t=r.current).onError)?void 0:n.call(t,e)},sendAutomaticallyWhen:e=>{var t,n,i;return null!=(i=null==(n=(t=r.current).sendAutomaticallyWhen)?void 0:n.call(t,e))&&i}},a=(0,f.useRef)("chat"in n?n.chat:new k(i));("chat"in n&&n.chat!==a.current||"id"in n&&a.current.id!==n.id)&&(a.current="chat"in n?n.chat:new k(i));let o=(0,f.useCallback)(t=>a.current["~registerMessagesCallback"](t,e),[e,a.current.id]),s=(0,f.useSyncExternalStore)(o,()=>a.current.messages,()=>a.current.messages),l=(0,f.useSyncExternalStore)(a.current["~registerStatusCallback"],()=>a.current.status,()=>a.current.status),u=(0,f.useSyncExternalStore)(a.current["~registerErrorCallback"],()=>a.current.error,()=>a.current.error),c=(0,f.useCallback)(e=>{"function"==typeof e&&(e=e(a.current.messages)),a.current.messages=e},[a]);return(0,f.useEffect)(()=>{t&&a.current.resumeStream()},[t,a]),{id:a.current.id,messages:s,setMessages:c,sendMessage:a.current.sendMessage,regenerate:a.current.regenerate,clearError:a.current.clearError,stop:a.current.stop,error:u,resumeStream:a.current.resumeStream,status:l,addToolResult:a.current.addToolOutput,addToolOutput:a.current.addToolOutput,addToolApprovalResponse:a.current.addToolApprovalResponse}}p=new WeakMap},3954:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},4627:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},5065:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]])},5245:function(e,t,n){e.exports=function(){var e=function(t,n){return(e=Object.setPrototypeOf||(({__proto__:[]}
vendor: 54,001 bytes, line 45
45)instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(t,n)},t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,a=Object.keys,o=Array.isArray;function s(e,t){return"object"==typeof t&&a(t).forEach(function(n){e[n]=t[n]}),e}"undefined"==typeof Promise||i.Promise||(i.Promise=Promise);var l=Object.getPrototypeOf,u={}.hasOwnProperty;function c(e,t){return u.call(e,t)}function d(e,t){"function"==typeof t&&(t=t(l(e))),("undefined"==typeof Reflect?a:Reflect.ownKeys)(t).forEach(function(n){f(e,n,t[n])})}var p=Object.defineProperty;function f(e,t,n,r){p(e,t,s(n&&c(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function h(e){return{from:function(t){return e.prototype=Object.create(t.prototype),f(e.prototype,"constructor",e),{extend:d.bind(null,e.prototype)}}}}var m=Object.getOwnPropertyDescriptor,g=[].slice;function v(e,t,n){return g.call(e,t,n)}function y(e,t){return t(e)}function _(e){if(!e)throw Error("Assertion Failed")}function b(e){i.setImmediate?setImmediate(e):setTimeout(e,0)}function k(e,t){if("string"==typeof t&&c(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r<i;++r){var a=k(e,t[r]);n.push(a)}return n}var o,s=t.indexOf(".");return -1===s||null==(o=e[t.substr(0,s)])?void 0:k(o,t.substr(s+1))}function E(e,t,n){if(e&&void 0!==t&&!("isFrozen"in Object&&Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){_("string"!=typeof n&&"length"in n);for(var r=0,i=t.length;r<i;++r)E(e,t[r],n[r])}else{var a,s,l=t.indexOf(".");-1!==l?(a=t.substr(0,l),""===(l=t.substr(l+1))?void 0===n?o(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=n:E(s=(s=e[a])&&c(e,a)?s:e[a]={},l,n)):void 0===n?o(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function T(e){var t,n={};for(t in e)c(e,t)&&(n[t]=e[t]);return n}var x=[].concat;function A(e){return x.apply([],e)}var S="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(A([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return i[e]}),I=new Set(S.map(function(e){return i[e]})),w=null;function N(e){return w=new WeakMap,e=function e(t){if(!t||"object"!=typeof t)return t;var n=w.get(t);if(n)return n;if(o(t)){n=[],w.set(t,n);for(var r=0,i=t.length;r<i;++r)n.push(e(t[r]))}else if(I.has(t.constructor))n=t;else{var a,s=l(t);for(a in n=s===Object.prototype?{}:Object.create(s),w.set(t,n),t)c(t,a)&&(n[a]=e(t[a]))}return n}(e),w=null,e}var O={}.toString;function C(e){return O.call(e).slice(8,-1)}var D="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",$="symbol"==typeof D?function(e){var t;return null!=e&&(t=e[D])&&t.apply(e)}:function(){return null};function R(e,t){0<=(t=e.indexOf(t))&&e.splice(t,1)}var P={};function L(e){var t,n,r,i;if(1==arguments.length){if(o(e))return e.slice();if(this===P&&"string"==typeof e)return[e];if(i=$(e))for(n=[];!(r=i.next()).done;)n.push(r.value);else{if(null==e||"number"!=typeof(t=e.length))return[e];for(n=Array(t);t--;)n[t]=e[t]}}else for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}var M="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},S=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],U=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(S),z={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function F(e,t){this.name=e,this.message=t}function j(e,t){return e+". Errors: "+Object.keys(t).map(function(e){return t[e].toString()}).filter(function(e,t,n){return n.indexOf(e)===t}).join("\n")}function B(e,t,n,r){this.failures=t,this.failedKeys=r,this.successCount=n,this.message=j(e,t)}function H(e,t){this.name="BulkError",this.failures=Object.keys(t).map(function(e){return t[e]}),this.failuresByPos=t,this.message=j(e,this.failures)}h(F).from(Error).extend({toString:function(){return this.name+": "+this.message}}),h(B).from(F),h(H).from(F);var Z=U.reduce(function(e,t){return e[t]=t+"Error",e},{}),G=U.reduce(function(e,t){var n=t+"Error";function r(e,r){this.name=n,e?"string"==typeof e?(this.message="".concat(e).concat(r?"\n "+r:""),this.inner=r||null):"object"==typeof e&&(this.message="".concat(e.name," ").concat(e.message),this.inner=e):(this.message=z[t]||n,this.inner=null)}return h(r).from(F),e[t]=r,e},{}),q=(G.Syntax=SyntaxError,G.Type=TypeError,G.Range=RangeError,S.reduce(function(e,t){return e[t+"Error"]=G[t],e},{}));function K(){}function V(e){return e}function W(e,t){return null==e||e===V?t:function(n){return t(e(n))}}function Y(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function J(e,t){return e===K?t:function(){var n=e.apply(this,arguments),r=(void 0!==n&&(arguments[0]=n),this.onsuccess),i=this.onerror,a=(this.onsuccess=null,this.onerror=null,t.apply(this,arguments));return r&&(this.onsuccess=this.onsuccess?Y(r,this.onsuccess):r),i&&(this.onerror=this.onerror?Y(i,this.onerror):i),void 0!==a?a:n}}function X(e,t){return e===K?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?Y(n,this.onsuccess):n),r&&(this.onerror=this.onerror?Y(r,this.onerror):r)}}function Q(e,t){return e===K?t:function(n){var r=e.apply(this,arguments),n=(s(n,r),this.onsuccess),i=this.onerror,a=(this.onsuccess=null,this.onerror=null,t.apply(this,arguments));return n&&(this.onsuccess=this.onsuccess?Y(n,this.onsuccess):n),i&&(this.onerror=this.onerror?Y(i,this.onerror):i),void 0===r?void 0===a?void 0:a:s(r,a)}}function ee(e,t){return e===K?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function et(e,t){return e===K?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,a=Array(i);i--;)a[i]=arguments[i];return n.then(function(){return t.apply(r,a)})}return t.apply(this,arguments)}}(S=U.reduce(function(e,t){return -1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=G[t]),e},{})).ModifyError=B,S.DexieError=F,S.BulkError=H;var en="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),er={},ei="undefined"==typeof Promise?[]:(U=Promise.resolve(),"undefined"!=typeof crypto&&crypto.subtle?[ei=crypto.subtle.digest("SHA-512",new Uint8Array([0])),l(ei),U]:[U,l(U),U]),U=ei[0],ea=ei[1],ea=ea&&ea.then,eo=U&&U.constructor,es=!!ei[2],el=function(e,t){eg.push([e,t]),ec&&(queueMicrotask(eS),ec=!1)},eu=!0,ec=!0,ed=[],ep=[],ef=V,eh={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:K,pgp:!1,env:{},finalize:K},em=eh,eg=[],ev=0,ey=[];function e_(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=em;if("function"!=typeof e){if(e!==er)throw TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],!1===this._state&&eE(this,this._value)}else this._state=null,this._value=null,++t.ref,function e(t,n){try{n(function(n){if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&eI();n&&"function"==typeof n.then?e(t,function(e,t){n instanceof e_?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,eT(t)),r&&ew()}},eE.bind(null,t))}catch(e){eE(t,e)}}(this,e)}var eb={get:function(){var e=em,t=eL;function n(n,r){var i=this,a=!e.global&&(e!==em||t!==eL),o=a&&!eF(),s=new e_(function(t,s){ex(i,new ek(eq(n,e,a,o),eq(r,e,a,o),t,s,e))});return this._consoleTask&&(s._consoleTask=this._consoleTask),s}return n.prototype=er,n},set:function(e){f(this,"then",e&&e.prototype===er?eb:{get:function(){return e},set:eb.set})}};function ek(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function eE(e,t){var n;ep.push(t),null===e._state&&(n=e._lib&&eI(),t=ef(t),e._state=!1,e._value=t,ed.some(function(t){return t._value===e._value})||ed.push(e),eT(e),n)&&ew()}function eT(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)ex(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),0===ev&&(++ev,el(function(){0==--ev&&eN()},[]))}function ex(e,t){if(null===e._state)e._listeners.push(t);else{var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++ev,el(eA,[n,e,t])}}function eA(e,t,n){try{var r,i=t._value;!t._state&&ep.length&&(ep=[]),r=en&&t._consoleTask?t._consoleTask.run(function(){return e(i)}):e(i),t._state||-1!==ep.indexOf(i)||(e=>{for(var t=ed.length;t;)if(ed[--t]._value===e._value)return ed.splice(t,1)})(t),n.resolve(r)}catch(e){n.reject(e)}finally{0==--ev&&eN(),--n.psd.ref||n.psd.finalize()}}function eS(){eG(eh,function(){eI()&&ew()})}function eI(){var e=eu;return ec=eu=!1,e}function ew(){var e,t,n;do for(;0<eg.length;)for(e=eg,eg=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(0<eg.length);ec=eu=!0}function eN(){for(var e=ed,t=(ed=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)}),ey.slice(0)),n=t.length;n;)t[--n]()}function eO(e){return new e_(er,!1,e)}function eC(e,t){var n=em;return function(){var r=eI(),i=em;try{return eH(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{eH(i,!1),r&&ew()}}}d(e_.prototype,{then:eb,_then:function(e,t){ex(this,new ek(null,null,e,t,em))},catch:function(e){var t;return 1==arguments.length?this.then(null,e):(t=arguments[1],"function"==typeof e?this.then(null,function(n){return(n instanceof e?t:eO)(n)}):this.then(null,function(n){return(n&&n.name===e?t:eO)(n)}))},finally:function(e){return this.then(function(t){return e_.resolve(e()).then(function(){return t})},function(t){return e_.resolve(e()).then(function(){return eO(t)})})},timeout:function(e,t){var n=this;return e<1/0?new e_(function(r,i){var a=setTimeout(function(){return i(new G.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,a))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&f(e_.prototype,Symbol.toStringTag,"Dexie.Promise"),eh.env=eZ(),d(e_,{all:function(){var e=L.apply(null,arguments).map(ej);return new e_(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(function(i,a){return e_.resolve(i).then(function(n){e[a]=n,--r||t(e)},n)})})},resolve:function(e){return e instanceof e_?e:e&&"function"==typeof e.then?new e_(function(t,n){e.then(t,n)}):new e_(er,!0,e)},reject:eO,race:function(){var e=L.apply(null,arguments).map(ej);return new e_(function(t,n){e.map(function(e){return e_.resolve(e).then(t,n)})})},PSD:{get:function(){return em},set:function(e){return em=e}},totalEchoes:{get:function(){return eL}},newPSD:eU,usePSD:eG,scheduler:{get:function(){return el},set:function(e){el=e}},rejectionMapper:{get:function(){return ef},set:function(e){ef=e}},follow:function(e,t){return new e_(function(n,r){return eU(function(t,n){var r=em;r.unhandleds=[],r.onunhandled=n,r.finalize=Y(function(){var e,r=this;e=function(){0===r.unhandleds.length?t():n(r.unhandleds[0])},ey.push(function t(){e(),ey.splice(ey.indexOf(t),1)}),++ev,el(function(){0==--ev&&eN()},[])},r.finalize),e()},t,n,r)})}}),eo&&(eo.allSettled&&f(e_,"allSettled",function(){var e=L.apply(null,arguments).map(ej);return new e_(function(t){0===e.length&&t([]);var n=e.length,r=Array(n);e.forEach(function(e,i){return e_.resolve(e).then(function(e){return r[i]={status:"fulfilled",value:e}},function(e){return r[i]={status:"rejected",reason:e}}).then(function(){return--n||t(r)})})})}),eo.any&&"undefined"!=typeof AggregateError&&f(e_,"any",function(){var e=L.apply(null,arguments).map(ej);return new e_(function(t,n){0===e.length&&n(AggregateError([]));var r=e.length,i=Array(r);e.forEach(function(e,a){return e_.resolve(e).then(function(e){return t(e)},function(e){i[a]=e,--r||n(AggregateError(i))})})})}),eo.withResolvers)&&(e_.withResolvers=eo.withResolvers);var eD={awaits:0,echoes:0,id:0},e$=0,eR=[],eP=0,eL=0,eM=0;function eU(e,t,n,r){var i=em,a=Object.create(i),t=(a.parent=i,a.ref=0,a.global=!1,a.id=++eM,eh.env,a.env=es?{Promise:e_,PromiseProp:{value:e_,configurable:!0,writable:!0},all:e_.all,race:e_.race,allSettled:e_.allSettled,any:e_.any,resolve:e_.resolve,reject:e_.reject}:{},t&&s(a,t),++i.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()},eG(a,e,n,r));return 0===a.ref&&a.finalize(),t}function ez(){return eD.id||(eD.id=++e$),++eD.awaits,eD.echoes+=100,eD.id}function eF(){return!!eD.awaits&&(0==--eD.awaits&&(eD.id=0),eD.echoes=100*eD.awaits,!0)}function ej(e){return eD.echoes&&e&&e.constructor===eo?(ez(),e.then(function(e){return eF(),e},function(e){return eF(),eV(e)})):e}function eB(){var e=eR[eR.length-1];eR.pop(),eH(e,!1)}function eH(e,t){var n,r,a=em;(t?!eD.echoes||eP++&&e===em:!eP||--eP&&e===em)||queueMicrotask(t?(function(e){++eL,eD.echoes&&0!=--eD.echoes||(eD.echoes=eD.awaits=eD.id=0),eR.push(em),eH(e,!0)}).bind(null,e):eB),e!==em&&(em=e,a===eh&&(eh.env=eZ()),es)&&(n=eh.env.Promise,r=e.env,a.global||e.global)&&(Object.defineProperty(i,"Promise",r.PromiseProp),n.all=r.all,n.race=r.race,n.resolve=r.resolve,n.reject=r.reject,r.allSettled&&(n.allSettled=r.allSettled),r.any)&&(n.any=r.any)}function eZ(){var e=i.Promise;return es?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function eG(e,t,n,r,i){var a=em;try{return eH(e,!0),t(n,r,i)}finally{eH(a,!1)}}function eq(e,t,n,r){return"function"!=typeof e?e:function(){var i=em;n&&ez(),eH(t,!0);try{return e.apply(this,arguments)}finally{eH(i,!1),r&&queueMicrotask(eF)}}}function eK(e){Promise===eo&&0===eD.echoes?0===eP?e():enqueueNativeMicroTask(e):setTimeout(e,0)}-1===(""+ea).indexOf("[native code]")&&(ez=eF=K);var eV=e_.reject,eW=String.fromCharCode(65535),eY="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",eJ="String expected.",eX="__dbnames",eQ="readonly",e0="readwrite";function e1(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var e2={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function e4(e){return"string"!=typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&delete(t=N(t))[e],t}}function e6(){throw G.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function e3(e,t){try{var n=e5(e),r=e5(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return t<e?1:e<t?-1:0;case"binary":for(var i=e9(e),a=e9(t),o=i.length,s=a.length,l=o<s?o:s,u=0;u<l;++u)if(i[u]!==a[u])return i[u]<a[u]?-1:1;return o===s?0:o<s?-1:1;case"Array":for(var c=e.length,d=t.length,p=c<d?c:d,f=0;f<p;++f){var h=e3(e[f],t[f]);if(0!==h)return h}return c===d?0:c<d?-1:1}}catch(e){}return NaN}function e5(e){var t=typeof e;return"object"==t&&(ArrayBuffer.isView(e)||"ArrayBuffer"===(t=C(e)))?"binary":t}function e9(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function e8(e,t,n){var r=e.schema.yProps;return r?(t&&0<n.numFailures&&(t=t.filter(function(e,t){return!n.failures[t]})),Promise.all(r.map(function(n){return n=n.updatesTable,t?e.db.table(n).where("k").anyOf(t).delete():e.db.table(n).clear()})).then(function(){return n})):n}function e7(e){this["@@propmod"]=e}function te(e,t){for(var n=a(t),r=n.length,i=!1,o=0;o<r;++o){var s=n[o],l=t[s],u=k(e,s);l instanceof e7?(E(e,s,l.execute(u)),i=!0):u!==l&&(E(e,s,l),i=!0)}return i}function tt(){}function tn(e){function t(t,r){if(r){for(var i=arguments.length,a=Array(i-1);--i;)a[i-1]=arguments[i];return n[t].subscribe.apply(null,a),e}if("string"==typeof t)return n[t]}var n={};t.addEventType=s;for(var r=1,i=arguments.length;r<i;++r)s(arguments[r]);return t;function s(e,r,i){var l;if("object"!=typeof e)return r=r||ee,l={subscribers:[],fire:i=i||K,subscribe:function(e){-1===l.subscribers.indexOf(e)&&(l.subscribers.push(e),l.fire=r(l.fire,e))},unsubscribe:function(e){l.subscribers=l.subscribers.filter(function(t){return t!==e}),l.fire=l.subscribers.reduce(r,i)}},n[e]=t[e]=l;a(e).forEach(function(t){var n=e[t];if(o(n))s(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new G.InvalidArgument("Invalid event config");var r=s(t,V,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach(function(e){b(function(){e.apply(null,t)})})})}})}}function tr(e,t){return h(t).from({prototype:e}),t}function ti(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function ta(e,t){e.filter=e1(e.filter,t)}function to(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return e1(r(),t())}:t,e.justLimit=n&&!r}function ts(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(n)return n;throw new G.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed")}function tl(e,t,n){var r=ts(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function tu(e,t,n,r){var i,a,o=e.replayFilter?e1(e.filter,e.replayFilter()):e.filter;return e.or?(i={},a=function(e,n,r){var a,s;o&&!o(n,r,function(e){return n.stop(e)},function(e){return n.fail(e)})||("[object ArrayBuffer]"==(s=""+(a=n.primaryKey))&&(s=""+new Uint8Array(a)),c(i,s))||(i[s]=!0,t(e,n,r))},Promise.all([e.or._iterate(a,n),tc(tl(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])):tc(tl(e,r,n),e1(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function tc(e,t,n,r){var i=eC(r?function(e,t,i){return n(r(e),t,i)}:n);return e.then(function(e){if(e)return e.start(function(){var n=function(){return e.continue()};t&&!t(e,function(e){return n=e},function(t){e.stop(t),n=K},function(t){e.fail(t),n=K})||i(e.value,e,function(e){return n=e}),n()})})}function td(){}e7.prototype.execute=function(e){var t=this["@@propmod"];if(void 0!==t.add){var n=t.add;if(o(n))return r(r([],o(e)?e:[],!0),n,!0).sort();if("number"==typeof n)return(Number(e)||0)+n;if("bigint"==typeof n)try{return BigInt(e)+n}catch(e){return BigInt(0)+n}throw TypeError("Invalid term ".concat(n))}if(void 0!==t.remove){var i=t.remove;if(o(i))return o(e)?e.filter(function(e){return!i.includes(e)}).sort():[];if("number"==typeof i)return Number(e)-i;if("bigint"==typeof i)try{return BigInt(e)-i}catch(e){return BigInt(0)-i}throw TypeError("Invalid subtrahend ".concat(i))}return(n=null==(n=t.replacePrefix)?void 0:n[0])&&"string"==typeof e&&e.startsWith(n)?t.replacePrefix[1]+e.substring(n.length):e},tt.prototype._trans=function(e,t,n){var r=this._tx||em.trans,i=this.name,a=en&&"undefined"!=typeof console&&console.createTask&&console.createTask("Dexie: ".concat("readonly"===e?"read":"write"," ").concat(this.name));function o(e,n,r){if(r.schema[i])return t(r.idbtrans,r);throw new G.NotFound("Table "+i+" not part of transaction")}var s=eI();try{var l=r&&r.db._novip===this.db._novip?r===em.trans?r._promise(e,o,n):eU(function(){return r._promise(e,o,n)},{trans:r,transless:em.transless||em}):function e(t,n,r,i){if(t.idbdb&&(t._state.openComplete||em.letThrough||t._vip)){var a=t._createTransaction(n,r,t._dbSchema);try{a.create(),t._state.PR1398_maxLoop=3}catch(a){return a.name===Z.InvalidState&&t.isOpen()&&0<--t._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),t.close({disableAutoOpen:!1}),t.open().then(function(){return e(t,n,r,i)})):eV(a)}return a._promise(n,function(e,t){return eU(function(){return em.trans=a,i(e,t,a)})}).then(function(e){if("readwrite"===n)try{a.idbtrans.commit()}catch(e){}return"readonly"===n?e:a._completion.then(function(){return e})})}if(t._state.openComplete)return eV(new G.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen)return eV(new G.DatabaseClosed);t.open().catch(K)}return t._state.dbReadyPromise.then(function(){return e(t,n,r,i)})}(this.db,e,[this.name],o);return a&&(l._consoleTask=a,l=l.catch(function(e){return console.trace(e),eV(e)})),l}finally{s&&ew()}},tt.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):null==e?eV(new G.Type("Invalid argument to Table.get()")):this._trans("readonly",function(t){return n.core.get({trans:t,key:e}).then(function(e){return n.hook.reading.fire(e)})}).then(t)},tt.prototype.where=function(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(o(e))return new this.db.WhereClause(this,"[".concat(e.join("+"),"]"));var t=a(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter(function(e){if(e.compound&&t.every(function(t){return 0<=e.keyPath.indexOf(t)})){for(var n=0;n<t.length;++n)if(-1===t.indexOf(e.keyPath[n]))return!1;return!0}return!1}).sort(function(e,t){return e.keyPath.length-t.keyPath.length})[0];if(n&&this.db._maxKey!==eW)return i=n.keyPath.slice(0,t.length),this.where(i).equals(i.map(function(t){return e[t]}));!n&&en&&console.warn("The query ".concat(JSON.stringify(e)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(t.join("+"),"]"));var r=this.schema.idxByName,i=t.reduce(function(t,n){var i=t[0],t=t[1],a=r[n],s=e[n];return[i||a,i||!a?e1(t,a&&a.multi?function(e){return o(e=k(e,n))&&e.some(function(e){return 0===e3(s,e)})}:function(e){return 0===e3(s,k(e,n))}):t]},[null,null]),s=i[0],i=i[1];return s?this.where(s.name).equals(e[s.keyPath]).filter(i):n?this.filter(i):this.where(t).equals("")},tt.prototype.filter=function(e){return this.toCollection().and(e)},tt.prototype.count=function(e){return this.toCollection().count(e)},tt.prototype.offset=function(e){return this.toCollection().offset(e)},tt.prototype.limit=function(e){return this.toCollection().limit(e)},tt.prototype.each=function(e){return this.toCollection().each(e)},tt.prototype.toArray=function(e){return this.toCollection().toArray(e)},tt.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},tt.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,o(e)?"[".concat(e.join("+"),"]"):e))},tt.prototype.reverse=function(){return this.toCollection().reverse()},tt.prototype.mapToClass=function(t){for(var n=this.db,r=this.name,i=((this.schema.mappedClass=t).prototype instanceof e6&&(t=(t=>{if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=a}function a(){return null!==t&&t.apply(this,arguments)||this}return e(a,t),a.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i),Object.defineProperty(a.prototype,"db",{get:function(){return n},enumerable:!1,configurable:!0}),a.prototype.table=function(){return r},a})(t)),new Set),a=t.prototype;a;a=l(a))Object.getOwnPropertyNames(a).forEach(function(e){return i.add(e)});function o(e){if(!e)return e;var n,r=Object.create(t.prototype);for(n in e)if(!i.has(n))try{r[n]=e[n]}catch(e){}return r}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=o,this.hook("reading",o),t},tt.prototype.defineClass=function(){return this.mapToClass(function(e){s(this,e)})},tt.prototype.add=function(e,t){var n=this,r=this.schema.primKey,i=r.auto,a=r.keyPath,o=e;return a&&i&&(o=e4(a)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[o]})}).then(function(e){return e.numFailures?e_.reject(e.failures[0]):e.lastResult}).then(function(t){if(a)try{E(e,a,t)}catch(e){}return t})},tt.prototype.upsert=function(e,t){var n=this,r=this.schema.primKey.keyPath;return this._trans("readwrite",function(i){return n.core.get({trans:i,key:e}).then(function(a){var o=null!=a?a:{};return te(o,t),r&&E(o,r,e),n.core.mutate({trans:i,type:"put",values:[o],keys:[e],upsert:!0,updates:{keys:[e],changeSpecs:[t]}}).then(function(e){return e.numFailures?e_.reject(e.failures[0]):!!a})})})},tt.prototype.update=function(e,t){return"object"!=typeof e||o(e)?this.where(":id").equals(e).modify(t):void 0===(e=k(e,this.schema.primKey.keyPath))?eV(new G.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(e).modify(t)},tt.prototype.put=function(e,t){var n=this,r=this.schema.primKey,i=r.auto,a=r.keyPath,o=e;return a&&i&&(o=e4(a)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"put",values:[o],keys:null!=t?[t]:null})}).then(function(e){return e.numFailures?e_.reject(e.failures[0]):e.lastResult}).then(function(t){if(a)try{E(e,a,t)}catch(e){}return t})},tt.prototype.delete=function(e){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]}).then(function(n){return e8(t,[e],n)}).then(function(e){return e.numFailures?e_.reject(e.failures[0]):void 0})})},tt.prototype.clear=function(){var e=this;return this._trans("readwrite",function(t){return e.core.mutate({trans:t,type:"deleteRange",range:e2}).then(function(t){return e8(e,null,t)})}).then(function(e){return e.numFailures?e_.reject(e.failures[0]):void 0})},tt.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",function(n){return t.core.getMany({keys:e,trans:n}).then(function(e){return e.map(function(e){return t.hook.reading.fire(e)})})})},tt.prototype.bulkAdd=function(e,t,n){var r=this,i=Array.isArray(t)?t:void 0,a=(n=n||(i?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=r.schema.primKey,o=n.auto,n=n.keyPath;if(n&&i)throw new G.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==e.length)throw new G.InvalidArgument("Arguments objects and keys must have the same length");var s=e.length,o=n&&o?e.map(e4(n)):e;return r.core.mutate({trans:t,type:"add",keys:i,values:o,wantResults:a}).then(function(e){var t=e.numFailures,n=e.failures;if(0===t)return a?e.results:e.lastResult;throw new H("".concat(r.name,".bulkAdd(): ").concat(t," of ").concat(s," operations failed"),n)})})},tt.prototype.bulkPut=function(e,t,n){var r=this,i=Array.isArray(t)?t:void 0,a=(n=n||(i?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=r.schema.primKey,o=n.auto,n=n.keyPath;if(n&&i)throw new G.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==e.length)throw new G.InvalidArgument("Arguments objects and keys must have the same length");var s=e.length,o=n&&o?e.map(e4(n)):e;return r.core.mutate({trans:t,type:"put",keys:i,values:o,wantResults:a}).then(function(e){var t=e.numFailures,n=e.failures;if(0===t)return a?e.results:e.lastResult;throw new H("".concat(r.name,".bulkPut(): ").concat(t," of ").concat(s," operations failed"),n)})})},tt.prototype.bulkUpdate=function(e){var t=this,n=this.core,r=e.map(function(e){return e.key}),i=e.map(function(e){return e.changes}),a=[];return this._trans("readwrite",function(o){return n.getMany({trans:o,keys:r,cache:"clone"}).then(function(s){var l=[],u=[],c=(e.forEach(function(e,n){var r=e.key,i=e.changes,o=s[n];if(o){for(var c=0,d=Object.keys(i);c<d.length;c++){var p=d[c],f=i[p];if(p===t.schema.primKey.keyPath){if(0!==e3(f,r))throw new G.Constraint("Cannot update primary key in bulkUpdate()")}else E(o,p,f)}a.push(n),l.push(r),u.push(o)}}),l.length);return n.mutate({trans:o,type:"put",keys:l,values:u,updates:{keys:r,changeSpecs:i}}).then(function(e){var n=e.numFailures,r=e.failures;if(0===n)return c;for(var i=0,o=Object.keys(r);i<o.length;i++){var s,l=o[i],u=a[Number(l)];null!=u&&(s=r[l],delete r[l],r[u]=s)}throw new H("".concat(t.name,".bulkUpdate(): ").concat(n," of ").concat(c," operations failed"),r)})})})},tt.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:e}).then(function(n){return e8(t,e,n)})}).then(function(e){var r=e.numFailures,i=e.failures;if(0===r)return e.lastResult;throw new H("".concat(t.name,".bulkDelete(): ").concat(r," of ").concat(n," operations failed"),i)})},td.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,eV.bind(null,n.error)):n.table._trans("readonly",e).then(t)},td.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,eV.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},td.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=e1(t.algorithm,e)},td.prototype._iterate=function(e,t){return tu(this._ctx,e,t,this._ctx.table.core)},td.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&s(n,e),t._ctx=n,t},td.prototype.raw=function(){return this._ctx.valueMapper=null,this},td.prototype.each=function(e){var t=this._ctx;return this._read(function(n){return tu(t,e,n,t.table.core)})},td.prototype.count=function(e){var t=this;return this._read(function(e){var n,r=t._ctx,i=r.table.core;return ti(r,!0)?i.count({trans:e,query:{index:ts(r,i.schema),range:r.range}}).then(function(e){return Math.min(e,r.limit)}):(n=0,tu(r,function(){return++n,!1},e,i).then(function(){return n}))}).then(e)},td.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],i=n.length-1;function a(e,t){return t?a(e[n[t]],t-1):e[r]}var o="next"===this._ctx.dir?1:-1;function s(e,t){return e3(a(e,i),a(t,i))*o}return this.toArray(function(e){return e.sort(s)}).then(t)},td.prototype.toArray=function(e){var t=this;return this._read(function(e){var n,r,i,a=t._ctx;return ti(a,!0)&&0<a.limit?(n=a.valueMapper,r=ts(a,a.table.core.schema),a.table.core.query({trans:e,limit:a.limit,values:!0,direction:"prev"===a.dir?"prev":void 0,query:{index:r,range:a.range}}).then(function(e){return e=e.result,n?e.map(n):e})):(i=[],tu(a,function(e){return i.push(e)},e,a.table.core).then(function(){return i}))},e)},td.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,ti(t)?to(t,function(){var t=e;return function(e,n){return 0===t||(1===t?--t:n(function(){e.advance(t),t=0}),!1)}}):to(t,function(){var t=e;return function(){return--t<0}})),this},td.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),to(this._ctx,function(){var t=e;return function(e,n,r){return--t<=0&&n(r),0<=t}},!0),this},td.prototype.until=function(e,t){return ta(this._ctx,function(n,r,i){return!e(n.value)||(r(i),t)}),this},td.prototype.first=function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},td.prototype.last=function(e){return this.reverse().first(e)},td.prototype.filter=function(e){var t;return ta(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=e1(t.isMatch,e),this},td.prototype.and=function(e){return this.filter(e)},td.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},td.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},td.prototype.desc=function(){return this.reverse()},td.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})},td.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},td.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})},td.prototype.keys=function(e){var t=this._ctx,n=(t.keysOnly=!t.isMatch,[]);return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)},td.prototype.primaryKeys=function(e){var t=this._ctx;if(ti(t,!0)&&0<t.limit)return this._read(function(e){var n=ts(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,direction:"prev"===t.dir?"prev":void 0,query:{index:n,range:t.range}})}).then(function(e){return e.result}).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)},td.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},td.prototype.firstKey=function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},td.prototype.lastKey=function(e){return this.reverse().firstKey(e)},td.prototype.distinct=function(){var e,t=this._ctx,t=t.index&&t.table.schema.idxByName[t.index];return t&&t.multi&&(e={},ta(this._ctx,function(t){var t=t.primaryKey.toString(),n=c(e,t);return e[t]=!0,!n})),this},td.prototype.modify=function(e){var t=this,n=this._ctx;return this._write(function(r){function i(e,t){var n=t.failures;f+=e-t.numFailures;for(var r=0,i=a(n);r<i.length;r++){var o=i[r];p.push(n[o])}}var o="function"==typeof e?e:function(t){return te(t,e)},s=n.table.core,l=s.schema.primaryKey,u=l.outbound,c=l.extractKey,d=200,l=t.db._options.modifyChunkSize,p=(l&&(d="object"==typeof l?l[s.name]||l["*"]||200:l),[]),f=0,h=[],m=e===tp;return t.clone().primaryKeys().then(function(t){var a=ti(n)&&n.limit===1/0&&("function"!=typeof e||m)&&{index:n.index,range:n.range};return(function l(p){var f=Math.min(d,t.length-p),h=t.slice(p,p+f);return(m?Promise.resolve([]):s.getMany({trans:r,keys:h,cache:"immutable"})).then(function(g){var v=[],y=[],_=u?[]:null,b=m?h:[];if(!m)for(var k=0;k<f;++k){var E=g[k],T={value:N(E),primKey:t[p+k]};!1!==o.call(T,T.value,T)&&(null==T.value?b.push(t[p+k]):u||0===e3(c(E),c(T.value))?(y.push(T.value),u&&_.push(t[p+k])):(b.push(t[p+k]),v.push(T.value)))}return Promise.resolve(0<v.length&&s.mutate({trans:r,type:"add",values:v}).then(function(e){for(var t in e.failures)b.splice(parseInt(t),1);i(v.length,e)})).then(function(){return(0<y.length||a&&"object"==typeof e)&&s.mutate({trans:r,type:"put",keys:_,values:y,criteria:a,changeSpec:"function"!=typeof e&&e,isAdditionalChunk:0<p}).then(function(e){return i(y.length,e)})}).then(function(){return(0<b.length||a&&m)&&s.mutate({trans:r,type:"delete",keys:b,criteria:a,isAdditionalChunk:0<p}).then(function(e){return e8(n.table,b,e)}).then(function(e){return i(b.length,e)})}).then(function(){return t.length>p+f&&l(p+d)})})})(0).then(function(){if(0<p.length)throw new B("Error modifying one or more objects",p,f,h);return t.length})})})},td.prototype.delete=function(){var e=this._ctx,t=e.range;return ti(e)&&!e.table.schema.yProps&&(e.isPrimKey||3===t.type)?this._write(function(n){var r=e.table.core.schema.primaryKey;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(function(r){return e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(function(e){var t=e.failures,e=e.numFailures;if(e)throw new B("Could not delete some values",Object.keys(t).map(function(e){return t[e]}),r-e);return r-e})})}):this.modify(tp)};var tp=function(e,t){return t.value=null};function tf(e,t){return e<t?-1:+(e!==t)}function th(e,t){return t<e?-1:+(e!==t)}function tm(e,t,n){return(e=e instanceof tb?new e.Collection(e):e)._ctx.error=new(n||TypeError)(t),e}function tg(e){return new e.Collection(e,function(){return t_("")}).limit(0)}function tv(e,t,n,r){var i,a,o,s,l,u,c,d=n.length;if(!n.every(function(e){return"string"==typeof e}))return tm(e,eJ);function p(e){i="next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()},a="next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()},o="next"===e?tf:th;var t=n.map(function(e){return{lower:a(e),upper:i(e)}}).sort(function(e,t){return o(e.lower,t.lower)});s=t.map(function(e){return e.upper}),l=t.map(function(e){return e.lower}),c="next"===(u=e)?"":r}p("next");var e=new e.Collection(e,function(){return ty(s[0],l[d-1]+r)}),f=(e._ondirectionchange=function(e){p(e)},0);return e._addAlgorithm(function(e,n,r){var i=e.key;if("string"==typeof i){var p=a(i);if(t(p,l,f))return!0;for(var h=null,m=f;m<d;++m){var g=((e,t,n,r,i,a)=>{for(var o=Math.min(e.length,r.length),s=-1,l=0;l<o;++l){var u=t[l];if(u!==r[l])return 0>i(e[l],n[l])?e.substr(0,l)+n[l]+n.substr(l+1):0>i(e[l],r[l])?e.substr(0,l)+r[l]+n.substr(l+1):0<=s?e.substr(0,s)+t[s]+n.substr(s+1):null;0>i(e[l],u)&&(s=l)}return o<r.length&&"next"===a?e+n.substr(e.length):o<e.length&&"prev"===a?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.substr(s+1)})(i,p,s[m],l[m],o,u);null===g&&null===h?f=m+1:(null===h||0<o(h,g))&&(h=g)}n(null!==h?function(){e.continue(h+c)}:r)}return!1}),e}function ty(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function t_(e){return{type:1,lower:e,upper:e}}Object.defineProperty(tk.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),tk.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return 0<this._cmp(e,t)||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?tg(this):new this.Collection(this,function(){return ty(e,t,!n,!r)})}catch(e){return tm(this,eY)}},tk.prototype.equals=function(e){return null==e?tm(this,eY):new this.Collection(this,function(){return t_(e)})},tk.prototype.above=function(e){return null==e?tm(this,eY):new this.Collection(this,function(){return ty(e,void 0,!0)})},tk.prototype.aboveOrEqual=function(e){return null==e?tm(this,eY):new this.Collection(this,function(){return ty(e,void 0,!1)})},tk.prototype.below=function(e){return null==e?tm(this,eY):new this.Collection(this,function(){return ty(void 0,e,!1,!0)})},tk.prototype.belowOrEqual=function(e){return null==e?tm(this,eY):new this.Collection(this,function(){return ty(void 0,e)})},tk.prototype.startsWith=function(e){return"string"!=typeof e?tm(this,eJ):this.between(e,e+eW,!0,!0)},tk.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):tv(this,function(e,t){return 0===e.indexOf(t[0])},[e],eW)},tk.prototype.equalsIgnoreCase=function(e){return tv(this,function(e,t){return e===t[0]},[e],"")},tk.prototype.anyOfIgnoreCase=function(){var e=L.apply(P,arguments);return 0===e.length?tg(this):tv(this,function(e,t){return -1!==t.indexOf(e)},e,"")},tk.prototype.startsWithAnyOfIgnoreCase=function(){var e=L.apply(P,arguments);return 0===e.length?tg(this):tv(this,function(e,t){return t.some(function(t){return 0===e.indexOf(t)})},e,eW)},tk.prototype.anyOf=function(){var e,t,n=this,r=L.apply(P,arguments),i=this._cmp;try{r.sort(i)}catch(e){return tm(this,eY)}return 0===r.length?tg(this):((e=new this.Collection(this,function(){return ty(r[0],r[r.length-1])}))._ondirectionchange=function(e){i="next"===e?n._ascending:n._descending,r.sort(i)},t=0,e._addAlgorithm(function(e,n,a){for(var o=e.key;0<i(o,r[t]);)if(++t===r.length)return n(a),!1;return 0===i(o,r[t])||(n(function(){e.continue(r[t])}),!1)}),e)},tk.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},tk.prototype.noneOf=function(){var e=L.apply(P,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return tm(this,eY)}var t=e.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]},null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},tk.prototype.inAnyRange=function(e,t){var n=this,r=this._cmp,i=this._ascending,a=this._descending,o=this._min,s=this._max;if(0===e.length)return tg(this);if(!e.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&0>=i(e[0],e[1])}))return tm(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",G.InvalidArgument);var l,u=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers,d=i;function p(e,t){return d(e[0],t[0])}try{(l=e.reduce(function(e,t){for(var n=0,i=e.length;n<i;++n){var a=e[n];if(0>r(t[0],a[1])&&0<r(t[1],a[0])){a[0]=o(a[0],t[0]),a[1]=s(a[1],t[1]);break}}return n===i&&e.push(t),e},[])).sort(p)}catch(e){return tm(this,eY)}var f=0,h=c?function(e){return 0<i(e,l[f][1])}:function(e){return 0<=i(e,l[f][1])},m=u?function(e){return 0<a(e,l[f][0])}:function(e){return 0<=a(e,l[f][0])},g=h,t=new this.Collection(this,function(){return ty(l[0][0],l[l.length-1][1],!u,!c)});return t._ondirectionchange=function(e){d="next"===e?(g=h,i):(g=m,a),l.sort(p)},t._addAlgorithm(function(e,t,r){for(var a=e.key;g(a);)if(++f===l.length)return t(r),!1;return!h(a)&&!m(a)||(0===n._cmp(a,l[f][1])||0===n._cmp(a,l[f][0])||t(function(){d===i?e.continue(l[f][0]):e.continue(l[f][1])}),!1)}),t},tk.prototype.startsWithAnyOf=function(){var e=L.apply(P,arguments);return e.every(function(e){return"string"==typeof e})?0===e.length?tg(this):this.inAnyRange(e.map(function(e){return[e,e+eW]})):tm(this,"startsWithAnyOf() only works with strings")};var tb=tk;function tk(){}function tE(e){return eC(function(t){return tT(t),e(t.target.error),!1})}function tT(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var tx="storagemutated",tA="x-storagemutated-1",tS=tn(null,tx),tI=(tw.prototype._lock=function(){return _(!em.global),++this._reculock,1!==this._reculock||em.global||(em.lockOwnerFor=this),this},tw.prototype._unlock=function(){if(_(!em.global),0==--this._reculock)for(em.global||(em.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var e=this._blockedFuncs.shift();try{eG(e[1],e[0])}catch(e){}}return this},tw.prototype._locked=function(){return this._reculock&&em.lockOwnerFor!==this},tw.prototype.create=function(e){var t=this;if(this.mode){var n=this.db.idbdb,r=this.db._state.dbOpenError;if(_(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new G.DatabaseClosed(r);case"MissingAPIError":throw new G.MissingAPI(r.message,r);default:throw new G.OpenFailed(r)}if(!this.active)throw new G.TransactionInactive;_(null===this._completion._state),(e=this.idbtrans=e||(this.db.core||n).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=eC(function(n){tT(n),t._reject(e.error)}),e.onabort=eC(function(n){tT(n),t.active&&t._reject(new G.Abort(e.error)),t.active=!1,t.on("abort").fire(n)}),e.oncomplete=eC(function(){t.active=!1,t._resolve(),"mutatedParts"in e&&tS.storagemutated.fire(e.mutatedParts)})}return this},tw.prototype._promise=function(e,t,n){var r,i=this;return"readwrite"===e&&"readwrite"!==this.mode?eV(new G.ReadOnly("Transaction is readonly")):this.active?this._locked()?new e_(function(r,a){i._blockedFuncs.push([function(){i._promise(e,t,n).then(r,a)},em])}):n?eU(function(){var e=new e_(function(e,n){i._lock();var r=t(e,n,i);r&&r.then&&r.then(e,n)});return e.finally(function(){return i._unlock()}),e._lib=!0,e}):((r=new e_(function(e,n){var r=t(e,n,i);r&&r.then&&r.then(e,n)}))._lib=!0,r):eV(new G.TransactionInactive)},tw.prototype._root=function(){return this.parent?this.parent._root():this},tw.prototype.waitFor=function(e){var t,n=this._root(),r=e_.resolve(e),i=(n._waitingFor?n._waitingFor=n._waitingFor.then(function(){return r}):(n._waitingFor=r,n._waitingQueue=[],t=n.idbtrans.objectStore(n.storeNames[0]),function e(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(t.get(-1/0).onsuccess=e)}()),n._waitingFor);return new e_(function(e,t){r.then(function(t){return n._waitingQueue.push(eC(e.bind(null,t)))},function(e){return n._waitingQueue.push(eC(t.bind(null,e)))}).finally(function(){n._waitingFor===i&&(n._waitingFor=null)})})},tw.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new G.Abort))},tw.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(c(t,e))return t[e];var n=this.schema[e];if(n)return(n=new this.db.Table(e,n,this)).core=this.db.core.table(e),t[e]=n;throw new G.NotFound("Table "+e+" not part of transaction")},tw);function tw(){}function tN(e,t,n,r,i,a,o,s){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:a,src:(n&&!o?"&":"")+(r?"*":"")+(i?"++":"")+tO(t),type:s}}function tO(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function tC(e,t,n){var r;return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:(r=function(e){return[e.name,e]},n.reduce(function(e,t,n){return(t=r(t,n))&&(e[t[0]]=t[1]),e},{}))}}var tD=function(e){try{return e.only([[]]),tD=function(){return[[]]},[[]]}catch(e){return tD=function(){return eW},eW}};function t$(e){return null==e?function(){}:"string"==typeof e?1===e.split(".").length?function(t){return t[e]}:function(t){return k(t,e)}:function(t){return k(t,e)}}function tR(e){return[].slice.call(e)}var tP=0;function tL(e){return null==e?":id":"string"==typeof e?e:"[".concat(e.join("+"),"]")}function tM(e,n){var r,i,a,s=n.db,s=(r=e._middlewares,i=s,a=e._deps,i=function(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");var n=e.lower,r=e.upper,i=e.lowerOpen,e=e.upperOpen;return void 0===n?void 0===r?null:t.upperBound(r,!!e):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!e)}i=n,u=0<(a=tR((n=e).objectStoreNames)).length?i.objectStore(a[0]):{};var i,n={schema:{name:n.name,tables:a.map(function(e){return i.objectStore(e)}).map(function(e){var t=e.keyPath,n=e.autoIncrement,r=o(t),i={},r={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==t,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:t$(t)},indexes:tR(e.indexNames).map(function(t){return e.index(t)}).map(function(e){var t=e.name,n=e.unique,r=e.multiEntry,e=e.keyPath,t={name:t,compound:o(e),keyPath:e,unique:n,multiEntry:r,extractKey:t$(e)};return i[tL(e)]=t}),getIndexByKeyPath:function(e){return i[tL(e)]}};return i[":id"]=r.primaryKey,null!=t&&(i[tL(t)]=r.primaryKey),r})},hasGetAll:0<a.length&&"getAll"in u&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604),hasIdb3Features:"getAllRecords"in u},a=n.schema,s=n.hasGetAll,l=n.hasIdb3Features,u=a.tables.map(function(e){var t=e.name;return{name:t,schema:e,mutate:function(e){var n=e.trans,i=e.type,a=e.keys,o=e.values,s=e.range;return new Promise(function(e,l){e=eC(e);var u=n.objectStore(t),c=null==u.keyPath,d="put"===i||"add"===i;if(!d&&"delete"!==i&&"deleteRange"!==i)throw Error("Invalid operation type: "+i);var p,f=(a||o||{length:1}).length;if(a&&o&&a.length!==o.length)throw Error("Given keys array must have same length as given values array.");if(0===f)return e({numFailures:0,failures:{},results:[],lastResult:void 0});function h(e){++v,tT(e)}var m=[],g=[],v=0;if("deleteRange"===i){if(4===s.type)return e({numFailures:v,failures:g,results:[],lastResult:void 0});3===s.type?m.push(p=u.clear()):m.push(p=u.delete(r(s)))}else{var c=d?c?[o,a]:[o,null]:[a,null],y=c[0],_=c[1];if(d)for(var b=0;b<f;++b)m.push(p=_&&void 0!==_[b]?u[i](y[b],_[b]):u[i](y[b])),p.onerror=h;else for(b=0;b<f;++b)m.push(p=u[i](y[b])),p.onerror=h}function k(t){t=t.target.result,m.forEach(function(e,t){return null!=e.error&&(g[t]=e.error)}),e({numFailures:v,failures:g,results:"delete"===i?a:m.map(function(e){return e.result}),lastResult:t})}p.onerror=function(e){h(e),k(e)},p.onsuccess=k})},getMany:function(e){var n=e.trans,r=e.keys;return new Promise(function(e,i){e=eC(e);for(var a,o=n.objectStore(t),s=r.length,l=Array(s),u=0,c=0,d=function(t){l[(t=t.target)._pos]=t.result,++c===u&&e(l)},p=tE(i),f=0;f<s;++f)null!=r[f]&&((a=o.get(r[f]))._pos=f,a.onsuccess=d,a.onerror=p,++u);0===u&&e(l)})},get:function(e){var n=e.trans,r=e.key;return new Promise(function(e,i){e=eC(e);var a=n.objectStore(t).get(r);a.onsuccess=function(t){return e(t.target.result)},a.onerror=tE(i)})},query:function(e){return new Promise(function(n,i){n=eC(n);var a,o,u,c,d=e.trans,p=e.values,f=e.limit,h=e.query,m=null!=(m=e.direction)?m:"next",g=f===1/0?void 0:f,v=h.index,h=h.range,d=d.objectStore(t),d=v.isPrimaryKey?d:d.index(v.name),v=r(h);if(0===f)return n({result:[]});l?(h={query:v,count:g,direction:m},(a=p?d.getAll(h):d.getAllKeys(h)).onsuccess=function(e){return n({result:e.target.result})},a.onerror=tE(i)):s&&"next"===m?((a=p?d.getAll(v,g):d.getAllKeys(v,g)).onsuccess=function(e){return n({result:e.target.result})},a.onerror=tE(i)):(o=0,u=!p&&"openKeyCursor"in d?d.openKeyCursor(v,m):d.openCursor(v,m),c=[],u.onsuccess=function(){var e=u.result;return e&&(c.push(p?e.value:e.primaryKey),++o!==f)?void e.continue():n({result:c})},u.onerror=tE(i))})},openCursor:function(e){var n=e.trans,i=e.values,a=e.query,o=e.reverse,s=e.unique;return new Promise(function(e,l){e=eC(e);var u=a.index,c=a.range,d=n.objectStore(t),d=u.isPrimaryKey?d:d.index(u.name),u=o?s?"prevunique":"prev":s?"nextunique":"next",p=!i&&"openKeyCursor"in d?d.openKeyCursor(r(c),u):d.openCursor(r(c),u);p.onerror=tE(l),p.onsuccess=eC(function(t){var r,i,a,o,s=p.result;s?(s.___id=++tP,s.done=!1,r=s.continue.bind(s),i=(i=s.continuePrimaryKey)&&i.bind(s),a=s.advance.bind(s),o=function(){throw Error("Cursor not stopped")},s.trans=n,s.stop=s.continue=s.continuePrimaryKey=s.advance=function(){throw Error("Cursor not started")},s.fail=eC(l),s.next=function(){var e=this,t=1;return this.start(function(){return t--?e.continue():e.stop()}).then(function(){return e})},s.start=function(e){function t(){if(p.result)try{e()}catch(e){s.fail(e)}else s.done=!0,s.start=function(){throw Error("Cursor behind last entry")},s.stop()}var n=new Promise(function(e,t){e=eC(e),p.onerror=tE(t),s.fail=t,s.stop=function(t){s.stop=s.continue=s.continuePrimaryKey=s.advance=o,e(t)}});return p.onsuccess=eC(function(e){p.onsuccess=t,t()}),s.continue=r,s.continuePrimaryKey=i,s.advance=a,t(),n},e(s)):e(null)},l)})},count:function(e){var n=e.query,i=e.trans,a=n.index,o=n.range;return new Promise(function(e,n){var s=i.objectStore(t),s=a.isPrimaryKey?s:s.index(a.name),l=r(o),l=l?s.count(l):s.count();l.onsuccess=eC(function(t){return e(t.target.result)}),l.onerror=tE(n)})}}}),c={};return u.forEach(function(e){return c[e.name]=e}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(c[e])return c[e];throw Error("Table '".concat(e,"' not found"))},MIN_KEY:-1/0,MAX_KEY:tD(t),schema:a}}(i,a=a.IDBKeyRange,n),{dbcore:r.dbcore.reduce(function(e,n){return n=n.create,t(t({},e),n(e))},i)});e.core=s.dbcore,e.tables.forEach(function(t){var n=t.name;e.core.schema.tables.some(function(e){return e.name===n})&&(t.core=e.core.table(n),e[n]instanceof e.Table)&&(e[n].core=t.core)})}function tU(e,t,n,r){n.forEach(function(n){var i=r[n];t.forEach(function(t){var r=function e(t,n){return m(t,n)||(t=l(t))&&e(t,n)}(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?f(t,n,{get:function(){return this.table(n)},set:function(e){p(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))})})}function tz(e,t){t.forEach(function(t){for(var n in t)t[n]instanceof e.Table&&delete t[n]})}function tF(e,t){return e._cfg.version-t._cfg.version}function tj(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var i=e[n],a=t[n];if(i){var o={name:n,def:a,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(a.primKey.keyPath||"")||i.primKey.auto!==a.primKey.auto)o.recreate=!0,r.change.push(o);else{var s=i.idxByName,l=a.idxByName,u=void 0;for(u in s)l[u]||o.del.push(u);for(u in l){var c=s[u],d=l[u];c?c.src!==d.src&&o.change.push(d):o.add.push(d)}(0<o.del.length||0<o.add.length||0<o.change.length)&&r.change.push(o)}}else r.add.push([n,a])}return r}function tB(e,t,n,r){var i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});r.forEach(function(e){return tZ(i,e)})}function tH(e,t){a(e).forEach(function(n){t.db.objectStoreNames.contains(n)||(en&&console.debug("Dexie: Creating missing table",n),tB(t,n,e[n].primKey,e[n].indexes))})}function tZ(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function tG(e,t,n){var r={};return v(t.objectStoreNames,0).forEach(function(e){for(var t=n.objectStore(e),i=tN(tO(l=t.keyPath),l||"",!0,!1,!!t.autoIncrement,l&&"string"!=typeof l,!0),a=[],o=0;o<t.indexNames.length;++o){var s=t.index(t.indexNames[o]),l=s.keyPath,s=tN(s.name,l,!!s.unique,!!s.multiEntry,!1,l&&"string"!=typeof l,!1);a.push(s)}r[e]=tC(e,i,a)}),r}function tq(e,t,n){for(var r=n.db.objectStoreNames,a=0;a<r.length;++a){var o=r[a],s=n.objectStore(o);e._hasGetAll="getAll"in s;for(var l=0;l<s.indexNames.length;++l){var u,c=s.indexNames[l],d=s.index(c).keyPath,d="string"==typeof d?d:"["+v(d).join("+")+"]";t[o]&&(u=t[o].idxByName[d])&&(u.name=c,delete t[o].idxByName[d],t[o].idxByName[c]=u)}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function tK(e){return e.split(",").map(function(e,t){var n=e.split(":"),r=null==(r=n[1])?void 0:r.trim(),n=(e=n[0].trim()).replace(/([&*]|\+\+)/g,""),i=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return tN(n,i||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),o(i),0===t,r)}
45)}function tV(){}tV.prototype._createTableSchema=tC,tV.prototype._parseIndexSyntax=tK,tV.prototype._parseStoresSpec=function(e,t){var n=this;a(e).forEach(function(r){if(null!==e[r]){var i=n._parseIndexSyntax(e[r]),a=i.shift();if(!a)throw new G.Schema("Invalid schema for table "+r+": "+e[r]);if(a.unique=!0,a.multi)throw new G.Schema("Primary key cannot be multiEntry*");i.forEach(function(e){if(e.auto)throw new G.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new G.Schema("Index must have a name and cannot be an empty string")}),a=n._createTableSchema(r,a,i),t[r]=a}})},tV.prototype.stores=function(e){var t=this.db,e=(this._cfg.storesSource=this._cfg.storesSource?s(this._cfg.storesSource,e):e,t._versions),n={},r={};return e.forEach(function(e){s(n,e._cfg.storesSource),r=e._cfg.dbschema={},e._parseStoresSpec(n,r)}),t._dbSchema=r,tz(t,[t._allTables,t,t.Transaction.prototype]),tU(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],a(r),r),t._storeNames=a(r),this},tV.prototype.upgrade=function(e){return this._cfg.contentUpgrade=et(this._cfg.contentUpgrade||K,e),this};var tW="undefined"!=typeof FinalizationRegistry&&"undefined"!=typeof WeakRef?(nx=new Set,nA=new FinalizationRegistry(function(e){nx.delete(e)}),{toArray:function(){return Array.from(nx).map(function(e){return e.deref()}).filter(function(e){return void 0!==e})},add:function(e){var t=new WeakRef(e._novip);nx.add(t),nA.register(e._novip,t,t),nx.size>e._options.maxConnections&&(t=nx.values().next().value,nx.delete(t),nA.unregister(t))},remove:function(e){if(e)for(var t=nx.values(),n=t.next();!n.done;){var r=n.value;if(r.deref()===e._novip)return nx.delete(r),void nA.unregister(r);n=t.next()}}}):(nS=[],{toArray:function(){return nS},add:function(e){nS.push(e._novip)},remove:function(e){e&&-1!==(e=nS.indexOf(e._novip))&&nS.splice(e,1)}});function tY(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new nE(eX,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function tJ(e){return e&&"function"==typeof e.databases}function tX(e){return eU(function(){return em.letThrough=!0,e()})}function tQ(e){return!("from"in e)}var t0=function(e,t){var n;if(!this)return n=new t0,e&&"d"in e&&s(n,e),n;s(this,arguments.length?{d:1,from:e,to:1<arguments.length?t:e}:{d:0})};function t1(e,t,n){var r=e3(t,n);if(!isNaN(r)){if(0<r)throw RangeError();if(tQ(e))return s(e,{from:t,to:n,d:1});var r=e.l,i=e.r;if(0>e3(n,e.from))return r?t1(r,t,n):e.l={from:t,to:n,d:1,l:null,r:null},t3(e);if(0<e3(t,e.to))return i?t1(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},t3(e);0>e3(t,e.from)&&(e.from=t,e.l=null,e.d=i?i.d+1:1),0<e3(n,e.to)&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1),t=!e.r,r&&!e.l&&t2(e,r),i&&t&&t2(e,i)}}function t2(e,t){tQ(t)||function e(t,n){var r=n.from,i=n.l,a=n.r;t1(t,r,n.to),i&&e(t,i),a&&e(t,a)}(e,t)}function t4(e,t){var n=t6(t),r=n.next();if(!r.done)for(var i=r.value,a=t6(e),o=a.next(i.from),s=o.value;!r.done&&!o.done;){if(0>=e3(s.from,i.to)&&0<=e3(s.to,i.from))return!0;0>e3(i.from,s.from)?i=(r=n.next(s.from)).value:s=(o=a.next(i.from)).value}return!1}function t6(e){var t=tQ(e)?null:{s:0,n:e};return{next:function(e){for(var n=0<arguments.length;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&0>e3(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||0>=e3(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function t3(e){var n,r,i,a=((null==(a=e.r)?void 0:a.d)||0)-((null==(a=e.l)?void 0:a.d)||0),a=1<a?"r":a<-1?"l":"";a&&(n="r"==a?"l":"r",r=t({},e),i=e[a],e.from=i.from,e.to=i.to,e[a]=i[a],r[a]=i[n],(e[n]=r).d=t5(r)),e.d=t5(e)}function t5(e){var t=e.r,e=e.l;return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}function t9(e,t){return a(t).forEach(function(n){e[n]?t2(e[n],t[n]):e[n]=function e(t){var n,r,i={};for(n in t)c(t,n)&&(r=t[n],i[n]=!r||"object"!=typeof r||I.has(r.constructor)?r:e(r));return i}(t[n])}),e}function t8(e,t){return e.all||t.all||Object.keys(e).some(function(n){return t[n]&&t4(t[n],e[n])})}d(t0.prototype,((U={add:function(e){return t2(this,e),this},addKey:function(e){return t1(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(e){return t1(t,e,e)}),this},hasKey:function(e){var t=t6(this).next(e).value;return t&&0>=e3(t.from,e)&&0<=e3(t.to,e)}})[D]=function(){return t6(this)},U));var t7={},ne={},nt=!1;function nn(e){t9(ne,e),nt||(nt=!0,setTimeout(function(){nt=!1,nr(ne,(ne={},!1))},0))}function nr(e,t){void 0===t&&(t=!1);var n=new Set;if(e.all)for(var r=0,i=Object.values(t7);r<i.length;r++)ni(s=i[r],e,n,t);else for(var a in e){var o,s,a=/^idb\:\/\/(.*)\/(.*)\//.exec(a);a&&(o=a[1],a=a[2],s=t7["idb://".concat(o,"/").concat(a)])&&ni(s,e,n,t)}n.forEach(function(e){return e()})}function ni(e,t,n,r){for(var i=[],a=0,o=Object.entries(e.queries.query
vendor: 11,012 bytes, line 45
45);a<o.length;a++){for(var s=o[a],l=s[0],u=[],c=0,d=s[1];c<d.length;c++){var p=d[c];t8(t,p.obsSet)?p.subscribers.forEach(function(e){return n.add(e)}):r&&u.push(p)}r&&i.push([l,u])}if(r)for(var f=0;f<i.length;f++){var h=i[f],l=h[0],u=h[1];e.queries.query[l]=u}}function na(e){function t(t){return e.next(t)}var n=i(t),r=i(function(t){return e.throw(t)});function i(e){return function(t){var t=e(t),i=t.value;return t.done?i:i&&"function"==typeof i.then?i.then(n,r):o(i)?Promise.all(i).then(n,r):n(i)}}return i(t)()}function no(e,t,n){for(var r=o(e)?e.slice():[e],i=0;i<n;++i)r.push(t);return r}var ns={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return t(t({},e),{table:function(n){var r=e.table(n),n=r.schema,i={},a=[];function o(e,n,r){var s=tL(e),l=i[s]=i[s]||[],u=null==e?0:"string"==typeof e?1:e.length,c=0<n,s=t(t({},r),{name:c?"".concat(s,"(virtual-from:").concat(r.name,")"):r.name,lowLevelIndex:r,isVirtual:c,keyTail:n,keyLength:u,extractKey:t$(e),unique:!c&&r.unique});return l.push(s),s.isPrimaryKey||a.push(s),1<u&&o(2===u?e[0]:e.slice(0,u-1),n+1,r),l.sort(function(e,t){return e.keyTail-t.keyTail}),s}var s=o(n.primaryKey.keyPath,0,n.primaryKey);i[":id"]=[s];for(var l=0,u=n.indexes;l<u.length;l++){var c=u[l];o(c.keyPath,0,c)}function d(n){var r,i=n.query.index;return i.isVirtual?t(t({},n),{query:{index:i.lowLevelIndex,range:(r=n.query.range,i=i.keyTail,{type:1===r.type?2:r.type,lower:no(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,i),lowerOpen:!0,upper:no(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,i),upperOpen:!0})}}):n}return t(t({},r),{schema:t(t({},n),{primaryKey:s,indexes:a,getIndexByKeyPath:function(e){return(e=i[tL(e)])&&e[0]}}),count:function(e){return r.count(d(e))},query:function(e){return r.query(d(e))},openCursor:function(t){var n=t.query.index,i=n.keyTail,a=n.keyLength;return n.isVirtual?r.openCursor(d(t)).then(function(n){var r;return n&&Object.create(r=n,{continue:{value:function(n){null!=n?r.continue(no(n,t.reverse?e.MAX_KEY:e.MIN_KEY,i)):t.unique?r.continue(r.key.slice(0,a).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,i)):r.continue()}},continuePrimaryKey:{value:function(t,n){r.continuePrimaryKey(no(t,e.MAX_KEY,i),n)}},primaryKey:{get:function(){return r.primaryKey}},key:{get:function(){var e=r.key;return 1===a?e[0]:e.slice(0,a)}},value:{get:function(){return r.value}}})}):r.openCursor(t)}})}})}};function nl(e,t,n,r){return n=n||{},r=r||"",a(e).forEach(function(i){var a,o,s;c(t,i)?(a=e[i],o=t[i],"object"==typeof a&&"object"==typeof o&&a&&o?(s=C(a))!==C(o)?n[r+i]=t[i]:"Object"===s?nl(a,o,n,r+i+"."):a!==o&&(n[r+i]=t[i]):a!==o&&(n[r+i]=t[i])):n[r+i]=void 0}),a(t).forEach(function(i){c(e,i)||(n[r+i]=t[i])}),n}function nu(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}var nc={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return t(t({},e),{table:function(n){var i=e.table(n),a=i.schema.primaryKey;return t(t({},i),{mutate:function(e){var o=em.trans,s=o.table(n).hook,l=s.deleting,u=s.creating,d=s.updating;switch(e.type){case"add":if(u.fire===K)break;return o._promise("readwrite",function(){return p(e)},!0);case"put":if(u.fire===K&&d.fire===K)break;return o._promise("readwrite",function(){return p(e)},!0);case"delete":if(l.fire===K)break;return o._promise("readwrite",function(){return p(e)},!0);case"deleteRange":if(l.fire===K)break;return o._promise("readwrite",function(){return function e(n,r,o){return i.query({trans:n,values:!1,query:{index:a,range:r},limit:o}).then(function(i){var a=i.result;return p({type:"delete",keys:a,trans:n}).then(function(i){return 0<i.numFailures?Promise.reject(i.failures[0]):a.length<o?{failures:[],numFailures:0,lastResult:void 0}:e(n,t(t({},r),{lower:a[a.length-1],lowerOpen:!0}),o)})})}(e.trans,e.range,1e4)},!0)}return i.mutate(e);function p(e){var n,o=em.trans,s=e.keys||nu(a,e);if(s)return"delete"!==(e="add"===e.type||"put"===e.type?t(t({},e),{keys:s}):t({},e)).type&&(e.values=r([],e.values,!0)),e.keys&&(e.keys=r([],e.keys,!0)),("add"===(n=e).type?Promise.resolve([]):i.getMany({trans:n.trans,keys:s,cache:"immutable"})).then(function(t){var n=s.map(function(n,r){var i,s,p,f=t[r],h={onerror:null,onsuccess:null};return"delete"===e.type?l.fire.call(h,n,f,o):"add"===e.type||void 0===f?(i=u.fire.call(h,n,e.values[r],o),null==n&&null!=i&&(e.keys[r]=n=i,a.outbound||E(e.values[r],a.keyPath,n))):(i=nl(f,e.values[r]),(s=d.fire.call(h,i,n,f,o))&&(p=e.values[r],Object.keys(s).forEach(function(e){c(p,e)?p[e]=s[e]:E(p,e,s[e])}))),h});return i.mutate(e).then(function(r){for(var i=r.failures,a=r.results,o=r.numFailures,r=r.lastResult,l=0;l<s.length;++l){var u=(a||s)[l],c=n[l];null==u?c.onerror&&c.onerror(i[l]):c.onsuccess&&c.onsuccess("put"===e.type&&t[l]?e.values[l]:u)}return{failures:i,results:a,numFailures:o,lastResult:r}}).catch(function(e){return n.forEach(function(t){return t.onerror&&t.onerror(e)}),Promise.reject(e)})});throw Error("Keys missing")}}})}})}};function nd(e,t,n){try{if(!t||t.keys.length<e.length)return null;for(var r=[],i=0,a=0;i<t.keys.length&&a<e.length;++i)0===e3(t.keys[i],e[a])&&(r.push(n?N(t.values[i]):t.values[i]),++a);return r.length===e.length?r:null}catch(e){return null}}var np={stack:"dbcore",level:-1,create:function(e){return{table:function(n){var r=e.table(n);return t(t({},r),{getMany:function(e){var t;return e.cache?(t=nd(e.keys,e.trans._cache,"clone"===e.cache))?e_.resolve(t):r.getMany(e).then(function(t){return e.trans._cache={keys:e.keys,values:"clone"===e.cache?N(t):t},t}):r.getMany(e)},mutate:function(e){return"add"!==e.type&&(e.trans._cache=null),r.mutate(e)}})}}}};function nf(e,t){return"readonly"===e.trans.mode&&!!e.subscr&&!e.trans.explicit&&"disabled"!==e.trans.db._options.cache&&!t.schema.primaryKey.outbound}function nh(e,t){switch(e){case"query":return t.values&&!t.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var nm={stack:"dbcore",level:0,name:"Observability",create:function(e){var n=e.schema.name,r=new t0(e.MIN_KEY,e.MAX_KEY);return t(t({},e),{transaction:function(t,n,r){if(em.subscr&&"readonly"!==n)throw new G.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(em.querier));return e.transaction(t,n,r)},table:function(i){function s(t){var n,t=t.query;return[n=t.index,new t0(null!=(n=(t=t.range).lower)?n:e.MIN_KEY,null!=(n=t.upper)?n:e.MAX_KEY)]}var l=e.table(i),u=l.schema,c=u.primaryKey,d=u.indexes,p=c.extractKey,f=c.outbound,h=c.autoIncrement&&d.filter(function(e){return e.compound&&e.keyPath.includes(c.keyPath)}),m=t(t({},l),{mutate:function(t){function a(e){return f[e="idb://".concat(n,"/").concat(i,"/").concat(e)]||(f[e]=new t0)}var s,d,p=t.trans,f=t.mutatedParts||(t.mutatedParts={}),m=a(""),g=a(":dels"),v=t.type,y="deleteRange"===t.type?[t.range]:"delete"===t.type?[t.keys]:t.values.length<50?[nu(c,t).filter(function(e){return e}),t.values]:[],_=y[0],y=y[1],b=t.trans._cache;return o(_)?(m.addKeys(_),(v="delete"===v||_.length===y.length?nd(_,b):null)||g.addKeys(_),(v||y)&&(s=v,d=y,u.indexes.forEach(function(e){var t=a(e.name||"");function n(t){return null!=t?e.extractKey(t):null}function r(n){e.multiEntry&&o(n)?n.forEach(function(e){return t.addKey(e)}):t.addKey(n)}(s||d).forEach(function(e,t){var i=s&&n(s[t]),t=d&&n(d[t]);0!==e3(i,t)&&(null!=i&&r(i),null!=t)&&r(t)})}))):_?(y={from:null!=(b=_.lower)?b:e.MIN_KEY,to:null!=(v=_.upper)?v:e.MAX_KEY},g.add(y),m.add(y)):(m.add(r),g.add(r),u.indexes.forEach(function(e){return a(e.name).add(r)})),l.mutate(t).then(function(e){return!_||"add"!==t.type&&"put"!==t.type||(m.addKeys(e.results),h&&h.forEach(function(n){for(var r=t.values.map(function(e){return n.extractKey(e)}),i=n.keyPath.findIndex(function(e){return e===c.keyPath}),o=0,s=e.results.length;o<s;++o)r[o][i]=e.results[o];a(n.name).addKeys(r)})),p.mutatedParts=t9(p.mutatedParts||{},f),e})}}),g={get:function(e){return[c,new t0(e.key)]},getMany:function(e){return[c,(new t0).addKeys(e.keys)]},count:s,query:s,openCursor:s};return a(g).forEach(function(e){m[e]=function(a){var o=em.subscr,s=!!o,u=nf(em,l)&&nh(e,a)?a.obsSet={}:o;if(s){var c,o=function(e){return u[e="idb://".concat(n,"/").concat(i,"/").concat(e)]||(u[e]=new t0)},d=o(""),h=o(":dels"),s=g[e](a),m=s[0],s=s[1];if(("query"===e&&m.isPrimaryKey&&!a.values?h:o(m.name||"")).add(s),!m.isPrimaryKey){if("count"!==e)return c="query"===e&&f&&a.values&&l.query(t(t({},a),{values:!1})),l[e].apply(this,arguments).then(function(t){if("query"===e){if(f&&a.values)return c.then(function(e){return e=e.result,d.addKeys(e),t});var n,r=a.values?t.result.map(p):t.result;(a.values?d:h).addKeys(r)}else if("openCursor"===e)return n=a.values,t&&Object.create(t,{key:{get:function(){return h.addKey(t.primaryKey),t.key}},primaryKey:{get:function(){var e=t.primaryKey;return h.addKey(e),e}},value:{get:function(){return n&&d.addKey(t.primaryKey),t.value}}});return t});h.add(r)}}return l[e].apply(this,arguments)}}),m}})}};function ng(e,n,r){var i;return 0===r.numFailures?n:"deleteRange"===n.type||(i=n.keys?n.keys.length:"values"in n&&n.values?n.values.length:1,r.numFailures===i)?null:(o((i=t({},n)).keys)&&(i.keys=i.keys.filter(function(e,t){return!(t in r.failures)})),"values"in i&&o(i.values)&&(i.values=i.values.filter(function(e,t){return!(t in r.failures)})),i)}function nv(e,t){var n,r;return n=e,(void 0===(r=t).lower||(r.lowerOpen?0<e3(n,r.lower):0<=e3(n,r.lower)))&&(n=e,void 0===(r=t).upper||(r.upperOpen?0>e3(n,r.upper):0>=e3(n,r.upper)))}function ny(e,t,n,r,i,a){var s,l,u,c,d,p,f;return n&&0!==n.length&&(l=(s=t.query.index).multiEntry,u=t.query.range,c=r.schema.primaryKey.extractKey,d=s.extractKey,p=(s.lowLevelIndex||s).extractKey,(r=n.reduce(function(e,n){var r=e,i=[];if("add"===n.type||"put"===n.type)for(var a=new t0,s=n.values.length-1;0<=s;--s){var p,f=n.values[s],h=c(f);!a.hasKey(h)&&(p=d(f),l&&o(p)?p.some(function(e){return nv(e,u)}):nv(p,u))&&(a.addKey(h),i.push(f))}switch(n.type){case"add":var m=(new t0).addKeys(t.values?e.map(function(e){return c(e)}):e),r=e.concat(t.values?i.filter(function(e){return e=c(e),!m.hasKey(e)&&(m.addKey(e),!0)}):i.map(function(e){return c(e)}).filter(function(e){return!m.hasKey(e)&&(m.addKey(e),!0)}));break;case"put":var g=(new t0).addKeys(n.values.map(function(e){return c(e)}));r=e.filter(function(e){return!g.hasKey(t.values?c(e):e)}).concat(t.values?i:i.map(function(e){return c(e)}));break;case"delete":var v=(new t0).addKeys(n.keys);r=e.filter(function(e){return!v.hasKey(t.values?c(e):e)});break;case"deleteRange":var y=n.range;r=e.filter(function(e){return!nv(c(e),y)})}return r},e))!==e)?(f=function(e,t){return e3(p(e),p(t))||e3(c(e),c(t))},r.sort("prev"===t.direction||"prevunique"===t.direction?function(e,t){return f(t,e)}:f),t.limit&&t.limit<1/0&&(r.length>t.limit?r.length=t.limit:e.length===t.limit&&r.length<t.limit&&(i.dirty=!0)),a?Object.freeze(r):r):e}function n_(e,t){return 0===e3(e.lower,t.lower)&&0===e3(e.upper,t.upper)&&!!e.lowerOpen==!!t.lowerOpen&&!!e.upperOpen==!!t.upperOpen}var nb={stack:"dbcore",level:0,name:"Cache",create:function(e){var n=e.schema.name;
45return t(t({},e),{transaction:function(t,r,i){var a,o,s=e.transaction(t,r,i);return"readwrite"===r&&(i=(a=new AbortController).signal,s.addEventListener("abort",(o=function(i){return function(){if(a.abort(),"readwrite"===r){for(var o=new Set,l=0;l<t.length;l++){var u=t[l],c=t7["idb://".concat(n,"/").concat(u)];if(c){var d=e.table(u),p=c.optimisticOps.filter(function(e){return e.trans===s});if(s._explicit&&i&&s.mutatedParts)for(var f=0,h=Object.values(c.queries.query);f<h.length;f++)for(var m=0,g=(_=h[f]).slice();m<g.length;m++)t8((b=g[m]).obsSet,s.mutatedParts)&&(R(_,b),b.subscribers.forEach(function(e){return o.add(e)}));else if(0<p.length){c.optimisticOps=c.optimisticOps.filter(function(e){return e.trans!==s});for(var v=0,y=Object.values(c.queries.query);v<y.length;v++)for(var _,b,k,E=0,T=(_=y[v]).slice();E<T.length;E++)null!=(b=T[E]).res&&s.mutatedParts&&(i&&!b.dirty?(k=Object.isFrozen(b.res),k=ny(b.res,b.req,p,d,b,k),b.dirty?(R(_,b),b.subscribers.forEach(function(e){return o.add(e)})):k!==b.res&&(b.res=k,b.promise=e_.resolve({result:k}))):(b.dirty&&R(_,b),b.subscribers.forEach(function(e){return o.add(e)})))}}}o.forEach(function(e){return e()})}}})(!1),{signal:i}),s.addEventListener("error",o(!1),{signal:i}),s.addEventListener("complete",o(!0),{signal:i})),s},table:function(r){var i=e.table(r),a=i.schema.primaryKey;return t(t({},i),{mutate:function(e){var o,s=em.trans;return!a.outbound&&"disabled"!==s.db._options.cache&&!s.explicit&&"readwrite"===s.idbtrans.mode&&(o=t7["idb://".concat(n,"/").concat(r)])?(s=i.mutate(e),("add"===e.type||"put"===e.type)&&(50<=e.values.length||nu(a,e).some(function(e){return null==e}))?s.then(function(n){var r=ng(0,t(t({},e),{values:e.values.map(function(e,r){var i;return n.failures[r]?e:(E(i=null!=(i=a.keyPath)&&i.includes(".")?N(e):t({},e),a.keyPath,n.results[r]),i)})}),n);o.optimisticOps.push(r),queueMicrotask(function(){return e.mutatedParts&&nn(e.mutatedParts)})}):(o.optimisticOps.push(e),e.mutatedParts&&nn(e.mutatedParts),s.then(function(t){0<t.numFailures&&(R(o.optimisticOps,e),(t=ng(0,e,t))&&o.optimisticOps.push(t),e.mutatedParts)&&nn(e.mutatedParts)}),s.catch(function(){R(o.optimisticOps,e),e.mutatedParts&&nn(e.mutatedParts)})),s):i.mutate(e)},query:function(e){var t,a,o,s,l,u,c,d,p,f;return nf(em,i)&&nh("query",e)?(t="immutable"===(null==(o=em.trans)?void 0:o.db._options.cache),a=(o=em).requery,o=o.signal,c=(u=((e,t,n,r)=>{var i=t7["idb://".concat(e,"/").concat(t)];if(!i)return[];if(!(e=i.queries[n]))return[null,!1,i,null];var a=e[(r.query?r.query.index.name:null)||""];if(!a)return[null,!1,i,null];switch(n){case"query":var o=null!=(s=r.direction)?s:"next",s=a.find(function(e){var t;return e.req.limit===r.limit&&e.req.values===r.values&&(null!=(t=e.req.direction)?t:"next")===o&&n_(e.req.query.range,r.query.range)});return s?[s,!0,i,a]:[a.find(function(e){var t,n,i;return("limit"in e.req?e.req.limit:1/0)>=r.limit&&(null!=(t=e.req.direction)?t:"next")===o&&(!r.values||e.req.values)&&(n=e.req.query.range,i=r.query.range,0>=((e,t,n,r)=>{if(void 0===e)return void 0!==t?-1:0;if(void 0===t)return 1;if(0===(e=e3(e,t))){if(n&&r)return 0;if(n)return 1;if(r)return -1}return e})(n.lower,i.lower,n.lowerOpen,i.lowerOpen)&&0<=((e,t,n,r)=>{if(void 0===e)return+(void 0!==t);if(void 0===t)return -1;if(0===(e=e3(e,t))){if(n&&r)return 0;if(n)return -1;if(r)return 1}return e})(n.upper,i.upper,n.upperOpen,i.upperOpen))}),!1,i,a];case"count":return[s=a.find(function(e){return n_(e.req.query.range,r.query.range)}),!!s,i,a]}})(n,r,"query",e))[0],s=u[2],l=u[3],c&&u[1]?c.obsSet=e.obsSet:(u=i.query(e).then(function(e){var n=e.result;if(c&&(c.res=n),t){for(var r=0,i=n.length;r<i;++r)Object.freeze(n[r]);Object.freeze(n)}else e.result=N(n);return e}).catch(function(e){return l&&c&&R(l,c),Promise.reject(e)}),c={obsSet:e.obsSet,promise:u,subscribers:new Set,type:"query",req:e,dirty:!1},l?l.push(c):(l=[c],(s=s||(t7["idb://".concat(n,"/").concat(r)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[e.query.index.name||""]=l)),d=c,p=l,f=o,d.subscribers.add(a),f.addEventListener("abort",function(){d.subscribers.delete(a),0===d.subscribers.size&&setTimeout(function(){0===d.subscribers.size&&R(p,d)},3e3)}),c.promise.then(function(n){return{result:ny(n.result,e,null==s?void 0:s.optimisticOps,i,c,t)}})):i.query(e)}})}})}};function nk(e,t){return new Proxy(e,{get:function(e,n,r){return"db"===n?t:
45Reflect.get(e,n,r)}})}nT.prototype.version=function(e){if(isNaN(e)||e<.1)throw new G.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new G.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter(function(t){return t._cfg.version===e})[0];return n||(n=new this.Version(e),t.push(n),t.sort(tF),n.stores({}),this._state.autoSchema=!1),n},nT.prototype._whenReady=function(e){var t=this;return this.idbdb&&(this._state.openComplete||em.letThrough||this._vip)?e():new e_(function(e,n){if(t._state.openComplete)return n(new G.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen)return void n(new G.DatabaseClosed);t.open().catch(K)}t._state.dbReadyPromise.then(e,n)}).then(e)},nT.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,e=e.name,i=(e&&this.unuse({stack:t,name:e}),this._middlewares[t]||(this._middlewares[t]=[]));return i.push({stack:t,create:n,level:null==r?10:r,name:e}),i.sort(function(e,t){return e.level-t.level}),this},nT.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(function(e){return r?e.create!==r:!!n&&e.name!==n})),this},nT.prototype.open=function(){var e=this;return eG(eh,function(){return function(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?eV(t.dbOpenError):e});t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller,i=Math.round(10*e.verno),o=!1;function s(){if(t.openCanceller!==r)throw new G.DatabaseClosed("db.open() was cancelled")}var l,u=t.dbReadyResolve,c=null,d=!1;return e_.race([r,("undefined"==typeof navigator?e_.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){function t(){return indexedDB.databases().finally(e)}l=setInterval(t,100),t()}).finally(function(){return clearInterval(l)}):Promise.resolve()).then(function r(){return new e_(function(l,u){if(s(),!n)throw new G.MissingAPI;var p=e.name,f=t.autoSchema||!i?n.open(p):n.open(p,i);if(!f)throw new G.MissingAPI;f.onerror=tE(u),f.onblocked=eC(e._fireOnBlocked),f.onupgradeneeded=eC(function(r){var i,s,l,h,m,g,v;c=f.transaction,t.autoSchema&&!e._options.allowEmptyDB?(f.onerror=tT,c.abort(),f.result.close(),(i=n.deleteDatabase(p)).onsuccess=i.onerror=eC(function(){u(new G.NoSuchDatabase("Database ".concat(p," doesnt exist")))})):(c.onerror=tE(u),d=(i=r.oldVersion>0x4000000000000000?0:r.oldVersion)<1,e.idbdb=f.result,o&&function(e,t){tH(e._dbSchema,t),t.db.version%10!=0||t.objectStoreNames.contains("$meta")||t.db.createObjectStore("$meta").add(Math.ceil(t.db.version/10-1),"version");var n=tG(0,e.idbdb,t);tq(e,e._dbSchema,t);for(var r=0,i=tj(n,e._dbSchema).change;r<i.length;r++){var a=(e=>{if(e.change.length||e.recreate)return console.warn("Unable to patch indexes of table ".concat(e.name," because it has changes on the type of index or primary key.")),{value:void 0};var n=t.objectStore(e.name);e.add.forEach(function(t){en&&console.debug("Dexie upgrade patch: Creating missing index ".concat(e.name,".").concat(t.src)),tZ(n,t)})})(i[r]);if("object"==typeof a)return a.value}}(e,c),s=i/10,l=c,h=e._dbSchema,(l.objectStoreNames.contains("$meta")&&!h.$meta&&(h.$meta=tC("$meta",tK("")[0],[]),e._storeNames.push("$meta")),m=e._createTransaction("readwrite",e._storeNames,h)).create(l),m._completion.catch(u),g=m._reject.bind(m),v=em.transless||em,eU(function(){if(em.trans=m,em.transless=v,0!==s)return tM(e,l),(m.storeNames.includes("$meta")?m.table("$meta").get("version").then(function(e){return null!=e?e:s}):e_.resolve(s)).then(function(t){var n=t,r=[],t=e._versions,i=e._dbSchema=tG(0,e.idbdb,l);return 0===(t=t.filter(function(e){return e._cfg.version>=n})).length?e_.resolve():(t.forEach(function(t){r.push(function(){var r,o,s,u=i,c=t._cfg.dbschema,d=(tq(e,u,l),tq(e,c,l),i=e._dbSchema=c,tj(u,c)),p=(d.add.forEac
vendor: 11,974 bytes, line 45
45h(function(e){tB(l,e[0],e[1].primKey,e[1].indexes)}),d.change.forEach(function(e){if(e.recreate)throw new G.Upgrade("Not yet support for changing primary key");var t=l.objectStore(e.name);e.add.forEach(function(e){return tZ(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),tZ(t,e)}),e.del.forEach(function(e){return t.deleteIndex(e)})}),t._cfg.contentUpgrade);if(p&&t._cfg.version>n)return tM(e,l),m._memoizedTables={},r=T(c),d.del.forEach(function(e){r[e]=u[e]}),tz(e,[e.Transaction.prototype]),tU(e,[e.Transaction.prototype],a(r),r),m.schema=r,(o=M(p))&&ez(),c=e_.follow(function(){var e;(s=p(m))&&o&&(e=eF.bind(null,null),s.then(e,e))}),s&&"function"==typeof s.then?e_.resolve(s):c.then(function(){return s})}),r.push(function(n){var r=t._cfg.dbschema;[].slice.call(n.db.objectStoreNames).forEach(function(e){return null==r[e]&&n.db.deleteObjectStore(e)}),tz(e,[e.Transaction.prototype]),tU(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),m.schema=e._dbSchema}),r.push(function(n){e.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(e.idbdb.version/10)===t._cfg.version?(e.idbdb.deleteObjectStore("$meta"),delete e._dbSchema.$meta,e._storeNames=e._storeNames.filter(function(e){return"$meta"!==e})):n.objectStore("$meta").put(t._cfg.version,"version"))})}),(function e(){return r.length?e_.resolve(r.shift()(m.idbtrans)).then(e):e_.resolve()})().then(function(){tH(i,l)}))}).catch(g);a(h).forEach(function(e){tB(l,e,h[e].primKey,h[e].indexes)}),tM(e,l),e_.follow(function(){return e.on.populate.fire(m)}).catch(g)}))},u),f.onsuccess=eC(function(){c=null;var n,s,u,h,m=e.idbdb=f.result,g=v(m.objectStoreNames);if(0<g.length)try{var y=m.transaction(1===(u=g).length?u[0]:u,"readonly");if(t.autoSchema)h=m,s=y,e.verno=h.version/10,s=e._dbSchema=tG(0,h,s),e._storeNames=v(h.objectStoreNames,0),tU(e,[e._allTables],a(s),s);else if(tq(e,e._dbSchema,y),n=y,((n=tj(tG(0,e.idbdb,n),e._dbSchema)).add.length||n.change.some(function(e){return e.add.length||e.change.length}))&&!o)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),m.close(),i=m.version+1,o=!0,l(r());tM(e,y)}catch(e){}tW.add(e),m.onversionchange=eC(function(n){t.vcFired=!0,e.on("versionchange").fire(n)}),m.onclose=eC(function(){e.close({disableAutoOpen:!1})}),d&&(g=e._deps,u=p,tJ(h=g.indexedDB)||u===eX||tY(h,g.IDBKeyRange).put({name:u}).catch(K)),l()},u)}).catch(function(e){switch(null==e?void 0:e.name){case"UnknownError":if(0<t.PR1398_maxLoop)return t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),r();break;case"VersionError":if(0<i)return i=0,r()}return e_.reject(e)})})]).then(function(){return s(),t.onReadyBeingFired=[],e_.resolve(tX(function(){return e.on.ready.fire(e.vip)})).then(function n(){var r;if(0<t.onReadyBeingFired.length)return r=t.onReadyBeingFired.reduce(et,K),t.onReadyBeingFired=[],e_.resolve(tX(function(){return r(e.vip)})).then(n)})}).finally(function(){t.openCanceller===r&&(t.onReadyBeingFired=null,t.isBeingOpened=!1)}).catch(function(n){t.dbOpenError=n;try{c&&c.abort()}catch(e){}return r===t.openCanceller&&e._close(),eV(n)}).finally(function(){t.openComplete=!0,u()}).then(function(){var t;return d&&(t={},e.tables.forEach(function(n){n.schema.indexes.forEach(function(r){r.name&&(t["idb://".concat(e.name,"/").concat(n.name,"/").concat(r.name)]=new t0(-1/0,[[[]]]))}),t["idb://".concat(e.name,"/").concat(n.name,"/")]=t["idb://".concat(e.name,"/").concat(n.name,"/:dels")]=new t0(-1/0,[[[]]])}),tS(tx).fire(t),nr(t,!0)),e})}(e)})},nT.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var e=this._state;if(tW.remove(this),this.idbdb){try{this.idbdb.close()}catch(e){}this.idbdb=null}e.isBeingOpened||(e.dbReadyPromise=new e_(function(t){e.dbReadyResolve=t}),e.openCanceller=new e_(function(t,n){e.cancelOpen=n}))},nT.prototype.close=function(e){var e=(void 0===e?{disableAutoOpen:!0}:e).disableAutoOpen,t=this._state;e?(t.isBeingOpened&&t.cancelOpen(new G.DatabaseClosed),this._close(),t.autoOpen=!1,t.dbOpenError=new G.DatabaseClosed):(this._close(),t.autoOpen=this._options.autoOpen||t.isBeingOpened,t.openComplete=!1,t.dbOpenError=null)},nT.prototype.delete=function(e){var t=this,n=(void 0===e&&(e={disableAutoOpen:!0}),0<arguments.length&&"object"!=typeof arguments[0]),r=this._state;return new e_(function(i,a){function o(){t.close(e);var n=t._deps.indexedDB.deleteDatabase(t.name);n.onsuccess=eC(function(){var e,n,r;e=t._deps,n=t.name,tJ(r=e.indexedDB)||n===eX||tY(r,e.IDBKeyRange).delete(n).catch(K),i()}),n.onerror=tE(a),n.onblocked=t._fireOnBlocked}if(n)throw new G.InvalidArgument("Invalid closeOptions argument to db.delete()");r.isBeingOpened?r.dbReadyPromise.then(o):o()})},nT.prototype.backendDB=function(){return this.idbdb},nT.prototype.isOpen=function(){return null!==this.idbdb},nT.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},nT.prototype.hasFailed=function(){return null!==this._state.dbOpenError},nT.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(nT.prototype,"tables",{get:function(){var e=this;return a(this._allTables).map(function(t){return e._allTables[t]})},enumerable:!1,configurable:!0}),nT.prototype.transaction=function(){var e=(function(e,t,n){var r=arguments.length;if(r<2)throw new G.InvalidArgument("Too few arguments");for(var i=Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,A(i),n]}).apply(this,arguments);return this._transaction.apply(this,e)},nT.prototype._transaction=function(e,t,n){var r,i,a=this,o=em.trans,s=(o&&o.db===this&&-1===e.indexOf("!")||(o=null),-1!==e.indexOf("?"));e=e.replace("!","").replace("?","");try{if(i=t.map(function(e){if(e=e instanceof a.Table?e.name:e,"string"!=typeof e)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e}),"r"==e||e===eQ)r=eQ;else{if("rw"!=e&&e!=e0)throw new G.InvalidArgument("Invalid transaction mode: "+e);r=e0}if(o){if(o.mode===eQ&&r===e0){if(!s)throw new G.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&i.forEach(function(e){if(o&&-1===o.storeNames.indexOf(e)){if(!s)throw new G.SubTransaction("Table "+e+" not included in parent transaction.");o=null}}),s&&o&&!o.active&&(o=null)}}catch(e){return o?o._promise(null,function(t,n){n(e)}):eV(e)}var l=(function e(t,n,r,i,a){return e_.resolve().then(function(){var o=em.transless||em,s=t._createTransaction(n,r,t._dbSchema,i),o=(s.explicit=!0,{trans:s,transless:o});if(i)s.idbtrans=i.idbtrans;else try{s.create(),s.idbtrans._explicit=!0,t._state.PR1398_maxLoop=3}catch(i){return i.name===Z.InvalidState&&t.isOpen()&&0<--t._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),t.close({disableAutoOpen:!1}),t.open().then(function(){return e(t,n,r,null,a)})):eV(i)}var l,u=M(a),o=(u&&ez(),e_.follow(function(){var e;(l=a.call(s,s))&&(u?(e=eF.bind(null,null),l.then(e,e)):"function"==typeof l.next&&"function"==typeof l.throw&&(l=na(l)))},o));return(l&&"function"==typeof l.then?e_.resolve(l).then(function(e){return s.active?e:eV(new G.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):o.then(function(){return l})).then(function(e){return i&&s._resolve(),s._completion.then(function(){return e})}).catch(function(e){return s._reject(e),eV(e)})})}).bind(null,this,r,i,o,n);return o?o._promise(r,l,"lock"):em.trans?eG(em.transless,function(){return a._whenReady(l)}):this._whenReady(l)},nT.prototype.table=function(e){if(c(this._allTables,e))return this._allTables[e];throw new G.InvalidTable("Table ".concat(e," does not exist"))};var nE=nT;function nT(e,n){var r,i,a,o,s,l=this,u=(this._middlewares={},this.verno=0,nT.dependencies),u=(this._options=n=t({addons:nT.addons,autoOpen:!0,indexedDB:u.indexedDB,IDBKeyRange:u.IDBKeyRange,cache:"cloned",maxConnections:1e3},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange},n.addons),c=(this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this,{dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:K,dbReadyPromise:null,cancelOpen:K,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:n.autoOpen}),d=(c.dbReadyPromise=new e_(function(e){c.dbReadyResolve=e}),c.openCanceller=new e_(function(e,t){c.cancelOpen=t}),this._state=c,this.name=e,this.on=tn(this,"populate","blocked","versionchange","close",{ready:[et,K]}),this.once=function(e,t){var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];l.on(e).unsubscribe(n),t.apply(l,r)};return l.on(e,n)},this.on.ready.subscribe=y(this.on.ready.subscribe,function(e){return function(t,n){nT.vip(function(){var r=l._state;r.openComplete?(r.dbOpenError||e_.resolve().then(t),n&&e(t)):r.onReadyBeingFired?(r.onReadyBeingFired.push(t),n&&e(t)):(e(t),n||e(function e(){l.on.ready.unsubscribe(t),l.on.ready.unsubscribe(e)}))})}}),this.Collection=(r=this,tr(td.prototype,function(e,t){this.db=r;var n=e2,i=null;if(t)try{n=t()}catch(e){i=e}var t=e._ctx,e=t.table,a=e.hook.reading.fire;this._ctx={table:e,index:t.index,isPrimKey:!t.index||e.schema.primKey.keyPath&&t.index===e.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:t.or,valueMapper:a!==V?a:null}})),this.Table=(i=this,tr(tt.prototype,function(e,t,n){this.db=i,this._tx=n,this.name=e,this.schema=t,this.hook=i._allTables[e]?i._allTables[e].hook:tn(null,{creating:[J,K],reading:[W,V],updating:[Q,K],deleting:[X,K]})})),this.Transaction=(a=this,tr(tI.prototype,function(e,t,n,r,i){var o=this;"readonly"!==e&&t.forEach(function(e){(e=null==(e=n[e])?void 0:e.yProps)&&(t=t.concat(e.map(function(e){return e.updatesTable})))}),this.db=a,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=tn(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new e_(function(e,t){o._resolve=e,o._reject=t}),this._completion.then(function(){o.active=!1,o.on.complete.fire()},function(e){var t=o.active;return o.active=!1,o.on.error.fire(e),o.parent?o.parent._reject(e):t&&o.idbtrans&&o.idbtrans.abort(),eV(e)})})),this.Version=(o=this,tr(tV.prototype,function(e){this.db=o,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(s=this,tr(tb.prototype,function(e,t,n){if(this.db=s,this._ctx={table:e,index:":id"===t?null:t,or:n},this._cmp=this._ascending=e3,this._descending=function(e,t){return e3(t,e)},this._max=function(e,t){return 0<e3(e,t)?e:t},this._min=function(e,t){return 0>e3(e,t)?e:t},this._IDBKeyRange=s._deps.IDBKeyRange,!this._IDBKeyRange)throw new G.MissingAPI})),this.on("versionchange",function(e){0<e.newVersion?console.warn("Another connection wants to upgrade database '".concat(l.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(l.name,"'. Closing db now to resume the delete request.")),l.close({disableAutoOpen:!1})}),this.on("blocked",function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('".concat(l.name,"') was blocked")):console.warn("Upgrade '".concat(l.name,"' blocked by other connection holding version ").concat(e.oldVersion/10))}),this._maxKey=tD(n.IDBKeyRange),this._createTransaction=function(e,t,n,r){return new l.Transaction(e,t,n,l._options.chromeTransactionDurability,r)},this._fireOnBlocked=function(e){l.on("blocked").fire(e),tW.toArray().filter(function(e){return e.name===l.name&&e!==l&&!e._state.vcFired}).map(function(t){return t.on("versionchange").fire(e)}
45)},this.use(np),this.use(nb),this.use(nm),this.use(ns),this.use(nc),new Proxy(this,{get:function(e,t,n){var r;return"_vip"===t||("table"===t?function(e){return nk(l.table(e),d)}:(r=Reflect.get(e,t,n))instanceof tt?nk(r,d):"tables"===t?r.map(function(e){return nk(e,d)}):"_createTransaction"===t?function(){return nk(r.apply(this,arguments),d)}:r)}}));this.vip=d,u.forEach(function(e){return e(l)})}var nx,nA,nS,nI,ea="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",nw=(nN.prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})},nN.prototype[ea]=function(){return this},nN);function nN(e){this._subscribe=e}try{nI={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch(e){nI={indexedDB:null,IDBKeyRange:null}}function nO(e){var t,n=!1,r=new nw(function(r){var i,a=M(e),o=!1,s={},l={},u={get closed(){return o},unsubscribe:function(){o||(o=!0,i&&i.abort(),c&&tS.storagemutated.unsubscribe(p))}},c=(r.start&&r.start(u),!1),d=function(){return eK(f)},p=function(e){t9(s,e),t8(l,s)&&d()},f=function(){var u,f,h;!o&&nI.indexedDB&&(s={},u={},i&&i.abort(),h=(t=>{var n=eI();try{a&&ez();var r=eU(e,t);return r=a?r.finally(eF):r}finally{n&&ew()}})(f={subscr:u,signal:(i=new AbortController).signal,requery:d,querier:e,trans:null}),c||(tS(tx,p),c=!0),Promise.resolve(h).then(function(e){n=!0,t=e,o||f.signal.aborted||(t8(l,s)||t8(l=u,s)?d():(s={},eK(function(){return!o&&r.next&&r.next(e)})))},function(e){n=!1,["DatabaseClosedError","AbortError"].includes(null==e?void 0:e.name)||o||eK(function(){o||r.error&&r.error(e)})}))};return setTimeout(d,0),u});return r.hasValue=function(){return n},r.getValue=function(){return t},r}function nC(e){var t=n$;try{n$=!0,tS.storagemutated.fire(e),nr(e,!0)}finally{n$=t}}d(nE,t(t({},S),{delete:function(e){return new nE(e,{addons:[]}).delete()},exists:function(e){return new nE(e,{addons:[]}).open().then(function(e){return e.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){var t,n;try{return n=(t=nE.dependencies).indexedDB,t=t.IDBKeyRange,(tJ(n)?Promise.resolve(n.databases()).then(function(e){return e.map(function(e){return e.name}).filter(function(e){return e!==eX})}):tY(n,t).toCollection().primaryKeys()).then(e)}catch(e){return eV(new G.MissingAPI)}},defineClass:function(){return function(e){s(this,e)}},ignoreTransaction:function(e){return em.trans?eG(em.transless||eh,e):e()},vip:tX,async:function(e){return function(){try{var t=na(e.apply(this,arguments));return t&&"function"==typeof t.then?t:e_.resolve(t)}catch(e){return eV(e)}}},spawn:function(e,t,n){try{var r=na(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:e_.resolve(r)}catch(e){return eV(e)}},currentTransaction:{get:function(){return em.trans||null}},waitFor:function(e,t){return e=e_.resolve("function"==typeof e?nE.ignoreTransaction(e):e).timeout(t||6e4),em.trans?em.trans.waitFor(e):e},Promise:e_,debug:{get:function(){return en},set:function(e){en=e}},derive:h,extend:s,props:d,override:y,Events:tn,on:tS,liveQuery:nO,extendObservabilitySet:t9,getByKeyPath:k,setByKeyPath:E,delByKeyPath:function(e,t){"string"==typeof t?E(e,t,void 0):"length"in t&&[].map.call(t,function(t){E(e,t,void 0)})},shallowClone:T,deepClone:N,getObjectDiff:nl,cmp:e3,asap:b,minKey:-1/0,addons:[],connections:{get:tW.toArray},errnames:Z,dependencies:nI,cache:t7,semVer:"4.4.2",version:"4.4.2".split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,2*n)})})),nE.maxKey=tD(nE.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(tS(tx,function(e){n$||(e=new CustomEvent(tA,{detail:e}),n$=!0,dispatchEvent(e),n$=!1)}),addEventListener(tA,function(e){e=e.detail,n$||nC(e)}));var nD,n$=!1,nR=function(){};return"undefined"!=typeof BroadcastChannel&&((nR=function(){(nD=new BroadcastChannel(tA)).onmessage=function(e){return e.data&&nC(e.data)}})(),"function"==typeof nD.unref&&nD.unref(),tS(tx,function(e){n$||nD.postMessage(e)})),"undefined"!=typeof addEventListener&&(addEventListener("pagehide",function(e){if(!nE.disableBfCache&&e.persisted){en&&console.debug("Dexie: handling persisted pagehide"),null!=nD&&nD.close();for(var t=0,n=tW.toArray();t<n.length;t++)n[t].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(e){!nE.disableBfCache&&e.persisted&&(en&&console.debug("Dexie: handling persisted pageshow"),nR(),nC({all:new t0(-1/0,[[]])}))})),e_.rejectionMapper=function(e,t){return!e||e instanceof F||e instanceof TypeError||e instanceof SyntaxError||!e.name||!q[e.name]?e:(t=new q[e.name](t||e.message,e),"stack"in e&&f(t,"stack",{get:function(){return this.inner.stack}}),t)},t(nE,Object.freeze({__proto__:null,DEFAULT_MAX_CONNECTIONS:1e3,Dexie:nE,Entity:e6,PropModification:e7,RangeSet:t0,add:function(e){return new e7({add:e})},cmp:e3,default:nE,liveQuery:nO,mergeRanges:t2,rangesOverlap:t4,remove:function(e){return new e7({remove:e})},replacePrefix:function(e,t){return new e7({replacePrefix:[e,t]})}}),{default:nE}),nE}()}
45,5748:(e,t,n)=>{"use strict";let r;n.d(t,{_s:()=>M});var i=n(8867),a=n(6426);let o=a.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),s=()=>{let e=a.useContext(o);if(!e)throw Error("useDrawerContext must be used within a Drawer.Root");return e};function l(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function u(){return c(/^iPhone/)||c(/^iPad/)||c(/^Mac/)&&navigator.maxTouchPoints>1}function c(e){return"undefined"!=typeof window&&null!=window.navigator?e.test(window.navigator.platform):void 0}!function(e){if(!e||"undefined"==typeof document)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))}("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}
45[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");let d="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e of t)"function"==typeof e&&e(...n)}}let f="undefined"!=typeof document&&window.visualViewport;function h(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function m(e){for(h(e)&&(e=e.parentElement);e&&!h(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}let g=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),v=0;function y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function _(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=m(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function b(e){return e instanceof HTMLInputElement&&!g.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function k(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.useCallback(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}(...t),t)}let E=new WeakMap;function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(t=>{let[n,i]=t;if(n.startsWith("--"))return void e.style.setProperty(n,i);r[n]=e.style[n],e.style[n]=i}),n||E.set(e,r)}let x=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function A(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[x(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/))?parseFloat(i[1].split(", ")[x(t)?5:4]):null}function S(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}let I={DURATION:.5,EASE:[.32,.72,0,1]},w="vaul-dragging";function N(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current.call(t,...n)},[])}function O(e){let{prop:t,defaultProp:n,onChange:r=()=>{}}=e,[i,o]=function(e){let{defaultProp:t,onChange:n}=e,r=a.useState(t),[i]=r,o=a.useRef(i),s=N(n);return a.useEffect(()=>{o.current!==i&&(s(i),o.current=i)},[i,o,s]),r}({defaultProp:n,onChange:r}),s=void 0!==t,l=s?t:i,u=N(r);return[l,a.useCallback(e=>{if(s){let n="function"==typeof e?e(t):e;n!==t&&u(n)}else o(e)},[s,t,o,u])]}let C=()=>()=>{},D=null;function $(e){var t,n;let{open:s,onOpenChange:c,children:h,onDrag:g,onRelease:k,snapPoints:S,shouldScaleBackgroun
45d:N=!1,setBackgroundColorOnScale:C=!0,closeThreshold:$=.25,scrollLockTimeout:R=100,dismissible:P=!0,handleOnly:L=!1,fadeFromIndex:M=S&&S.length-1,activeSnapPoint:U,setActiveSnapPoint:z,fixed:F,modal:j=!0,onClose:B,nested:H,noBodyStyles:Z=!1,direction:G="bottom",defaultOpen:q=!1,disablePreventScroll:K=!0,snapToSequentialPoint:V=!1,preventScrollRestoration:W=!1,repositionInputs:Y=!0,onAnimationEnd:J,container:X,autoFocus:Q=!1}=e,[ee=!1,et]=O({defaultProp:q,prop:s,onChange:e=>{null==c||c(e),e||H||eD(),setTimeout(()=>{null==J||J(e)},1e3*I.DURATION),e&&!j&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[en,er]=a.useState(!1),[ei,ea]=a.useState(!1),[eo,es]=a.useState(!1),el=a.useRef(null),eu=a.useRef(null),ec=a.useRef(null),ed=a.useRef(null),ep=a.useRef(null),ef=a.useRef(!1),eh=a.useRef(null),em=a.useRef(0),eg=a.useRef(!1),ev=a.useRef(!q),ey=a.useRef(0),e_=a.useRef(null),eb=a.useRef((null==(t=e_.current)?void 0:t.getBoundingClientRect().height)||0),ek=a.useRef((null==(n=e_.current)?void 0:n.getBoundingClientRect().width)||0),eE=a.useRef(0),eT=a.useCallback(e=>{S&&e===ew.length-1&&(eu.current=new Date)},[]),{activeSnapPoint:ex,activeSnapPointIndex:eA,setActiveSnapPoint:eS,onRelease:eI,snapPointsOffset:ew,onDrag:eN,shouldFade:eO,getPercentageDragged:eC}=function(e){let{activeSnapPointProp:t,setActiveSnapPointProp:n,snapPoints:r,drawerRef:i,overlayRef:o,fadeFromIndex:s,onSnapPointChange:l,direction:u="bottom",container:c,snapToSequentialPoint:d}=e,[p,f]=O({prop:t,defaultProp:null==r?void 0:r[0],onChange:n}),[h,m]=a.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);a.useEffect(()=>{function e(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let g=a.useMemo(()=>p===(null==r?void 0:r[r.length-1])||null,[r,p]),v=a.useMemo(()=>{var e;return null!=(e=null==r?void 0:r.findIndex(e=>e===p))?e:null},[r,p]),y=r&&r.length>0&&(s||0===s)&&!Number.isNaN(s)&&r[s]===p||!r,_=a.useMemo(()=>{var e;let t=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return null!=(e=null==r?void 0:r.map(e=>{let n="string"==typeof e,r=0;if(n&&(r=parseInt(e,10)),x(u)){let i=n?r:h?e*t.height:0;return h?"bottom"===u?t.height-i:-t.height+i:i}let i=n?r:h?e*t.width:0;return h?"right"===u?t.width-i:-t.width+i:i}))?e:[]},[r,h,c]),b=a.useMemo(()=>null!==v?null==_?void 0:_[v]:null,[_,v]),k=a.useCallback(e=>{var t;let n=null!=(t=null==_?void 0:_.findIndex(t=>t===e))?t:null;l(n),T(i.current,{transition:"transform ".concat(I.DURATION,"s cubic-bezier(").concat(I.EASE.join(","),")"),transform:x(u)?"translate3d(0, ".concat(e,"px, 0)"):"translate3d(".concat(e,"px, 0, 0)")}),_&&n!==_.length-1&&void 0!==s&&n!==s&&n<s?T(o.current,{transition:"opacity ".concat(I.DURATION,"s cubic-bezier(").concat(I.EASE.join(","),")"),opacity:"0"}):T(o.current,{transition:"opacity ".concat(I.DURATION,"s cubic-bezier(").concat(I.EASE.join(","),")"),opacity:"1"}),f(null==r?void 0:r[Math.max(n,0)])},[i.current,r,_,s,o,f]);return a.useEffect(()=>{if(p||t){var e;let n=null!=(e=null==r?void 0:r.findIndex(e=>e===t||e===p))?e:-1;_&&-1!==n&&"number"==typeof _[n]&&k(_[n])}},[p,t,r,_,k]),{isLastSnapPoint:g,activeSnapPoint:p,shouldFade:y,getPercentageDragged:function(e,t){if(!r||"number"!=typeof v||!_||void 0===s)return null;let n=v===s-1;if(v>=s&&t)return 0;if(n&&!t)return 1;if(!y&&!n)return null;let i=n?v+1:v-1,a=e/Math.abs(n?_[i]-_[i-1]:_[i+1]-_[i]);return n?1-a:a},setActiveSnapPoint:f,activeSnapPointIndex:v,onRelease:function(e){let{draggedDistance:t,closeDrawer:n,velocity:i,dismissible:a}=e;if(void 0===s)return;let l="bottom"===u||"right"===u?(null!=b?b:0)-t:(null!=b?b:0)+t,c=v===s-1,p=0===v,f=t>0;if(c&&T(o.current,{transition:"opacity ".concat(I.DURATION,"s cubic-bezier(").concat(I.EASE.join(","),")")}),!d&&i>2&&!f)return void(a?n():k(_[0]));if(!d&&i>2&&f&&_&&r)return void k(_[r.length-1]);let h=null==_?void 0:_.reduce((e,t)=>
45"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-l)<Math.abs(e-l)?t:e),m=x(u)?window.innerHeight:window.innerWidth;if(i>.4&&Math.abs(t)<.4*m){let e=f?1:-1;return e>0&&g&&r?void k(_[r.length-1]):void(p&&e<0&&a&&n(),null===v||k(_[v+e]))}k(h)},onDrag:function(e){let{draggedDistance:t}=e;if(null===b)return;let n="bottom"===u||"right"===u?b-t:b+t;("bottom"!==u&&"right"!==u||!(n<_[_.length-1]))&&(("top"===u||"left"===u)&&n>_[_.length-1]||T(i.current,{transform:x(u)?"translate3d(0, ".concat(n,"px, 0)"):"translate3d(".concat(n,"px, 0, 0)")}))},snapPointsOffset:_}}({snapPoints:S,activeSnapPointProp:U,setActiveSnapPointProp:z,drawerRef:e_,fadeFromIndex:M,overlayRef:el,onSnapPointChange:eT,direction:G,container:X,snapToSequentialPoint:V});!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isDisabled:t}=e;d(()=>{if(!t){var e,n,i;let t,a,o,s,l,c,d;return 1==++v&&u()&&(o=0,s=window.pageXOffset,l=window.pageYOffset,c=p((e=document.documentElement,n="paddingRight",i="".concat(window.innerWidth-document.documentElement.clientWidth,"px"),t=e.style[n],e.style[n]=i,()=>{e.style[n]=t})),window.scrollTo(0,0),d=p(y(document,"touchstart",e=>{((a=m(e.target))!==document.documentElement||a!==document.body)&&(o=e.changedTouches[0].pageY)},{passive:!1,capture:!0}),y(document,"touchmove",e=>{if(!a||a===document.documentElement||a===document.body)return void e.preventDefault();let t=e.changedTouches[0].pageY,n=a.scrollTop,r=a.scrollHeight-a.clientHeight;0!==r&&((n<=0&&t>o||n>=r&&t<o)&&e.preventDefault(),o=t)},{passive:!1,capture:!0}),y(document,"touchend",e=>{let t=e.target;b(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},{passive:!1,capture:!0}),y(document,"focus",e=>{let t=e.target;b(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",f&&(f.height<window.innerHeight?requestAnimationFrame(()=>{_(t)}):f.addEventListener("resize",()=>_(t),{once:!0}))}))},!0),y(window,"scroll",()=>{window.scrollTo(0,0)})),r=()=>{c(),d(),window.scrollTo(s,l)}),()=>{0==--v&&(null==r||r())}}},[t])}({isDisabled:!ee||ei||!j||eo||!en||!Y||!K});let{restorePositionSetting:eD}=function(e){let{isOpen:t,modal:n,nested:r,hasBeenOpened:i,preventScrollRestoration:o,noBodyStyles:s}=e,[u,c]=a.useState(()=>"undefined"!=typeof window?window.location.href:""),d=a.useRef(0),p=a.useCallback(()=>{if(l()&&null===D&&t&&!s){D={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:"".concat(-d.current,"px"),left:"".concat(-e,"px"),right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&d.current>=t&&(document.body.style.top="".concat(-(d.current+e),"px"))}),300)}},[t]),f=a.useCallback(()=>{if(l()&&null!==D&&!s){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,D),window.requestAnimationFrame(()=>{if(o&&u!==window.location.href)return void c(window.location.href);window.scrollTo(t,e)}),D=null}},[u]);return a.useEffect(()=>{function e(){d.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),a.useEffect(()=>{if(n)return()=>{"undefined"!=typeof document&&(document.querySelector("[data-vaul-drawer]")||f())}},[n,f]),a.useEffect(()=>{!r&&i&&(t?(window.matchMedia("(display-mode: standalone)").matches||p(),n||window.setTimeout(()=>{f()},500)):f())},[t,i,u,n,r,p,f]),{restorePositionSetting:f}}({isOpen:ee,modal:j,nested:null!=H&&H,hasBeenOpened:en,preventScrollRestoration:W,noBodyStyles:Z});function e$(){return(window.innerWidth-26)/window.innerWidth}function eR(e,t){var n;let r=e,i=null==(n=window.getSelection())?void 0:n.toString(),a=e_.current?A(e_.current,G):null,o=new Date;if("SELECT"===r.tagName||r.hasAttribute("data-vaul-no-drag")||r.closest("[data-vaul-no-drag]"))return!1;
45if("right"===G||"left"===G)return!0;if(eu.current&&o.getTime()-eu.current.getTime()<500)return!1;if(null!==a&&("bottom"===G?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(ep.current&&o.getTime()-ep.current.getTime()<R&&0===a||t)return ep.current=o,!1;for(;r;){if(r.scrollHeight>r.clientHeight){if(0!==r.scrollTop)return ep.current=new Date,!1;if("dialog"===r.getAttribute("role"))break}r=r.parentNode}return!0}function eP(e){ei&&e_.current&&(e_.current.classList.remove(w),ef.current=!1,ea(!1),ed.current=new Date),null==B||B(),e||et(!1),setTimeout(()=>{S&&eS(S[0])},1e3*I.DURATION)}function eL(){if(!e_.current)return;let e=document.querySelector("[data-vaul-drawer-wrapper]"),t=A(e_.current,G);T(e_.current,{transform:"translate3d(0, 0, 0)",transition:"transform ".concat(I.DURATION,"s cubic-bezier(").concat(I.EASE.join(","),")")}),T(el.current,{transition:"opacity ".concat(I.DURATION,"s cubic-bezier(").concat(I.EASE.join(","),")"),opacity:"1"}),N&&t&&t>0&&ee&&T(e,{borderRadius:"".concat(8,"px"),overflow:"hidden",...x(G)?{transform:"scale(".concat(e$(),") translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)"),transformOrigin:"top"}:{transform:"scale(".concat(e$(),") translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)"),transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:"".concat(I.DURATION,"s"),transitionTimingFunction:"cubic-bezier(".concat(I.EASE.join(","),")")},!0)}return a.useEffect(()=>{window.requestAnimationFrame(()=>{ev.current=!0})},[]),a.useEffect(()=>{var e;function t(){if(e_.current&&Y&&(b(document.activeElement)||eg.current)){var e;let t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight,r=n-t,i=e_.current.getBoundingClientRect().height||0;eE.current||(eE.current=i);let a=e_.current.getBoundingClientRect().top;if(Math.abs(ey.current-r)>60&&(eg.current=!eg.current),S&&S.length>0&&ew&&eA&&(r+=ew[eA]||0),ey.current=r,i>t||eg.current){let e=e_.current.getBoundingClientRect().height,o=e;e>t&&(o=t-(i>.8*n?a:26)),F?e_.current.style.height="".concat(e-Math.max(r,0),"px"):e_.current.style.height="".concat(Math.max(o,t-a),"px")}else!function(){let e=navigator.userAgent;return"undefined"!=typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}()&&(e_.current.style.height="".concat(eE.current,"px"));S&&S.length>0&&!eg.current?e_.current.style.bottom="0px":e_.current.style.bottom="".concat(Math.max(r,0),"px")}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}},[eA,S,ew]),a.useEffect(()=>(ee&&(T(document.documentElement,{scrollBehavior:"auto"}),eu.current=new Date),()=>{!function(e,t){if(!e||!(e instanceof HTMLElement))return;let n=E.get(e);n&&(e.style[t]=n[t])}(document.documentElement,"scrollBehavior")}),[ee]),a.useEffect(()=>{j||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[j]),a.createElement(i.bL,{defaultOpen:q,onOpenChange:e=>{(P||e)&&(e?er(!0):eP(!0),et(e))},open:ee},a.createElement(o.Provider,{value:{activeSnapPoint:ex,snapPoints:S,setActiveSnapPoint:eS,drawerRef:e_,overlayRef:el,onOpenChange:c,onPress:function(e){var t,n;(P||S)&&(!e_.current||e_.current.contains(e.target))&&(eb.current=(null==(t=e_.current)?void 0:t.getBoundingClientRect().height)||0,ek.current=(null==(n=e_.current)?void 0:n.getBoundingClientRect().width)||0,ea(!0),ec.current=new Date,u()&&window.addEventListener("touchend",()=>ef.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),em.current=x(G)?e.pageY:e.pageX)},onRelease:function(e){var t,n;if(!ei||!e_.current)return;e_.current.classList.remove(w),ef.current=!1,ea(!1),ed.current=new Date;let r=A(e_.current,G);
45if(!e||!eR(e.target,!1)||!r||Number.isNaN(r)||null===ec.current)return;let i=ed.current.getTime()-ec.current.getTime(),a=em.current-(x(G)?e.pageY:e.pageX),o=Math.abs(a)/i;if(o>.05&&(es(!0),setTimeout(()=>{es(!1)},200)),S){eI({draggedDistance:a*("bottom"===G||"right"===G?1:-1),closeDrawer:eP,velocity:o,dismissible:P}),null==k||k(e,!0);return}if("bottom"===G||"right"===G?a>0:a<0){eL(),null==k||k(e,!0);return}if(o>.4){eP(),null==k||k(e,!1);return}let s=Math.min(null!=(t=e_.current.getBoundingClientRect().height)?t:0,window.innerHeight),l=Math.min(null!=(n=e_.current.getBoundingClientRect().width)?n:0,window.innerWidth);if(Math.abs(r)>=("left"===G||"right"===G?l:s)*$){eP(),null==k||k(e,!1);return}null==k||k(e,!0),eL()},onDrag:function(e){if(e_.current&&ei){let t="bottom"===G||"right"===G?1:-1,n=(em.current-(x(G)?e.pageY:e.pageX))*t,r=n>0,i=S&&!P&&!r;if(i&&0===eA)return;let a=Math.abs(n),o=document.querySelector("[data-vaul-drawer-wrapper]"),s=a/("bottom"===G||"top"===G?eb.current:ek.current),l=eC(a,r);if(null!==l&&(s=l),i&&s>=1||!ef.current&&!eR(e.target,r))return;if(e_.current.classList.add(w),ef.current=!0,T(e_.current,{transition:"none"}),T(el.current,{transition:"none"}),S&&eN({draggedDistance:n}),r&&!S){let e=Math.min(-(8*(Math.log(n+1)-2)*1),0)*t;T(e_.current,{transform:x(G)?"translate3d(0, ".concat(e,"px, 0)"):"translate3d(".concat(e,"px, 0, 0)")});return}let u=1-s;if((eO||M&&eA===M-1)&&(null==g||g(e,s),T(el.current,{opacity:"".concat(u),transition:"none"},!0)),o&&el.current&&N){let e=Math.min(e$()+s*(1-e$()),1),t=8-8*s,n=Math.max(0,14-14*s);T(o,{borderRadius:"".concat(t,"px"),transform:x(G)?"scale(".concat(e,") translate3d(0, ").concat(n,"px, 0)"):"scale(".concat(e,") translate3d(").concat(n,"px, 0, 0)"),transition:"none"},!0)}if(!S){let e=a*t;T(e_.current,{transform:x(G)?"translate3d(0, ".concat(e,"px, 0)"):"translate3d(".concat(e,"px, 0, 0)")})}}},dismissible:P,shouldAnimate:ev,handleOnly:L,isOpen:ee,isDragging:ei,shouldFade:eO,closeDrawer:eP,onNestedDrag:function(e,t){if(t<0)return;let n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),i=-16+16*t;T(e_.current,{transform:x(G)?"scale(".concat(r,") translate3d(0, ").concat(i,"px, 0)"):"scale(".concat(r,") translate3d(").concat(i,"px, 0, 0)"),transition:"none"})},onNestedOpenChange:function(e){let t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;eh.current&&window.clearTimeout(eh.current),T(e_.current,{transition:"transform ".concat(I.DURATION,"s cubic-bezier(").concat(I.EASE.join(","),")"),transform:x(G)?"scale(".concat(t,") translate3d(0, ").concat(n,"px, 0)"):"scale(".concat(t,") translate3d(").concat(n,"px, 0, 0)")}),!e&&e_.current&&(eh.current=setTimeout(()=>{let e=A(e_.current,G);T(e_.current,{transition:"none",transform:x(G)?"translate3d(0, ".concat(e,"px, 0)"):"translate3d(".concat(e,"px, 0, 0)")})},500))},onNestedRelease:function(e,t){let n=x(G)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,i=t?-16:0;t&&T(e_.current,{transition:"transform ".concat(I.DURATION,"s cubic-bezier(").concat(I.EASE.join(","),")"),transform:x(G)?"scale(".concat(r,") translate3d(0, ").concat(i,"px, 0)"):"scale(".concat(r,") translate3d(").concat(i,"px, 0, 0)")})},keyboardIsOpen:eg,modal:j,snapPointsOffset:ew,activeSnapPointIndex:eA,direction:G,shouldScaleBackground:N,setBackgroundColorOnScale:C,noBodyStyles:Z,container:X,autoFocus:Q}},h))}let R=a.forwardRef(function(e,t){let{...n}=e,{overlayRef:r,snapPoints:o,onRelease:l,shouldFade:u,isOpen:c,modal:d,shouldAnimate:p}=s(),f=k(t,r),h=o&&o.length>0;if(!d)return null;let m=a.useCallback(e=>l(e),[l]);return a.createElement(i.hJ,{onMouseUp:m,ref:f,"data-vaul-overlay":"","data-vaul-snap-points":c&&h?"true":"false","data-vaul-snap-points-overlay":c&&u?"true":"false","data-vaul-animate":(null==p?void 0:p.current)?"true":"false",...n})});R.displayName="Drawer.Overlay";let P=a.forwardRef(function(e,t){let{onPointerDownOutside:n,style:r,onOpenAutoFocus:o,...l}=e,{drawerRef:u,onPress:c,onRelease:d,onDrag:p,keyboardIsOpen:f,snapPointsOffset:h,activeSnapPointIndex:m,modal:g,isOpen:v,direction:y,snapPoints:_,container:b,handleOnly:E,shouldAnimate:T,autoFocus:A}=s(),[w,N]=a.useState(!1),O=k(t,u),D=a.useRef(null),$=a.useRef(null),R=a.useRef(!1),P=_&&_.length>
450,{direction:L,isOpen:M,shouldScaleBackground:U,setBackgroundColorOnScale:z,noBodyStyles:F}=s(),j=a.useRef(null),B=(0,a.useMemo)(()=>document.body.style.backgroundColor,[]);function H(){return(window.innerWidth-26)/window.innerWidth}a.useEffect(()=>{if(M&&U){j.current&&clearTimeout(j.current);let e=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!e)return;!function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]}(z&&!F?S(document.body,{background:"black"}):C,S(e,{transformOrigin:x(L)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:"".concat(I.DURATION,"s"),transitionTimingFunction:"cubic-bezier(".concat(I.EASE.join(","),")")}));let t=S(e,{borderRadius:"".concat(8,"px"),overflow:"hidden",...x(L)?{transform:"scale(".concat(H(),") translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)")}:{transform:"scale(".concat(H(),") translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)")}});return()=>{t(),j.current=window.setTimeout(()=>{B?document.body.style.background=B:document.body.style.removeProperty("background")},1e3*I.DURATION)}}},[M,U,B]);let Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(R.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return R.current=!0,!0};function G(e){D.current=null,R.current=!1,d(e)}return a.useEffect(()=>{P&&window.requestAnimationFrame(()=>{N(!0)})},[]),a.createElement(i.UC,{"data-vaul-drawer-direction":y,"data-vaul-drawer":"","data-vaul-delayed-snap-points":w?"true":"false","data-vaul-snap-points":v&&P?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":(null==T?void 0:T.current)?"true":"false",...l,ref:O,style:h&&h.length>0?{"--snap-point-height":"".concat(h[null!=m?m:0],"px"),...r}:r,onPointerDown:e=>{E||(null==l.onPointerDown||l.onPointerDown.call(l,e),D.current={x:e.pageX,y:e.pageY},c(e))},onOpenAutoFocus:e=>{null==o||o(e),A||e.preventDefault()},onPointerDownOutside:e=>{if(null==n||n(e),!g||e.defaultPrevented)return void e.preventDefault();f.current&&(f.current=!1)},onFocusOutside:e=>{if(!g)return void e.preventDefault()},onPointerMove:e=>{if($.current=e,E||(null==l.onPointerMove||l.onPointerMove.call(l,e),!D.current))return;let t=e.pageY-D.current.y,n=e.pageX-D.current.x,r="touch"===e.pointerType?10:2;Z({x:n,y:t},y,r)?p(e):(Math.abs(n)>r||Math.abs(t)>r)&&(D.current=null)},onPointerUp:e=>{null==l.onPointerUp||l.onPointerUp.call(l,e),D.current=null,R.current=!1,d(e)},onPointerOut:e=>{null==l.onPointerOut||l.onPointerOut.call(l,e),G($.current)},onContextMenu:e=>{null==l.onContextMenu||l.onContextMenu.call(l,e),$.current&&G($.current)}})});P.displayName="Drawer.Content";let L=a.forwardRef(function(e,t){let{preventCycle:n=!1,children:r,...i}=e,{closeDrawer:o,isDragging:l,snapPoints:u,activeSnapPoint:c,setActiveSnapPoint:d,dismissible:p,handleOnly:f,isOpen:h,onPress:m,onDrag:g}=s(),v=a.useRef(null),y=a.useRef(!1);function _(){v.current&&window.clearTimeout(v.current),y.current=!1}return a.createElement("div",{onClick:function(){if(y.current)return void _();window.setTimeout(()=>{!function(){if(l||n||y.current)return _();if(_(),!u||0===u.length){p||o();return}if(c===u[u.length-1]&&p)return o();let e=u.findIndex(e=>e===c);-1!==e&&d(u[e+1])}()},120)},onPointerCancel:_,onPointerDown:e=>{f&&m(e),v.current=window.setTimeout(()=>{y.current=!0},250)},onPointerMove:e=>{f&&g(e)},ref:t,"data-vaul-drawer-visible":h?"true":"false","data-vaul-handle":"","aria-hidden":"true",...i},a.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},r))});L.displayName="Drawer.Handle";let M={Root:$,NestedRoot:function(e){let{onDrag:t,onOpenChange:n,open:r,...i}=e,{onNestedDrag:o,onNestedOpenChange:l,onNestedRelease:u}=s();if(!o)throw Error("Drawer.NestedRoot must be placed in another drawer");return a.createElement($,{nested:!0,open:r,onClose:()=>{l(!1)},onDrag:(e,n)=>{o(e,n),null==t||t(e,n)},onOpenChange:e=>{e&&l(e),null==n||n(e)},onRelease:u,...i})},Content:P,Overlay:R,Trigger:i.l9,Portal:function(e){let t=s(),{container:n=t.container,...r}=e;return a.createElement(i.ZL,{container:n,...r})},Handle:L,Close:i.bm,Title:i.hE,Description:i.VY}},5834:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v,cf:()=>a});var r=n(5245);let i=Symbol.for("Dexie"),a=globalThis[i]||(globalThis[i]=r);if(r.semVer!==a.semVer)throw Error(`Two different versions of Dexie loaded in the same app: ${r.semVer} and ${a.semVer}`);let{liveQuery:o,mergeRanges:s,rangesOverlap:l,RangeSet:u,cmp:c,Entity:d,PropModification:p,replacePrefix:f,add:h,remove:m,DexieYProvider:g}=a,v=a},6158:(e,t,n)=>{"use strict";n.d(t,{jH:()=>r.l});var r=n(7064)}
45,6164:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},6198:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},6669:e=>{e.exports=function(e,t){let n;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r=0;return function(...i){clearTimeout(n);let a=Date.now(),o=t-(a-r);o<=0?(r=a,e.apply(this,i)):n=setTimeout(()=>{r=Date.now(),e.apply(this,i)},o)}}},6698:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("paint-roller",[["rect",{width:"16",height:"6",x:"2",y:"2",rx:"2",key:"jcyz7m"}],["path",{d:"M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2",key:"1b9h7c"}],["rect",{width:"4",height:"6",x:"8",y:"16",rx:"1",key:"d6e7yl"}]])},6753:()=>{}
45,7064:(e,t,n)=>{"use strict";n.d(t,{b:()=>lK,c:()=>lW,d:()=>l8,e:()=>cD,j:()=>cI,l:()=>cO});var r={};n.r(r),n.d(r,{boolean:()=>R,booleanish:()=>P,commaOrSpaceSeparated:()=>F,commaSeparated:()=>z,number:()=>M,overloadedBoolean:()=>L,spaceSeparated:()=>U});var i={};n.r(i),n.d(i,{attentionMarkers:()=>oz,contentInitial:()=>o$,disable:()=>oF,document:()=>oD,flow:()=>oP,flowInitial:()=>oR,insideSpan:()=>oU,string:()=>oL,text:()=>oM});var a=n(6426);let o=function(e){var t,n;if(null==e)return l;if("function"==typeof e)return s(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=o(e[n]);return s(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,s(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,s(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function s(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function l(){return!0}let u=[],c="skip";function d(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let a=o(i),s=r?-1:1;(function e(i,o,l){let d=i&&"object"==typeof i?i:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return p;function p(){var d;let p,f,h,m=u;if((!t||a(i,o,l[l.length-1]||void 0))&&!1===(m=Array.isArray(d=n(i,l))?d:"number"==typeof d?[!0,d]:null==d?u:[d])[0])return m;if("children"in i&&i.children&&i.children&&m[0]!==c)for(f=(r?i.children.length:-1)+s,h=l.concat(i);f>-1&&f<i.children.length;){if(!1===(p=e(i.children[f],f,h)())[0])return p;f="number"==typeof p[1]?p[1]:f+s}return m}})(e,void 0,[])()}function p(e,t,n,r){let i,a,o;"function"==typeof t&&"function"!=typeof n?(a=void 0,o=t,i=n):(a=t,o=n,i=r),d(e,a,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function f(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let h=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),m=new Set(["javascript:","data:","file:","vbscript:"]);function g(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{let t=new URL(e);if("blob:"===t.protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let o=f(e,n);if(!o||m.has(o.protocol)||!(h.has(o.protocol)||a.includes(o.protocol)||a.includes("*")))return null;if("mailto:"===o.protocol||!o.protocol.match(/^https?:$/))return o.href;let s="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return o&&t.some(e=>{let t=f(e,n);return!!t&&t.origin===o.origin&&o.href.startsWith(t.href)})?s?o.pathname+o.search+o.hash:o.href:t.includes("*")?"https:"!==o.protocol&&"http:"!==o.protocol?null:s?o.pathname+o.search+o.hash:o.href:null}let v=Symbol("node-seen"),y=(e,t,n,r,i,a,o)=>{let s=(l,u,d)=>{if("element"!==l.type||l[v])return!0;if("a"===l.tagName){let n=g(l.properties.href,t,e,!1,!1,i);return null===n?(l[v]=!0,p(l,s),d&&"number"==typeof u&&(d.children[u]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(l.properties.href),class:o},children:[...l.children,{type:"text",value:" [blocked]"}]}),c):(l.properties.href=n,l.properties.target="_blank",l.properties.rel="noopener noreferrer",!0)}if("img"===l.tagName){let t=g(l.properties.src,n,e,r,!0,i);if(null===t)return l[v]=!0,p(l,s),d&&"number"==typeof u&&(d.children[u]={type:"element",tagName:"span",properties:{class:a},children:[{type:"text",value:"[Image blocked: "+String(l.properties.alt||"No description")+"]"}]}),c;l.properties.src=t}return!0};return s},_="object"==typeof self?self:globalThis,b=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case -1:return n(o,i);case 1:{let e=n([],i);
45for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new _[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new _[a](o),i)};return r},k=e=>b(new Map,e)(0),{toString:E}={},{keys:T}=Object,x=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=E.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},A=([e,t])=>0===e&&("function"===t||"symbol"===t),S=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=x(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([o,n],r);for(let t of T(r))(e||!A(x(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(A(x(n))||A(x(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!A(x(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([o,{name:s,message:l}],r)};return a},I=(e,{json:t,lossy:n}={})=>{let r=[];return S(!(t||n),!!t,new Map,r)(e),r},w="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?k(I(e,t)):structuredClone(e):(e,t)=>k(I(e,t));class N{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function O(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new N(n,r,t)}function C(e){return e.toLowerCase()}N.prototype.normal={},N.prototype.property={},N.prototype.space=void 0;class D{constructor(e,t){this.attribute=t,this.property=e}}D.prototype.attribute="",D.prototype.booleanish=!1,D.prototype.boolean=!1,D.prototype.commaOrSpaceSeparated=!1,D.prototype.commaSeparated=!1,D.prototype.defined=!1,D.prototype.mustUseProperty=!1,D.prototype.number=!1,D.prototype.overloadedBoolean=!1,D.prototype.property="",D.prototype.spaceSeparated=!1,D.prototype.space=void 0;let $=0,R=j(),P=j(),L=j(),M=j(),U=j(),z=j(),F=j();function j(){return 2**++$}let B=Object.keys(r);class H extends D{constructor(e,t,n,i){let a=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++a<B.length;){let e=B[a];!function(e,t,n){n&&(e[t]=n)}(this,B[a],(n&r[e])===r[e])}}}function Z(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new H(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[C(r)]=r,n[C(a.attribute)]=r}return new N(t,n,e.space)}H.prototype.defined=!0;let G=Z({properties:{ariaActiveDescendant:null,ariaAtomic:P,ariaAutoComplete:null,ariaBusy:P,ariaChecked:P,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:P,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:P,ariaFlowTo:U,ariaGrabbed:P,ariaHasPopup:null,ariaHidden:P,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:M,ariaLive:null,ariaModal:P,ariaMultiLine:P,ariaMultiSelectable:P,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:P,ariaReadOnly:P,ariaRelevant:null,ariaRequired:P,ariaRoleDescription:U,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:P,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform:(e,t)=>
vendor: 3,240 bytes, line 45
45"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function q(e,t){return t in e?e[t]:t}function K(e,t){return q(e,t.toLowerCase())}let V=Z({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:z,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:U,autoFocus:R,autoPlay:R,blocking:U,capture:null,charSet:null,checked:R,cite:null,className:U,cols:M,colSpan:null,content:null,contentEditable:P,controls:R,controlsList:U,coords:M|z,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:L,draggable:P,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:U,height:M,hidden:L,high:M,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:U,itemRef:U,itemScope:R,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,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:R,optimum:M,pattern:null,ping:U,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:U,required:R,reversed:R,rows:M,rowSpan:M,sandbox:U,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:P,src:null,
45srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:R,useMap:null,value:P,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:P,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:R,disableRemotePlayback:R,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:K}),W=Z({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
45-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:F,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:U,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:R,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:z,g2:z,glyphName:z,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,
45k1:M,k2:M,k3:M,k4:M,kernelMatrix:F,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:F,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:F,rev:F,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:F,requiredFeatures:F,requiredFonts:F,requiredFormats:F,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:F,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:F,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:F,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:q}),Y=Z({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>
45"xlink:"+t.slice(5).toLowerCase()}),J=Z({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:K}),X=Z({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Q=O([G,V,Y,J,X],"html"),ee=O([G,W,Y,J,X],"svg");function et(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function en(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}let er=/[#.]/g,ei=/[A-Z]/g,ea=/-[a-z]/g,eo=/^data[-\w.:]+$/i;function es(e,t){let n=C(t),r=t,i=D;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&eo.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(ea,eu);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ea.test(e)){let n=e.replace(ei,el);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=H}return new i(r,t)}function el(e){return"-"+e.toLowerCase()}function eu(e){return e.charAt(1).toUpperCase()}function ec(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ed(e){return e.join(" ").trim()}function ep(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i,...a){let o;if(null==n)o={type:"root",children:[]},a.unshift(i);else{let s=(o=function(e,t){let n,r,i=e||"",a={},o=0;for(;o<i.length;){er.lastIndex=o;let e=er.exec(i),t=i.slice(o,e?e.index:i.length);t&&(n?"#"===n?a.id=t:Array.isArray(a.className)?a.className.push(t):a.className=[t]:r=t,o+=t.length),e&&(n=e[0],o++)}return{type:"element",tagName:r||t||"div",properties:a,children:[]}}(n,t)).tagName.toLowerCase(),l=r?r.get(s):void 0;if(o.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(i))a.unshift(i);else for(let[t,n]of Object.entries(i))!function(e,t,n,r){let i,a=es(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;i=r}else i="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?ec(r):a.commaSeparated?et(r):a.commaOrSpaceSeparated?ec(et(r).join(" ")):ef(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(i)){let e=[];for(let t of i)e.push(ef(a,a.property,t));i=e}"className"===a.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}(e,o.properties,t,n)}for(let e of a)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function ef(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||C(n)===C(t)))return!0}return n}let eh=ep(Q,"div"),em=ep(ee,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function eg(e,t){let n=e.indexOf("\r",t),r=e.indexOf("\n",t);return -1===r?n:-1===n||n+1===r?r:n<r?n:r}let ev={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ey={}.hasOwnProperty,e_=Object.prototype;function eb(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data}
45,eE(e,t,n),n;case"#document":case"#document-fragment":{let r="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:ek(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){let t=String(e.file),r=function(e){let t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){let e=n[n.length-1],r=eg(t,e),i=-1===r?t.length+1:r+1;if(e===i)break;n.push(i)}let r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){let e=eg(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case"#documentType":return eE(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},eE(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===ev.svg?ee:Q;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;ey.call(e_,n)||(i[n]=e.value)}let a=("svg"===e.schema.space?em:eh)(t.tagName,i,ek(e,t.childNodes));if(eE(e,t,a),"template"===a.tagName){let n=t.sourceCodeLocation,r=n&&n.startTag&&eT(n.startTag),i=n&&n.endTag&&eT(n.endTag),o=eb(e,t.content);r&&i&&e.file&&(o.position={start:r.end,end:i.start}),a.content=o}return e.schema=n,a}(e,t)}}function ek(e,t){let n=-1,r=[];for(;++n<t.length;){let i=eb(e,t[n]);r.push(i)}return r}function eE(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=function(e,t,n){let r=eT(n);if("element"===t.type){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r,i={};if(n.attrs)for(r in n.attrs)ey.call(n.attrs,r)&&(i[es(e.schema,r).property]=eT(n.attrs[r]));n.startTag;let a=eT(n.startTag),o=n.endTag?eT(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=i,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function eT(e){let t=ex({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=ex({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function ex(e){return e.line&&e.column?e:void 0}let eA={}.hasOwnProperty;function eS(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&eA.call(t,e)){let n=String(t[e]);i=eA.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}let eI={}.hasOwnProperty,ew=eS("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=eN(e.children,n,t),eO(e,n),n},element:function(e,t){let n,r=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(r=ee);let i=[];if(e.properties){for(n in e.properties)if("children"!==n&&eI.call(e.properties,n)){let t=function(e,t,n){let r=es(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?en(n):ed(n));let i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){let e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=ev[r.space]}return i}(r,n,e.properties[n]);t&&i.push(t)}}let a=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:ev[a],childNodes:[],parentNode:null};return o.childNodes=eN(e.children,o,r),eO(e,o),"template"===e.tagName&&e.content&&(o.content=function(e,t){let n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=eN(e.children,n,t),eO(e,n),n}(e.content,r)),o},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return eO(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return eO(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return eO(e,t),t}}});
45function eN(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=ew(e[r],n);a.parentNode=t,i.push(a)}return i}function eO(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}let eC=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],eD=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"}(uq||(uq={}));let e$={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function eR(e){return e>=55296&&e<=57343}function eP(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function eL(e){return e>=64976&&e<=65007||eD.has(e)}!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctype
vendor: 11,199 bytes, line 45
45SystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(uK||(uK={}));class eM{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,uq.EOF;return this._err(uK.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,uq.EOF;let n=this.html.charCodeAt(t);return n===uq.CARRIAGE_RETURN?uq.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,uq.EOF;let e=this.html.charCodeAt(this.pos);return e===uq.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,uq.LINE_FEED):e===uq.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,eR(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===uq.LINE_FEED||e===uq.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){eP(e)?this._err(uK.controlCharacterInInputStream):eL(e)&&this._err(uK.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function eU(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(uV||(uV={}));let ez=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;
45揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;
45䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;
45iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;
45䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;
45astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;
45aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),eF=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);uW=String.fromCodePoint;function ej(e){return e>=uY.ZERO&&e<=uY.NINE}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(uY||(uY={})),!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(uJ||(uJ={})),!function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(uX||(uX={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(uQ||(uQ={}));class eB{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=uX.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=uQ.Strict}startEntity(e){this.decodeMode=e,this.state=uX.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case uX.EntityStart:if(e.charCodeAt(t)===uY.NUM)return this.state=uX.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=uX.NamedEntity,this.stateNamedEntity(e,t);case uX.NumericStart:return this.stateNumericStart(e,t);case uX.NumericDecimal:return this.stateNumericDecimal(e,t);case uX.NumericHex:return this.stateNumericHex(e,t);case uX.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===uY.LOWER_X?(this.state=uX.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=uX.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,
45i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let i=e.charCodeAt(t);if(!ej(i)&&(!((r=i)>=uY.UPPER_A)||!(r<=uY.UPPER_F))&&(!(r>=uY.LOWER_A)||!(r<=uY.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!ej(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,r,i;if(this.consumed<=t)return null==(n=this.errors)||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===uY.SEMI)this.consumed+=1;else if(this.decodeMode===uQ.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:null!=(i=eF.get(r))?i:r,this.consumed),this.errors&&(e!==uY.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&uJ.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let i=(t&uJ.BRANCH_LENGTH)>>7,a=t&uJ.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else{if(!(n>r))return e[t+i];s=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===uQ.Attribute&&(0===i||function(e){var t;return e===uY.EQUALS||(t=e)>=uY.UPPER_A&&t<=uY.UPPER_Z||t>=uY.LOWER_A&&t<=uY.LOWER_Z||ej(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&uJ.VALUE_LENGTH)>>14)){if(a===uY.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==uQ.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&uJ.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~uJ.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case uX.NamedEntity:return 0!==this.result&&(this.decodeMode!==uQ.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case uX.NumericDecimal:return this.emitNumericEntity(0,2);case uX.NumericHex:return this.emitNumericEntity(0,3);case uX.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case uX.EntityStart:return 0}}}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(u0||(u0={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(u1||(u1={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(u2||(u2={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="str
45ike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(u4||(u4={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(u6||(u6={}));let eH=new Map([[u4.A,u6.A],[u4.ADDRESS,u6.ADDRESS],[u4.ANNOTATION_XML,u6.ANNOTATION_XML],[u4.APPLET,u6.APPLET],[u4.AREA,u6.AREA],[u4.ARTICLE,u6.ARTICLE],[u4.ASIDE,u6.ASIDE],[u4.B,u6.B],[u4.BASE,u6.BASE],[u4.BASEFONT,u6.BASEFONT],[u4.BGSOUND,u6.BGSOUND],[u4.BIG,u6.BIG],[u4.BLOCKQUOTE,u6.BLOCKQUOTE],[u4.BODY,u6.BODY],[u4.BR,u6.BR],[u4.BUTTON,u6.BUTTON],[u4.CAPTION,u6.CAPTION],[u4.CENTER,u6.CENTER],[u4.CODE,u6.CODE],[u4.COL,u6.COL],[u4.COLGROUP,u6.COLGROUP],[u4.DD,u6.DD],[u4.DESC,u6.DESC],[u4.DETAILS,u6.DETAILS],[u4.DIALOG,u6.DIALOG],[u4.DIR,u6.DIR],[u4.DIV,u6.DIV],[u4.DL,u6.DL],[u4.DT,u6.DT],[u4.EM,u6.EM],[u4.EMBED,u6.EMBED],[u4.FIELDSET,u6.FIELDSET],[u4.FIGCAPTION,u6.FIGCAPTION],[u4.FIGURE,u6.FIGURE],[u4.FONT,u6.FONT],[u4.FOOTER,u6.FOOTER],[u4.FOREIGN_OBJECT,u6.FOREIGN_OBJECT],[u4.FORM,u6.FORM],[u4.FRAME,u6.FRAME],[u4.FRAMESET,u6.FRAMESET],[u4.H1,u6.H1],[u4.H2,u6.H2],[u4.H3,u6.H3],[u4.H4,u6.H4],[u4.H5,u6.H5],[u4.H6,u6.H6],[u4.HEAD,u6.HEAD],[u4.HEADER,u6.HEADER],[u4.HGROUP,u6.HGROUP],[u4.HR,u6.HR],[u4.HTML,u6.HTML],[u4.I,u6.I],[u4.IMG,u6.IMG],[u4.IMAGE,u6.IMAGE],[u4.INPUT,u6.INPUT],[u4.IFRAME,u6.IFRAME],[u4.KEYGEN,u6.KEYGEN],[u4.LABEL,u6.LABEL],[u4.LI,u6.LI],[u4.LINK,u6.LINK],[u4.LISTING,u6.LISTING],[u4.MAIN,u6.MAIN],[u4.MALIGNMARK,u6.MALIGNMARK],[u4.MARQUEE,u6.MARQUEE],[u4.MATH,u6.MATH],[u4.MENU,u6.MENU],[u4.META,u6.META],[u4.MGLYPH,u6.MGLYPH],[u4.MI,u6.MI],[u4.MO,u6.MO],[u4.MN,u6.MN],[u4.MS,u6.MS],[u4.MTEXT,u6.MTEXT],[u4.NAV,u6.NAV],[u4.NOBR,u6.NOBR],[u4.NOFRAMES,u6.NOFRAMES],[u4.NOEMBED,u6.NOEMBED],[u4.NOSCRIPT,u6.NOSCRIPT],[u4.OBJECT,u6.OBJECT],[u4.OL,u6.OL],[u4.OPTGROUP,u6.OPTGROUP],[u4.OPTION,u6.OPTION],[u4.P,u6.P],[u4.PARAM,u6.PARAM],[u4.PLAINTEXT,u6.PLAINTEXT],[u4.PRE,u6.PRE],[u4.RB,u6.RB],[u4.RP,u6.RP],[u4.RT,u6.RT],[u4.RTC,u6.RTC],[u4.RUBY,u6.RUBY],[u4.S,u6.S],[u4.SCRIPT,u6.SCRIPT],[u4.SEARCH,u6.SEARCH],[u4.SECTION,u6.SECTION],[u4.SELECT,u6.SELECT],[u4.SOURCE,u6.SOURCE],[u4.SMALL,u6.SMALL],[u4.SPAN,u6.SPAN],[u4.STRIKE,u6.STRIKE],[u4.STRONG,u6.STRONG],[u4.STYLE,u6.STYLE],[u4.SUB,u6.SUB],[u4.SUMMARY,u6.SUMMARY],[u4.SUP,u6.SUP],[u4.TABLE,u6.TABLE],[u4.TBODY,u6.TBODY],[u4.TEMPLATE,u6.TEMPLATE],[u4.TEXTAREA,u6.TEXTAREA],[u4.TFOOT,u6.TFOOT],[u4.TD,u6.TD],[u4.TH,u6.TH],[u4.THEAD,u6.THEAD],[u4.TIT
45LE,u6.TITLE],[u4.TR,u6.TR],[u4.TRACK,u6.TRACK],[u4.TT,u6.TT],[u4.U,u6.U],[u4.UL,u6.UL],[u4.SVG,u6.SVG],[u4.VAR,u6.VAR],[u4.WBR,u6.WBR],[u4.XMP,u6.XMP]]);function eZ(e){var t;return null!=(t=eH.get(e))?t:u6.UNKNOWN}let eG=u6,eq={[u0.HTML]:new Set([eG.ADDRESS,eG.APPLET,eG.AREA,eG.ARTICLE,eG.ASIDE,eG.BASE,eG.BASEFONT,eG.BGSOUND,eG.BLOCKQUOTE,eG.BODY,eG.BR,eG.BUTTON,eG.CAPTION,eG.CENTER,eG.COL,eG.COLGROUP,eG.DD,eG.DETAILS,eG.DIR,eG.DIV,eG.DL,eG.DT,eG.EMBED,eG.FIELDSET,eG.FIGCAPTION,eG.FIGURE,eG.FOOTER,eG.FORM,eG.FRAME,eG.FRAMESET,eG.H1,eG.H2,eG.H3,eG.H4,eG.H5,eG.H6,eG.HEAD,eG.HEADER,eG.HGROUP,eG.HR,eG.HTML,eG.IFRAME,eG.IMG,eG.INPUT,eG.LI,eG.LINK,eG.LISTING,eG.MAIN,eG.MARQUEE,eG.MENU,eG.META,eG.NAV,eG.NOEMBED,eG.NOFRAMES,eG.NOSCRIPT,eG.OBJECT,eG.OL,eG.P,eG.PARAM,eG.PLAINTEXT,eG.PRE,eG.SCRIPT,eG.SECTION,eG.SELECT,eG.SOURCE,eG.STYLE,eG.SUMMARY,eG.TABLE,eG.TBODY,eG.TD,eG.TEMPLATE,eG.TEXTAREA,eG.TFOOT,eG.TH,eG.THEAD,eG.TITLE,eG.TR,eG.TRACK,eG.UL,eG.WBR,eG.XMP]),[u0.MATHML]:new Set([eG.MI,eG.MO,eG.MN,eG.MS,eG.MTEXT,eG.ANNOTATION_XML]),[u0.SVG]:new Set([eG.TITLE,eG.FOREIGN_OBJECT,eG.DESC]),[u0.XLINK]:new Set,[u0.XML]:new Set,[u0.XMLNS]:new Set},eK=new Set([eG.H1,eG.H2,eG.H3,eG.H4,eG.H5,eG.H6]);u4.STYLE,u4.SCRIPT,u4.XMP,u4.IFRAME,u4.NOEMBED,u4.NOFRAMES,u4.PLAINTEXT,!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(u3||(u3={}));let eV={DATA:u3.DATA,RCDATA:u3.RCDATA,RAWTEXT:u3.RAWTEXT,SCRIPT_DATA:u3.SCRIPT_DATA,PLAINTEXT:u3.PLAINTEXT,CDATA_SECTION:u3.CDATA_SECTION};function eW(e){return e>=uq.LATIN_CAPITAL_A&&e<=uq.LATIN_CAPITAL_Z}function eY(e){return e>=uq.LATIN_SMALL_A&&e<=uq.LATIN_SMALL_Z||eW(e)}function eJ(e){return eY(e)||e>=uq.DIGIT_0&&e<=uq.DIGIT_9}function eX(e){return e===uq.SPACE||e===uq.LINE_FEED||e===uq.TABULATION||e===uq.FORM_FEED}function eQ(e){return eX(e)||e===uq.SOLIDUS||e===uq.GREATER_THAN_SIGN}class e0{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=u3.DATA,this.returnState=u3.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new eM(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new eB(ez,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(uK.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(uK.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===uq.NULL)return uK.nullCharacterReference;if(e>1114111)return uK.characterReferenceOutsideUnicodeRange;if(eR(e))return uK.surrogateCharacterReference;if(eL(e))return uK.noncharacterCharacterReference;if(eP(e)||e===uq.CARRIAGE_RETURN)return uK.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null==(r=(n=this.handler).onParseError)||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:uV.START_TAG,tagName:"",tagID:u6.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:uV.END_TAG,tagName:"",tagID:u6.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:uV.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:uV.DOCTYPE,name:e,forceQuirks:!1,publicId:null,
45systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;null===eU(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!=(e=(t=n.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(uK.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=eZ(e.tagName),e.type===uV.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(uK.endTagWithAttributes),e.selfClosing&&this._err(uK.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case uV.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case uV.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case uV.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:uV.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eX(e)?uV.WHITESPACE_CHARACTER:e===uq.NULL?uV.NULL_CHARACTER:uV.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(uV.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=u3.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?uQ.Attribute:uQ.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===u3.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===u3.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===u3.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case u3.DATA:this._stateData(e);break;case u3.RCDATA:this._stateRcdata(e);break;case u3.RAWTEXT:this._stateRawtext(e);break;case u3.SCRIPT_DATA:this._stateScriptData(e);break;case u3.PLAINTEXT:this._statePlaintext(e);break;case u3.TAG_OPEN:this._stateTagOpen(e);break;case u3.END_TAG_OPEN:this._stateEndTagOpen(e);break;case u3.TAG_NAME:this._stateTagName(e);break;case u3.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case u3.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case u3.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case u3.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case u3.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case u3.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case u3.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case u3.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case u3.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case u3.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case u3.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case u3.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case u3.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case u3.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case u3.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case u3.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case u3.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case u3.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscape
vendor: 14,496 bytes, line 45
45Start(e);break;case u3.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case u3.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case u3.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case u3.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case u3.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case u3.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case u3.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case u3.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case u3.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case u3.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case u3.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case u3.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case u3.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case u3.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case u3.BOGUS_COMMENT:this._stateBogusComment(e);break;case u3.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case u3.COMMENT_START:this._stateCommentStart(e);break;case u3.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case u3.COMMENT:this._stateComment(e);break;case u3.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case u3.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case u3.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case u3.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case u3.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case u3.COMMENT_END:this._stateCommentEnd(e);break;case u3.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case u3.DOCTYPE:this._stateDoctype(e);break;case u3.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case u3.DOCTYPE_NAME:this._stateDoctypeName(e);break;case u3.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case u3.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case u3.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case u3.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case u3.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case u3.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case u3.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case u3.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case u3.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case u3.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case u3.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case u3.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case u3.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case u3.CDATA_SECTION:this._stateCdataSection(e);break;case u3.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case u3.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case u3.CHARACTER_REFERENCE:this._stateCharacterReference();break;case u3.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case uq.LESS_THAN_SIGN:this.state=u3.TAG_OPEN;break;case uq.AMPERSAND:this._startCharacterReference();break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this._emitCodePoint(e);break;case uq.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case uq.AMPERSAND:this._startCharacterReference();break;case uq.LESS_THAN_SIGN:this.state=u3.RCDATA_LESS_THAN_SIGN;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this._emitChars("�");break;case uq.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case uq.LESS_THAN_SIGN:this.state=u3.RAWTEXT_LESS_THAN_SIGN;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this._emitChars("�");break;case uq.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case uq.LESS_THAN_SIGN:this.state=u3.SCRIPT_DATA_LESS_THAN_SIGN;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this._emitChars("�");break;case uq.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case uq.NULL:this._err(uK.unexpectedNullCharacter),this._emitChars("�");break;case uq.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(eY(e))this._createStartTagToken(),this.state=u3.TAG_NAME,this._stateTagName(e);else switch(e){case uq.EXCLAMATION_MARK:this.state=u3.MARKUP_DECLARATION_OPEN;break;case uq.SOLIDUS:this.state=u3.END_TAG_OPEN;break;case uq.QUESTION_MARK:this._err(uK.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=u3.BOGUS_COMMENT,this._stateBogusComment(e);break;case uq.EOF:this._err(uK.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(uK.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=u3.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(eY(e))this._createEndTagToken(),this.state=u3.TAG_NAME,this._stateTagName(e);else switch(e){case uq.GREATER_THAN_SIGN:this._err(uK.missingEndTagName),this.state=u3.DATA;break;case uq.EOF:this._err(uK.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(uK.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=u3.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:this.state=u3.BEFORE_ATTRIBUTE_NAME;break;case uq.SOLIDUS:this.state=u3.SELF_CLOSING_START_TAG;break;case uq.GREATER_THAN_SIGN:this.state=u3.DATA,this.emitCurrentTagToken();break;case uq.NULL:this._err(uK.unexpectedNullCharacter),t.tagName+="�";break;case uq.EOF:this._err(uK.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(eW(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===uq.SOLIDUS?this.state=u3.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=u3.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){eY(e)?(this.state=u3.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=u3.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=u3.BEFORE_ATTRIBUTE_NAME,!1;case uq.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=u3.SELF_CLOSING_START_TAG,!1;case uq.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=u3.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=u3.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===uq.SOLIDUS?this.state=u3.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=u3.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){eY(e)?(this.state=u3.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=u3.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=u3.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case uq.SOLIDUS:this.state=u3.SCRIPT_DATA_END_TAG_OPEN;break;case uq.EXCLAMATION_MARK:this.state=u3.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=u3.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){eY(e)?(this.state=u3.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=u3.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=u3.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===uq.HYPHEN_MINUS?(this.state=u3.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=u3.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===uq.HYPHEN_MINUS?(this.state=u3.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=u3.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case uq.HYPHEN_MINUS:this.state=u3.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case uq.LESS_THAN_SIGN:this.state=u3.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this._emitChars("�");break;case uq.EOF:this._err(uK.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case uq.HYPHEN_MINUS:this.state=u3.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case uq.LESS_THAN_SIGN:this.state=u3.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this.state=u3.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case uq.EOF:this._err(uK.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=u3.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case uq.HYPHEN_MINUS:this._emitChars("-");break;case uq.LESS_THAN_SIGN:this.state=u3.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case uq.GREATER_THAN_SIGN:this.state=u3.SCRIPT_DATA,this._emitChars(">");break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this.state=u3.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case uq.EOF:this._err(uK.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=u3.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===uq.SOLIDUS?this.state=u3.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:eY(e)?(this._emitChars("<"),this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=u3.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){eY(e)?(this.state=u3.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=u3.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=u3.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(e$.SCRIPT,!1)&&eQ(this.preprocessor.peek(e$.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<e$.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=u3.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case uq.HYPHEN_MINUS:this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case uq.LESS_THAN_SIGN:this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this._emitChars("�");break;case uq.EOF:this._err(uK.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case uq.HYPHEN_MINUS:this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case uq.LESS_THAN_SIGN:this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case uq.EOF:this._err(uK.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case uq.HYPHEN_MINUS:this._emitChars("-");break;case uq.LESS_THAN_SIGN:this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case uq.GREATER_THAN_SIGN:this.state=u3.SCRIPT_DATA,this._emitChars(">");break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case uq.EOF:this._err(uK.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===uq.SOLIDUS?(this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(e$.SCRIPT,!1)&&eQ(this.preprocessor.peek(e$.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<e$.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=u3.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=u3.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:break;case uq.SOLIDUS:case uq.GREATER_THAN_SIGN:case uq.EOF:this.state=u3.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case uq.EQUALS_SIGN:this._err(uK.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=u3.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=u3.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:case uq.SOLIDUS:case uq.GREATER_THAN_SIGN:case uq.EOF:this._leaveAttrName(),this.state=u3.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case uq.EQUALS_SIGN:this._leaveAttrName(),this.state=u3.BEFORE_ATTRIBUTE_VALUE;break;case uq.QUOTATION_MARK:case uq.APOSTROPHE:case uq.LESS_THAN_SIGN:this._err(uK.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this.currentAttr.name+="
45�";break;default:this.currentAttr.name+=String.fromCodePoint(eW(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:break;case uq.SOLIDUS:this.state=u3.SELF_CLOSING_START_TAG;break;case uq.EQUALS_SIGN:this.state=u3.BEFORE_ATTRIBUTE_VALUE;break;case uq.GREATER_THAN_SIGN:this.state=u3.DATA,this.emitCurrentTagToken();break;case uq.EOF:this._err(uK.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=u3.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:break;case uq.QUOTATION_MARK:this.state=u3.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case uq.APOSTROPHE:this.state=u3.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case uq.GREATER_THAN_SIGN:this._err(uK.missingAttributeValue),this.state=u3.DATA,this.emitCurrentTagToken();break;default:this.state=u3.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case uq.QUOTATION_MARK:this.state=u3.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case uq.AMPERSAND:this._startCharacterReference();break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this.currentAttr.value+="�";break;case uq.EOF:this._err(uK.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case uq.APOSTROPHE:this.state=u3.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case uq.AMPERSAND:this._startCharacterReference();break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this.currentAttr.value+="�";break;case uq.EOF:this._err(uK.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:this._leaveAttrValue(),this.state=u3.BEFORE_ATTRIBUTE_NAME;break;case uq.AMPERSAND:this._startCharacterReference();break;case uq.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=u3.DATA,this.emitCurrentTagToken();break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this.currentAttr.value+="�";break;case uq.QUOTATION_MARK:case uq.APOSTROPHE:case uq.LESS_THAN_SIGN:case uq.EQUALS_SIGN:case uq.GRAVE_ACCENT:this._err(uK.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case uq.EOF:this._err(uK.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:this._leaveAttrValue(),this.state=u3.BEFORE_ATTRIBUTE_NAME;break;case uq.SOLIDUS:this._leaveAttrValue(),this.state=u3.SELF_CLOSING_START_TAG;break;case uq.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=u3.DATA,this.emitCurrentTagToken();break;case uq.EOF:this._err(uK.eofInTag),this._emitEOFToken();break;default:this._err(uK.missingWhitespaceBetweenAttributes),this.state=u3.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case uq.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=u3.DATA,this.emitCurrentTagToken();break;case uq.EOF:this._err(uK.eofInTag),this._emitEOFToken();break;default:this._err(uK.unexpectedSolidusInTag),this.state=u3.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case uq.GREATER_THAN_SIGN:this.state=u3.DATA,this.emitCurrentComment(t);break;case uq.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case uq.NULL:this._err(uK.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(e$.DASH_DASH,!0)?(this._createCommentToken(e$.DASH_DASH.length+1),this.state=u3.COMMENT_START):this._consumeSequenceIfMatch(e$.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(e$.DOCTYPE.length+1),this.state=u3.DOCTYPE):this._consumeSequenceIfMatch(e$.CDATA_START,!0)?this.inForeignNode?this.state=u3.CDATA_SECTION:(this._err(uK.cdataInHtmlContent),this._createCommentToken(e$.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=u3.BOGUS_COMMENT):this._ensureHibernation()||(this._err(uK.incorrectlyOpenedComment),this._createCommentToken(2),this.state=u3.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case uq.HYPHEN_MINUS:this.state=u3.COMMENT_START_DASH;break;case uq.GREATER_THAN_SIGN:{this._err(uK.abruptClosingOfEmptyComment),this.state=u3.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=u3.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case uq.HYPHEN_MINUS:this.state=u3.COMMENT_END;break;case uq.GREATER_THAN_SIGN:this._err(uK.abruptClosingOfEmptyComment),this.state=u3.DATA,this.emitCurrentComment(t);break;case uq.EOF:this._err(uK.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=u3.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case uq.HYPHEN_MINUS:this.state=u3.COMMENT_END_DASH;break;case uq.LESS_THAN_SIGN:t.data+="<",this.state=u3.COMMENT_LESS_THAN_SIGN;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),t.data+="�";break;case uq.EOF:this._err(uK.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case uq.EXCLAMATION_MARK:t.data+="!",this.state=u3.COMMENT_LESS_THAN_SIGN_BANG;break;case uq.LESS_THAN_SIGN:t.data+="<";break;default:this.state=u3.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===uq.HYPHEN_MINUS?this.state=u3.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=u3.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===uq.HYPHEN_MINUS?this.state=u3.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=u3.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==uq.GREATER_THAN_SIGN&&e!==uq.EOF&&this._err(uK.nestedComment),this.state=u3.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case uq.HYPHEN_MINUS:this.state=u3.COMMENT_END;break;case uq.EOF:this._err(uK.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=u3.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case uq.GREATER_THAN_SIGN:this.state=u3.DATA,this.emitCurrentComment(t);break;case uq.EXCLAMATION_MARK:this.state=u3.COMMENT_END_BANG;break;case uq.HYPHEN_MINUS:t.data+="-";break;case uq.EOF:this._err(uK.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=u3.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case uq.HYPHEN_MINUS:t.data+="--!",this.state=u3.COMMENT_END_DASH;break;case uq.GREATER_THAN_SIGN:this._err(uK.incorrectlyClosedComment),this.state=u3.DATA,this.emitCurrentComment(t);break;case uq.EOF:this._err(uK.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=u3.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:this.state=u3.BEFORE_DOCTYPE_NAME;break;case uq.GREATER_THAN_SIGN:this.state=u3.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case uq.EOF:{this._err(uK.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(uK.missingWhitespaceBeforeDoctypeName),this.state=u3.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(eW(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=u3.DOCTYPE_NAME;else switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:break;case uq.NULL:this._err(uK.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=u3.DOCTYPE_NAME;break;case uq.GREATER_THAN_SIGN:{this._err(uK.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=u3.DATA;break}case uq.EOF:{this._err(uK.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=u3.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:this.state=u3.AFTER_DOCTYPE_NAME;break;case uq.GREATER_THAN_SIGN:this.state=u3.DATA,this.emitCurrentDoctype(t);break;
vendor: 4,271 bytes, line 45
45case uq.NULL:this._err(uK.unexpectedNullCharacter),t.name+="�";break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(eW(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:break;case uq.GREATER_THAN_SIGN:this.state=u3.DATA,this.emitCurrentDoctype(t);break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(e$.PUBLIC,!1)?this.state=u3.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(e$.SYSTEM,!1)?this.state=u3.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(uK.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=u3.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:this.state=u3.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case uq.QUOTATION_MARK:this._err(uK.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=u3.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case uq.APOSTROPHE:this._err(uK.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=u3.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case uq.GREATER_THAN_SIGN:this._err(uK.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=u3.DATA,this.emitCurrentDoctype(t);break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(uK.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=u3.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:break;case uq.QUOTATION_MARK:t.publicId="",this.state=u3.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case uq.APOSTROPHE:t.publicId="",this.state=u3.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case uq.GREATER_THAN_SIGN:this._err(uK.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=u3.DATA,this.emitCurrentDoctype(t);break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(uK.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=u3.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case uq.QUOTATION_MARK:this.state=u3.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),t.publicId+="�";break;case uq.GREATER_THAN_SIGN:this._err(uK.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=u3.DATA;break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case uq.APOSTROPHE:this.state=u3.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),t.publicId+="�";break;case uq.GREATER_THAN_SIGN:this._err(uK.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=u3.DATA;break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:this.state=u3.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case uq.GREATER_THAN_SIGN:this.state=u3.DATA,this.emitCurrentDoctype(t);break;case uq.QUOTATION_MARK:this._err(uK.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=u3.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case uq.APOSTROPHE:this._err(uK.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=u3.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;
vendor: 5,088 bytes, line 45
45default:this._err(uK.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=u3.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:break;case uq.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=u3.DATA;break;case uq.QUOTATION_MARK:t.systemId="",this.state=u3.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case uq.APOSTROPHE:t.systemId="",this.state=u3.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(uK.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=u3.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:this.state=u3.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case uq.QUOTATION_MARK:this._err(uK.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=u3.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case uq.APOSTROPHE:this._err(uK.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=u3.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case uq.GREATER_THAN_SIGN:this._err(uK.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=u3.DATA,this.emitCurrentDoctype(t);break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(uK.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=u3.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:break;case uq.QUOTATION_MARK:t.systemId="",this.state=u3.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case uq.APOSTROPHE:t.systemId="",this.state=u3.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case uq.GREATER_THAN_SIGN:this._err(uK.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=u3.DATA,this.emitCurrentDoctype(t);break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(uK.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=u3.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case uq.QUOTATION_MARK:this.state=u3.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),t.systemId+="�";break;case uq.GREATER_THAN_SIGN:this._err(uK.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=u3.DATA;break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case uq.APOSTROPHE:this.state=u3.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case uq.NULL:this._err(uK.unexpectedNullCharacter),t.systemId+="�";break;case uq.GREATER_THAN_SIGN:this._err(uK.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=u3.DATA;break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case uq.SPACE:case uq.LINE_FEED:case uq.TABULATION:case uq.FORM_FEED:break;case uq.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=u3.DATA;break;case uq.EOF:this._err(uK.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(uK.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=u3.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case uq.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=u3.DATA;break;case uq.NULL:this._err(uK.unexpectedNullCharacter);break;case uq.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case uq.RIGHT_SQUARE_BRACKET:this.state=u3.CDATA_SECTION_BRACKET;break;case uq.EOF:this._err(uK.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===uq.RIGHT_SQUARE_BRACKET?this.state=u3.CDATA_SECTION_END:(this._emitChars("]"),this.state=u3.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case uq.GREATER_THAN_SIGN:this.state=u3.DATA;break;case uq.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=u3.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}
vendor: 4,175 bytes, line 45
450===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(uq.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&eJ(this.preprocessor.peek(1))?u3.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){eJ(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===uq.SEMICOLON&&this._err(uK.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let e1=new Set([u6.DD,u6.DT,u6.LI,u6.OPTGROUP,u6.OPTION,u6.P,u6.RB,u6.RP,u6.RT,u6.RTC]),e2=new Set([...e1,u6.CAPTION,u6.COLGROUP,u6.TBODY,u6.TD,u6.TFOOT,u6.TH,u6.THEAD,u6.TR]),e4=new Set([u6.APPLET,u6.CAPTION,u6.HTML,u6.MARQUEE,u6.OBJECT,u6.TABLE,u6.TD,u6.TEMPLATE,u6.TH]),e6=new Set([...e4,u6.OL,u6.UL]),e3=new Set([...e4,u6.BUTTON]),e5=new Set([u6.ANNOTATION_XML,u6.MI,u6.MN,u6.MO,u6.MS,u6.MTEXT]),e9=new Set([u6.DESC,u6.FOREIGN_OBJECT,u6.TITLE]),e8=new Set([u6.TR,u6.TEMPLATE,u6.HTML]),e7=new Set([u6.TBODY,u6.TFOOT,u6.THEAD,u6.TEMPLATE,u6.HTML]),te=new Set([u6.TABLE,u6.TEMPLATE,u6.HTML]),tt=new Set([u6.TD,u6.TH]);class tn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=u6.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===u6.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===u0.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==u0.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(eK,u0.HTML)}popUntilTableCellPopped(){this.popUntilPopped(tt,u0.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(te,u0.HTML)}clearBackToTableBodyContext(){this.clearBackTo(e7,u0.HTML)}clearBackToTableRowContext(){this.clearBackTo(e8,u0.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===u6.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===u6.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case u0.HTML:if(r===e)return!0;
45if(t.has(r))return!1;break;case u0.SVG:if(e9.has(r))return!1;break;case u0.MATHML:if(e5.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,e4)}hasInListItemScope(e){return this.hasInDynamicScope(e,e6)}hasInButtonScope(e){return this.hasInDynamicScope(e,e3)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case u0.HTML:if(eK.has(t))return!0;if(e4.has(t))return!1;break;case u0.SVG:if(e9.has(t))return!1;break;case u0.MATHML:if(e5.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===u0.HTML)switch(this.tagIDs[t]){case e:return!0;case u6.TABLE:case u6.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===u0.HTML)switch(this.tagIDs[e]){case u6.TBODY:case u6.THEAD:case u6.TFOOT:return!0;case u6.TABLE:case u6.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===u0.HTML)switch(this.tagIDs[t]){case e:return!0;case u6.OPTION:case u6.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&e1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&e2.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&e2.has(this.currentTagId);)this.pop()}}!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(u5||(u5={}));let tr={type:u5.Marker};class ti{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===u5.Marker)break;let{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){let t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(tr)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:u5.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:u5.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(tr);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===u5.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===u5.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===u5.Element&&t.element===e)}}let ta={createDocument:()=>({nodeName:"#document",mode:u2.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);i?(i.name=t,i.publicId=n,i.systemId=r):ta.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(ta.isTextNode(n)){n.value+=t;return}}ta.appendChild(e,ta.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ta.isTextNode(r)?r.value+=t:ta.insertBefore(e,ta.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},to="html",ts=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],tl=[...ts,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],tu=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),tc=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],td=[...tc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function tp(e,t){return t.some(t=>e.startsWith(t))}let tf={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},th=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),tm=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:u0.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:u0.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:u0.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:u0.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:u0.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:u0.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:u0.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:u0.XML}],["xml:space",{prefix:"xml",name:"space",namespace:u0.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:u0.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:u0.XMLNS}]]),tg=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),tv=new Set([u6.B,u6.BIG,u6.BLOCKQUOTE,u6.BODY,u6.BR,u6.CENTER,u6.CODE,u6.DD,u6.DIV,u6.DL,u6.DT,u6.EM,u6.E
45MBED,u6.H1,u6.H2,u6.H3,u6.H4,u6.H5,u6.H6,u6.HEAD,u6.HR,u6.I,u6.IMG,u6.LI,u6.LISTING,u6.MENU,u6.META,u6.NOBR,u6.OL,u6.P,u6.PRE,u6.RUBY,u6.S,u6.SMALL,u6.SPAN,u6.STRONG,u6.STRIKE,u6.SUB,u6.SUP,u6.TABLE,u6.TT,u6.U,u6.UL,u6.VAR]);function ty(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function t_(e){for(let t=0;t<e.attrs.length;t++){let n=th.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function tb(e){for(let t=0;t<e.attrs.length;t++){let n=tm.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(u9||(u9={}));let tk={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},tE=new Set([u6.TABLE,u6.TBODY,u6.TFOOT,u6.THEAD,u6.TR]),tT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ta,onParseError:null};class tx{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=u9.INITIAL,this.originalInsertionMode=u9.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...tT,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new e0(this.options,this),this.activeFormattingElements=new ti(this.treeAdapter),this.fragmentContextID=n?eZ(this.treeAdapter.getTagName(n)):u6.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new tn(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...tT,...t};null!=e||(e=n.treeAdapter.createElement(u4.TEMPLATE,u0.HTML,[]));let r=n.treeAdapter.createElement("documentmock",u0.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===u6.TEMPLATE&&i.tmplInsertionModeStack.unshift(u9.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;let i=null!=(r=e.location)?r:tk,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,n){var r,i;null==(i=(r=this.treeAdapter).onItemPush)||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(r=(n=this.treeAdapter).onItemPop)||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===u0.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,u0.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=u9.TEXT}switchToPlaintextParsing(){this.insertionMode=u9.TEXT,this.originalInsertionMode=u9.IN_BODY,this.tokenizer.state=eV.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;
45for(;e;){if(this.treeAdapter.getTagName(e)===u4.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===u0.HTML)switch(this.fragmentContextID){case u6.TITLE:case u6.TEXTAREA:this.tokenizer.state=eV.RCDATA;break;case u6.STYLE:case u6.XMP:case u6.IFRAME:case u6.NOEMBED:case u6.NOFRAMES:case u6.NOSCRIPT:this.tokenizer.state=eV.RAWTEXT;break;case u6.SCRIPT:this.tokenizer.state=eV.SCRIPT_DATA;break;case u6.PLAINTEXT:this.tokenizer.state=eV.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,u0.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,u0.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(u4.HTML,u0.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,u6.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===uV.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==u6.SVG||this.treeAdapter.getTagName(t)!==u4.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==u0.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===u6.MGLYPH||e.tagID===u6.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,u0.HTML)))}_processToken(e){switch(e.type){case uV.CHARACTER:this.onCharacter(e);break;case uV.NULL_CHARACTER:this.onNullCharacter(e);break;case uV.COMMENT:this.onComment(e);break;case uV.DOCTYPE:this.onDoctype(e);break;case uV.START_TAG:this._processStartTag(e);break;case uV.END_TAG:this.onEndTag(e);break;case uV.EOF:this.onEof(e);break;case uV.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return(!n||n===u0.HTML)&&function(e,t,n){if(t===u0.MATHML&&e===u6.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===u1.ENCODING){let t=n[e].value.toLowerCase();return t===tf.TEXT_HTML||t===tf.APPLICATION_XML}}return t===u0.SVG&&(e===u6.FOREIGN_OBJECT||e===u6.DESC||e===u6.TITLE)}(e,r,i)||(!n||n===u0.MATHML)&&r===u0.MATHML&&(e===u6.MI||e===u6.MO||e===u6.MN||e===u6.MS||e===u6.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===u5.Marker||this.openElements.contains(e.element)),n=-1===t?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=u9.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(u6.P),this.openElements.popUntilTagNamePopped(u6.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case u6.TR:this.insertionMode=u9.IN_ROW;return;case u6.TBODY:case u6.THEAD:case u6.TFOOT:this.insertionMode=u9.IN_TABLE_BODY;return;case u6.CAPTION:this.insertionMode=u9.IN_CAPTION;return;case u6.COLGROUP:this.insertionMode=u9.IN_COLUMN_GROUP;return;case u6.TABLE:this.insertionMode=u9.IN_TABLE;return;case u6.BODY:this.insertionMode=u9.IN_BODY;return;case u6.FRAMESET:this.insertionMode=u9.IN_FRAMESET;return;case u6.SELECT:return void this._resetInsertionModeForSelect(e);case u6.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case u6.HTML:this.insertionMode=this.headElement?u9.AFTER_HEAD:u9.BEFORE_HEAD;return;case u6.TD:case u6.TH:if(e>0){this.insertionMode=u9.IN_CELL;return}break;case u6.HEAD:if(e>0){this.insertionMode=u9.IN_HEAD;return}}this.insertionMode=u9.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===u6.TEMPLATE)break;if(e===u6.TABLE){this.insertionMode=u9.IN_SELECT_IN_TABLE;return}}this.insertionMode=u9.IN_SELECT}_isElementCausesFosterParenting(e){return tE.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case u6.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===u0.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case u6.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return eq[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,n=e,t._insertCharacters(n),t.framesetOk=!1)}switch(this.insertionMode){case u9.INITIAL:tw(this,e);break;case u9.BEFORE_HTML:tN(this,e);break;case u9.BEFORE_HEAD:tO(this,e);break;case u9.IN_HEAD:t$(this,e);break;case u9.IN_HEAD_NO_SCRIPT:tR(this,e);break;case u9.AFTER_HEAD:tP(this,e);break;case u9.IN_BODY:case u9.IN_CAPTION:case u9.IN_CELL:case u9.IN_TEMPLATE:tU(this,e);break;case u9.TEXT:case u9.IN_SELECT:case u9.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case u9.IN_TABLE:case u9.IN_TABLE_BODY:case u9.IN_ROW:tK(this,e);break;case u9.IN_TABLE_TEXT:tX(this,e);break;case u9.IN_COLUMN_GROUP:t2(this,e);break;case u9.AFTER_BODY:nt(this,e);break;case u9.AFTER_AFTER_BODY:nn(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,(n=e).chars="�",t._insertCharacters(n))}switch(this.insertionMode){case u9.INITIAL:tw(this,e);break;case u9.BEFORE_HTML:tN(this,e);break;case u9.BEFORE_HEAD:tO(this,e);break;case u9.IN_HEAD:t$(this,e);break;case u9.IN_HEAD_NO_SCRIPT:tR(this,e);break;case u9.AFTER_HEAD:tP(this,e);break;case u9.TEXT:this._insertCharacters(e);break;case u9.IN_TABLE:case u9.IN_TABLE_BODY:case u9.IN_ROW:tK(this,e);break;case u9.IN_COLUMN_GROUP:t2(this,e);break;case u9.AFTER_BODY:nt(this,e);break;case u9.AFTER_AFTER_BODY:nn(this,e)}}onComment(e){var t,n,r,i;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void tS(this,e);switch(this.insertionMode){case u9.INITIAL:case u9.BEFORE_HTML:case u9.BEFORE_HEAD:case u9.IN_HEAD:case u9.IN_HEAD_NO_SCRIPT:case u9.AFTER_HEAD:case u9.IN_BODY:case u9.IN_TABLE:case u9.IN_CAPTION:case u9.IN_COLUMN_GROUP:case u9.IN_TABLE_BODY:case u9.IN_ROW:case u9.IN_CELL:case u9.IN_SELECT:case u9.IN_SELECT_IN_TABLE:case u9.IN_TEMPLATE:case u9.IN_FRAMESET:case u9.AFTER_FRAMESET:tS(this,e);break;case u9.IN_TABLE_TEXT:tQ(this,e);break;case u9.AFTER_BODY:t=this,n=e,t._appendCommentNode(n,t.openElements.items[0]);break;case u9.AFTER_AFTER_BODY:case u9.AFTER_AFTER_FRAMESET:r=this,i=e,r._appendCommentNode(i,r.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case u9.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?u2.QUIRKS:function(e){if(e.name!==to)return u2.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return u2.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),tu.has(n))return u2.QUIRKS;let e=null===t?tl:ts;if(tp(n,e))return u2.QUIRKS;if(tp(n,e=null===t?tc:td))return u2.LIMITED_QUIRKS}return u2.NO_QUIRKS}(t);(t.name!==to||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,uK.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=u9.BEFORE_HTML}(this,e);break;case u9.BEFORE_HEAD:case u9.IN_HEAD:case u9.IN_HEAD_NO_SCRIPT:case u9.AFTER_HEAD:this._err(e,uK.misplacedDoctype);break;case u9.IN_TABLE_TEXT:tQ(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,uK.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){let t=e.tagID;return t===u6.FONT&&e.attrs.some(({name:e})=>e===u1.COLOR||e===u1.SIZE||e===u1.FACE)||tv.has(t)}(t))nr(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===u0.MATHML)ty(t);else if(r===u0.SVG){let e=tg.get(t.tagName);null!=e&&(t.tagName=e,t.tagID=eZ(t.tagName)),t_(t)}tb(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case u9.INITIAL:tw(this,e);break;case u9.BEFORE_HTML:t=this,(n=e).tagID===u6.HTML?(t._insertElement(n,u0.HTML),t.insertionMode=u9.BEFORE_HEAD):tN(t,n);break;case u9.BEFORE_HEAD:var t,n,r,i,a,o,s=this,l=e;switch(l.tagID){case u6.HTML:tH(s,l);break;case u6.HEAD:s._insertElement(l,u0.HTML),s.headElement=s.openElements.current,s.insertionMode=u9.IN_HEAD;break;default:tO(s,l)}break;case u9.IN_HEAD:tC(this,e);break;case u9.IN_HEAD_NO_SCRIPT:var u=this,c=e;switch(c.tagID){case u6.HTML:tH(u,c);break;case u6.BASEFONT:case u6.BGSOUND:case u6.HEAD:case u6.LINK:case u6.META:case u6.NOFRAMES:case u6.STYLE:tC(u,c);break;case u6.NOSCRIPT:u._err(c,uK.nestedNoscriptInHead);break;default:tR(u,c)}break;case u9.AFTER_HEAD:var d=this,p=e;switch(p.tagID){case u6.HTML:tH(d,p);break;case u6.BODY:d._insertElement(p,u0.HTML),d.framesetOk=!1,d.insertionMode=u9.IN_BODY;break;case u6.FRAMESET:d._insertElement(p,u0.HTML),d.insertionMode=u9.IN_FRAMESET;break;case u6.BASE:case u6.BASEFONT:case u6.BGSOUND:case u6.LINK:case u6.META:case u6.NOFRAMES:case u6.SCRIPT:case u6.STYLE:case u6.TEMPLATE:case u6.TITLE:d._err(p,uK.abandonedHeadElementChild),d.openElements.push(d.headElement,u6.HEAD),tC(d,p),d.openElements.remove(d.headElement);break;case u6.HEAD:d._err(p,uK.misplacedStartTagForHeadElement);break;default:tP(d,p)}break;case u9.IN_BODY:tH(this,e);break;case u9.IN_TABLE:tV(this,e);break;case u9.IN_TABLE_TEXT:tQ(this,e);break;case u9.IN_CAPTION:var f=this,h=e;let m=h.tagID;t0.has(m)?f.openElements.hasInTableScope(u6.CAPTION)&&(f.openElements.generateImpliedEndTags(),f.openElements.popUntilTagNamePopped(u6.CAPTION),f.activeFormattingElements.clearToLastMarker(),f.insertionMode=u9.IN_TABLE,tV(f,h)):tH(f,h);break;case u9.IN_COLUMN_GROUP:t1(this,e);break;case u9.IN_TABLE_BODY:t4(this,e);break;case u9.IN_ROW:t3(this,e);break;case u9.IN_CELL:var g=this,v=e;let y=v.tagID;t0.has(y)?(g.openElements.hasInTableScope(u6.TD)||g.openElements.hasInTableScope(u6.TH))&&(g._closeTableCell(),t3(g,v)):tH(g,v);break;case u9.IN_SELECT:t9(this,e);break;case u9.IN_SELECT_IN_TABLE:var _=this,b=e;let k=b.tagID;k===u6.CAPTION||k===u6.TABLE||k===u6.TBODY||k===u6.TFOOT||k===u6.THEAD||k===u6.TR||k===u6.TD||k===u6.TH?(_.openElements.popUntilTagNamePopped(u6.SELECT),_._resetInsertionMode(),_._processStartTag(b)):t9(_,b);break;case u9.IN_TEMPLATE:var E=this,T=e;switch(T.tagID){case u6.BASE:case u6.BASEFONT:case u6.BGSOUND:case u6.LINK:case u6.META:case u6.NOFRAMES:case u6.SCRIPT:case u6.STYLE:case u6.TEMPLATE:case u6.TITLE:tC(E,T);break;case u6.CAPTION:case u6.COLGROUP:case u6.TBODY:case u6.TFOOT:case u6.THEAD:E.tmplInsertionModeStack[0]=u9.IN_TABLE,E.insertionMode=u9.IN_TABLE,tV(E,T);break;case u6.COL:E.tmplInsertionModeStack[0]=u9.IN_COLUMN_GROUP,E.insertionMode=u9.IN_COLUMN_GROUP,t1(E,T);break;case u6.TR:E.tmplInsertionModeStack[0]=u9.IN_TABLE_BODY,E.insertionMode=u9.IN_TABLE_BODY,t4(E,T);break;case u6.TD:case u6.TH:E.tmplInsertionModeStack[0]=u9.IN_ROW,E.insertionMode=u9.IN_ROW,t3(E,T);break;default:E.tmplInsertionModeStack[0]=u9.IN_BODY,E.insertionMode=u9.IN_BODY,tH(E,T)}break;case u9.AFTER_BODY:r=this,(i=e).tagID===u6.HTML?tH(r,i):nt(r,i);break;case u9.IN_FRAMESET:var x=this,A=e;switch(A.tagID){case u6.HTML:tH(x,A);break;case u6.FRAMESET:x._insertElement(A,u0.HTML);break;case u6.FRAME:x._appendElement(A,u0.HTML),A.ackSelfClosing=!0;break;case u6.NOFRAMES:tC(x,A)}break;case u9.AFTER_FRAMESET:var S=this,I=e;switch(I.tagID){case u6.HTML:tH(S,I);break;case u6.NOFRAMES:tC(S,I)}break;case u9.AFTER_AFTER_BODY:a=this,(o=e).tagID===u6.HTML?tH(a,o):nn(a,o);break;case u9.AFTER_AFTER_FRAMESET:var w=this,N=e;switch(N.tagID){case u6.HTML:tH(w,N);break;case u6.NOFRAMES:tC(w,N)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===u6.P||t.tagID===u6.BR){nr(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===u0.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLe
45ngth(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case u9.INITIAL:tw(this,e);break;case u9.BEFORE_HTML:var t,n,r,i,a,o,s=this,l=e;let u=l.tagID;(u===u6.HTML||u===u6.HEAD||u===u6.BODY||u===u6.BR)&&tN(s,l);break;case u9.BEFORE_HEAD:var c=this,d=e;let p=d.tagID;p===u6.HEAD||p===u6.BODY||p===u6.HTML||p===u6.BR?tO(c,d):c._err(d,uK.endTagWithoutMatchingOpenElement);break;case u9.IN_HEAD:var f=this,h=e;switch(h.tagID){case u6.HEAD:f.openElements.pop(),f.insertionMode=u9.AFTER_HEAD;break;case u6.BODY:case u6.BR:case u6.HTML:t$(f,h);break;case u6.TEMPLATE:tD(f,h);break;default:f._err(h,uK.endTagWithoutMatchingOpenElement)}break;case u9.IN_HEAD_NO_SCRIPT:var m=this,g=e;switch(g.tagID){case u6.NOSCRIPT:m.openElements.pop(),m.insertionMode=u9.IN_HEAD;break;case u6.BR:tR(m,g);break;default:m._err(g,uK.endTagWithoutMatchingOpenElement)}break;case u9.AFTER_HEAD:var v=this,y=e;switch(y.tagID){case u6.BODY:case u6.HTML:case u6.BR:tP(v,y);break;case u6.TEMPLATE:tD(v,y);break;default:v._err(y,uK.endTagWithoutMatchingOpenElement)}break;case u9.IN_BODY:tG(this,e);break;case u9.TEXT:t=this,e.tagID===u6.SCRIPT&&(null==(n=t.scriptHandler)||n.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode;break;case u9.IN_TABLE:tW(this,e);break;case u9.IN_TABLE_TEXT:tQ(this,e);break;case u9.IN_CAPTION:var _=this,b=e;let k=b.tagID;switch(k){case u6.CAPTION:case u6.TABLE:_.openElements.hasInTableScope(u6.CAPTION)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(u6.CAPTION),_.activeFormattingElements.clearToLastMarker(),_.insertionMode=u9.IN_TABLE,k===u6.TABLE&&tW(_,b));break;case u6.BODY:case u6.COL:case u6.COLGROUP:case u6.HTML:case u6.TBODY:case u6.TD:case u6.TFOOT:case u6.TH:case u6.THEAD:case u6.TR:break;default:tG(_,b)}break;case u9.IN_COLUMN_GROUP:var E=this,T=e;switch(T.tagID){case u6.COLGROUP:E.openElements.currentTagId===u6.COLGROUP&&(E.openElements.pop(),E.insertionMode=u9.IN_TABLE);break;case u6.TEMPLATE:tD(E,T);break;case u6.COL:break;default:t2(E,T)}break;case u9.IN_TABLE_BODY:t6(this,e);break;case u9.IN_ROW:t5(this,e);break;case u9.IN_CELL:var x=this,A=e;let S=A.tagID;switch(S){case u6.TD:case u6.TH:x.openElements.hasInTableScope(S)&&(x.openElements.generateImpliedEndTags(),x.openElements.popUntilTagNamePopped(S),x.activeFormattingElements.clearToLastMarker(),x.insertionMode=u9.IN_ROW);break;case u6.TABLE:case u6.TBODY:case u6.TFOOT:case u6.THEAD:case u6.TR:x.openElements.hasInTableScope(S)&&(x._closeTableCell(),t5(x,A));break;case u6.BODY:case u6.CAPTION:case u6.COL:case u6.COLGROUP:case u6.HTML:break;default:tG(x,A)}break;case u9.IN_SELECT:t8(this,e);break;case u9.IN_SELECT_IN_TABLE:var I=this,w=e;let N=w.tagID;N===u6.CAPTION||N===u6.TABLE||N===u6.TBODY||N===u6.TFOOT||N===u6.THEAD||N===u6.TR||N===u6.TD||N===u6.TH?I.openElements.hasInTableScope(N)&&(I.openElements.popUntilTagNamePopped(u6.SELECT),I._resetInsertionMode(),I.onEndTag(w)):t8(I,w);break;case u9.IN_TEMPLATE:r=this,(i=e).tagID===u6.TEMPLATE&&tD(r,i);break;case u9.AFTER_BODY:ne(this,e);break;case u9.IN_FRAMESET:a=this,e.tagID===u6.FRAMESET&&!a.openElements.isRootHtmlElementCurrent()&&(a.openElements.pop(),a.fragmentContext||a.openElements.currentTagId===u6.FRAMESET||(a.insertionMode=u9.AFTER_FRAMESET));break;case u9.AFTER_FRAMESET:o=this,e.tagID===u6.HTML&&(o.insertionMode=u9.AFTER_AFTER_FRAMESET);break;case u9.AFTER_AFTER_BODY:nn(this,e)}}onEof(e){switch(this.insertionMode){case u9.INITIAL:tw(this,e);break;case u9.BEFORE_HTML:tN(this,e);break;case u9.BEFORE_HEAD:tO(this,e);break;case u9.IN_HEAD:t$(this,e);break;case u9.IN_HEAD_NO_SCRIPT:tR(this,e);break;case u9.AFTER_HEAD:tP(this,e);break;case u9.IN_BODY:case u9.IN_TABLE:case u9.IN_CAPTION:case u9.IN_COLUMN_GROUP:case u9.IN_TABLE_BODY:case u9.IN_ROW:case u9.IN_CELL:case u9.IN_SELECT:case u9.IN_SELECT_IN_TABLE:tq(this,e);break;case u9.TEXT:var t,n;t=this,n=e,t._err(n,uK.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(n);break;case u9.IN_TABLE_TEXT:tQ(this,e);break;case u9.IN_TEMPLATE:t7(this,e);break;case u9.AFTER_BODY:case u9.IN_FRAMESET:case u9.AFTER_FRAMESET:case u9.AFTER_AFTER_BODY:case u9.AFTER_AFTER_FRAMESET:tI(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCo
45deAt(0)===uq.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case u9.IN_HEAD:case u9.IN_HEAD_NO_SCRIPT:case u9.AFTER_HEAD:case u9.TEXT:case u9.IN_COLUMN_GROUP:case u9.IN_SELECT:case u9.IN_SELECT_IN_TABLE:case u9.IN_FRAMESET:case u9.AFTER_FRAMESET:this._insertCharacters(e);break;case u9.IN_BODY:case u9.IN_CAPTION:case u9.IN_CELL:case u9.IN_TEMPLATE:case u9.AFTER_BODY:case u9.AFTER_AFTER_BODY:case u9.AFTER_AFTER_FRAMESET:tM(this,e);break;case u9.IN_TABLE:case u9.IN_TABLE_BODY:case u9.IN_ROW:tK(this,e);break;case u9.IN_TABLE_TEXT:tJ(this,e)}}}function tA(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):tZ(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&function(e,t,n){let r=eZ(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===u6.TEMPLATE&&i===u0.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,a,i);let o=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,l=e.treeAdapter.createElement(s.tagName,o,s.attrs);e._adoptNodes(r,l),e.treeAdapter.appendChild(r,l),e.activeFormattingElements.insertElementAfterBookmark(l,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(r,l,s.tagID)}}function tS(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tI(e,t){if(e.stopped=!0,t.location){let n=2*!e.fragmentContext;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function tw(e,t){e._err(t,uK.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,u2.QUIRKS),e.insertionMode=u9.BEFORE_HTML,e._processToken(t)}function tN(e,t){e._insertFakeRootElement(),e.insertionMode=u9.BEFORE_HEAD,e._processToken(t)}function tO(e,t){e._insertFakeElement(u4.HEAD,u6.HEAD),e.headElement=e.openElements.current,e.insertionMode=u9.IN_HEAD,e._processToken(t)}function tC(e,t){switch(t.tagID){case u6.HTML:tH(e,t);break;case u6.BASE:case u6.BASEFONT:case u6.BGSOUND:case u6.LINK:case u6.META:e._appendElement(t,u0.HTML),t.ackSelfClosing=!0;break;case u6.TITLE:e._switchToTextParsing(t,eV.RCDATA);break;case u6.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,eV.RAWTEXT):(e._insertElement(t,u0.HTML),e.insertionMode=u9.IN_HEAD_NO_SCRIPT);break;case u6.NOFRAMES:case u6.STYLE:e._switchToTextParsing(t,eV.RAWTEXT);break;case u6.SCRIPT:e._switchToTextParsing(t,eV.SCRIPT_DATA);break;case u6.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=u9.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(u9.IN_TEMPLATE);break;case u6.HEAD:e._err(t,uK.misplacedStartTagForHeadElement);break;default:t$(e,t)}}function tD(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==u6.TEMPLATE&&e._err(t,uK.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(u6.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,uK.endTagWithoutMatchingOpenElement)}function t$(e,t){e.openElements.pop(),e.insertionMode=u9.AFTER_HEAD,e._processToken(t)}function tR(e,t){let n=t.type===uV.EOF?uK.openElementsLeftAfterEof:uK.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=u9.IN_HEAD,e._processToken(t)}function tP(e,t){e._insertFakeElement(u4.BODY,u6.BODY),e.insertionMode=u9.IN_BODY,tL(e,t)}function tL(e,t){switch(t.type){case uV.CHARACTER:tU(e,t);break;case uV.WHITESPACE_CHARACTER:tM(e,t);break;case uV.COMMENT:tS(e,t);break;case uV.START_TAG:tH(e,t);break;case uV.END_TAG:tG(e,t);break;case uV.EOF:tq(e,t)}}function tM(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function tU(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function tz(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,u0.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function tF(e){let t=eU(e,u1.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function tj(e,t){e._switchToTextParsing(t,eV.RAWTEXT)}function tB(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,u0.HTML)}function tH(e,t){switch(t.tagID){case u6.I:case u6.S:case u6.B:case u6.U:case u6.EM:case u6.TT:case u6.BIG:case u6.CODE:case u6.FONT:case u6.SMALL:case u6.STRIKE:case u6.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,u0.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case u6.A:let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(u4.A);n&&(tA(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,u0.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case u6.H1:case u6.H2:case u6.H3:case u6.H4:case u6.H5:case u6.H6:e.openElements.hasInButtonScope(u6.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&eK.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,u0.HTML);break;case u6.P:case u6.DL:case u6.OL:case u6.UL:case u6.DIV:case u6.DIR:case u6.NAV:case u6.MAIN:case u6.MENU:case u6.ASIDE:case u6.CENTER:case u6.FIGURE:case u6.FOOTER:case u6.HEADER:case u6.HGROUP:case u6.DIALOG:case u6.DETAILS:case u6.ADDRESS:case u6.ARTICLE:case u6.SEARCH:case u6.SECTION:case u6.SUMMARY:case u6.FIELDSET:case u6.BLOCKQUOTE:case u6.FIGCAPTION:e.openElements.hasInButtonScope(u6.P)&&e._closePElement(),e._insertElement(t,u0.HTML);break;case u6.LI:case u6.DD:case u6.DT:e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(r===u6.LI&&n===u6.LI||(r===u6.DD||r===u6.DT)&&(n===u6.DD||n===u6.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==u6.ADDRESS&&n!==u6.DIV&&n!==u6.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(u6.P)&&e._closePElement(),e._insertElement(t,u0.HTML);break;case u6.BR:case u6.IMG:case u6.WBR:case u6.AREA:case u6.EMBED:case u6.KEYGEN:tz(e,t);break;case u6.HR:e.openElements.hasInButtonScope(u6.P)&&e._closePElement(),e._appendElement(t,u0.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case u6.RB:case u6.RTC:e.openElements.hasInScope(u6.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,u0.HTML);break;case u6.RT:case u6.RP:e.openElements.hasInScope(u6.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(u6.RTC),e._insertElement(t,u0.HTML);break;case u6.PRE:case u6.LISTING:e.openElements.hasInButtonScope(u6.P)&&e._closePElement(),e._insertElement(t,u0.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case u6.XMP:e.openElements.hasInButtonScope(u6.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,eV.RAWTEXT);break;case u6.SVG:e._reconstructActiveFormattingElements(),t_(t),tb(t),t.selfClosing?e._appendElement(t,u0.SVG):e._insertElement(t,u0.SVG),t.ackSelfClosing=!0;break;case u6.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case u6.BASE:case u6.LINK:case u6.META:case u6.STYLE:case u6.TITLE:case u6.SCRIPT:case u6.BGSOUND:case u6.BASEFONT:case u6.TEMPLATE:tC(e,t);break;case u6.BODY:let i=e.openElements.tryPeekProperlyNestedBodyElement();i&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(i,t.attrs));break;case u6.FORM:let a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(u6.P)&&e._closePElement(),e._insertElement(t,u0.HTML),a||(e.formElement=e.openElements.current));break;case u6.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(u6.NOBR)&&(tA(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,u0.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case u6.MATH:e._reconstructActiveFormattingElements(),ty(t),tb(t),t.selfClosing?e._appendElement(t,u0.MATHML):e._insertElement(t,u0.MATHML),t.ackSelfClosing=!0;break;case u6.TABLE:e.treeAdapter.getDocumentMode(e.document)!==u2.QUIRKS&&e.openElements.hasInButtonScope(u6.P)&&e._closePElement(),e._insertElement(t,u0.HTML),e.framesetOk=!1,e.insertionMode=u9.IN_TABLE;break;case u6.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,u0.HTML),tF(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case u6.PARAM:case u6.TRACK:case u6.SOURCE:e._appendElement(t,u0.HTML),t.ackSelfClosing=!0;break;case u6.IMAGE:t.tagName=u4.IMG,t.tagID=u6.IMG,tz(e,t);break;case u6.BUTTON:e.openElements.hasInScope(u6.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u6.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,u0.HTML),e.framesetOk=!1;break;case u6.APPLET:case u6.OBJECT:case u6.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,u0.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case u6.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,eV.RAWTEXT);break;case u6.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,u0.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===u9.IN_TABLE||e.insertionMode===u9.IN_CAPTION||e.insertionMode===u9.IN_TABLE_BODY||e.insertionMode===u9.IN_ROW||e.insertionMode===u9.IN_CELL?u9.IN_SELECT_IN_TABLE:u9.IN_SELECT;break;case u6.OPTION:case u6.OPTGROUP:e.openElements.currentTagId===u6.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,u0.HTML);break;
45case u6.NOEMBED:case u6.NOFRAMES:tj(e,t);break;case u6.FRAMESET:let o=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&o&&(e.treeAdapter.detachNode(o),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,u0.HTML),e.insertionMode=u9.IN_FRAMESET);break;case u6.TEXTAREA:e._insertElement(t,u0.HTML),e.skipNextNewLine=!0,e.tokenizer.state=eV.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=u9.TEXT;break;case u6.NOSCRIPT:e.options.scriptingEnabled?tj(e,t):tB(e,t);break;case u6.PLAINTEXT:e.openElements.hasInButtonScope(u6.P)&&e._closePElement(),e._insertElement(t,u0.HTML),e.tokenizer.state=eV.PLAINTEXT;break;case u6.COL:case u6.TH:case u6.TD:case u6.TR:case u6.HEAD:case u6.FRAME:case u6.TBODY:case u6.TFOOT:case u6.THEAD:case u6.CAPTION:case u6.COLGROUP:break;default:tB(e,t)}}function tZ(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==u6.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function tG(e,t){switch(t.tagID){case u6.A:case u6.B:case u6.I:case u6.S:case u6.U:case u6.EM:case u6.TT:case u6.BIG:case u6.CODE:case u6.FONT:case u6.NOBR:case u6.SMALL:case u6.STRIKE:case u6.STRONG:tA(e,t);break;case u6.P:e.openElements.hasInButtonScope(u6.P)||e._insertFakeElement(u4.P,u6.P),e._closePElement();break;case u6.DL:case u6.UL:case u6.OL:case u6.DIR:case u6.DIV:case u6.NAV:case u6.PRE:case u6.MAIN:case u6.MENU:case u6.ASIDE:case u6.BUTTON:case u6.CENTER:case u6.FIGURE:case u6.FOOTER:case u6.HEADER:case u6.HGROUP:case u6.DIALOG:case u6.ADDRESS:case u6.ARTICLE:case u6.DETAILS:case u6.SEARCH:case u6.SECTION:case u6.SUMMARY:case u6.LISTING:case u6.FIELDSET:case u6.BLOCKQUOTE:case u6.FIGCAPTION:let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));break;case u6.LI:e.openElements.hasInListItemScope(u6.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(u6.LI),e.openElements.popUntilTagNamePopped(u6.LI));break;case u6.DD:case u6.DT:let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r));break;case u6.H1:case u6.H2:case u6.H3:case u6.H4:case u6.H5:case u6.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case u6.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(u4.BR,u6.BR),e.openElements.pop(),e.framesetOk=!1;break;case u6.BODY:if(e.openElements.hasInScope(u6.BODY)&&(e.insertionMode=u9.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}break;case u6.HTML:e.openElements.hasInScope(u6.BODY)&&(e.insertionMode=u9.AFTER_BODY,ne(e,t));break;case u6.FORM:let i=e.openElements.tmplCount>0,{formElement:a}=e;i||(e.formElement=null),(a||i)&&e.openElements.hasInScope(u6.FORM)&&(e.openElements.generateImpliedEndTags(),i?e.openElements.popUntilTagNamePopped(u6.FORM):a&&e.openElements.remove(a));break;case u6.APPLET:case u6.OBJECT:case u6.MARQUEE:let o=t.tagID;e.openElements.hasInScope(o)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(o),e.activeFormattingElements.clearToLastMarker());break;case u6.TEMPLATE:tD(e,t);break;default:tZ(e,t)}}function tq(e,t){e.tmplInsertionModeStack.length>0?t7(e,t):tI(e,t)}function tK(e,t){if(void 0!==e.openElements.currentTagId&&tE.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=u9.IN_TABLE_TEXT,t.type){case uV.CHARACTER:tX(e,t);break;case uV.WHITESPACE_CHARACTER:tJ(e,t)}else tY(e,t)}function tV(e,t){switch(t.tagID){case u6.TD:case u6.TH:case u6.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(u4.TBODY,u6.TBODY),e.insertionMode=u9.IN_TABLE_BODY,t4(e,t);break;case u6.STYLE:case u6.SCRIPT:case u6.TEMPLATE:tC(e,t);break;case u6.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(u4.COLGROUP,u6.COLGROUP),e.insertionMode=u9.IN_COLUMN_GROUP,t1(e,t);break;case u6.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,u0.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case u6.TABLE:e.openElements.hasInTableScope(u6.TABLE)&&(e.openElements.popUntilTagNamePopped(u6.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case u6.TBODY:case u6.TFOOT:case u6.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,u0.HTML),e.insertionMode=u9.IN_TABLE_BODY;break;case u6.INPUT:tF(t)?e._appendElement(t,u0.HTML):tY(e,t),t.ackSelfClosing=!0;break;case u6.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,u0.HTML),e.insertionMode=u9.IN_CAPTION;break;case u6.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,u0.HTML),e.insertionMode=u9.IN_COLUMN_GROUP;break;default:tY(e,t)}}function tW(e,t){switch(t.tagID){case u6.TABLE:e.openElements.hasInTableScope(u6.TABLE)&&(e.openElements.popUntilTagNamePopped(u6.TABLE),e._resetInsertionMode());break;case u6.TEMPLATE:tD(e,t);break;case u6.BODY:case u6.CAPTION:case u6.COL:case u6.COLGROUP:case u6.HTML:case u6.TBODY:case u6.TD:case u6.TFOOT:case u6.TH:case u6.THEAD:case u6.TR:break;default:tY(e,t)}}function tY(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,tL(e,t),e.fosterParentingEnabled=n}
vendor: 5,294 bytes, line 45
45function tJ(e,t){e.pendingCharacterTokens.push(t)}function tX(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tQ(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)tY(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let t0=new Set([u6.CAPTION,u6.COL,u6.COLGROUP,u6.TBODY,u6.TD,u6.TFOOT,u6.TH,u6.THEAD,u6.TR]);function t1(e,t){switch(t.tagID){case u6.HTML:tH(e,t);break;case u6.COL:e._appendElement(t,u0.HTML),t.ackSelfClosing=!0;break;case u6.TEMPLATE:tC(e,t);break;default:t2(e,t)}}function t2(e,t){e.openElements.currentTagId===u6.COLGROUP&&(e.openElements.pop(),e.insertionMode=u9.IN_TABLE,e._processToken(t))}function t4(e,t){switch(t.tagID){case u6.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,u0.HTML),e.insertionMode=u9.IN_ROW;break;case u6.TH:case u6.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(u4.TR,u6.TR),e.insertionMode=u9.IN_ROW,t3(e,t);break;case u6.CAPTION:case u6.COL:case u6.COLGROUP:case u6.TBODY:case u6.TFOOT:case u6.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=u9.IN_TABLE,tV(e,t));break;default:tV(e,t)}}function t6(e,t){let n=t.tagID;switch(t.tagID){case u6.TBODY:case u6.TFOOT:case u6.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=u9.IN_TABLE);break;case u6.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=u9.IN_TABLE,tW(e,t));break;case u6.BODY:case u6.CAPTION:case u6.COL:case u6.COLGROUP:case u6.HTML:case u6.TD:case u6.TH:case u6.TR:break;default:tW(e,t)}}function t3(e,t){switch(t.tagID){case u6.TH:case u6.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,u0.HTML),e.insertionMode=u9.IN_CELL,e.activeFormattingElements.insertMarker();break;case u6.CAPTION:case u6.COL:case u6.COLGROUP:case u6.TBODY:case u6.TFOOT:case u6.THEAD:case u6.TR:e.openElements.hasInTableScope(u6.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=u9.IN_TABLE_BODY,t4(e,t));break;default:tV(e,t)}}function t5(e,t){switch(t.tagID){case u6.TR:e.openElements.hasInTableScope(u6.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=u9.IN_TABLE_BODY);break;case u6.TABLE:e.openElements.hasInTableScope(u6.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=u9.IN_TABLE_BODY,t6(e,t));break;case u6.TBODY:case u6.TFOOT:case u6.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(u6.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=u9.IN_TABLE_BODY,t6(e,t));break;case u6.BODY:case u6.CAPTION:case u6.COL:case u6.COLGROUP:case u6.HTML:case u6.TD:case u6.TH:break;default:tW(e,t)}}function t9(e,t){switch(t.tagID){case u6.HTML:tH(e,t);break;case u6.OPTION:e.openElements.currentTagId===u6.OPTION&&e.openElements.pop(),e._insertElement(t,u0.HTML);break;case u6.OPTGROUP:e.openElements.currentTagId===u6.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u6.OPTGROUP&&e.openElements.pop(),e._insertElement(t,u0.HTML);break;case u6.HR:e.openElements.currentTagId===u6.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u6.OPTGROUP&&e.openElements.pop(),e._appendElement(t,u0.HTML),t.ackSelfClosing=!0;break;case u6.INPUT:case u6.KEYGEN:case u6.TEXTAREA:case u6.SELECT:e.openElements.hasInSelectScope(u6.SELECT)&&(e.openElements.popUntilTagNamePopped(u6.SELECT),e._resetInsertionMode(),t.tagID!==u6.SELECT&&e._processStartTag(t));break;case u6.SCRIPT:case u6.TEMPLATE:tC(e,t)}}function t8(e,t){switch(t.tagID){case u6.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===u6.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===u6.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===u6.OPTGROUP&&e.openElements.pop();break;case u6.OPTION:e.openElements.currentTagId===u6.OPTION&&e.openElements.pop();break;case u6.SELECT:e.openElements.hasInSelectScope(u6.SELECT)&&(e.openElements.popUntilTagNamePopped(u6.SELECT),e._resetInsertionMode());break;case u6.TEMPLATE:tD(e,t)}}function t7(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(u6.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):tI(e,t)}function ne(e,t){var n;if(t.tagID===u6.HTML){if(e.fragmentContext||(e.insertionMode=u9.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===u6.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null==(n=e.treeAdapter.getNodeSourceCodeLocation(r))?void 0:n.endTag)||e._setEndLocation(r,t)}}else nt(e,t)}function nt(e,t){e.insertionMode=u9.IN_BODY,tL(e,t)}function nn(e,t){e.insertionMode=u9.IN_BODY,tL(e,t)}function nr(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==u0.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.o
45penElements.current);)e.openElements.pop()}null==String.prototype.codePointAt||((e,t)=>e.codePointAt(t));let ni=new Set([u4.AREA,u4.BASE,u4.BASEFONT,u4.BGSOUND,u4.BR,u4.COL,u4.EMBED,u4.FRAME,u4.HR,u4.IMG,u4.INPUT,u4.KEYGEN,u4.LINK,u4.META,u4.PARAM,u4.SOURCE,u4.TRACK,u4.WBR]),na=ns("end"),no=ns("start");function ns(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function nl(e){let t=no(e),n=na(e);if(t&&n)return{start:t,end:n}}let nu=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,nc=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),nd={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function np(e,t){let n=function(e){let t="root"===e.type?e.children[0]:e;return!!(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=eS("type",{handlers:{root:nh,element:nm,text:ng,comment:ny,doctype:nv,raw:n_},unknown:nb}),i={parser:n?new tx(nd):tx.getFragmentParser(void 0,nd),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),nk(i,no());let a=function(e,t){let n=t||{};return eb({file:n.file||void 0,location:!1,schema:"svg"===n.space?ee:Q,verbose:n.verbose||!1},e)}(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return(i.stitches&&p(a,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type)?a.children[0]:a}function nf(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function nh(e,t){nf(e.children,t)}function nm(e,t){(function(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===eV.PLAINTEXT)return;nk(t,no(e));let r=t.parser.openElements.current,i="namespaceURI"in r?r.namespaceURI:ev.html;i===ev.html&&"svg"===n&&(i=ev.svg);let a=ew({...e,children:[]},"svg"===({space:i===ev.svg?"svg":"html"}).space?ee:Q),o={type:uV.START_TAG,tagName:n,tagID:eZ(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:nT(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n})(e,t),nf(e.children,t),function(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&eC.includes(n)||t.parser.tokenizer.state===eV.PLAINTEXT)return;nk(t,na(e));let r={type:uV.END_TAG,tagName:n,tagID:eZ(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:nT(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===eV.RCDATA||t.parser.tokenizer.state===eV.RAWTEXT||t.parser.tokenizer.state===eV.SCRIPT_DATA)&&(t.parser.tokenizer.state=eV.DATA)}(e,t)}function ng(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:uV.CHARACTER,chars:e.value,location:nT(e)};nk(t,no(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nv(e,t){let n={type:uV.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:nT(e)};nk(t,no(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ny(e,t){let n=e.value,r={type:uV.COMMENT,data:n,location:nT(e)};nk(t,no(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function n_(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,nE(t,no(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(nu,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function nb(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var n;t.stitches=!0;let r="children"in(n=e)?w({...n,children:[]}):w(n);"children"in e&&"children"in r&&(r.children=np({type:"root",children:e.children},t.options).children),ny({type:"comment",value:{stitch:r}},t)}else{let t="";
45throw nc.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function nk(e,t){nE(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=eV.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function nE(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function nT(e){let t=no(e)||{line:void 0,column:void 0,offset:void 0},n=na(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function nx(e){return function(t,n){return np(t,{...e,file:n})}}let nA=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],nS={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...nA,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...nA],h2:[["className","sr-only"]],img:[...nA,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...nA,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...nA],table:[...nA],ul:[...nA,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},nI={}.hasOwnProperty;function nw(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var n=e,r=t;if(n.schema.allowComments){let e="string"==typeof r.value?r.value:"",t=e.indexOf("--\x3e"),n={type:"comment",value:t<0?e:e.slice(0,t)};return nD(n,r),n}return;case"doctype":var i=e,a=t;if(i.schema.allowDoctypes){let e={type:"doctype"};return nD(e,a),e}return;case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let r=nN(e,t.children),i=function(e,t){let n,r=e.stack[e.stack.length-1],i=e.schema.attributes,a=e.schema.required,o=i&&nI.c
45all(i,r)?i[r]:void 0,s=i&&nI.call(i,"*")?i["*"]:void 0,l=t&&"object"==typeof t?t:{},u={};for(n in l)if(nI.call(l,n)){let t=l[n],r=nO(e,n$(o,n),n,t);null==r&&(r=nO(e,n$(s,n),n,t)),null!=r&&(u[n]=r)}if(a&&nI.call(a,r)){let e=a[r];for(n in e)nI.call(e,n)&&!nI.call(u,n)&&(u[n]=e[n])}return u}(e,t.properties);e.stack.pop();let a=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&nI.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:"element",tagName:n,properties:i,children:r};return nD(o,t),o}(e,t);case"root":var o=e,s=t;let l={type:"root",children:nN(o,s.children)};return nD(l,s),l;case"text":var u=0,c=t;let d={type:"text",value:"string"==typeof c.value?c.value:""};return nD(d,c),d}}function nN(e,t){let n=[];if(Array.isArray(t)){let r=-1;for(;++r<t.length;){let i=nw(e,t[r]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function nO(e,t,n,r){return t?Array.isArray(r)?function(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=nC(e,t,n,r[i]);("number"==typeof o||"string"==typeof o)&&a.push(o)}return a}(e,t,n,r):nC(e,t,n,r):void 0}function nC(e,t,n,r){if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){let r=e.schema.protocols&&nI.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||0===r.length)return!0;let i=String(n),a=i.indexOf(":"),o=i.indexOf("?"),s=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||o>-1&&a>o||s>-1&&a>s)return!0;let u=-1;for(;++u<r.length;){let e=r[u];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&"object"==typeof i&&"flags"in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function nD(e,t){let n=nl(t);t.data&&(e.data=w(t.data)),n&&(e.position=n)}function n$(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a="string"==typeof i?i:i[0];if(a===t)return i;"data*"===a&&(n=i)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function nR(e){return function(t){var n=t,r=e;let i={type:"root",children:[]},a=nw({schema:r?{...nS,...r}:nS,stack:[]},n);return a&&(Array.isArray(a)?1===a.length?i=a[0]:i.children=a:i=a),i}}function nP(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let nL=nV(/[A-Za-z]/),nM=nV(/[\dA-Za-z]/),nU=nV(/[#-'*+\--9=?A-Z^-~]/);function nz(e){return null!==e&&(e<32||127===e)}let nF=nV(/\d/),nj=nV(/[\dA-Fa-f]/),nB=nV(/[!-/:-@[-`{-~]/);function nH(e){return null!==e&&e<-2}function nZ(e){return null!==e&&(e<0||32===e)}function nG(e){return -2===e||-1===e||32===e}let nq=nV(/\p{P}|\p{S}/u),nK=nV(/\s/);function nV(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}let nW="phrasing",nY=["autolink","link","image","label"];function nJ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nX(e){this.config.enter.autolinkProtocol.call(this,e)}function nQ(e){this.config.exit.autolinkProtocol.call(this,e)}function n0(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function n1(e){this.config.exit.autolinkEmail.call(this,e)}function n2(e){this.exit(e)}function n4(e){!function(e,t,n){let r=o((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)d(e,"text",s);function s(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?c.push(...a):a&&c.push(a),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(s<e.value.length&&c.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,n6],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,n3]],{ignore:["link","linkReference"]})}function n6(e,t,n,r,i){let a="";if(!n5(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){let 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])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=nP(e,"("),a=nP(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!o[0])return!1;let s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function n3(e,t,n,r){return!(!n5(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function n5(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||nK(n)||nq(n))&&(!t||47!==n)}function n9(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function n8(){this.buffer()}function n7(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function re(){this.buffer()}function rt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rn(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=n9(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rr(e){this.exit(e)}function ri(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=n9(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ra(e){this.exit(e)}function ro(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]")}function rs(e,t,n){return 0===t?e:rl(e,t,n)}function rl(e,t,n){return(n?"":"    ")+e}ro.peek=function(){return"["};let ru=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function rc(e){this.enter({type:"delete",children:[]},e)}function rd(e){this.exit(e)}function rp(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function rf(e){return e.length}function rh(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}rp.peek=function(){return"~"};function rm(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function rg(e){let t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function rv(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ry(e){return null===e||nZ(e)||nK(e)?1:nq(e)?2:void 0}function r_(e,t,n){let r=ry(e),i=ry(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}let rb={};function rk(e,t){let n=t||rb;return rE(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function rE(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return rT(e.children,t,n)}return Array.isArray(e)?rT(e,t,n):""}function rT(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=rE(e[i],t,n);return r.join("")}function rx(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}function rA(e,t){let n=rk(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}rx.peek=function(){return"`"};o(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let rS={inlineCode:rx,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e});return l(),u}};function rI(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rw(e){this.exit(e),this.data.inTable=void 0}function rN(e){this.enter({type:"tableRow",children:[]},e)}function rO(e){this.exit(e)}function rC(e){this.enter({type:"tableCell",children:[]},e)}function rD(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,r$));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function r$(e,t){return"|"===t?t:e}function rR(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function rP(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function rL(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=rS.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}function rM(e,t,n,r){let i,a=e.length,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function rU(e,t){return e.length>0?(rM(e,e.length,0,t),e):t}let rz={}.hasOwnProperty;function rF(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(rz.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(r in a){rz.call(i,r)||(i[r]=[]);let e=a[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);rM(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let rj={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},rB={tokenize:function(e,t,n){let r,i,a;return o;function o(t){return 46===t||95===t?e.check(rZ,l,s)(t):null===t||nZ(t)||nK(t)||45!==t&&nq(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},rH={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(rZ,t,a)(o):null===o||nZ(o)||nK(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&r++,e.consume(t),i}},partial:!0},rZ={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||nZ(o)||nK(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||nZ(e)||nK(e)?t(e):r(e)}function a(t){return nL(t)?function t(i){return 59===i?(e.consume(i),r):nL(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rG={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return nM(e)?n(e):t(e)}},partial:!0},rq={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rJ.call(r,r.previous)||r1(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rj,e.attempt(rB,e.attempt(rH,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rJ},rK={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",a=!1;return function(t){return(72===t||104===t)&&rX.call(r,r.previous)&&!r1(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(nL(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),a)?l:(a=!0,s):n(t)}function l(t){return null===t||nz(t)||nZ(t)||nK(t)||nq(t)?n(t):e.attempt(rB,e.attempt(rH,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rX},rV={name:"emailAutolink",tokenize:function(e,t,n){let r,i,a=this;return function(t){return!r0(t)||!rQ.call(a,a.previous)||r1(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return r0(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(rG,l,s)(t):45===t||95===t||nM(t)?(i=!0,e.consume(t),o):l(t)}function s(t){return e.consume(t),r=!0,o}function l(o){return i&&r&&nL(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:rQ},rW={},rY=48;for(;rY<123;)rW[rY]=rV,58==++rY?rY=65:91===rY&&(rY=97);function rJ(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||nZ(e)}function rX(e){return!nL(e)}function rQ(e){return!(47===e||r0(e))}function r0(e){return 43===e||45===e||46===e||95===e||nM(e)}function r1(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function r2(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return function(r){return nG(r)?(e.enter(n),function r(o){return nG(o)&&a++<i?(e.consume(o),r):(e.ex
45it(n),t(o))}(r)):t(r)}}rW[43]=rV,rW[45]=rV,rW[46]=rV,rW[95]=rV,rW[72]=[rV,rK],rW[104]=[rV,rK],rW[87]=[rV,rq],rW[119]=[rV,rq];let r4={partial:!0,tokenize:function(e,t,n){return function(t){return nG(t)?r2(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||nH(e)?t(e):n(e)}}},r6={tokenize:function(e,t,n){let r=this;return r2(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function r3(e,t,n){let r,i=this,a=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let s=n9(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function r5(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let 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++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function r9(e,t,n){let r,i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!r||null===s||91===s||nZ(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(n9(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return nZ(s)||(r=!0),o++,e.consume(s),92===s?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function r8(e,t,n){let r,i,a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!i||null===t||91===t||nZ(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=n9(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return nZ(t)||(i=!0),s++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),r2(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function r7(e,t,n){return e.check(r4,t,e.attempt(r6,t,n))}function ie(e){e.exit("gfmFootnoteDefinition")}function it(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}class ir{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){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])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function ii(e,t,n){let r,i=this,a=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?y:s;return a===y&&i.parser.lazy[i.now().line]?n(e):a(e)};function s(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),l(n)}function l(t){return null===t?n(t):nH(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):nG(t)?r2(e,l,"whitespace")(t):(o+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),u(t))}function u(t){return null===t||124===t||nZ(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,nG(t))?r2(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):n(t)}function f(t){return nG(t)?r2(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||nH(t)?v(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return nG(t)?r2(e,v,"whitespace")(t):v(t)}function v(i){if(124===i)return p(i);if(null===i||nH(i))return r&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function y(t){return e.enter("tableRow"),_(t)}function _(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),_):null===n||nH(n)?(e.exit("tableRow"),t(n)):nG(n)?r2(e,_,"whitespace")(n):(e.enter("data"),b(n))}function b(t){return null===t||124===t||nZ(t)?(e.exit("data"),_(t)):(e.consume(t),92===t?k:b)}function k(t){return 92===t||124===t?(e.consume(t),b):b(t)}}function ia(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,p=new ir;for(;++a<e.length;){let f=e[a],h=f[1];"enter"===f[0]?"tableHead"===h.type?(c=!1,0!==d&&(is(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(a,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,l=[0,0,0,0],u=[0,a+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(o=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],i=io(p,t,l,s,void 0,i),l=[0,0,0,0]),u[2]=a)):"tableCellDivider"===h.type&&(o?o=!1:(0!==l[1]&&(u[0]=u[1],i=io(p,t,l,s,void 0,i)),u=[(l=u)[1],a,0,0])):"tableHead"===h.type?(c=!0,d=a):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=a,0!==l[1]?(u[0]=u[1],i=io(p,t,l,s,a,i)):0!==u[1]&&(i=io(p,t,u,s,a,i)),s=0):s&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=a)}for(0!==d&&is(p,t,d,n,r),p.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left"
45:"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function io(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},il(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let o=il(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=il(t.events,n[2]),a=il(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},il(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function is(e,t,n,r,i){let a=[],o=il(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function il(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let iu={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return nZ(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return nH(r)?t(r):nG(r)?e.check({tokenize:ic},t,n)(r):n(r)}}};function ic(e,t,n){return r2(e,function(e){return null===e?n(e):t(e)},"whitespace")}let id={};var ip=Object.defineProperty,ih=Object.defineProperties,im=Object.getOwnPropertyDescriptors,ig=Object.getOwnPropertySymbols,iv=Object.prototype.hasOwnProperty,iy=Object.prototype.propertyIsEnumerable,i_=(e,t,n)=>t in e?ip(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ib=(e,t)=>{for(var n in t||(t={}))iv.call(t,n)&&i_(e,n,t[n]);if(ig)for(var n of ig(t))iy.call(t,n)&&i_(e,n,t[n]);return e},ik=(e,t)=>ih(e,im(t)),iE=/(\*\*)([^*]*\*?)$/,iT=/(__)([^_]*?)$/,ix=/(\*\*\*)([^*]*?)$/,iA=/(\*)([^*]*?)$/,iS=/(_)([^_]*?)$/,iI=/(`)([^`]*?)$/,iw=/(~~)([^~]*?)$/,iN=/^[\s_~*`]*$/,iO=/^[\s]*[-*+][\s]+$/,iC=/[\p{L}\p{N}_]/u,iD=/^```[^`\n]*```?$/,i$=/^\*{4,}$/,iR=/(__)([^_]+)_$/,iP=/(~~)([^~]+)~$/,iL=/__/g,iM=/~~/g,iU=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||iC.test(e)},iz=(e,t)=>{let n=!1;for(let r=0;r<t;r+=1)"`"===e[r]&&"`"===e[r+1]&&"`"===e[r+2]&&(n=!n,r+=2);return n},iF=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if("]"===e[r])n+=1;else if("["===e[r]&&0==(n-=1))return r;return -1},ij=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if("["===e[r])n+=1;else if("]"===e[r]&&0==(n-=1))return r;return -1},iB=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if("\\"===e[i]&&"$"===e[i+1]){i+=1;continue}"$"===e[i]&&("$"===e[i+1]?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},iH=(e,t)=>{for(let n=t;n<e.length;n+=1){if(")"===e[n])return!0;if(e[n]===`
46`)break}return!1},iZ=(e,t)=>{for(let n=t-1;n>=0&&")"!==e[n];n-=1){if("("===e[n])return n>0&&"]"===e[n-1]&&iH(e,t);if(e[n]===`
47`)break}return!1},iG=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;n-=1)if(e[n]===`
48`){r=n+1;break}let i=e.length;for(let n=t;n<e.length;n+=1)if(e[n]===`
49`){i=n;break}let a=e.substring(r,i),o=0,s=!1;for(let e of a)if(e===n)o+=1;else if(" "!==e&&"	"!==e){s=!0;break}return o>=3&&!s},iq=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,iK=(e,t,n)=>{if(" "!==n&&"	"!==n)return!1;let r=0;for(let n=t-1;n>=0;n-=1)if(e[n]===`
50`){r=n+1;break}for(let n=r;n<t;n+=1)if(" "!==e[n]&&"	"!==e[n])return!1;return!0},iV=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&iB(e,t))||("*"!==n&&"*"===r?(t<e.length-2?e[t+2]:"")!=="*":!!("*"===n||n&&r&&iU(n)&&iU(r)||(!n||" "===n||"	"===n||n===`
51`)&&(!r||" "===r||"	"===r||r===`
52`)||iK(e,t,r))),iW=e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if("*"!==e[r])continue;let i=r>0?e[r-1]:"",a=r<n-1?e[r+1]:"";iV(e,r,i,a)||(t+=1)}return t},iY=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&iB(e,t)||iZ(e,t)||"_"===n||"_"===r||n&&r&&iU(n)&&iU(r)),iJ=e=>{let t=0,n=e.length;for(let r=0;r<n;r+=1){if("_"!==e[r])continue;let i=r>0?e[r-1]:"",a=r<n-1?e[r+1]:"";iY(e,r,i,a)||(t+=1)}return t},iX=e=>{let t=0,n=0;for(let r=0;r<e.length;r+=1)"*"===e[r]?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0);return n>=3&&(t+=Math.floor(n/3)),t},iQ=(e,t,n)=>{if(!t||iN.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
53`),i=e.substring(-1===r?0:r+1,n);return!!(iO.test(i)&&t.includes(`
54`))||iG(e,n,"*")},i0=(e,t,n)=>{if(!t||iN.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
55`),i=e.substring(-1===r?0:r+1,n);return!!(iO.test(i)&&t.includes(`
56`))||iG(e,n,"_")},i1=e=>{for(let t=0;t<e.length;t+=1)if("*"===e[t]&&"*"!==e[t-1]&&"*"!==e[t+1]&&"\\"!==e[t-1]&&!iB(e,t)){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if((!n||" "===n||"	"===n||n===`
57`)&&(!r||" "===r||"	"===r||r===`
58`)||n&&r&&iU(n)&&iU(r))continue;return t}return -1},i2=e=>{for(let t=0;t<e.length;t+=1)if("_"===e[t]&&"_"!==e[t-1]&&"_"!==e[t+1]&&"\\"!==e[t-1]&&!iB(e,t)&&!iZ(e,t)){let n=t>0?e[t-1]:"",r=t<e.length-1?e[t+1]:"";if(n&&r&&iU(n)&&iU(r))continue;return t}return -1},i4=e=>{let t=e.length;for(;t>0&&e[t-1]===`
59`;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},i6=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if((t.match(/\*\*/g)||[]).length%2!=1)return null;let n=t.indexOf("**"),r=i2(t);return -1!==n&&-1!==r&&n<r?`${t}_**`:null},i3=e=>{let t=(e.match(/\*\*/g)||[]).length,n=iW(e);return t%2==0&&n%2==0},i5=(e,t,n)=>!!(!t||iN.test(t)||iz(e,n))||iG(e,n,"*"),i9=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if("```"===e.substring(i,i+3)){r=!r,i+=2;continue}r||"`"!==e[i]||(n=!n)}return n||r},i8=(e,t)=>{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return n||r||i},i7=e=>{let t=0;for(let n=0;n<e.length;n+=1)"`"!==e[n]||i8(e,n)||(t+=1);return t},ae=/<[a-zA-Z/][^>]*$/,at=e=>!e.match(iD)||e.includes(`
60`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,an=e=>(e.match(/```/g)||[]).length%2==1,ar=(e,t)=>
60t>=2&&"```"===e.substring(t-2,t+1)||t>=1&&"```"===e.substring(t-1,t+2)||t<=e.length-3&&"```"===e.substring(t,t+3),ai=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)"`"!==e[r]||ar(e,r)||(n=!n),n||"$"!==e[r]||"$"!==e[r+1]||(t+=1,r+=1);return t},aa=e=>{let t=e.indexOf("$$");return -1===t||-1===e.indexOf(`
61`,t)||e.endsWith(`
62`)?`${e}$$`:`${e}
63$$`},ao=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=iF(e,t);if(-1===r||i9(e,r))return null;let i=r>0&&"!"===e[r-1],a=e.substring(0,i?r-1:r);if(i)return a;let o=e.substring(r+1,t);return"text-only"===n?`${a}${o}`:`${a}[${o}](streamdown:incomplete-link)`},as=(e,t)=>{for(let n=0;n<=t;n++)if("["===e[n]&&!i9(e,n)){if(n>0&&"!"===e[n-1])continue;let t=ij(e,n);if(-1===t)return n;if(t+1<e.length&&"("===e[t+1]){let r=e.indexOf(")",t+2);-1!==r&&(n=r)}}return -1},al=(e,t,n)=>{let r=t>0&&"!"===e[t-1],i=r?t-1:t,a=e.substring(t+1);if(!a.includes("]")){let o=e.substring(0,i);if(r)return o;if("text-only"===n){let n=as(e,t);return -1!==n?e.substring(0,n)+e.substring(n+1):`${o}${a}`}return`${e}
63](streamdown:incomplete-link)`}if(-1===ij(e,t)){let a=e.substring(0,i);if(r)return a;if("text-only"===n){let n=as(e,t);if(-1!==n)return e.substring(0,n)+e.substring(n+1);let r=e.substring(t+1);return`${a}${r}`}return`${e}](streamdown:incomplete-link)`}return null},au=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(-1!==n&&!i9(e,n)){let r=ao(e,n,t);if(null!==r)return r}for(let n=e.length-1;n>=0;n-=1)if("["===e[n]&&!i9(e,n)){let r=al(e,n,t);if(null!==r)return r}return e},ac=/^-{1,2}$/,ad=/^[\s]*-{1,2}[\s]+$/,ap=/^={1,2}$/,af=/^[\s]*={1,2}[\s]+$/,ah=e=>!1!==e,am={COMPARISON_OPERATORS:-10,HTML_TAGS:-5,SETEXT_HEADINGS:0,LINKS:10,BOLD_ITALIC:20,BOLD:30,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,DEFAULT:100},ag=[{handler:{name:"comparisonOperators",handle:e=>e&&"string"==typeof e&&e.includes(">")?e.replace(iq,(t,n,r,i)=>iz(e,i)?t:`${n}\\>${r}`):e,priority:am.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:e=>{let t=e.match(ae);return!t||void 0===t.index||i9(e,t.index)?e:e.substring(0,t.index).trimEnd()},priority:am.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:e=>{if(!e||"string"!=typeof e)return e;let t=e.lastIndexOf(`
64`);if(-1===t)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(ac.test(i)&&!n.match(ad)){let t=r.split(`
65`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(ap.test(i)&&!n.match(af)){let t=r.split(`
66`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},priority:am.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:au,priority:am.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:e=>{if(i$.test(e))return e;let t=e.match(ix);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return i5(e,n,r)?e:iX(e)%2==1?i3(e)?e:`${e}***`:e},priority:am.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:e=>{let t=e.match(iE);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return iz(e,r)||iQ(e,n,r)?e:(e.match(/\*\*/g)||[]).length%2==1?n.endsWith("*")?`${e}*`:`${e}**`:e},priority:am.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:e=>{let t=e.match(iT);if(!t){let t=e.match(iR);if(t){let n=e.lastIndexOf(t[1]);if(!iz(e,n)&&(e.match(iL)||[]).length%2==1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return iz(e,r)||i0(e,n,r)?e:(e.match(/__/g)||[]).length%2==1?`${e}__`:e},priority:am.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:e=>{if(!e.match(iA))return e;let t=i1(e);if(-1===t||iz(e,t))return e;let n=e.substring(t+1);return!n||iN.test(n)?e:iW(e)%2==1?`${e}*`:e},priority:am.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:e=>{if(!e.match(iS))return e;let t=i2(e);if(-1===t||iz(e,t))return e;let n=e.substring(t+1);if(!n||iN.test(n))return e;if(iJ(e)%2==1){let t=i6(e);return null!==t?t:i4(e)}return e},priority:am.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:e=>{let t=at(e);if(null!==t)return t;let n=e.match(iI);if(n&&!an(e)){let t=n[2];if(!t||iN.test(t))return e;if(i7(e)%2==1)return`${e}\``}return e},priority:am.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:e=>{let t=e.match(iw);if(t){let n=t[2];if(!n||iN.test(n))return e;if((e.match(iM)||[]).length%2==1)return`${e}~~`}else if(e.match(iP)&&(e.match(iM)||[]).length%2==1)return`${e}~`;return e},priority:am.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:e=>ai(e)%2==0?e:aa(e),priority:am.KATEX},optionKey:"katex"}],av=e=>{var t;let n=null!=(t=null==e?void 0:e.linkMode)?t:"protocol";return ag.filter(({handler:t,optionKey:n})=>"links"===t.name?ah(null==e?void 0:e.links)||ah(null==e?void 0:e.images):ah(null==e?void 0:e[n])).map(({handler:e,earlyReturn:t})=>"links"===e.name?{handler:ik(ib({},e),{handle:e=>au(e,n)}),earlyReturn:"protocol"===n?t:void 0}:{handler:e,earlyReturn:t})},ay=(e,t)=>{var n;if(!e||"string"!=typeof e)return e;let r=e.endsWith(" ")&&!e.endsWith("  ")?e.slice(0,-1):e;for(let{handler:e,earlyReturn:i}of[...av(t),...(null!=(n=null==t?void 0:t.handlers)?n:[]).map(e=>{var t;return{handler:ik(ib({},e),{priority:null!=(t=e.priority)?t:am.DEFAULT}),earlyReturn:void 0}})].sort((e,t)=>
66{var n,r;return(null!=(n=e.handler.priority)?n:am.DEFAULT)-(null!=(r=t.handler.priority)?r:am.DEFAULT)}))if(r=e.handle(r),null!=i&&i(r))break;return r},a_=n(8850),ab=n(8334),ak=n(6204);let aE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ax={};function aA(e,t){return((t||ax).jsx?aT:aE).test(e)}let aS=/[ \t\n\f\r]/g;function aI(e){return""===e.replace(aS,"")}let aw={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"};var aN=n(9936);function aO(e){return e&&"object"==typeof e?"position"in e||"type"in e?aD(e.position):"start"in e||"end"in e?aD(e):"line"in e||"column"in e?aC(e):"":""}function aC(e){return a$(e&&e.line)+":"+a$(e&&e.column)}function aD(e){return aC(e&&e.start)+"-"+aC(e&&e.end)}function a$(e){return e&&"number"==typeof e?e:1}class aR extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=aO(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}aR.prototype.file="",aR.prototype.name="",aR.prototype.reason="",aR.prototype.message="",aR.prototype.stack="",aR.prototype.column=void 0,aR.prototype.line=void 0,aR.prototype.ancestors=void 0,aR.prototype.cause=void 0,aR.prototype.fatal=void 0,aR.prototype.place=void 0,aR.prototype.ruleId=void 0,aR.prototype.source=void 0;let aP={}.hasOwnProperty,aL=new Map,aM=/[A-Z]/g,aU=new Set(["table","tbody","thead","tfoot","tr"]),az=new Set(["td","th"]),aF="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function aj(e,t,n){var r;return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=ee),e.ancestors.push(t);let a=aG(e,t.tagName,!1),o=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&aP.call(t.properties,r)){let a=function(e,t,n){let r=es(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?en(n):ed(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return aN(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new aR("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=aF+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)aP.call(e,t)&&(n[function(e){let t=e.replace(aM,aK);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?aw[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,o]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&az.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),s=aZ(e,t);return aU.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&aI(e.value):aI(e))})),aB(e,o,a,t),aH(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}
66(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}aq(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(e.schema=ee),e.ancestors.push(t);let a=null===t.name?e.Fragment:aG(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else aq(e,t.position);else{let i,a=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else aq(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(e,t),s=aZ(e,t);return aB(e,o,a,t),aH(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);aq(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return aH(r,aZ(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?(r=0,t.value):void 0}function aB(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function aH(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function aZ(e,t){let n=[],r=-1,i=e.passKeys?new Map:aL;for(;++r<t.children.length;){let a,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let s=aj(e,o,a);void 0!==s&&n.push(s)}return n}function aG(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=aA(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=aA(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return aP.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);aq(e)}function aq(e,t){let n=new aR("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=aF+"#cannot-handle-mdx-estrees-without-createevaluater",n}function aK(e){return"-"+e.toLowerCase()}let aV={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"]};class aW{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&aY(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),aY(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),aY(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);aY(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);aY(this.left,t.reverse())}}}function aY(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 aJ(e){let t,n,r,i,a,o,s,l={},u=-1,c=new aW(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],o=t-1,s=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],d={},p=-1,f=i,h=0,m=0,g=[0];for(;f;){for(;e.get(++o)[1]!==f;);s.push(o),!f._tokenizer&&(n=a.sliceStream(f),f.next||n.push(null),r&&l.defineSki
66p(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++p<u.length;)"exit"===u[p][0]&&"enter"===u[p-1][0]&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=u.slice(g[p],g[p+1]),n=s.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)d[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return d}(c,u)),u=l[u],s=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(a=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,a))}}return rM(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}let aX={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r2(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return nH(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},aQ={tokenize:function(e){let t,n,r,i=this,a=[],o=0;return s;function s(t){if(o<a.length){let n=a[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&v();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return rM(i.events,a+1,0,i.events.slice(r)),i.events.length=s,u(e)}return s(e)}function u(n){if(o===a.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(a0,c,d)(n)}function c(e){return t&&v(),g(o),p(e)}function d(e){return i.parser.lazy[i.now().line]=o!==a.length,r=i.now().offset,h(e)}function p(t){return i.containerState={},e.attempt(a0,f,h)(t)}function f(e){return o++,a.push([i.currentConstruct,i.containerState]),p(e)}function h(r){if(null===r){t&&v(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return nH(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,a){let s=i.sliceStream(e);if(a&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),a=s;a<i.events.length;)i.events[a][1].end={...n},a++;rM(i.events,l+1,0,i.events.slice(s)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function v(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},a0={tokenize:function(e,t,n){return r2(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},a1={resolve:function(e){return aJ(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):nH(t)?e.check(a2,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},a2={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r2(e,i,"linePrefix")};function i(i){if(null===i||nH(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},a4={tokenize:function(e){let t=this,n=e.attempt(r4,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,r2(e,e.attempt(this.parser.constructs.flow,r,e.attempt(a1,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},a6={resolveAll:a8()},a3=a9("string"),a5=a9("text");function a9(e){return{resolveAll:a8("text"===e?a7:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function a8(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function a7(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0;for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let oe={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var o;return e.enter("thematicBreak"),r=o=a,function a(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),nG(n)?r2(e,a,"whitespace")(n):a(n))}(o)):i>=3&&(null===o||nH(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},ot={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(r4,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,r2(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!nG(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
66=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(or,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,r2(e,e.attempt(ot,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:nF(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(oe,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return nF(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(r4,r.interrupt?n:l,e.attempt(on,c,u))}
66function l(e){return r.containerState.initialBlankLine=!0,a++,c(e)}function u(t){return nG(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},on={partial:!0,tokenize:function(e,t,n){let r=this;return r2(e,function(e){let i=r.events[r.events.length-1];return!nG(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},or={partial:!0,tokenize:function(e,t,n){let r=this;return r2(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},oi={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return nG(t)?r2(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(oi,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return nG(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function oa(e,t,n,r,i,a,o,s,l){let u=l||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||nz(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||nH(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return!c&&(null===i||41===i||nZ(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||nz(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function oo(e,t,n,r,i,a){let o,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(d){return l>999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):nH(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||nH(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!nG(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function os(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):nH(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r2(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||nH(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function ol(e,t){let n;return function r(i){return nH(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):nG(i)?r2(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}let ou={partial:!0,tokenize:function(e,t,n){return function(t){return nZ(t)?ol(e,r)(t):n(t)};function r(t){return os(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return nG(t)?r2(e,a,"whitespace")(t):a(t)}function a(e){return null===e||nH(e)?t(e):n(e)}}},oc={name:"codeIndented",tokenize:function(e,t,n){let r=this;
66return function(t){return e.enter("codeIndented"),r2(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):nH(n)?e.attempt(od,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||nH(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},od={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):nH(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):r2(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):nH(e)?i(e):n(e)}}},op={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),nG(n)?r2(e,a,"lineSuffix")(n):a(n))}(o)):n(t)};function a(r){return null===r||nH(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},of=["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"],oh=["pre","script","style","textarea"],om={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(r4,t,n)}}},og={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return nH(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ov={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},oy={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),nG(t)?r2(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),nG(i)?r2(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||nH(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){var a=t;let u=i.events[i.events.length-1];return o=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),nG(i)?r2(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||nH(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(ov,c,h)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nH(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):nG(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),r2(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}
66function u(t){return null===t||nH(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nH(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(a,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&nG(t)?r2(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||nH(t)?e.check(ov,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||nH(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},o_=document.createElement("i");function ob(e){let t="&"+e+";";o_.innerHTML=t;let n=o_.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ok={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=nM,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=nj,u):(e.enter("characterReferenceValue"),r=7,i=nF,u(t))}function u(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==nM||ob(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),u):n(s)}}},oE={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return nB(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},oT={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r2(e,t,"linePrefix")}}},ox={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&rM(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=rU(a=[["enter",l,t],["enter",u,t]],e.slice(r+1,r+s+3)),a=rU(a,[["enter",c,t]]),a=rU(a,it(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=rU(a,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),a=rU(a,e.slice(i+1)),a=rU(a,[["exit",l,t]]),rM(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i,a=this,o=a.events.length;for(;o--;)if(("labelImage"===a.events[o][1].type||"labelLink"===a.events[o][1].type)&&!a.events[o][1]._balanced){r=a.events[o][1];break}return function(t){return r?r._inactive?c(t):(i=a.parser.defined.includes(n9(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(oA,u,i?u:c)(t):91===t?e.attempt(oS,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(oI,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},oA={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return nZ(t)?ol(e,i)(t):i(t)}function i(t){return 41===t?u(t):oa(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return nZ(t)?ol(e,s)(t):u(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?os(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return nZ(t)?ol(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},oS={tokenize:function(e,t,n){let r=this;return function(t){return oo.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(n9(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},oI={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ow={name:"labelStartImage",resolveAll:ox.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},oN={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
66n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[c][1].start};oO(d,-s),oO(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[c][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=rU(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=rU(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=rU(l,it(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=rU(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=rU(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,rM(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=ry(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let l=e.exit("attentionSequence"),u=ry(s),c=!u||2===u&&a||r.includes(s),d=!a||2===a&&u||r.includes(i);return l._open=!!(42===n?c:c&&(a||!d)),l._close=!!(42===n?d:d&&(u||!c)),t(s)}(o)}}};function oO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let oC={name:"labelStartLink",resolveAll:ox.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},oD={42:ot,43:ot,45:ot,48:ot,49:ot,50:ot,51:ot,52:ot,53:ot,54:ot,55:ot,56:ot,57:ot,62:oi},o$={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,oo.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=n9(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return nZ(t)?ol(e,s)(t):s(t)}function s(t){return oa(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(ou,u,u)(t)}function u(t){return nG(t)?r2(e,c,"whitespace")(t):c(t)}function c(a){return null===a||nH(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},oR={[-2]:oc,[-1]:oc,32:oc},oP={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},rM(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||nZ(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||nH(r)?(e.exit("atxHeading"),t(r)):nG(r)?r2(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||nZ(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:oe,45:[op,oe],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,n){let r,i,a,o,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,f):63===o?(e.consume(o),r=3,l.interrupt?t:D):nL(o)?(e.consume(o),a=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,p):nL(i)?(e.consume(i),r=4,l.interrupt?t:D):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:D):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:x:p:n(r)}function f(t){return nL(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}
66function h(o){if(null===o||47===o||62===o||nZ(o)){let s=47===o,u=a.toLowerCase();return!s&&!i&&oh.includes(u)?(r=1,l.interrupt?t(o):x(o)):of.includes(a.toLowerCase())?(r=6,s)?(e.consume(o),m):l.interrupt?t(o):x(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return nG(n)?(e.consume(n),t):E(n)}(o):g(o))}return 45===o||nM(o)?(e.consume(o),a+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:x):n(r)}function g(t){return 47===t?(e.consume(t),E):58===t||95===t||nL(t)?(e.consume(t),v):nG(t)?(e.consume(t),g):E(t)}function v(t){return 45===t||46===t||58===t||95===t||nM(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),_):nG(t)?(e.consume(t),y):g(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,b):nG(t)?(e.consume(t),_):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||nZ(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===s?(e.consume(t),s=null,k):null===t||nH(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||nG(e)?g(e):n(e)}function E(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||nH(t)?x(t):nG(t)?(e.consume(t),T):n(t)}function x(t){return 45===t&&2===r?(e.consume(t),w):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),$):63===t&&3===r?(e.consume(t),D):93===t&&5===r?(e.consume(t),C):nH(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(om,R,A)(t)):null===t||nH(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),x)}function A(t){return e.check(og,S,R)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||nH(t)?A(t):(e.enter("htmlFlowData"),x(t))}function w(t){return 45===t?(e.consume(t),D):x(t)}function N(t){return 47===t?(e.consume(t),a="",O):x(t)}function O(t){if(62===t){let n=a.toLowerCase();return oh.includes(n)?(e.consume(t),$):x(t)}return nL(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),O):x(t)}function C(t){return 93===t?(e.consume(t),D):x(t)}function D(t){return 62===t?(e.consume(t),$):45===t&&2===r?(e.consume(t),D):x(t)}function $(t){return null===t||nH(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),$)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:op,95:oe,96:oy,126:oy},oL={38:ok,92:oE},oM={[-5]:oT,[-4]:oT,[-3]:oT,33:ow,38:ok,42:oN,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return nL(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(t){return 43===t||45===t||46===t||nM(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||nM(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||nz(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):nU(t)?(e.consume(t),s):n(t)}function l(i){return nM(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||nM(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),b):63===t?(e.consume(t),y):nL(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):nL(t)?(e.consume(t),v):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):nH(t)?(a=c,O(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?N(e):45===e?d(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):nH(t)?(a=h,O(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):h(t)}function v(t){return null===t||62===t?N(t):nH(t)?(a=v,O(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),_):nH(t)?(a=y,O(t)):(e.consume(t),y)}function _(e){return 62===e?N(e):y(e)}function b(t){return nL(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||nM(t)?(e.consume(t),k):function t(n){return nH(n)?(a=t,O(n)):nG(n)?(e.consume(n),t):N(n)}(t)}function E(t){return 45===t||nM(t)?(e.consume(t),E):47===t||62===t||nZ(t)?T(t):n(t)}function T(t){return 47===t?(e.consume(t),N):58===t||95===t||nL(t)?(e.consume(t),x):nH(t)?(a=T,O(t)):nG(t)?(e.consume(t),T):N(t)}function x(t){return 45===t||46===t||58===t||95===t||nM(t)?(e.consume(t),x):function t(n){return 61===n?(e.consume(n),A):nH(n)?(a=t,O(n)):nG(n)?(e.consume(n),t):T(n)}(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):nH(t)?(a=A,O(t)):nG(t)?(e.consume(t),A):(e.consume(t),I)}function S(t){return t===r?(e.consume(t),r=void 0,w):null===t?n(t):nH(t)?(a=S,O(t)):(e.consume(t),S)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||nZ(t)?T(t):(e.consume(t),I)}function w(e){return 47===e||62===e||nZ(e)?T(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return nG(t)?r2(e,D,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),a(t)}}}],91:oC,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return nH(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},oE],93:ox,95:oN,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;
66return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(l)):nH(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||nH(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},oU={null:[oN,a6]},oz={null:[42,95]},oF={null:[]},oj=/[\0\t\n\r]/g;function oB(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let oH=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function oZ(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return oB(n.slice(t?2:1),t?16:10)}return ob(n)||e}let oG={}.hasOwnProperty;function oq(e){return{line:e.line,column:e.column,offset:e.offset}}function oK(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+aO({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+aO({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+aO({start:t.start,end:t.end})+") is still open")}function oV(e){let t=this;t.parser=function(n){var r,a;let o,s,l,u;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(a=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(v),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(v),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=oB(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=ob(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=oq(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=n9(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(oH,oZ),n.identifier=n9(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=oq(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
66ype)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=n9(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(oG.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,a,o,s=t-1,l=-1,u=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];oG.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||oK).call(o,void 0,e[0])}for(r.position={start:oq(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:oq(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:oq(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||oK).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+aO({start:e.start,end:e.end})+"): it’s not open");n.position.end=oq(e.end)}function l(){return rk(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:oq(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=oq(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!aJ(e););return e}((function(e){let t={constructs:rF([i,...(e||{}).extensions||[]]),content:n(aX),defined:[],document:n(aQ),flow:n(a4),lazy:{},string:n(a3),text:n(a5)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
66olumn:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],l={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){nH(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),u.events.push(["exit",t,u]),t},interrupt:h(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,o=e[r];if("string"==typeof o)a=o;else switch(o){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":"	";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=rU(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=it(a,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,o)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function f(e,t){t.restore()}function h(e,t){return function(n,i,a){var o;let c,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?a:v(e[d])}function v(e){return function(n){return(h=function(){let e=p(),t=u.previous,n=u.currentConstruct,i=u.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=a,g()}}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?_(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,y,_)(n)}}function y(t){return e(f,h),i}function _(e){return(h.restore(),++d<c.length)?v(c[d]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&rM(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(a).document().write((s=1,l="",u=!0,function(e,t,n){let r,i,a,c,d,p=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),a=0,l="",u&&(65279===e.charCodeAt(0)&&a++,u=void 0);a<e.length;){if(oj.lastIndex=a,c=(r=oj.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){l=e.slice(a);break}if(10===d&&a===c&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),a<c&&(p.push(e.slice(a,c)),s+=c-a),d){case 0:p.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),p.push(-2);s++<i;)p.push(-1);break;case 10:p.push(-4),s=1;break;default:o=!0,s=1}a=c+1}return n&&(o&&p.push(-5),l&&p.push(l),p.push(null)),p})(n,r,!0))))}}function oW(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o="";if(37===a&&nM(e.charCodeAt(n+1))&&nM(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function oY(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function oJ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function oX(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function oQ(e){let t=e.spread;return null==t?e.children.length>1:t}function o0(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let o1={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
66,footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=oW(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oX(e,t);let i={src:oW(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:oW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oX(e,t);let i={href:oW(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:oW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=oQ(n[r])}return t}(n):oQ(t),a={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=no(t.children[1]),o=na(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:"element",tagName:"table",properties:{}
66,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length,s=-1,l=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(o0(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(o0(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:o2,yaml:o2,definition:o2,footnoteDefinition:o2};function o2(){}let o4={}.hasOwnProperty,o6={};function o3(e,t){e.position&&(t.position=nl(e))}function o5(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,w(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function o9(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function o8(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function o7(e,t){let n=function(e,t){let n=t||o6,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=o8(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=o8(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:o5,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...o1,...n.handlers},one:function(e,t){let n=e.type,r=a.handlers[n];if(o4.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=w(n);return r.children=a.all(e),r}return w(e)}return(a.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(o4.call(n,"hProperties")||o4.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)})(a,e,t)},options:n,patch:o3,wrap:o9};return p(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||oY,r=e.options.footnoteBackLabel||oJ,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),u=oW(o.toLowerCase()),c=0,d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++c<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}
66let f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else a.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(a,!0)};e.patch(i,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...w(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function se(e,t){return e&&"run"in e?async function(n,r){let i=o7(n,{file:r,...t});await e.run(i,r)}:function(n,r){return o7(n,{file:r,...e||t})}}function st(e){if(e)throw e}var sn=n(131);function sr(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let si={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');sa(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(sa(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;sa(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)sa(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){sa(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function sa(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let so={cwd:function(){return"/"}};function ss(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let sl=["history","path","basename","stem","extname","dirname"];class su{constructor(e){let t,n;t=e?ss(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":so.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<sl.length;){let e=sl[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)sl.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?si.basename(this.path):void 0}set basename(e){sd(e,"basename"),sc(e,"basename"),this.path=si.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?si.dirname(this.path):void 0}set dirname(e){sp(this.basename,"dirname"),this.path=si.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?si.extname(this.path):void 0}set extname(e){if(sc(e,"extname"),sp(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");
66if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=si.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ss(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ss(e)){let t=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("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),sd(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?si.basename(this.path,this.extname):void 0}set stem(e){sd(e,"stem"),sc(e,"stem"),this.path=si.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new aR(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function sc(e,t){if(e&&e.includes(si.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+si.sep+"`")}function sd(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function sp(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let sf=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},sh={}.hasOwnProperty;class sm extends sf{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=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(a,...o){let s=e[++n],l=-1;if(a)return void r(a);for(;++l<t.length;)(null===o[l]||void 0===o[l])&&(o[l]=t[l]);t=o,s?(function(e,t){let n;return function(...t){let a,o=e.length>t.length;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new sm,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(sn(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(s_("data",this.frozen),this.namespace[e]=t,this):sh.call(this.namespace,e)&&this.namespace[e]||void 0:e?(s_("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=sE(e),n=this.parser||this.Parser;return sv("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),sv("process",this.parser||this.Parser),sy("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=sE(e),o=n.parse(a);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(o,a,function(e,t,r){var i,a;if(e||!t||!r)return s(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=o:r.result=
66o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),sv("processSync",this.parser||this.Parser),sy("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,st(e),t=r}),sk("processSync","process",n),t}run(e,t,n){sb(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=sE(t);r.run(e,o,function(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){st(e),n=t,r=!0}),sk("runSync","run",r),n}stringify(e,t){this.freeze();let n=sE(t),r=this.compiler||this.Compiler;return sy("stringify",r),sb(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(s_("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?a(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw 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");a(e.plugins),e.settings&&(r.settings=sn(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)o(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;o(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];sr(o)&&sr(r)&&(r=sn(!0,o,r)),n[i]=[e,r,...a]}}}}let sg=new sm().freeze();function sv(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function sy(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function s_(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sb(e){if(!sr(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function sk(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function sE(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new su(e)}function sT(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sx=sT(),sA={exec:()=>null};function sS(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(sw.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var sI=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),sw={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},sN=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,sO=/(?:[*+-]|\d{1,9}[.)])/,sC=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,sD=sS(sC).replace(/bull/g,sO).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),s$=sS(sC).replace(/bull/g,sO).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),sR=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sP=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sL=sS(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",sP).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sM=sS(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sO).getRegex(),sU="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",sz=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,sF=sS("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
66)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",sz).replace("tag",sU).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),sj=sS(sR).replace("hr",sN).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sU).getRegex(),sB={blockquote:sS(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",sj).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:sL,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:sN,html:sF,lheading:sD,list:sM,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:sj,table:sA,text:/^[^\n]+/},sH=sS("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",sN).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sU).getRegex(),sZ={...sB,lheading:s$,table:sH,paragraph:sS(sR).replace("hr",sN).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",sH).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sU).getRegex()},sG={...sB,html:sS(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",sz).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:sA,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:sS(sR).replace("hr",sN).replace("heading",` *#{1,6} *[^
67]`).replace("lheading",sD).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sq=/^( {2,}|\\)\n(?!\s*$)/,sK=/[\p{P}\p{S}]/u,sV=/[\s\p{P}\p{S}]/u,sW=/[^\s\p{P}\p{S}]/u,sY=sS(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,sV).getRegex(),sJ=/(?!~)[\p{P}\p{S}]/u,sX=sS(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",sI?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),sQ=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,s0=sS(sQ,"u").replace(/punct/g,sK).getRegex(),s1=sS(sQ,"u").replace(/punct/g,sJ).getRegex(),s2="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",s4=sS(s2,"gu").replace(/notPunctSpace/g,sW).replace(/punctSpace/g,sV).replace(/punct/g,sK).getRegex(),s6=sS(s2,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,sJ).getRegex(),s3=sS("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,sW).replace(/punctSpace/g,sV).replace(/punct/g,sK).getRegex(),s5=sS(/\\(punct)/,"gu").replace(/punct/g,sK).getRegex(),s9=sS(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),s8=sS(sz).replace("(?:--\x3e|$)","--\x3e").getRegex(),s7=sS("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",s8).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),le=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,lt=sS(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",le).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ln=sS(/^!?\[(label)\]\[(ref)\]/).replace("label",le).replace("ref",sP).getRegex(),lr=sS(/^!?\[(ref)\](?:\[\])?/).replace("ref",sP).getRegex(),li=sS("reflink|nolink(?!\\()","g").replace("reflink",ln).replace("nolink",lr).getRegex(),la=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,lo={_backpedal:sA,anyPunctuation:s5,autolink:s9,blockSkip:sX,br:sq,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:sA,emStrongLDelim:s0,emStrongRDelimAst:s4,emStrongRDelimUnd:s3,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:lt,nolink:lr,punctuation:sY,reflink:ln,reflinkSearch:li,tag:s7,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:sA},ls={...lo,link:sS(/^!?\[(label)\]\((.*?)\)/).replace("label",le).getRegex(),reflink:sS(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",le).getRegex()},ll={...lo,emStrongRDelimAst:s6,emStrongLDelim:s1,url:sS(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",la).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:sS(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",la).getRegex()},lu={...ll,br:sS(sq).replace("{2,}","*").getRegex(),text:sS(ll.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},lc={normal:sB,gfm:sZ,pedantic:sG},ld={normal:lo,gfm:ll,breaks:lu,pedantic:ls},lp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},lf=e=>lp[e];function lh(e,t){if(t){if(sw.escapeTest.test(e))return e.replace(sw.escapeReplace,lf)}else if(sw.escapeTestNoEncode.test(e))return e.replace(sw.escapeReplaceNoEncode,lf);return e}function lm(e){try{e=encodeURI(e).replace(sw.percentDecode,"%")}catch{return null}return e}function lg(e,t){let n=e.replace(sw.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(sw.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(sw.slashPipe,"|");return n}function lv(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function ly(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var l_=class{options;rules;lexer;constructor(e){this.options=e||sx}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:lv(e,`
68`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
69`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
70`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=lv(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:lv(t[0],`
71`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=lv(t[0],`
72`).split(`
73`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(t)break;else a.push(e[o]);e=e.slice(o);let s=a.join(`
74`),l=s.replace(this.rules.other.blockquoteSetextReplace,`
75    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
76${s}`:s,r=r?`${r}
77${l}`:l;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=u,0===e.length)break;let c=i.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+`
78`+e.join(`
79`),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.text.length)+a.text;break}if(c?.type==="list"){let t=c.raw+`
80`+e.join(`
81`),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(`
82`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);
82if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split(`
83`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),u=e.split(`
84`,1)[0],c=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):c?d=t[1].length+1:(d=(d=t[2].search(this.rules.other.nonSpaceChar))>4?1:d,s=l.slice(d),d+=t[1].length),c&&this.rules.other.blankLine.test(u)&&(r+=u+`
85`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let p=e.split(`
86`,1)[0],f;if(u=p,f=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting,"  "):u.replace(this.rules.other.tabCharGlobal,"    "),i.test(u)||a.test(u)||o.test(u)||t.test(u)||n.test(u))break;if(f.search(this.rules.other.nonSpaceChar)>=d||!u.trim())s+=`
87`+f.slice(d);else{if(c||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;s+=`
88`+u}c||u.trim()||(c=!0),r+=p+`
89`,e=e.substring(p.length+1),l=f.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;for(let e of(s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd(),i.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),e.tokens[0]?.type==="text"||e.tokens[0]?.type==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=lg(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
90`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(lg(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
91`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=lv(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ly(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ly(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let u=l.slice(2,-2);return{type:"strong",raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},lb=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||sx,this.options.tokenizer=this.options.tokenizer||new l_,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:sw,block:lc.normal,inline:ld.normal};this.options.pedantic?(t.block=lc.pedantic,t.inline=ld.pedantic):this.options.gfm&&(t.block=lc.gfm,this.options.breaks?t.inline=ld.breaks:t.inline=ld.gfm),this.tokenizer.rules=t}static get rules(){return{block:lc,inline:ld}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(sw.carriageReturn,`
92`),this.blockTokens(e,this.tokens);for(let e=0;
92e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(sw.tabCharGlobal,"    ").replace(sw.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
93`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
94`)?"":`
95`)+r.raw,n.text+=`
96`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
97`)?"":`
98`)+r.raw,n.text+=`
99`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
100`)?"":`
101`)+r.raw,a.text+=`
102`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
103`)?"":`
104`)+r.raw,n.text+=`
105`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,o="";for(;e;){let n;if(a||(o=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,o))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),a=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}}
vendor: 5,942 bytes, lines 105-123
105,lk=class{options;parser;constructor(e){this.options=e||sx}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(sw.notSpaceStart)?.[0],i=e.replace(sw.endingNewline,"")+`
106`;return r?'<pre><code class="language-'+lh(r)+'">'+(n?i:lh(i,!0))+`</code></pre>
107`:"<pre><code>"+(n?i:lh(i,!0))+`</code></pre>
108`}blockquote({tokens:e}){return`<blockquote>
109${this.parser.parse(e)}</blockquote>
110`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
111`}hr(e){return`<hr>
112`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`>
113`+r+"</"+i+`>
114`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
115`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
116`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
117<thead>
118`+t+`</thead>
119`+r+`</table>
120`}tablerow({text:e}){return`<tr>
121${e}</tr>
122`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
123`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${lh(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=lm(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+lh(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=lm(e);if(null===i)return lh(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${lh(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:lh(e.text)}},lE=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},lT=class e{options;renderer;textRenderer;constructor(e){this.options=e||sx,this.options.renderer=this.options.renderer||new lk,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new lE}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){t+=e||"";continue}}switch(r.type){case"space":t+=this.renderer.space(r);break;case"hr":t+=this.renderer.hr(r);break;case"heading":t+=this.renderer.heading(r);break;case"code":t+=this.renderer.code(r);break;case"table":t+=this.renderer.table(r);break;case"blockquote":t+=this.renderer.blockquote(r);break;case"list":t+=this.renderer.list(r);break;case"checkbox":t+=this.renderer.checkbox(r);break;case"html":t+=this.renderer.html(r);break;case"def":t+=this.renderer.def(r);break;case"paragraph":t+=this.renderer.paragraph(r);break;case"text":t+=this.renderer.text(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},lx=class{options;block;constructor(e){this.options=e||sx}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?lb.lex:lb.lexInline}provideParser(){return this.block?lT.parse:lT.parseInline}},lA=new class{defaults=sT();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=lT;Renderer=lk;TextRenderer=lE;Lexer=lb;Tokenizer=l_;Hooks=lx;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};
123return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new lk(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new l_(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new lx;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];lx.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&lx.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let a=r.call(t,e);return i.call(t,a)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return lb.lex(e,t??this.defaults)}parser(e,t){return lT.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer():e?lb.lex:lb.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser():e?lT.parse:lT.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?lb.lex:lb.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?lT.parse:lT.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
124Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+lh(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function lS(e,t){return lA.parse(e,t)}lS.options=lS.setOptions=function(e){return lA.setOptions(e),lS.defaults=lA.defaults,sx=lS.defaults,lS},lS.getDefaults=sT,lS.defaults=sx,lS.use=function(...e){return lA.use(...e),lS.defaults=lA.defaults,sx=lS.defaults,lS},lS.walkTokens=function(e,t){return lA.walkTokens(e,t)},lS.parseInline=lA.parseInline,lS.Parser=lT,lS.parser=lT.parse,lS.Renderer=lk,lS.TextRenderer=lE,lS.Lexer=lb,lS.lexer=lb.lex,lS.Tokenizer=l_,lS.Hooks=lx,lS.parse=lS,lS.options,lS.setOptions,lS.use,lS.walkTokens,lS.parseInline,lT.parse,lb.lex;var lI=/\s/,lw=/^\s+$/,lN=new Set(["code","pre","svg","math","annotation"]),lO=e=>"object"==typeof e&&null!==e&&"type"in e&&"element"===e.type,lC=e=>e.some(e=>lO(e)&&lN.has(e.tagName)),lD=e=>{let t=[],n="",r=!1;for(let i of e){let e=lI.test(i);e!==r&&n&&(t.push(n),n=""),n+=i,r=e}
124return n&&t.push(n),t},l$=e=>{let t=[],n="";for(let r of e)lI.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t},lR=(e,t,n,r)=>({type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:"--sd-animation:sd-".concat(t,";--sd-duration:").concat(n,"ms;--sd-easing:").concat(r)},children:[{type:"text",value:e}]}),lP=(e,t,n)=>{let r=t.at(-1);if(!(r&&"children"in r))return;if(lC(t))return c;let i=r.children.indexOf(e);if(-1===i)return;let a=e.value;if(!a.trim())return;let o=("char"===n.sep?l$(a):lD(a)).map(e=>lw.test(e)?{type:"text",value:e}:lR(e,n.animation,n.duration,n.easing));return r.children.splice(i,1,...o),i+o.length};function lL(e){var t,n,r,i;let a={animation:null!=(t=null==e?void 0:e.animation)?t:"fadeIn",duration:null!=(n=null==e?void 0:e.duration)?n:150,easing:null!=(r=null==e?void 0:e.easing)?r:"ease",sep:null!=(i=null==e?void 0:e.sep)?i:"word"};return{name:"animate",type:"animate",rehypePlugin:()=>e=>{d(e,"text",(e,t)=>lP(e,t,a))}}}lL();var lM=e=>(0,a_.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,a_.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),lU=e=>(0,a_.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,a_.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),lz=e=>(0,a_.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,a_.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),lF=e=>(0,a_.jsxs)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,a_.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,a_.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,a_.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,a_.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,a_.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,a_.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,a_.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,a_.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,a_.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,a_.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),lj=e=>(0,a_.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,a_.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),lB=e=>(0,a_.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,a_.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.025
1247 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),lH=e=>(0,a_.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,a_.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),lZ=e=>(0,a_.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,a_.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),lG=e=>(0,a_.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,a_.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),lq=e=>(0,a_.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,a_.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),lK=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,ak.QP)((0,ab.$)(t))},lV=(e,t,n)=>{let r="string"==typeof t?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},lW=(0,a.createContext)({code:""}),lY=()=>(0,a.useContext)(lW),lJ=e=>{let{onCopy:t,onError:n,timeout:r=2e3,children:i,className:o,code:s,...l}=e,[u,c]=(0,a.useState)(!1),d=(0,a.useRef)(0),{code:p}=lY(),{isAnimating:f}=(0,a.useContext)(cI),h=null!=s?s:p,m=async()=>{var e;if("undefined"==typeof window||!(null!=(e=null==navigator?void 0:navigator.clipboard)&&e.writeText)){null==n||n(Error("Clipboard API not available"));return}try{u||(await navigator.clipboard.writeText(h),c(!0),null==t||t(),d.current=window.setTimeout(()=>c(!1),r))}catch(e){null==n||n(e)}};return(0,a.useEffect)(()=>()=>{window.clearTimeout(d.current)},[]),(0,a_.jsx)("button",{className:lK("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",o),"data-streamdown":"code-block-copy-button",disabled:f,onClick:m,title:"Copy Code",type:"button",...l,children:null!=i?i:(0,a_.jsx)(u?lM:lU,{size:14})})},lX={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",da
124x:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},lQ=e=>{let{onDownload:t,onError:n,language:r,children:i,className:o,code:s,...l}=e,{code:u}=lY(),{isAnimating:c}=(0,a.useContext)(cI),d=null!=s?s:u,p="file.".concat(r&&r in lX?lX[r]:"txt");return(0,a_.jsx)("button",{className:lK("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",o),"data-streamdown":"code-block-download-button",disabled:c,onClick:()=>{try{lV(p,d,"text/plain"),null==t||t()}catch(e){null==n||n(e)}},title:"Download file",type:"button",...l,children:null!=i?i:(0,a_.jsx)(lz,{size:14})})},l0=()=>(0,a_.jsxs)("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[(0,a_.jsx)("div",{className:"h-[46px] w-full bg-muted/80"}),(0,a_.jsx)("div",{className:"flex w-full items-center justify-center p-4",children:(0,a_.jsx)(lF,{className:"size-4 animate-spin"})})]}),l1=/\.[^/.]+$/,l2=0,l4=()=>{1===(l2+=1)&&(document.body.style.overflow="hidden")},l6=()=>{0===(l2=Math.max(0,l2-1))&&(document.body.style.overflow="")},l3=e=>{let{url:t,isOpen:n,onClose:r,onConfirm:i}=e,[o,s]=(0,a.useState)(!1),l=(0,a.useCallback)(async()=>{try{await navigator.clipboard.writeText(t),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){}},[t]),u=(0,a.useCallback)(()=>{i(),r()},[i,r]);return(0,a.useEffect)(()=>
124{if(n){l4();let e=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),l6()}}},[n,r]),n?(0,a_.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm","data-streamdown":"link-safety-modal",onClick:r,onKeyDown:e=>{"Escape"===e.key&&r()},role:"button",tabIndex:0,children:(0,a_.jsxs)("div",{className:"relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,a_.jsx)("button",{className:"absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:r,title:"Close",type:"button",children:(0,a_.jsx)(lH,{size:16})}),(0,a_.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a_.jsxs)("div",{className:"flex items-center gap-2 font-semibold text-lg",children:[(0,a_.jsx)(lZ,{size:20}),(0,a_.jsx)("span",{children:"Open external link?"})]}),(0,a_.jsx)("p",{className:"text-muted-foreground text-sm",children:"You're about to visit an external website."})]}),(0,a_.jsx)("div",{className:lK("break-all rounded-md bg-muted p-3 font-mono text-sm",t.length>100&&"max-h-32 overflow-y-auto"),children:t}),(0,a_.jsxs)("div",{className:"flex gap-2",children:[(0,a_.jsx)("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted",onClick:l,type:"button",children:o?(0,a_.jsxs)(a_.Fragment,{children:[(0,a_.jsx)(lM,{size:14}),(0,a_.jsx)("span",{children:"Copied"})]}):(0,a_.jsxs)(a_.Fragment,{children:[(0,a_.jsx)(lU,{size:14}),(0,a_.jsx)("span",{children:"Copy link"})]})}),(0,a_.jsxs)("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90",onClick:u,type:"button",children:[(0,a_.jsx)(lZ,{size:14}),(0,a_.jsx)("span",{children:"Open link"})]})]})]})}):null},l5=(0,a.createContext)(null),l9=()=>(0,a.useContext)(l5),l8=()=>{var e;let t=l9();return null!=(e=null==t?void 0:t.code)?e:null},l7=()=>{var e;let t=l9();return null!=(e=null==t?void 0:t.mermaid)?e:null},ue=(e,t)=>new Promise((t,n)=>{let r="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),i=new Image;i.crossOrigin="anonymous",i.onload=()=>{let e=document.createElement("canvas"),r=5*i.width,a=5*i.height;e.width=r,e.height=a;let o=e.getContext("2d");if(!o)return void n(Error("Failed to create 2D canvas context for PNG export"));o.drawImage(i,0,0,r,a),e.toBlob(e=>{if(!e)return void n(Error("Failed to create PNG blob"));t(e)},"image/png")},i.onerror=()=>n(Error("Failed to load SVG image")),i.src=r}),ut=e=>{let{chart:t,children:n,className:r,onDownload:i,config:o,onError:s}=e,[l,u]=(0,a.useState)(!1),c=(0,a.useRef)(null),{isAnimating:d}=(0,a.useContext)(cI),p=l7(),f=async e=>{try{if("mmd"===e){lV("diagram.mmd",t,"text/plain"),u(!1),null==i||i(e);return}if(!p){null==s||s(Error("Mermaid plugin not available"));return}let n=p.getMermaid(o),r=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),a="mermaid-".concat(Math.abs(r),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:l}=await n.render(a,t);if(!l){null==s||s(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===e){lV("diagram.svg",l,"image/svg+xml"),u(!1),null==i||i(e);return}if("png"===e){let t=await ue(l);lV("diagram.png",t,"image/png"),null==i||i(e),u(!1);return}}catch(e){null==s||s(e)}};return(0,a.useEffect)(()=>{let e=e=>{let t=e.composedPath();c.current&&!t.includes(c.current)&&u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,a_.jsxs)("div",{className:"relative",ref:c,children:[(0,a_.jsx)("button",{className:lK("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:d,onClick:()=>u(!l),title:"Download diagram",type:"button",children:null!=n?n:(0,a_.jsx)(lz,{size:14})}),l?(0,a_.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,a_.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),(0,a_.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),(0,a_.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]}):null]})},un=0,ur=()=>
124{1===(un+=1)&&(document.body.style.overflow="hidden")},ui=()=>{0===(un=Math.max(0,un-1))&&(document.body.style.overflow="")},ua=e=>{let{chart:t,config:n,onFullscreen:r,onExit:i,className:o,...s}=e,[l,u]=(0,a.useState)(!1),{isAnimating:c,controls:d}=(0,a.useContext)(cI),p=(()=>{if("boolean"==typeof d)return d;let e=d.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),f=()=>{u(!l)};return(0,a.useEffect)(()=>{if(l){ur();let e=e=>{"Escape"===e.key&&u(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),ui()}}},[l]),(0,a.useEffect)(()=>{l?null==r||r():i&&i()},[l,r,i]),(0,a_.jsxs)(a_.Fragment,{children:[(0,a_.jsx)("button",{className:lK("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",o),disabled:c,onClick:f,title:"View fullscreen",type:"button",...s,children:(0,a_.jsx)(lj,{size:14})}),l?(0,a_.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:f,onKeyDown:e=>{"Escape"===e.key&&f()},role:"button",tabIndex:0,children:[(0,a_.jsx)("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:f,title:"Exit fullscreen",type:"button",children:(0,a_.jsx)(lH,{size:20})}),(0,a_.jsx)("div",{className:"flex size-full items-center justify-center p-4",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:(0,a_.jsx)(cD,{chart:t,className:"size-full [&_svg]:h-auto [&_svg]:w-auto",config:n,fullscreen:!0,showControls:p})})]}):null]})},uo=e=>{var t,n;let r=[],i=[];for(let n of e.querySelectorAll("thead th"))r.push((null==(t=n.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];
124for(let r of t.querySelectorAll("td"))e.push((null==(n=r.textContent)?void 0:n.trim())||"");i.push(e)}return{headers:r,rows:i}},us=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1,n=!1;for(let r of e){if('"'===r){t=!0,n=!0;break}(","===r||"\n"===r)&&(t=!0)}return t?n?'"'.concat(e.replace(/"/g,'""'),'"'):'"'.concat(e,'"'):e},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join(","),a+=1),n))i[a]=e.map(r).join(","),a+=1;return i.join("\n")},ul=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1;for(let n of e)if("	"===n||"\n"===n||"\r"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)"	"===t?n.push("\\t"):"\n"===t?n.push("\\n"):"\r"===t?n.push("\\r"):n.push(t);return n.join("")},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join("	"),a+=1),n))i[a]=e.map(r).join("	"),a+=1;return i.join("\n")},uu=e=>{let t=!1;for(let n of e)if("\\"===n||"|"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)"\\"===t?n.push("\\\\"):"|"===t?n.push("\\|"):n.push(t);return n.join("")},uc=e=>{let{headers:t,rows:n}=e;if(0===t.length)return"";let r=Array(n.length+2),i=0,a=t.map(e=>uu(e));r[i]="| ".concat(a.join(" | ")," |"),i+=1;let o=Array(t.length);for(let e=0;e<t.length;e+=1)o[e]="---";for(let e of(r[i]="| ".concat(o.join(" | ")," |"),i+=1,n))if(e.length<t.length){let n=Array(t.length);for(let r=0;r<t.length;r+=1)n[r]=r<e.length?uu(e[r]):"";r[i]="| ".concat(n.join(" | ")," |"),i+=1}else{let t=e.map(e=>uu(e));r[i]="| ".concat(t.join(" | ")," |"),i+=1}return r.join("\n")},ud=e=>{let{children:t,className:n,onCopy:r,onError:i,timeout:o=2e3}=e,[s,l]=(0,a.useState)(!1),[u,c]=(0,a.useState)(!1),d=(0,a.useRef)(null),p=(0,a.useRef)(0),{isAnimating:f}=(0,a.useContext)(cI),h=async e=>{var t,n;if("undefined"==typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==i||i(Error("Clipboard API not available"));return}try{let t=null==(n=d.current)?void 0:n.closest('[data-streamdown="table-wrapper"]'),a=null==t?void 0:t.querySelector("table");if(!a){null==i||i(Error("Table not found"));return}let s=uo(a),u="csv"===e?us(s):ul(s),f=new ClipboardItem({"text/plain":new Blob([u],{type:"text/plain"}),"text/html":new Blob([a.outerHTML],{type:"text/html"})});await navigator.clipboard.write([f]),c(!0),l(!1),null==r||r(e),p.current=window.setTimeout(()=>c(!1),o)}catch(e){null==i||i(e)}};return(0,a.useEffect)(()=>{let e=e=>{let t=e.composedPath();d.current&&!t.includes(d.current)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(p.current)}},[]),(0,a_.jsxs)("div",{className:"relative",ref:d,children:[(0,a_.jsx)("button",{className:lK("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:f,onClick:()=>l(!s),title:"Copy table",type:"button",children:null!=t?t:(0,a_.jsx)(u?lM:lU,{size:14})}),s?(0,a_.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,a_.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),(0,a_.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]}):null]})},up=e=>{let{children:t,className:n,onDownload:r,onError:i}=e,[o,s]=(0,a.useState)(!1),l=(0,a.useRef)(null),{isAnimating:u}=(0,a.useContext)(cI),c=e=>{var t;try{let n=null==(t=l.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),a=null==n?void 0:n.querySelector("table");if(!a){null==i||i(Error("Table not found"));return}let o=uo(a),u="csv"===e?us(o):uc(o);lV("table.".concat("csv"===e?"csv":"md"),u,"csv"===e?"text/csv":"text/markdown"),s(!1),null==r||r(e)}catch(e){null==i||i(e)}};return(0,a.useEffect)(()=>{let e=e=>{let t=e.composedPath();l.current&&!t.includes(l.current)&&s(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,a_.jsxs)("div",{className:"relative",ref:l,children:[(0,a_.jsx)("button",{className:lK("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:u,onClick:()=>s(!o),title:"Download table",type:"button",children:null!=t?t:(0,a_.jsx)(lz,{size:14})}),o?(0,a_.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,a_.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),(0,a_.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]}):null]})},uf=e=>{let{children:t,className:n,showControls:r,...i}=e;return(0,a_.jsxs)("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[r?(0,a_.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,a_.jsx)(ud,{}),(0,a_.jsx)(up,{})]}):null,(0,a_.jsx)("div",{className:"overflow-x-auto overscroll-y-auto",children:(0,a_.jsx)("table",{className:lK("w-full border-collapse border border-border",n),"data-streamdown":"table",...i,children:t})})]})},uh=(0,a.lazy)(()=>n.e(8731).then(n.bind(n,8731)).then(e=>({default:e.CodeBlock}))),um=(0,a.lazy)(()=>n.e(7867).then(n.bind(n,7867)).then(e=>({default:e.Mermaid}))),ug=/language-([^\s]+)/;function uv(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;
124if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(null==n?void 0:n.line)===(null==r?void 0:r.line)&&(null==n?void 0:n.column)===(null==r?void 0:r.column)&&(null==i?void 0:i.line)===(null==a?void 0:a.line)&&(null==i?void 0:i.column)===(null==a?void 0:a.column)}function uy(e,t){return e.className===t.className&&uv(e.node,t.node)}var u_=(e,t)=>"boolean"==typeof e?e:!1!==e[t],ub=(e,t)=>{if("boolean"==typeof e)return e;let n=e.mermaid;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},uk=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("ol",{className:lK("list-inside list-decimal whitespace-normal [li_&]:pl-6",n),"data-streamdown":"ordered-list",...i,children:t})},(e,t)=>uy(e,t));uk.displayName="MarkdownOl";var uE=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("li",{className:lK("py-1 [&>p]:inline",n),"data-streamdown":"list-item",...i,children:t})},(e,t)=>e.className===t.className&&uv(e.node,t.node));uE.displayName="MarkdownLi";var uT=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("ul",{className:lK("list-inside list-disc whitespace-normal [li_&]:pl-6",n),"data-streamdown":"unordered-list",...i,children:t})},(e,t)=>uy(e,t));uT.displayName="MarkdownUl";var ux=(0,a.memo)(e=>{let{className:t,node:n,...r}=e;return(0,a_.jsx)("hr",{className:lK("my-6 border-border",t),"data-streamdown":"horizontal-rule",...r})},(e,t)=>uy(e,t));ux.displayName="MarkdownHr";var uA=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("span",{className:lK("font-semibold",n),"data-streamdown":"strong",...i,children:t})},(e,t)=>uy(e,t));uA.displayName="MarkdownStrong";var uS=(0,a.memo)(e=>{let{children:t,className:n,href:r,node:i,...o}=e,{linkSafety:s}=(0,a.useContext)(cI),[l,u]=(0,a.useState)(!1),c="streamdown:incomplete-link"===r,d=(0,a.useCallback)(async e=>{if(!(!(null!=s&&s.enabled&&r)||c)){if(e.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(r))return void window.open(r,"_blank","noreferrer");u(!0)}},[s,r,c]),p=(0,a.useCallback)(()=>{r&&window.open(r,"_blank","noreferrer")},[r]),f={url:null!=r?r:"",isOpen:l,onClose:(0,a.useCallback)(()=>{u(!1)},[]),onConfirm:p};return null!=s&&s.enabled&&r?(0,a_.jsxs)(a_.Fragment,{children:[(0,a_.jsx)("button",{className:lK("wrap-anywhere appearance-none text-left font-medium text-primary underline",n),"data-incomplete":c,"data-streamdown":"link",onClick:d,type:"button",children:t}),s.renderModal?s.renderModal(f):(0,a_.jsx)(l3,{...f})]}):(0,a_.jsx)("a",{className:lK("wrap-anywhere font-medium text-primary underline",n),"data-incomplete":c,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...o,children:t})},(e,t)=>uy(e,t)&&e.href===t.href);uS.displayName="MarkdownA";var uI=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("h1",{className:lK("mt-6 mb-2 font-semibold text-3xl",n),"data-streamdown":"heading-1",...i,children:t})},(e,t)=>uy(e,t));uI.displayName="MarkdownH1";var uw=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("h2",{className:lK("mt-6 mb-2 font-semibold text-2xl",n),"data-streamdown":"heading-2",...i,children:t})},(e,t)=>uy(e,t));uw.displayName="MarkdownH2";var uN=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("h3",{className:lK("mt-6 mb-2 font-semibold text-xl",n),"data-streamdown":"heading-3",...i,children:t})},(e,t)=>uy(e,t));uN.displayName="MarkdownH3";var uO=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("h4",{className:lK("mt-6 mb-2 font-semibold text-lg",n),"data-streamdown":"heading-4",...i,children:t})},(e,t)=>uy(e,t));uO.displayName="MarkdownH4";var uC=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("h5",{className:lK("mt-6 mb-2 font-semibold text-base",n),"data-streamdown":"heading-5",...i,children:t})},(e,t)=>uy(e,t));uC.displayName="MarkdownH5";var uD=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("h6",{className:lK("mt-6 mb-2 font-semibold text-sm",n),"data-streamdown":"heading-6",...i,children:t})},(e,t)=>uy(e,t));uD.displayName="MarkdownH6";var u$=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e,{controls:o}=(0,a.useContext)(cI),s=u_(o,"table");return(0,a_.jsx)(uf,{className:n,showControls:s,...i,children:t})},(e,t)=>uy(e,t));u$.displayName="MarkdownTable";var uR=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("thead",{className:lK("bg-muted/80",n),"data-streamdown":"table-header",...i,children:t})},(e,t)=>uy(e,t));uR.displayName="MarkdownThead";var uP=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("tbody",{className:lK("divide-y divide-border bg-muted/40",n),"data-streamdown":"table-body",...i,children:t})},(e,t)=>uy(e,t));uP.displayName="MarkdownTbody";var uL=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("tr",{className:lK("border-border border-b",n),"data-streamdown":"table-row",...i,children:t})},(e,t)=>uy(e,t));uL.displayName="MarkdownTr";var uM=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("th",{className:lK("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",n),"data-streamdown":"table-header-cell",...i,children:t})},(e,t)=>uy(e,t));uM.displayName="MarkdownTh";var uU=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("td",{className:lK("px-4 py-2 text-sm",n),"data-streamdown":"table-cell",...i,children:t})},(e,t)=>uy(e,t));uU.displayName="MarkdownTd";var uz=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("blockquote",{className:lK("my-4 border-muted-foreground
124/30 border-l-4 pl-4 text-muted-foreground italic",n),"data-streamdown":"blockquote",...i,children:t})},(e,t)=>uy(e,t));uz.displayName="MarkdownBlockquote";var uF=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("sup",{className:lK("text-sm",n),"data-streamdown":"superscript",...i,children:t})},(e,t)=>uy(e,t));uF.displayName="MarkdownSup";var uj=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;return(0,a_.jsx)("sub",{className:lK("text-sm",n),"data-streamdown":"subscript",...i,children:t})},(e,t)=>uy(e,t));uj.displayName="MarkdownSub";var uB=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e;if("data-footnotes"in i){let e=e=>{var t,n;if(!(0,a.isValidElement)(e))return!1;let r=Array.isArray(e.props.children)?e.props.children:[e.props.children],i=!1,o=!1;for(let e of r)if(e){if("string"==typeof e)""!==e.trim()&&(i=!0);else if((0,a.isValidElement)(e)){if((null==(t=e.props)?void 0:t["data-footnote-backref"])!==void 0)o=!0;else for(let t of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof t&&""!==t.trim()||(0,a.isValidElement)(t)&&(null==(n=t.props)?void 0:n["data-footnote-backref"])===void 0){i=!0;break}}}return o&&!i},r=Array.isArray(t)?t.map(t=>{if(!(0,a.isValidElement)(t))return t;if(t.type===uk){let n=(Array.isArray(t.props.children)?t.props.children:[t.props.children]).filter(t=>!e(t));return 0===n.length?null:{...t,props:{...t.props,children:n}}}return t}):t;return(Array.isArray(r)?r.some(e=>null!==e):null!==r)?(0,a_.jsx)("section",{className:n,...i,children:r}):null}return(0,a_.jsx)("section",{className:n,...i,children:t})},(e,t)=>uy(e,t));uB.displayName="MarkdownSection";var uH=(0,a.memo)(e=>{var t;let{node:n,className:r,children:i,...o}=e,s=!("data-block"in o),{mermaid:l,controls:u}=(0,a.useContext)(cI),c=l7();if(s)return(0,a_.jsx)("code",{className:lK("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",r),"data-streamdown":"inline-code",...o,children:i});let d=null==r?void 0:r.match(ug),p=null!=(t=null==d?void 0:d.at(1))?t:"",f="";if((0,a.isValidElement)(i)&&i.props&&"object"==typeof i.props&&"children"in i.props&&"string"==typeof i.props.children?f=i.props.children:"string"==typeof i&&(f=i),"mermaid"===p&&c){let e=u_(u,"mermaid"),t=ub(u,"download"),n=ub(u,"copy"),i=ub(u,"fullscreen"),o=ub(u,"panZoom");return(0,a_.jsx)(a.Suspense,{fallback:(0,a_.jsx)(l0,{}),children:(0,a_.jsxs)("div",{className:lK("group relative my-4 h-auto rounded-xl border p-4",r),"data-streamdown":"mermaid-block",children:[e&&(t||n||i)?(0,a_.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[t?(0,a_.jsx)(ut,{chart:f,config:null==l?void 0:l.config}):null,n?(0,a_.jsx)(lJ,{code:f}):null,i?(0,a_.jsx)(ua,{chart:f,config:null==l?void 0:l.config}):null]}):null,(0,a_.jsx)(um,{chart:f,config:null==l?void 0:l.config,showControls:o})]})})}let h=u_(u,"code");return(0,a_.jsx)(a.Suspense,{fallback:(0,a_.jsx)(l0,{}),children:(0,a_.jsx)(uh,{className:lK("overflow-x-auto border-border border-t",r),code:f,language:p,children:h?(0,a_.jsxs)(a_.Fragment,{children:[(0,a_.jsx)(lQ,{code:f,language:p}),(0,a_.jsx)(lJ,{})]}):null})})},(e,t)=>e.className===t.className&&uv(e.node,t.node));uH.displayName="MarkdownCode";var uZ=(0,a.memo)(e=>{let{node:t,className:n,src:r,alt:i,...a}=e,o=async()=>{if(r)try{let e=await (await fetch(r)).blob(),t=new URL(r,window.location.origin).pathname.split("/").pop()||"",n=t.split(".").pop(),a=t.includes(".")&&void 0!==n&&n.length<=4,o="";if(a)o=t;else{let n=e.type,r="png";n.includes("jpeg")||n.includes("jpg")?r="jpg":n.includes("png")?r="png":n.includes("svg")?r="svg":n.includes("gif")?r="gif":n.includes("webp")&&(r="webp"),o="".concat((i||t||"image").replace(l1,""),".").concat(r)}lV(o,e,e.type)}catch(e){window.open(r,"_blank")}};return r?(0,a_.jsxs)("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[(0,a_.jsx)("img",{alt:i,className:lK("max-w-full rounded-lg",n),"data-streamdown":"image",src:r,...a}),(0,a_.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),(0,a_.jsx)("button",{className:lK("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:o,title:"Download image",type:"button",children:(0,a_.jsx)(lz,{size:14})})]}):null},(e,t)=>e.className===t.className&&uv(e.node,t.node));uZ.displayName="MarkdownImg";var uG=(0,a.memo)(e=>{let{children:t,className:n,node:r,...i}=e,o=(Array.isArray(t)?t:[t]).filter(e=>null!=e&&""!==e);if(1===o.length&&(0,a.isValidElement)(o[0])){let e=o[0].props.node,n=null==e?void 0:e.tagName;if("img"===n||"code"===n&&"data-block"in o[0].props)return(0,a_.jsx)(a_.Fragment,{children:t})}return(0,a_.jsx)("p",{className:n,...i,children:t})},(e,t)=>uy(e,t));uG.displayName="MarkdownParagraph";
124var uq,uK,uV,uW,uY,uJ,uX,uQ,u0,u1,u2,u4,u6,u3,u5,u9,u8,u7,ce={ol:uk,li:uE,ul:uT,hr:ux,strong:uA,a:uS,h1:uI,h2:uw,h3:uN,h4:uO,h5:uC,h6:uD,table:u$,thead:uR,tbody:uP,tr:uL,th:uM,td:uU,blockquote:uz,code:uH,img:uZ,pre:e=>{let{children:t}=e;return(0,a.isValidElement)(t)?(0,a.cloneElement)(t,{"data-block":"true"}):t},sup:uF,sub:uj,p:uG,section:uB},ct=()=>e=>{p(e,"html",(e,t,n)=>{n&&"number"==typeof t&&(n.children[t]={type:"text",value:e.value})})},cn=[],cr={allowDangerousHtml:!0},ci=new WeakMap,ca=new class{generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let t="default";return this.keyCache.set(e,t),t}let a=e=>{if(!e||0===e.length)return"";let t="";for(let n=0;n<e.length;n+=1){let r=e[n];if(n>0&&(t+=","),Array.isArray(r)){let[e,n]=r;if("function"==typeof e){let n=ci.get(e);n||(n=e.name,ci.set(e,n)),t+=n}else t+=String(e);t+=":",t+=JSON.stringify(n)}else if("function"==typeof r){let e=ci.get(r);e||(e=r.name,ci.set(r,e)),t+=e}else t+=String(r)}return t},o=a(n),s=a(r),l=i?JSON.stringify(i):"",u="".concat(s,"::").concat(o,"::").concat(l);return this.keyCache.set(e,u),u}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(n,t)}clear(){this.cache.clear()}constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}},co=e=>{let t=cs(e),n=e.children||"";return ch(t.runSync(t.parse(n),n),e)},cs=e=>{let t=ca.get(e);if(t)return t;let n=cu(e);return ca.set(e,n),n},cl=e=>e.some(e=>Array.isArray(e)?e[0]===nx:e===nx),cu=e=>{let t=e.rehypePlugins||cn,n=e.remarkPlugins||cn,r=cl(t)?n:[...n,ct],i=e.remarkRehypeOptions?{...cr,...e.remarkRehypeOptions}:cr;return sg().use(oV).use(r).use(se,i).use(t)},cc=e=>e,cd=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:r}},cp=(e,t)=>{var n;for(let r in aV)if(Object.hasOwn(aV,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=aV[r];(null===a||a.includes(e.tagName))&&(e.properties[r]=null!=(n=t(String(i||""),r,e))?n:void 0)}},cf=(e,t,n,r,i,a)=>{let o=!1;return r?o=!r.includes(e.tagName):i&&(o=i.includes(e.tagName)),!o&&a&&"number"==typeof t&&(o=!a(e,t,n)),o},ch=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:a,unwrapDisallowed:o,urlTransform:s}=t;if(n||r||i||a||s){let t=s||cc;p(e,(e,s,l)=>"raw"===e.type&&l&&"number"==typeof s?(cd(l,s,a,e.value),s):"element"===e.type&&(cp(e,t),cf(e,s,l,r,i,n)&&l&&"number"==typeof s)?(o&&e.children?l.children.splice(s,1,...e.children):l.children.splice(s,1),s):void 0)}return function(e,t){var n,r,i,a,o;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=l,r=t.jsxDEV,s=function(e,t,i,a){let o=Array.isArray(i.children),s=no(e);return r(t,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
124if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=0,a=t.jsx,o=t.jsxs,s=function(e,t,n,r){let i=Array.isArray(n.children)?o:a;return r?i(t,n,r):i(t,n)}}let u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ee:Q,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=aj(u,e,void 0);return c&&"string"!=typeof c?c:u.create(e,u.Fragment,{children:c||void 0},void 0)}(e,{Fragment:a_.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:a_.jsx,jsxs:a_.jsxs,passKeys:!0,passNode:!0})},cm=/\[\^[\w-]{1,200}\](?!:)/,cg=/\[\^[\w-]{1,200}\]:/,cv=/<\/(\w+)>/,cy=/<(\w+)[\s>]/,c_=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),cb=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)"$"===e[n]&&"$"===e[n+1]&&(t+=1,n+=1);return t},ck=e=>{let t=cm.test(e),n=cg.test(e);
124if(t||n)return[e];let r=lb.lex(e,{gfm:!0}),i=[],a=[],o=!1;for(let e of r){let t=e.raw,n=i.length;if(a.length>0){if(i[n-1]+=t,"html"===e.type){let e=t.match(cv);if(e){let t=e[1];a.at(-1)===t&&a.pop()}}continue}if("html"===e.type&&e.block){let e=t.match(cy);if(e){let n=e[1];t.includes("</".concat(n,">"))||c_.has(n.toLowerCase())||a.push(n)}}if(n>0&&!o){let e=i[n-1];if(cb(e)%2==1){i[n-1]=e+t;continue}}i.push(t),"space"!==e.type&&(o="code"===e.type)}return i},cE={...nS,protocols:{...nS.protocols,href:[...null!=(u7=null==(u8=nS.protocols)?void 0:u8.href)?u7:[],"tel"]}},cT={raw:nx,sanitize:[nR,cE],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:o="text-gray-500"}){let s=t.length&&!t.every(e=>"*"===e),l=n.length&&!n.every(e=>"*"===e);if(!e&&(s||l))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return s=>{p(s,y(e,t,n,r,i,a,o))}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},cx=Object.values(cT),cA=Object.values({gfm:[function(e){let t,n=e||id,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(rF([{text:rW},{document:{91:{name:"gfmFootnoteDefinition",tokenize:r8,continuation:{tokenize:r7},exit:ie}},text:{91:{name:"gfmFootnoteCall",tokenize:r9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:r3,resolveTo:r5}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function a(s){let l=ry(i);if(126===s)return o>1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let u=e.exit("strikethroughSequenceTemporary"),c=ry(s);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&rM(o,o.length,0,it(s,e.slice(r+1,n),t)),rM(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),rM(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:ii,resolveAll:ia}}},{text:{91:iu}}])),a.push([{transforms:[n4],enter:{literalAutolink:nJ,literalAutolinkEmail:nX,literalAutolinkHttp:nX,literalAutolinkWww:nX},exit:{literalAutolink:n2,literalAutolinkEmail:n1,literalAutolinkHttp:nQ,literalAutolinkWww:n0}},{enter:{gfmFootnoteCallString:n8,gfmFootnoteCall:n7,gfmFootnoteDefinitionLabelString:re,gfmFootnoteDefinition:rt},exit:{gfmFootnoteCallString:rn,gfmFootnoteCall:rr,gfmFootnoteDefinitionLabelString:ri,gfmFootnoteDefinition:ra}},{canContainEols:["delete"],enter:{strikethrough:rc},exit:{strikethrough:rd}},{enter:{table:rI,tableData:rC,tableHeader:rC,tableRow:rN},exit:{codeText:rD,table:rw,tableData:rO,tableHeader:rO,tableRow:rO}},{exit:{taskListCheckValueChecked:rR,taskListCheckValueUnchecked:rR,paragraph:rP}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nW,notInConstruct:nY},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nW,notInConstruct:nY},{character:":",before:"[ps]",after:"\\/",inConstruct:nW,notInConstruct:nY}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let a=r.createTracker(i),o=a.move("[^"),s=r.enter("footnoteDefinition"),l=r.enter("label");return o+=a.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?rl:rs))),s(),o},footnoteReference:ro},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ru}],handlers:{delete:rp}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rS.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rf,a=[],o=[],s=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],a=-1;for(e[c].length>u&&(u=e[c].length);++a<e[c].length;){var d;let o=null==(d=e[c][a])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[c]=t,s[c]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<u;)a[p]=rh(r[p]);else{let e=rh(r);for(;++p<u;)a[p]=e}p=-1;let f=[],h=[];for(;++p<u;){let e=a[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[p]&&(l[p]=i),h[p]=i),f[p]=o}o.splice(1,0,f),s.splice(1,0,h),c=-1;let m=[];for(;++c<o.length;){let e=o[c],t=s[c];p=-1;let r=[];for(;++p<u;){let i=e[p]||"",o="",s="";if(!1!==n.alignDelimiters){let e=l[p]-(t[p]||0),n=a[p];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],e,t,n);return s(),a}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rL}}]})},{}]}),cS={block:" ▋",circle:" ●"},cI=(0,a.createContext)({shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0,linkSafety:{enabled:!0}}),cw=(0,a.memo)(e=>{let{content:t,shouldParseIncompleteMarkdown:n,index:r,...i}=e;return(0,a_.jsx)(co,{...i,children:t})},(e,t)=>{if(e.content!==t.content||e.index!==t.index)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(n=>{var r,i;return(null==(r=e.components)?void 0:r[n])!==(null==(i=t.components)?void 0:i[n])}))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins});cw.displayName="Block";var cN=["github-light","github-dark"],cO=(0,a.memo)(e=>{let{children:t,mode:n="streaming",parseIncompleteMarkdown:r=!0,
124components:i,rehypePlugins:o=cx,remarkPlugins:s=cA,className:l,shikiTheme:u=cN,mermaid:c,controls:d=!0,isAnimating:p=!1,animated:f,BlockComponent:h=cw,parseMarkdownIntoBlocksFn:m=ck,caret:g,plugins:v,remend:y,linkSafety:_={enabled:!0},allowedTags:b,...k}=e,E=(0,a.useId)(),[T,x]=(0,a.useTransition)(),A=(0,a.useMemo)(()=>"string"!=typeof t?"":"streaming"===n&&r?ay(t,y):t,[t,n,r,y]),S=(0,a.useMemo)(()=>m(A),[A,m]),[I,w]=(0,a.useState)(S);(0,a.useEffect)(()=>{"streaming"===n?x(()=>{w(S)}):w(S)},[S,n]);let N="streaming"===n?I:S,O=(0,a.useMemo)(()=>N.map((e,t)=>"".concat(E,"-").concat(t)),[N.length,E]),C=(0,a.useMemo)(()=>f?!0===f?lL():lL(f):null,[f]),D=(0,a.useMemo)(()=>{var e,t;return{shikiTheme:null!=(t=null==(e=null==v?void 0:v.code)?void 0:e.getThemes())?t:u,controls:d,isAnimating:p,mode:n,mermaid:c,linkSafety:_}},[u,d,p,n,c,_,null==v?void 0:v.code]),$=(0,a.useMemo)(()=>({...ce,...i}),[i]),R=(0,a.useMemo)(()=>{let e=[];return null!=v&&v.cjk&&(e=[...e,...v.cjk.remarkPluginsBefore]),e=[...e,...s],null!=v&&v.cjk&&(e=[...e,...v.cjk.remarkPluginsAfter]),null!=v&&v.math&&(e=[...e,v.math.remarkPlugin]),e},[s,null==v?void 0:v.math,null==v?void 0:v.cjk]),P=(0,a.useMemo)(()=>{var e;let t=o;if(b&&Object.keys(b).length>0&&o===cx){let n={...cE,tagNames:[...null!=(e=cE.tagNames)?e:[],...Object.keys(b)],attributes:{...cE.attributes,...b}};t=[cT.raw,[nR,n],cT.harden]}return null!=v&&v.math&&(t=[...t,v.math.rehypePlugin]),C&&p&&(t=[...t,C.rehypePlugin]),t},[o,null==v?void 0:v.math,C,p,b]),L=(0,a.useMemo)(()=>g&&p?{"--streamdown-caret":'"'.concat(cS[g],'"')}:void 0,[g,p]);return"static"===n?(0,a_.jsx)(l5.Provider,{value:null!=v?v:null,children:(0,a_.jsx)(cI.Provider,{value:D,children:(0,a_.jsx)("div",{className:lK("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",l),children:(0,a_.jsx)(co,{components:$,rehypePlugins:P,remarkPlugins:R,...k,children:t})})})}):(0,a_.jsx)(l5.Provider,{value:null!=v?v:null,children:(0,a_.jsx)(cI.Provider,{value:D,children:(0,a_.jsxs)("div",{className:lK("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",g?"*:last:after:inline *:last:after:align-baseline *:last:after:content-[var(--streamdown-caret)]":null,l),style:L,children:[0===N.length&&g&&p&&(0,a_.jsx)("span",{}),N.map((e,t)=>(0,a_.jsx)(h,{components:$,content:e,index:t,rehypePlugins:P,remarkPlugins:R,shouldParseIncompleteMarkdown:r,...k},O[t]))]})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety);cO.displayName="Streamdown";var cC=e=>{let{children:t,className:n,minZoom:r=.5,maxZoom:i=3,zoomStep:o=.1,showControls:s=!0,initialZoom:l=1,fullscreen:u=!1}=e,c=(0,a.useRef)(null),d=(0,a.useRef)(null),[p,f]=(0,a.useState)(l),[h,m]=(0,a.useState)({x:0,y:0}),[g,v]=(0,a.useState)(!1),[y,_]=(0,a.useState)({x:0,y:0}),[b,k]=(0,a.useState)({x:0,y:0}),E=(0,a.useCallback)(e=>{f(t=>Math.max(r,Math.min(i,t+e)))},[r,i]),T=(0,a.useCallback)(()=>{E(o)},[E,o]),x=(0,a.useCallback)(()=>{E(-o)},[E,o]),A=(0,a.useCallback)(()=>{f(l),m({x:0,y:0})},[l]),S=(0,a.useCallback)(e=>{e.preventDefault(),E(e.deltaY>0?-o:o)},[E,o]),I=(0,a.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;v(!0),_({x:e.clientX,y:e.clientY}),k(h);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[h]),w=(0,a.useCallback)(e=>{if(!g)return;e.preventDefault();let t=e.clientX-y.x,n=e.clientY-y.y;m({x:b.x+t,y:b.y+n})},[g,y,b]),N=(0,a.useCallback)(e=>{v(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,a.useEffect)(()=>{let e=c.current;if(e)return e.addEventListener("wheel",S,{passive:!1}),()=>{e.removeEventListener("wheel",S)}},[S]),(0,a.useEffect)(()=>{let e=d.current;if(e&&g)return document.body.style.userSelect="none",e.addEventListener("pointermove",w,{passive:!1}),e.addEventListener("pointerup",N),e.addEventListener("pointercancel",N),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",w),e.removeEventListener("pointerup",N),e.removeEventListener("pointercancel",N)}},[g,w,N]),(0,a_.jsxs)("div",{className:lK("relative flex flex-col",u?"h-full w-full":"min-h-28 w-full",n),ref:c,style:{cursor:g?"grabbing":"grab"},children:[s?(0,a_.jsxs)("div",{className:lK("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",u?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,a_.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:p>=i,onClick:T,title:"Zoom in",type:"button",children:(0,a_.jsx)(lG,{size:16})}),(0,a_.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:p<=r,onClick:x,title:"Zoom out",type:"button",children:(0,a_.jsx)(lq,{size:16})}),(0,a_.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:A,title:"Reset zoom and pan",type:"button",children:(0,a_.jsx)(lB,{size:16})})]}):null,(0,a_.jsx)("div",{className:lK("flex-1 origin-center transition-transform duration-150 ease-out",u?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:I,ref:d,role:"application",style:{transform:"translate(".concat(h.x,"px, ").concat(h.y,"px) scale(").concat(p,")"),transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:t})]})},cD=e=>{let{chart:t,className:n,config:r,fullscreen:i=!1,showControls:o=!0}=e,[s,l]=(0,a.useState)(null),[u,c]=(0,a.useState)(!1),[d,p]=(0,a.useState)(""),[f,h]=(0,a.useState)(""),[m,g]=(0,a.useState)(0),{mermaid:v}=(0,a.useContext)(cI),y=l7(),_=null==v?void 0:v.errorComponent,{shouldRender:b,containerRef:k}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{immediate:t=!1,debounceDelay:n=300,rootMargin:r="300px",idleTimeout:i=500}=e,[o,s]=(0,a.useState)(!1),l=(0,a.useRef)(null),u=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),p=(0,a.useMemo)(()=>"undefined"!=typeof window&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):d,[d]),f=(0,a.useMemo)(()=>"undefined"!=typeof window&&window.cancelIdleCallback?e=>
124window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,a.useEffect)(()=>{if(t)return void s(!0);let e=l.current;if(!e)return;u.current&&(clearTimeout(u.current),u.current=null),c.current&&(f(c.current),c.current=null);let a=()=>{u.current&&(clearTimeout(u.current),u.current=null),c.current&&(f(c.current),c.current=null)},o=e=>{c.current=p(t=>{t.timeRemaining()>0||t.didTimeout?(s(!0),e.disconnect()):c.current=p(()=>{s(!0),e.disconnect()},{timeout:i/2})},{timeout:i})},d=e=>{a(),u.current=window.setTimeout(()=>{var t,n;let r=e.takeRecords();(0===r.length||null!=(n=null==(t=r.at(-1))?void 0:t.isIntersecting)&&n)&&o(e)},n)},h=(e,t)=>{e.isIntersecting?d(t):a()},m=new IntersectionObserver(e=>{for(let t of e)h(t,m)},{rootMargin:r,threshold:0});return m.observe(e),()=>{u.current&&clearTimeout(u.current),c.current&&f(c.current),m.disconnect()}},[t,n,r,i,f,p]),{shouldRender:o,containerRef:l}}({immediate:i});return((0,a.useEffect)(()=>{if(b){if(!y)return void l("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");(async()=>{try{l(null),c(!0);let e=y.getMermaid(r),n=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),i="mermaid-".concat(Math.abs(n),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:a}=await e.render(i,t);p(a),h(a)}catch(e){f||d||l(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{c(!1)}})()}},[t,r,m,b,y]),b||d||f)?!u||d||f?!s||d||f?(0,a_.jsx)("div",{className:lK("size-full",n),"data-streamdown":"mermaid",ref:k,children:(0,a_.jsx)(cC,{className:lK(i?"size-full overflow-hidden":"my-4 overflow-hidden",n),fullscreen:i,maxZoom:3,minZoom:.5,showControls:o,zoomStep:.1,children:(0,a_.jsx)("div",{"aria-label":"Mermaid chart",className:lK("flex justify-center",i?"size-full items-center":null),dangerouslySetInnerHTML:{__html:d||f},role:"img"})})}):_?(0,a_.jsx)("div",{ref:k,children:(0,a_.jsx)(_,{chart:t,error:s,retry:()=>g(e=>e+1)})}):(0,a_.jsxs)("div",{className:lK("rounded-lg border border-red-200 bg-red-50 p-4",n),ref:k,children:[(0,a_.jsxs)("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",s]}),(0,a_.jsxs)("details",{className:"mt-2",children:[(0,a_.jsx)("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),(0,a_.jsx)("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:t})]})]}):(0,a_.jsx)("div",{className:lK("my-4 flex justify-center p-4",n),ref:k,children:(0,a_.jsxs)("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[(0,a_.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),(0,a_.jsx)("span",{className:"text-sm",children:"Loading diagram..."})]})}):(0,a_.jsx)("div",{className:lK("my-4 min-h-[200px]",n),ref:k})}},7576:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},7623:(e,t,n)=>{"use strict";n.d(t,{Di:()=>x,b8:()=>q,bD:()=>v,eM:()=>M,iM:()=>B,u1:()=>b,u6:()=>O});var r,i,a,o,s,l,u,c,d,p,f,h,m="vercel.ai.error",g=Symbol.for(m),v=class e extends(i=Error,r=g,i){constructor({name:e,message:t,cause:n}){super(t),this[r]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,m)}static hasMarker(e,t){let n=Symbol.for(t);return null!=e&&"object"==typeof e&&n in e&&"boolean"==typeof e[n]&&!0===e[n]}},y=Symbol.for("vercel.ai.error.AI_APICallError"),_=Symbol.for("vercel.ai.error.AI_EmptyResponseBodyError");function b(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var k="AI_InvalidArgumentError",E=`vercel.ai.error.${k}`,T=Symbol.for(E),x=class extends(o=v,a=T,o){constructor({message:e,cause:t,argument:n}){super({name:k,message:e,cause:t}),this[a]=!0,this.argument=n}static isInstance(e){return v.hasMarker(e,E)}},A=Symbol.for("vercel.ai.error.AI_InvalidPromptError"),S=Symbol.for("vercel.ai.error.AI_InvalidResponseDataError"),I="AI_JSONParseError",w=`vercel.ai.error.${I}`,N=Symbol.for(w),O=class extends(l=v,s=N,l){constructor({text:e,cause:t}){super({name:I,message:`JSON parsing failed: Text: ${e}.
125Error message: ${b(t)}`,cause:t}),this[s]=!0,this.text=e}static isInstance(e){return v.hasMarker(e,w)}},C=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),D=Symbol.for("vercel.ai.error.AI_LoadSettingError"),$=Symbol.for("vercel.ai.error.AI_NoContentGeneratedError"),R="AI_NoSuchMo
125delError",P=`vercel.ai.error.${R}`,L=Symbol.for(P),M=class extends(c=v,u=L,c){constructor({errorName:e=R,modelId:t,modelType:n,message:r=`No such ${n}: ${t}`}){super({name:e,message:r}),this[u]=!0,this.modelId=t,this.modelType=n}static isInstance(e){return v.hasMarker(e,P)}},U=Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError"),z="AI_TypeValidationError",F=`vercel.ai.error.${z}`,j=Symbol.for(F),B=class e extends(p=v,d=j,p){constructor({value:e,cause:t,context:n}){let r="Type validation failed";if((null==n?void 0:n.field)&&(r+=` for ${n.field}`),(null==n?void 0:n.entityName)||(null==n?void 0:n.entityId)){r+=" (";let e=[];n.entityName&&e.push(n.entityName),n.entityId&&e.push(`id: "${n.entityId}"`),r+=e.join(", "),r+=")"}super({name:z,message:`${r}: Value: ${JSON.stringify(e)}.
126Error message: ${b(t)}`,cause:t}),this[d]=!0,this.value=e,this.context=n}static isInstance(e){return v.hasMarker(e,F)}static wrap({value:t,cause:n,context:r}){var i,a,o;return e.isInstance(n)&&n.value===t&&(null==(i=n.context)?void 0:i.field)===(null==r?void 0:r.field)&&(null==(a=n.context)?void 0:a.entityName)===(null==r?void 0:r.entityName)&&(null==(o=n.context)?void 0:o.entityId)===(null==r?void 0:r.entityId)?n:new e({value:t,cause:n,context:r})}},H="AI_UnsupportedFunctionalityError",Z=`vercel.ai.error.${H}`,G=Symbol.for(Z),q=class extends(h=v,f=G,h){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:H,message:t}),this[f]=!0,this.functionality=e}static isInstance(e){return v.hasMarker(e,Z)}};function K(e){return null===e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e||(Array.isArray(e)?e.every(K):"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&(void 0===t||K(t))))}},7727:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;a?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(2770))},7832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,l):e.replace(a,l)).replace(r,s))}},8089:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("milestone",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z",key:"1btarq"}]])},8212:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]])},8497:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},9408:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("sliders-horizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]])},9527:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}
126],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]])},9680:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7512).A)("align-left",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]])},9936:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(7727)),i=n(7832);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.